diff --git a/strix/viewer/viewer_dist/assets/index-CiotzpD9.css b/strix/viewer/viewer_dist/assets/index-CiotzpD9.css new file mode 100644 index 00000000..5380f344 --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-CiotzpD9.css @@ -0,0 +1,10 @@ +pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub Dark + Description: Dark theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-dark + Current colors taken from GitHub's CSS +*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[30px\]{height:30px}.h-\[72px\]{height:72px}.h-\[80vh\]{height:80vh}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-28{width:calc(var(--spacing) * 28)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[72rem\]{max-width:72rem}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[160px\]{max-width:160px}.max-w-\[240px\]{max-width:240px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#444\]{border-color:#444}.border-\[\#191919\]{border-color:#191919}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/25{border-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/25{border-color:color-mix(in oklab,var(--color-emerald-500) 25%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-\[rgba\(255\,255\,255\,0\.04\)\]{background-color:#ffffff0a}.bg-black{background-color:var(--color-black)}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/\[0\.06\]{background-color:#00bb7f0f}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/\[0\.06\]{background-color:color-mix(in oklab,var(--color-emerald-500) 6%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.4em\]{--tw-tracking:.4em;letter-spacing:.4em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#60a5fa\]{color:#60a5fa}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-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,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:text-\[\#aaa\]:is(:where(.group):hover *){color:#aaa}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:border-emerald-500\/40:hover{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/40:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[rgba\(255\,255\,255\,0\.06\)\]:hover{background-color:#ffffff0f}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#aaa\]:hover{color:#aaa}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-\[\#444\]:focus{border-color:#444}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}} diff --git a/strix/viewer/viewer_dist/assets/index-Cldwq1Im.css b/strix/viewer/viewer_dist/assets/index-Cldwq1Im.css deleted file mode 100644 index 229255fb..00000000 --- a/strix/viewer/viewer_dist/assets/index-Cldwq1Im.css +++ /dev/null @@ -1,10 +0,0 @@ -pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! - Theme: GitHub Dark - Description: Dark theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-dark - Current colors taken from GitHub's CSS -*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-400:oklch(78.9% .154 211.53);--color-sky-400:oklch(74.6% .16 232.661);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{inset-inline:0}.top-0{top:0}.top-2{top:calc(var(--spacing) * 2)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mt-\[1px\]{margin-top:1px}.mr-1{margin-right:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!h-1\.5{height:calc(var(--spacing) * 1.5)!important}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[30px\]{height:30px}.h-\[72px\]{height:72px}.h-\[80vh\]{height:80vh}.h-\[480px\]{height:480px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[400px\]{max-height:400px}.max-h-\[1200px\]{max-height:1200px}.min-h-screen{min-height:100vh}.\!w-1\.5{width:calc(var(--spacing) * 1.5)!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-28{width:calc(var(--spacing) * 28)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[1px\]{width:1px}.w-\[30px\]{width:30px}.w-\[180px\]{width:180px}.w-\[260px\]{width:260px}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-5xl{max-width:var(--container-5xl)}.max-w-\[72rem\]{max-width:72rem}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[160px\]{max-width:160px}.max-w-\[240px\]{max-width:240px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-\[80px\]{min-width:80px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block:0}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-0{border-style:var(--tw-border-style)!important;border-width:0!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#222\]{border-color:#222!important}.border-\[\#1a1a1a\]{border-color:#1a1a1a}.border-\[\#2a2a2a\]{border-color:#2a2a2a}.border-\[\#222\]{border-color:#222}.border-\[\#333\]{border-color:#333}.border-\[\#444\]{border-color:#444}.border-\[\#191919\]{border-color:#191919}.border-blue-500\/20{border-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/20{border-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-blue-500\/40{border-color:#3080ff66}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/40{border-color:color-mix(in oklab,var(--color-blue-500) 40%,transparent)}}.border-emerald-500\/20{border-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/20{border-color:color-mix(in oklab,var(--color-emerald-500) 20%,transparent)}}.border-emerald-500\/25{border-color:#00bb7f40}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/25{border-color:color-mix(in oklab,var(--color-emerald-500) 25%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500) 30%,transparent)}}.border-gray-500\/20{border-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.border-gray-500\/20{border-color:color-mix(in oklab,var(--color-gray-500) 20%,transparent)}}.border-orange-500\/20{border-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/20{border-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab,red,red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500) 30%,transparent)}}.border-purple-500\/20{border-color:#ac4bff33}@supports (color:color-mix(in lab,red,red)){.border-purple-500\/20{border-color:color-mix(in oklab,var(--color-purple-500) 20%,transparent)}}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.border-red-500\/25{border-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.border-red-500\/25{border-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.border-white\/\[0\.06\]{border-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.06\]{border-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.border-yellow-500\/25{border-color:#edb20040}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/25{border-color:color-mix(in oklab,var(--color-yellow-500) 25%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.\!bg-\[\#0a0a0a\]{background-color:#0a0a0a!important}.\!bg-\[\#444\]{background-color:#444!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#0a0a0a\]{background-color:#0a0a0a}.bg-\[\#1a1a1a\]{background-color:#1a1a1a}.bg-\[\#1e1e1e\]{background-color:#1e1e1e}.bg-\[\#2a2a2a\]{background-color:#2a2a2a}.bg-\[\#111\]{background-color:#111}.bg-\[\#222\]{background-color:#222}.bg-\[\#555\]{background-color:#555}.bg-\[\#888\]{background-color:#888}.bg-\[\#252525\]{background-color:#252525}.bg-\[rgba\(255\,255\,255\,0\.02\)\]{background-color:#ffffff05}.bg-\[rgba\(255\,255\,255\,0\.04\)\]{background-color:#ffffff0a}.bg-black{background-color:var(--color-black)}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab,red,red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black) 70%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500) 20%,transparent)}}.bg-blue-500\/\[0\.12\]{background-color:#3080ff1f}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-blue-500) 12%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/5{background-color:#00bb7f0d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/5{background-color:color-mix(in oklab,var(--color-emerald-500) 5%,transparent)}}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-emerald-500\/\[0\.06\]{background-color:#00bb7f0f}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/\[0\.06\]{background-color:color-mix(in oklab,var(--color-emerald-500) 6%,transparent)}}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-500\/10{background-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.bg-gray-500\/10{background-color:color-mix(in oklab,var(--color-gray-500) 10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500) 10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500) 20%,transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500) 10%,transparent)}}.bg-purple-500\/\[0\.08\]{background-color:#ac4bff14}@supports (color:color-mix(in lab,red,red)){.bg-purple-500\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-purple-500) 8%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/\[0\.12\]{background-color:#fb2c361f}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/\[0\.12\]{background-color:color-mix(in oklab,var(--color-red-500) 12%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/8{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/8{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-white\/60{background-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.bg-white\/\[0\.015\]{background-color:#ffffff04}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.015\]{background-color:color-mix(in oklab,var(--color-white) 1.5%,transparent)}}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500) 15%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-0{padding-inline:0}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-\[5px\]{padding-top:5px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-1\.5{padding-left:calc(var(--spacing) * 1.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.leading-\[22px\]{--tw-leading:22px;line-height:22px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.4em\]{--tw-tracking:.4em;letter-spacing:.4em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#60a5fa\]{color:#60a5fa}.text-\[\#333\]{color:#333}.text-\[\#444\]{color:#444}.text-\[\#555\]{color:#555}.text-\[\#666\]{color:#666}.text-\[\#777\]{color:#777}.text-\[\#888\]{color:#888}.text-\[\#999\]{color:#999}.text-\[\#aaa\]{color:#aaa}.text-\[\#bbb\]{color:#bbb}.text-\[\#ddd\]{color:#ddd}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab,red,red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400) 80%,transparent)}}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.text-blue-400\/80{color:#54a2ffcc}@supports (color:color-mix(in lab,red,red)){.text-blue-400\/80{color:color-mix(in oklab,var(--color-blue-400) 80%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-cyan-400{color:var(--color-cyan-400)}.text-cyan-400\/80{color:#00d2efcc}@supports (color:color-mix(in lab,red,red)){.text-cyan-400\/80{color:color-mix(in oklab,var(--color-cyan-400) 80%,transparent)}}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-400\/30{color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/30{color:color-mix(in oklab,var(--color-emerald-400) 30%,transparent)}}.text-emerald-400\/60{color:#00d29499}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/60{color:color-mix(in oklab,var(--color-emerald-400) 60%,transparent)}}.text-emerald-400\/70{color:#00d294b3}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/70{color:color-mix(in oklab,var(--color-emerald-400) 70%,transparent)}}.text-emerald-400\/80{color:#00d294cc}@supports (color:color-mix(in lab,red,red)){.text-emerald-400\/80{color:color-mix(in oklab,var(--color-emerald-400) 80%,transparent)}}.text-gray-400{color:var(--color-gray-400)}.text-orange-400{color:var(--color-orange-400)}.text-orange-400\/60{color:#ff8b1a99}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/60{color:color-mix(in oklab,var(--color-orange-400) 60%,transparent)}}.text-orange-400\/80{color:#ff8b1acc}@supports (color:color-mix(in lab,red,red)){.text-orange-400\/80{color:color-mix(in oklab,var(--color-orange-400) 80%,transparent)}}.text-orange-500{color:var(--color-orange-500)}.text-purple-400{color:var(--color-purple-400)}.text-purple-400\/60{color:#c07eff99}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/60{color:color-mix(in oklab,var(--color-purple-400) 60%,transparent)}}.text-purple-400\/70{color:#c07effb3}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/70{color:color-mix(in oklab,var(--color-purple-400) 70%,transparent)}}.text-purple-400\/80{color:#c07effcc}@supports (color:color-mix(in lab,red,red)){.text-purple-400\/80{color:color-mix(in oklab,var(--color-purple-400) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-400\/30{color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.text-red-400\/30{color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.text-red-400\/50{color:#ff656880}@supports (color:color-mix(in lab,red,red)){.text-red-400\/50{color:color-mix(in oklab,var(--color-red-400) 50%,transparent)}}.text-red-400\/60{color:#ff656899}@supports (color:color-mix(in lab,red,red)){.text-red-400\/60{color:color-mix(in oklab,var(--color-red-400) 60%,transparent)}}.text-red-400\/70{color:#ff6568b3}@supports (color:color-mix(in lab,red,red)){.text-red-400\/70{color:color-mix(in oklab,var(--color-red-400) 70%,transparent)}}.text-red-400\/80{color:#ff6568cc}@supports (color:color-mix(in lab,red,red)){.text-red-400\/80{color:color-mix(in oklab,var(--color-red-400) 80%,transparent)}}.text-red-500{color:var(--color-red-500)}.text-sky-400{color:var(--color-sky-400)}.text-sky-400\/80{color:#00bcfecc}@supports (color:color-mix(in lab,red,red)){.text-sky-400\/80{color:color-mix(in oklab,var(--color-sky-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-400\/80{color:#fac800cc}@supports (color:color-mix(in lab,red,red)){.text-yellow-400\/80{color:color-mix(in oklab,var(--color-yellow-400) 80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-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,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[font-variant-ligatures\:none\]{font-variant-ligatures:none}@media(hover:hover){.group-hover\:text-\[\#aaa\]:is(:where(.group):hover *){color:#aaa}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\/code\:opacity-100:is(:where(.group\/code):hover *){opacity:1}.hover\:border-\[\#333\]:hover{border-color:#333}.hover\:border-\[\#444\]:hover{border-color:#444}.hover\:border-emerald-500\/40:hover{border-color:#00bb7f66}@supports (color:color-mix(in lab,red,red)){.hover\:border-emerald-500\/40:hover{border-color:color-mix(in oklab,var(--color-emerald-500) 40%,transparent)}}.hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[rgba\(255\,255\,255\,0\.06\)\]:hover{background-color:#ffffff0f}.hover\:text-\[\#888\]:hover{color:#888}.hover\:text-\[\#aaa\]:hover{color:#aaa}.hover\:text-\[\#ccc\]:hover{color:#ccc}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-\[\#444\]:focus{border-color:#444}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-6{top:calc(var(--spacing) * 6)}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.lg\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}.lg\:overflow-y-auto{overflow-y:auto}.lg\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lg\:border-\[\#2a2a2a\]{border-color:#2a2a2a}.lg\:pl-6{padding-left:calc(var(--spacing) * 6)}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}}:root{--font-geist-sans:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-geist-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}html,body{color:#fff;font-family:var(--font-geist-sans);background:#000}@keyframes tab-in{0%{opacity:0;filter:blur(4px);transform:translateY(6px)}to{opacity:1;filter:blur();transform:translateY(0)}}.animate-tab-in{animation:.2s ease-out tab-in}.prose-markdown{color:#999;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.7}.prose-markdown p{margin-bottom:.75em}.prose-markdown p:last-child{margin-bottom:0}.prose-markdown strong{color:#ccc;font-weight:600}.prose-markdown em{font-style:italic}.prose-markdown code{color:#ccc;font-variant-ligatures:none;background:#0a0a0a;border:1px solid #111;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.prose-markdown pre{font-variant-ligatures:none;background:0 0;border:none;border-radius:0;margin:0;padding:0}.prose-markdown pre code{color:inherit;background:0 0;border:none;padding:0;font-size:13px}.prose-markdown ul,.prose-markdown ol{margin-bottom:.75em;padding-left:1.5em}.prose-markdown ul{list-style-type:disc}.prose-markdown ol{list-style-type:decimal}.prose-markdown li{margin-bottom:.25em}.prose-markdown li>ul,.prose-markdown li>ol{margin-top:.25em;margin-bottom:.25em;padding-left:1.5em}.prose-markdown ol+ul{margin-top:-.5em;padding-left:3em}.prose-markdown h1,.prose-markdown h2,.prose-markdown h3,.prose-markdown h4,.prose-markdown h5,.prose-markdown h6{color:#ddd;margin-top:1em;margin-bottom:.5em;font-weight:600}.prose-markdown a{color:inherit;pointer-events:none;text-decoration:none}.prose-markdown blockquote{color:#777;border-left:3px solid #333;margin:.75em 0;padding-left:1em}.prose-markdown hr{border:none;border-top:1px solid #222;margin:1em 0}.prose-markdown>table{border-collapse:collapse;width:100%;margin:.75em 0}.prose-markdown>table th,.prose-markdown>table td{text-align:left;border:1px solid #333;padding:.4em .75em;font-size:13px}.prose-markdown>table th{color:#ccc;background:#1a1a1a;font-weight:600}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}} diff --git a/strix/viewer/viewer_dist/assets/index-D9rN78-T.js b/strix/viewer/viewer_dist/assets/index-D9rN78-T.js new file mode 100644 index 00000000..176a9f2f --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-D9rN78-T.js @@ -0,0 +1,502 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=i(s);fetch(s.href,l)}})();function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jf={exports:{}},Ho={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rx;function Zk(){if(Rx)return Ho;Rx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var d in s)d!=="key"&&(l[d]=s[d])}else l=s;return s=l.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:l}}return Ho.Fragment=t,Ho.jsx=i,Ho.jsxs=i,Ho}var Dx;function Qk(){return Dx||(Dx=1,Jf.exports=Zk()),Jf.exports}var g=Qk(),eh={exports:{}},Ve={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lx;function Wk(){if(Lx)return Ve;Lx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),x=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=x&&D[x]||D["@@iterator"],typeof D=="function"?D:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function w(D,G,L){this.props=D,this.context=G,this.refs=S,this.updater=L||_}w.prototype.isReactComponent={},w.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,G,"setState")},w.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function k(){}k.prototype=w.prototype;function E(D,G,L){this.props=D,this.context=G,this.refs=S,this.updater=L||_}var M=E.prototype=new k;M.constructor=E,N(M,w.prototype),M.isPureReactComponent=!0;var z=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function Z(D,G,L){var F=L.ref;return{$$typeof:e,type:D,key:G,ref:F!==void 0?F:null,props:L}}function j(D,G){return Z(D.type,G,D.props)}function q(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function K(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(L){return G[L]})}var V=/\/+/g;function A(D,G){return typeof D=="object"&&D!==null&&D.key!=null?K(""+D.key):G.toString(36)}function $(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(R,R):(D.status="pending",D.then(function(G){D.status==="pending"&&(D.status="fulfilled",D.value=G)},function(G){D.status==="pending"&&(D.status="rejected",D.reason=G)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function O(D,G,L,F,B){var Q=typeof D;(Q==="undefined"||Q==="boolean")&&(D=null);var J=!1;if(D===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(D.$$typeof){case e:case t:J=!0;break;case m:return J=D._init,O(J(D._payload),G,L,F,B)}}if(J)return B=B(D),J=F===""?"."+A(D,0):F,z(B)?(L="",J!=null&&(L=J.replace(V,"$&/")+"/"),O(B,G,L,"",function(le){return le})):B!=null&&(q(B)&&(B=j(B,L+(B.key==null||D&&D.key===B.key?"":(""+B.key).replace(V,"$&/")+"/")+J)),G.push(B)),1;J=0;var W=F===""?".":F+":";if(z(D))for(var ee=0;ee>>1,C=O[X];if(0>>1;Xs(L,Y))Fs(B,L)?(O[X]=B,O[F]=Y,X=F):(O[X]=L,O[G]=Y,X=G);else if(Fs(B,Y))O[X]=B,O[F]=Y,X=F;else break e}}return U}function s(O,U){var Y=O.sortIndex-U.sortIndex;return Y!==0?Y:O.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],m=1,p=null,x=3,y=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(O){for(var U=i(h);U!==null;){if(U.callback===null)a(h);else if(U.startTime<=O)a(h),U.sortIndex=U.expirationTime,t(f,U);else break;U=i(h)}}function z(O){if(N=!1,M(O),!_)if(i(f)!==null)_=!0,R||(R=!0,K());else{var U=i(h);U!==null&&$(z,U.startTime-O)}}var R=!1,H=-1,I=5,Z=-1;function j(){return S?!0:!(e.unstable_now()-ZO&&j());){var X=p.callback;if(typeof X=="function"){p.callback=null,x=p.priorityLevel;var C=X(p.expirationTime<=O);if(O=e.unstable_now(),typeof C=="function"){p.callback=C,M(O),U=!0;break t}p===i(f)&&a(f),M(O)}else a(f);p=i(f)}if(p!==null)U=!0;else{var D=i(h);D!==null&&$(z,D.startTime-O),U=!1}}break e}finally{p=null,x=Y,y=!1}U=void 0}}finally{U?K():R=!1}}}var K;if(typeof E=="function")K=function(){E(q)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,A=V.port2;V.port1.onmessage=q,K=function(){A.postMessage(null)}}else K=function(){w(q,0)};function $(O,U){H=w(function(){O(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125X?(O.sortIndex=Y,t(h,O),i(f)===null&&O===i(h)&&(N?(k(H),H=-1):N=!0,$(z,Y-X))):(O.sortIndex=C,t(f,O),_||y||(_=!0,R||(R=!0,K()))),O},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(O){var U=x;return function(){var Y=x;x=U;try{return O.apply(this,arguments)}finally{x=Y}}}})(ih)),ih}var Ix;function t2(){return Ix||(Ix=1,nh.exports=e2()),nh.exports}var rh={exports:{}},kn={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Bx;function n2(){if(Bx)return kn;Bx=1;var e=yl();function t(f){var h="https://react.dev/errors/"+f;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),rh.exports=n2(),rh.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Hx;function i2(){if(Hx)return $o;Hx=1;var e=t2(),t=yl(),i=a_();function a(n){var r="https://react.dev/errors/"+n;if(1C||(n.current=X[C],X[C]=null,C--)}function L(n,r){C++,X[C]=n.current,n.current=r}var F=D(null),B=D(null),Q=D(null),J=D(null);function W(n,r){switch(L(Q,r),L(B,n),L(F,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?tx(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=tx(r),n=nx(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(F),L(F,n)}function ee(){G(F),G(B),G(Q)}function le(n){n.memoizedState!==null&&L(J,n);var r=F.current,o=nx(r,n.type);r!==o&&(L(B,n),L(F,o))}function fe(n){B.current===n&&(G(F),G(B)),J.current===n&&(G(J),zo._currentValue=Y)}var be,we;function Ne(n){if(be===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",we=-1)":-1b||te[u]!==oe[b]){var he=` +`+te[u].replace(" at new "," at ");return n.displayName&&he.includes("")&&(he=he.replace("",n.displayName)),he}while(1<=u&&0<=b);break}}}finally{Le=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ne(o):""}function st(n,r){switch(n.tag){case 26:case 27:case 5:return Ne(n.type);case 16:return Ne("Lazy");case 13:return n.child!==r&&r!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return $e(n.type,!1);case 11:return $e(n.type.render,!1);case 1:return $e(n.type,!0);case 31:return Ne("Activity");default:return""}}function Rt(n){try{var r="",o=null;do r+=st(n,o),o=n,n=n.return;while(n);return r}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Vn=e.unstable_shouldYield,wn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,ln=e.log,En=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof ln=="function"&&En(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:_r,jn=Math.log,cn=Math.LN2;function _r(n){return n>>>=0,n===0?32:31-(jn(n)/cn|0)|0}var nt=256,Yn=262144,Cn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ne(n,r,o){var u=n.pendingLanes;if(u===0)return 0;var b=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?b=hn(u):(T&=P,T!==0?b=hn(T):o||(o=P&~n,o!==0&&(b=hn(o))))):(P=u&~v,P!==0?b=hn(P):T!==0?b=hn(T):o||(o=u&~n,o!==0&&(b=hn(o)))),b===0?0:r!==0&&r!==b&&(r&v)===0&&(v=b&-b,o=r&-r,v>=o||v===32&&(o&4194048)!==0)?r:b}function me(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Ee(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pe(){var n=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),n}function St(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function gt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Me(n,r,o,u,b,v){var T=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var P=n.entanglements,te=n.expirationTimes,oe=n.hiddenUpdates;for(o=T&~o;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Xa=/[\n"\\]/g;function Sn(n){return n.replace(Xa,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function da(n,r,o,u,b,v,T,P){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),r!=null?T==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+_t(r)):n.value!==""+_t(r)&&(n.value=""+_t(r)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),r!=null?Ar(n,T,_t(r)):o!=null?Ar(n,T,_t(o)):u!=null&&n.removeAttribute("value"),b==null&&v!=null&&(n.defaultChecked=!!v),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function wi(n,r,o,u,b,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){kr(n);return}o=o!=null?""+_t(o):"",r=r!=null?""+_t(r):o,P||r===n.value||(n.value=r),n.defaultValue=r}u=u??b,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),kr(n)}function Ar(n,r,o){r==="number"&&Tr(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function un(n,r,o,u){if(n=n.options,r){r={};for(var b=0;b"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(Wi)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{Wu=!1}var Or=null,Ju=null,Rl=null;function ng(){if(Rl)return Rl;var n,r=Ju,o=r.length,u,b="value"in Or?Or.value:Or.textContent,v=b.length;for(n=0;n=no),lg=" ",cg=!1;function ug(n,r){switch(n){case"keyup":return xS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Za=!1;function vS(n,r){switch(n){case"compositionend":return dg(r);case"keypress":return r.which!==32?null:(cg=!0,lg);case"textInput":return n=r.data,n===lg&&cg?null:n;default:return null}}function _S(n,r){if(Za)return n==="compositionend"||!rd&&ug(n,r)?(n=ng(),Rl=Ju=Or=null,Za=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=yg(o)}}function _g(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?_g(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function wg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Tr(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=Tr(n.document)}return r}function od(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var CS=Wi&&"documentMode"in document&&11>=document.documentMode,Qa=null,ld=null,so=null,cd=!1;function Eg(n,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;cd||Qa==null||Qa!==Tr(u)||(u=Qa,"selectionStart"in u&&od(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),so&&ao(so,u)||(so=u,u=Sc(ld,"onSelect"),0>=T,b-=T,zi=1<<32-ut(r)+b|o<Ke?(at=De,De=null):at=De.sibling;var mt=ce(ae,De,se[Ke],pe);if(mt===null){De===null&&(De=at);break}n&&De&&mt.alternate===null&&r(ae,De),re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,De=at}if(Ke===se.length)return o(ae,De),ot&&er(ae,Ke),Ie;if(De===null){for(;KeKe?(at=De,De=null):at=De.sibling;var Jr=ce(ae,De,mt.value,pe);if(Jr===null){De===null&&(De=at);break}n&&De&&Jr.alternate===null&&r(ae,De),re=v(Jr,re,Ke),ht===null?Ie=Jr:ht.sibling=Jr,ht=Jr,De=at}if(mt.done)return o(ae,De),ot&&er(ae,Ke),Ie;if(De===null){for(;!mt.done;Ke++,mt=se.next())mt=ge(ae,mt.value,pe),mt!==null&&(re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return ot&&er(ae,Ke),Ie}for(De=u(De);!mt.done;Ke++,mt=se.next())mt=de(De,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&De.delete(mt.key===null?Ke:mt.key),re=v(mt,re,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&De.forEach(function(Kk){return r(ae,Kk)}),ot&&er(ae,Ke),Ie}function Nt(ae,re,se,pe){if(typeof se=="object"&&se!==null&&se.type===N&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case y:e:{for(var Ie=se.key;re!==null;){if(re.key===Ie){if(Ie=se.type,Ie===N){if(re.tag===7){o(ae,re.sibling),pe=b(re,se.props.children),pe.return=ae,ae=pe;break e}}else if(re.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&wa(Ie)===re.type){o(ae,re.sibling),pe=b(re,se.props),ho(pe,se),pe.return=ae,ae=pe;break e}o(ae,re);break}else r(ae,re);re=re.sibling}se.type===N?(pe=ba(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=ql(se.type,se.key,se.props,null,ae.mode,pe),ho(pe,se),pe.return=ae,ae=pe)}return T(ae);case _:e:{for(Ie=se.key;re!==null;){if(re.key===Ie)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){o(ae,re.sibling),pe=b(re,se.children||[]),pe.return=ae,ae=pe;break e}else{o(ae,re);break}else r(ae,re);re=re.sibling}pe=gd(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case I:return se=wa(se),Nt(ae,re,se,pe)}if($(se))return Ae(ae,re,se,pe);if(K(se)){if(Ie=K(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,re,se,pe)}if(typeof se.then=="function")return Nt(ae,re,Kl(se),pe);if(se.$$typeof===E)return Nt(ae,re,Gl(ae,se),pe);Zl(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(o(ae,re.sibling),pe=b(re,se),pe.return=ae,ae=pe):(o(ae,re),pe=pd(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):o(ae,re)}return function(ae,re,se,pe){try{fo=0;var Ie=Nt(ae,re,se,pe);return ls=null,Ie}catch(De){if(De===os||De===Yl)throw De;var ht=Kn(29,De,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Na=Vg(!0),Yg=Vg(!1),zr=!1;function Ad(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ir(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Br(n,r,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var b=u.pending;return b===null?r.next=r:(r.next=b.next,b.next=r),u.pending=r,r=$l(n),Mg(n,null,o),r}return Hl(n,u,r,o),$l(n)}function mo(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Ue(n,o)}}function Md(n,r){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var b=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?b=v=T:v=v.next=T,o=o.next}while(o!==null);v===null?b=v=r:v=v.next=r}else b=v=r;o={baseState:u.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var Od=!1;function po(){if(Od){var n=ss;if(n!==null)throw n}}function go(n,r,o,u){Od=!1;var b=n.updateQueue;zr=!1;var v=b.firstBaseUpdate,T=b.lastBaseUpdate,P=b.shared.pending;if(P!==null){b.shared.pending=null;var te=P,oe=te.next;te.next=null,T===null?v=oe:T.next=oe,T=te;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=oe:P.next=oe,he.lastBaseUpdate=te))}if(v!==null){var ge=b.baseState;T=0,he=oe=te=null,P=v;do{var ce=P.lane&-536870913,de=ce!==P.lane;if(de?(rt&ce)===ce:(u&ce)===ce){ce!==0&&ce===as&&(Od=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=n,He=P;ce=r;var Nt=o;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,ce);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,ce=typeof Ae=="function"?Ae.call(Nt,ge,ce):Ae,ce==null)break e;ge=p({},ge,ce);break e;case 2:zr=!0}}ce=P.callback,ce!==null&&(n.flags|=64,de&&(n.flags|=8192),de=b.callbacks,de===null?b.callbacks=[ce]:de.push(ce))}else de={lane:ce,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(oe=he=de,te=ge):he=he.next=de,T|=ce;if(P=P.next,P===null){if(P=b.shared.pending,P===null)break;de=P,P=de.next,de.next=null,b.lastBaseUpdate=de,b.shared.pending=null}}while(!0);he===null&&(te=ge),b.baseState=te,b.firstBaseUpdate=oe,b.lastBaseUpdate=he,v===null&&(b.shared.lanes=0),Pr|=T,n.lanes=T,n.memoizedState=ge}}function Xg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Kg(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;nv?v:8;var T=O.T,P={};O.T=P,Zd(n,!1,r,o);try{var te=b(),oe=O.S;if(oe!==null&&oe(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=BS(te,u);yo(n,r,he,ei(n))}else yo(n,r,u,ei(n))}catch(ge){yo(n,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{U.p=v,T!==null&&P.types!==null&&(T.types=P.types),O.T=T}}function FS(){}function Xd(n,r,o,u){if(n.tag!==5)throw Error(a(476));var b=Tb(n).queue;kb(n,b,r,Y,o===null?FS:function(){return Ab(n),o(u)})}function Tb(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:Y},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Ab(n){var r=Tb(n);r.next===null&&(r=n.alternate.memoizedState),yo(n,r.next.queue,{},ei())}function Kd(){return yn(zo)}function Cb(){return Qt().memoizedState}function Mb(){return Qt().memoizedState}function GS(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=ei();n=Ir(o);var u=Br(r,n,o);u!==null&&($n(u,r,o),mo(u,r,o)),r={cache:Nd()},n.payload=r;return}r=r.return}}function VS(n,r,o){var u=ei();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},sc(n)?Rb(r,o):(o=hd(n,r,o,u),o!==null&&($n(o,n,u),Db(o,r,u)))}function Ob(n,r,o){var u=ei();yo(n,r,o,u)}function yo(n,r,o,u){var b={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(sc(n))Rb(r,b);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var T=r.lastRenderedState,P=v(T,o);if(b.hasEagerState=!0,b.eagerState=P,Xn(P,T))return Hl(n,r,b,0),kt===null&&Ul(),!1}catch{}finally{}if(o=hd(n,r,b,u),o!==null)return $n(o,n,u),Db(o,r,u),!0}return!1}function Zd(n,r,o,u){if(u={lane:2,revertLane:Cf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},sc(n)){if(r)throw Error(a(479))}else r=hd(n,o,u,2),r!==null&&$n(r,n,2)}function sc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function Rb(n,r){us=Jl=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function Db(n,r,o){if((o&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Ue(n,o)}}var vo={readContext:yn,use:nc,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};vo.useEffectEvent=Gt;var Lb={readContext:yn,use:nc,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:bb,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,rc(4194308,4,_b.bind(null,r,n),o)},useLayoutEffect:function(n,r){return rc(4194308,4,n,r)},useInsertionEffect:function(n,r){rc(4,2,n,r)},useMemo:function(n,r){var o=Rn();r=r===void 0?null:r;var u=n();if(Sa){Wt(!0);try{n()}finally{Wt(!1)}}return o.memoizedState=[u,r],u},useReducer:function(n,r,o){var u=Rn();if(o!==void 0){var b=o(r);if(Sa){Wt(!0);try{o(r)}finally{Wt(!1)}}}else b=r;return u.memoizedState=u.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},u.queue=n,n=n.dispatch=VS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Pd(n);var r=n.queue,o=Ob.bind(null,Xe,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:Vd,useDeferredValue:function(n,r){var o=Rn();return Yd(o,n,r)},useTransition:function(){var n=Pd(!1);return n=kb.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var u=Xe,b=Rn();if(ot){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),kt===null)throw Error(a(349));(rt&127)!==0||tb(u,r,o)}b.memoizedState=o;var v={value:o,getSnapshot:r};return b.queue=v,bb(ib.bind(null,u,v,n),[n]),u.flags|=2048,fs(9,{destroy:void 0},nb.bind(null,u,v,o,r),null),o},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(ot){var o=Ii,u=zi;o=(u&~(1<<32-ut(u)-1)).toString(32)+o,r="_"+r+"R_"+o,o=ec++,0<\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?T.createElement("select",{is:u.is}):T.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?T.createElement(b,{is:u.is}):T.createElement(b)}}v[Ut]=r,v[mn]=u;e:for(T=r.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===r)break e;for(;T.sibling===null;){if(T.return===null||T.return===r)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}r.stateNode=v;e:switch(_n(v,b,u),b){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&sr(r)}}return Lt(r),df(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&sr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=Q.current,is(r)){if(n=r.stateNode,o=r.memoizedProps,u=null,b=xn,b!==null)switch(b.tag){case 27:case 5:u=b.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||J0(n.nodeValue,o)),n||Lr(r,!0)}else n=kc(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return Lt(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(u=is(r),o!==null){if(n===null){if(!u)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Ut]=r}else xa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),n=!1}else o=vd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(Qn(r),r):(Qn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return Lt(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=is(r),u!==null&&u.dehydrated!==null){if(n===null){if(!b)throw Error(a(318));if(b=r.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(a(317));b[Ut]=r}else xa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),b=!1}else b=vd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return r.flags&256?(Qn(r),r):(Qn(r),null)}return Qn(r),(r.flags&128)!==0?(r.lanes=o,r):(o=u!==null,n=n!==null&&n.memoizedState!==null,o&&(u=r.child,b=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(b=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==b&&(u.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),dc(r,r.updateQueue),Lt(r),null);case 4:return ee(),n===null&&Df(r.stateNode.containerInfo),Lt(r),null;case 10:return nr(r.type),Lt(r),null;case 19:if(G(Zt),u=r.memoizedState,u===null)return Lt(r),null;if(b=(r.flags&128)!==0,v=u.rendering,v===null)if(b)wo(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Wl(n),v!==null){for(r.flags|=128,wo(u,!1),n=v.updateQueue,r.updateQueue=n,dc(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Og(o,n),o=o.sibling;return L(Zt,Zt.current&1|2),ot&&er(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>gc&&(r.flags|=128,b=!0,wo(u,!1),r.lanes=4194304)}else{if(!b)if(n=Wl(v),n!==null){if(r.flags|=128,b=!0,n=n.updateQueue,r.updateQueue=n,dc(r,n),wo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!ot)return Lt(r),null}else 2*ct()-u.renderingStartTime>gc&&o!==536870912&&(r.flags|=128,b=!0,wo(u,!1),r.lanes=4194304);u.isBackwards?(v.sibling=r.child,r.child=v):(n=u.last,n!==null?n.sibling=v:r.child=v,u.last=v)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ct(),n.sibling=null,o=Zt.current,L(Zt,b?o&1|2:o&1),ot&&er(r,u.treeForkCount),n):(Lt(r),null);case 22:case 23:return Qn(r),Dd(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(o&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),o=r.updateQueue,o!==null&&dc(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048),n!==null&&G(_a),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),nr(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function QS(n,r){switch(xd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return nr(en),ee(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return fe(r),null;case 31:if(r.memoizedState!==null){if(Qn(r),r.alternate===null)throw Error(a(340));xa()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Qn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));xa()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return G(Zt),null;case 4:return ee(),null;case 10:return nr(r.type),null;case 22:case 23:return Qn(r),Dd(),n!==null&&G(_a),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return nr(en),null;case 25:return null;default:return null}}function r0(n,r){switch(xd(r),r.tag){case 3:nr(en),ee();break;case 26:case 27:case 5:fe(r);break;case 4:ee();break;case 31:r.memoizedState!==null&&Qn(r);break;case 13:Qn(r);break;case 19:G(Zt);break;case 10:nr(r.type);break;case 22:case 23:Qn(r),Dd(),n!==null&&G(_a);break;case 24:nr(en)}}function Eo(n,r){try{var o=r.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var b=u.next;o=b;do{if((o.tag&n)===n){u=void 0;var v=o.create,T=o.inst;u=v(),T.destroy=u}o=o.next}while(o!==b)}}catch(P){yt(r,r.return,P)}}function $r(n,r,o){try{var u=r.updateQueue,b=u!==null?u.lastEffect:null;if(b!==null){var v=b.next;u=v;do{if((u.tag&n)===n){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,b=r;var te=o,oe=P;try{oe()}catch(he){yt(b,te,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function a0(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{Kg(r,o)}catch(u){yt(n,n.return,u)}}}function s0(n,r,o){o.props=ka(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){yt(n,r,u)}}function No(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(b){yt(n,r,b)}}function Bi(n,r){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(b){yt(n,r,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(b){yt(n,r,b)}else o.current=null}function o0(n){var r=n.type,o=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(b){yt(n,n.return,b)}}function ff(n,r,o){try{var u=n.stateNode;yk(u,n.type,o,r),u[mn]=r}catch(b){yt(n,n.return,b)}}function l0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Xr(n.type)||n.tag===4}function hf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||l0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Xr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function mf(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Xr(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(mf(n,r,o),n=n.sibling;n!==null;)mf(n,r,o),n=n.sibling}function fc(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(u!==4&&(u===27&&Xr(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(fc(n,r,o),n=n.sibling;n!==null;)fc(n,r,o),n=n.sibling}function c0(n){var r=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,b=r.attributes;b.length;)r.removeAttributeNode(b[0]);_n(r,u,o),r[Ut]=n,r[mn]=o}catch(v){yt(n,n.return,v)}}var or=!1,rn=!1,pf=!1,u0=typeof WeakSet=="function"?WeakSet:Set,gn=null;function WS(n,r){if(n=n.containerInfo,zf=Dc,n=wg(n),od(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var b=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var T=0,P=-1,te=-1,oe=0,he=0,ge=n,ce=null;t:for(;;){for(var de;ge!==o||b!==0&&ge.nodeType!==3||(P=T+b),ge!==v||u!==0&&ge.nodeType!==3||(te=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(de=ge.firstChild)!==null;)ce=ge,ge=de;for(;;){if(ge===n)break t;if(ce===o&&++oe===b&&(P=T),ce===v&&++he===u&&(te=T),(de=ge.nextSibling)!==null)break;ge=ce,ce=ge.parentNode}ge=de}o=P===-1||te===-1?null:{start:P,end:te}}else o=null}o=o||{start:0,end:0}}else o=null;for(If={focusedElem:n,selectionRange:o},Dc=!1,gn=r;gn!==null;)if(r=gn,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,gn=n;else for(;gn!==null;){switch(r=gn,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o title"))),_n(v,u,o),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=gx("link","href",b).get(u+(o.href||""));if(T){for(var P=0;PNt&&(T=Nt,Nt=He,He=T);var ae=vg(P,He),re=vg(P,Nt);if(ae&&re&&(de.rangeCount!==1||de.anchorNode!==ae.node||de.anchorOffset!==ae.offset||de.focusNode!==re.node||de.focusOffset!==re.offset)){var se=ge.createRange();se.setStart(ae.node,ae.offset),de.removeAllRanges(),He>Nt?(de.addRange(se),de.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),de.addRange(se))}}}}for(ge=[],de=P;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;Po?32:o,O.T=null,o=wf,wf=null;var v=Gr,T=fr;if(dn=0,bs=Gr=null,fr=0,(pt&6)!==0)throw Error(a(331));var P=pt;if(pt|=4,_0(v.current),x0(v,v.current,T,o),pt=P,Mo(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{U.p=b,O.T=u,U0(n,r)}}function $0(n,r,o){r=li(o,r),r=ef(n.stateNode,r,2),n=Br(n,r,2),n!==null&&(gt(n,2),Ui(n))}function yt(n,r,o){if(n.tag===3)$0(n,n,o);else for(;r!==null;){if(r.tag===3){$0(r,n,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Fr===null||!Fr.has(u))){n=li(o,n),o=qb(2),u=Br(r,o,2),u!==null&&(Pb(o,u,r,n),gt(u,2),Ui(u));break}}r=r.return}}function kf(n,r,o){var u=n.pingCache;if(u===null){u=n.pingCache=new tk;var b=new Set;u.set(r,b)}else b=u.get(r),b===void 0&&(b=new Set,u.set(r,b));b.has(o)||(xf=!0,b.add(o),n=sk.bind(null,n,r,o),r.then(n,n))}function sk(n,r,o){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,kt===n&&(rt&o)===o&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-pc?(pt&2)===0&&xs(n,0):yf|=o,gs===rt&&(gs=0)),Ui(n)}function q0(n,r){r===0&&(r=Pe()),n=ga(n,r),n!==null&&(gt(n,r),Ui(n))}function ok(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),q0(n,o)}function lk(n,r){var o=0;switch(n.tag){case 31:case 13:var u=n.stateNode,b=n.memoizedState;b!==null&&(o=b.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),q0(n,o)}function ck(n,r){return Pt(n,r)}var wc=null,vs=null,Tf=!1,Ec=!1,Af=!1,Yr=0;function Ui(n){n!==vs&&n.next===null&&(vs===null?wc=vs=n:vs=vs.next=n),Ec=!0,Tf||(Tf=!0,dk())}function Mo(n,r){if(!Af&&Ec){Af=!0;do for(var o=!1,u=wc;u!==null;){if(n!==0){var b=u.pendingLanes;if(b===0)var v=0;else{var T=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=b&~(T&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,V0(u,v))}else v=rt,v=ne(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||me(u,v)||(o=!0,V0(u,v));u=u.next}while(o);Af=!1}}function uk(){P0()}function P0(){Ec=Tf=!1;var n=0;Yr!==0&&_k()&&(n=Yr);for(var r=ct(),o=null,u=wc;u!==null;){var b=u.next,v=F0(u,r);v===0?(u.next=null,o===null?wc=b:o.next=b,b===null&&(vs=o)):(o=u,(n!==0||(v&3)!==0)&&(Ec=!0)),u=b}dn!==0&&dn!==5||Mo(n),Yr!==0&&(Yr=0)}function F0(n,r){for(var o=n.suspendedLanes,u=n.pingedLanes,b=n.expirationTimes,v=n.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&ex(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function fx(n,r,o){var u=_s;if(u&&typeof r=="string"&&r){var b=Sn(r);b='link[rel="'+n+'"][href="'+b+'"]',typeof o=="string"&&(b+='[crossorigin="'+o+'"]'),dx.has(b)||(dx.add(b),n={rel:n,crossOrigin:o,href:r},u.querySelector(b)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Mk(n){hr.D(n),fx("dns-prefetch",n,null)}function Ok(n,r){hr.C(n,r),fx("preconnect",n,r)}function Rk(n,r,o){hr.L(n,r,o);var u=_s;if(u&&n&&r){var b='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(b+='[imagesrcset="'+Sn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(b+='[imagesizes="'+Sn(o.imageSizes)+'"]')):b+='[href="'+Sn(n)+'"]';var v=b;switch(r){case"style":v=ws(n);break;case"script":v=Es(n)}mi.has(v)||(n=p({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),mi.set(v,n),u.querySelector(b)!==null||r==="style"&&u.querySelector(Lo(v))||r==="script"&&u.querySelector(jo(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Dk(n,r){hr.m(n,r);var o=_s;if(o&&n){var u=r&&typeof r.as=="string"?r.as:"script",b='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=b;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Es(n)}if(!mi.has(v)&&(n=p({rel:"modulepreload",href:n},r),mi.set(v,n),o.querySelector(b)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(jo(v)))return}u=o.createElement("link"),_n(u,"link",n),Ft(u),o.head.appendChild(u)}}}function Lk(n,r,o){hr.S(n,r,o);var u=_s;if(u&&n){var b=Li(u).hoistableStyles,v=ws(n);r=r||"default";var T=b.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Lo(v)))P.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":r},o),(o=mi.get(v))&&Ff(n,o);var te=T=u.createElement("link");Ft(te),_n(te,"link",n),te._p=new Promise(function(oe,he){te.onload=oe,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Ac(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},b.set(v,T)}}}function jk(n,r){hr.X(n,r);var o=_s;if(o&&n){var u=Li(o).hoistableScripts,b=Es(n),v=u.get(b);v||(v=o.querySelector(jo(b)),v||(n=p({src:n,async:!0},r),(r=mi.get(b))&&Gf(n,r),v=o.createElement("script"),Ft(v),_n(v,"link",n),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function zk(n,r){hr.M(n,r);var o=_s;if(o&&n){var u=Li(o).hoistableScripts,b=Es(n),v=u.get(b);v||(v=o.querySelector(jo(b)),v||(n=p({src:n,async:!0,type:"module"},r),(r=mi.get(b))&&Gf(n,r),v=o.createElement("script"),Ft(v),_n(v,"link",n),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function hx(n,r,o,u){var b=(b=Q.current)?Tc(b):null;if(!b)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=ws(o.href),o=Li(b).hoistableStyles,u=o.get(r),u||(u={type:"style",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=ws(o.href);var v=Li(b).hoistableStyles,T=v.get(n);if(T||(b=b.ownerDocument||b,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=b.querySelector(Lo(n)))&&!v._p&&(T.instance=v,T.state.loading=5),mi.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},mi.set(n,o),v||Ik(b,n,o,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Es(o),o=Li(b).hoistableScripts,u=o.get(r),u||(u={type:"script",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ws(n){return'href="'+Sn(n)+'"'}function Lo(n){return'link[rel="stylesheet"]['+n+"]"}function mx(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function Ik(n,r,o,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),_n(r,"link",o),Ft(r),n.head.appendChild(r))}function Es(n){return'[src="'+Sn(n)+'"]'}function jo(n){return"script[async]"+n}function px(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(o.href)+'"]');if(u)return r.instance=u,Ft(u),u;var b=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",b),Ac(u,o.precedence,n),r.instance=u;case"stylesheet":b=ws(o.href);var v=n.querySelector(Lo(b));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=mx(o),(b=mi.get(b))&&Ff(u,b),v=(n.ownerDocument||n).createElement("link"),Ft(v);var T=v;return T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),r.state.loading|=4,Ac(v,o.precedence,n),r.instance=v;case"script":return v=Es(o.src),(b=n.querySelector(jo(v)))?(r.instance=b,Ft(b),b):(u=o,(b=mi.get(v))&&(u=p({},o),Gf(u,b)),n=n.ownerDocument||n,b=n.createElement("script"),Ft(b),_n(b,"link",u),n.head.appendChild(b),r.instance=b);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Ac(u,o.precedence,n));return r.instance}function Ac(n,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=u.length?u[u.length-1]:null,v=b,T=0;T title"):null)}function Bk(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function xx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Uk(n,r,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var b=ws(u.href),v=r.querySelector(Lo(b));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Mc.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=v,Ft(v);return}v=r.ownerDocument||r,u=mx(u),(b=mi.get(b))&&Ff(u,b),v=v.createElement("link"),Ft(v);var T=v;T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),o.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Mc.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var Vf=0;function Hk(n,r){return n.stylesheets&&n.count===0&&Rc(n,n.stylesheets),0Vf?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(b)}}:null}function Mc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Oc=null;function Rc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Oc=new Map,r.forEach($k,n),Oc=null,Mc.call(n))}function $k(n,r){if(!(r.state.loading&4)){var o=Oc.get(n);if(o)var u=o.get(null);else{o=new Map,Oc.set(n,o);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),th.exports=i2(),th.exports}var a2=r2();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s_=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const s2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase());/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qx=e=>{const t=o2(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var l2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const c2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u2=ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:c,...d},f)=>ie.createElement("svg",{ref:f,...l2,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:s_("lucide",s),...!l&&!c2(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,m])=>ie.createElement(h,m)),...Array.isArray(l)?l:[l]]));/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ce=(e,t)=>{const i=ie.forwardRef(({className:a,...s},l)=>ie.createElement(u2,{ref:l,iconNode:t,className:s_(`lucide-${s2(qx(e))}`,`lucide-${e}`,a),...s}));return i.displayName=qx(e),i};/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],o_=Ce("arrow-left",d2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],js=Ce("arrow-up-right",f2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const h2=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l_=Ce("ban",h2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],p2=Ce("bell-off",m2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const g2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],rp=Ce("bot",g2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],c_=Ce("brain",b2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x2=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],y2=Ce("bug",x2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const v2=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],u_=Ce("calendar-clock",v2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _2=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],w2=Ce("check-check",_2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zs=Ce("check",E2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],d_=Ce("chevron-down",N2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],k2=Ce("chevron-right",S2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ap=Ce("circle-alert",T2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const A2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],f_=Ce("circle-check-big",A2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],M2=Ce("circle-check",C2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const O2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],R2=Ce("circle-dot",O2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],L2=Ce("circle",D2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],h_=Ce("clock",j2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],I2=Ce("code",z2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],al=Ce("copy",B2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],H2=Ce("crosshair",U2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $2=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],q2=Ce("database",$2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const P2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],F2=Ce("eye",P2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G2=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],V2=Ce("file-check-corner",G2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],m_=Ce("file-text",Y2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X2=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],p_=Ce("flag",X2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Z2=Ce("git-merge",K2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],sp=Ce("git-pull-request",Q2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W2=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],J2=Ce("github",W2);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eT=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],tT=Ce("gitlab",eT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],op=Ce("globe",nT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Is=Ce("history",iT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],aT=Ce("image",rT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],oT=Ce("layers",sT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],cT=Ce("layout-dashboard",lT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],dT=Ce("list-todo",uT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jo=Ce("loader-circle",fT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],mT=Ce("lock",hT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],gT=Ce("log-out",pT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bT=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lp=Ce("mail",bT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Px=Ce("message-circle",xT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],vT=Ce("message-square",yT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _T=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],wT=Ce("network",_T);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ET=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],NT=Ce("panel-left-close",ET);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ST=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],kT=Ce("panel-left",ST);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const TT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],AT=Ce("pencil",TT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],MT=Ce("plus",CT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const OT=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],g_=Ce("puzzle",OT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],b_=Ce("radar",RT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const DT=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],LT=Ce("radio",DT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],zT=Ce("refresh-cw",jT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const IT=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],BT=Ce("rocket",IT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const UT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],HT=Ce("rotate-ccw",UT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $T=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],x_=Ce("search",$T);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],PT=Ce("shield-alert",qT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const FT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],du=Ce("shield-check",FT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const GT=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],VT=Ce("sticky-note",GT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const YT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],y_=Ce("terminal",YT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const XT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],KT=Ce("trash-2",XT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ZT=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],QT=Ce("triangle-alert",ZT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const WT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],v_=Ce("users",WT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const JT=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],eA=Ce("wand-sparkles",JT);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tA=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],__=Ce("waypoints",tA);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nA=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],fu=Ce("wrench",nA);/** + * @license lucide-react v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rA=Ce("x",iA),aA={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},sA={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},w_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function Hc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const oA={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function lA(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&oA[t]||null}function cp(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function up(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}const Vs="https://app.strix.ai/api/auth/signup",cA="https://strix.ai/pricing",uA="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function br(e,t){const i=e.includes("?")?"&":"?";return`${e}${i}${uA}&utm_content=${encodeURIComponent(t)}`}function Pi(e,t={}){try{const i={event:e};for(const[s,l]of Object.entries(t))l!==void 0&&(i[s]=l);const a=JSON.stringify(i);typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",a):fetch("/api/event",{method:"POST",body:a,keepalive:!0})}catch{}}function gi(e,t){Pi("cta_clicked",{cta:e,surface:t})}function Ou({label:e="Pro",className:t=""}){return g.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${t}`,style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:e})}function dA({text:e,children:t,className:i=""}){const[a,s]=ie.useState(!1);return g.jsxs("span",{className:`relative inline-flex ${i}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&g.jsx("span",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 w-max max-w-[240px] -translate-x-1/2 rounded-md px-2.5 py-1.5 text-xs text-[#ddd] shadow-lg",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e})]})}function Fx({item:e,surface:t}){const i=e.icon;return g.jsxs("a",{href:br(Vs,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,t),title:e.desc,className:"group block cursor-pointer rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-4 text-left transition-colors hover:border-[#444]",children:[g.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[g.jsx(i,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(Ou,{}),g.jsx(js,{className:"h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]})]}),g.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:e.desc})]})}function fA({feature:e,active:t,onClick:i,collapsed:a=!1}){const s=e.icon;return a?g.jsx("button",{onClick:i,title:`${e.title} (${e.tier})`,className:`group flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${t?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:t?{background:"rgba(255,255,255,0.12)"}:void 0,children:g.jsx(s,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"})}):g.jsxs("button",{onClick:i,className:`group flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${t?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:t?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(s,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:e.title}),g.jsx(Ou,{label:e.tier})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:e.navDesc})]})]})}function Rs({label:e,desc:t,slug:i,icon:a,surface:s}){return g.jsx(dA,{text:t,children:g.jsxs("a",{href:br(Vs,i),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(i,s),className:"group inline-flex items-center gap-2 rounded-lg border border-[#222] bg-[rgba(255,255,255,0.02)] px-3 py-2 text-sm text-[#aaa] transition-colors hover:border-[#444] hover:text-white",children:[g.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsx("span",{children:e}),g.jsx(Ou,{className:"ml-0.5"})]})})}function E_(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{const i=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),N_=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),hu="-",Gx=[],gA="arbitrary..",bA=e=>{const t=yA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return xA(c);const d=c.split(hu),f=d[0]===""&&d.length>1?1:0;return S_(d,f,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=a[c],h=i[c];return f?h?mA(h,f):f:h||Gx}return i[c]||Gx}}},S_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],l=i.nextPart.get(s);if(l){const h=S_(e,t+1,l);if(h)return h}const c=i.validators;if(c===null)return;const d=t===0?e.join(hu):e.slice(t).join(hu),f=c.length;for(let h=0;he.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?gA+a:void 0})(),yA=e=>{const{theme:t,classGroups:i}=e;return vA(i,t)},vA=(e,t)=>{const i=N_();for(const a in e){const s=e[a];dp(s,i,a,t)}return i},dp=(e,t,i,a)=>{const s=e.length;for(let l=0;l{if(typeof e=="string"){wA(e,t,i);return}if(typeof e=="function"){EA(e,t,i,a);return}NA(e,t,i,a)},wA=(e,t,i)=>{const a=e===""?t:k_(t,e);a.classGroupId=i},EA=(e,t,i,a)=>{if(SA(e)){dp(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(pA(i,e))},NA=(e,t,i,a)=>{const s=Object.entries(e),l=s.length;for(let c=0;c{let i=e;const a=t.split(hu),s=a.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,kA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(l,c)=>{i[l]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(l){let c=i[l];if(c!==void 0)return c;if((c=a[l])!==void 0)return s(l,c),c},set(l,c){l in i?i[l]=c:s(l,c)}}},km="!",Vx=":",TA=[],Yx=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),AA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const l=[];let c=0,d=0,f=0,h;const m=s.length;for(let N=0;Nf?h-f:void 0;return Yx(l,y,x,_)};if(t){const s=t+Vx,l=a;a=c=>c.startsWith(s)?l(c.slice(s.length)):Yx(TA,!1,c,void 0,!0)}if(i){const s=a;a=l=>i({className:l,parseClassName:s})}return a},CA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let l=0;l0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},MA=e=>({cache:kA(e.cacheSize),parseClassName:AA(e),sortModifiers:CA(e),postfixLookupClassGroupIds:OA(e),...bA(e)}),OA=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:c}=t,d=[],f=e.trim().split(RA);let h="";for(let m=f.length-1;m>=0;m-=1){const p=f[m],{isExternal:x,modifiers:y,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=i(p);if(x){h=p+(h.length>0?" "+h:h);continue}let w=!!S,k;if(w){const H=N.substring(0,S);k=a(H);const I=k&&c[k]?a(N):void 0;I&&I!==k&&(k=I,w=!1)}else k=a(N);if(!k){if(!w){h=p+(h.length>0?" "+h:h);continue}if(k=a(N),!k){h=p+(h.length>0?" "+h:h);continue}w=!1}const E=y.length===0?"":y.length===1?y[0]:l(y).join(":"),M=_?E+km:E,z=M+k;if(d.indexOf(z)>-1)continue;d.push(z);const R=s(k,w);for(let H=0;H0?" "+h:h)}return h},LA=(...e)=>{let t=0,i,a,s="";for(;t{if(typeof e=="string")return e;let t,i="";for(let a=0;a{let i,a,s,l;const c=f=>{const h=t.reduce((m,p)=>p(m),e());return i=MA(h),a=i.cache.get,s=i.cache.set,l=d,d(f)},d=f=>{const h=a(f);if(h)return h;const m=DA(f,i);return s(f,m),m};return l=c,(...f)=>l(LA(...f))},zA=[],fn=e=>{const t=i=>i[e]||zA;return t.isThemeGetter=!0,t},A_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,IA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,BA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,HA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ea=e=>IA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Hi=e=>!!e&&Number.isInteger(Number(e)),ah=e=>e.endsWith("%")&&We(e.slice(0,-1)),mr=e=>BA.test(e),M_=()=>!0,PA=e=>UA.test(e)&&!HA.test(e),fp=()=>!1,FA=e=>$A.test(e),GA=e=>qA.test(e),VA=e=>!ke(e)&&!Te(e),YA=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),XA=e=>oa(e,D_,fp),ke=e=>A_.test(e),Ca=e=>oa(e,L_,PA),Xx=e=>oa(e,nC,We),KA=e=>oa(e,z_,M_),ZA=e=>oa(e,j_,fp),Kx=e=>oa(e,O_,fp),QA=e=>oa(e,R_,GA),$c=e=>oa(e,I_,FA),Te=e=>C_.test(e),qo=e=>Pa(e,L_),WA=e=>Pa(e,j_),Zx=e=>Pa(e,O_),JA=e=>Pa(e,D_),eC=e=>Pa(e,R_),qc=e=>Pa(e,I_,!0),tC=e=>Pa(e,z_,!0),oa=(e,t,i)=>{const a=A_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},Pa=(e,t,i=!1)=>{const a=C_.exec(e);return a?a[1]?t(a[1]):i:!1},O_=e=>e==="position"||e==="percentage",R_=e=>e==="image"||e==="url",D_=e=>e==="length"||e==="size"||e==="bg-size",L_=e=>e==="length",nC=e=>e==="number",j_=e=>e==="family-name",z_=e=>e==="number"||e==="weight",I_=e=>e==="shadow",iC=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),l=fn("leading"),c=fn("breakpoint"),d=fn("container"),f=fn("spacing"),h=fn("radius"),m=fn("shadow"),p=fn("inset-shadow"),x=fn("text-shadow"),y=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),w=fn("ease"),k=fn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...M(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[Te,ke,f],Z=()=>[ea,"full","auto",...I()],j=()=>[Hi,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Hi,Te,ke]},Hi,Te,ke],K=()=>[Hi,"auto",Te,ke],V=()=>["auto","min","max","fr",Te,ke],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...I()],U=()=>[ea,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[ea,"screen","full","dvw","lvw","svw","min","max","fit",...I()],X=()=>[ea,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],C=()=>[e,Te,ke],D=()=>[...M(),Zx,Kx,{position:[Te,ke]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",JA,XA,{size:[Te,ke]}],F=()=>[ah,qo,Ca],B=()=>["","none","full",h,Te,ke],Q=()=>["",We,qo,Ca],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[We,ah,Zx,Kx],le=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[ea,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[M_],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[VA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",We],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ea,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[YA],columns:[{columns:[We,ke,Te,d]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Hi,"auto",Te,ke]}],basis:[{basis:[ea,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,ea,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Hi,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[d,"screen",...U()]}],"min-w":[{"min-w":[d,"screen","none",...U()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",i,qo,Ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,tC,KA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ah,ke]}],"font-family":[{font:[WA,ZA,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Te,ke]}],"line-clamp":[{"line-clamp":[We,"none",Te,Xx]}],leading:[{leading:[l,...I()]}],"list-image":[{"list-image":["none",Te,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,Ca]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[We,"auto",Te,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[Hi,Te,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hi,Te,ke],radial:["",Te,ke],conic:[Hi,Te,ke]},eC,QA]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,qo,Ca]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",m,qc,$c]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",p,qc,$c]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[We,Ca]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",x,qc,$c]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[We,Te,ke]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Te,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:le()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",y,qc,$c]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",We,Te,ke]}],"hue-rotate":[{"hue-rotate":[We,Te,ke]}],invert:[{invert:["",We,Te,ke]}],saturate:[{saturate:[We,Te,ke]}],sepia:[{sepia:["",We,Te,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,ke]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[We,Te,ke]}],"backdrop-contrast":[{"backdrop-contrast":[We,Te,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Te,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Te,ke]}],"backdrop-invert":[{"backdrop-invert":["",We,Te,ke]}],"backdrop-opacity":[{"backdrop-opacity":[We,Te,ke]}],"backdrop-saturate":[{"backdrop-saturate":[We,Te,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Te,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Te,ke]}],ease:[{ease:["linear","initial",w,Te,ke]}],delay:[{delay:[We,Te,ke]}],animate:[{animate:["none",k,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],zoom:[{zoom:[Hi,Te,ke]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,ke]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[We,qo,Ca,Xx]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rC=jA(iC);function Pc(...e){return rC(hA(e))}function aC(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Tm(e){const t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:aC(e)}function sC(e){return`STRIX-${e}`}function oC(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const lC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uC={};function Qx(e,t){return(uC.jsx?cC:lC).test(e)}const dC=/[ \t\n\f\r]/g;function fC(e){return typeof e=="object"?e.type==="text"?Wx(e.value):!1:Wx(e)}function Wx(e){return e.replace(dC,"")===""}class vl{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}vl.prototype.normal={};vl.prototype.property={};vl.prototype.space=void 0;function B_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new vl(i,a,t)}function Am(e){return e.toLowerCase()}class Gn{constructor(t,i){this.attribute=i,this.property=t}}Gn.prototype.attribute="";Gn.prototype.booleanish=!1;Gn.prototype.boolean=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.defined=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.number=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.property="";Gn.prototype.spaceSeparated=!1;Gn.prototype.space=void 0;let hC=0;const Ge=Fa(),an=Fa(),Cm=Fa(),ve=Fa(),Tt=Fa(),La=Fa(),ti=Fa();function Fa(){return 2**++hC}const Mm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:La,number:ve,overloadedBoolean:Cm,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),sh=Object.keys(Mm);class hp extends Gn{constructor(t,i,a,s){let l=-1;if(super(t,i),Jx(this,"space",s),typeof a=="number")for(;++l4&&i.slice(0,4)==="data"&&xC.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ey,_C);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ey.test(l)){let c=l.replace(bC,vC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=hp}return new s(a,t)}function vC(e){return"-"+e.toLowerCase()}function _C(e){return e.charAt(1).toUpperCase()}const wC=B_([U_,mC,q_,P_,F_],"html"),mp=B_([U_,pC,q_,P_,F_],"svg");function EC(e){return e.join(" ").trim()}var Ss={},oh,ty;function NC(){if(ty)return oh;ty=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,f=` +`,h="/",m="*",p="",x="comment",y="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var k=1,E=1;function M(A){var $=A.match(t);$&&(k+=$.length);var O=A.lastIndexOf(f);E=~O?A.length-O:E+A.length}function z(){var A={line:k,column:E};return function($){return $.position=new R(A),Z(),$}}function R(A){this.start=A,this.end={line:k,column:E},this.source=w.source}R.prototype.content=S;function H(A){var $=new Error(w.source+":"+k+":"+E+": "+A);if($.reason=A,$.filename=w.source,$.line=k,$.column=E,$.source=S,!w.silent)throw $}function I(A){var $=A.exec(S);if($){var O=$[0];return M(O),S=S.slice(O.length),$}}function Z(){I(i)}function j(A){var $;for(A=A||[];$=q();)$!==!1&&A.push($);return A}function q(){var A=z();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var $=2;p!=S.charAt($)&&(m!=S.charAt($)||h!=S.charAt($+1));)++$;if($+=2,p===S.charAt($-1))return H("End of comment missing");var O=S.slice(2,$-2);return E+=2,M(O),S=S.slice($),E+=2,A({type:x,comment:O})}}function K(){var A=z(),$=I(a);if($){if(q(),!I(s))return H("property missing ':'");var O=I(l),U=A({type:y,property:N($[0].replace(e,p)),value:O?N(O[0].replace(e,p)):p});return I(c),U}}function V(){var A=[];j(A);for(var $;$=K();)$!==!1&&(A.push($),j(A));return A}return Z(),V()}function N(S){return S?S.replace(d,p):p}return oh=_,oh}var ny;function SC(){if(ny)return Ss;ny=1;var e=Ss&&Ss.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=i;const t=e(NC());function i(a,s){let l=null;if(!a||typeof a!="string")return l;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;d?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Ss}var Po={},iy;function kC(){if(iy)return Po;iy=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||i.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},d=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,d):h=h.replace(a,d),h.replace(t,c))};return Po.camelCase=f,Po}var Fo,ry;function TC(){if(ry)return Fo;ry=1;var e=Fo&&Fo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(SC()),i=kC();function a(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,f){d&&f&&(c[(0,i.camelCase)(d,l)]=f)}),c}return a.default=a,Fo=a,Fo}var AC=TC();const CC=xl(AC),G_=V_("end"),pp=V_("start");function V_(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function MC(e){const t=pp(e),i=G_(e);if(t&&i)return{start:t,end:i}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ay(e.position):"start"in e||"end"in e?ay(e):"line"in e||"column"in e?Om(e):""}function Om(e){return sy(e&&e.line)+":"+sy(e&&e.column)}function ay(e){return Om(e&&e.start)+"-"+Om(e&&e.end)}function sy(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let s="",l={},c=!1;if(i&&("line"in i&&"column"in i?l={place:i}:"start"in i&&"end"in i?l={place:i}:"type"in i?l={ancestors:[i],place:i.position}:l={...i}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?l.ruleId=a:(l.source=a.slice(0,f),l.ruleId=a.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const d=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=el(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const gp={}.hasOwnProperty,OC=new Map,RC=/[A-Z]/g,DC=new Set(["table","tbody","thead","tfoot","tr"]),LC=new Set(["td","th"]),Y_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=PC(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=qC(i,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?mp:wC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=X_(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function X_(e,t,i){if(t.type==="element")return zC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return IC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return UC(e,t,i);if(t.type==="mdxjsEsm")return BC(e,t);if(t.type==="root")return HC(e,t,i);if(t.type==="text")return $C(e,t)}function zC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=mp,e.schema=s),e.ancestors.push(t);const l=Z_(e,t.tagName,!1),c=FC(e,t);let d=xp(e,t);return DC.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!fC(f):!0})),K_(e,c,l,t),bp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,l,c,i)}function IC(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}sl(e,t.position)}function BC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);sl(e,t.position)}function UC(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=mp,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:Z_(e,t.name,!0),c=GC(e,t),d=xp(e,t);return K_(e,c,l,t),bp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,l,c,i)}function HC(e,t,i){const a={};return bp(a,xp(e,t)),e.create(t,e.Fragment,a,i)}function $C(e,t){return t.value}function K_(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function bp(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function qC(e,t,i){return a;function a(s,l,c,d){const h=Array.isArray(c.children)?i:t;return d?h(l,c,d):h(l,c)}}function PC(e,t){return i;function i(a,s,l,c){const d=Array.isArray(l.children),f=pp(a);return t(s,l,c,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function FC(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&gp.call(t.properties,s)){const l=VC(e,s,t.properties[s]);if(l){const[c,d]=l;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&LC.has(t.tagName)?a=d:i[c]=d}}if(a){const l=i.style||(i.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function GC(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const c=l.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else sl(e,t.position);else{const s=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,l=e.evaluater.evaluateExpression(d.expression)}else sl(e,t.position);else l=a.value===null?!0:a.value;i[s]=l}return i}function xp(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:OC;for(;++as?0:s+t:t=t>s?s:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);l0?(ii(e,e.length,0,t),e):t}const cy={}.hasOwnProperty;function W_(e){const t={};let i=-1;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Mi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=la(/[A-Za-z]/),Tn=la(/[\dA-Za-z]/),tM=la(/[#-'*+\--9=?A-Z^-~]/);function mu(e){return e!==null&&(e<32||e===127)}const Rm=la(/\d/),nM=la(/[\dA-Fa-f]/),iM=la(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function At(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const Ru=la(new RegExp("\\p{P}|\\p{S}","u")),Ia=la(/\s/);function la(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Xs(e){const t=[];let i=-1,a=0,s=0;for(;++i55295&&l<57344){const d=e.charCodeAt(i+1);l<56320&&d>56319&&d<57344?(c=String.fromCharCode(l,d),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+s+1,c=""),s&&(i+=s,s=0)}return t.join("")+e.slice(a)}function lt(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return tt(f)?(e.enter(i),d(f)):t(f)}function d(f){return tt(f)&&l++c))return;const H=t.events.length;let I=H,Z,j;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(Z){j=t.events[I][1].end;break}Z=!0}for(w(a),R=H;RE;){const z=i[M];t.containerState=z[1],z[0].exit.call(t,e)}i.length=E}function k(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function lM(e,t,i){return lt(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bs(e){if(e===null||At(e)||Ia(e))return 1;if(Ru(e))return 2}function Du(e,t,i){const a=[];let s=-1;for(;++s1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const p={...e[a][1].end},x={...e[i][1].start};dy(p,-f),dy(x,f),c={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[a][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},l={type:f>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=pi(h,[["enter",e[a][1],t],["exit",e[a][1],t]])),h=pi(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=pi(h,Du(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),h=pi(h,[["exit",l,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,h=pi(h,[["enter",e[i][1],t],["exit",e[i][1],t]])):m=0,ii(e,a-1,i-a+3,h),i=a+h.length-m-2;break}}for(i=-1;++i0&&tt(R)?lt(e,k,"linePrefix",l+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(fy,N,M)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),E)}function M(R){return e.exit("codeFenced"),t(R)}function z(R,H,I){let Z=0;return j;function j($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),q}function q($){return R.enter("codeFencedFence"),tt($)?lt(R,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):K($)}function K($){return $===d?(R.enter("codeFencedFenceSequence"),V($)):I($)}function V($){return $===d?(Z++,R.consume($),V):Z>=c?(R.exit("codeFencedFenceSequence"),tt($)?lt(R,A,"whitespace")($):A($)):I($)}function A($){return $===null||Be($)?(R.exit("codeFencedFence"),H($)):I($)}}}function vM(e,t,i){const a=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const ch={name:"codeIndented",tokenize:wM},_M={partial:!0,tokenize:EM};function wM(e,t,i){const a=this;return s;function s(h){return e.enter("codeIndented"),lt(e,l,"linePrefix",5)(h)}function l(h){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):i(h)}function c(h){return h===null?f(h):Be(h)?e.attempt(_M,c,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Be(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function EM(e,t,i){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?i(c):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):lt(e,l,"linePrefix",5)(c)}function l(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Be(c)?s(c):i(c)}}const NM={name:"codeText",previous:kM,resolve:SM,tokenize:TM};function SM(e){let t=e.length-4,i=3,a,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const s=i||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Go(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Go(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Go(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function rw(e,t,i,a,s,l,c,d,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return p;function p(w){return w===60?(e.enter(a),e.enter(s),e.enter(l),e.consume(w),e.exit(l),x):w===null||w===32||w===41||mu(w)?i(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function x(w){return w===62?(e.enter(l),e.consume(w),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===62?(e.exit("chunkString"),e.exit(d),x(w)):w===null||w===60||Be(w)?i(w):(e.consume(w),w===92?_:y)}function _(w){return w===60||w===62||w===92?(e.consume(w),y):y(w)}function N(w){return!m&&(w===null||w===41||At(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):m999||y===null||y===91||y===93&&!f||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(y):y===93?(e.exit(l),e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Be(y)||d++>999?(e.exit("chunkString"),m(y)):(e.consume(y),f||(f=!tt(y)),y===92?x:p)}function x(y){return y===91||y===92||y===93?(e.consume(y),d++,p):p(y)}}function sw(e,t,i,a,s,l){let c;return d;function d(x){return x===34||x===39||x===40?(e.enter(a),e.enter(s),e.consume(x),e.exit(s),c=x===40?41:x,f):i(x)}function f(x){return x===c?(e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):(e.enter(l),h(x))}function h(x){return x===c?(e.exit(l),f(c)):x===null?i(x):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),lt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===c||x===null||Be(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?p:m)}function p(x){return x===c||x===92?(e.consume(x),m):m(x)}}function tl(e,t){let i;return a;function a(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,a):tt(s)?lt(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const jM={name:"definition",tokenize:IM},zM={partial:!0,tokenize:BM};function IM(e,t,i){const a=this;let s;return l;function l(y){return e.enter("definition"),c(y)}function c(y){return aw.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return s=Mi(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),f):i(y)}function f(y){return At(y)?tl(e,h)(y):h(y)}function h(y){return rw(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(zM,p,p)(y)}function p(y){return tt(y)?lt(e,x,"whitespace")(y):x(y)}function x(y){return y===null||Be(y)?(e.exit("definition"),a.parser.defined.push(s),t(y)):i(y)}}function BM(e,t,i){return a;function a(d){return At(d)?tl(e,s)(d):i(d)}function s(d){return sw(e,l,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return tt(d)?lt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const UM={name:"hardBreakEscape",tokenize:HM};function HM(e,t,i){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Be(l)?(e.exit("hardBreakEscape"),t(l)):i(l)}}const $M={name:"headingAtx",resolve:qM,tokenize:PM};function qM(e,t){let i=e.length-2,a=3,s,l;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},l={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function PM(e,t,i){let a=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&a++<6?(e.consume(m),c):m===null||At(m)?(e.exit("atxHeadingSequence"),d(m)):i(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Be(m)?(e.exit("atxHeading"),t(m)):tt(m)?lt(e,d,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function h(m){return m===null||m===35||At(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),h)}}const FM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],my=["pre","script","style","textarea"],GM={concrete:!0,name:"htmlFlow",resolveTo:XM,tokenize:KM},VM={partial:!0,tokenize:QM},YM={partial:!0,tokenize:ZM};function XM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KM(e,t,i){const a=this;let s,l,c,d,f;return h;function h(L){return m(L)}function m(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),p}function p(L){return L===33?(e.consume(L),x):L===47?(e.consume(L),l=!0,N):L===63?(e.consume(L),s=3,a.interrupt?t:C):Dn(L)?(e.consume(L),c=String.fromCharCode(L),S):i(L)}function x(L){return L===45?(e.consume(L),s=2,y):L===91?(e.consume(L),s=5,d=0,_):Dn(L)?(e.consume(L),s=4,a.interrupt?t:C):i(L)}function y(L){return L===45?(e.consume(L),a.interrupt?t:C):i(L)}function _(L){const F="CDATA[";return L===F.charCodeAt(d++)?(e.consume(L),d===F.length?a.interrupt?t:K:_):i(L)}function N(L){return Dn(L)?(e.consume(L),c=String.fromCharCode(L),S):i(L)}function S(L){if(L===null||L===47||L===62||At(L)){const F=L===47,B=c.toLowerCase();return!F&&!l&&my.includes(B)?(s=1,a.interrupt?t(L):K(L)):FM.includes(c.toLowerCase())?(s=6,F?(e.consume(L),w):a.interrupt?t(L):K(L)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(L):l?k(L):E(L))}return L===45||Tn(L)?(e.consume(L),c+=String.fromCharCode(L),S):i(L)}function w(L){return L===62?(e.consume(L),a.interrupt?t:K):i(L)}function k(L){return tt(L)?(e.consume(L),k):j(L)}function E(L){return L===47?(e.consume(L),j):L===58||L===95||Dn(L)?(e.consume(L),M):tt(L)?(e.consume(L),E):j(L)}function M(L){return L===45||L===46||L===58||L===95||Tn(L)?(e.consume(L),M):z(L)}function z(L){return L===61?(e.consume(L),R):tt(L)?(e.consume(L),z):E(L)}function R(L){return L===null||L===60||L===61||L===62||L===96?i(L):L===34||L===39?(e.consume(L),f=L,H):tt(L)?(e.consume(L),R):I(L)}function H(L){return L===f?(e.consume(L),f=null,Z):L===null||Be(L)?i(L):(e.consume(L),H)}function I(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||At(L)?z(L):(e.consume(L),I)}function Z(L){return L===47||L===62||tt(L)?E(L):i(L)}function j(L){return L===62?(e.consume(L),q):i(L)}function q(L){return L===null||Be(L)?K(L):tt(L)?(e.consume(L),q):i(L)}function K(L){return L===45&&s===2?(e.consume(L),O):L===60&&s===1?(e.consume(L),U):L===62&&s===4?(e.consume(L),D):L===63&&s===3?(e.consume(L),C):L===93&&s===5?(e.consume(L),X):Be(L)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(VM,G,V)(L)):L===null||Be(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),K)}function V(L){return e.check(YM,A,G)(L)}function A(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return L===null||Be(L)?V(L):(e.enter("htmlFlowData"),K(L))}function O(L){return L===45?(e.consume(L),C):K(L)}function U(L){return L===47?(e.consume(L),c="",Y):K(L)}function Y(L){if(L===62){const F=c.toLowerCase();return my.includes(F)?(e.consume(L),D):K(L)}return Dn(L)&&c.length<8?(e.consume(L),c+=String.fromCharCode(L),Y):K(L)}function X(L){return L===93?(e.consume(L),C):K(L)}function C(L){return L===62?(e.consume(L),D):L===45&&s===2?(e.consume(L),C):K(L)}function D(L){return L===null||Be(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),D)}function G(L){return e.exit("htmlFlow"),t(L)}}function ZM(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):i(c)}function l(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function QM(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(_l,t,i)}}const WM={name:"htmlText",tokenize:JM};function JM(e,t,i){const a=this;let s,l,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),f}function f(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),z):C===63?(e.consume(C),E):Dn(C)?(e.consume(C),I):i(C)}function h(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),l=0,_):Dn(C)?(e.consume(C),k):i(C)}function m(C){return C===45?(e.consume(C),y):i(C)}function p(C){return C===null?i(C):C===45?(e.consume(C),x):Be(C)?(c=p,U(C)):(e.consume(C),p)}function x(C){return C===45?(e.consume(C),y):p(C)}function y(C){return C===62?O(C):C===45?x(C):p(C)}function _(C){const D="CDATA[";return C===D.charCodeAt(l++)?(e.consume(C),l===D.length?N:_):i(C)}function N(C){return C===null?i(C):C===93?(e.consume(C),S):Be(C)?(c=N,U(C)):(e.consume(C),N)}function S(C){return C===93?(e.consume(C),w):N(C)}function w(C){return C===62?O(C):C===93?(e.consume(C),w):N(C)}function k(C){return C===null||C===62?O(C):Be(C)?(c=k,U(C)):(e.consume(C),k)}function E(C){return C===null?i(C):C===63?(e.consume(C),M):Be(C)?(c=E,U(C)):(e.consume(C),E)}function M(C){return C===62?O(C):E(C)}function z(C){return Dn(C)?(e.consume(C),R):i(C)}function R(C){return C===45||Tn(C)?(e.consume(C),R):H(C)}function H(C){return Be(C)?(c=H,U(C)):tt(C)?(e.consume(C),H):O(C)}function I(C){return C===45||Tn(C)?(e.consume(C),I):C===47||C===62||At(C)?Z(C):i(C)}function Z(C){return C===47?(e.consume(C),O):C===58||C===95||Dn(C)?(e.consume(C),j):Be(C)?(c=Z,U(C)):tt(C)?(e.consume(C),Z):O(C)}function j(C){return C===45||C===46||C===58||C===95||Tn(C)?(e.consume(C),j):q(C)}function q(C){return C===61?(e.consume(C),K):Be(C)?(c=q,U(C)):tt(C)?(e.consume(C),q):Z(C)}function K(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),s=C,V):Be(C)?(c=K,U(C)):tt(C)?(e.consume(C),K):(e.consume(C),A)}function V(C){return C===s?(e.consume(C),s=void 0,$):C===null?i(C):Be(C)?(c=V,U(C)):(e.consume(C),V)}function A(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||At(C)?Z(C):(e.consume(C),A)}function $(C){return C===47||C===62||At(C)?Z(C):i(C)}function O(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):i(C)}function U(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Y}function Y(C){return tt(C)?lt(e,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):X(C)}function X(C){return e.enter("htmlTextData"),c(C)}}const _p={name:"labelEnd",resolveAll:iO,resolveTo:rO,tokenize:aO},eO={tokenize:sO},tO={tokenize:oO},nO={tokenize:lO};function iO(e){let t=-1;const i=[];for(;++t=3&&(h===null||Be(h))?(e.exit("thematicBreak"),t(h)):i(h)}function f(h){return h===s?(e.consume(h),a++,f):(e.exit("thematicBreakSequence"),tt(h)?lt(e,d,"whitespace")(h):d(h))}}const qn={continuation:{tokenize:xO},exit:vO,name:"list",tokenize:bO},pO={partial:!0,tokenize:_O},gO={partial:!0,tokenize:yO};function bO(e,t,i){const a=this,s=a.events[a.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(y){const _=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:Rm(y)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(au,i,h)(y):h(y);if(!a.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(y)}return i(y)}function f(y){return Rm(y)&&++c<10?(e.consume(y),f):(!a.interrupt||c<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):i(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,e.check(_l,a.interrupt?i:m,e.attempt(pO,x,p))}function m(y){return a.containerState.initialBlankLine=!0,l++,x(y)}function p(y){return tt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),x):i(y)}function x(y){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function xO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(_l,s,l);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,lt(e,t,"listItemIndent",a.containerState.size+1)(d)}function l(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(gO,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,lt(e,e.attempt(qn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function yO(e,t,i){const a=this;return lt(e,s,"listItemIndent",a.containerState.size+1);function s(l){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(l):i(l)}}function vO(e){e.exit(this.containerState.type)}function _O(e,t,i){const a=this;return lt(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=a.events[a.events.length-1];return!tt(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):i(l)}}const py={name:"setextUnderline",resolveTo:wO,tokenize:EO};function wO(e,t){let i=e.length,a,s,l;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!l&&e[i][1].type==="definition"&&(l=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function EO(e,t,i){const a=this;let s;return l;function l(h){let m=a.events.length,p;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){p=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),s=h,c(h)):i(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),tt(h)?lt(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Be(h)?(e.exit("setextHeadingLine"),t(h)):i(h)}}const NO={tokenize:SO};function SO(e){const t=this,i=e.attempt(_l,a,e.attempt(this.parser.constructs.flowInitial,s,lt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(MM,s)),"linePrefix")));return i;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const kO={resolveAll:lw()},TO=ow("string"),AO=ow("text");function ow(e){return{resolveAll:lw(e==="text"?CO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],l=i.attempt(s,c,d);return c;function c(m){return h(m)?l(m):d(m)}function d(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),f}function f(m){return h(m)?(i.exit("data"),l(m)):(i.consume(m),f)}function h(m){if(m===null)return!0;const p=s[m];let x=-1;if(p)for(;++x-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function qO(e,t){let i=-1;const a=[];let s;for(;++i0){const ln=Oe.tokenStack[Oe.tokenStack.length-1];(ln[1]||by).call(Oe,void 0,ln[0])}for(xe.position={start:ta(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:ta(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function n5(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function i5(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function r5(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Xs(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=l+1,d+=1,e.footnoteCounts.set(a,d);const f={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function a5(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function s5(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function dw(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function o5(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return dw(e,t);const s={src:Xs(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function l5(e,t){const i={src:Xs(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function c5(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function u5(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return dw(e,t);const s={href:Xs(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function d5(e,t){const i={href:Xs(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function f5(e,t,i){const a=e.all(t),s=i?h5(i):fw(t),l={},c=[];if(typeof t.checked=="boolean"){const m=a[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;for(;++d1}function m5(e,t){const i={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++s0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=pp(t.children[1]),f=G_(t.children[t.children.length-1]);d&&f&&(c.position={start:d,end:f}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function y5(e,t,i){const a=i?i.children:void 0,l=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let f=-1;const h=[];for(;++f0,!0),a[0]),s=a.index+a[0].length,a=i.exec(t);return l.push(vy(t.slice(s),s>0,!1)),l.join("")}function vy(e,t,i){let a=0,s=e.length;if(t){let l=e.codePointAt(a);for(;l===xy||l===yy;)a++,l=e.codePointAt(a)}if(i){let l=e.codePointAt(s-1);for(;l===xy||l===yy;)s--,l=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function w5(e,t){const i={type:"text",value:_5(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function E5(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const N5={blockquote:JO,break:e5,code:t5,delete:n5,emphasis:i5,footnoteReference:r5,heading:a5,html:s5,imageReference:o5,image:l5,inlineCode:c5,linkReference:u5,link:d5,listItem:f5,list:m5,paragraph:p5,root:g5,strong:b5,table:x5,tableCell:v5,tableRow:y5,text:w5,thematicBreak:E5,toml:Fc,yaml:Fc,definition:Fc,footnoteDefinition:Fc};function Fc(){}const hw=-1,Lu=0,nl=1,pu=2,wp=3,Ep=4,Np=5,Sp=6,mw=7,pw=8,gw=typeof self=="object"?self:globalThis,_y=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new gw[e](t)},S5=(e,t)=>{const i=(s,l)=>(e.set(l,s),s),a=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case Lu:case hw:return i(c,s);case nl:{const d=i([],s);for(const f of c)d.push(a(f));return d}case pu:{const d=i({},s);for(const[f,h]of c)d[a(f)]=a(h);return d}case wp:return i(new Date(c),s);case Ep:{const{source:d,flags:f}=c;return i(new RegExp(d,f),s)}case Np:{const d=i(new Map,s);for(const[f,h]of c)d.set(a(f),a(h));return d}case Sp:{const d=i(new Set,s);for(const f of c)d.add(a(f));return d}case mw:{const{name:d,message:f}=c;return i(typeof gw[d]=="function"?_y(d,f):new Error(f),s)}case pw:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(_y(l,c),s)};return a},wy=e=>S5(new Map,e)(0),Oa="",{toString:k5}={},{keys:T5}=Object,Vo=e=>{const t=typeof e;if(t!=="object"||!e)return[Lu,t];const i=k5.call(e).slice(8,-1);switch(i){case"Array":return[nl,Oa];case"Object":return[pu,Oa];case"Date":return[wp,Oa];case"RegExp":return[Ep,Oa];case"Map":return[Np,Oa];case"Set":return[Sp,Oa];case"DataView":return[nl,i]}return i.includes("Array")?[nl,i]:e instanceof Error?[mw,e.name||"Error"]:[pu,i]},Gc=([e,t])=>e===Lu&&(t==="function"||t==="symbol"),A5=(e,t,i,a)=>{const s=(c,d)=>{const f=a.push(c)-1;return i.set(d,f),f},l=c=>{if(i.has(c))return i.get(c);let[d,f]=Vo(c);switch(d){case Lu:{let m=c;switch(f){case"bigint":d=pw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([hw],c)}return s([d,m],c)}case nl:{if(f){let x=c;return f==="DataView"?x=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(x=new Uint8Array(c)),s([f,[...x]],c)}const m=[],p=s([d,m],c);for(const x of c)m.push(l(x));return p}case pu:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const m=[],p=s([d,m],c);for(const x of T5(c))(e||!Gc(Vo(c[x])))&&m.push([l(x),l(c[x])]);return p}case wp:return s([d,isNaN(c.getTime())?Oa:c.toISOString()],c);case Ep:{const{source:m,flags:p}=c;return s([d,{source:m,flags:p}],c)}case Np:{const m=[],p=s([d,m],c);for(const[x,y]of c)(e||!(Gc(Vo(x))||Gc(Vo(y))))&&m.push([l(x),l(y)]);return p}case Sp:{const m=[],p=s([d,m],c);for(const x of c)(e||!Gc(Vo(x)))&&m.push(l(x));return p}}const{message:h}=c;return s([d,{name:f,message:h}],c)};return l},Ey=(e,{json:t,lossy:i}={})=>{const a=[];return A5(!(t||i),!!t,new Map,a)(e),a},gu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wy(Ey(e,t)):structuredClone(e):(e,t)=>wy(Ey(e,t));function C5(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function M5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function O5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||C5,a=e.options.footnoteBackLabel||M5,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f0&&_.push({type:"text",value:" "});let k=typeof i=="string"?i:i(f,y);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(f,y),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else m.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(m,!0)};e.patch(h,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...gu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:` +`}]}}const ju=(function(e){if(e==null)return j5;if(typeof e=="function")return zu(e);if(typeof e=="object")return Array.isArray(e)?R5(e):D5(e);if(typeof e=="string")return L5(e);throw new Error("Expected function, string, or object as test")});function R5(e){const t=[];let i=-1;for(;++i":""))+")"})}return x;function x(){let y=bw,_,N,S;if((!t||l(f,h,m[m.length-1]||void 0))&&(y=U5(i(f,m)),y[0]===Lm))return y;if("children"in f&&f.children){const w=f;if(w.children&&y[0]!==B5)for(N=(a?w.children.length:-1)+c,S=m.concat(w);N>-1&&N0&&i.push({type:"text",value:` +`}),i}function Ny(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function Sy(e,t){const i=$5(e,t),a=i.one(e,void 0),s=O5(i),l=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&l.children.push({type:"text",value:` +`},s),l}function V5(e,t){return e&&"run"in e?async function(i,a){const s=Sy(i,{file:a,...t});await e.run(s,a)}:function(i,a){return Sy(i,{file:a,...e||t})}}function ky(e){if(e)throw e}var dh,Ty;function Y5(){if(Ty)return dh;Ty=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},c=function(h,m){i&&m.name==="__proto__"?i(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},d=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(a)return a(h,m).value}else return;return h[m]};return dh=function f(){var h,m,p,x,y,_,N=arguments[0],S=1,w=arguments.length,k=!1;for(typeof N=="boolean"&&(k=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Sc.length;let f;d&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(d&&i)throw m;return s(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...d){i||(i=!0,t(c,...d))}function l(c){s(null,c)}}const $i={basename:Q5,dirname:W5,extname:J5,join:eR,sep:"/"};function Q5(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wl(e);let i=0,a=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){i=s+1;break}}else a<0&&(l=!0,a=s+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){i=s+1;break}}else c<0&&(l=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function W5(e){if(wl(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function J5(e){wl(e);let t=e.length,i=-1,a=0,s=-1,l=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||i<0||l===0||l===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function eR(...e){let t=-1,i;for(;++t0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function nR(e,t){let i="",a=0,s=-1,l=0,c=-1,d,f;for(;++c<=e.length;){if(c2){if(f=i.lastIndexOf("/"),f!==i.length-1){f<0?(i="",a=0):(i=i.slice(0,f),a=i.length-1-i.lastIndexOf("/")),s=c,l=0;continue}}else if(i.length>0){i="",a=0,s=c,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),a=c-s-1;s=c,l=0}else d===46&&l>-1?l++:l=-1}return i}function wl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iR={cwd:rR};function rR(){return"/"}function Im(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aR(e){if(typeof e=="string")e=new URL(e);else if(!Im(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sR(e)}function sR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i0){let[y,..._]=m;const N=a[x][1];zm(N)&&zm(y)&&(y=fh(!0,N,y)),a[x]=[h,y,..._]}}}}const uR=new Tp().freeze();function gh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cy(e){if(!zm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function My(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vc(e){return dR(e)?e:new yw(e)}function dR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function fR(e){return typeof e=="string"||hR(e)}function hR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Oy=[],Ry={allowDangerousHtml:!0},pR=/^(https?|ircs?|mailto|xmpp)$/i,gR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ap(e){const t=bR(e),i=xR(e);return yR(t.runSync(t.parse(i),i),e)}function bR(e){const t=e.rehypePlugins||Oy,i=e.remarkPlugins||Oy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ry}:Ry;return uR().use(WO).use(i).use(V5,a).use(t)}function xR(e){const t=e.children||"",i=new yw;return typeof t=="string"&&(i.value=t),i}function yR(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||vR;for(const m of gR)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+mR+m.id,void 0);return kp(e,h),jC(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,p,x){if(m.type==="raw"&&x&&typeof p=="number")return c?x.children.splice(p,1):x.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let y;for(y in lh)if(Object.hasOwn(lh,y)&&Object.hasOwn(m.properties,y)){const _=m.properties[y],N=lh[y];(N===null||N.includes(m.tagName))&&(m.properties[y]=f(String(_||""),y,m))}}if(m.type==="element"){let y=i?!i.includes(m.tagName):l?l.includes(m.tagName):!1;if(!y&&a&&typeof p=="number"&&(y=!a(m,p,x)),y&&x&&typeof p=="number")return d&&m.children?x.children.splice(p,1,...m.children):x.children.splice(p,1),p}}}function vR(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||i!==-1&&t>i||a!==-1&&t>a||pR.test(e.slice(0,t))?e:""}function Dy(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=i.indexOf(t);for(;s!==-1;)a++,s=i.indexOf(t,s+t.length);return a}function _R(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wR(e,t,i){const s=ju((i||{}).ignore||[]),l=ER(t);let c=-1;for(;++c0?{type:"text",value:R}:void 0),R===!1?x.lastIndex=M+1:(_!==M&&k.push({type:"text",value:h.value.slice(_,M)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=M+E[0].length,w=!0),!x.global)break;E=x.exec(h.value)}return w?(_?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const s=Dy(e,"(");let l=Dy(e,")");for(;a!==-1&&s>l;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),l++;return[e,i]}function vw(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Ia(i)||Ru(i))&&(!t||i!==47)}_w.peek=VR;function BR(){this.buffer()}function UR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function HR(){this.buffer()}function $R(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qR(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mi(this.sliceSerialize(e)).toLowerCase(),i.label=t}function PR(e){this.exit(e)}function FR(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mi(this.sliceSerialize(e)).toLowerCase(),i.label=t}function GR(e){this.exit(e)}function VR(){return"["}function _w(e,t,i,a){const s=i.createTracker(a);let l=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return l+=s.move(i.safe(i.associationId(e),{after:"]",before:l})),d(),c(),l+=s.move("]"),l}function YR(){return{enter:{gfmFootnoteCallString:BR,gfmFootnoteCall:UR,gfmFootnoteDefinitionLabelString:HR,gfmFootnoteDefinition:$R},exit:{gfmFootnoteCallString:qR,gfmFootnoteCall:PR,gfmFootnoteDefinitionLabelString:FR,gfmFootnoteDefinition:GR}}}function XR(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:_w},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,l,c){const d=l.createTracker(c);let f=d.move("[^");const h=l.enter("footnoteDefinition"),m=l.enter("label");return f+=d.move(l.safe(l.associationId(a),{before:f,after:"]"})),m(),f+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),f+=d.move((t?` +`:" ")+l.indentLines(l.containerFlow(a,d.current()),t?ww:KR))),h(),f}}function KR(e,t,i){return t===0?e:ww(e,t,i)}function ww(e,t,i){return(i?"":" ")+e}const ZR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ew.peek=t3;function QR(){return{canContainEols:["delete"],enter:{strikethrough:JR},exit:{strikethrough:e3}}}function WR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ZR}],handlers:{delete:Ew}}}function JR(e){this.enter({type:"delete",children:[]},e)}function e3(e){this.exit(e)}function Ew(e,t,i,a){const s=i.createTracker(a),l=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),l(),c}function t3(){return"~"}function n3(e){return e.length}function i3(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||n3,l=[],c=[],d=[],f=[];let h=0,m=-1;for(;++mh&&(h=e[m].length);++wf[w])&&(f[w]=E)}N.push(k)}c[m]=N,d[m]=S}let p=-1;if(typeof a=="object"&&"length"in a)for(;++pf[p]&&(f[p]=k),y[p]=k),x[p]=E}c.splice(1,0,x),d.splice(1,0,y),m=-1;const _=[];for(;++m "),l.shift(2);const c=i.indentLines(i.containerFlow(e,l.current()),s3);return s(),c}function s3(e,t,i){return">"+(i?"":" ")+e}function o3(e,t){return jy(e,t.inConstruct,!0)&&!jy(e,t.notInConstruct,!1)}function jy(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++ac&&(c=l):l=1,s=a+t.length,a=i.indexOf(t,s);return c}function c3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function u3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function d3(e,t,i,a){const s=u3(i),l=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(c3(e,i)){const p=i.enter("codeIndented"),x=i.indentLines(l,f3);return p(),x}const d=i.createTracker(a),f=s.repeat(Math.max(l3(l,s)+1,3)),h=i.enter("codeFenced");let m=d.move(f);if(e.lang){const p=i.enter(`codeFencedLang${c}`);m+=d.move(i.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=i.enter(`codeFencedMeta${c}`);m+=d.move(" "),m+=d.move(i.safe(e.meta,{before:m,after:` +`,encode:["`"],...d.current()})),p()}return m+=d.move(` +`),l&&(m+=d.move(l+` +`)),m+=d.move(f),h(),m}function f3(e,t,i){return(i?"":" ")+e}function Cp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function h3(e,t,i,a){const s=Cp(i),l=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let d=i.enter("label");const f=i.createTracker(a);let h=f.move("[");return h+=f.move(i.safe(i.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(i.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=i.enter("destinationRaw"),h+=f.move(i.safe(e.url,{before:h,after:e.title?" ":` +`,...f.current()}))),d(),e.title&&(d=i.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(i.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),c(),h}function m3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ol(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bu(e,t,i){const a=Bs(e),s=Bs(t);return a===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Nw.peek=p3;function Nw(e,t,i,a){const s=m3(i),l=i.enter("emphasis"),c=i.createTracker(a),d=c.move(s);let f=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=bu(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=ol(h)+f.slice(1));const p=f.charCodeAt(f.length-1),x=bu(a.after.charCodeAt(0),p,s);x.inside&&(f=f.slice(0,-1)+ol(p));const y=c.move(s);return l(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},d+f+y}function p3(e,t,i){return i.options.emphasis||"*"}function g3(e,t){let i=!1;return kp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Lm}),!!((!e.depth||e.depth<3)&&yp(e)&&(t.options.setext||i))}function b3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),l=i.createTracker(a);if(g3(e,i)){const m=i.enter("headingSetext"),p=i.enter("phrasing"),x=i.containerPhrasing(e,{...l.current(),before:` +`,after:` +`});return p(),m(),x+` +`+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(` +`))+1))}const c="#".repeat(s),d=i.enter("headingAtx"),f=i.enter("phrasing");l.move(c+" ");let h=i.containerPhrasing(e,{before:"# ",after:` +`,...l.current()});return/^[\t ]/.test(h)&&(h=ol(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,i.options.closeAtx&&(h+=" "+c),f(),d(),h}Sw.peek=x3;function Sw(e){return e.value||""}function x3(){return"<"}kw.peek=y3;function kw(e,t,i,a){const s=Cp(i),l=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let d=i.enter("label");const f=i.createTracker(a);let h=f.move("![");return h+=f.move(i.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(i.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=i.enter("destinationRaw"),h+=f.move(i.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=i.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(i.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),d()),h+=f.move(")"),c(),h}function y3(){return"!"}Tw.peek=v3;function Tw(e,t,i,a){const s=e.referenceType,l=i.enter("imageReference");let c=i.enter("label");const d=i.createTracker(a);let f=d.move("![");const h=i.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:f,after:"]",...d.current()});return c(),i.stack=m,l(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function v3(){return"!"}Aw.peek=_3;function Aw(e,t,i){let a=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l\u007F]/.test(e.url))}Mw.peek=w3;function Mw(e,t,i,a){const s=Cp(i),l=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,f;if(Cw(e,i)){const m=i.stack;i.stack=[],d=i.enter("autolink");let p=c.move("<");return p+=c.move(i.containerPhrasing(e,{before:p,after:">",...c.current()})),p+=c.move(">"),d(),i.stack=m,p}d=i.enter("link"),f=i.enter("label");let h=c.move("[");return h+=c.move(i.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(i.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(f=i.enter("destinationRaw"),h+=c.move(i.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),f(),e.title&&(f=i.enter(`title${l}`),h+=c.move(" "+s),h+=c.move(i.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),f()),h+=c.move(")"),d(),h}function w3(e,t,i){return Cw(e,i)?"<":"["}Ow.peek=E3;function Ow(e,t,i,a){const s=e.referenceType,l=i.enter("linkReference");let c=i.enter("label");const d=i.createTracker(a);let f=d.move("[");const h=i.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:f,after:"]",...d.current()});return c(),i.stack=m,l(),s==="full"||!h||h!==p?f+=d.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function E3(){return"["}function Mp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function N3(e){const t=Mp(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function S3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Rw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function k3(e,t,i,a){const s=i.enter("list"),l=i.bulletCurrent;let c=e.ordered?S3(i):Mp(i);const d=e.ordered?c==="."?")":".":N3(i);let f=t&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(f=!0),Rw(i)===c&&m){let p=-1;for(;++p-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let c=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=i.createTracker(a);d.move(l+" ".repeat(c-l.length)),d.shift(c);const f=i.enter("listItem"),h=i.indentLines(i.containerFlow(e,d.current()),m);return f(),h;function m(p,x,y){return x?(y?"":" ".repeat(c))+p:(y?l:l+" ".repeat(c-l.length))+p}}function C3(e,t,i,a){const s=i.enter("paragraph"),l=i.enter("phrasing"),c=i.containerPhrasing(e,a);return l(),s(),c}const M3=ju(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function O3(e,t,i,a){return(e.children.some(function(c){return M3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function R3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Dw.peek=D3;function Dw(e,t,i,a){const s=R3(i),l=i.enter("strong"),c=i.createTracker(a),d=c.move(s+s);let f=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=f.charCodeAt(0),m=bu(a.before.charCodeAt(a.before.length-1),h,s);m.inside&&(f=ol(h)+f.slice(1));const p=f.charCodeAt(f.length-1),x=bu(a.after.charCodeAt(0),p,s);x.inside&&(f=f.slice(0,-1)+ol(p));const y=c.move(s+s);return l(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},d+f+y}function D3(e,t,i){return i.options.strong||"*"}function L3(e,t,i,a){return i.safe(e.value,a)}function j3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function z3(e,t,i){const a=(Rw(i)+(i.options.ruleSpaces?" ":"")).repeat(j3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const Lw={blockquote:a3,break:zy,code:d3,definition:h3,emphasis:Nw,hardBreak:zy,heading:b3,html:Sw,image:kw,imageReference:Tw,inlineCode:Aw,link:Mw,linkReference:Ow,list:k3,listItem:A3,paragraph:C3,root:O3,strong:Dw,text:L3,thematicBreak:z3};function I3(){return{enter:{table:B3,tableData:Iy,tableHeader:Iy,tableRow:H3},exit:{codeText:$3,table:U3,tableData:wh,tableHeader:wh,tableRow:wh}}}function B3(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function U3(e){this.exit(e),this.data.inTable=void 0}function H3(e){this.enter({type:"tableRow",children:[]},e)}function wh(e){this.exit(e)}function Iy(e){this.enter({type:"tableCell",children:[]},e)}function $3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,q3));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function q3(e,t){return t==="|"?t:e}function P3(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:f,tableRow:d}};function c(y,_,N,S){return h(m(y,N,S),y.align)}function d(y,_,N,S){const w=p(y,N,S),k=h([w]);return k.slice(0,k.indexOf(` +`))}function f(y,_,N,S){const w=N.enter("tableCell"),k=N.enter("phrasing"),E=N.containerPhrasing(y,{...S,before:l,after:l});return k(),w(),E}function h(y,_){return i3(y,{align:_,alignDelimiters:a,padding:i,stringLength:s})}function m(y,_,N){const S=y.children;let w=-1;const k=[],E=_.enter("table");for(;++w0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const oD={tokenize:pD,partial:!0};function lD(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:fD,continuation:{tokenize:hD},exit:mD}},text:{91:{name:"gfmFootnoteCall",tokenize:dD},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:cD,resolveTo:uD}}}}function cD(e,t,i){const a=this;let s=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const f=a.events[s][1];if(f.type==="labelImage"){c=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!c||!c._balanced)return i(f);const h=Mi(a.sliceSerialize({start:c.end,end:a.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?i(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function uD(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",c,t],["exit",c,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function dD(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,c;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?i(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(l>999||p===93&&!c||p===null||p===91||At(p))return i(p);if(p===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return s.includes(Mi(a.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(p)}return At(p)||(c=!0),l++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function fD(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,c=0,d;return f;function f(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):i(_)}function m(_){if(c>999||_===93&&!d||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return l=Mi(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return At(_)||(d=!0),c++,e.consume(_),_===92?p:m}function p(_){return _===91||_===92||_===93?(e.consume(_),c++,m):m(_)}function x(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(l)||s.push(l),lt(e,y,"gfmFootnoteDefinitionWhitespace")):i(_)}function y(_){return t(_)}}function hD(e,t,i){return e.check(_l,t,e.attempt(oD,t,i))}function mD(e){e.exit("gfmFootnoteDefinition")}function pD(e,t,i){const a=this;return lt(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(l):i(l)}}function gD(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:s};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let f=-1;for(;++f1?f(_):(c.consume(_),p++,y);if(p<2&&!i)return f(_);const S=c.exit("strikethroughSequenceTemporary"),w=Bs(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class bD{constructor(){this.map=[]}add(t,i,a){xD(this,t,i,a)}consume(t){if(this.map.sort(function(l,c){return l[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const l of s)t.push(l);s=a.pop()}this.map.length=0}}function xD(e,t,i,a){let s=0;if(!(i===0&&a.length===0)){for(;s-1;){const A=a.events[q][1].type;if(A==="lineEnding"||A==="linePrefix")q--;else break}const K=q>-1?a.events[q][1].type:null,V=K==="tableHead"||K==="tableRow"?R:f;return V===R&&a.parser.lazy[a.now().line]?i(j):V(j)}function f(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(c=!0,l+=1),m(j)}function m(j){return j===null?i(j):Be(j)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y):i(j):tt(j)?lt(e,m,"whitespace")(j):(l+=1,c&&(c=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),p(j)))}function p(j){return j===null||j===124||At(j)?(e.exit("data"),m(j)):(e.consume(j),j===92?x:p)}function x(j){return j===92||j===124?(e.consume(j),p):p(j)}function y(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(j):(e.enter("tableDelimiterRow"),c=!1,tt(j)?lt(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j))}function _(j){return j===45||j===58?S(j):j===124?(c=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),N):z(j)}function N(j){return tt(j)?lt(e,S,"whitespace")(j):S(j)}function S(j){return j===58?(l+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),w):j===45?(l+=1,w(j)):j===null||Be(j)?M(j):z(j)}function w(j){return j===45?(e.enter("tableDelimiterFiller"),k(j)):z(j)}function k(j){return j===45?(e.consume(j),k):j===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(j))}function E(j){return tt(j)?lt(e,M,"whitespace")(j):M(j)}function M(j){return j===124?_(j):j===null||Be(j)?!c||s!==l?z(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):z(j)}function z(j){return i(j)}function R(j){return e.enter("tableRow"),H(j)}function H(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),H):j===null||Be(j)?(e.exit("tableRow"),t(j)):tt(j)?lt(e,H,"whitespace")(j):(e.enter("data"),I(j))}function I(j){return j===null||j===124||At(j)?(e.exit("data"),H(j)):(e.consume(j),j===92?Z:I)}function Z(j){return j===92||j===124?(e.consume(j),I):I(j)}}function wD(e,t){let i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],d=!1,f=0,h,m,p;const x=new bD;for(;++ii[2]+1){const _=i[2]+1,N=i[3]-i[2]-1;e.add(_,N,[])}}e.add(i[3]+1,0,[["exit",p,t]])}return s!==void 0&&(l.end=Object.assign({},As(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function Uy(e,t,i,a,s){const l=[],c=As(t.events,i);s&&(s.end=Object.assign({},c),l.push(["exit",s,t])),a.end=Object.assign({},c),l.push(["exit",a,t]),e.add(i+1,0,l)}function As(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const ED={name:"tasklistCheck",tokenize:SD};function ND(){return{text:{91:ED}}}function SD(e,t,i){const a=this;return s;function s(f){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),l)}function l(f){return At(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),c):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),c):i(f)}function c(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(f)}function d(f){return Be(f)?t(f):tt(f)?e.check({tokenize:kD},t,i)(f):i(f)}}function kD(e,t,i){return lt(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function TD(e){return W_([W3(),lD(),gD(e),vD(),ND()])}const AD={};function Rp(e){const t=this,i=e||AD,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(TD(i)),l.push(X3()),c.push(K3(i))}var Eh,Hy;function CD(){if(Hy)return Eh;Hy=1;function e(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(me=>{const Ee=ne[me],Pe=typeof Ee;(Pe==="object"||Pe==="function")&&!Object.isFrozen(Ee)&&e(Ee)}),ne}class t{constructor(me){me.data===void 0&&(me.data={}),this.data=me.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(ne,...me){const Ee=Object.create(null);for(const Pe in ne)Ee[Pe]=ne[Pe];return me.forEach(function(Pe){for(const St in Pe)Ee[St]=Pe[St]}),Ee}const s="",l=ne=>!!ne.scope,c=(ne,{prefix:me})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const Ee=ne.split(".");return[`${me}${Ee.shift()}`,...Ee.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${me}${ne}`};class d{constructor(me,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,me.walk(this)}addText(me){this.buffer+=i(me)}openNode(me){if(!l(me))return;const Ee=c(me.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(me){l(me)&&(this.buffer+=s)}value(){return this.buffer}span(me){this.buffer+=``}}const f=(ne={})=>{const me={children:[]};return Object.assign(me,ne),me};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(me){this.top.children.push(me)}openNode(me){const Ee=f({scope:me});this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(me){return this.constructor._walk(me,this.rootNode)}static _walk(me,Ee){return typeof Ee=="string"?me.addText(Ee):Ee.children&&(me.openNode(Ee),Ee.children.forEach(Pe=>this._walk(me,Pe)),me.closeNode(Ee)),me}static _collapse(me){typeof me!="string"&&me.children&&(me.children.every(Ee=>typeof Ee=="string")?me.children=[me.children.join("")]:me.children.forEach(Ee=>{h._collapse(Ee)}))}}class m extends h{constructor(me){super(),this.options=me}addText(me){me!==""&&this.add(me)}startScope(me){this.openNode(me)}endScope(){this.closeNode()}__addSublanguage(me,Ee){const Pe=me.root;Ee&&(Pe.scope=`language:${Ee}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(ne){return ne?typeof ne=="string"?ne:ne.source:null}function x(ne){return N("(?=",ne,")")}function y(ne){return N("(?:",ne,")*")}function _(ne){return N("(?:",ne,")?")}function N(...ne){return ne.map(Ee=>p(Ee)).join("")}function S(ne){const me=ne[ne.length-1];return typeof me=="object"&&me.constructor===Object?(ne.splice(ne.length-1,1),me):{}}function w(...ne){return"("+(S(ne).capture?"":"?:")+ne.map(Pe=>p(Pe)).join("|")+")"}function k(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function E(ne,me){const Ee=ne&&ne.exec(me);return Ee&&Ee.index===0}const M=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function z(ne,{joinWith:me}){let Ee=0;return ne.map(Pe=>{Ee+=1;const St=Ee;let gt=p(Pe),Me="";for(;gt.length>0;){const Se=M.exec(gt);if(!Se){Me+=gt;break}Me+=gt.substring(0,Se.index),gt=gt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Me+="\\"+String(Number(Se[1])+St):(Me+=Se[0],Se[0]==="("&&Ee++)}return Me}).map(Pe=>`(${Pe})`).join(me)}const R=/\b\B/,H="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",Z="\\b\\d+(\\.\\d+)?",j="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",K="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(ne={})=>{const me=/^#![ ]*\//;return ne.binary&&(ne.begin=N(me,/.*\b/,ne.binary,/\b.*/)),a({scope:"meta",begin:me,end:/$/,relevance:0,"on:begin":(Ee,Pe)=>{Ee.index!==0&&Pe.ignoreMatch()}},ne)},A={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},O={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},U={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(ne,me,Ee={}){const Pe=a({scope:"comment",begin:ne,end:me,contains:[]},Ee);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const St=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:N(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},X=Y("//","$"),C=Y("/\\*","\\*/"),D=Y("#","$"),G={scope:"number",begin:Z,relevance:0},L={scope:"number",begin:j,relevance:0},F={scope:"number",begin:q,relevance:0},B={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:I,relevance:0},W={begin:"\\.\\s*"+I,relevance:0};var le=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:q,COMMENT:Y,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:X,C_NUMBER_MODE:L,C_NUMBER_RE:j,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(me,Ee)=>{Ee.data._beginMatch=me[1]},"on:end":(me,Ee)=>{Ee.data._beginMatch!==me[1]&&Ee.ignoreMatch()}})},HASH_COMMENT_MODE:D,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:G,NUMBER_RE:Z,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:O,REGEXP_MODE:B,RE_STARTERS_RE:K,SHEBANG:V,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:J});function fe(ne,me){ne.input[ne.index-1]==="."&&me.ignoreMatch()}function be(ne,me){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function we(ne,me){me&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=fe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function Ne(ne,me){Array.isArray(ne.illegal)&&(ne.illegal=w(...ne.illegal))}function Le(ne,me){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function $e(ne,me){ne.relevance===void 0&&(ne.relevance=1)}const st=(ne,me)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const Ee=Object.assign({},ne);Object.keys(ne).forEach(Pe=>{delete ne[Pe]}),ne.keywords=Ee.keywords,ne.begin=N(Ee.beforeMatch,x(Ee.begin)),ne.starts={relevance:0,contains:[Object.assign(Ee,{endsParent:!0})]},ne.relevance=0,delete Ee.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ne,me,Ee=Yt){const Pe=Object.create(null);return typeof ne=="string"?St(Ee,ne.split(" ")):Array.isArray(ne)?St(Ee,ne):Object.keys(ne).forEach(function(gt){Object.assign(Pe,Pt(ne[gt],me,gt))}),Pe;function St(gt,Me){me&&(Me=Me.map(Se=>Se.toLowerCase())),Me.forEach(function(Se){const Ue=Se.split("|");Pe[Ue[0]]=[gt,Xt(Ue[0],Ue[1])]})}}function Xt(ne,me){return me?Number(me):Vn(ne)?0:1}function Vn(ne){return Rt.includes(ne.toLowerCase())}const wn={},ct=ne=>{console.error(ne)},It=(ne,...me)=>{console.log(`WARN: ${ne}`,...me)},ue=(ne,me)=>{wn[`${ne}/${me}`]||(console.log(`Deprecated as of ${ne}. ${me}`),wn[`${ne}/${me}`]=!0)},xe=new Error;function Oe(ne,me,{key:Ee}){let Pe=0;const St=ne[Ee],gt={},Me={};for(let Se=1;Se<=me.length;Se++)Me[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(me[Se-1]);ne[Ee]=Me,ne[Ee]._emit=gt,ne[Ee]._multi=!0}function Fe(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw ct("beginScope must be object"),xe;Oe(ne,ne.begin,{key:"beginScope"}),ne.begin=z(ne.begin,{joinWith:""})}}function Ze(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof ne.endScope!="object"||ne.endScope===null)throw ct("endScope must be object"),xe;Oe(ne,ne.end,{key:"endScope"}),ne.end=z(ne.end,{joinWith:""})}}function ln(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function En(ne){ln(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),Fe(ne),Ze(ne)}function Kt(ne){function me(Me,Se){return new RegExp(p(Me),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(Se?"g":""))}class Ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=k(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(z(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Bt=Ue.findIndex((bi,wr)=>wr>0&&bi!==void 0),Mt=this.matchIndexes[Bt];return Ue.splice(0,Bt),Object.assign(Ue,Mt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new Ee;return this.rules.slice(Se).forEach(([Bt,Mt])=>Ue.addRule(Bt,Mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Bt=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Se)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function St(Me){const Se=new Pe;return Me.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Me.terminatorEnd&&Se.addRule(Me.terminatorEnd,{type:"end"}),Me.illegal&&Se.addRule(Me.illegal,{type:"illegal"}),Se}function gt(Me,Se){const Ue=Me;if(Me.isCompiled)return Ue;[be,Le,En,st].forEach(Mt=>Mt(Me,Se)),ne.compilerExtensions.forEach(Mt=>Mt(Me,Se)),Me.__beforeBegin=null,[we,Ne,$e].forEach(Mt=>Mt(Me,Se)),Me.isCompiled=!0;let Bt=null;return typeof Me.keywords=="object"&&Me.keywords.$pattern&&(Me.keywords=Object.assign({},Me.keywords),Bt=Me.keywords.$pattern,delete Me.keywords.$pattern),Bt=Bt||/\w+/,Me.keywords&&(Me.keywords=Pt(Me.keywords,ne.case_insensitive)),Ue.keywordPatternRe=me(Bt,!0),Se&&(Me.begin||(Me.begin=/\B|\b/),Ue.beginRe=me(Ue.begin),!Me.end&&!Me.endsWithParent&&(Me.end=/\B|\b/),Me.end&&(Ue.endRe=me(Ue.end)),Ue.terminatorEnd=p(Ue.end)||"",Me.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Me.end?"|":"")+Se.terminatorEnd)),Me.illegal&&(Ue.illegalRe=me(Me.illegal)),Me.contains||(Me.contains=[]),Me.contains=[].concat(...Me.contains.map(function(Mt){return Wt(Mt==="self"?Me:Mt)})),Me.contains.forEach(function(Mt){gt(Mt,Ue)}),Me.starts&>(Me.starts,Se),Ue.matcher=St(Ue),Ue}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=a(ne.classNameAliases||{}),gt(ne)}function Ct(ne){return ne?ne.endsWithParent||Ct(ne.starts):!1}function Wt(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(me){return a(ne,{variants:null},me)})),ne.cachedVariants?ne.cachedVariants:Ct(ne)?a(ne,{starts:ne.starts?a(ne.starts):null}):Object.isFrozen(ne)?a(ne):ne}var ut="11.11.1";class jn extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const cn=i,_r=a,nt=Symbol("nomatch"),Yn=7,Cn=function(ne){const me=Object.create(null),Ee=Object.create(null),Pe=[];let St=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Me={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function Ue(ye){return Se.noHighlightRe.test(ye)}function Bt(ye){let je=ye.className+" ";je+=ye.parentNode?ye.parentNode.className:"";const Qe=Se.languageDetectRe.exec(je);if(Qe){const ft=bn(Qe[1]);return ft||(It(gt.replace("{}",Qe[1])),It("Falling back to no-highlight mode for this block.",ye)),ft?Qe[1]:"no-highlight"}return je.split(/\s+/).find(ft=>Ue(ft)||bn(ft))}function Mt(ye,je,Qe){let ft="",Ht="";typeof je=="object"?(ft=ye,Qe=je.ignoreIllegals,Ht=je.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=je),Qe===void 0&&(Qe=!0);const pn={code:ft,language:Ht};Zi("before:highlight",pn);const Mn=pn.result?pn.result:bi(pn.language,pn.code,Qe);return Mn.code=pn.code,Zi("after:highlight",Mn),Mn}function bi(ye,je,Qe,ft){const Ht=Object.create(null);function pn(_e,Re){return _e.keywords[Re]}function Mn(){if(!qe.keywords){Jt.addText(bt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(bt),Ye="";for(;Re;){Ye+=bt.substring(_e,Re.index);const it=un.case_insensitive?Re[0].toLowerCase():Re[0],$t=pn(qe,it);if($t){const[si,Qs]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(Cr+=Qs),si.startsWith("_"))Ye+=Re[0];else{const Ol=un.classNameAliases[si]||si;On(Re[0],Ol)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Nn(){if(bt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!me[qe.subLanguage]){Jt.addText(bt);return}_e=bi(qe.subLanguage,bt,!0,Ml[qe.subLanguage]),Ml[qe.subLanguage]=_e._top}else _e=Er(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Cr+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?Nn():Mn(),bt=""}function On(_e,Re){_e!==""&&(Jt.startScope(Re),Jt.addText(_e),Jt.endScope())}function Ya(_e,Re){let Ye=1;const it=Re.length-1;for(;Ye<=it;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],si=Re[Ye];$t?On(si,$t):(bt=si,Mn(),bt=""),Ye++}}function kr(_e,Re){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(Ya(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function ji(_e,Re,Ye){let it=E(_e.endRe,Ye);if(it){if(_e["on:end"]){const $t=new t(_e);_e["on:end"](Re,$t),$t.isMatchIgnored&&(it=!1)}if(it){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return ji(_e.parent,Re,Ye)}function Tr(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Mr=!0,0)}function Xa(_e){const Re=_e[0],Ye=_e.rule,it=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const si of $t)if(si&&(si(_e,it),it.isMatchIgnored))return Tr(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),kr(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=je.substring(_e.index),it=ji(qe,_e,Ye);if(!it)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),On(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),Ya(qe.endScope,_e)):$t.skip?bt+=Re:($t.returnEnd||$t.excludeEnd||(bt+=Re),_t(),$t.excludeEnd&&(bt=Re));do qe.scope&&Jt.closeNode(),!qe.skip&&!qe.subLanguage&&(Cr+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&kr(it.starts,_e),$t.returnEnd?0:Re.length}function da(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let wi={};function Ar(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(wi.type==="begin"&&Re.type==="end"&&wi.index===Re.index&&Ye===""){if(bt+=je.slice(Re.index,Re.index+1),!St){const it=new Error(`0 width match regex (${ye})`);throw it.languageName=ye,it.badRule=wi.rule,it}return 1}if(wi=Re,Re.type==="begin")return Xa(Re);if(Re.type==="illegal"&&!Qe){const it=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"")+'"');throw it.mode=qe,it}else if(Re.type==="end"){const it=Sn(Re);if(it!==nt)return it}if(Re.type==="illegal"&&Ye==="")return bt+=` +`,1;if(Zs>1e5&&Zs>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(ye);if(!un)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const fa=Kt(un);let Ka="",qe=ft||fa;const Ml={},Jt=new Se.__emitter(Se);da();let bt="",Cr=0,Qi=0,Zs=0,Mr=!1;try{if(un.__emitTokens)un.__emitTokens(je,Jt);else{for(qe.matcher.considerAll();;){Zs++,Mr?Mr=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=Qi;const _e=qe.matcher.exec(je);if(!_e)break;const Re=je.substring(Qi,_e.index),Ye=Ar(Re,_e);Qi=_e.index+Ye}Ar(je.substring(Qi))}return Jt.finalize(),Ka=Jt.toHTML(),{language:ye,value:Ka,relevance:Cr,illegal:!1,_emitter:Jt,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:cn(je),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:Qi,context:je.slice(Qi-100,Qi+100),mode:_e.mode,resultSoFar:Ka},_emitter:Jt};if(St)return{language:ye,value:cn(je),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function wr(ye){const je={value:cn(ye),illegal:!1,relevance:0,_top:Me,_emitter:new Se.__emitter(Se)};return je._emitter.addText(ye),je}function Er(ye,je){je=je||Se.languages||Object.keys(me);const Qe=wr(ye),ft=je.filter(bn).filter(vi).map(_t=>bi(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[pn,Mn]=Ht,Nn=pn;return Nn.secondBest=Mn,Nn}function ai(ye,je,Qe){const ft=je&&Ee[je]||Qe;ye.classList.add("hljs"),ye.classList.add(`language-${ft}`)}function Ut(ye){let je=null;const Qe=Bt(ye);if(Ue(Qe))return;if(Zi("before:highlightElement",{el:ye,language:Qe}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new jn("One of your code blocks includes unescaped HTML.",ye.innerHTML);je=ye;const ft=je.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):Er(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",ai(ye,Qe,Ht.language),ye.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(ye.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Zi("after:highlightElement",{el:ye,result:Ht,text:ft})}function mn(ye){Se=_r(Se,ye)}const xi=()=>{Sr(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Nr(){Sr(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ca=!1;function Sr(){function ye(){Sr()}if(document.readyState==="loading"){ca||window.addEventListener("DOMContentLoaded",ye,!1),ca=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Ga(ye,je){let Qe=null;try{Qe=je(ne)}catch(ft){if(ct("Language definition for '{}' could not be registered.".replace("{}",ye)),St)ct(ft);else throw ft;Qe=Me}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=je.bind(null,ne),Qe.aliases&&yi(Qe.aliases,{languageName:ye})}function Ki(ye){delete me[ye];for(const je of Object.keys(Ee))Ee[je]===ye&&delete Ee[je]}function ua(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function yi(ye,{languageName:je}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=je})}function vi(ye){const je=bn(ye);return je&&!je.disableAutodetect}function Li(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=je=>{ye["before:highlightBlock"](Object.assign({block:je.el},je))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=je=>{ye["after:highlightBlock"](Object.assign({block:je.el},je))})}function Ft(ye){Li(ye),Pe.push(ye)}function Va(ye){const je=Pe.indexOf(ye);je!==-1&&Pe.splice(je,1)}function Zi(ye,je){const Qe=ye;Pe.forEach(function(ft){ft[Qe]&&ft[Qe](je)})}function _i(ye){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(ye)}Object.assign(ne,{highlight:Mt,highlightAuto:Er,highlightAll:Sr,highlightElement:Ut,highlightBlock:_i,configure:mn,initHighlighting:xi,initHighlightingOnLoad:Nr,registerLanguage:Ga,unregisterLanguage:Ki,listLanguages:ua,getLanguage:bn,registerAliases:yi,autoDetection:vi,inherit:_r,addPlugin:Ft,removePlugin:Va}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString=ut,ne.regex={concat:N,lookahead:x,either:w,optional:_,anyNumberOfTimes:y};for(const ye in le)typeof le[ye]=="object"&&e(le[ye]);return Object.assign(ne,le),ne},hn=Cn({});return hn.newInstance=()=>Cn({}),Eh=hn,hn.HighlightJS=hn,hn.default=hn,Eh}var Nh,$y;function MD(){if($y)return Nh;$y=1;function e(t){const i=t.regex,a=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=t.inherit(c,{begin:/\(/,end:/\)/}),f=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,h,f,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,d,h,f]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:m}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Nh=e,Nh}var Sh,qy;function OD(){if(qy)return Sh;qy=1;function e(t){const i=t.regex,a={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const l={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),d={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,l]};l.contains.push(f);const h={match:/\\"/},m={className:"string",begin:/'/,end:/'/},p={match:/\\'/},x={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),N={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],k={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],z=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:w,built_in:[...E,...M,"set","shopt",...z,...R]},contains:[_,t.SHEBANG(),N,x,c,d,k,f,h,m,p,a]}}return Sh=e,Sh}var kh,Py;function RD(){if(Py)return kh;Py=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(l)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",f={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:i.optional(l)+t.IDENT_RE,relevance:0},_=i.optional(l)+t.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[x,f,a,t.C_BLOCK_COMMENT_MODE,p,m],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:w,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,x]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:x,strings:m,keywords:w}}}return kh=e,kh}var Th,Fy;function DD(){if(Fy)return Th;Fy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(l)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",f={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:i.optional(l)+t.IDENT_RE,relevance:0},_=i.optional(l)+t.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],z={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,x,f,a,t.C_BLOCK_COMMENT_MODE,p,m],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:z,contains:H.concat([{begin:/\(/,end:/\)/,keywords:z,contains:H.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:z,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:z,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,f,{begin:/\(/,end:/\)/,keywords:z,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,f]}]},f,a,t.C_BLOCK_COMMENT_MODE,x]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:z,illegal:"",keywords:z,contains:["self",f]},{begin:t.IDENT_RE+"::",keywords:z},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Th=e,Th}var Ah,Gy;function LD(){if(Gy)return Ah;Gy=1;function e(t){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],l=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],d={keyword:l.concat(c),built_in:i,literal:s},f=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},x=t.inherit(p,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(y,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});y.contains=[S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,x,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,h,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[m,S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},M=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",z={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:d,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,h,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+M+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:d,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,relevance:0,contains:[k,h,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},z]}}return Ah=e,Ah}var Ch,Vy;function jD(){if(Vy)return Ch;Vy=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=h.regex,p=e(h),x={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},y="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,x,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+l.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:m.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Ch=f,Ch}var Mh,Yy;function zD(){if(Yy)return Mh;Yy=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},l={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},f=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,f,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},x=t.inherit(m,{contains:[]}),y=t.inherit(p,{contains:[]});m.contains.push(y),p.contains.push(x);let _=[a,h];return[m,p,x,y].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(m,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,m,p,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},l,s,h,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Mh=e,Mh}var Oh,Xy;function ID(){if(Xy)return Oh;Xy=1;function e(t){const i=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Oh=e,Oh}var Rh,Ky;function BD(){if(Ky)return Rh;Ky=1;function e(t){const i=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),l=i.concat(s,/(::\w+)*/),d={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},f={className:"doctag",begin:"@[A-Za-z]+"},h={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[f]}),t.COMMENT("^=begin","^=end",{contains:[f],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:d},x={className:"string",contains:[t.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,p]})]}]},y="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:d}]},H=[x,{variants:[{match:[/class\s+/,l,/\s+<\s+/,l]},{match:[/\b(class|module)\s+/,l]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,l],scope:{2:"title.class"},keywords:d},{relevance:0,match:[l,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[x,{begin:a}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:d},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(h,m),relevance:0}].concat(h,m);p.contains=H,S.contains=H;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:H}}];return m.unshift(h),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(q).concat(m).concat(H)}}return Rh=e,Rh}var Dh,Zy;function UD(){if(Zy)return Dh;Zy=1;function e(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"s(c,d,f-1))}function l(c){const d=c.regex,f="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",h=f+s("(?:<"+f+"~~~(?:\\s*,\\s*"+f+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},N={className:"meta",begin:"@"+f,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,f],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,f),/\s+/,f,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,f],className:{1:"keyword",3:"title.class"},contains:[S,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+h+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[N,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,N]}}return zh=l,zh}var Ih,ev;function PD(){if(ev)return Ih;ev=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(l,a,s);function f(h){const m=h.regex,p=(J,{after:W})=>{const ee="",end:""},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,W)=>{const ee=J[0].length+J.index,le=J.input[ee];if(le==="<"||le===","){W.ignoreMatch();return}le===">"&&(p(J,{after:ee})||W.ignoreMatch());let fe;const be=J.input.substring(ee);if(fe=be.match(/^\s*=/)){W.ignoreMatch();return}if((fe=be.match(/^\s+extends\s+/))&&fe.index===0){W.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},w="[0-9](_?[0-9])*",k=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",M={className:"number",variants:[{begin:`(\\b(${E})((${k})|\\.)?|(${k}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,z],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,z],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,z],subLanguage:"graphql"}},Z={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,z]},q={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},K=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,H,I,Z,{match:/\$\d+/},M];z.contains=K.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(K)});const V=[].concat(q,z.contains),A=V.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(V)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A},O={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,m.concat(x,"(",m.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},X={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},C={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(J){return m.concat("(?!",J.join("|"),")")}const G={match:m.concat(/\b/,D([...l,"super","import"].map(J=>`${J}\\s*\\(`)),x,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:m.concat(/\./,m.lookahead(m.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,H,I,Z,q,{match:/\$\d+/},M,U,{scope:"attr",match:x+m.lookahead(":"),relevance:0},Q,{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,h.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:y.begin,end:y.end},{match:_},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},X,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,h.inherit(h.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},G,C,O,F,{match:/\$[(.]/}]}}return Ih=f,Ih}var Bh,tv;function FD(){if(tv)return Bh;tv=1;function e(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],l={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,l,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Bh=e,Bh}var Uh,nv;function GD(){if(nv)return Uh;nv=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(l){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},f={className:"symbol",begin:l.UNDERSCORE_IDENT_RE+"@"},h={className:"subst",begin:/\$\{/,end:/\}/,contains:[l.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+l.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,h]},{begin:"'",end:"'",illegal:/\n/,contains:[l.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[l.BACKSLASH_ESCAPE,m,h]}]};h.contains.push(p);const x={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+l.UNDERSCORE_IDENT_RE+")?"},y={className:"meta",begin:"@"+l.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[l.inherit(p,{className:"string"}),"self"]}]},_=a,N=l.COMMENT("/\\*","\\*/",{contains:[l.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:l.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},w=S;return w.variants[1].contains=[S],S.variants[1].contains=[w],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[l.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),l.C_LINE_COMMENT_MODE,N,d,f,x,y,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:l.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[l.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[S,l.C_LINE_COMMENT_MODE,N],relevance:0},l.C_LINE_COMMENT_MODE,N,x,y,p,l.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,l.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},l.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},x,y]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},_]}}return Uh=s,Uh}var Hh,iv;function VD(){if(iv)return Hh;iv=1;const e=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),f=l.concat(c).sort().reverse();function h(m){const p=e(m),x=f,y="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],k=function(V){return{className:"string",begin:"~?"+V+".*?"+V}},E=function(V,A,$){return{className:V,begin:A,relevance:$}},M={$pattern:/[a-z-]+/,keyword:y,attribute:s.join(" ")},z={begin:"\\(",end:"\\)",contains:w,keywords:M,relevance:0};w.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,k("'"),k('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,z,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},I={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:M,returnEnd:!0,contains:w,relevance:0}},j={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,H,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},p.FUNCTION_DISPATCH]},K={begin:_+`:(:)?(${x.join("|")})`,returnBegin:!0,contains:[q]};return S.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Z,j,K,I,q,H,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return Hh=h,Hh}var $h,rv;function YD(){if(rv)return $h;rv=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},l=[t.COMMENT("--(?!"+i+")","$"),t.COMMENT("--"+i,a,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:l.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:l}].concat(l)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return $h=e,$h}var qh,av;function XD(){if(av)return qh;av=1;function e(t){const i={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},f={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},h={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[f]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[t.BACKSLASH_ESCAPE,c,h],x=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(S,w,k="\\1")=>{const E=k==="\\1"?k:i.concat(k,w);return i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,w,k)=>i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,k,s),N=[h,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:y("s|tr|y",i.either(...x,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",i.either(...x,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,f,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=N,d.contains=N,{name:"Perl",aliases:["pl","pm"],keywords:l,contains:N}}return Ph=e,Ph}var Fh,ov;function ZD(){if(ov)return Fh;ov=1;function e(t){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,f={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:f,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Fh=e,Fh}var Gh,lv;function QD(){if(lv)return Gh;lv=1;function e(t){const i=t.regex,a=/(?![A-Za-z0-9])(?![$])/,s=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),l=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=i.concat(/[A-Z]+/,a),d={scope:"variable",match:"\\$+"+s},f={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},h={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=t.inherit(t.APOS_STRING_MODE,{illegal:null}),p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(h)}),x={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(h),"on:begin":($,O)=>{O.data._beginMatch=$[1]||$[2]},"on:end":($,O)=>{O.data._beginMatch!==$[1]&&O.ignoreMatch()}},y=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[ +]`,N={scope:"string",variants:[p,m,x,y]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],z={keyword:k,literal:($=>{const O=[];return $.forEach(U=>{O.push(U),U.toLowerCase()===U?O.push(U.toUpperCase()):O.push(U.toLowerCase())}),O})(w),built_in:E},R=$=>$.map(O=>O.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(E).join("\\b|"),"\\b)"),l],scope:{1:"keyword",4:"title.class"}}]},I=i.concat(s,"\\b(?!\\()"),Z={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[l,i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[l,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[l,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},j={scope:"attr",match:i.concat(s,i.lookahead(":"),i.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:z,contains:[j,d,Z,t.C_BLOCK_COMMENT_MODE,N,S,H]},K={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(K);const V=[j,Z,t.C_BLOCK_COMMENT_MODE,N,S,H],A={begin:i.concat(/#\[\s*\\?/,i.either(l,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...V]},...V,{scope:"meta",variants:[{match:l},{match:c}]}]};return{case_insensitive:!1,keywords:z,contains:[A,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},f,{scope:"variable.language",match:/\$this\b/},d,K,Z,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:z,contains:["self",A,d,Z,t.C_BLOCK_COMMENT_MODE,N,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},N,S]}}return Gh=e,Gh}var Vh,cv;function WD(){if(cv)return Vh;cv=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Vh=e,Vh}var Yh,uv;function JD(){if(uv)return Yh;uv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Yh=e,Yh}var Xh,dv;function e4(){if(dv)return Xh;dv=1;function e(t){const i=t.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],f={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:f,illegal:/#/},p={begin:/\{\{/,relevance:0},x={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,h,p,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,p,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",_=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${_}))[eE][+-]?(${y})[jJ]?(?=${N})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${N})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${N})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`},{begin:`\\b(${y})[jJ](?=${N})`}]},w={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:f,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",h,S,x,t.HASH_COMMENT_MODE]}]};return m.contains=[x,S,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:f,illegal:/(<\/|\?)|=>/,contains:[h,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},x,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,k,x]}]}}return Xh=e,Xh}var Kh,fv;function t4(){if(fv)return Kh;fv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kh=e,Kh}var Zh,hv;function n4(){if(hv)return Zh;hv=1;function e(t){const i=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),l=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[l,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[c,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:l},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Zh=e,Zh}var Qh,mv;function i4(){if(mv)return Qh;mv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),l=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,l,i.lookahead(/\s*\(/))},d="([ui](8|16|32|64|128|size)|f(32|64))?",f=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],h=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:p,keyword:f,literal:h,built_in:m},illegal:""},c]}}return Qh=e,Qh}var Wh,pv;function r4(){if(pv)return Wh;pv=1;const e=h=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:h.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:h.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function f(h){const m=e(h),p=c,x=l,y="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[h.C_LINE_COMMENT_MODE,h.C_BLOCK_COMMENT_MODE,m.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+x.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[m.CSS_NUMBER_MODE]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[m.BLOCK_COMMENT,S,m.HEXCOLOR,m.CSS_NUMBER_MODE,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.IMPORTANT,m.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:y,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:y,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,h.QUOTE_STRING_MODE,h.APOS_STRING_MODE,m.HEXCOLOR,m.CSS_NUMBER_MODE]},m.FUNCTION_DISPATCH]}}return Wh=f,Wh}var Jh,gv;function a4(){if(gv)return Jh;gv=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Jh=e,Jh}var em,bv;function s4(){if(bv)return em;bv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},l={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],d=["double precision","large object","with timezone","without timezone"],f=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],h=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],x=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=p,N=[...m,...h].filter(R=>!p.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return i.concat(/\b/,i.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const M={scope:"keyword",match:E(y),relevance:0};function z(R,{exceptions:H,when:I}={}){const Z=I;return H=H||[],R.map(j=>j.match(/\|\d+$/)||H.includes(j)?j:Z(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:z(N,{when:R=>R.length<3}),literal:c,type:f,built_in:x},contains:[{scope:"type",match:E(d)},M,k,S,s,l,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return em=e,em}var tm,xv;function o4(){if(xv)return tm;xv=1;function e(I){return I?typeof I=="string"?I:I.source:null}function t(I){return i("(?=",I,")")}function i(...I){return I.map(j=>e(j)).join("")}function a(I){const Z=I[I.length-1];return typeof Z=="object"&&Z.constructor===Object?(I.splice(I.length-1,1),Z):{}}function s(...I){return"("+(a(I).capture?"":"?:")+I.map(q=>e(q)).join("|")+")"}const l=I=>i(/\b/,I,/\w$/.test(I)?/\b/:/\B/),c=["Protocol","Type"].map(l),d=["init","self"].map(l),f=["Any","Self"],h=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],m=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],x=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],y=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),N=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),S=i(_,N,"*"),w=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=i(w,k,"*"),M=i(/[A-Z]/,k,"*"),z=["attached","autoclosure",i(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(I){const Z={match:/\s+/,relevance:0},j=I.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[I.C_LINE_COMMENT_MODE,j],K={match:[/\./,s(...c,...d)],className:{2:"keyword"}},V={match:i(/\./,s(...h)),relevance:0},A=h.filter(nt=>typeof nt=="string").concat(["_|0"]),$=h.filter(nt=>typeof nt!="string").concat(f).map(l),O={variants:[{className:"keyword",match:s(...$,...d)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:A.concat(x),literal:m},Y=[K,V,O],X={match:i(/\./,s(...y)),relevance:0},C={className:"built_in",match:i(/\b/,s(...y),/(?=\()/)},D=[X,C],G={match:/->/,relevance:0},L={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[G,L],B="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${B})(\\.(${B}))?([eE][+-]?(${B}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${B}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},W=(nt="")=>({className:"subst",variants:[{match:i(/\\/,nt,/[0\\tnr"']/)},{match:i(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ee=(nt="")=>({className:"subst",match:i(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),le=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),ee(nt),le(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),le(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),be(),be("#"),be("##"),be("###")]},Ne=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],Le={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Yn=i(nt,/\//),Cn=i(/\//,nt);return{begin:Yn,end:Cn,contains:[...Ne,{scope:"comment",begin:`#(?!.*${Cn})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),Le]},Rt={match:i(/`/,E,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Vn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...F,J,we]}]}},wn={scope:"keyword",match:i(/@/,s(...z),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,E)},It=[Vn,wn,ct],ue={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:M,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,t(M)),relevance:0}]},xe={begin://,keywords:U,contains:[...q,...Y,...It,G,ue]};ue.contains.push(xe);const Oe={match:i(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",Oe,...q,st,...Y,...D,...F,J,we,...Xt,...It,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},ln={begin:s(t(i(E,/\s*:/)),t(i(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},En={begin:/\(/,end:/\)/,keywords:U,contains:[ln,...q,...Y,...F,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,En,Z],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,En,Z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,M],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...p,...m],end:/}/},jn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},_r={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:U,contains:[Ze,...Y,{begin:/:/,end:/\{/,keywords:U,contains:[{scope:"title.class.inherited",match:M},...Y],relevance:0}]};for(const nt of we.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=U;const Cn=[...Y,...D,...F,J,we,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:U,contains:[...q,Kt,Ct,jn,cn,_r,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},st,...Y,...D,...F,J,we,...Xt,...It,ue,Fe]}}return tm=H,tm}var nm,yv;function l4(){if(yv)return nm;yv=1;function e(t){const i="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},l={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},d={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,l]},f=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},N={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},w=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},y,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],k=[...w];return k.pop(),k.push(f),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return nm=e,nm}var im,vv;function c4(){if(vv)return im;vv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(l,a,s);function f(m){const p=m.regex,x=(W,{after:ee})=>{const le="",end:""},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const le=W[0].length+W.index,fe=W.input[le];if(fe==="<"||fe===","){ee.ignoreMatch();return}fe===">"&&(x(W,{after:le})||ee.ignoreMatch());let be;const we=W.input.substring(le);if(be=we.match(/^\s*=/)){ee.ignoreMatch();return}if((be=we.match(/^\s+extends\s+/))&&be.index===0){ee.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",E=`\\.(${k})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",z={className:"number",variants:[{begin:`(\\b(${M})((${E})|\\.)?|(${E}))[eE][+-]?(${k})\\b`},{begin:`\\b(${M})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},j={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,R]},K={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},V=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,H,I,Z,j,{match:/\$\d+/},z];R.contains=V.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(V)});const A=[].concat(K,R.contains),$=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(A)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$},U={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,p.concat(y,"(",p.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},C={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(W){return p.concat("(?!",W.join("|"),")")}const L={match:p.concat(/\b/,G([...l,"super","import"].map(W=>`${W}\\s*\\(`)),y,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:p.concat(/\./,p.lookahead(p.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},B={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,H,I,Z,j,K,{match:/\$\d+/},z,Y,{scope:"attr",match:y+p.lookahead(":"),relevance:0},J,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:N},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},C,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,m.inherit(m.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},L,D,U,B,{match:/\$[(.]/}]}}function h(m){const p=m.regex,x=f(m),y=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,m.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[x.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(k),literal:i,built_in:d.concat(_),"variable.language":c},M={className:"meta",begin:"@"+y},z=(Z,j,q)=>{const K=Z.contains.findIndex(V=>V.label===j);if(K===-1)throw new Error("can not find mode to replace");Z.contains.splice(K,1,q)};Object.assign(x.keywords,E),x.exports.PARAMS_CONTAINS.push(M);const R=x.contains.find(Z=>Z.scope==="attr"),H=Object.assign({},R,{match:p.concat(y,p.lookahead(/\s*\?:/))});x.exports.PARAMS_CONTAINS.push([x.exports.CLASS_REFERENCE,R,H]),x.contains=x.contains.concat([M,N,S,H]),z(x,"shebang",m.SHEBANG()),z(x,"use_strict",w);const I=x.contains.find(Z=>Z.label==="func.def");return I.relevance=0,Object.assign(x,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),x}return im=h,im}var rm,_v;function u4(){if(_v)return rm;_v=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},l=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,d=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,f=/\d{1,2}(:\d{1,2}){1,2}/,h={className:"literal",variants:[{begin:i.concat(/# */,i.either(c,l),/ *#/)},{begin:i.concat(/# */,f,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,l),/ +/,i.either(d,f),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},x=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,h,m,p,x,y,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[y]}]}}return rm=e,rm}var am,wv;function d4(){if(wv)return am;wv=1;function e(t){t.regex;const i=t.COMMENT(/\(;/,/;\)/);i.contains.push("self");const a=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],l={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},d={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},f={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},h={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[a,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,d,l,t.QUOTE_STRING_MODE,h,m,f]}}return am=e,am}var sm,Ev;function f4(){if(Ev)return sm;Ev=1;var e=CD();return e.registerLanguage("xml",MD()),e.registerLanguage("bash",OD()),e.registerLanguage("c",RD()),e.registerLanguage("cpp",DD()),e.registerLanguage("csharp",LD()),e.registerLanguage("css",jD()),e.registerLanguage("markdown",zD()),e.registerLanguage("diff",ID()),e.registerLanguage("ruby",BD()),e.registerLanguage("go",UD()),e.registerLanguage("graphql",HD()),e.registerLanguage("ini",$D()),e.registerLanguage("java",qD()),e.registerLanguage("javascript",PD()),e.registerLanguage("json",FD()),e.registerLanguage("kotlin",GD()),e.registerLanguage("less",VD()),e.registerLanguage("lua",YD()),e.registerLanguage("makefile",XD()),e.registerLanguage("perl",KD()),e.registerLanguage("objectivec",ZD()),e.registerLanguage("php",QD()),e.registerLanguage("php-template",WD()),e.registerLanguage("plaintext",JD()),e.registerLanguage("python",e4()),e.registerLanguage("python-repl",t4()),e.registerLanguage("r",n4()),e.registerLanguage("rust",i4()),e.registerLanguage("scss",r4()),e.registerLanguage("shell",a4()),e.registerLanguage("sql",s4()),e.registerLanguage("swift",o4()),e.registerLanguage("yaml",l4()),e.registerLanguage("typescript",c4()),e.registerLanguage("vbnet",u4()),e.registerLanguage("wasm",d4()),e.HighlightJS=e,e.default=e,sm=e,sm}var h4=f4();const Fn=xl(h4);function m4(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},l=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},e.inherit(s,{relevance:0})]}}function p4(e){const t=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function g4(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},a,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function b4(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"{up(l),s(!0),setTimeout(()=>s(!1),2e3)};return g.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[y?g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[y,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:S,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?g.jsx(zs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(al,{className:"w-3.5 h-3.5"})})]}):g.jsx("button",{onClick:S,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?g.jsx(zs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(al,{className:"w-3.5 h-3.5"})}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:N.map((E,M)=>g.jsxs("tr",{children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:x+M}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:E||` +`}})]},M))})})})]})}function Dp(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(l=>l.type==="element"&&l.tagName==="code");(a=s==null?void 0:s.data)!=null&&a.meta&&(s.properties=s.properties||{},s.properties.metastring=s.data.meta)}i.children&&i.children.forEach(s=>t(s))};t(e)}}const Lp={code:Pw,pre:({children:e})=>g.jsx(g.Fragment,{children:e})};function ra({title:e,content:t,action:i}){return g.jsxs("section",{children:[(e||i)&&g.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?g.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):g.jsx("span",{}),i]}),g.jsx("div",{className:"prose-markdown",children:g.jsx(Ap,{remarkPlugins:[Rp],rehypePlugins:[Dp],components:Lp,children:t})})]})}class y4{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const l=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(l,a)),f=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,f,a,s)}diffWithOptionsObj(t,i,a,s){var l;const c=k=>{if(k=this.postProcess(k,a),s){setTimeout(function(){s(k)},0);return}else return k},d=i.length,f=t.length;let h=1,m=d+f;a.maxEditLength!=null&&(m=Math.min(m,a.maxEditLength));const p=(l=a.timeout)!==null&&l!==void 0?l:1/0,x=Date.now()+p,y=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(y[0],i,t,0,a);if(y[0].oldPos+1>=f&&_+1>=d)return c(this.buildValues(y[0].lastComponent,i,t));let N=-1/0,S=1/0;const w=()=>{for(let k=Math.max(N,-h);k<=Math.min(S,h);k+=2){let E;const M=y[k-1],z=y[k+1];M&&(y[k-1]=void 0);let R=!1;if(z){const I=z.oldPos-k;R=z&&0<=I&&I=f&&_+1>=d)return c(this.buildValues(E.lastComponent,i,t))||!0;y[k]=E,E.oldPos+1>=f&&(S=Math.min(S,k-1)),_+1>=d&&(N=Math.max(N,k+1))}h++};if(s)(function k(){setTimeout(function(){if(h>m||Date.now()>x)return s(void 0);w()||k()},0)})();else for(;h<=m&&Date.now()<=x;){const k=w();if(k)return k}}addToPath(t,i,a,s,l){const c=t.lastComponent;return c&&!l.oneChangePerToken&&c.added===i&&c.removed===a?{oldPos:t.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:a,previousComponent:c.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:i,removed:a,previousComponent:c}}}extractCommon(t,i,a,s,l){const c=i.length,d=a.length;let f=t.oldPos,h=f-s,m=0;for(;h+1x.length?_:x}),m.value=this.join(p)}else m.value=this.join(i.slice(f,f+m.count));f+=m.count,m.added||(h+=m.count)}}return s}}class v4 extends y4{constructor(){super(...arguments),this.tokenize=E4}equals(t,i,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(` +`))&&(t=t.trim()),(!a.newlineIsToken||!i.includes(` +`))&&(i=i.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(t.endsWith(` +`)&&(t=t.slice(0,-1)),i.endsWith(` +`)&&(i=i.slice(0,-1))),super.equals(t,i,a)}}const _4=new v4;function w4(e,t,i){return _4.diff(e,t,i)}function E4(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` +`));const i=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;sN.value.replace(/\n$/,"").split(` +`).map(S=>{const w=S===""?` +`:h!=="text"?N4(S,h):S.replace(/&/g,"&").replace(//g,">");let k="",E="";return N.removed?k=String(p++):(N.added||(k=String(p++)),E=String(x++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:E}})),_=()=>{up(s),d(!0),setTimeout(()=>d(!1),2e3),l==null||l()};return g.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",f,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?g.jsx(zs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(al,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:y.map((N,S)=>g.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:N.leftNo}),g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:N.rightNo}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function k4({description:e,scriptCode:t,onCopy:i}){const[a,s]=ie.useState(!1);if(!e&&!t)return null;const l=()=>{t&&(up(t),s(!0),setTimeout(()=>s(!1),2e3),i==null||i())};return g.jsxs("section",{children:[g.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),g.jsxs("div",{className:"space-y-4",children:[e&&g.jsx("div",{className:"prose-markdown",children:g.jsx(Ap,{remarkPlugins:[Rp],rehypePlugins:[Dp],components:Lp,children:e})}),t&&g.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:l,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?g.jsx(zs,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(al,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:g.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:g.jsx("code",{dangerouslySetInnerHTML:{__html:Fn.highlight(t,{language:"python"}).value}})})})]})]})]})}function Fw(e){const t=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(t){const s=t[1].replace(/\.git$/,"");return{display:s,href:`https://github.com/${s}`,provider:"github"}}const i=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(i){const s=i[1].replace(/\.git$/,"");return{display:s,href:`https://gitlab.com/${s}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const s=a[1].replace(/\.git$/,"");return{display:s,href:`https://bitbucket.org/${s}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function ll(e,t){return e?Fw(e).display.replace(/\/$/,""):t||"Untitled scan"}function T4({className:e}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:g.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function A4({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?g.jsx(tT,{className:`${i} text-orange-400`}):e==="bitbucket"?g.jsx(T4,{className:`${i} text-blue-400`}):g.jsx(J2,{className:`${i} text-white`})}const C4={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},M4={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},O4={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},R4=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function D4(e,t,i,a,s){const l=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${l}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${l}/-/blob/${d}/${c}#L${s}`:null}function L4({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:l,cwe:c,fix_effort:d,created_at:f,target:h,endpoint:m,method:p,code_locations:x,cvss_breakdown:y,location_meta:_}=e,[N,S]=ie.useState(!0),w=x==null?void 0:x.filter(H=>H.fix_before&&H.fix_after),k=w&&w.length>0,E=h?Fw(h):null,M=!!(h||m||p||k),z=y&&Object.values(y).some(H=>H!=null);return g.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[g.jsx("div",{className:"pb-4",children:g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${cp(a)}`,"aria-hidden":"true"}),g.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),g.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),l&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),g.jsx("span",{className:"text-sm text-white font-mono",children:l})]}),c&&c.length>0&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),g.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=sA[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(h_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-white",children:Tm(f)})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),M&&g.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[g.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),g.jsxs("div",{className:"space-y-2.5",children:[h&&E&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?g.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:g.jsx(A4,{provider:E.provider})}):g.jsx(op,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?g.jsx("a",{href:E.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:E.display}):g.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),m&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:m})]}),p&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),g.jsx("span",{className:"text-xs text-white font-mono",children:p})]}),k&&g.jsxs("div",{children:[g.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),g.jsx("div",{className:"space-y-0.5",children:w.map((H,I)=>{const Z=`${H.file}:${H.start_line}`,j=_?D4(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return j?g.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:Z},`loc-${I}`):g.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Z},`loc-${I}`)})})]})]})]}),z&&g.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[g.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[g.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),g.jsx(d_,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),g.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:R4.map(H=>{const I=H.keys.filter(Z=>y[Z]!=null);return I.length===0?null:g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),g.jsx("div",{className:"space-y-1",children:I.map(Z=>{var V,A;const j=y[Z],q=j?((V=M4[Z])==null?void 0:V[j])??"low":"low",K=j?((A=C4[Z])==null?void 0:A[j])??j:"N/A";return g.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[g.jsx("span",{className:"text-[12px] text-[#aaa]",children:K}),g.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${O4[q]}`,children:q})]},Z)})})]},H.label)})})]})]})}function Nv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Tm(e)}`:` on ${Tm(e)}`:""}const j4={open:null,in_progress:{icon:h_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:p2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:M2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:l_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function z4({vulnerability:e}){const t=aA[e.status],i=e.code_locations&&e.code_locations.length>0,a=i||e.remediation_steps,s=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[l,c]=ie.useState("fix"),f=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(h=>h.show);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"mb-2",children:[e.display_number&&g.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:sC(e.display_number)}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[g.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${t.color}`,children:t.label}),g.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${w_[e.severity]}`,title:Hc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${cp(e.severity)}`}),g.jsxs("span",{className:"capitalize",children:[e.severity,!Hc(e)&&e.cvss?` ${e.cvss}`:""]}),Hc(e)&&g.jsx(Is,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const h=j4[e.status];if(!h)return null;const m=h.icon;return g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(m,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${h.iconColor}`,"aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:[h.label,Nv(e.status_changed_at)]}),e.status_note&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Hc(e)&&g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Is,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",g.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",g.jsx("span",{className:"capitalize",children:e.severity}),Nv(e.severity_changed_at)]}),e.severity_override_reason&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"space-y-8",children:[g.jsx(ra,{title:"TL;DR",content:e.description}),e.impact&&g.jsx(ra,{title:"Impact",content:e.impact}),e.technical_analysis&&g.jsx(ra,{title:"Technical Details",content:e.technical_analysis})]}),f.length>0&&g.jsxs("div",{className:"mt-10",children:[g.jsx("div",{className:"border-b border-[#2a2a2a]",children:g.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:f.map(h=>g.jsxs("button",{onClick:()=>c(h.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${l===h.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":l===h.id?"page":void 0,children:[h.label,l===h.id&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},h.id))})}),a&&g.jsxs("div",{className:`pt-6 space-y-6 ${l==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&g.jsx(ra,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(h=>h.fix_before&&h.fix_after).map((h,m)=>g.jsx(S4,{file:h.file,startLine:h.start_line,endLine:h.end_line,before:h.fix_before,after:h.fix_after},`fix-${m}`))]}),s&&g.jsxs("div",{className:`pt-6 space-y-8 ${l==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&g.jsx(ra,{title:"Assumptions",content:e.assumptions}),e.evidence&&g.jsx(ra,{title:"Evidence",content:e.evidence}),g.jsx(k4,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),g.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:g.jsx(L4,{vulnerability:e,statusSlot:g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${t.color}`,children:[g.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Ship the fix with your team"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Take this finding into your team's workflow."}),g.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[g.jsx(Rs,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:fu,surface:"finding_detail"}),g.jsx(Rs,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:Z2,surface:"finding_detail"}),g.jsx(Rs,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:sp,surface:"finding_detail"})]})]})]})}const Sv=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function I4({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:g.jsxs("div",{className:Pc("space-y-3",t),children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),g.jsx("span",{className:"text-sm text-[#666]",children:i})]}),g.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Sv.map(({key:s,label:l,dotClass:c,textClass:d})=>{const f=e[s];return f<=0?null:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:Pc("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),g.jsx("span",{className:Pc("text-sm tabular-nums",d),children:f}),g.jsx("span",{className:"text-xs text-[#555]",children:l})]},s)})}),a?g.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),g.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Sv.map(({key:s,dotClass:l})=>{const c=e[s];return c<=0?null:g.jsx("div",{className:Pc("h-full",l),style:{width:`${c/e.total*100}%`}},s)})})]})}function on(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i{}};function Iu(){for(var e=0,t=arguments.length,i={},a;e=0&&(a=i.slice(s+1),i=i.slice(0,s)),i&&!t.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}su.prototype=Iu.prototype={constructor:su,on:function(e,t){var i=this._,a=U4(e+"",i),s,l=-1,c=a.length;if(arguments.length<2){for(;++l0)for(var i=new Array(s),a=0,s,l;a=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Tv.hasOwnProperty(t)?{space:Tv[t],local:e}:e}function $4(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===Um&&t.documentElement.namespaceURI===Um?t.createElement(e):t.createElementNS(i,e)}}function q4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Gw(e){var t=Bu(e);return(t.local?q4:$4)(t)}function P4(){}function jp(e){return e==null?P4:function(){return this.querySelector(e)}}function F4(e){typeof e!="function"&&(e=jp(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s=E&&(E=k+1);!(z=S[E])&&++E<_;);M._next=z||null}}return c=new ri(c,a),c._enter=d,c._exit=f,c}function uL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dL(){return new ri(this._exit||this._groups.map(Kw),this._parents)}function fL(e,t,i){var a=this.enter(),s=this,l=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),i==null?l.remove():i(l),a&&s?a.merge(s).order():s}function hL(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,l=a.length,c=Math.min(s,l),d=new Array(s),f=0;f=0;)(c=a[s])&&(l&&c.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(c,l),l=c);return this}function pL(e){e||(e=gL);function t(p,x){return p&&x?e(p.__data__,x.__data__):!p-!x}for(var i=this._groups,a=i.length,s=new Array(a),l=0;lt?1:e>=t?0:NaN}function bL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function xL(){return Array.from(this)}function yL(){for(var e=this._groups,t=0,i=e.length;t1?this.each((t==null?ML:typeof t=="function"?RL:OL)(e,t,i??"")):Us(this.node(),e)}function Us(e,t){return e.style.getPropertyValue(t)||Zw(e).getComputedStyle(e,null).getPropertyValue(t)}function LL(e){return function(){delete this[e]}}function jL(e,t){return function(){this[e]=t}}function zL(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function IL(e,t){return arguments.length>1?this.each((t==null?LL:typeof t=="function"?zL:jL)(e,t)):this.node()[e]}function Qw(e){return e.trim().split(/^|\s+/)}function zp(e){return e.classList||new Ww(e)}function Ww(e){this._node=e,this._names=Qw(e.getAttribute("class")||"")}Ww.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Jw(e,t){for(var i=zp(e),a=-1,s=t.length;++a=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function dj(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,l;i()=>e;function Hm(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:l,x:c,y:d,dx:f,dy:h,dispatch:m}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:m}})}Hm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _j(e){return!e.ctrlKey&&!e.button}function wj(){return this.parentNode}function Ej(e,t){return t??{x:e.x,y:e.y}}function Nj(){return navigator.maxTouchPoints||"ontouchstart"in this}function aE(){var e=_j,t=wj,i=Ej,a=Nj,s={},l=Iu("start","drag","end"),c=0,d,f,h,m,p=0;function x(M){M.on("mousedown.drag",y).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,vj).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(M,z){if(!(m||!e.call(this,M,z))){var R=E(this,t.call(this,M,z),M,z,"mouse");R&&(ni(M.view).on("mousemove.drag",_,cl).on("mouseup.drag",N,cl),iE(M.view),om(M),h=!1,d=M.clientX,f=M.clientY,R("start",M))}}function _(M){if(Ds(M),!h){var z=M.clientX-d,R=M.clientY-f;h=z*z+R*R>p}s.mouse("drag",M)}function N(M){ni(M.view).on("mousemove.drag mouseup.drag",null),rE(M.view,h),Ds(M),s.mouse("end",M)}function S(M,z){if(e.call(this,M,z)){var R=M.changedTouches,H=t.call(this,M,z),I=R.length,Z,j;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?Kc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?Kc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kj.exec(e))?new Pn(t[1],t[2],t[3],1):(t=Tj.exec(e))?new Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Aj.exec(e))?Kc(t[1],t[2],t[3],t[4]):(t=Cj.exec(e))?Kc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Mj.exec(e))?Lv(t[1],t[2]/100,t[3]/100,1):(t=Oj.exec(e))?Lv(t[1],t[2]/100,t[3]/100,t[4]):Av.hasOwnProperty(e)?Ov(Av[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function Ov(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Kc(e,t,i,a){return a<=0&&(e=t=i=NaN),new Pn(e,t,i,a)}function Lj(e){return e instanceof Nl||(e=Ba(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function $m(e,t,i,a){return arguments.length===1?Lj(e):new Pn(e,t,i,a??1)}function Pn(e,t,i,a){this.r=+e,this.g=+t,this.b=+i,this.opacity=+a}Ip(Pn,$m,sE(Nl,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ul:Math.pow(ul,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(ja(this.r),ja(this.g),ja(this.b),vu(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:Rv,formatHex:Rv,formatHex8:jj,formatRgb:Dv,toString:Dv}));function Rv(){return`#${Da(this.r)}${Da(this.g)}${Da(this.b)}`}function jj(){return`#${Da(this.r)}${Da(this.g)}${Da(this.b)}${Da((isNaN(this.opacity)?1:this.opacity)*255)}`}function Dv(){const e=vu(this.opacity);return`${e===1?"rgb(":"rgba("}${ja(this.r)}, ${ja(this.g)}, ${ja(this.b)}${e===1?")":`, ${e})`}`}function vu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ja(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Da(e){return e=ja(e),(e<16?"0":"")+e.toString(16)}function Lv(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Ti(e,t,i,a)}function oE(e){if(e instanceof Ti)return new Ti(e.h,e.s,e.l,e.opacity);if(e instanceof Nl||(e=Ba(e)),!e)return new Ti;if(e instanceof Ti)return e;e=e.rgb();var t=e.r/255,i=e.g/255,a=e.b/255,s=Math.min(t,i,a),l=Math.max(t,i,a),c=NaN,d=l-s,f=(l+s)/2;return d?(t===l?c=(i-a)/d+(i0&&f<1?0:c,new Ti(c,d,f,e.opacity)}function zj(e,t,i,a){return arguments.length===1?oE(e):new Ti(e,t,i,a??1)}function Ti(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}Ip(Ti,zj,sE(Nl,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new Ti(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ul:Math.pow(ul,e),new Ti(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*t,s=2*i-a;return new Pn(lm(e>=240?e-240:e+120,s,a),lm(e,s,a),lm(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Ti(jv(this.h),Zc(this.s),Zc(this.l),vu(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 e=vu(this.opacity);return`${e===1?"hsl(":"hsla("}${jv(this.h)}, ${Zc(this.s)*100}%, ${Zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jv(e){return e=(e||0)%360,e<0?e+360:e}function Zc(e){return Math.max(0,Math.min(1,e||0))}function lm(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}const Bp=e=>()=>e;function Ij(e,t){return function(i){return e+i*t}}function Bj(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(a){return Math.pow(e+a*t,i)}}function Uj(e){return(e=+e)==1?lE:function(t,i){return i-t?Bj(t,i,e):Bp(isNaN(t)?i:t)}}function lE(e,t){var i=t-e;return i?Ij(e,i):Bp(isNaN(e)?t:e)}const _u=(function e(t){var i=Uj(t);function a(s,l){var c=i((s=$m(s)).r,(l=$m(l)).r),d=i(s.g,l.g),f=i(s.b,l.b),h=lE(s.opacity,l.opacity);return function(m){return s.r=c(m),s.g=d(m),s.b=f(m),s.opacity=h(m),s+""}}return a.gamma=e,a})(1);function Hj(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(l){for(s=0;si&&(l=t.slice(i,l),d[c]?d[c]+=l:d[++c]=l),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,f.push({i:c,x:qi(a,s)})),i=cm.lastIndex;return i180?m+=360:m-h>180&&(h+=360),x.push({i:p.push(s(p)+"rotate(",null,a)-2,x:qi(h,m)})):m&&p.push(s(p)+"rotate("+m+a)}function d(h,m,p,x){h!==m?x.push({i:p.push(s(p)+"skewX(",null,a)-2,x:qi(h,m)}):m&&p.push(s(p)+"skewX("+m+a)}function f(h,m,p,x,y,_){if(h!==p||m!==x){var N=y.push(s(y)+"scale(",null,",",null,")");_.push({i:N-4,x:qi(h,p)},{i:N-2,x:qi(m,x)})}else(p!==1||x!==1)&&y.push(s(y)+"scale("+p+","+x+")")}return function(h,m){var p=[],x=[];return h=e(h),m=e(m),l(h.translateX,h.translateY,m.translateX,m.translateY,p,x),c(h.rotate,m.rotate,p,x),d(h.skewX,m.skewX,p,x),f(h.scaleX,h.scaleY,m.scaleX,m.scaleY,p,x),h=m=null,function(y){for(var _=-1,N=x.length,S;++_=0&&e._call.call(void 0,t),e=e._next;--Hs}function Bv(){Ua=(Eu=fl.now())+Uu,Hs=Qo=0;try{tz()}finally{Hs=0,iz(),Ua=0}}function nz(){var e=fl.now(),t=e-Eu;t>fE&&(Uu-=t,Eu=e)}function iz(){for(var e,t=wu,i,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(i=t._next,t._next=null,t=e?e._next=i:wu=i);Wo=e,Fm(a)}function Fm(e){if(!Hs){Qo&&(Qo=clearTimeout(Qo));var t=e-Ua;t>24?(e<1/0&&(Qo=setTimeout(Bv,e-fl.now()-Uu)),Yo&&(Yo=clearInterval(Yo))):(Yo||(Eu=fl.now(),Yo=setInterval(nz,fE)),Hs=1,hE(Bv))}}function Uv(e,t,i){var a=new Nu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var rz=Iu("start","end","cancel","interrupt"),az=[],pE=0,Hv=1,Gm=2,lu=3,$v=4,Vm=5,cu=6;function Hu(e,t,i,a,s,l){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;sz(e,i,{name:t,index:a,group:s,on:rz,tween:az,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:pE})}function Hp(e,t){var i=Di(e,t);if(i.state>pE)throw new Error("too late; already scheduled");return i}function Yi(e,t){var i=Di(e,t);if(i.state>lu)throw new Error("too late; already running");return i}function Di(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function sz(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=mE(l,0,i.time);function l(h){i.state=Hv,i.timer.restart(c,i.delay,i.time),i.delay<=h&&c(h-i.delay)}function c(h){var m,p,x,y;if(i.state!==Hv)return f();for(m in a)if(y=a[m],y.name===i.name){if(y.state===lu)return Uv(c);y.state===$v?(y.state=cu,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete a[m]):+mGm&&a.state=0&&(t=t.slice(0,i)),!t||t==="start"})}function zz(e,t,i){var a,s,l=jz(t)?Hp:Yi;return function(){var c=l(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function Iz(e,t){var i=this._id;return arguments.length<2?Di(this.node(),i).on.on(e):this.each(zz(i,e,t))}function Bz(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function Uz(){return this.on("end.remove",Bz(this._id))}function Hz(e){var t=this._name,i=this._id;typeof e!="function"&&(e=jp(e));for(var a=this._groups,s=a.length,l=new Array(s),c=0;c()=>e;function dI(e,{sourceEvent:t,target:i,transform:a,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function gr(e,t,i){this.k=e,this.x=t,this.y=i}gr.prototype={constructor:gr,scale:function(e){return e===1?this:new gr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new gr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $u=new gr(1,0,0);yE.prototype=gr.prototype;function yE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $u;return e.__zoom}function um(e){e.stopImmediatePropagation()}function Xo(e){e.preventDefault(),e.stopImmediatePropagation()}function fI(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function hI(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function qv(){return this.__zoom||$u}function mI(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pI(){return navigator.maxTouchPoints||"ontouchstart"in this}function gI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],l=e.invertY(t[0][1])-i[0][1],c=e.invertY(t[1][1])-i[1][1];return e.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),c>l?(l+c)/2:Math.min(0,l)||Math.max(0,c))}function vE(){var e=fI,t=hI,i=gI,a=mI,s=pI,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,f=ou,h=Iu("start","zoom","end"),m,p,x,y=500,_=150,N=0,S=10;function w(A){A.property("__zoom",qv).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",K).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(A,$,O,U){var Y=A.selection?A.selection():A;Y.property("__zoom",qv),A!==Y?z(A,$,O,U):Y.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},w.scaleBy=function(A,$,O,U){w.scaleTo(A,function(){var Y=this.__zoom.k,X=typeof $=="function"?$.apply(this,arguments):$;return Y*X},O,U)},w.scaleTo=function(A,$,O,U){w.transform(A,function(){var Y=t.apply(this,arguments),X=this.__zoom,C=O==null?M(Y):typeof O=="function"?O.apply(this,arguments):O,D=X.invert(C),G=typeof $=="function"?$.apply(this,arguments):$;return i(E(k(X,G),C,D),Y,c)},O,U)},w.translateBy=function(A,$,O,U){w.transform(A,function(){return i(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),c)},null,U)},w.translateTo=function(A,$,O,U,Y){w.transform(A,function(){var X=t.apply(this,arguments),C=this.__zoom,D=U==null?M(X):typeof U=="function"?U.apply(this,arguments):U;return i($u.translate(D[0],D[1]).scale(C.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof O=="function"?-O.apply(this,arguments):-O),X,c)},U,Y)};function k(A,$){return $=Math.max(l[0],Math.min(l[1],$)),$===A.k?A:new gr($,A.x,A.y)}function E(A,$,O){var U=$[0]-O[0]*A.k,Y=$[1]-O[1]*A.k;return U===A.x&&Y===A.y?A:new gr(A.k,U,Y)}function M(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function z(A,$,O,U){A.on("start.zoom",function(){R(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(U).end()}).tween("zoom",function(){var Y=this,X=arguments,C=R(Y,X).event(U),D=t.apply(Y,X),G=O==null?M(D):typeof O=="function"?O.apply(Y,X):O,L=Math.max(D[1][0]-D[0][0],D[1][1]-D[0][1]),F=Y.__zoom,B=typeof $=="function"?$.apply(Y,X):$,Q=f(F.invert(G).concat(L/F.k),B.invert(G).concat(L/B.k));return function(J){if(J===1)J=B;else{var W=Q(J),ee=L/W[2];J=new gr(ee,G[0]-W[0]*ee,G[1]-W[1]*ee)}C.zoom(null,J)}})}function R(A,$,O){return!O&&A.__zooming||new H(A,$)}function H(A,$){this.that=A,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(A,$),this.taps=0}H.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,$){return this.mouse&&A!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var $=ni(this.that).datum();h.call(A,this.that,new dI(A,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:h}),$)}};function I(A,...$){if(!e.apply(this,arguments))return;var O=R(this,$).event(A),U=this.__zoom,Y=Math.max(l[0],Math.min(l[1],U.k*Math.pow(2,a.apply(this,arguments)))),X=ki(A);if(O.wheel)(O.mouse[0][0]!==X[0]||O.mouse[0][1]!==X[1])&&(O.mouse[1]=U.invert(O.mouse[0]=X)),clearTimeout(O.wheel);else{if(U.k===Y)return;O.mouse=[X,U.invert(X)],uu(this),O.start()}Xo(A),O.wheel=setTimeout(C,_),O.zoom("mouse",i(E(k(U,Y),O.mouse[0],O.mouse[1]),O.extent,c));function C(){O.wheel=null,O.end()}}function Z(A,...$){if(x||!e.apply(this,arguments))return;var O=A.currentTarget,U=R(this,$,!0).event(A),Y=ni(A.view).on("mousemove.zoom",G,!0).on("mouseup.zoom",L,!0),X=ki(A,O),C=A.clientX,D=A.clientY;iE(A.view),um(A),U.mouse=[X,this.__zoom.invert(X)],uu(this),U.start();function G(F){if(Xo(F),!U.moved){var B=F.clientX-C,Q=F.clientY-D;U.moved=B*B+Q*Q>N}U.event(F).zoom("mouse",i(E(U.that.__zoom,U.mouse[0]=ki(F,O),U.mouse[1]),U.extent,c))}function L(F){Y.on("mousemove.zoom mouseup.zoom",null),rE(F.view,U.moved),Xo(F),U.event(F).end()}}function j(A,...$){if(e.apply(this,arguments)){var O=this.__zoom,U=ki(A.changedTouches?A.changedTouches[0]:A,this),Y=O.invert(U),X=O.k*(A.shiftKey?.5:2),C=i(E(k(O,X),U,Y),t.apply(this,$),c);Xo(A),d>0?ni(this).transition().duration(d).call(z,C,U,A):ni(this).call(w.transform,C,U,A)}}function q(A,...$){if(e.apply(this,arguments)){var O=A.touches,U=O.length,Y=R(this,$,A.changedTouches.length===U).event(A),X,C,D,G;for(um(A),C=0;C`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},hl=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_E=["Enter"," ","Escape"],wE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:i})=>`Moved selected node ${e}. New position, x: ${t}, y: ${i}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var $s;(function(e){e.Strict="strict",e.Loose="loose"})($s||($s={}));var za;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(za||(za={}));var ml;(function(e){e.Partial="partial",e.Full="full"})(ml||(ml={}));const EE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var aa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(aa||(aa={}));var Su;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Su||(Su={}));var ze;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ze||(ze={}));const Pv={[ze.Left]:ze.Right,[ze.Right]:ze.Left,[ze.Top]:ze.Bottom,[ze.Bottom]:ze.Top};function NE(e){return e===null?null:e?"valid":"invalid"}const SE=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,bI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),qp=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Sl=(e,t=[0,0])=>{const{width:i,height:a}=Xi(e),s=e.origin??t,l=i*s[0],c=a*s[1];return{x:e.position.x-l,y:e.position.y-c}},xI=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,s)=>{const l=typeof s=="string";let c=!t.nodeLookup&&!l?s:void 0;t.nodeLookup&&(c=l?t.nodeLookup.get(s):qp(s)?s:t.nodeLookup.get(s.id));const d=c?ku(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return qu(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Pu(i)},kl=(e,t={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(i=qu(i,ku(s)),a=!0)}),a?Pu(i):{x:0,y:0,width:0,height:0}},Pp=(e,t,[i,a,s]=[0,0,1],l=!1,c=!1)=>{const d=(t.x-i)/s,f=(t.y-a)/s,h=t.width/s,m=t.height/s,p=[];for(const x of e.values()){const{measured:y,selectable:_=!0,hidden:N=!1}=x;if(c&&!_||N)continue;const S=y.width??x.width??x.initialWidth??0,w=y.height??x.height??x.initialHeight??0,{x:k,y:E}=x.internals.positionAbsolute,M=CE(d,f,h,m,k,E,S,w),z=S*w,R=l&&M>0;(!x.internals.handleBounds||R||M>=z||x.dragging)&&p.push(x)}return p},yI=(e,t)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),t.filter(a=>i.has(a.source)||i.has(a.target))};function vI(e,t){const i=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{let l;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Xi(s);l=c>0&&d>0}else l=!!(s.measured.width&&s.measured.height&&!s.hidden);l&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function _I({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:l},c){if(e.size===0)return!0;const d=vI(e,c),f=kl(d),h=Gp(f,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??l,(c==null?void 0:c.padding)??.1);return await a.setViewport(h,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function kE({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:l}){const c=i.get(e),d=c.parentId?i.get(c.parentId):void 0,{x:f,y:h}=d?d.internals.positionAbsolute:{x:0,y:0},m=c.origin??a;let p=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)l==null||l("005",Oi.error005());else{const y=d.measured.width,_=d.measured.height;y&&_&&(p=[[f,h],[f+y,h+_]])}else d&&$a(c.extent)&&(p=[[c.extent[0][0]+f,c.extent[0][1]+h],[c.extent[1][0]+f,c.extent[1][1]+h]]);const x=$a(p)?Ha(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(l==null||l("015",Oi.error015())),{position:{x:x.x-f+(c.measured.width??0)*m[0],y:x.y-h+(c.measured.height??0)*m[1]},positionAbsolute:x}}async function wI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const l=new Set(e.map(x=>x.id)),c=[];for(const x of i){if(x.deletable===!1)continue;const y=l.has(x.id),_=!y&&x.parentId&&c.find(N=>N.id===x.parentId);(y||_)&&c.push(x)}const d=new Set(t.map(x=>x.id)),f=a.filter(x=>x.deletable!==!1),m=yI(c,f);for(const x of f)d.has(x.id)&&!m.find(_=>_.id===x.id)&&m.push(x);if(!s)return{edges:m,nodes:c};const p=await s({nodes:c,edges:m});return typeof p=="boolean"?p?{edges:m,nodes:c}:{edges:[],nodes:[]}:p}const qs=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ha=(e={x:0,y:0},t,i)=>({x:qs(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:qs(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function TE(e,t,i){const{width:a,height:s}=Xi(i),{x:l,y:c}=i.internals.positionAbsolute;return Ha(e,[[l,c],[l+a,c+s]],t)}const Fv=(e,t,i)=>ei?-qs(Math.abs(e-i),1,t)/t:0,Fp=(e,t,i=15,a=40)=>{const s=Fv(e.x,a,t.width-a)*i,l=Fv(e.y,a,t.height-a)*i;return[s,l]},qu=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Ym=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Pu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),pl=(e,t=[0,0])=>{var s,l;const{x:i,y:a}=qp(e)?e.internals.positionAbsolute:Sl(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((l=e.measured)==null?void 0:l.height)??e.height??e.initialHeight??0}},ku=(e,t=[0,0])=>{var s,l;const{x:i,y:a}=qp(e)?e.internals.positionAbsolute:Sl(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((l=e.measured)==null?void 0:l.height)??e.height??e.initialHeight??0)}},AE=(e,t)=>Pu(qu(Ym(e),Ym(t))),CE=(e,t,i,a,s,l,c,d)=>{const f=Math.max(0,Math.min(e+i,s+c)-Math.max(e,s)),h=Math.max(0,Math.min(t+a,l+d)-Math.max(t,l));return Math.ceil(f*h)},Tu=(e,t)=>CE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),Gv=e=>Ai(e.width)&&Ai(e.height)&&Ai(e.x)&&Ai(e.y),Ai=e=>!isNaN(e)&&isFinite(e),ME=(e,t)=>(i,a)=>{},Tl=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Al=({x:e,y:t},[i,a,s],l=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return l?Tl(d,c):d},Ps=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function ks(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(t*i*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function EI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=ks(e,i),s=ks(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=ks(e.top??e.y??0,i),s=ks(e.bottom??e.y??0,i),l=ks(e.left??e.x??0,t),c=ks(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:l,x:l+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function NI(e,t,i,a,s,l){const{x:c,y:d}=Ps(e,[t,i,a]),{x:f,y:h}=Ps({x:e.x+e.width,y:e.y+e.height},[t,i,a]),m=s-f,p=l-h;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(m),bottom:Math.floor(p)}}const Gp=(e,t,i,a,s,l)=>{const c=EI(l,t,i),d=(t-c.x)/e.width,f=(i-c.y)/e.height,h=Math.min(d,f),m=qs(h,a,s),p=e.x+e.width/2,x=e.y+e.height/2,y=t/2-p*m,_=i/2-x*m,N=NI(e,y,_,m,t,i),S={left:Math.min(N.left-c.left,0),top:Math.min(N.top-c.top,0),right:Math.min(N.right-c.right,0),bottom:Math.min(N.bottom-c.bottom,0)};return{x:y-S.left+S.right,y:_-S.top+S.bottom,zoom:m}},gl=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function $a(e){return e!=null&&e!=="parent"}function Xi(e){var t,i;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function OE(e){var t,i;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function RE(e,t={width:0,height:0},i,a,s){const l={...e},c=a.get(i);if(c){const d=c.origin||s;l.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],l.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return l}function Vv(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function SI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function kI(e){return{...wE,...e||{}}}function rl(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:l,y:c}=Ci(e),d=Al({x:l-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:f,y:h}=i?Tl(d,t):d;return{xSnapped:f,ySnapped:h,...d}}const Vp=e=>({width:e.offsetWidth,height:e.offsetHeight}),DE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},TI=["INPUT","SELECT","TEXTAREA"];function LE(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:TI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const jE=e=>"clientX"in e,Ci=(e,t)=>{var l,c;const i=jE(e),a=i?e.clientX:(l=e.touches)==null?void 0:l[0].clientX,s=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},Yv=(e,t,i,a,s)=>{const l=t.querySelectorAll(`.${e}`);return!l||!l.length?null:Array.from(l).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(d.left-i.left)/a,y:(d.top-i.top)/a,...Vp(c)}})};function zE({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:d}){const f=e*.125+s*.375+c*.375+i*.125,h=t*.125+l*.375+d*.375+a*.125,m=Math.abs(f-e),p=Math.abs(h-t);return[f,h,m,p]}function Jc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Xv({pos:e,x1:t,y1:i,x2:a,y2:s,c:l}){switch(e){case ze.Left:return[t-Jc(t-a,l),i];case ze.Right:return[t+Jc(a-t,l),i];case ze.Top:return[t,i-Jc(i-s,l)];case ze.Bottom:return[t,i+Jc(s-i,l)]}}function IE({sourceX:e,sourceY:t,sourcePosition:i=ze.Bottom,targetX:a,targetY:s,targetPosition:l=ze.Top,curvature:c=.25}){const[d,f]=Xv({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[h,m]=Xv({pos:l,x1:a,y1:s,x2:e,y2:t,c}),[p,x,y,_]=zE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:f,targetControlX:h,targetControlY:m});return[`M${e},${t} C${d},${f} ${h},${m} ${a},${s}`,p,x,y,_]}function BE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,l=i0}const MI=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,OI=(e,t)=>t.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),RI=(e,t,i={})=>{var l;if(!e.source||!e.target)return(l=i.onError)==null||l.call(i,"006",Oi.error006()),t;const a=i.getEdgeId||MI;let s;return SE(e)?s={...e}:s={...e,id:a(e)},OI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function UE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,l,c,d]=BE({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,l,c,d]}const Kv={[ze.Left]:{x:-1,y:0},[ze.Right]:{x:1,y:0},[ze.Top]:{x:0,y:-1},[ze.Bottom]:{x:0,y:1}},DI=({source:e,sourcePosition:t=ze.Bottom,target:i})=>t===ze.Left||t===ze.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function LI({source:e,sourcePosition:t=ze.Bottom,target:i,targetPosition:a=ze.Top,center:s,offset:l,stepPosition:c}){const d=Kv[t],f=Kv[a],h={x:e.x+d.x*l,y:e.y+d.y*l},m={x:i.x+f.x*l,y:i.y+f.y*l},p=DI({source:h,sourcePosition:t,target:m}),x=p.x!==0?"x":"y",y=p[x];let _=[],N,S;const w={x:0,y:0},k={x:0,y:0},[,,E,M]=BE({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(d[x]*f[x]===-1){x==="x"?(N=s.x??h.x+(m.x-h.x)*c,S=s.y??(h.y+m.y)/2):(N=s.x??(h.x+m.x)/2,S=s.y??h.y+(m.y-h.y)*c);const I=[{x:N,y:h.y},{x:N,y:m.y}],Z=[{x:h.x,y:S},{x:m.x,y:S}];d[x]===y?_=x==="x"?I:Z:_=x==="x"?Z:I}else{const I=[{x:h.x,y:m.y}],Z=[{x:m.x,y:h.y}];if(x==="x"?_=d.x===y?Z:I:_=d.y===y?I:Z,t===a){const A=Math.abs(e[x]-i[x]);if(A<=l){const $=Math.min(l-1,l-A);d[x]===y?w[x]=(h[x]>e[x]?-1:1)*$:k[x]=(m[x]>i[x]?-1:1)*$}}if(t!==a){const A=x==="x"?"y":"x",$=d[x]===f[A],O=h[A]>m[A],U=h[A]=V?(N=(j.x+q.x)/2,S=_[0].y):(N=_[0].x,S=(j.y+q.y)/2)}const z={x:h.x+w.x,y:h.y+w.y},R={x:m.x+k.x,y:m.y+k.y};return[[e,...z.x!==_[0].x||z.y!==_[0].y?[z]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,E,M]}function jI(e,t,i,a){const s=Math.min(Zv(e,t)/2,Zv(t,i)/2,a),{x:l,y:c}=t;if(e.x===l&&l===i.x||e.y===c&&c===i.y)return`L${l} ${c}`;if(e.y===c){const h=e.xi.id===t):e[0])||null}function Km(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function II(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const l=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(f=>{if(f&&typeof f=="object"){const h=Km(f,t);l.has(h)||(c.push({id:h,color:f.color||i,...f}),l.add(h))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const HE=1e3,BI=10,Yp={nodeOrigin:[0,0],nodeExtent:hl,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},UI={...Yp,checkEquality:!0};function Xp(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function HI(e,t,i){const a=Xp(Yp,i);for(const s of e.values())if(s.parentId)Zp(s,e,t,a);else{const l=Sl(s,a.nodeOrigin),c=$a(s.extent)?s.extent:a.nodeExtent,d=Ha(l,c,Xi(s));s.internals.positionAbsolute=d}}function $I(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const i=[],a=[];for(const s of e.handles){const l={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?i.push(l):s.type==="target"&&a.push(l)}return{source:i,target:a}}function Kp(e){return e==="manual"}function Zm(e,t,i,a={}){var m,p;const s=Xp(UI,a),l={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!Kp(s.zIndexMode)?HE:0;let f=e.length>0,h=!1;t.clear(),i.clear();for(const x of e){let y=c.get(x.id);if(s.checkEquality&&x===(y==null?void 0:y.internals.userNode))t.set(x.id,y);else{const _=Sl(x,s.nodeOrigin),N=$a(x.extent)?x.extent:s.nodeExtent,S=Ha(_,N,Xi(x));y={...s.defaults,...x,measured:{width:(m=x.measured)==null?void 0:m.width,height:(p=x.measured)==null?void 0:p.height},internals:{positionAbsolute:S,handleBounds:$I(x,y),z:$E(x,d,s.zIndexMode),userNode:x}},t.set(x.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(f=!1),x.parentId&&Zp(y,t,i,a,l),h||(h=x.selected??!1)}return{nodesInitialized:f,hasSelectedNodes:h}}function qI(e,t){if(!e.parentId)return;const i=t.get(e.parentId);i?i.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Zp(e,t,i,a,s){const{elevateNodesOnSelect:l,nodeOrigin:c,nodeExtent:d,zIndexMode:f}=Xp(Yp,a),h=e.parentId,m=t.get(h);if(!m){console.warn(`Parent node ${h} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}qI(e,i),s&&!m.parentId&&m.internals.rootParentIndex===void 0&&f==="auto"&&(m.internals.rootParentIndex=++s.i,m.internals.z=m.internals.z+s.i*BI),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const p=l&&!Kp(f)?HE:0,{x,y,z:_}=PI(e,m,c,d,p,f),{positionAbsolute:N}=e.internals,S=x!==N.x||y!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x,y}:N,z:_}})}function $E(e,t,i){const a=Ai(e.zIndex)?e.zIndex:0;return Kp(i)?a:a+(e.selected?t:0)}function PI(e,t,i,a,s,l){const{x:c,y:d}=t.internals.positionAbsolute,f=Xi(e),h=Sl(e,i),m=$a(e.extent)?Ha(h,e.extent,f):h;let p=Ha({x:c+m.x,y:d+m.y},a,f);e.extent==="parent"&&(p=TE(p,f,t));const x=$E(e,s,l),y=t.internals.z??0;return{x:p.x,y:p.y,z:y>=x?y+1:x}}function Qp(e,t,i,a=[0,0]){var c;const s=[],l=new Map;for(const d of e){const f=t.get(d.parentId);if(!f)continue;const h=((c=l.get(d.parentId))==null?void 0:c.expandedRect)??pl(f),m=AE(h,d.rect);l.set(d.parentId,{expandedRect:m,parent:f})}return l.size>0&&l.forEach(({expandedRect:d,parent:f},h)=>{var E;const m=f.internals.positionAbsolute,p=Xi(f),x=f.origin??a,y=d.x0||_>0||w||k)&&(s.push({id:h,type:"position",position:{x:f.position.x-y+w,y:f.position.y-_+k}}),(E=i.get(h))==null||E.forEach(M=>{e.some(z=>z.id===M.id)||s.push({id:M.id,type:"position",position:{x:M.position.x+y,y:M.position.y+_}})})),(p.width0){const y=Qp(x,t,i,s);h.push(...y)}return{changes:h,updatedInternals:f}}async function GI({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:l}){if(!t||!e.x&&!e.y)return!1;const c=await t.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[s,l]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function e1(e,t,i,a,s,l){let c=s;const d=a.get(c)||new Map;a.set(c,d.set(i,t)),c=`${s}-${e}`;const f=a.get(c)||new Map;if(a.set(c,f.set(i,t)),l){c=`${s}-${e}-${l}`;const h=a.get(c)||new Map;a.set(c,h.set(i,t))}}function qE(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:l,sourceHandle:c=null,targetHandle:d=null}=a,f={edgeId:a.id,source:s,target:l,sourceHandle:c,targetHandle:d},h=`${s}-${c}--${l}-${d}`,m=`${l}-${d}--${s}-${c}`;e1("source",f,m,e,s,c),e1("target",f,h,e,l,d),t.set(a.id,a)}}function PE(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:PE(i,t):!1}function t1(e,t,i){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function VI(e,t,i,a){const s=new Map;for(const[l,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!PE(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(l);d&&s.set(l,{id:l,position:d.position||{x:0,y:0},distance:{x:i.x-d.internals.positionAbsolute.x,y:i.y-d.internals.positionAbsolute.y},extent:d.extent,parentId:d.parentId,origin:d.origin,expandParent:d.expandParent,internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured.width??0,height:d.measured.height??0}})}return s}function dm({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,d,f;const s=[];for(const[h,m]of t){const p=(c=i.get(h))==null?void 0:c.internals.userNode;p&&s.push({...p,position:m.position,dragging:a})}if(!e)return[s[0],s];const l=(d=i.get(e))==null?void 0:d.internals.userNode;return[l?{...l,position:((f=t.get(e))==null?void 0:f.position)||l.position,dragging:a}:s[0],s]}function YI({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const l={x:i-s.distance.x,y:a-s.distance.y},c=Tl(l,t);return{x:c.x-l.x,y:c.y-l.y}}function XI({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let l={x:null,y:null},c=0,d=new Map,f=!1,h={x:0,y:0},m=null,p=!1,x=null,y=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:E,domNode:M,isSelectable:z,nodeId:R,nodeClickDistance:H=0}){x=ni(M);function I({x:K,y:V}){const{nodeLookup:A,nodeExtent:$,snapGrid:O,snapToGrid:U,nodeOrigin:Y,onNodeDrag:X,onSelectionDrag:C,onError:D,updateNodePositions:G}=t();l={x:K,y:V};let L=!1;const F=d.size>1,B=F&&$?Ym(kl(d)):null,Q=F&&U?YI({dragItems:d,snapGrid:O,x:K,y:V}):null;for(const[J,W]of d){if(!A.has(J))continue;let ee={x:K-W.distance.x,y:V-W.distance.y};U&&(ee=Q?{x:Math.round(ee.x+Q.x),y:Math.round(ee.y+Q.y)}:Tl(ee,O));let le=null;if(F&&$&&!W.extent&&B){const{positionAbsolute:we}=W.internals,Ne=we.x-B.x+$[0][0],Le=we.x+W.measured.width-B.x2+$[1][0],$e=we.y-B.y+$[0][1],st=we.y+W.measured.height-B.y2+$[1][1];le=[[Ne,$e],[Le,st]]}const{position:fe,positionAbsolute:be}=kE({nodeId:J,nextPosition:ee,nodeLookup:A,nodeExtent:le||$,nodeOrigin:Y,onError:D});L=L||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=be}if(_=_||L,!!L&&(G(d,!0),N&&(a||X||!R&&C))){const[J,W]=dm({nodeId:R,dragItems:d,nodeLookup:A});a==null||a(N,d,J,W),X==null||X(N,J,W),R||C==null||C(N,W)}}async function Z(){if(!m)return;const{transform:K,panBy:V,autoPanSpeed:A,autoPanOnNodeDrag:$}=t();if(!$){f=!1,cancelAnimationFrame(c);return}const[O,U]=Fp(h,m,A);(O!==0||U!==0)&&(l.x=(l.x??0)-O/K[2],l.y=(l.y??0)-U/K[2],await V({x:O,y:U})&&I(l)),c=requestAnimationFrame(Z)}function j(K){var F;const{nodeLookup:V,multiSelectionActive:A,nodesDraggable:$,transform:O,snapGrid:U,snapToGrid:Y,selectNodesOnDrag:X,onNodeDragStart:C,onSelectionDragStart:D,unselectNodesAndEdges:G}=t();p=!0,(!X||!z)&&!A&&R&&((F=V.get(R))!=null&&F.selected||G()),z&&X&&R&&(e==null||e(R));const L=rl(K.sourceEvent,{transform:O,snapGrid:U,snapToGrid:Y,containerBounds:m});if(l=L,d=VI(V,$,L,R),d.size>0&&(i||C||!R&&D)){const[B,Q]=dm({nodeId:R,dragItems:d,nodeLookup:V});i==null||i(K.sourceEvent,d,B,Q),C==null||C(K.sourceEvent,B,Q),R||D==null||D(K.sourceEvent,Q)}}const q=aE().clickDistance(H).on("start",K=>{const{domNode:V,nodeDragThreshold:A,transform:$,snapGrid:O,snapToGrid:U}=t();m=(V==null?void 0:V.getBoundingClientRect())||null,y=!1,_=!1,N=K.sourceEvent,A===0&&j(K),l=rl(K.sourceEvent,{transform:$,snapGrid:O,snapToGrid:U,containerBounds:m}),h=Ci(K.sourceEvent,m)}).on("drag",K=>{const{autoPanOnNodeDrag:V,transform:A,snapGrid:$,snapToGrid:O,nodeDragThreshold:U,nodeLookup:Y}=t(),X=rl(K.sourceEvent,{transform:A,snapGrid:$,snapToGrid:O,containerBounds:m});if(N=K.sourceEvent,(K.sourceEvent.type==="touchmove"&&K.sourceEvent.touches.length>1||R&&!Y.has(R))&&(y=!0),!y){if(!f&&V&&p&&(f=!0,Z()),!p){const C=Ci(K.sourceEvent,m),D=C.x-h.x,G=C.y-h.y;Math.sqrt(D*D+G*G)>U&&j(K)}(l.x!==X.xSnapped||l.y!==X.ySnapped)&&d&&p&&(h=Ci(K.sourceEvent,m),I(X))}}).on("end",K=>{if(!p||y){y&&d.size>0&&t().updateNodePositions(d,!1);return}if(f=!1,p=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:V,updateNodePositions:A,onNodeDragStop:$,onSelectionDragStop:O}=t();if(_&&(A(d,!1),_=!1),s||$||!R&&O){const[U,Y]=dm({nodeId:R,dragItems:d,nodeLookup:V,dragging:!1});s==null||s(K.sourceEvent,d,U,Y),$==null||$(K.sourceEvent,U,Y),R||O==null||O(K.sourceEvent,Y)}}}).filter(K=>{const V=K.target;return!K.button&&(!k||!t1(V,`.${k}`,M))&&(!E||t1(V,E,M))});x.call(q)}function w(){x==null||x.on(".drag",null)}return{update:S,destroy:w}}function KI(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const l of t.values())Tu(s,pl(l))>0&&a.push(l);return a}const ZI=250;function QI(e,t,i,a){var d,f;let s=[],l=1/0;const c=KI(e,i,t+ZI);for(const h of c){const m=[...((d=h.internals.handleBounds)==null?void 0:d.source)??[],...((f=h.internals.handleBounds)==null?void 0:f.target)??[]];for(const p of m){if(a.nodeId===p.nodeId&&a.type===p.type&&a.id===p.id)continue;const{x,y}=qa(h,p,p.position,!0),_=Math.sqrt(Math.pow(x-e.x,2)+Math.pow(y-e.y,2));_>t||(_1){const h=a.type==="source"?"target":"source";return s.find(m=>m.type===h)??s[0]}return s[0]}function FE(e,t,i,a,s,l=!1){var h,m,p;const c=a.get(e);if(!c)return null;const d=s==="strict"?(h=c.internals.handleBounds)==null?void 0:h[t]:[...((m=c.internals.handleBounds)==null?void 0:m.source)??[],...((p=c.internals.handleBounds)==null?void 0:p.target)??[]],f=(i?d==null?void 0:d.find(x=>x.id===i):d==null?void 0:d[0])??null;return f&&l?{...f,...qa(c,f,f.position,!0)}:f}function GE(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function WI(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const VE=()=>!0;function JI(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:l,isTarget:c,domNode:d,nodeLookup:f,lib:h,autoPanOnConnect:m,flowId:p,panBy:x,cancelConnection:y,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=VE,onReconnectEnd:k,updateConnection:E,getTransform:M,getFromHandle:z,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:I}){const Z=DE(e.target);let j=0,q;const{x:K,y:V}=Ci(e),A=GE(l,I),$=d==null?void 0:d.getBoundingClientRect();let O=!1;if(!$||!A)return;const U=FE(s,A,a,f,t);if(!U)return;let Y=Ci(e,$),X=!1,C=null,D=!1,G=null;function L(){if(!m||!$)return;const[fe,be]=Fp(Y,$,R);x({x:fe,y:be}),j=requestAnimationFrame(L)}const F={...U,nodeId:s,type:A,position:U.position},B=f.get(s);let J={inProgress:!0,isValid:null,from:qa(B,F,ze.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:B,to:Y,toHandle:null,toPosition:Pv[F.position],toNode:null,pointer:Y};function W(){O=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:A})}H===0&&W();function ee(fe){if(!O){const{x:st,y:Rt}=Ci(fe),Yt=st-K,Pt=Rt-V;if(!(Yt*Yt+Pt*Pt>H*H))return;W()}if(!z()||!F){le(fe);return}const be=M();Y=Ci(fe,$),q=QI(Al(Y,be,!1,[1,1]),i,f,F),X||(L(),X=!0);const we=YE(fe,{handle:q,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Z,lib:h,flowId:p,nodeLookup:f});G=we.handleDomNode,C=we.connection,D=WI(!!q,we.isValid);const Ne=f.get(s),Le=Ne?qa(Ne,F,ze.Left,!0):J.from,$e={...J,from:Le,isValid:D,to:we.toHandle&&D?Ps({x:we.toHandle.x,y:we.toHandle.y},be):Y,toHandle:we.toHandle,toPosition:D&&we.toHandle?we.toHandle.position:Pv[F.position],toNode:we.toHandle?f.get(we.toHandle.nodeId):null,pointer:Y};E($e),J=$e}function le(fe){if(!("touches"in fe&&fe.touches.length>0)){if(O){(q||G)&&C&&D&&(N==null||N(C));const{inProgress:be,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),l&&(k==null||k(fe,Ne))}y(),cancelAnimationFrame(j),X=!1,D=!1,C=null,G=null,Z.removeEventListener("mousemove",ee),Z.removeEventListener("mouseup",le),Z.removeEventListener("touchmove",ee),Z.removeEventListener("touchend",le)}}Z.addEventListener("mousemove",ee),Z.addEventListener("mouseup",le),Z.addEventListener("touchmove",ee),Z.addEventListener("touchend",le)}function YE(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:l,doc:c,lib:d,flowId:f,isValidConnection:h=VE,nodeLookup:m}){const p=l==="target",x=t?c.querySelector(`.${d}-flow__handle[data-id="${f}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:_}=Ci(e),N=c.elementFromPoint(y,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:x,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=GE(void 0,S),E=S.getAttribute("data-nodeid"),M=S.getAttribute("data-handleid"),z=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!k)return w;const H={source:p?E:a,sourceHandle:p?M:s,target:p?a:E,targetHandle:p?s:M};w.connection=H;const Z=z&&R&&(i===$s.Strict?p&&k==="source"||!p&&k==="target":E!==a||M!==s);w.isValid=Z&&h(H),w.toHandle=FE(E,k,M,m,i,!0)}return w}const Qm={onPointerDown:JI,isValid:YE};function e6({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ni(e);function l({translateExtent:d,width:f,height:h,zoomStep:m=1,pannable:p=!0,zoomable:x=!0,inversePan:y=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const M=i(),z=E.sourceEvent.ctrlKey&&gl()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*m,H=M[2]*Math.pow(2,R*z);t.scaleTo(H)};let N=[0,0];const S=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(N=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},w=E=>{const M=i();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const z=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[z[0]-N[0],z[1]-N[1]];N=z;const H=a()*Math.max(M[2],Math.log(M[2]))*(y?-1:1),I={x:M[0]-R[0]*H,y:M[1]-R[1]*H},Z=[[0,0],[f,h]];t.setViewportConstrained({x:I.x,y:I.y,zoom:M[2]},Z,d)},k=vE().on("start",S).on("zoom",p?w:null).on("zoom.wheel",x?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:l,destroy:c,pointer:ki}}const Fu=e=>({x:e.x,y:e.y,zoom:e.k}),fm=({x:e,y:t,zoom:i})=>$u.translate(e,t).scale(i),Cs=(e,t)=>e.target.closest(`.${t}`),XE=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),t6=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,hm=(e,t=0,i=t6,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},KE=e=>{const t=e.ctrlKey&&gl()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function n6({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:l,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:f,onPanZoomEnd:h}){return m=>{if(Cs(m,t))return m.ctrlKey&&m.preventDefault(),!1;m.preventDefault(),m.stopImmediatePropagation();const p=i.property("__zoom").k||1;if(m.ctrlKey&&c){const S=ki(m),w=KE(m),k=p*Math.pow(2,w);a.scaleTo(i,k,S,m);return}const x=m.deltaMode===1?20:1;let y=s===za.Vertical?0:m.deltaX*x,_=s===za.Horizontal?0:m.deltaY*x;!gl()&&m.shiftKey&&s!==za.Vertical&&(y=m.deltaY*x,_=0),a.translateBy(i,-(y/p)*l,-(_/p)*l,{internal:!0});const N=Fu(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?f==null||f(m,N):(e.isPanScrolling=!0,d==null||d(m,N)),e.panScrollTimeout=setTimeout(()=>{h==null||h(m,N),e.isPanScrolling=!1},150)}}function i6({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const l=a.type==="wheel",c=!t&&l&&!a.ctrlKey,d=Cs(a,e);if(a.ctrlKey&&l&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function r6({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var l,c,d;if((l=a.sourceEvent)!=null&&l.internal)return;const s=Fu(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((d=a.sourceEvent)==null?void 0:d.type)==="mousedown"&&t(!0),i&&(i==null||i(a.sourceEvent,s))}}function a6({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return l=>{var c,d;e.usedRightMouseButton=!!(i&&XE(t,e.mouseButton??0)),(c=l.sourceEvent)!=null&&c.sync||a([l.transform.x,l.transform.y,l.transform.k]),s&&!((d=l.sourceEvent)!=null&&d.internal)&&(s==null||s(l.sourceEvent,Fu(l.transform)))}}function s6({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:l}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,l&&XE(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&l(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const f=Fu(c.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,f)},i?150:0)}}}function o6({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:l,userSelectionActive:c,noWheelClassName:d,noPanClassName:f,lib:h,connectionInProgress:m}){return p=>{var S;const x=e||t,y=i&&p.ctrlKey,_=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Cs(p,`${h}-flow__node`)||Cs(p,`${h}-flow__edge`)))return!0;if(!a&&!x&&!s&&!l&&!i||c||m&&!_||Cs(p,d)&&_||Cs(p,f)&&(!_||s&&_&&!e)||!i&&p.ctrlKey&&_)return!1;if(!i&&p.type==="touchstart"&&((S=p.touches)==null?void 0:S.length)>1)return p.preventDefault(),!1;if(!x&&!s&&!y&&_||!a&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(a)&&!a.includes(p.button)&&p.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||_)&&N}}function l6({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:l,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:f}){const h={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect();let p=[[0,0],[m.width,m.height]];const x=typeof ResizeObserver<"u"?new ResizeObserver(V=>{const A=V[0];A&&(p=[[0,0],[A.contentRect.width,A.contentRect.height]])}):null;x==null||x.observe(e);const y=vE().extent(()=>p).scaleExtent([t,i]).translateExtent(a),_=ni(e).call(y);M({x:s.x,y:s.y,zoom:qs(s.zoom,t,i)},[[0,0],[m.width,m.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");y.wheelDelta(KE);async function w(V,A){return _?new Promise($=>{y==null||y.interpolate((A==null?void 0:A.interpolate)==="linear"?il:ou).transform(hm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),V)}):!1}function k({noWheelClassName:V,noPanClassName:A,onPaneContextMenu:$,userSelectionActive:O,panOnScroll:U,panOnDrag:Y,panOnScrollMode:X,panOnScrollSpeed:C,preventScrolling:D,zoomOnPinch:G,zoomOnScroll:L,zoomOnDoubleClick:F,zoomActivationKeyPressed:B,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:ee,selectionOnDrag:le}){O&&!h.isZoomingOrPanning&&E();const fe=U&&!B&&!O;y.clickDistance(le?1/0:!Ai(ee)||ee<0?0:ee);const be=fe?n6({zoomPanValues:h,noWheelClassName:V,d3Selection:_,d3Zoom:y,panOnScrollMode:X,panOnScrollSpeed:C,zoomOnPinch:G,onPanZoomStart:c,onPanZoom:l,onPanZoomEnd:d}):i6({noWheelClassName:V,preventScrolling:D,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const we=r6({zoomPanValues:h,onDraggingChange:f,onPanZoomStart:c});y.on("start",we);const Ne=a6({zoomPanValues:h,panOnDrag:Y,onPaneContextMenu:!!$,onPanZoom:l,onTransformChange:J});y.on("zoom",Ne);const Le=s6({zoomPanValues:h,panOnDrag:Y,panOnScroll:U,onPaneContextMenu:$,onPanZoomEnd:d,onDraggingChange:f});y.on("end",Le);const $e=o6({zoomActivationKeyPressed:B,panOnDrag:Y,zoomOnScroll:L,panOnScroll:U,zoomOnDoubleClick:F,zoomOnPinch:G,userSelectionActive:O,noPanClassName:A,noWheelClassName:V,lib:Q,connectionInProgress:W});y.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){y.on("zoom",null)}async function M(V,A,$){const O=fm(V),U=y==null?void 0:y.constrain()(O,A,$);return U&&await w(U),U}async function z(V,A){const $=fm(V);return await w($,A),$}function R(V){if(_){const A=fm(V),$=_.property("__zoom");($.k!==V.zoom||$.x!==V.x||$.y!==V.y)&&(y==null||y.transform(_,A,null,{sync:!0}))}}function H(){const V=_?yE(_.node()):{x:0,y:0,k:1};return{x:V.x,y:V.y,zoom:V.k}}async function I(V,A){return _?new Promise($=>{y==null||y.interpolate((A==null?void 0:A.interpolate)==="linear"?il:ou).scaleTo(hm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),V)}):!1}async function Z(V,A){return _?new Promise($=>{y==null||y.interpolate((A==null?void 0:A.interpolate)==="linear"?il:ou).scaleBy(hm(_,A==null?void 0:A.duration,A==null?void 0:A.ease,()=>$(!0)),V)}):!1}function j(V){y==null||y.scaleExtent(V)}function q(V){y==null||y.translateExtent(V)}function K(V){const A=!Ai(V)||V<0?0:V;y==null||y.clickDistance(A)}return{update:k,destroy:E,setViewport:z,setViewportConstrained:M,getViewport:H,scaleTo:I,scaleBy:Z,setScaleExtent:j,setTranslateExtent:q,syncViewport:R,setClickDistance:K}}var Fs;(function(e){e.Line="line",e.Handle="handle"})(Fs||(Fs={}));function c6({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:l}){const c=e-t,d=i-a,f=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(f[0]=f[0]*-1),d&&l&&(f[1]=f[1]*-1),f}function n1(e){const t=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:i,affectsX:a,affectsY:s}}function na(e,t){return Math.max(0,t-e)}function ia(e,t){return Math.max(0,e-t)}function eu(e,t,i){return Math.max(0,t-e,e-i)}function i1(e,t){return e?!t:t}function u6(e,t,i,a,s,l,c,d){let{affectsX:f,affectsY:h}=t;const{isHorizontal:m,isVertical:p}=t,x=m&&p,{xSnapped:y,ySnapped:_}=i,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:k}=a,{x:E,y:M,width:z,height:R,aspectRatio:H}=e;let I=Math.floor(m?y-e.pointerX:0),Z=Math.floor(p?_-e.pointerY:0);const j=z+(f?-I:I),q=R+(h?-Z:Z),K=-l[0]*z,V=-l[1]*R;let A=eu(j,N,S),$=eu(q,w,k);if(c){let Y=0,X=0;f&&I<0?Y=na(E+I+K,c[0][0]):!f&&I>0&&(Y=ia(E+j+K,c[1][0])),h&&Z<0?X=na(M+Z+V,c[0][1]):!h&&Z>0&&(X=ia(M+q+V,c[1][1])),A=Math.max(A,Y),$=Math.max($,X)}if(d){let Y=0,X=0;f&&I>0?Y=ia(E+I,d[0][0]):!f&&I<0&&(Y=na(E+j,d[1][0])),h&&Z>0?X=ia(M+Z,d[0][1]):!h&&Z<0&&(X=na(M+q,d[1][1])),A=Math.max(A,Y),$=Math.max($,X)}if(s){if(m){const Y=eu(j/H,w,k)*H;if(A=Math.max(A,Y),c){let X=0;!f&&!h||f&&!h&&x?X=ia(M+V+j/H,c[1][1])*H:X=na(M+V+(f?I:-I)/H,c[0][1])*H,A=Math.max(A,X)}if(d){let X=0;!f&&!h||f&&!h&&x?X=na(M+j/H,d[1][1])*H:X=ia(M+(f?I:-I)/H,d[0][1])*H,A=Math.max(A,X)}}if(p){const Y=eu(q*H,N,S)/H;if($=Math.max($,Y),c){let X=0;!f&&!h||h&&!f&&x?X=ia(E+q*H+K,c[1][0])/H:X=na(E+(h?Z:-Z)*H+K,c[0][0])/H,$=Math.max($,X)}if(d){let X=0;!f&&!h||h&&!f&&x?X=na(E+q*H,d[1][0])/H:X=ia(E+(h?Z:-Z)*H,d[0][0])/H,$=Math.max($,X)}}}Z=Z+(Z<0?$:-$),I=I+(I<0?A:-A),s&&(x?j>q*H?Z=(i1(f,h)?-I:I)/H:I=(i1(f,h)?-Z:Z)*H:m?(Z=I/H,h=f):(I=Z*H,f=h));const O=f?E+I:E,U=h?M+Z:M;return{width:z+(f?-I:I),height:R+(h?-Z:Z),x:l[0]*I*(f?-1:1)+O,y:l[1]*Z*(h?-1:1)+U}}const ZE={width:0,height:0,x:0,y:0},d6={...ZE,pointerX:0,pointerY:0,aspectRatio:1};function f6(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,l=e.measured.width??0,c=e.measured.height??0,d=i[0]*l,f=i[1]*c;return[[a-d,s-f],[a+l-d,s+c-f]]}function h6({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const l=ni(e);let c={controlDirection:n1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:h,boundaries:m,keepAspectRatio:p,resizeDirection:x,onResizeStart:y,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...ZE},k={...d6};c={boundaries:m,resizeDirection:x,keepAspectRatio:p,controlDirection:n1(h)};let E,M=null,z=[],R,H,I,Z=!1;const j=aE().on("start",q=>{const{nodeLookup:K,transform:V,snapGrid:A,snapToGrid:$,nodeOrigin:O,paneDomNode:U}=i();if(E=K.get(t),!E)return;M=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:Y,ySnapped:X}=rl(q.sourceEvent,{transform:V,snapGrid:A,snapToGrid:$,containerBounds:M});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},k={...w,pointerX:Y,pointerY:X,aspectRatio:w.width/w.height},R=void 0,H=$a(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=K.get(E.parentId)),R&&E.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),z=[],I=void 0;for(const[C,D]of K)if(D.parentId===t&&(z.push({id:C,position:{...D.position},extent:D.extent}),D.extent==="parent"||D.expandParent)){const G=f6(D,E,D.origin??O);I?I=[[Math.min(G[0][0],I[0][0]),Math.min(G[0][1],I[0][1])],[Math.max(G[1][0],I[1][0]),Math.max(G[1][1],I[1][1])]]:I=G}y==null||y(q,{...w})}).on("drag",q=>{const{transform:K,snapGrid:V,snapToGrid:A,nodeOrigin:$}=i(),O=rl(q.sourceEvent,{transform:K,snapGrid:V,snapToGrid:A,containerBounds:M}),U=[];if(!E)return;const{x:Y,y:X,width:C,height:D}=w,G={},L=E.origin??$,{width:F,height:B,x:Q,y:J}=u6(k,c.controlDirection,O,c.boundaries,c.keepAspectRatio,L,H,I),W=F!==C,ee=B!==D,le=Q!==Y&&W,fe=J!==X&ⅇif(!le&&!fe&&!W&&!ee)return;if((le||fe||L[0]===1||L[1]===1)&&(G.x=le?Q:w.x,G.y=fe?J:w.y,w.x=G.x,w.y=G.y,z.length>0)){const Le=Q-Y,$e=J-X;for(const st of z)st.position={x:st.position.x-Le+L[0]*(F-C),y:st.position.y-$e+L[1]*(B-D)},U.push(st)}if((W||ee)&&(G.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:w.width,G.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?B:w.height,w.width=G.width,w.height=G.height),R&&E.expandParent){const Le=L[0]*(G.width??0);G.x&&G.x{Z&&(N==null||N(q,{...w}),s==null||s({...w}),Z=!1)});l.call(j)}function f(){l.on(".drag",null)}return{update:d,destroy:f}}var mm={exports:{}},pm={},gm={exports:{}},bm={};/** + * @license React + * use-sync-external-store-shim.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r1;function m6(){if(r1)return bm;r1=1;var e=yl();function t(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function d(p,x){var y=x(),_=a({inst:{value:y,getSnapshot:x}}),N=_[0].inst,S=_[1];return l(function(){N.value=y,N.getSnapshot=x,f(N)&&S({inst:N})},[p,y,x]),s(function(){return f(N)&&S({inst:N}),p(function(){f(N)&&S({inst:N})})},[p]),c(y),y}function f(p){var x=p.getSnapshot;p=p.value;try{var y=x();return!i(p,y)}catch{return!0}}function h(p,x){return x()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return bm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,bm}var a1;function p6(){return a1||(a1=1,gm.exports=m6()),gm.exports}/** + * @license React + * use-sync-external-store-shim/with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var s1;function g6(){if(s1)return pm;s1=1;var e=yl(),t=p6();function i(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:i,s=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,d=e.useMemo,f=e.useDebugValue;return pm.useSyncExternalStoreWithSelector=function(h,m,p,x,y){var _=l(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!k){if(k=!0,E=R,R=x(R),y!==void 0&&N.hasValue){var H=N.value;if(y(H,R))return M=H}return M=R}if(H=M,a(E,R))return H;var I=x(R);return y!==void 0&&y(H,I)?(E=R,H):(E=R,M=I)}var k=!1,E,M,z=p===void 0?null:p;return[function(){return w(m())},z===null?void 0:function(){return w(z())}]},[m,p,x,y]);var S=s(h,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),f(S),S},pm}var o1;function b6(){return o1||(o1=1,mm.exports=g6()),mm.exports}var x6=b6();const y6=xl(x6),v6={},l1=e=>{let t;const i=new Set,a=(m,p)=>{const x=typeof m=="function"?m(t):m;if(!Object.is(x,t)){const y=t;t=p??(typeof x!="object"||x===null)?x:Object.assign({},t,x),i.forEach(_=>_(t,y))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m)),destroy:()=>{(v6?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},h=t=e(a,s,f);return f},_6=e=>e?l1(e):l1,{useDebugValue:w6}=Jk,{useSyncExternalStoreWithSelector:E6}=y6,N6=e=>e;function QE(e,t=N6,i){const a=E6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return w6(a),a}const c1=(e,t)=>{const i=_6(e),a=(s,l=t)=>QE(i,s,l);return Object.assign(a,i),a},S6=(e,t)=>e?c1(e,t):c1;function qt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}a_();const Gu=ie.createContext(null),k6=Gu.Provider,WE=Oi.error001("react");function dt(e,t){const i=ie.useContext(Gu);if(i===null)throw new Error(WE);return QE(i,e,t)}function jt(){const e=ie.useContext(Gu);if(e===null)throw new Error(WE);return ie.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const u1={display:"none"},T6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},JE="react-flow__node-desc",eN="react-flow__edge-desc",A6="react-flow__aria-live",C6=e=>e.ariaLiveMessage,M6=e=>e.ariaLabelConfig;function O6({rfId:e}){const t=dt(C6);return g.jsx("div",{id:`${A6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:T6,children:t})}function R6({rfId:e,disableKeyboardA11y:t}){const i=dt(M6);return g.jsxs(g.Fragment,{children:[g.jsx("div",{id:`${JE}-${e}`,style:u1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),g.jsx("div",{id:`${eN}-${e}`,style:u1,children:i["edge.a11yDescription.default"]}),!t&&g.jsx(O6,{rfId:e})]})}const Vu=ie.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},l)=>{const c=`${e}`.split("-");return g.jsx("div",{className:on(["react-flow__panel",i,...c]),style:a,ref:l,...s,children:t})});Vu.displayName="Panel";const d1="https://reactflow.dev?utm_source=attribution";function D6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:g.jsx(Vu,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${d1}`,children:g.jsx("a",{href:d1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const L6=e=>{const t=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:t,selectedEdges:i}},tu=e=>e.id;function j6(e,t){return qt(e.selectedNodes.map(tu),t.selectedNodes.map(tu))&&qt(e.selectedEdges.map(tu),t.selectedEdges.map(tu))}function z6({onSelectionChange:e}){const t=jt(),{selectedNodes:i,selectedEdges:a}=dt(L6,j6);return ie.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(l=>l(s))},[i,a,e]),null}const I6=e=>!!e.onSelectionChangeHandlers;function B6({onSelectionChange:e}){const t=dt(I6);return e||t?g.jsx(z6,{onSelectionChange:e}):null}const tN=[0,0],U6={x:0,y:0,zoom:1},H6=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],f1=[...H6,"rfId"],$6=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),h1={translateExtent:hl,nodeOrigin:tN,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function q6(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:l,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:f}=dt($6,qt),h=jt();ie.useEffect(()=>(f(e.defaultNodes,e.defaultEdges),()=>{m.current=h1,d()}),[]);const m=ie.useRef(h1);return ie.useEffect(()=>{for(const p of f1){const x=e[p],y=m.current[p];x!==y&&(typeof e[p]>"u"||(p==="nodes"?t(x):p==="edges"?i(x):p==="minZoom"?a(x):p==="maxZoom"?s(x):p==="translateExtent"?l(x):p==="nodeExtent"?c(x):p==="ariaLabelConfig"?h.setState({ariaLabelConfig:kI(x)}):p==="fitView"?h.setState({fitViewQueued:x}):p==="fitViewOptions"?h.setState({fitViewOptions:x}):h.setState({[p]:x})))}m.current=e},f1.map(p=>e[p])),null}function m1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function P6(e){var a;const[t,i]=ie.useState(e==="system"?null:e);return ie.useEffect(()=>{if(e!=="system"){i(e);return}const s=m1(),l=()=>i(s!=null&&s.matches?"dark":"light");return l(),s==null||s.addEventListener("change",l),()=>{s==null||s.removeEventListener("change",l)}},[e]),t!==null?t:(a=m1())!=null&&a.matches?"dark":"light"}const p1=typeof document<"u"?document:null;function bl(e=null,t={target:p1,actInsideInputWithModifier:!0}){const[i,a]=ie.useState(!1),s=ie.useRef(!1),l=ie.useRef(new Set([])),[c,d]=ie.useMemo(()=>{if(e!==null){const h=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",` +`).replace(` + +`,` ++`).split(` +`)),m=h.reduce((p,x)=>p.concat(...x),[]);return[h,m]}return[[],[]]},[e]);return ie.useEffect(()=>{const f=(t==null?void 0:t.target)??p1,h=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const m=y=>{var S,w;if(s.current=y.ctrlKey||y.metaKey||y.shiftKey||y.altKey,(!s.current||s.current&&!h)&&LE(y))return!1;const N=b1(y.code,d);if(l.current.add(y[N]),g1(c,l.current,!1)){const k=((w=(S=y.composedPath)==null?void 0:S.call(y))==null?void 0:w[0])||y.target,E=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&y.preventDefault(),a(!0)}},p=y=>{const _=b1(y.code,d);g1(c,l.current,!0)?(a(!1),l.current.clear()):l.current.delete(y[_]),y.key==="Meta"&&l.current.clear(),s.current=!1},x=()=>{l.current.clear(),a(!1)};return f==null||f.addEventListener("keydown",m),f==null||f.addEventListener("keyup",p),window.addEventListener("blur",x),window.addEventListener("contextmenu",x),()=>{f==null||f.removeEventListener("keydown",m),f==null||f.removeEventListener("keyup",p),window.removeEventListener("blur",x),window.removeEventListener("contextmenu",x)}}},[e,a]),i}function g1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function b1(e,t){return t.includes(e)?"code":"key"}const F6=()=>{const e=jt();return ie.useMemo(()=>({zoomIn:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,t):!1},zoomOut:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,t):!1},zoomTo:async(t,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,i):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,i)=>{const{transform:[a,s,l],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??l},i),!0):!1},getViewport:()=>{const[t,i,a]=e.getState().transform;return{x:t,y:i,zoom:a}},setCenter:async(t,i,a)=>e.getState().setCenter(t,i,a),fitBounds:async(t,i)=>{const{width:a,height:s,minZoom:l,maxZoom:c,panZoom:d}=e.getState(),f=Gp(t,a,s,l,c,(i==null?void 0:i.padding)??.1);return d?(await d.setViewport(f,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),!0):!1},screenToFlowPosition:(t,i={})=>{const{transform:a,snapGrid:s,snapToGrid:l,domNode:c}=e.getState();if(!c)return t;const{x:d,y:f}=c.getBoundingClientRect(),h={x:t.x-d,y:t.y-f},m=i.snapGrid??s,p=i.snapToGrid??l;return Al(h,a,p,m)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:l}=a.getBoundingClientRect(),c=Ps(t,i);return{x:c.x+s,y:c.y+l}}}),[])};function nN(e,t){const i=[],a=new Map,s=[];for(const l of e)if(l.type==="add"){s.push(l);continue}else if(l.type==="remove"||l.type==="replace")a.set(l.id,[l]);else{const c=a.get(l.id);c?c.push(l):a.set(l.id,[l])}for(const l of t){const c=a.get(l.id);if(!c){i.push(l);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...l};for(const f of c)G6(f,d);i.push(d)}return s.length&&s.forEach(l=>{l.index!==void 0?i.splice(l.index,0,{...l.item}):i.push({...l.item})}),i}function G6(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function iN(e,t){return nN(e,t)}function rN(e,t){return nN(e,t)}function Ra(e,t){return{id:e,type:"select",selected:t}}function Ms(e,t=new Set,i=!1){const a=[];for(const[s,l]of e){const c=t.has(s);!(l.selected===void 0&&!c)&&l.selected!==c&&(i&&(l.selected=c),a.push(Ra(l.id,c)))}return a}function x1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(l=>[l.id,l]));for(const[l,c]of e.entries()){const d=t.get(c.id),f=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;f!==void 0&&f!==c&&i.push({id:c.id,item:c,type:"replace"}),f===void 0&&i.push({item:c,type:"add",index:l})}for(const[l]of t)a.get(l)===void 0&&i.push({id:l,type:"remove"});return i}function y1(e){return{id:e.id,type:"remove"}}const V6=ME();function Y6(e,t,i={}){return RI(e,t,{...i,onError:i.onError??V6})}const v1=e=>bI(e),X6=e=>SE(e);function aN(e){return ie.forwardRef(e)}const sN=typeof window<"u"?ie.useLayoutEffect:ie.useEffect;function _1(e){const[t,i]=ie.useState(BigInt(0)),[a]=ie.useState(()=>K6(()=>i(s=>s+BigInt(1))));return sN(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function K6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const oN=ie.createContext(null);function Z6({children:e}){const t=jt(),i=ie.useCallback(d=>{const{nodes:f=[],setNodes:h,hasDefaultNodes:m,onNodesChange:p,nodeLookup:x,fitViewQueued:y,onNodesChangeMiddlewareMap:_}=t.getState();let N=f;for(const w of d)N=typeof w=="function"?w(N):w;let S=x1({items:N,lookup:x});for(const w of _.values())S=w(S);m&&h(N),S.length>0?p==null||p(S):y&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:E}=t.getState();w&&E(k)})},[]),a=_1(i),s=ie.useCallback(d=>{const{edges:f=[],setEdges:h,hasDefaultEdges:m,onEdgesChange:p,edgeLookup:x}=t.getState();let y=f;for(const _ of d)y=typeof _=="function"?_(y):_;m?h(y):p&&p(x1({items:y,lookup:x}))},[]),l=_1(s),c=ie.useMemo(()=>({nodeQueue:a,edgeQueue:l}),[]);return g.jsx(oN.Provider,{value:c,children:e})}function Q6(){const e=ie.useContext(oN);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const W6=e=>!!e.panZoom;function Cl(){const e=F6(),t=jt(),i=Q6(),a=dt(W6),s=ie.useMemo(()=>{const l=p=>t.getState().nodeLookup.get(p),c=p=>{i.nodeQueue.push(p)},d=p=>{i.edgeQueue.push(p)},f=p=>{var w,k;const{nodeLookup:x,nodeOrigin:y}=t.getState(),_=v1(p)?p:x.get(p.id),N=_.parentId?RE(_.position,_.measured,_.parentId,x,y):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return pl(S)},h=(p,x,y={replace:!1})=>{c(_=>_.map(N=>{if(N.id===p){const S=typeof x=="function"?x(N):x;return y.replace&&v1(S)?S:{...N,...S}}return N}))},m=(p,x,y={replace:!1})=>{d(_=>_.map(N=>{if(N.id===p){const S=typeof x=="function"?x(N):x;return y.replace&&X6(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var x;return(x=l(p))==null?void 0:x.internals.userNode},getInternalNode:l,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(x=>({...x}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:c,setEdges:d,addNodes:p=>{const x=Array.isArray(p)?p:[p];i.nodeQueue.push(y=>[...y,...x])},addEdges:p=>{const x=Array.isArray(p)?p:[p];i.edgeQueue.push(y=>[...y,...x])},toObject:()=>{const{nodes:p=[],edges:x=[],transform:y}=t.getState(),[_,N,S]=y;return{nodes:p.map(w=>({...w})),edges:x.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:p=[],edges:x=[]})=>{const{nodes:y,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:k,onDelete:E,onBeforeDelete:M}=t.getState(),{nodes:z,edges:R}=await wI({nodesToRemove:p,edgesToRemove:x,nodes:y,edges:_,onBeforeDelete:M}),H=R.length>0,I=z.length>0;if(H){const Z=R.map(y1);S==null||S(R),k(Z)}if(I){const Z=z.map(y1);N==null||N(z),w(Z)}return(I||H)&&(E==null||E({nodes:z,edges:R})),{deletedNodes:z,deletedEdges:R}},getIntersectingNodes:(p,x=!0,y)=>{const _=Gv(p),N=_?p:f(p),S=y!==void 0;return N?(y||t.getState().nodes).filter(w=>{const k=t.getState().nodeLookup.get(w.id);if(k&&!_&&(w.id===p.id||!k.internals.positionAbsolute))return!1;const E=pl(S?w:k),M=Tu(E,N);return x&&M>0||M>=E.width*E.height||M>=N.width*N.height}):[]},isNodeIntersecting:(p,x,y=!0)=>{const N=Gv(p)?p:f(p);if(!N)return!1;const S=Tu(N,x);return y&&S>0||S>=x.width*x.height||S>=N.width*N.height},updateNode:h,updateNodeData:(p,x,y={replace:!1})=>{h(p,_=>{const N=typeof x=="function"?x(_):x;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},updateEdge:m,updateEdgeData:(p,x,y={replace:!1})=>{m(p,_=>{const N=typeof x=="function"?x(_):x;return y.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},y)},getNodesBounds:p=>{const{nodeLookup:x,nodeOrigin:y}=t.getState();return xI(p,{nodeLookup:x,nodeOrigin:y})},getHandleConnections:({type:p,id:x,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}-${p}${x?`-${x}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:p,handleId:x,nodeId:y})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${y}${p?x?`-${p}-${x}`:`-${p}`:""}`))==null?void 0:_.values())??[])},fitView:async p=>{const x=t.getState().fitViewResolver??SI();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:x}),i.nodeQueue.push(y=>[...y]),x.promise}}},[]);return ie.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const w1=e=>e.selected,J6=typeof window<"u"?window:void 0;function e8({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=jt(),{deleteElements:a}=Cl(),s=bl(e,{actInsideInputWithModifier:!1}),l=bl(t,{target:J6});ie.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(w1),edges:c.filter(w1)}),i.setState({nodesSelectionActive:!1})}},[s]),ie.useEffect(()=>{i.setState({multiSelectionActive:l})},[l])}function t8(e){const t=jt();ie.useEffect(()=>{const i=()=>{var s,l,c,d;if(!e.current||!(((l=(s=e.current).checkVisibility)==null?void 0:l.call(s))??!0))return!1;const a=Vp(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Oi.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const Yu={position:"absolute",width:"100%",height:"100%",top:0,left:0},n8=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function i8({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:l=za.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:f,translateExtent:h,minZoom:m,maxZoom:p,zoomActivationKeyCode:x,preventScrolling:y=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:k,paneClickDistance:E,selectionOnDrag:M}){const z=jt(),R=ie.useRef(null),{userSelectionActive:H,lib:I,connectionInProgress:Z}=dt(n8,qt),j=bl(x),q=ie.useRef();t8(R);const K=ie.useCallback(V=>{w==null||w({x:V[0],y:V[1],zoom:V[2]}),k||z.setState({transform:V})},[w,k]);return ie.useEffect(()=>{if(R.current){q.current=l6({domNode:R.current,minZoom:m,maxZoom:p,translateExtent:h,viewport:f,onDraggingChange:O=>z.setState(U=>U.paneDragging===O?U:{paneDragging:O}),onPanZoomStart:(O,U)=>{const{onViewportChangeStart:Y,onMoveStart:X}=z.getState();X==null||X(O,U),Y==null||Y(U)},onPanZoom:(O,U)=>{const{onViewportChange:Y,onMove:X}=z.getState();X==null||X(O,U),Y==null||Y(U)},onPanZoomEnd:(O,U)=>{const{onViewportChangeEnd:Y,onMoveEnd:X}=z.getState();X==null||X(O,U),Y==null||Y(U)}});const{x:V,y:A,zoom:$}=q.current.getViewport();return z.setState({panZoom:q.current,transform:[V,A,$],domNode:R.current.closest(".react-flow")}),()=>{var O;(O=q.current)==null||O.destroy()}}},[]),ie.useEffect(()=>{var V;(V=q.current)==null||V.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:l,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:j,preventScrolling:y,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:I,onTransformChange:K,connectionInProgress:Z,selectionOnDrag:M,paneClickDistance:E})},[e,t,i,a,s,l,c,d,j,y,S,H,N,I,K,Z,M,E]),g.jsx("div",{className:"react-flow__renderer",ref:R,style:Yu,children:_})}const r8=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function a8(){const{userSelectionActive:e,userSelectionRect:t}=dt(r8,qt);return e&&t?g.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const xm=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},s8=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function o8({isSelecting:e,selectionKeyPressed:t,selectionMode:i=ml.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:l,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:m,onPaneScroll:p,onPaneMouseEnter:x,onPaneMouseMove:y,onPaneMouseLeave:_,children:N}){const S=ie.useRef(0),w=jt(),{userSelectionActive:k,elementsSelectable:E,dragging:M,panBy:z,autoPanSpeed:R}=dt(s8,qt),H=E&&(e||k),I=ie.useRef(null),Z=ie.useRef(),j=ie.useRef(new Set),q=ie.useRef(new Set),K=ie.useRef(!1),V=ie.useRef(!1),A=ie.useRef({x:0,y:0}),$=ie.useRef(!1),O=W=>{if(V.current||K.current||w.getState().connection.inProgress){V.current=!1,K.current=!1;return}h==null||h(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},U=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}m==null||m(W)},Y=p?W=>p(W):void 0,X=W=>{V.current&&(W.stopPropagation(),V.current=!1)},C=W=>{var st,Rt;const{domNode:ee,transform:le}=w.getState();if(Z.current=ee==null?void 0:ee.getBoundingClientRect(),!Z.current)return;const fe=W.target===I.current;if(!fe&&!!W.target.closest(".nokey")||!e||!(c&&fe||t)||W.button!==0||!W.isPrimary)return;(Rt=(st=W.target)==null?void 0:st.setPointerCapture)==null||Rt.call(st,W.pointerId),V.current=!1;const{x:Ne,y:Le}=Ci(W.nativeEvent,Z.current),$e=Al({x:Ne,y:Le},le);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:Le}}),fe||(W.stopPropagation(),W.preventDefault())};function D(W,ee){const{userSelectionRect:le}=w.getState();if(!le)return;const{transform:fe,nodeLookup:be,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:Le,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:le.startX,y:le.startY},{x:Yt,y:Pt}=Ps(Rt,fe),Xt={startX:Rt.x,startY:Rt.y,x:WIt.id)),q.current=new Set;const ct=(st==null?void 0:st.selectable)??!0;for(const It of j.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=we.get(xe);Oe&&(Oe.selectable??ct)&&q.current.add(xe)}}if(!Vv(Vn,j.current)){const It=Ms(be,j.current,!0);Le(It)}if(!Vv(wn,q.current)){const It=Ms(we,q.current);$e(It)}w.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function G(){if(!s||!Z.current)return;const[W,ee]=Fp(A.current,Z.current,R);z({x:W,y:ee}).then(le=>{if(!V.current||!le){S.current=requestAnimationFrame(G);return}const{x:fe,y:be}=A.current;D(fe,be),S.current=requestAnimationFrame(G)})}const L=()=>{cancelAnimationFrame(S.current),S.current=0,$.current=!1};ie.useEffect(()=>()=>L(),[]);const F=W=>{const{userSelectionRect:ee,transform:le,resetSelectedElements:fe}=w.getState();if(!Z.current||!ee)return;const{x:be,y:we}=Ci(W.nativeEvent,Z.current);A.current={x:be,y:we};const Ne=Ps({x:ee.startX,y:ee.startY},le);if(!V.current){const Le=t?0:l;if(Math.hypot(be-Ne.x,we-Ne.y)<=Le)return;fe(),d==null||d(W)}V.current=!0,$.current||(G(),$.current=!0),D(be,we)},B=W=>{var ee,le;if(!H){W.target===I.current&&w.getState().connection.inProgress&&(K.current=!0);return}W.button===0&&((le=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||le.call(ee,W.pointerId),!k&&W.target===I.current&&w.getState().userSelectionRect&&(O==null||O(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),V.current&&(f==null||f(W),w.setState({nodesSelectionActive:j.current.size>0})),L())},Q=W=>{var ee,le;(le=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||le.call(ee,W.pointerId),L()},J=a===!0||Array.isArray(a)&&a.includes(0);return g.jsxs("div",{className:on(["react-flow__pane",{draggable:J,dragging:M,selection:e}]),onClick:H?void 0:xm(O,I),onContextMenu:xm(U,I),onWheel:xm(Y,I),onPointerEnter:H?void 0:x,onPointerMove:H?F:y,onPointerUp:B,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?C:void 0,onClickCapture:H?X:void 0,onPointerLeave:_,ref:I,style:Yu,children:[N,g.jsx(a8,{})]})}function Wm({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:l,multiSelectionActive:c,nodeLookup:d,onError:f}=t.getState(),h=d.get(e);if(!h){f==null||f("012",Oi.error012(e));return}t.setState({nodesSelectionActive:!1}),h.selected?(i||h.selected&&c)&&(l({nodes:[h],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function lN({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:l,nodeClickDistance:c}){const d=jt(),[f,h]=ie.useState(!1),m=ie.useRef();return ie.useEffect(()=>{if(!t)return m.current=XI({getStoreItems:()=>d.getState(),onNodeMouseDown:p=>{Wm({id:p,store:d,nodeRef:e})},onDragStart:()=>{h(!0)},onDragStop:()=>{h(!1)}}),()=>{var p;(p=m.current)==null||p.destroy(),m.current=void 0}},[t,d,e]),ie.useEffect(()=>{t||!e.current||!m.current||m.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:l,nodeId:s,nodeClickDistance:c})},[i,a,t,l,e,s,c]),f}const l8=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function cN(){const e=jt();return ie.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:l,nodesDraggable:c,onError:d,updateNodePositions:f,nodeLookup:h,nodeOrigin:m}=e.getState(),p=new Map,x=l8(c),y=s?l[0]:5,_=s?l[1]:5,N=i.direction.x*y*i.factor,S=i.direction.y*_*i.factor;for(const[,w]of h){if(!x(w))continue;let k={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(k=Tl(k,l));const{position:E,positionAbsolute:M}=kE({nodeId:w.id,nextPosition:k,nodeLookup:h,nodeExtent:a,nodeOrigin:m,onError:d});w.position=E,w.internals.positionAbsolute=M,p.set(w.id,w)}f(p)},[])}const Wp=ie.createContext(null),c8=Wp.Provider;Wp.Consumer;const uN=()=>ie.useContext(Wp),u8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),dN=ie.createContext(null);function d8({children:e}){const t=dt(u8,qt);return g.jsx(dN.Provider,{value:t,children:e})}function f8(){const e=ie.useContext(dN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const h8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},m8=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:l,connection:c}=a,{fromHandle:d,toHandle:f,isValid:h}=c;if(!d&&!s)return h8;const m=(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===i;return{connectingFrom:(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===i,connectingTo:m,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===i,isPossibleEndHandle:l===$s.Strict?(d==null?void 0:d.type)!==i:e!==(d==null?void 0:d.nodeId)||t!==(d==null?void 0:d.id),connectionInProcess:!!d,clickConnectionInProcess:!!s,valid:m&&h}};function p8({type:e="source",position:t=ze.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:l=!0,id:c,onConnect:d,children:f,className:h,onMouseDown:m,onTouchStart:p,...x},y){var $,O;const _=c||null,N=e==="target",S=jt(),w=uN(),{connectOnClick:k,noPanClassName:E,rfId:M}=f8(),{connectingFrom:z,connectingTo:R,clickConnecting:H,isPossibleEndHandle:I,connectionInProcess:Z,clickConnectionInProcess:j,valid:q}=dt(m8(w,_,e),qt);w||(O=($=S.getState()).onError)==null||O.call($,"010",Oi.error010());const K=U=>{const{defaultEdgeOptions:Y,onConnect:X,hasDefaultEdges:C}=S.getState(),D={...Y,...U};if(C){const{edges:G,setEdges:L,onError:F}=S.getState();L(Y6(D,G,{onError:F}))}X==null||X(D),d==null||d(D)},V=U=>{if(!w)return;const Y=jE(U.nativeEvent);if(s&&(Y&&U.button===0||!Y)){const X=S.getState();Qm.onPointerDown(U.nativeEvent,{handleDomNode:U.currentTarget,autoPanOnConnect:X.autoPanOnConnect,connectionMode:X.connectionMode,connectionRadius:X.connectionRadius,domNode:X.domNode,nodeLookup:X.nodeLookup,lib:X.lib,isTarget:N,handleId:_,nodeId:w,flowId:X.rfId,panBy:X.panBy,cancelConnection:X.cancelConnection,onConnectStart:X.onConnectStart,onConnectEnd:(...C)=>{var D,G;return(G=(D=S.getState()).onConnectEnd)==null?void 0:G.call(D,...C)},updateConnection:X.updateConnection,onConnect:K,isValidConnection:i||((...C)=>{var D,G;return((G=(D=S.getState()).isValidConnection)==null?void 0:G.call(D,...C))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:X.autoPanSpeed,dragThreshold:X.connectionDragThreshold})}Y?m==null||m(U):p==null||p(U)},A=U=>{const{onClickConnectStart:Y,onClickConnectEnd:X,connectionClickStartHandle:C,connectionMode:D,isValidConnection:G,lib:L,rfId:F,nodeLookup:B,connection:Q}=S.getState();if(!w||!C&&!s)return;if(!C){Y==null||Y(U.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=DE(U.target),W=i||G,{connection:ee,isValid:le}=Qm.isValid(U.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:D,fromNodeId:C.nodeId,fromHandleId:C.id||null,fromType:C.type,isValidConnection:W,flowId:F,doc:J,lib:L,nodeLookup:B});le&&ee&&K(ee);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,X==null||X(U,fe),S.setState({connectionClickStartHandle:null})};return g.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${M}-${w}-${_}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,h,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:l,clickconnecting:H,connectingfrom:z,connectingto:R,valid:q,connectionindicator:a&&(!Z||I)&&(Z||j?l:s)}]),onMouseDown:V,onTouchStart:V,onClick:k?A:void 0,ref:y,...x,children:f})}const Gs=ie.memo(aN(p8));function g8({data:e,isConnectable:t,sourcePosition:i=ze.Bottom}){return g.jsxs(g.Fragment,{children:[e==null?void 0:e.label,g.jsx(Gs,{type:"source",position:i,isConnectable:t})]})}function b8({data:e,isConnectable:t,targetPosition:i=ze.Top,sourcePosition:a=ze.Bottom}){return g.jsxs(g.Fragment,{children:[g.jsx(Gs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,g.jsx(Gs,{type:"source",position:a,isConnectable:t})]})}function x8(){return null}function y8({data:e,isConnectable:t,targetPosition:i=ze.Top}){return g.jsxs(g.Fragment,{children:[g.jsx(Gs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Au={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},E1={input:g8,default:b8,output:y8,group:x8};function v8(e){var t,i,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const _8=e=>{const{width:t,height:i,x:a,y:s}=kl(e.nodeLookup,{filter:l=>!!l.selected});return{width:Ai(t)?t:null,height:Ai(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function w8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=jt(),{width:s,height:l,transformString:c,userSelectionActive:d}=dt(_8,qt),f=cN(),h=ie.useRef(null);ie.useEffect(()=>{var y;i||(y=h.current)==null||y.focus({preventScroll:!0})},[i]);const m=!d&&s!==null&&l!==null;if(lN({nodeRef:h,disabled:!m}),!m)return null;const p=e?y=>{const _=a.getState().nodes.filter(N=>N.selected);e(y,_)}:void 0,x=y=>{Object.prototype.hasOwnProperty.call(Au,y.key)&&(y.preventDefault(),f({direction:Au[y.key],factor:y.shiftKey?4:1}))};return g.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:g.jsx("div",{ref:h,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:i?void 0:-1,onKeyDown:i?void 0:x,style:{width:s,height:l}})})}const N1=typeof window<"u"?window:void 0,E8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function fN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:l,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:f,selectionKeyCode:h,selectionOnDrag:m,selectionMode:p,onSelectionStart:x,onSelectionEnd:y,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:M,panOnScrollSpeed:z,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:I,autoPanOnSelection:Z,defaultViewport:j,translateExtent:q,minZoom:K,maxZoom:V,preventScrolling:A,onSelectionContextMenu:$,noWheelClassName:O,noPanClassName:U,disableKeyboardA11y:Y,onViewportChange:X,isControlledViewport:C}){const{nodesSelectionActive:D,userSelectionActive:G}=dt(E8,qt),L=bl(h,{target:N1}),F=bl(N,{target:N1}),B=F||I,Q=F||M,J=m&&B!==!0,W=L||G||J;return e8({deleteKeyCode:f,multiSelectionKeyCode:_}),g.jsx(i8,{onPaneContextMenu:l,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:Q,panOnScrollSpeed:z,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!L&&B,defaultViewport:j,translateExtent:q,minZoom:K,maxZoom:V,zoomActivationKeyCode:S,preventScrolling:A,noWheelClassName:O,noPanClassName:U,onViewportChange:X,isControlledViewport:C,paneClickDistance:d,selectionOnDrag:J,children:g.jsxs(o8,{onSelectionStart:x,onSelectionEnd:y,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:l,onPaneScroll:c,panOnDrag:B,autoPanOnSelection:Z,isSelecting:!!W,selectionMode:p,selectionKeyPressed:L,paneClickDistance:d,selectionOnDrag:J,children:[e,D&&g.jsx(w8,{onSelectionContextMenu:$,noPanClassName:U,disableKeyboardA11y:Y})]})})}fN.displayName="FlowRenderer";const N8=ie.memo(fN),S8=e=>t=>e?Pp(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(i=>i.id):Array.from(t.nodeLookup.keys());function k8(e){return dt(ie.useCallback(S8(e),[e]),qt)}const T8=e=>e.updateNodeInternals;function A8(){const e=dt(T8),[t]=ie.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const l=s.target.getAttribute("data-id");a.set(l,{id:l,nodeElement:s.target,force:!0})}),e(a)}));return ie.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function C8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=jt(),l=ie.useRef(null),c=ie.useRef(null),d=ie.useRef(e.sourcePosition),f=ie.useRef(e.targetPosition),h=ie.useRef(t),m=i&&!!e.internals.handleBounds;return ie.useEffect(()=>{l.current&&!e.hidden&&(!m||c.current!==l.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(l.current),c.current=l.current)},[m,e.hidden]),ie.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),ie.useEffect(()=>{if(l.current){const p=h.current!==t,x=d.current!==e.sourcePosition,y=f.current!==e.targetPosition;(p||x||y)&&(h.current=t,d.current=e.sourcePosition,f.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:l.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),l}function M8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:l,onDoubleClick:c,nodesDraggable:d,elementsSelectable:f,nodesConnectable:h,nodesFocusable:m,resizeObserver:p,noDragClassName:x,noPanClassName:y,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:k}){const{node:E,internals:M,isParent:z}=dt(W=>{const ee=W.nodeLookup.get(e),le=W.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:le}},qt);let R=E.type||"default",H=(S==null?void 0:S[R])||E1[R];H===void 0&&(k==null||k("003",Oi.error003(R)),R="default",H=(S==null?void 0:S.default)||E1.default);const I=!!(E.draggable||d&&typeof E.draggable>"u"),Z=!!(E.selectable||f&&typeof E.selectable>"u"),j=!!(E.connectable||h&&typeof E.connectable>"u"),q=!!(E.focusable||m&&typeof E.focusable>"u"),K=jt(),V=OE(E),A=C8({node:E,nodeType:R,hasDimensions:V,resizeObserver:p}),$=lN({nodeRef:A,disabled:E.hidden||!I,noDragClassName:x,handleSelector:E.dragHandle,nodeId:e,isSelectable:Z,nodeClickDistance:w}),O=cN();if(E.hidden)return null;const U=Xi(E),Y=v8(E),X=Z||I||t||i||a||s,C=i?W=>i(W,{...M.userNode}):void 0,D=a?W=>a(W,{...M.userNode}):void 0,G=s?W=>s(W,{...M.userNode}):void 0,L=l?W=>l(W,{...M.userNode}):void 0,F=c?W=>c(W,{...M.userNode}):void 0,B=W=>{const{selectNodesOnDrag:ee,nodeDragThreshold:le}=K.getState();Z&&(!ee||!I||le>0)&&Wm({id:e,store:K,nodeRef:A}),t&&t(W,{...M.userNode})},Q=W=>{if(!(LE(W.nativeEvent)||_)){if(_E.includes(W.key)&&Z){const ee=W.key==="Escape";Wm({id:e,store:K,unselect:ee,nodeRef:A})}else if(I&&E.selected&&Object.prototype.hasOwnProperty.call(Au,W.key)){W.preventDefault();const{ariaLabelConfig:ee}=K.getState();K.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~M.positionAbsolute.x,y:~~M.positionAbsolute.y})}),O({direction:Au[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=A.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:ee,height:le,autoPanOnNodeFocus:fe,setCenter:be}=K.getState();if(!fe)return;Pp(new Map([[e,E]]),{x:0,y:0,width:ee,height:le},W,!0).length>0||be(E.position.x+U.width/2,E.position.y+U.height/2,{zoom:W[2]})};return g.jsx("div",{className:on(["react-flow__node",`react-flow__node-${R}`,{[y]:I},E.className,{selected:E.selected,selectable:Z,parent:z,draggable:I,dragging:$}]),ref:A,style:{zIndex:M.z,transform:`translate(${M.positionAbsolute.x}px,${M.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:V?"visible":"hidden",...E.style,...Y},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:C,onMouseMove:D,onMouseLeave:G,onContextMenu:L,onClick:B,onDoubleClick:F,onKeyDown:q?Q:void 0,tabIndex:q?0:void 0,onFocus:q?J:void 0,role:E.ariaRole??(q?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${JE}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:g.jsx(c8,{value:e,children:g.jsx(H,{id:e,data:E.data,type:R,positionAbsoluteX:M.positionAbsolute.x,positionAbsoluteY:M.positionAbsolute.y,selected:E.selected??!1,selectable:Z,draggable:I,deletable:E.deletable??!0,isConnectable:j,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:$,dragHandle:E.dragHandle,zIndex:M.z,parentId:E.parentId,...U})})})}var O8=ie.memo(M8);const R8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function hN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(R8,qt),l=k8(e.onlyRenderVisibleElements),c=A8();return g.jsx("div",{className:"react-flow__nodes",style:Yu,children:l.map(d=>g.jsx(O8,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:s},d))})}hN.displayName="NodeRenderer";const D8=ie.memo(hN);function L8(e){return dt(ie.useCallback(i=>{if(!e)return i.edges.map(s=>s.id);const a=[];if(i.width&&i.height)for(const s of i.edges){const l=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);l&&c&&CI({sourceNode:l,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const j8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return g.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},z8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return g.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},S1={[Su.Arrow]:j8,[Su.ArrowClosed]:z8};function I8(e){const t=jt();return ie.useMemo(()=>{var s,l;return Object.prototype.hasOwnProperty.call(S1,e)?S1[e]:((l=(s=t.getState()).onError)==null||l.call(s,"009",Oi.error009(e)),null)},[e])}const B8=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:l="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const f=I8(t);return f?g.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:l,orient:d,refX:"0",refY:"0",children:g.jsx(f,{color:i,strokeWidth:c})}):null},mN=({defaultColor:e,rfId:t})=>{const i=dt(l=>l.edges),a=dt(l=>l.defaultEdgeOptions),s=ie.useMemo(()=>II(i,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,t,e]);return s.length?g.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:g.jsx("defs",{children:s.map(l=>g.jsx(B8,{id:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,strokeWidth:l.strokeWidth,orient:l.orient},l.id))})}):null};mN.displayName="MarkerDefinitions";var U8=ie.memo(mN);function pN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:l,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:f,className:h,...m}){const[p,x]=ie.useState({x:1,y:0,width:0,height:0}),y=on(["react-flow__edge-textwrapper",h]),_=ie.useRef(null);return ie.useEffect(()=>{if(_.current){const N=_.current.getBBox();x({x:N.x,y:N.y,width:N.width,height:N.height})}},[i]),i?g.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:y,visibility:p.width?"visible":"hidden",...m,children:[s&&g.jsx("rect",{width:p.width+2*c[0],x:-c[0],y:-c[1],height:p.height+2*c[1],className:"react-flow__edge-textbg",style:l,rx:d,ry:d}),g.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:_,style:a,children:i}),f]}):null}pN.displayName="EdgeText";const H8=ie.memo(pN);function Xu({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f,interactionWidth:h=20,...m}){return g.jsxs(g.Fragment,{children:[g.jsx("path",{...m,d:e,fill:"none",className:on(["react-flow__edge-path",m.className])}),h?g.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}):null,a&&Ai(t)&&Ai(i)?g.jsx(H8,{x:t,y:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:f}):null]})}function k1({pos:e,x1:t,y1:i,x2:a,y2:s}){return e===ze.Left||e===ze.Right?[.5*(t+a),i]:[t,.5*(i+s)]}function gN({sourceX:e,sourceY:t,sourcePosition:i=ze.Bottom,targetX:a,targetY:s,targetPosition:l=ze.Top}){const[c,d]=k1({pos:i,x1:e,y1:t,x2:a,y2:s}),[f,h]=k1({pos:l,x1:a,y1:s,x2:e,y2:t}),[m,p,x,y]=zE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:f,targetControlY:h});return[`M${e},${t} C${c},${d} ${f},${h} ${a},${s}`,m,p,x,y]}function bN(e){return ie.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,sourcePosition:c,targetPosition:d,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:x,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[k,E,M]=gN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:l,targetPosition:d}),z=e.isInternal?void 0:t;return g.jsx(Xu,{id:z,path:k,labelX:E,labelY:M,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:x,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const $8=bN({isInternal:!1}),xN=bN({isInternal:!0});$8.displayName="SimpleBezierEdge";xN.displayName="SimpleBezierEdgeInternal";function yN(e){return ie.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:x,sourcePosition:y=ze.Bottom,targetPosition:_=ze.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,z]=Xm({sourceX:i,sourceY:a,sourcePosition:y,targetX:s,targetY:l,targetPosition:_,borderRadius:w==null?void 0:w.borderRadius,offset:w==null?void 0:w.offset,stepPosition:w==null?void 0:w.stepPosition}),R=e.isInternal?void 0:t;return g.jsx(Xu,{id:R,path:E,labelX:M,labelY:z,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:x,markerEnd:N,markerStart:S,interactionWidth:k})})}const vN=yN({isInternal:!1}),_N=yN({isInternal:!0});vN.displayName="SmoothStepEdge";_N.displayName="SmoothStepEdgeInternal";function wN(e){return ie.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return g.jsx(vN,{...i,id:a,pathOptions:ie.useMemo(()=>{var l;return{borderRadius:0,offset:(l=i.pathOptions)==null?void 0:l.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const q8=wN({isInternal:!1}),EN=wN({isInternal:!0});q8.displayName="StepEdge";EN.displayName="StepEdgeInternal";function NN(e){return ie.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:x,markerEnd:y,markerStart:_,interactionWidth:N})=>{const[S,w,k]=UE({sourceX:i,sourceY:a,targetX:s,targetY:l}),E=e.isInternal?void 0:t;return g.jsx(Xu,{id:E,path:S,labelX:w,labelY:k,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:p,style:x,markerEnd:y,markerStart:_,interactionWidth:N})})}const P8=NN({isInternal:!1}),SN=NN({isInternal:!0});P8.displayName="StraightEdge";SN.displayName="StraightEdgeInternal";function kN(e){return ie.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,sourcePosition:c=ze.Bottom,targetPosition:d=ze.Top,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:x,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,M,z]=IE({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:l,targetPosition:d,curvature:w==null?void 0:w.curvature}),R=e.isInternal?void 0:t;return g.jsx(Xu,{id:R,path:E,labelX:M,labelY:z,label:f,labelStyle:h,labelShowBg:m,labelBgStyle:p,labelBgPadding:x,labelBgBorderRadius:y,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const F8=kN({isInternal:!1}),TN=kN({isInternal:!0});F8.displayName="BezierEdge";TN.displayName="BezierEdgeInternal";const T1={default:TN,straight:SN,step:EN,smoothstep:_N,simplebezier:xN},A1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},G8=(e,t,i)=>i===ze.Left?e-t:i===ze.Right?e+t:e,V8=(e,t,i)=>i===ze.Top?e-t:i===ze.Bottom?e+t:e,C1="react-flow__edgeupdater";function M1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:l,onMouseOut:c,type:d}){return g.jsx("circle",{onMouseDown:s,onMouseEnter:l,onMouseOut:c,className:on([C1,`${C1}-${d}`]),cx:G8(t,a,e),cy:V8(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function Y8({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:l,targetY:c,sourcePosition:d,targetPosition:f,onReconnect:h,onReconnectStart:m,onReconnectEnd:p,setReconnecting:x,setUpdateHover:y}){const _=jt(),N=(M,z)=>{if(M.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:I,connectionRadius:Z,lib:j,onConnectStart:q,cancelConnection:K,nodeLookup:V,rfId:A,panBy:$,updateConnection:O}=_.getState(),U=z.type==="target",Y=(D,G)=>{x(!1),p==null||p(D,i,z.type,G)},X=D=>h==null?void 0:h(i,D),C=(D,G)=>{x(!0),m==null||m(M,i,z.type),q==null||q(D,G)};Qm.onPointerDown(M.nativeEvent,{autoPanOnConnect:R,connectionMode:I,connectionRadius:Z,domNode:H,handleId:z.id,nodeId:z.nodeId,nodeLookup:V,isTarget:U,edgeUpdaterType:z.type,lib:j,flowId:A,cancelConnection:K,panBy:$,isValidConnection:(...D)=>{var G,L;return((L=(G=_.getState()).isValidConnection)==null?void 0:L.call(G,...D))??!0},onConnect:X,onConnectStart:C,onConnectEnd:(...D)=>{var G,L;return(L=(G=_.getState()).onConnectEnd)==null?void 0:L.call(G,...D)},onReconnectEnd:Y,updateConnection:O,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:M.currentTarget})},S=M=>N(M,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),w=M=>N(M,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>y(!0),E=()=>y(!1);return g.jsxs(g.Fragment,{children:[(e===!0||e==="source")&&g.jsx(M1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&g.jsx(M1,{position:f,centerX:l,centerY:c,radius:t,onMouseDown:w,onMouseEnter:k,onMouseOut:E,type:"target"})]})}function X8({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:l,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,reconnectRadius:m,onReconnect:p,onReconnectStart:x,onReconnectEnd:y,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:k}){let E=dt(be=>be.edgeLookup.get(e));const M=dt(be=>be.defaultEdgeOptions);E=M?{...M,...E}:E;let z=E.type||"default",R=(N==null?void 0:N[z])||T1[z];R===void 0&&(w==null||w("011",Oi.error011(z)),z="default",R=(N==null?void 0:N.default)||T1.default);const H=!!(E.focusable||t&&typeof E.focusable>"u"),I=typeof p<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),Z=!!(E.selectable||a&&typeof E.selectable>"u"),j=ie.useRef(null),[q,K]=ie.useState(!1),[V,A]=ie.useState(!1),$=jt(),{zIndex:O=E.zIndex,sourceX:U,sourceY:Y,targetX:X,targetY:C,sourcePosition:D,targetPosition:G}=dt(ie.useCallback(be=>{const we=be.nodeLookup.get(E.source),Ne=be.nodeLookup.get(E.target);if(!we||!Ne)return A1;const Le=zI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:be.connectionMode,onError:w}),$e=AI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...Le||A1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),qt),L=ie.useMemo(()=>E.markerStart?`url('#${Km(E.markerStart,_)}')`:void 0,[E.markerStart,_]),F=ie.useMemo(()=>E.markerEnd?`url('#${Km(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||U===null||Y===null||X===null||C===null)return null;const B=be=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:Le}=$.getState();Z&&($.setState({nodesSelectionActive:!1}),E.selected&&Le?(Ne({nodes:[],edges:[E]}),($e=j.current)==null||$e.blur()):we([e])),s&&s(be,E)},Q=l?be=>{l(be,{...E})}:void 0,J=c?be=>{c(be,{...E})}:void 0,W=d?be=>{d(be,{...E})}:void 0,ee=f?be=>{f(be,{...E})}:void 0,le=h?be=>{h(be,{...E})}:void 0,fe=be=>{var we;if(!k&&_E.includes(be.key)&&Z){const{unselectNodesAndEdges:Ne,addSelectedEdges:Le}=$.getState();be.key==="Escape"?((we=j.current)==null||we.blur(),Ne({edges:[E]})):Le([e])}};return g.jsx("svg",{style:{zIndex:O},children:g.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${z}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Z&&!s,updating:q,selectable:Z}]),onClick:B,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:ee,onMouseLeave:le,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:E.ariaRole??(H?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":H?`${eN}-${_}`:void 0,ref:j,...E.domAttributes,children:[!V&&g.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Z,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:U,sourceY:Y,targetX:X,targetY:C,sourcePosition:D,targetPosition:G,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:L,markerEnd:F,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),I&&g.jsx(Y8,{edge:E,isReconnectable:I,reconnectRadius:m,onReconnect:p,onReconnectStart:x,onReconnectEnd:y,sourceX:U,sourceY:Y,targetX:X,targetY:C,sourcePosition:D,targetPosition:G,setUpdateHover:K,setReconnecting:A})]})})}var K8=ie.memo(X8);const Z8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function AN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:l,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:f,onEdgeMouseLeave:h,onEdgeClick:m,reconnectRadius:p,onEdgeDoubleClick:x,onReconnectStart:y,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,onError:E}=dt(Z8,qt),M=L8(t);return g.jsxs("div",{className:"react-flow__edges",children:[g.jsx(U8,{defaultColor:e,rfId:i}),M.map(z=>g.jsx(K8,{id:z,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,noPanClassName:s,onReconnect:l,onContextMenu:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:h,onClick:m,reconnectRadius:p,onDoubleClick:x,onReconnectStart:y,onReconnectEnd:_,rfId:i,onError:E,edgeTypes:a,disableKeyboardA11y:N},z))]})}AN.displayName="EdgeRenderer";const Q8=ie.memo(AN),O1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function W8({children:e}){const t=jt(),i=ie.useRef(null),[a]=ie.useState(()=>t.getState().transform);return sN(()=>{let s=null;const l=()=>{const c=t.getState().transform;s&&c[0]===s[0]&&c[1]===s[1]&&c[2]===s[2]||(s=c,i.current&&(i.current.style.transform=O1(c)))};return l(),t.subscribe(l)},[t]),g.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:O1(a)},children:e})}function J8(e){const t=Cl(),i=ie.useRef(!1);ie.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const eB=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function tB(e){const t=dt(eB),i=jt();return ie.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function nB(e){return e.connection.inProgress?{...e.connection,to:Al(e.connection.to,e.transform)}:{...e.connection}}function iB(e){return nB}function rB(e){const t=iB();return dt(t,qt)}const aB=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function sB({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:l,height:c,isValid:d,inProgress:f}=dt(aB,qt);return!(l&&s&&f)?null:g.jsx("svg",{style:e,width:l,height:c,className:"react-flow__connectionline react-flow__container",children:g.jsx("g",{className:on(["react-flow__connection",NE(d)]),children:g.jsx(CN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const CN=({style:e,type:t=aa.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:l,fromNode:c,fromHandle:d,fromPosition:f,to:h,toNode:m,toHandle:p,toPosition:x,pointer:y}=rB();if(!s)return;if(i)return g.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:l.x,fromY:l.y,toX:h.x,toY:h.y,fromPosition:f,toPosition:x,connectionStatus:NE(a),toNode:m,toHandle:p,pointer:y});let _="";const N={sourceX:l.x,sourceY:l.y,sourcePosition:f,targetX:h.x,targetY:h.y,targetPosition:x};switch(t){case aa.Bezier:[_]=IE(N);break;case aa.SimpleBezier:[_]=gN(N);break;case aa.Step:[_]=Xm({...N,borderRadius:0});break;case aa.SmoothStep:[_]=Xm(N);break;default:[_]=UE(N)}return g.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};CN.displayName="ConnectionLine";const oB={};function R1(e=oB){ie.useRef(e),jt(),ie.useEffect(()=>{},[e])}function lB(){jt(),ie.useRef(!1),ie.useEffect(()=>{},[])}function MN({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:l,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,onSelectionContextMenu:p,onSelectionStart:x,onSelectionEnd:y,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,multiSelectionKeyCode:z,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:I,onlyRenderVisibleElements:Z,elementsSelectable:j,defaultViewport:q,translateExtent:K,minZoom:V,maxZoom:A,preventScrolling:$,defaultMarkerColor:O,zoomOnScroll:U,zoomOnPinch:Y,panOnScroll:X,panOnScrollSpeed:C,panOnScrollMode:D,zoomOnDoubleClick:G,panOnDrag:L,autoPanOnSelection:F,onPaneClick:B,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:ee,onPaneContextMenu:le,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:wn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return R1(e),R1(t),lB(),J8(i),tB(xe),g.jsx(N8,{onPaneClick:B,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:le,onPaneScroll:ee,paneClickDistance:fe,deleteKeyCode:I,selectionKeyCode:k,selectionOnDrag:E,selectionMode:M,onSelectionStart:x,onSelectionEnd:y,multiSelectionKeyCode:z,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:j,zoomOnScroll:U,zoomOnPinch:Y,zoomOnDoubleClick:G,panOnScroll:X,panOnScrollSpeed:C,panOnScrollMode:D,panOnDrag:L,autoPanOnSelection:F,defaultViewport:q,translateExtent:K,minZoom:V,maxZoom:A,onSelectionContextMenu:p,preventScrolling:$,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:wn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:g.jsxs(W8,{children:[g.jsx(Q8,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:Z,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:O,noPanClassName:wn,disableKeyboardA11y:ct,rfId:ue}),g.jsx(sB,{style:N,type:_,component:S,containerStyle:w}),g.jsx("div",{className:"react-flow__edgelabel-renderer"}),g.jsx(D8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:l,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:h,onNodeContextMenu:m,nodeClickDistance:be,onlyRenderVisibleElements:Z,noPanClassName:wn,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),g.jsx("div",{className:"react-flow__viewport-portal"})]})})}MN.displayName="GraphView";const cB=ie.memo(MN),uB=ME(),D1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:f=.5,maxZoom:h=2,nodeOrigin:m,nodeExtent:p,zIndexMode:x="basic"}={})=>{const y=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],k=i??e??[],E=m??[0,0],M=p??hl;qE(N,S,w);const{nodesInitialized:z}=Zm(k,y,_,{nodeOrigin:E,nodeExtent:M,zIndexMode:x});let R=[0,0,1];if(c&&s&&l){const H=kl(y,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:I,y:Z,zoom:j}=Gp(H,s,l,f,h,(d==null?void 0:d.padding)??.1);R=[I,Z,j]}return{rfId:"1",width:s??0,height:l??0,transform:R,nodes:k,nodesInitialized:z,nodeLookup:y,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:f,maxZoom:h,translateExtent:hl,nodeExtent:M,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:$s.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:d,fitViewResolver:null,connection:{...EE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:uB,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:wE,zIndexMode:x,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},dB=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,zIndexMode:x})=>S6((y,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:k,fitViewResolver:E,width:M,height:z,minZoom:R,maxZoom:H}=_();w&&(await _I({nodes:S,width:M,height:z,panZoom:w,minZoom:R,maxZoom:H},k),E==null||E.resolve(!0),y({fitViewResolver:null}))}return{...D1({nodes:e,edges:t,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:f,maxZoom:h,nodeOrigin:m,nodeExtent:p,defaultNodes:i,defaultEdges:a,zIndexMode:x}),setNodes:S=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:E,elevateNodesOnSelect:M,fitViewQueued:z,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:I,hasSelectedNodes:Z}=Zm(S,w,k,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:M,checkEquality:!0,zIndexMode:R}),j=H&&Z;z&&I?(N(),y({nodes:S,nodesInitialized:I,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:j})):y({nodes:S,nodesInitialized:I,nodesSelectionActive:j})},setEdges:S=>{const{connectionLookup:w,edgeLookup:k}=_();qE(w,k,S),y({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:k}=_();k(S),y({hasDefaultNodes:!0})}if(w){const{setEdges:k}=_();k(w),y({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:E,domNode:M,nodeOrigin:z,nodeExtent:R,debug:H,fitViewQueued:I,zIndexMode:Z}=_(),{changes:j,updatedInternals:q}=FI(S,k,E,M,z,R,Z);q&&(HI(k,E,{nodeOrigin:z,nodeExtent:R,zIndexMode:Z}),I?(N(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),(j==null?void 0:j.length)>0&&(H&&console.log("React Flow: trigger node changes",j),w==null||w(j)))},updateNodePositions:(S,w=!1)=>{const k=[];let E=[];const{nodeLookup:M,triggerNodeChanges:z,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:I}=_();for(const[Z,j]of S){const q=M.get(Z),K=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(j!=null&&j.position)),V={id:Z,type:"position",position:K?{x:Math.max(0,j.position.x),y:Math.max(0,j.position.y)}:j.position,dragging:w};if(q&&R.inProgress&&R.fromNode.id===q.id){const A=qa(q,R.fromHandle,ze.Left,!0);H({...R,from:A})}K&&q.parentId&&k.push({id:Z,parentId:q.parentId,rect:{...j.internals.positionAbsolute,width:j.measured.width??0,height:j.measured.height??0}}),E.push(V)}if(k.length>0){const{parentLookup:Z,nodeOrigin:j}=_(),q=Qp(k,M,Z,j);E.push(...q)}for(const Z of I.values())E=Z(E);z(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:k,nodes:E,hasDefaultNodes:M,debug:z}=_();if(S!=null&&S.length){if(M){const R=iN(S,E);k(R)}z&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:k,edges:E,hasDefaultEdges:M,debug:z}=_();if(S!=null&&S.length){if(M){const R=rN(S,E);k(R)}z&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:z}=_();if(w){const R=S.map(H=>Ra(H,!0));M(R);return}M(Ms(E,new Set([...S]),!0)),z(Ms(k))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:M,triggerEdgeChanges:z}=_();if(w){const R=S.map(H=>Ra(H,!0));z(R);return}z(Ms(k,new Set([...S]))),M(Ms(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:k,nodes:E,nodeLookup:M,triggerNodeChanges:z,triggerEdgeChanges:R}=_(),H=S||E,I=w||k,Z=[];for(const q of H){if(!q.selected)continue;const K=M.get(q.id);K&&(K.selected=!1),Z.push(Ra(q.id,!1))}const j=[];for(const q of I)q.selected&&j.push(Ra(q.id,!1));z(Z),R(j)},setMinZoom:S=>{const{panZoom:w,maxZoom:k}=_();w==null||w.setScaleExtent([S,k]),y({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:k}=_();w==null||w.setScaleExtent([k,S]),y({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),y({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:E,elementsSelectable:M}=_();if(!M)return;const z=w.reduce((H,I)=>I.selected?[...H,Ra(I.id,!1)]:H,[]),R=S.reduce((H,I)=>I.selected?[...H,Ra(I.id,!1)]:H,[]);k(z),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:k,parentLookup:E,nodeOrigin:M,elevateNodesOnSelect:z,nodeExtent:R,zIndexMode:H}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(Zm(w,k,E,{nodeOrigin:M,nodeExtent:S,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:H}),y({nodeExtent:S}))},panBy:S=>{const{transform:w,width:k,height:E,panZoom:M,translateExtent:z}=_();return GI({delta:S,panZoom:M,transform:w,translateExtent:z,width:k,height:E})},setCenter:async(S,w,k)=>{const{width:E,height:M,maxZoom:z,panZoom:R}=_();if(!R)return!1;const H=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:z;return await R.setViewport({x:E/2-S*H,y:M/2-w*H,zoom:H},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{y({connection:{...EE}})},updateConnection:S=>{y({connection:S})},reset:()=>y({...D1()})}},Object.is);function fB({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:l,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:f,fitView:h,nodeOrigin:m,nodeExtent:p,zIndexMode:x,children:y}){const[_]=ie.useState(()=>dB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:h,minZoom:c,maxZoom:d,fitViewOptions:f,nodeOrigin:m,nodeExtent:p,zIndexMode:x}));return g.jsx(k6,{value:_,children:g.jsx(Z6,{children:g.jsx(d8,{children:y})})})}function hB({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:l,height:c,fitView:d,fitViewOptions:f,minZoom:h,maxZoom:m,nodeOrigin:p,nodeExtent:x,zIndexMode:y}){return ie.useContext(Gu)?g.jsx(g.Fragment,{children:e}):g.jsx(fB,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:l,initialHeight:c,fitView:d,initialFitViewOptions:f,initialMinZoom:h,initialMaxZoom:m,nodeOrigin:p,nodeExtent:x,zIndexMode:y,children:e})}const mB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function pB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:l,edgeTypes:c,onNodeClick:d,onEdgeClick:f,onInit:h,onMove:m,onMoveStart:p,onMoveEnd:x,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:z,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:Z,onNodesDelete:j,onEdgesDelete:q,onDelete:K,onSelectionChange:V,onSelectionDragStart:A,onSelectionDrag:$,onSelectionDragStop:O,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:X,onBeforeDelete:C,connectionMode:D,connectionLineType:G=aa.Bezier,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:B,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:ee=ml.Full,panActivationKeyCode:le="Space",multiSelectionKeyCode:fe=gl()?"Meta":"Control",zoomActivationKeyCode:be=gl()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=tN,edgesFocusable:Vn,edgesReconnectable:wn,elementsSelectable:ct=!0,defaultViewport:It=U6,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=hl,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:ln="#b1b1b7",zoomOnScroll:En=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=za.Free,zoomOnDoubleClick:jn=!0,panOnDrag:cn=!0,onPaneClick:_r,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:wr=10,onNodesChange:Er,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:mn="nowheel",noPanClassName:xi="nopan",fitView:Nr,fitViewOptions:ca,connectOnClick:Sr,attributionPosition:Ga,proOptions:Ki,defaultEdgeOptions:ua,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:yi=!1,disableKeyboardA11y:vi=!1,autoPanOnConnect:Li,autoPanOnNodeDrag:Ft,autoPanOnSelection:Va=!0,autoPanSpeed:Zi,connectionRadius:_i,isValidConnection:ye,onError:je,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:pn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:Ya="light",debug:kr,onScroll:ji,ariaLabelConfig:Tr,zIndexMode:Xa="basic",...Sn},da){const wi=ft||"1",Ar=P6(Ya),un=ie.useCallback(fa=>{fa.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),ji==null||ji(fa)},[ji]);return g.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...mB},ref:da,className:on(["react-flow",s,Ar]),id:ft,role:"application",children:g.jsxs(hB,{nodes:e,edges:t,width:_t,height:On,fitView:Nr,fitViewOptions:ca,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Xa,children:[g.jsx(q6,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:y,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Vn,edgesReconnectable:wn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:yi,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:Er,onEdgesChange:ai,snapToGrid:we,snapGrid:Ne,connectionMode:D,translateExtent:Oe,connectOnClick:Sr,defaultEdgeOptions:ua,fitView:Nr,fitViewOptions:ca,onNodesDelete:j,onEdgesDelete:q,onDelete:K,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:Z,onSelectionDrag:$,onSelectionDragStart:A,onSelectionDragStop:O,onMove:m,onMoveStart:p,onMoveEnd:x,noPanClassName:xi,nodeOrigin:Xt,rfId:wi,autoPanOnConnect:Li,autoPanOnNodeDrag:Ft,autoPanSpeed:Zi,onError:je,connectionRadius:_i,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:pn,onBeforeDelete:C,debug:kr,ariaLabelConfig:Tr,zIndexMode:Xa}),g.jsx(cB,{onInit:h,onNodeClick:d,onEdgeClick:f,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:M,onNodeContextMenu:z,onNodeDoubleClick:R,nodeTypes:l,edgeTypes:c,connectionLineType:G,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:B,selectionKeyCode:J,selectionOnDrag:W,selectionMode:ee,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:le,zoomActivationKeyCode:be,onlyRenderVisibleElements:Le,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:En,zoomOnPinch:Kt,zoomOnDoubleClick:jn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Va,onPaneClick:_r,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:X,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Me,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:wr,defaultMarkerColor:ln,noDragClassName:Ut,noWheelClassName:mn,noPanClassName:xi,rfId:wi,disableKeyboardA11y:vi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),g.jsx(B6,{onSelectionChange:V}),Pe,g.jsx(D6,{proOptions:Ki,position:Ga}),g.jsx(R6,{rfId:wi,disableKeyboardA11y:vi})]})})}var gB=aN(pB);function bB(e){const[t,i]=ie.useState(e),a=ie.useCallback(s=>i(l=>iN(s,l)),[]);return[t,i,a]}function xB(e){const[t,i]=ie.useState(e),a=ie.useCallback(s=>i(l=>rN(s,l)),[]);return[t,i,a]}function yB({dimensions:e,lineWidth:t,variant:i,className:a}){return g.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",i,a])})}function vB({radius:e,className:t}){return g.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",t])})}var sa;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(sa||(sa={}));const _B={[sa.Dots]:1,[sa.Lines]:1,[sa.Cross]:6},wB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ON({id:e,variant:t=sa.Dots,gap:i=20,size:a,lineWidth:s=1,offset:l=0,color:c,bgColor:d,style:f,className:h,patternClassName:m}){const p=ie.useRef(null),{transform:x,patternId:y}=dt(wB,qt),_=a||_B[t],N=t===sa.Dots,S=t===sa.Cross,w=Array.isArray(i)?i:[i,i],k=[w[0]*x[2]||1,w[1]*x[2]||1],E=_*x[2],M=Array.isArray(l)?l:[l,l],z=S?[E,E]:k,R=[M[0]*x[2]||1+z[0]/2,M[1]*x[2]||1+z[1]/2],H=`${y}${e||""}`;return g.jsxs("svg",{className:on(["react-flow__background",h]),style:{...f,...Yu,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[g.jsx("pattern",{id:H,x:x[0]%k[0],y:x[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?g.jsx(vB,{radius:E/2,className:m}):g.jsx(yB,{dimensions:z,lineWidth:s,variant:t,className:m})}),g.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}ON.displayName="Background";const EB=ie.memo(ON);function NB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:g.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function SB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:g.jsx("path",{d:"M0 0h32v4.2H0z"})})}function kB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:g.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function TB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function AB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function nu({children:e,className:t,...i}){return g.jsx("button",{type:"button",className:on(["react-flow__controls-button",t]),...i,children:e})}const CB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function RN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:l,onZoomOut:c,onFitView:d,onInteractiveChange:f,className:h,children:m,position:p="bottom-left",orientation:x="vertical","aria-label":y}){const _=jt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:k}=dt(CB,qt),{zoomIn:E,zoomOut:M,fitView:z}=Cl(),R=()=>{E(),l==null||l()},H=()=>{M(),c==null||c()},I=()=>{z(s),d==null||d()},Z=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),f==null||f(!N)},j=x==="horizontal"?"horizontal":"vertical";return g.jsxs(Vu,{className:on(["react-flow__controls",j,h]),position:p,style:e,"data-testid":"rf__controls","aria-label":y??k["controls.ariaLabel"],children:[t&&g.jsxs(g.Fragment,{children:[g.jsx(nu,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:w,children:g.jsx(NB,{})}),g.jsx(nu,{onClick:H,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:g.jsx(SB,{})})]}),i&&g.jsx(nu,{className:"react-flow__controls-fitview",onClick:I,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:g.jsx(kB,{})}),a&&g.jsx(nu,{className:"react-flow__controls-interactive",onClick:Z,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?g.jsx(AB,{}):g.jsx(TB,{})}),m]})}RN.displayName="Controls";const MB=ie.memo(RN);function OB({id:e,x:t,y:i,width:a,height:s,style:l,color:c,strokeColor:d,strokeWidth:f,className:h,borderRadius:m,shapeRendering:p,selected:x,onClick:y}){const{background:_,backgroundColor:N}=l||{},S=c||_||N;return g.jsx("rect",{className:on(["react-flow__minimap-node",{selected:x},h]),x:t,y:i,rx:m,ry:m,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:f},shapeRendering:p,onClick:y?w=>y(w,e):void 0})}const RB=ie.memo(OB),DB=e=>e.nodes.map(t=>t.id),ym=e=>e instanceof Function?e:()=>e;function LB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:l=RB,onClick:c}){const d=dt(DB,qt),f=ym(t),h=ym(e),m=ym(i),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g.jsx(g.Fragment,{children:d.map(x=>g.jsx(zB,{id:x,nodeColorFunc:f,nodeStrokeColorFunc:h,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:l,onClick:c,shapeRendering:p},x))})}function jB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:l,shapeRendering:c,NodeComponent:d,onClick:f}){const{node:h,x:m,y:p,width:x,height:y}=dt(_=>{const N=_.nodeLookup.get(e);if(!N)return{node:void 0,x:0,y:0,width:0,height:0};const S=N.internals.userNode,{x:w,y:k}=N.internals.positionAbsolute,{width:E,height:M}=Xi(S);return{node:S,x:w,y:k,width:E,height:M}},qt);return!h||h.hidden||!OE(h)?null:g.jsx(d,{x:m,y:p,width:x,height:y,style:h.style,selected:!!h.selected,className:a(h),color:t(h),borderRadius:s,strokeColor:i(h),strokeWidth:l,shapeRendering:c,onClick:f,id:h.id})}const zB=ie.memo(jB);var IB=ie.memo(LB);const BB=200,UB=150,HB=e=>!e.hidden,$B=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?AE(kl(e.nodeLookup,{filter:HB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},L1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,qB=(e,t)=>L1(e.viewBB,t.viewBB)&&L1(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,PB="react-flow__minimap-desc";function DN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:l=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:f,maskColor:h,maskStrokeColor:m,maskStrokeWidth:p,position:x="bottom-right",onClick:y,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:k,zoomStep:E=1,offsetScale:M=5}){const z=jt(),R=ie.useRef(null),{boundingRect:H,viewBB:I,rfId:Z,panZoom:j,translateExtent:q,flowWidth:K,flowHeight:V,ariaLabelConfig:A}=dt($B,qB),$=(e==null?void 0:e.width)??BB,O=(e==null?void 0:e.height)??UB,U=H.width/$,Y=H.height/O,X=Math.max(U,Y),C=X*$,D=X*O,G=M*X,L=H.x-(C-H.width)/2-G,F=H.y-(D-H.height)/2-G,B=C+G*2,Q=D+G*2,J=`${PB}-${Z}`,W=ie.useRef(0),ee=ie.useRef();W.current=X,ie.useEffect(()=>{if(R.current&&j)return ee.current=e6({domNode:R.current,panZoom:j,getTransform:()=>z.getState().transform,getViewScale:()=>W.current}),()=>{var we;(we=ee.current)==null||we.destroy()}},[j]),ie.useEffect(()=>{var we;(we=ee.current)==null||we.update({translateExtent:q,width:K,height:V,inversePan:k,pannable:N,zoomStep:E,zoomable:S})},[N,S,k,E,q,K,V]);const le=y?we=>{var $e;const[Ne,Le]=(($e=ee.current)==null?void 0:$e.pointer(we))||[0,0];y(we,{x:Ne,y:Le})}:void 0,fe=_?ie.useCallback((we,Ne)=>{const Le=z.getState().nodeLookup.get(Ne).internals.userNode;_(we,Le)},[]):void 0,be=w??A["minimap.ariaLabel"];return g.jsx(Vu,{position:x,style:{...e,"--xy-minimap-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*X:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:on(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:g.jsxs("svg",{width:$,height:O,viewBox:`${L} ${F} ${B} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:le,children:[be&&g.jsx("title",{id:J,children:be}),g.jsx(IB,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:l,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),g.jsx("path",{className:"react-flow__minimap-mask",d:`M${L-G},${F-G}h${B+G*2}v${Q+G*2}h${-B-G*2}z + M${I.x},${I.y}h${I.width}v${I.height}h${-I.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}DN.displayName="MiniMap";const FB=ie.memo(DN),GB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,VB={[Fs.Line]:"right",[Fs.Handle]:"bottom-right"};function YB({nodeId:e,position:t,variant:i=Fs.Handle,className:a,style:s=void 0,children:l,color:c,minWidth:d=10,minHeight:f=10,maxWidth:h=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:x,autoScale:y=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const k=uN(),E=typeof e=="string"?e:k,M=jt(),z=ie.useRef(null),R=i===Fs.Handle,H=dt(ie.useCallback(GB(R&&y),[R,y]),qt),I=ie.useRef(null),Z=t??VB[i];ie.useEffect(()=>{if(!(!z.current||!E))return I.current||(I.current=h6({domNode:z.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:q,transform:K,snapGrid:V,snapToGrid:A,nodeOrigin:$,domNode:O}=M.getState();return{nodeLookup:q,transform:K,snapGrid:V,snapToGrid:A,nodeOrigin:$,paneDomNode:O}},onChange:(q,K)=>{const{triggerNodeChanges:V,nodeLookup:A,parentLookup:$,nodeOrigin:O}=M.getState(),U=[],Y={x:q.x,y:q.y},X=A.get(E);if(X&&X.expandParent&&X.parentId){const C=X.origin??O,D=q.width??X.measured.width??0,G=q.height??X.measured.height??0,L={id:X.id,parentId:X.parentId,rect:{width:D,height:G,...RE({x:q.x??X.position.x,y:q.y??X.position.y},{width:D,height:G},X.parentId,A,C)}},F=Qp([L],A,$,O);U.push(...F),Y.x=q.x?Math.max(C[0]*D,q.x):void 0,Y.y=q.y?Math.max(C[1]*G,q.y):void 0}if(Y.x!==void 0&&Y.y!==void 0){const C={id:E,type:"position",position:{...Y}};U.push(C)}if(q.width!==void 0&&q.height!==void 0){const D={id:E,type:"dimensions",resizing:!0,setAttributes:x?x==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};U.push(D)}for(const C of K){const D={...C,type:"position"};U.push(D)}V(U)},onEnd:({width:q,height:K})=>{const V={id:E,type:"dimensions",resizing:!1,dimensions:{width:q,height:K}};M.getState().triggerNodeChanges([V])}})),I.current.update({controlPosition:Z,boundaries:{minWidth:d,minHeight:f,maxWidth:h,maxHeight:m},keepAspectRatio:p,resizeDirection:x,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var q;(q=I.current)==null||q.destroy()}},[Z,d,f,h,m,p,N,S,w,_]);const j=Z.split("-");return g.jsx("div",{className:on(["react-flow__resize-control","nodrag",...j,i,a]),ref:z,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:l})}ie.memo(YB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ri=vt((e,t)=>{var i=Object.defineProperty,a=(V,A,$)=>A in V?i(V,A,{enumerable:!0,configurable:!0,writable:!0,value:$}):V[A]=$,s=(V,A)=>()=>(A||V((A={exports:{}}).exports,A),A.exports),l=(V,A,$)=>a(V,typeof A!="symbol"?A+"":A,$),c=s((V,A)=>{var $="\0",O="\0",U="",Y=class{constructor(F){l(this,"_isDirected",!0),l(this,"_isMultigraph",!1),l(this,"_isCompound",!1),l(this,"_label"),l(this,"_defaultNodeLabelFn",()=>{}),l(this,"_defaultEdgeLabelFn",()=>{}),l(this,"_nodes",{}),l(this,"_in",{}),l(this,"_preds",{}),l(this,"_out",{}),l(this,"_sucs",{}),l(this,"_edgeObjs",{}),l(this,"_edgeLabels",{}),l(this,"_nodeCount",0),l(this,"_edgeCount",0),l(this,"_parent"),l(this,"_children"),F&&(this._isDirected=Object.hasOwn(F,"directed")?F.directed:!0,this._isMultigraph=Object.hasOwn(F,"multigraph")?F.multigraph:!1,this._isCompound=Object.hasOwn(F,"compound")?F.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[O]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(F){return this._label=F,this}graph(){return this._label}setDefaultNodeLabel(F){return this._defaultNodeLabelFn=F,typeof F!="function"&&(this._defaultNodeLabelFn=()=>F),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var F=this;return this.nodes().filter(B=>Object.keys(F._in[B]).length===0)}sinks(){var F=this;return this.nodes().filter(B=>Object.keys(F._out[B]).length===0)}setNodes(F,B){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,B):J.setNode(W)}),this}setNode(F,B){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=B),this):(this._nodes[F]=arguments.length>1?B:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=O,this._children[F]={},this._children[O][F]=!0),this._in[F]={},this._preds[F]={},this._out[F]={},this._sucs[F]={},++this._nodeCount,this)}node(F){return this._nodes[F]}hasNode(F){return Object.hasOwn(this._nodes,F)}removeNode(F){var B=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>B.removeEdge(B._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){B.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Q),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Q),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,B){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(B===void 0)B=O;else{B+="";for(var Q=B;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+B+" as parent of "+F+" would create a cycle");this.setNode(B)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=B,this._children[B][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var B=this._parent[F];if(B!==O)return B}}children(F=O){if(this._isCompound){var B=this._children[F];if(B)return Object.keys(B)}else{if(F===O)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var B=this._preds[F];if(B)return Object.keys(B)}successors(F){var B=this._sucs[F];if(B)return Object.keys(B)}neighbors(F){var B=this.predecessors(F);if(B){let J=new Set(B);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var B;return this.isDirected()?B=this.successors(F):B=this.neighbors(F),B.length===0}filterNodes(F){var B=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});B.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([ee,le]){F(ee)&&B.setNode(ee,le)}),Object.values(this._edgeObjs).forEach(function(ee){B.hasNode(ee.v)&&B.hasNode(ee.w)&&B.setEdge(ee,Q.edge(ee))});var J={};function W(ee){var le=Q.parent(ee);return le===void 0||B.hasNode(le)?(J[ee]=le,le):le in J?J[le]:W(le)}return this._isCompound&&B.nodes().forEach(ee=>B.setParent(ee,W(ee))),B}setDefaultEdgeLabel(F){return this._defaultEdgeLabelFn=F,typeof F!="function"&&(this._defaultEdgeLabelFn=()=>F),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(F,B){var Q=this,J=arguments;return F.reduce(function(W,ee){return J.length>1?Q.setEdge(W,ee,B):Q.setEdge(W,ee),ee}),this}setEdge(){var F,B,Q,J,W=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(F=ee.v,B=ee.w,Q=ee.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=ee,B=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,B=""+B,Q!==void 0&&(Q=""+Q);var le=D(this._isDirected,F,B,Q);if(Object.hasOwn(this._edgeLabels,le))return W&&(this._edgeLabels[le]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode(B),this._edgeLabels[le]=W?J:this._defaultEdgeLabelFn(F,B,Q);var fe=G(this._isDirected,F,B,Q);return F=fe.v,B=fe.w,Object.freeze(fe),this._edgeObjs[le]=fe,X(this._preds[B],F),X(this._sucs[F],B),this._in[B][le]=fe,this._out[F][le]=fe,this._edgeCount++,this}edge(F,B,Q){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,B,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,B,Q){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,B,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,B,Q){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,B,Q),W=this._edgeObjs[J];return W&&(F=W.v,B=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],C(this._preds[B],F),C(this._sucs[F],B),delete this._in[B][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,B){return this.isDirected()?this.filterEdges(this._in[F],F,B):this.nodeEdges(F,B)}outEdges(F,B){return this.isDirected()?this.filterEdges(this._out[F],F,B):this.nodeEdges(F,B)}nodeEdges(F,B){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,B)}filterEdges(F,B,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===B&&W.w===Q||W.v===Q&&W.w===B}):J}}};function X(F,B){F[B]?F[B]++:F[B]=1}function C(F,B){--F[B]||delete F[B]}function D(F,B,Q,J){var W=""+B,ee=""+Q;if(!F&&W>ee){var le=W;W=ee,ee=le}return W+U+ee+U+(J===void 0?$:J)}function G(F,B,Q,J){var W=""+B,ee=""+Q;if(!F&&W>ee){var le=W;W=ee,ee=le}var fe={v:W,w:ee};return J&&(fe.name=J),fe}function L(F,B){return D(F,B.v,B.w,B.name)}A.exports=Y}),d=s((V,A)=>{A.exports="3.0.2"}),f=s((V,A)=>{A.exports={Graph:c(),version:d()}}),h=s((V,A)=>{var $=c();A.exports={write:O,read:X};function O(C){var D={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:U(C),edges:Y(C)};return C.graph()!==void 0&&(D.value=structuredClone(C.graph())),D}function U(C){return C.nodes().map(function(D){var G=C.node(D),L=C.parent(D),F={v:D};return G!==void 0&&(F.value=G),L!==void 0&&(F.parent=L),F})}function Y(C){return C.edges().map(function(D){var G=C.edge(D),L={v:D.v,w:D.w};return D.name!==void 0&&(L.name=D.name),G!==void 0&&(L.value=G),L})}function X(C){var D=new $(C.options).setGraph(C.value);return C.nodes.forEach(function(G){D.setNode(G.v,G.value),G.parent&&D.setParent(G.v,G.parent)}),C.edges.forEach(function(G){D.setEdge({v:G.v,w:G.w,name:G.name},G.value)}),D}}),m=s((V,A)=>{A.exports=O;var $=()=>1;function O(Y,X,C,D){return U(Y,String(X),C||$,D||function(G){return Y.outEdges(G)})}function U(Y,X,C,D){var G={},L=!0,F=0,B=Y.nodes(),Q=function(le){var fe=C(le);G[le.v].distance+fe{A.exports=$;function $(O){var U={},Y=[],X;function C(D){Object.hasOwn(U,D)||(U[D]=!0,X.push(D),O.successors(D).forEach(C),O.predecessors(D).forEach(C))}return O.nodes().forEach(function(D){X=[],C(D),X.length&&Y.push(X)}),Y}}),x=s((V,A)=>{var $=class{constructor(){l(this,"_arr",[]),l(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(O){return O.key})}has(O){return Object.hasOwn(this._keyIndices,O)}priority(O){var U=this._keyIndices[O];if(U!==void 0)return this._arr[U].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(O,U){var Y=this._keyIndices;if(O=String(O),!Object.hasOwn(Y,O)){var X=this._arr,C=X.length;return Y[O]=C,X.push({key:O,priority:U}),this._decrease(C),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var O=this._arr.pop();return delete this._keyIndices[O.key],this._heapify(0),O.key}decrease(O,U){var Y=this._keyIndices[O];if(U>this._arr[Y].priority)throw new Error("New priority is greater than current priority. Key: "+O+" Old: "+this._arr[Y].priority+" New: "+U);this._arr[Y].priority=U,this._decrease(Y)}_heapify(O){var U=this._arr,Y=2*O,X=Y+1,C=O;Y>1,!(U[X].priority{var $=x();A.exports=U;var O=()=>1;function U(X,C,D,G){var L=function(F){return X.outEdges(F)};return Y(X,String(C),D||O,G||L)}function Y(X,C,D,G){var L={},F=new $,B,Q,J=function(W){var ee=W.v!==B?W.v:W.w,le=L[ee],fe=D(W),be=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be0&&(B=F.removeMin(),Q=L[B],Q.distance!==Number.POSITIVE_INFINITY);)G(B).forEach(J);return L}}),_=s((V,A)=>{var $=y();A.exports=O;function O(U,Y,X){return U.nodes().reduce(function(C,D){return C[D]=$(U,D,Y,X),C},{})}}),N=s((V,A)=>{A.exports=$;function $(U,Y,X){if(U[Y].predecessor!==void 0)throw new Error("Invalid source vertex");if(U[X].predecessor===void 0&&X!==Y)throw new Error("Invalid destination vertex");return{weight:U[X].distance,path:O(U,Y,X)}}function O(U,Y,X){for(var C=[],D=X;D!==Y;)C.push(D),D=U[D].predecessor;return C.push(Y),C.reverse()}}),S=s((V,A)=>{A.exports=$;function $(O){var U=0,Y=[],X={},C=[];function D(G){var L=X[G]={onStack:!0,lowlink:U,index:U++};if(Y.push(G),O.successors(G).forEach(function(Q){Object.hasOwn(X,Q)?X[Q].onStack&&(L.lowlink=Math.min(L.lowlink,X[Q].index)):(D(Q),L.lowlink=Math.min(L.lowlink,X[Q].lowlink))}),L.lowlink===L.index){var F=[],B;do B=Y.pop(),X[B].onStack=!1,F.push(B);while(G!==B);C.push(F)}}return O.nodes().forEach(function(G){Object.hasOwn(X,G)||D(G)}),C}}),w=s((V,A)=>{var $=S();A.exports=O;function O(U){return $(U).filter(function(Y){return Y.length>1||Y.length===1&&U.hasEdge(Y[0],Y[0])})}}),k=s((V,A)=>{A.exports=O;var $=()=>1;function O(Y,X,C){return U(Y,X||$,C||function(D){return Y.outEdges(D)})}function U(Y,X,C){var D={},G=Y.nodes();return G.forEach(function(L){D[L]={},D[L][L]={distance:0},G.forEach(function(F){L!==F&&(D[L][F]={distance:Number.POSITIVE_INFINITY})}),C(L).forEach(function(F){var B=F.v===L?F.w:F.v,Q=X(F);D[L][B]={distance:Q,predecessor:L}})}),G.forEach(function(L){var F=D[L];G.forEach(function(B){var Q=D[B];G.forEach(function(J){var W=Q[L],ee=F[J],le=Q[J],fe=W.distance+ee.distance;fe{function $(U){var Y={},X={},C=[];function D(G){if(Object.hasOwn(X,G))throw new O;Object.hasOwn(Y,G)||(X[G]=!0,Y[G]=!0,U.predecessors(G).forEach(D),delete X[G],C.push(G))}if(U.sinks().forEach(D),Object.keys(Y).length!==U.nodeCount())throw new O;return C}var O=class extends Error{constructor(){super(...arguments)}};A.exports=$,$.CycleException=O}),M=s((V,A)=>{var $=E();A.exports=O;function O(U){try{$(U)}catch(Y){if(Y instanceof $.CycleException)return!1;throw Y}return!0}}),z=s((V,A)=>{A.exports=$;function $(U,Y,X,C,D){Array.isArray(Y)||(Y=[Y]);var G=(U.isDirected()?U.successors:U.neighbors).bind(U),L={};return Y.forEach(function(F){if(!U.hasNode(F))throw new Error("Graph does not have node: "+F);D=O(U,F,X==="post",L,G,C,D)}),D}function O(U,Y,X,C,D,G,L){return Object.hasOwn(C,Y)||(C[Y]=!0,X||(L=G(L,Y)),D(Y).forEach(function(F){L=O(U,F,X,C,D,G,L)}),X&&(L=G(L,Y))),L}}),R=s((V,A)=>{var $=z();A.exports=O;function O(U,Y,X){return $(U,Y,X,function(C,D){return C.push(D),C},[])}}),H=s((V,A)=>{var $=R();A.exports=O;function O(U,Y){return $(U,Y,"post")}}),I=s((V,A)=>{var $=R();A.exports=O;function O(U,Y){return $(U,Y,"pre")}}),Z=s((V,A)=>{var $=c(),O=x();A.exports=U;function U(Y,X){var C=new $,D={},G=new O,L;function F(Q){var J=Q.v===L?Q.w:Q.v,W=G.priority(J);if(W!==void 0){var ee=X(Q);ee0;){if(L=G.removeMin(),Object.hasOwn(D,L))C.setEdge(L,D[L]);else{if(B)throw new Error("Input graph is not connected: "+Y);B=!0}Y.nodeEdges(L).forEach(F)}return C}}),j=s((V,A)=>{var $=y(),O=m();A.exports=U;function U(X,C,D,G){return Y(X,C,D,G||function(L){return X.outEdges(L)})}function Y(X,C,D,G){if(D===void 0)return $(X,C,D,G);for(var L=!1,F=X.nodes(),B=0;B{A.exports={bellmanFord:m(),components:p(),dijkstra:y(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:k(),isAcyclic:M(),postorder:H(),preorder:I(),prim:Z(),shortestPaths:j(),reduce:z(),tarjan:S(),topsort:E()}}),K=f();t.exports={Graph:K.Graph,json:h(),alg:q(),version:K.version}}),XB=vt((e,t)=>{var i=class{constructor(){let l={};l._next=l._prev=l,this._sentinel=l}dequeue(){let l=this._sentinel,c=l._prev;if(c!==l)return a(c),c}enqueue(l){let c=this._sentinel;l._prev&&l._next&&a(l),l._next=c._next,c._next._prev=l,c._next=l,l._prev=c}toString(){let l=[],c=this._sentinel,d=c._prev;for(;d!==c;)l.push(JSON.stringify(d,s)),d=d._prev;return"["+l.join(", ")+"]"}};function a(l){l._prev._next=l._next,l._next._prev=l._prev,delete l._next,delete l._prev}function s(l,c){if(l!=="_next"&&l!=="_prev")return c}t.exports=i}),KB=vt((e,t)=>{var i=Ri().Graph,a=XB();t.exports=l;var s=()=>1;function l(p,x){if(p.nodeCount()<=1)return[];let y=f(p,x||s);return c(y.graph,y.buckets,y.zeroIdx).flatMap(_=>p.outEdges(_.v,_.w))}function c(p,x,y){let _=[],N=x[x.length-1],S=x[0],w;for(;p.nodeCount();){for(;w=S.dequeue();)d(p,x,y,w);for(;w=N.dequeue();)d(p,x,y,w);if(p.nodeCount()){for(let k=x.length-2;k>0;--k)if(w=x[k].dequeue(),w){_=_.concat(d(p,x,y,w,!0));break}}}return _}function d(p,x,y,_,N){let S=N?[]:void 0;return p.inEdges(_.v).forEach(w=>{let k=p.edge(w),E=p.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=k,h(x,y,E)}),p.outEdges(_.v).forEach(w=>{let k=p.edge(w),E=w.w,M=p.node(E);M.in-=k,h(x,y,M)}),p.removeNode(_.v),S}function f(p,x){let y=new i,_=0,N=0;p.nodes().forEach(k=>{y.setNode(k,{v:k,in:0,out:0})}),p.edges().forEach(k=>{let E=y.edge(k.v,k.w)||0,M=x(k),z=E+M;y.setEdge(k.v,k.w,z),N=Math.max(N,y.node(k.v).out+=M),_=Math.max(_,y.node(k.w).in+=M)});let S=m(N+_+3).map(()=>new a),w=_+1;return y.nodes().forEach(k=>{h(S,w,y.node(k))}),{graph:y,buckets:S,zeroIdx:w}}function h(p,x,y){y.out?y.in?p[y.out-y.in+x].enqueue(y):p[p.length-1].enqueue(y):p[0].enqueue(y)}function m(p){let x=[];for(let y=0;y{var i=Ri().Graph;t.exports={addBorderNode:x,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:l,buildLayerMatrix:h,intersectRect:f,mapValues:I,maxRank:S,normalizeRanks:m,notime:E,partition:w,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:p,simplify:s,successorWeights:c,time:k,uniqueId:z,zipObject:Z};function a(j,q,K,V){for(var A=V;j.hasNode(A);)A=z(V);return K.dummy=q,j.setNode(A,K),A}function s(j){let q=new i().setGraph(j.graph());return j.nodes().forEach(K=>q.setNode(K,j.node(K))),j.edges().forEach(K=>{let V=q.edge(K.v,K.w)||{weight:0,minlen:1},A=j.edge(K);q.setEdge(K.v,K.w,{weight:V.weight+A.weight,minlen:Math.max(V.minlen,A.minlen)})}),q}function l(j){let q=new i({multigraph:j.isMultigraph()}).setGraph(j.graph());return j.nodes().forEach(K=>{j.children(K).length||q.setNode(K,j.node(K))}),j.edges().forEach(K=>{q.setEdge(K,j.edge(K))}),q}function c(j){let q=j.nodes().map(K=>{let V={};return j.outEdges(K).forEach(A=>{V[A.w]=(V[A.w]||0)+j.edge(A).weight}),V});return Z(j.nodes(),q)}function d(j){let q=j.nodes().map(K=>{let V={};return j.inEdges(K).forEach(A=>{V[A.v]=(V[A.v]||0)+j.edge(A).weight}),V});return Z(j.nodes(),q)}function f(j,q){let K=j.x,V=j.y,A=q.x-K,$=q.y-V,O=j.width/2,U=j.height/2;if(!A&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let Y,X;return Math.abs($)*O>Math.abs(A)*U?($<0&&(U=-U),Y=U*A/$,X=U):(A<0&&(O=-O),Y=O,X=O*$/A),{x:K+Y,y:V+X}}function h(j){let q=R(S(j)+1).map(()=>[]);return j.nodes().forEach(K=>{let V=j.node(K),A=V.rank;A!==void 0&&(q[A][V.order]=K)}),q}function m(j){let q=j.nodes().map(V=>{let A=j.node(V).rank;return A===void 0?Number.MAX_VALUE:A}),K=N(Math.min,q);j.nodes().forEach(V=>{let A=j.node(V);Object.hasOwn(A,"rank")&&(A.rank-=K)})}function p(j){let q=j.nodes().map(O=>j.node(O).rank).filter(O=>O!==void 0),K=N(Math.min,q),V=[];j.nodes().forEach(O=>{let U=j.node(O).rank-K;V[U]||(V[U]=[]),V[U].push(O)});let A=0,$=j.graph().nodeRankFactor;Array.from(V).forEach((O,U)=>{O===void 0&&U%$!==0?--A:O!==void 0&&A&&O.forEach(Y=>j.node(Y).rank+=A)})}function x(j,q,K,V){let A={width:0,height:0};return arguments.length>=4&&(A.rank=K,A.order=V),a(j,"border",A,q)}function y(j,q=_){let K=[];for(let V=0;V_){let K=y(q);return j.apply(null,K.map(V=>j.apply(null,V)))}else return j.apply(null,q)}function S(j){let q=j.nodes().map(K=>{let V=j.node(K).rank;return V===void 0?Number.MIN_VALUE:V});return N(Math.max,q)}function w(j,q){let K={lhs:[],rhs:[]};return j.forEach(V=>{q(V)?K.lhs.push(V):K.rhs.push(V)}),K}function k(j,q){let K=Date.now();try{return q()}finally{console.log(j+" time: "+(Date.now()-K)+"ms")}}function E(j,q){return q()}var M=0;function z(j){var q=++M;return j+(""+q)}function R(j,q,K=1){q==null&&(q=j,j=0);let V=$=>$q<$);let A=[];for(let $=j;V($);$+=K)A.push($);return A}function H(j,q){let K={};for(let V of q)j[V]!==void 0&&(K[V]=j[V]);return K}function I(j,q){let K=q;return typeof q=="string"&&(K=V=>V[q]),Object.entries(j).reduce((V,[A,$])=>(V[A]=K($,A),V),{})}function Z(j,q){return j.reduce((K,V,A)=>(K[V]=q[A],K),{})}}),ZB=vt((e,t)=>{var i=KB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,f(d)):l(d)).forEach(h=>{let m=d.edge(h);d.removeEdge(h),m.forwardName=h.name,m.reversed=!0,d.setEdge(h.w,h.v,m,a("rev"))});function f(h){return m=>h.edge(m).weight}}function l(d){let f=[],h={},m={};function p(x){Object.hasOwn(m,x)||(m[x]=!0,h[x]=!0,d.outEdges(x).forEach(y=>{Object.hasOwn(h,y.w)?f.push(y):p(y.w)}),delete h[x])}return d.nodes().forEach(p),f}function c(d){d.edges().forEach(f=>{let h=d.edge(f);if(h.reversed){d.removeEdge(f);let m=h.forwardName;delete h.reversed,delete h.forwardName,d.setEdge(f.w,f.v,h,m)}})}}),QB=vt((e,t)=>{var i=sn();t.exports={run:a,undo:l};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let f=d.v,h=c.node(f).rank,m=d.w,p=c.node(m).rank,x=d.name,y=c.edge(d),_=y.labelRank;if(p===h+1)return;c.removeEdge(d);let N,S,w;for(w=0,++h;h{let f=c.node(d),h=f.edgeLabel,m;for(c.setEdge(f.edgeObj,h);f.dummy;)m=c.successors(d)[0],c.removeNode(d),h.points.push({x:f.x,y:f.y}),f.dummy==="edge-label"&&(h.x=f.x,h.y=f.y,h.width=f.width,h.height=f.height),d=m,f=c.node(d)})}}),Cu=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(l){var c={};function d(f){var h=l.node(f);if(Object.hasOwn(c,f))return h.rank;c[f]=!0;let m=l.outEdges(f).map(x=>x==null?Number.POSITIVE_INFINITY:d(x.w)-l.edge(x).minlen);var p=i(Math.min,m);return p===Number.POSITIVE_INFINITY&&(p=0),h.rank=p}l.sources().forEach(d)}function s(l,c){return l.node(c.w).rank-l.node(c.v).rank-l.edge(c).minlen}}),LN=vt((e,t)=>{var i=Ri().Graph,a=Cu().slack;t.exports=s;function s(f){var h=new i({directed:!1}),m=f.nodes()[0],p=f.nodeCount();h.setNode(m,{});for(var x,y;l(h,f){var y=x.v,_=p===y?x.w:y;!f.hasNode(_)&&!a(h,x)&&(f.setNode(_,{}),f.setEdge(p,_,{}),m(_))})}return f.nodes().forEach(m),f.nodeCount()}function c(f,h){return h.edges().reduce((m,p)=>{let x=Number.POSITIVE_INFINITY;return f.hasNode(p.v)!==f.hasNode(p.w)&&(x=a(h,p)),xh.node(p).rank+=m)}}),WB=vt((e,t)=>{var i=LN(),a=Cu().slack,s=Cu().longestPath,l=Ri().alg.preorder,c=Ri().alg.postorder,d=sn().simplify;t.exports=f,f.initLowLimValues=x,f.initCutValues=h,f.calcCutValue=p,f.leaveEdge=_,f.enterEdge=N,f.exchangeEdges=S;function f(M){M=d(M),s(M);var z=i(M);x(z),h(z,M);for(var R,H;R=_(z);)H=N(z,M,R),S(z,M,R,H)}function h(M,z){var R=c(M,M.nodes());R=R.slice(0,R.length-1),R.forEach(H=>m(M,z,H))}function m(M,z,R){var H=M.node(R),I=H.parent;M.edge(R,I).cutvalue=p(M,z,R)}function p(M,z,R){var H=M.node(R),I=H.parent,Z=!0,j=z.edge(R,I),q=0;return j||(Z=!1,j=z.edge(I,R)),q=j.weight,z.nodeEdges(R).forEach(K=>{var V=K.v===R,A=V?K.w:K.v;if(A!==I){var $=V===Z,O=z.edge(K).weight;if(q+=$?O:-O,k(M,R,A)){var U=M.edge(R,A).cutvalue;q+=$?-U:U}}}),q}function x(M,z){arguments.length<2&&(z=M.nodes()[0]),y(M,{},1,z)}function y(M,z,R,H,I){var Z=R,j=M.node(H);return z[H]=!0,M.neighbors(H).forEach(q=>{Object.hasOwn(z,q)||(R=y(M,z,R,q,H))}),j.low=Z,j.lim=R++,I?j.parent=I:delete j.parent,R}function _(M){return M.edges().find(z=>M.edge(z).cutvalue<0)}function N(M,z,R){var H=R.v,I=R.w;z.hasEdge(H,I)||(H=R.w,I=R.v);var Z=M.node(H),j=M.node(I),q=Z,K=!1;Z.lim>j.lim&&(q=j,K=!0);var V=z.edges().filter(A=>K===E(M,M.node(A.v),q)&&K!==E(M,M.node(A.w),q));return V.reduce((A,$)=>a(z,$)!z.node(I).parent),H=l(M,R);H=H.slice(1),H.forEach(I=>{var Z=M.node(I).parent,j=z.edge(I,Z),q=!1;j||(j=z.edge(Z,I),q=!0),z.node(I).rank=z.node(Z).rank+(q?j.minlen:-j.minlen)})}function k(M,z,R){return M.hasEdge(z,R)}function E(M,z,R){return R.low<=z.lim&&z.lim<=R.lim}}),JB=vt((e,t)=>{var i=Cu(),a=i.longestPath,s=LN(),l=WB();t.exports=c;function c(m){var p=m.graph().ranker;if(p instanceof Function)return p(m);switch(m.graph().ranker){case"network-simplex":h(m);break;case"tight-tree":f(m);break;case"longest-path":d(m);break;case"none":break;default:h(m)}}var d=a;function f(m){a(m),s(m)}function h(m){l(m)}}),e9=vt((e,t)=>{t.exports=i;function i(l){let c=s(l);l.graph().dummyChains.forEach(d=>{let f=l.node(d),h=f.edgeObj,m=a(l,c,h.v,h.w),p=m.path,x=m.lca,y=0,_=p[y],N=!0;for(;d!==h.w;){if(f=l.node(d),N){for(;(_=p[y])!==x&&l.node(_).maxRankp||x>c[y].lim));for(_=y,y=f;(y=l.parent(y))!==_;)m.push(y);return{path:h.concat(m.reverse()),lca:_}}function s(l){let c={},d=0;function f(h){let m=d;l.children(h).forEach(f),c[h]={low:m,lim:d++}}return l.children().forEach(f),c}}),t9=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(f){let h=i.addDummyNode(f,"root",{},"_root"),m=l(f),p=Object.values(m),x=i.applyWithChunking(Math.max,p)-1,y=2*x+1;f.graph().nestingRoot=h,f.edges().forEach(N=>f.edge(N).minlen*=y);let _=c(f)+1;f.children().forEach(N=>s(f,h,y,_,x,m,N)),f.graph().nodeRankFactor=y}function s(f,h,m,p,x,y,_){let N=f.children(_);if(!N.length){_!==h&&f.setEdge(h,_,{weight:0,minlen:m});return}let S=i.addBorderNode(f,"_bt"),w=i.addBorderNode(f,"_bb"),k=f.node(_);f.setParent(S,_),k.borderTop=S,f.setParent(w,_),k.borderBottom=w,N.forEach(E=>{s(f,h,m,p,x,y,E);let M=f.node(E),z=M.borderTop?M.borderTop:E,R=M.borderBottom?M.borderBottom:E,H=M.borderTop?p:2*p,I=z!==R?1:x-y[_]+1;f.setEdge(S,z,{weight:H,minlen:I,nestingEdge:!0}),f.setEdge(R,w,{weight:H,minlen:I,nestingEdge:!0})}),f.parent(_)||f.setEdge(h,S,{weight:0,minlen:x+y[_]})}function l(f){var h={};function m(p,x){var y=f.children(p);y&&y.length&&y.forEach(_=>m(_,x+1)),h[p]=x}return f.children().forEach(p=>m(p,1)),h}function c(f){return f.edges().reduce((h,m)=>h+f.edge(m).weight,0)}function d(f){var h=f.graph();f.removeNode(h.nestingRoot),delete h.nestingRoot,f.edges().forEach(m=>{var p=f.edge(m);p.nestingEdge&&f.removeEdge(m)})}}),n9=vt((e,t)=>{var i=sn();t.exports=a;function a(l){function c(d){let f=l.children(d),h=l.node(d);if(f.length&&f.forEach(c),Object.hasOwn(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(let m=h.minRank,p=h.maxRank+1;m{t.exports={adjust:i,undo:a};function i(m){let p=m.graph().rankdir.toLowerCase();(p==="lr"||p==="rl")&&s(m)}function a(m){let p=m.graph().rankdir.toLowerCase();(p==="bt"||p==="rl")&&c(m),(p==="lr"||p==="rl")&&(f(m),s(m))}function s(m){m.nodes().forEach(p=>l(m.node(p))),m.edges().forEach(p=>l(m.edge(p)))}function l(m){let p=m.width;m.width=m.height,m.height=p}function c(m){m.nodes().forEach(p=>d(m.node(p))),m.edges().forEach(p=>{let x=m.edge(p);x.points.forEach(d),Object.hasOwn(x,"y")&&d(x)})}function d(m){m.y=-m.y}function f(m){m.nodes().forEach(p=>h(m.node(p))),m.edges().forEach(p=>{let x=m.edge(p);x.points.forEach(h),Object.hasOwn(x,"x")&&h(x)})}function h(m){let p=m.x;m.x=m.y,m.y=p}}),r9=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let l={},c=s.nodes().filter(p=>!s.children(p).length),d=c.map(p=>s.node(p).rank),f=i.applyWithChunking(Math.max,d),h=i.range(f+1).map(()=>[]);function m(p){if(l[p])return;l[p]=!0;let x=s.node(p);h[x.rank].push(p),s.successors(p).forEach(m)}return c.sort((p,x)=>s.node(p).rank-s.node(x).rank).forEach(m),h}}),a9=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(l,c){let d=0;for(let f=1;fN)),h=c.flatMap(_=>l.outEdges(_).map(N=>({pos:f[N.w],weight:l.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),m=1;for(;m{let N=_.pos+m;x[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=x[N+1]),N=N-1>>1,x[N]+=_.weight;y+=_.weight*S}),y}}),s9=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(l=>{let c=a.inEdges(l);if(c.length){let d=c.reduce((f,h)=>{let m=a.edge(h),p=a.node(h.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:l,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:l}})}}),o9=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let f={};c.forEach((m,p)=>{let x=f[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};m.barycenter!==void 0&&(x.barycenter=m.barycenter,x.weight=m.weight)}),d.edges().forEach(m=>{let p=f[m.v],x=f[m.w];p!==void 0&&x!==void 0&&(x.indegree++,p.out.push(f[m.w]))});let h=Object.values(f).filter(m=>!m.indegree);return s(h)}function s(c){let d=[];function f(m){return p=>{p.merged||(p.barycenter===void 0||m.barycenter===void 0||p.barycenter>=m.barycenter)&&l(m,p)}}function h(m){return p=>{p.in.push(m),--p.indegree===0&&c.push(p)}}for(;c.length;){let m=c.pop();d.push(m),m.in.reverse().forEach(f(m)),m.out.forEach(h(m))}return d.filter(m=>!m.merged).map(m=>i.pick(m,["vs","i","barycenter","weight"]))}function l(c,d){let f=0,h=0;c.weight&&(f+=c.barycenter*c.weight,h+=c.weight),d.weight&&(f+=d.barycenter*d.weight,h+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=f/h,c.weight=h,c.i=Math.min(d.i,c.i),d.merged=!0}}),l9=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let f=i.partition(c,S=>Object.hasOwn(S,"barycenter")),h=f.lhs,m=f.rhs.sort((S,w)=>w.i-S.i),p=[],x=0,y=0,_=0;h.sort(l(!!d)),_=s(p,m,_),h.forEach(S=>{_+=S.vs.length,p.push(S.vs),x+=S.barycenter*S.weight,y+=S.weight,_=s(p,m,_)});let N={vs:p.flat(!0)};return y&&(N.barycenter=x/y,N.weight=y),N}function s(c,d,f){let h;for(;d.length&&(h=d[d.length-1]).i<=f;)d.pop(),c.push(h.vs),f++;return f}function l(c){return(d,f)=>d.barycenterf.barycenter?1:c?f.i-d.i:d.i-f.i}}),c9=vt((e,t)=>{var i=s9(),a=o9(),s=l9();t.exports=l;function l(f,h,m,p){let x=f.children(h),y=f.node(h),_=y?y.borderLeft:void 0,N=y?y.borderRight:void 0,S={};_&&(x=x.filter(M=>M!==_&&M!==N));let w=i(f,x);w.forEach(M=>{if(f.children(M.v).length){let z=l(f,M.v,m,p);S[M.v]=z,Object.hasOwn(z,"barycenter")&&d(M,z)}});let k=a(w,m);c(k,S);let E=s(k,p);if(_&&(E.vs=[_,E.vs,N].flat(!0),f.predecessors(_).length)){let M=f.node(f.predecessors(_)[0]),z=f.node(f.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+M.order+z.order)/(E.weight+2),E.weight+=2}return E}function c(f,h){f.forEach(m=>{m.vs=m.vs.flatMap(p=>h[p]?h[p].vs:p)})}function d(f,h){f.barycenter!==void 0?(f.barycenter=(f.barycenter*f.weight+h.barycenter*h.weight)/(f.weight+h.weight),f.weight+=h.weight):(f.barycenter=h.barycenter,f.weight=h.weight)}}),u9=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports=s;function s(c,d,f,h){h||(h=c.nodes());let m=l(c),p=new i({compound:!0}).setGraph({root:m}).setDefaultNodeLabel(x=>c.node(x));return h.forEach(x=>{let y=c.node(x),_=c.parent(x);(y.rank===d||y.minRank<=d&&d<=y.maxRank)&&(p.setNode(x),p.setParent(x,_||m),c[f](x).forEach(N=>{let S=N.v===x?N.w:N.v,w=p.edge(S,x),k=w!==void 0?w.weight:0;p.setEdge(S,x,{weight:c.edge(N).weight+k})}),Object.hasOwn(y,"minRank")&&p.setNode(x,{borderLeft:y.borderLeft[d],borderRight:y.borderRight[d]}))}),p}function l(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),d9=vt((e,t)=>{t.exports=i;function i(a,s,l){let c={},d;l.forEach(f=>{let h=a.parent(f),m,p;for(;h;){if(m=a.parent(h),m?(p=c[m],c[m]=h):(p=d,d=h),p&&p!==h){s.setEdge(p,h);return}h=m}})}}),f9=vt((e,t)=>{var i=r9(),a=a9(),s=c9(),l=u9(),c=d9(),d=Ri().Graph,f=sn();t.exports=h;function h(y,_={}){if(typeof _.customOrder=="function"){_.customOrder(y,h);return}let N=f.maxRank(y),S=m(y,f.range(1,N+1),"inEdges"),w=m(y,f.range(N-1,-1,-1),"outEdges"),k=i(y);if(x(y,k),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,M,z=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){p(R%2?S:w,R%4>=2,z),k=f.buildLayerMatrix(y);let I=a(y,k);I{S.has(k)||S.set(k,[]),S.get(k).push(E)};for(let k of y.nodes()){let E=y.node(k);if(typeof E.rank=="number"&&w(E.rank,k),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let M=E.minRank;M<=E.maxRank;M++)M!==E.rank&&w(M,k)}return _.map(function(k){return l(y,k,N,S.get(k)||[])})}function p(y,_,N){let S=new d;y.forEach(function(w){N.forEach(M=>S.setEdge(M.left,M.right));let k=w.graph().root,E=s(w,k,S,_);E.vs.forEach((M,z)=>w.node(M).order=z),c(w,S,E.vs)})}function x(y,_){Object.values(_).forEach(N=>N.forEach((S,w)=>y.node(S).order=w))}}),h9=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:l,addConflict:d,hasConflict:f,verticalAlignment:h,horizontalCompaction:m,alignCoordinates:y,findSmallestWidthAlignment:x,balance:_};function s(k,E){let M={};function z(R,H){let I=0,Z=0,j=R.length,q=H[H.length-1];return H.forEach((K,V)=>{let A=c(k,K),$=A?k.node(A).order:j;(A||K===q)&&(H.slice(Z,V+1).forEach(O=>{k.predecessors(O).forEach(U=>{let Y=k.node(U),X=Y.order;(X{K=H[V],k.node(K).dummy&&k.predecessors(K).forEach(A=>{let $=k.node(A);$.dummy&&($.orderq)&&d(M,A,K)})})}function R(H,I){let Z=-1,j,q=0;return I.forEach((K,V)=>{if(k.node(K).dummy==="border"){let A=k.predecessors(K);A.length&&(j=k.node(A[0]).order,z(I,q,V,Z,j),q=V,Z=j)}z(I,q,I.length,j,H.length)}),I}return E.length&&E.reduce(R),M}function c(k,E){if(k.node(E).dummy)return k.predecessors(E).find(M=>k.node(M).dummy)}function d(k,E,M){if(E>M){let R=E;E=M,M=R}let z=k[E];z||(k[E]=z={}),z[M]=!0}function f(k,E,M){if(E>M){let z=E;E=M,M=z}return!!k[E]&&Object.hasOwn(k[E],M)}function h(k,E,M,z){let R={},H={},I={};return E.forEach(Z=>{Z.forEach((j,q)=>{R[j]=j,H[j]=j,I[j]=q})}),E.forEach(Z=>{let j=-1;Z.forEach(q=>{let K=z(q);if(K.length){K=K.sort((A,$)=>I[A]-I[$]);let V=(K.length-1)/2;for(let A=Math.floor(V),$=Math.ceil(V);A<=$;++A){let O=K[A];H[q]===q&&jMath.max(A,H[$.v]+I.edge($)),0)}function K(V){let A=I.outEdges(V).reduce((O,U)=>Math.min(O,H[U.w]-I.edge(U)),Number.POSITIVE_INFINITY),$=k.node(V);A!==Number.POSITIVE_INFINITY&&$.borderType!==Z&&(H[V]=Math.max(H[V],A))}return j(q,I.predecessors.bind(I)),j(K,I.successors.bind(I)),Object.keys(z).forEach(V=>H[V]=H[M[V]]),H}function p(k,E,M,z){let R=new i,H=k.graph(),I=S(H.nodesep,H.edgesep,z);return E.forEach(Z=>{let j;Z.forEach(q=>{let K=M[q];if(R.setNode(K),j){var V=M[j],A=R.edge(V,K);R.setEdge(V,K,Math.max(I(k,q,j),A||0))}j=q})}),R}function x(k,E){return Object.values(E).reduce((M,z)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(z).forEach(([Z,j])=>{let q=w(k,Z)/2;R=Math.max(j+q,R),H=Math.min(j-q,H)});let I=R-H;return I{["l","r"].forEach(I=>{let Z=H+I,j=k[Z];if(j===E)return;let q=Object.values(j),K=z-a.applyWithChunking(Math.min,q);I!=="l"&&(K=R-a.applyWithChunking(Math.max,q)),K&&(k[Z]=a.mapValues(j,V=>V+K))})})}function _(k,E){return a.mapValues(k.ul,(M,z)=>{if(E)return k[E.toLowerCase()][z];{let R=Object.values(k).map(H=>H[z]).sort((H,I)=>H-I);return(R[1]+R[2])/2}})}function N(k){let E=a.buildLayerMatrix(k),M=Object.assign(s(k,E),l(k,E)),z={},R;["u","d"].forEach(I=>{R=I==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Z=>{Z==="r"&&(R=R.map(V=>Object.values(V).reverse()));let j=(I==="u"?k.predecessors:k.successors).bind(k),q=h(k,R,M,j),K=m(k,R,q.root,q.align,Z==="r");Z==="r"&&(K=a.mapValues(K,V=>-V)),z[I+Z]=K})});let H=x(k,z);return y(z,H),_(z,k.graph().align)}function S(k,E,M){return(z,R,H)=>{let I=z.node(R),Z=z.node(H),j=0,q;if(j+=I.width/2,Object.hasOwn(I,"labelpos"))switch(I.labelpos.toLowerCase()){case"l":q=-I.width/2;break;case"r":q=I.width/2;break}if(q&&(j+=M?q:-q),q=0,j+=(I.dummy?E:k)/2,j+=(Z.dummy?E:k)/2,j+=Z.width/2,Object.hasOwn(Z,"labelpos"))switch(Z.labelpos.toLowerCase()){case"l":q=Z.width/2;break;case"r":q=-Z.width/2;break}return q&&(j+=M?q:-q),q=0,j}}function w(k,E){return k.node(E).width}}),m9=vt((e,t)=>{var i=sn(),a=h9().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),l(c),Object.entries(a(c)).forEach(([d,f])=>c.node(d).x=f)}function l(c){let d=i.buildLayerMatrix(c),f=c.graph().ranksep,h=c.graph().rankalign,m=0;d.forEach(p=>{let x=p.reduce((y,_)=>{let N=c.node(_).height;return y>N?y:N},0);p.forEach(y=>{let _=c.node(y);h==="top"?_.y=m+_.height/2:h==="bottom"?_.y=m+x-_.height/2:_.y=m+x/2}),m+=x+f})}}),p9=vt((e,t)=>{var i=ZB(),a=QB(),s=JB(),l=sn().normalizeRanks,c=e9(),d=sn().removeEmptyRanks,f=t9(),h=n9(),m=i9(),p=f9(),x=m9(),y=sn(),_=Ri().Graph;t.exports=N;function N(B,Q={}){let J=Q.debugTiming?y.time:y.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>j(B));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>w(B,W)),W})}function S(B,Q,J){Q(" makeSpaceForEdgeLabels",()=>q(B)),Q(" removeSelfEdges",()=>C(B)),Q(" acyclic",()=>i.run(B)),Q(" nestingGraph.run",()=>f.run(B)),Q(" rank",()=>s(y.asNonCompoundGraph(B))),Q(" injectEdgeLabelProxies",()=>K(B)),Q(" removeEmptyRanks",()=>d(B)),Q(" nestingGraph.cleanup",()=>f.cleanup(B)),Q(" normalizeRanks",()=>l(B)),Q(" assignRankMinMax",()=>V(B)),Q(" removeEdgeLabelProxies",()=>A(B)),Q(" normalize.run",()=>a.run(B)),Q(" parentDummyChains",()=>c(B)),Q(" addBorderSegments",()=>h(B)),Q(" order",()=>p(B,J)),Q(" insertSelfEdges",()=>D(B)),Q(" adjustCoordinateSystem",()=>m.adjust(B)),Q(" position",()=>x(B)),Q(" positionSelfEdges",()=>G(B)),Q(" removeBorderNodes",()=>X(B)),Q(" normalize.undo",()=>a.undo(B)),Q(" fixupEdgeLabelCoords",()=>U(B)),Q(" undoCoordinateSystem",()=>m.undo(B)),Q(" translateGraph",()=>$(B)),Q(" assignNodeIntersects",()=>O(B)),Q(" reversePoints",()=>Y(B)),Q(" acyclic.undo",()=>i.undo(B))}function w(B,Q){B.nodes().forEach(J=>{let W=B.node(J),ee=Q.node(J);W&&(W.x=ee.x,W.y=ee.y,W.order=ee.order,W.rank=ee.rank,Q.children(J).length&&(W.width=ee.width,W.height=ee.height))}),B.edges().forEach(J=>{let W=B.edge(J),ee=Q.edge(J);W.points=ee.points,Object.hasOwn(ee,"x")&&(W.x=ee.x,W.y=ee.y)}),B.graph().width=Q.graph().width,B.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},M=["acyclicer","ranker","rankdir","align","rankalign"],z=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],I={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Z=["labelpos"];function j(B){let Q=new _({multigraph:!0,compound:!0}),J=F(B.graph());return Q.setGraph(Object.assign({},E,L(J,k),y.pick(J,M))),B.nodes().forEach(W=>{let ee=F(B.node(W)),le=L(ee,z);Object.keys(R).forEach(fe=>{le[fe]===void 0&&(le[fe]=R[fe])}),Q.setNode(W,le),Q.setParent(W,B.parent(W))}),B.edges().forEach(W=>{let ee=F(B.edge(W));Q.setEdge(W,Object.assign({},I,L(ee,H),y.pick(ee,Z)))}),Q}function q(B){let Q=B.graph();Q.ranksep/=2,B.edges().forEach(J=>{let W=B.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function K(B){B.edges().forEach(Q=>{let J=B.edge(Q);if(J.width&&J.height){let W=B.node(Q.v),ee={rank:(B.node(Q.w).rank-W.rank)/2+W.rank,e:Q};y.addDummyNode(B,"edge-proxy",ee,"_ep")}})}function V(B){let Q=0;B.nodes().forEach(J=>{let W=B.node(J);W.borderTop&&(W.minRank=B.node(W.borderTop).rank,W.maxRank=B.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),B.graph().maxRank=Q}function A(B){B.nodes().forEach(Q=>{let J=B.node(Q);J.dummy==="edge-proxy"&&(B.edge(J.e).labelRank=J.rank,B.removeNode(Q))})}function $(B){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,ee=0,le=B.graph(),fe=le.marginx||0,be=le.marginy||0;function we(Ne){let Le=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;Q=Math.min(Q,Le-st/2),J=Math.max(J,Le+st/2),W=Math.min(W,$e-Rt/2),ee=Math.max(ee,$e+Rt/2)}B.nodes().forEach(Ne=>we(B.node(Ne))),B.edges().forEach(Ne=>{let Le=B.edge(Ne);Object.hasOwn(Le,"x")&&we(Le)}),Q-=fe,W-=be,B.nodes().forEach(Ne=>{let Le=B.node(Ne);Le.x-=Q,Le.y-=W}),B.edges().forEach(Ne=>{let Le=B.edge(Ne);Le.points.forEach($e=>{$e.x-=Q,$e.y-=W}),Object.hasOwn(Le,"x")&&(Le.x-=Q),Object.hasOwn(Le,"y")&&(Le.y-=W)}),le.width=J-Q+fe,le.height=ee-W+be}function O(B){B.edges().forEach(Q=>{let J=B.edge(Q),W=B.node(Q.v),ee=B.node(Q.w),le,fe;J.points?(le=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],le=ee,fe=W),J.points.unshift(y.intersectRect(W,le)),J.points.push(y.intersectRect(ee,fe))})}function U(B){B.edges().forEach(Q=>{let J=B.edge(Q);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function Y(B){B.edges().forEach(Q=>{let J=B.edge(Q);J.reversed&&J.points.reverse()})}function X(B){B.nodes().forEach(Q=>{if(B.children(Q).length){let J=B.node(Q),W=B.node(J.borderTop),ee=B.node(J.borderBottom),le=B.node(J.borderLeft[J.borderLeft.length-1]),fe=B.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-le.x),J.height=Math.abs(ee.y-W.y),J.x=le.x+J.width/2,J.y=W.y+J.height/2}}),B.nodes().forEach(Q=>{B.node(Q).dummy==="border"&&B.removeNode(Q)})}function C(B){B.edges().forEach(Q=>{if(Q.v===Q.w){var J=B.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:B.edge(Q)}),B.removeEdge(Q)}})}function D(B){var Q=y.buildLayerMatrix(B);Q.forEach(J=>{var W=0;J.forEach((ee,le)=>{var fe=B.node(ee);fe.order=le+W,(fe.selfEdges||[]).forEach(be=>{y.addDummyNode(B,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:le+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function G(B){B.nodes().forEach(Q=>{var J=B.node(Q);if(J.dummy==="selfedge"){var W=B.node(J.e.v),ee=W.x+W.width/2,le=W.y,fe=J.x-ee,be=W.height/2;B.setEdge(J.e,J.label),B.removeNode(Q),J.label.points=[{x:ee+2*fe/3,y:le-be},{x:ee+5*fe/6,y:le-be},{x:ee+fe,y:le},{x:ee+5*fe/6,y:le+be},{x:ee+2*fe/3,y:le+be}],J.label.x=J.x,J.label.y=J.y}})}function L(B,Q){return y.mapValues(y.pick(B,Q),Number)}function F(B){var Q={};return B&&Object.entries(B).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),g9=vt((e,t)=>{var i=sn(),a=Ri().Graph;t.exports={debugOrdering:s};function s(l){let c=i.buildLayerMatrix(l),d=new a({compound:!0,multigraph:!0}).setGraph({});return l.nodes().forEach(f=>{d.setNode(f,{label:f}),d.setParent(f,"layer"+l.node(f).rank)}),l.edges().forEach(f=>d.setEdge(f.v,f.w,{},f.name)),c.forEach((f,h)=>{let m="layer"+h;d.setNode(m,{rank:"same"}),f.reduce((p,x)=>(d.setEdge(p,x,{style:"invis"}),x))}),d}}),b9=vt((e,t)=>{t.exports="2.0.4"}),x9=vt((e,t)=>{t.exports={graphlib:Ri(),layout:p9(),debug:g9(),util:{time:sn().time,notime:sn().notime},version:b9()}});const j1=x9();/*! For license information please see dagre.esm.js.LEGAL.txt */const z1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function y9({data:e,selected:t}){const i=e;return g.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${i.isSelected||t?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[g.jsx(Gs,{type:"target",position:ze.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[g.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${z1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),g.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${z1[i.status]??"bg-gray-500"}`})]}),g.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),g.jsx(Gs,{type:"source",position:ze.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.children&&i.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const v9=ie.memo(y9);function Ko({w:e=24}){return g.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),g.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),g.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Ts(){return g.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function I1({count:e}){return g.jsx("div",{className:"relative flex justify-center",children:g.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function _9(){return g.jsx("div",{className:"h-full bg-black overflow-hidden",children:g.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[g.jsx(Ko,{w:20}),g.jsx(Ts,{}),g.jsx(I1,{count:3}),g.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(Ts,{}),g.jsx(Ko,{w:e})]},t))}),g.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(Ts,{}),g.jsx(I1,{count:2}),g.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(Ts,{}),g.jsx(Ko,{w:e})]},t))})]}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(Ts,{}),g.jsx(Ko,{w:18}),g.jsx(Ts,{}),g.jsx(Ko,{w:12})]}),g.jsx("div",{className:"w-[180px]"})]})]})})}const Jm=260,ep=80,w9={agentNode:v9};function E9(e,t){const i=new j1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[l,c]of e)if(i.setNode(l,{width:Jm,height:ep}),a.push({id:l,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:l===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${l}`;i.setEdge(c.parentId,l),s.push({id:d,source:c.parentId,target:l,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}j1.layout(i);for(const l of a){const c=i.node(l.id);c&&(l.position={x:c.x-Jm/2,y:c.y-ep/2})}return{nodes:a,edges:s}}const vm=300;function N9({nodes:e}){const{setCenter:t}=Cl(),i=ie.useRef(!1);return ie.useEffect(()=>{if(e.length>0&&!i.current){const s=e.find(d=>!d.data.parentId)??e[0];i.current=!0;const l=s.position.x+Jm/2,c=s.position.y+ep/2;setTimeout(()=>t(l,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function S9(){const{zoomIn:e,zoomOut:t,fitView:i}=Cl();return g.jsx(MB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:g.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[g.jsx("button",{onClick:()=>e({duration:vm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M12 5v14M5 12h14"})})}),g.jsx("button",{onClick:()=>t({duration:vm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M5 12h14"})})}),g.jsx("button",{onClick:()=>i({padding:.3,duration:vm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function k9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:l}){const[c,d,f]=bB([]),[h,m,p]=xB([]);ie.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=E9(e,t);d(S),m(w)},[e.size,d,m]),ie.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const k=e.get(w.id);return k?{...w,data:{...k,isSelected:w.id===t}}:w}))},[e,t,d]);const x=ie.useRef(!1),y=ie.useCallback((S,w)=>{x.current=!0,i(w.id)},[i]),_=ie.useCallback(()=>{if(x.current){x.current=!1;return}i(null)},[i]);if(e.size===0&&a&&s)return g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[g.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:l?g.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):g.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),g.jsx("p",{className:"text-sm text-[#555]",children:l?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return g.jsxs("div",{className:"relative h-full",children:[g.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:g.jsx(_9,{})}),g.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:g.jsxs(gB,{nodes:c,edges:h,onNodesChange:f,onEdgesChange:p,onNodeClick:y,onPaneClick:_,nodeTypes:w9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[g.jsx(EB,{color:"#111",gap:20}),g.jsx(N9,{nodes:c}),g.jsx(S9,{}),g.jsx(FB,{position:"bottom-left",nodeColor:S=>{var k;const w=(k=S.data)==null?void 0:k.status;return w==="running"?"#3b82f6":w==="completed"?"#10b981":w==="failed"||w==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Os({text:e,className:t=""}){return g.jsx("div",{className:`prose-markdown ${t}`,children:g.jsx(Ap,{remarkPlugins:[Rp],rehypePlugins:[Dp],components:Lp,children:e})})}const B1=6,U1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=ie.useState(!1),l=e.trimEnd().split(` +`).length>t;return g.jsxs("div",{children:[g.jsx("div",{className:i&&l?"max-h-[1200px] overflow-auto":"",style:!i&&l?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:g.jsx(Os,{text:e})}),l&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function yr({children:e,className:t=""}){const[i,a]=ie.useState(!1),l=typeof e=="string"?e.trimEnd().split(` +`):null,c=l!==null&&l.length>B1,d=c&&!i?l.slice(0,B1).join(` +`):e;return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${i?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${t}`,children:d}),c&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function Jp({code:e,language:t,className:i="",collapsible:a=!1}){const[s,l]=ie.useState(!1),c=e.trimEnd().split(` +`),d=a&&c.length>U1,f=d&&!s?c.slice(0,U1).join(` +`):e;let h;try{h=t?Fn.highlight(f,{language:t,ignoreIllegals:!0}).value:Fn.highlightAuto(f).value}catch{h=Fn.highlightAuto(f).value}return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?s?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${i}`,children:g.jsx("code",{dangerouslySetInnerHTML:{__html:h}})}),d&&g.jsx("button",{onClick:()=>l(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const T9=50,H1=200,$1=25,q1=24,A9=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],C9=/^Chunk ID: [0-9a-f]+\s*$/,M9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function O9(e){const t=[];for(let i=0;is.test(e[a]));)a++;aH1?e.slice(0,H1-3)+"...":e}function D9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of A9)i=i.replace(a,"");if(i.trim()){const a=O9(i.split(` +`)),s=[];for(const l of a)s.length===0&&!l.trim()||/^\[STRIX_\d+\]\$\s*/.test(l)||t&&l.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${R9(t.trim())}\\s*$`).test(l)||s.push(l);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(` +`)}return i.trim()}function L9(e){const t=e.split(` +`);if(t.length<=T9)return t.map(_m).join(` +`);const i=t.length-$1-q1;return[...t.slice(0,$1).map(_m),`... ${i} lines truncated ...`,...t.slice(-q1).map(_m)].join(` +`)}function j9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",l=i;let c=null,d=null,f=null;if(l&&typeof l=="object"){c=typeof l.content=="string"?l.content:null,d=typeof l.error=="string"?l.error:null,f=typeof l.exit_code=="number"?l.exit_code:null;const m=typeof l.status=="string"?l.status:"";(m==="running"||m==="command still running")&&(c=null)}else typeof l=="string"&&(c=l);const h=c?L9(D9(c,s)):null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&g.jsx(Jp,{code:s,language:"bash",collapsible:!0}),d&&g.jsx(yr,{className:"text-red-400/70",children:d}),h&&g.jsx(yr,{className:"text-[#666]",children:h}),f!=null&&f!==0&&g.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",f]})]})}const P1={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},F1={click:"clicking",double_click:"double clicking",hover:"hovering"};function wm({prefix:e,url:t,suffix:i}){return g.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&g.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),i]})}function z9(e){const t=e.action??"",i=e.url??void 0;if(t in P1)return P1[t];if(t==="launch")return i?g.jsx(wm,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return g.jsx(wm,{prefix:"navigating to ",url:i});if(t==="new_tab")return g.jsx(wm,{prefix:"opening tab ",url:i});if(t in F1)return F1[t];if(t==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(t==="press_key"||t==="key_press")return`pressing key ${e.key??""}`;if(t==="save_pdf"||t==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return t==="execute_js"?"executing javascript":t||"browser action"}function I9({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=z9(e);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),g.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&g.jsx(Jp,{code:i,language:"javascript",collapsible:!0})]})}function eg(e){return e.length>60?"..."+e.slice(-57):e}const iu=30;function B9({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",l=t.new_str??"",c=t.regex??"";let d;e==="list_files"?d="list":e==="search_files"?d="search":a==="view"?d="view":a==="create"?d="create":a==="str_replace"?d="edit":a==="undo_edit"?d="undo":a==="insert"?d="insert":d="file";const f=i?eg(i):"",h=c?` /${c}/`:"",m=s?s.split(` +`):[],p=l?l.split(` +`):[],x=m.length+p.length,y=x>iu,_=y?Math.round(iu*(m.length/x)):m.length,N=y?iu-_:p.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),f&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:f})]}),h&&g.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:h}),(s||l)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[m.slice(0,_).map((S,w)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),p.slice(0,N).map((S,w)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),y&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",x-iu," more lines"]})]})]})}const ru=30,U9="*** Begin Patch",H9="*** End Patch",G1="*** Add File: ",V1="*** Update File: ",Y1="*** Delete File: ",$9={add:"create",update:"edit",delete:"delete"};function q9(e){const t=e.patch;return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.patch=="string"?t.patch:typeof e.input=="string"?e.input:""}function P9(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(` +`))if(!(s===U9||s===H9))if(s.startsWith(G1))a(),i={kind:"add",path:s.slice(G1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(V1))a(),i={kind:"update",path:s.slice(V1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(Y1))a(),i={kind:"delete",path:s.slice(Y1.length).trim(),oldLines:[],newLines:[]};else if((i==null?void 0:i.kind)==="update"){if(s.startsWith("@@"))continue;s.startsWith("-")&&!s.startsWith("---")?i.oldLines.push(s.slice(1)):s.startsWith("+")&&!s.startsWith("+++")&&i.newLines.push(s.slice(1))}else(i==null?void 0:i.kind)==="add"&&(s.startsWith("+")?i.newLines.push(s.slice(1)):s.trim()&&i.newLines.push(s));return a(),t}function F9({op:e}){const t=$9[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>ru,s=a&&i>0?Math.round(ru*(e.oldLines.length/i)):e.oldLines.length,l=a?ru-s:e.newLines.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:eg(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,l).map((c,d)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-ru," more lines"]})]})]})}function G9({args:e,result:t,status:i}){const a=P9(q9(e));return a.length===0?g.jsxs("div",{children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):g.jsxs("div",{className:"space-y-2",children:[a.map((s,l)=>g.jsx(F9,{op:s},l)),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function V9({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const l=a.trim();l&&!l.toLowerCase().startsWith("data:image/")&&!l.startsWith("{")&&(s=l)}return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:eg(i)})]}),s&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const Y9={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function X9({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",l=e.target??"",c=e.endpoint??"",d=e.method??"",f=e.technical_analysis??"",h=e.poc_description??"",m=e.poc_script_code??"",p=e.remediation_steps??"",x=e.cve??"",y=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),w=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=Y9[S]??"text-yellow-400";return g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),w!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",w]}),x&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x}),y&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y})]}),i&&g.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(l||c)&&g.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[l,c?` ${d} ${c}`:""]}),a&&g.jsx(Ln,{text:a,maxLines:20}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:15})})]}),f&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:f,maxLines:20})})]}),(h||m)&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),h&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:h})}),m&&g.jsx(Pw,{children:m})]}),p&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:p,maxLines:15})})]})]})}const jN=200,zN={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function tg(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Gi(e,t=80){return e.length>t?e.slice(0,t-3)+"...":e}function tp(e,t=150){return Gi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function np(e,t){const i=e.split(` +`),a=i.slice(0,t).map(s=>Gi(s,jN-5)).join(` +`);return i.length>t?a+` +...`:a}function K9({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,l=Array.isArray(s)?s:[];return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Gi(i,150)})]}),l.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[l.slice(0,20).map((c,d)=>{const f=(c.method??"GET").toUpperCase(),h=c.host??"",m=c.path??"",p=c.response,x=(p==null?void 0:p.statusCode)??null;return g.jsxs("div",{className:"flex gap-2",children:[g.jsx("span",{className:`w-10 shrink-0 font-bold ${zN[f]??"text-[#888]"}`,children:f}),g.jsx("span",{className:"text-[#777] truncate",children:Gi(h+m,180)}),x!=null&&g.jsx("span",{className:`ml-auto shrink-0 ${tg(x)}`,children:x})]},d)}),l.length>20&&g.jsxs("div",{className:"text-[#555]",children:["... +",l.length-20," more"]})]})]})}function Z9({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",l=t,c=l?l.matches:null,d=Array.isArray(c)?c:[],f=l?l.content??null:null,h=l?!!l.has_more:!1;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),s&&g.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Gi(s,100),"/"]})]}),d.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((m,p)=>{const x=(m.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),y=(m.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return g.jsxs("div",{children:[x&&g.jsxs("span",{className:"text-[#555]",children:["...",x]}),g.jsx("span",{className:"text-amber-400/80 font-bold",children:m.match}),y&&g.jsxs("span",{className:"text-[#555]",children:[y,"..."]})]},p)}),d.length>5&&g.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),f&&!d.length&&(()=>{const m=f.split(` +`),p=m.slice(0,15).map(y=>Gi(y,jN)).join(` +`),x=h||m.length>15;return g.jsx(yr,{className:"text-[#666]",children:p+(x?` +... more content available`:"")})})()]})}function Q9({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,l=e.body,c=typeof l=="string"?l:"",d=t,f=d?d.error??null:null,h=d?d.status_code??null:null,m=d?d.response_time_ms??null:null,p=d?d.body:null,x=typeof p=="string"?p:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[g.jsxs("div",{children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),g.jsx("span",{className:`font-bold ${zN[i]??"text-[#888]"}`,children:i}),g.jsx("span",{className:"text-[#888] ml-1 break-all",children:Gi(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([y,_])=>g.jsxs("div",{className:"text-[#555] pl-5",children:[y,": ",tp(String(_),150)]},y))]}),c&&g.jsx(yr,{className:"text-[#888]",children:np(c,4)}),f&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:tp(f,150)}),h!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${tg(h)}`,children:h}),m!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[m,"ms"]})]}),x&&g.jsx(yr,{className:"text-[#666]",children:np(x,6)})]})}function W9({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,l=s?s.status_code??null:null,c=s?s.response_time_ms??null:null,d=s?s.body:null,f=typeof d=="string"?d:null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&g.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([h,m])=>g.jsxs("div",{children:[g.jsxs("span",{className:"text-orange-400/60",children:[h,":"]})," ",g.jsx("span",{className:"text-[#777]",children:tp(typeof m=="string"?m:JSON.stringify(m),150)})]},h))}),l!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${tg(l)}`,children:l}),c!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),f&&g.jsx(yr,{className:"text-[#666]",children:np(f,5)})]})}const J9={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function eU({args:e}){const t=e.action??"",i=e.scope_name??"",a=J9[t]??(t||"managing");return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Gi(i,50)})]})}function tU({args:e}){const t=e.parent_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Gi(String(t),20)]})]})}function nU({args:e}){const t=e.entry_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Gi(String(t),20)]})]})}function iU(e){switch(e.toolName){case"list_requests":return g.jsx(K9,{...e});case"view_request":return g.jsx(Z9,{...e});case"send_request":return g.jsx(Q9,{...e});case"repeat_request":return g.jsx(W9,{...e});case"scope_rules":return g.jsx(eU,{...e});case"list_sitemap":return g.jsx(tU,{...e});case"view_sitemap_entry":return g.jsx(nU,{...e});default:return g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function rU({args:e}){const t=e.thought??e.content??"";return t?g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:20})})]}):null}function aU({toolName:e,args:t}){if(e==="create_agent"){const i=t.name??t.agent_name??"",a=t.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&g.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=t.result_summary??"",a=t.success,s=t.findings,l=Array.isArray(s)?s:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})}),l&&l.length>0&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:l.map((c,d)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},d))})]})}if(e==="send_message_to_agent"){const i=t.message??"",a=t.target_agent_id??t.agent_id??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=t.reason??"";return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&g.jsx("span",{className:"text-[#888] text-[13px] truncate",children:i})]})}if(e==="stop_agent"){const i=t.target_agent_id??"",a=t.cascade!==!1,s=t.reason??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&g.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function sU({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,l=a&&!a.success?a.message??null:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&g.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),l&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:l}),s&&g.jsx("div",{className:"mt-2",children:g.jsx(Ln,{text:s,maxLines:15})})]})}const oU=50,X1=200,K1=25,Z1=24,lU=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,cU=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function uU(e){return e.replace(lU,"")}function Em(e){const t=uU(e);return t.length>X1?t.slice(0,X1-3)+"...":t}function dU(e){return e.replace(cU,"").trim()}function fU(e){const t=e.split(` +`);if(t.length<=oU)return t.map(Em).join(` +`);const i=t.length-K1-Z1;return[...t.slice(0,K1).map(Em),`... ${i} lines truncated ...`,...t.slice(-Z1).map(Em)].join(` +`)}function hU({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let l=null;s&&typeof s=="object"?l=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(l=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=l?fU(dU(l)):null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&g.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&g.jsx(Jp,{code:a,language:"python",collapsible:!0}),d&&g.jsx(yr,{className:"text-[#666]",children:d})]})}function mU({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,l)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},l))})]})}function pU({args:e}){const t=e.name??"Unknown Agent",i=e.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),g.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:15})})]})}function gU(e){return e.toolName==="subagent_start_info"?g.jsx(pU,{...e}):g.jsx(mU,{...e})}function bU({args:e}){const t=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return g.jsxs("div",{className:"space-y-3",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:t,maxLines:25})})]}),i&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:i,maxLines:25})})]}),a&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:a,maxLines:25})})]}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!i&&!a&&!s&&g.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function xU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",l=t.category??"general";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),g.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",l,")"]})]}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s})})]})}if(e==="delete_note")return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=t.title??"",s=t.content??"";return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s})})]})}if(e==="get_note"){const a=i,s=a&&typeof a=="object"&&a.success?a.note:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",g.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const l=a.notes;s=Array.isArray(l)?l:[]}return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?g.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((l,c)=>g.jsxs("div",{className:"text-[13px]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"-"}),g.jsx("span",{className:"text-[#999]",children:l.title??"(untitled)"}),g.jsxs("span",{className:"text-[#555] ml-1",children:["(",l.category??"general",")"]}),l.content&&g.jsx("div",{className:"ml-3",children:g.jsx(Os,{text:l.content})})]},c))}):g.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const yU={create_todo:{label:"Task added",Icon:MT},list_todos:{label:"Plan",Icon:w2},update_todo:{label:"Task updated",Icon:AT},mark_todo_done:{label:"Task completed",Icon:f_},mark_todo_pending:{label:"Task reopened",Icon:HT},delete_todo:{label:"Task removed",Icon:KT}};function vU({status:e}){return e==="done"?g.jsx(f_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?g.jsx(R2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):g.jsx(L2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function _U({todos:e,highlightId:t}){return g.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",l=t&&i.id===t;return g.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${l?"bg-purple-500/[0.08]":""}`,children:[g.jsx("div",{className:"mt-[1px]",children:g.jsx(vU,{status:s})}),g.jsx("span",{className:`text-[13px] leading-snug ${s==="done"?"text-[#555] line-through":s==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:i.title??"(untitled)"})]},i.id??a)})})}function wU({toolName:e,args:t,result:i}){const a=yU[e]??{label:"Plan",Icon:zT},s=a.Icon,l=i;if(typeof l=="string"&&l.trim())return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:l.trim()})]});let c=[],d=null,f;if(l&&typeof l=="object"){if(d=l.error??null,l.success){const m=l.todos;c=Array.isArray(m)?m:[]}f=l.id??t.todo_id??void 0}const h=e!=="list_todos"?f:void 0;return c.length===0&&!d?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&g.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&g.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:g.jsx(_U,{todos:c,highlightId:h})})]})}function Q1(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const t=e;if(typeof t.__raw=="string")return t.__raw;if(Object.keys(t).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function IN({toolName:e,args:t,result:i}){const a=Q1(t),s=Q1(i);return g.jsxs("div",{children:[g.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&g.jsx(yr,{className:"text-[#777]",children:a}),s&&g.jsx(yr,{className:"text-[#666]",children:s})]})}function EU({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const Ku={terminal:{renderer:j9,icon:y_,color:"text-emerald-400"},python:{renderer:hU,icon:I2,color:"text-yellow-400"},browser:{renderer:I9,icon:op,color:"text-blue-400"},filesystem:{renderer:B9,icon:m_,color:"text-sky-400"},proxy:{renderer:iU,icon:js,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:X9,icon:PT,color:"text-red-400"},thinking:{renderer:rU,icon:c_,color:"text-purple-400"},agents:{renderer:aU,icon:rp,color:"text-cyan-400",match:/agent/},search:{renderer:sU,icon:x_,color:"text-amber-400"},lifecycle:{renderer:gU,icon:p_,color:"text-emerald-400"},notes:{renderer:xU,icon:VT,color:"text-amber-400",match:/note/},skills:{renderer:EU,icon:fu,color:"text-emerald-400"},todos:{renderer:wU,icon:dT,color:"text-purple-400",match:/todo/},telemetry:{renderer:IN,icon:fu,color:"text-[#555]"}},NU={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},SU=Object.fromEntries(Object.entries(NU).flatMap(([e,t])=>t.map(i=>[i,e]))),kU={finish_scan:bU,apply_patch:G9,view_image:V9},TU={agent_finish:{icon:p_,color:"text-cyan-400"},send_message_to_agent:{icon:Px,color:"text-cyan-400"},wait_for_message:{icon:Px,color:"text-cyan-400"},view_agent_graph:{icon:F2,color:"text-cyan-400"},stop_agent:{icon:l_,color:"text-red-400"},scan_start_info:{icon:H2,color:"text-emerald-400"},subagent_start_info:{icon:rp,color:"text-purple-400"},view_image:{icon:aT,color:"text-sky-400"}},AU=Ku.telemetry;function BN(e){var i;const t=SU[e];if(t)return t;for(const[a,s]of Object.entries(Ku))if((i=s.match)!=null&&i.test(e))return a;return null}function CU(e){const t=kU[e];if(t)return t;const i=BN(e);return i?Ku[i].renderer:IN}function MU(e){const t=TU[e];if(t)return t;const i=BN(e),a=i?Ku[i]:AU;return{icon:a.icon,color:a.color}}const OU=30;function RU({role:e,content:t}){const i=e==="user"||e==="human";return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:OU})})]})}class DU extends ie.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?g.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function LU(e){const t=CU(e.toolName);return g.jsx(DU,{toolName:e.toolName,children:g.jsx(t,{...e})})}function UN(e){if(e==null||typeof e!="string")return e;const t=e.trim();if(!t)return e;try{return JSON.parse(t)}catch{}try{const i=t.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(i)}catch{return{__raw:e}}}function HN(e){const t=UN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function W1(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function $N(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}const jU={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function zU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function IU(e,t){var d;const i=new Map;for(const f of e)if(f.parent_id){const h=i.get(f.parent_id)??[];h.push(f.id),i.set(f.parent_id,h)}const a=new Map,s=new Map,l=new Map;for(const f of t)if(f.type==="tool"){if(a.set(f.agent_id,(a.get(f.agent_id)??0)+1),((d=f.data)==null?void 0:d.tool_name)==="create_agent"){const h=HN(f.data.args),m=h.name??h.agent_name??"",p=h.task??"";m&&p&&l.set(m,p)}}else $N(f)||s.set(f.agent_id,(s.get(f.agent_id)??0)+1);const c=new Map;for(const f of e)c.set(f.id,{id:f.id,name:f.name,task:l.get(f.name)??"",status:zU(f.status),parentId:f.parent_id,children:i.get(f.id)??[],createdAt:f.created_at,toolCount:a.get(f.id)??0,messageCount:s.get(f.id)??0});return c}function BU({agent:e,events:t,showHeader:i=!0}){const a=ie.useMemo(()=>t.filter(c=>c.agent_id===e.id&&!$N(c)).sort((c,d)=>W1(c.id)-W1(d.id)),[t,e.id]),s=a.filter(c=>c.type==="tool").length,l=a.length-s;return g.jsxs("div",{children:[i&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[g.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),g.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${jU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),g.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),g.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[l," message",l===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?g.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):g.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,w,k,E,M;const f=d===a.length-1,h=c.type==="tool",m=h?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",p=h?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let x,y;if(h){const z=MU(m);x=z.icon,y=z.color}else{const z=p==="user"||p==="human";x=z?rp:c_,y=z?"text-blue-400":"text-purple-400"}const _=h?String(((w=c.data)==null?void 0:w.status)??"completed"):"completed";return g.jsxs("div",{className:"flex gap-3",children:[g.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[g.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${h&&_==="running"?"border-blue-500/40 animate-pulse":h&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:g.jsx(x,{className:`w-3.5 h-3.5 ${y}`})}),!f&&g.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),g.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:h?g.jsx(LU,{toolName:m,args:HN((k=c.data)==null?void 0:k.args),result:UN((E=c.data)==null?void 0:E.result)??null,status:_}):g.jsx(RU,{role:p,content:String(((M=c.data)==null?void 0:M.content)??"")})})]},c.id)})})]})}const UU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},HU=80;function $U({agent:e,events:t,onClose:i}){const a=ie.useRef(null),s=ie.useRef(!1),l=ie.useCallback(()=>{const c=a.current;c&&(s.current=c.scrollHeight-c.scrollTop-c.clientHeight{const c=a.current;!c||!s.current||requestAnimationFrame(()=>{c.scrollTo({top:c.scrollHeight,behavior:"smooth"})})},[t]),ie.useEffect(()=>{const c=f=>{f.key==="Escape"&&i()};document.addEventListener("keydown",c);const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",c),document.body.style.overflow=d}},[i]),g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8",onClick:i,role:"dialog","aria-modal":"true","aria-label":`Agent ${e.name}`,children:g.jsxs("div",{className:"relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:c=>c.stopPropagation(),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${UU[e.status]??"bg-[#888]"}`}),g.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),g.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),g.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:g.jsx(rA,{className:"h-4 w-4"})})]}),g.jsx("div",{ref:a,onScroll:l,className:"flex-1 overflow-y-auto p-5",children:g.jsx(BU,{agent:e,events:t,showHeader:!1})}),g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-[#222] px-5 py-3",children:[g.jsx("span",{className:"text-xs text-[#888]",children:"Steer agents live from your terminal."}),g.jsx("a",{href:br(Vs,"steer_agent"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("steer_agent","agents"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class Mu extends Error{constructor(t){super(t),this.name="RunParseError"}}const qU=["critical","high","medium","low"];function PU(e){const t=String(e??"").toLowerCase().trim();return qU.includes(t)?t:"low"}function FU(e){if(typeof e=="string"&&e.trim()){const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(!Number.isNaN(i.getTime()))return i.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function GU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function qN(e,t){try{return JSON.parse(e)}catch{throw new Mu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function VU(e){const t=qN(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Mu("run.json is not an object.");const i=t,a=[],s=i.targets_info;if(Array.isArray(s)){for(const y of s)if(y&&typeof y=="object"){const _=y.original;typeof _=="string"&&_&&a.push(_)}}const l=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(l&&c){const y=new Date(l).getTime(),_=new Date(c).getTime();!Number.isNaN(y)&&!Number.isNaN(_)&&_>=y&&(d=Math.round((_-y)/1e3))}let f=null,h=null,m=null,p=null;const x=i.scan_results;if(x&&typeof x=="object"){const y=x;f=Ot(y.executive_summary),h=Ot(y.technical_analysis),m=Ot(y.methodology),p=Ot(y.recommendations)}return{runId:Ot(i.run_id),runName:Ot(i.run_name),targets:a,scanMode:Ot(i.scan_mode),status:Ot(i.status),startTime:l,endTime:c,durationSeconds:d,executiveSummary:f,technicalAnalysis:h,methodology:m,recommendations:p}}function YU(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function XU(e,t,i){const a=e.cwe,s=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...YU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:PU(e.severity),status:"open",created_at:FU(e.timestamp),cve:Ot(e.cve),cvss:GU(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:s,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function KU(e,t=null){const i=qN(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Mu("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Mu(`vulnerabilities.json entry #${s+1} is not an object.`);return XU(a,s,t)})}function ZU(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Ks(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function Zu(e){return e?`?run=${encodeURIComponent(e)}`:""}async function PN(e){const t=await Ks("/api/run"+Zu(e)),i=VU(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function FN(e,t){const i=await Ks("/api/vulnerabilities"+Zu(t));return KU(JSON.stringify(i),e)}async function QU(e){const t=await Ks("/api/report"+Zu(e));return(t==null?void 0:t.markdown)??null}async function GN(e){const t=await Ks("/api/transcript"+Zu(e));return{agents:Array.isArray(t==null?void 0:t.agents)?t.agents:[],events:Array.isArray(t==null?void 0:t.events)?t.events:[]}}async function J1(e){const{summary:t,raw:i,finished:a}=await PN(e),[s,l,c]=await Promise.all([FN(t.runId,e).catch(()=>[]),QU(e).catch(()=>null),GN(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:l,transcript:c}}async function Qu(e,t){const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),cache:"no-store"});let a={};try{const s=await i.json();s&&typeof s=="object"&&(a=s)}catch{}return{ok:i.ok,status:i.status,data:a}}async function WU(){const e=await Ks("/api/runs");return{locked:(e==null?void 0:e.locked)??!0,count:typeof(e==null?void 0:e.count)=="number"?e.count:0,runs:Array.isArray(e==null?void 0:e.runs)?e.runs:[]}}async function JU(){const e=await Ks("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function VN(e){const{ok:t,data:i}=await Qu("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function YN(e,t){const{ok:i,data:a}=await Qu("/api/auth/otp/verify",{email:e,code:t});return i&&a.verified===!0?{verified:!0,email:String(a.email??e)}:{verified:!1,error:String(a.error??"invalid_code")}}async function eH(){await Qu("/api/auth/forget",{})}async function tH(e){const{ok:t,data:i}=await Qu("/api/report/send",e?{run:e}:{});return t&&i.ok===!0?{ok:!0,password:String(i.password??""),filename:String(i.filename??"strix-report.pdf")}:{ok:!1,error:String(i.error??"unavailable")}}const nH=[{slug:"pr_reviews",title:"PR Reviews",icon:sp,tier:"Pro",navDesc:"Pentest every pull request",headline:"Pentest every pull request",description:"Strix reviews every pull request your team opens and catches exploitable changes before they merge."},{slug:"repositories",title:"Repositories",icon:oT,tier:"Pro",navDesc:"Connect your team's repos",headline:"Connect your team's repositories",description:"Link your org's repositories so Strix can scan them continuously and track findings over time."},{slug:"domains",title:"Domains",icon:op,tier:"Pro",navDesc:"Cover the domains you own",headline:"Cover every domain you own",description:"Add the domains your team owns and let Strix watch them for newly exposed paths and drift."},{slug:"integrations",title:"Integrations",icon:g_,tier:"Pro",navDesc:"Sync to Jira, Linear, Slack",headline:"Sync findings to your tools",description:"Two-way sync findings to Jira, Linear, and Slack so fixes happen where your team already works."},{slug:"members",title:"Members",icon:v_,tier:"Pro",navDesc:"Invite your team, set roles",headline:"Bring your whole team",description:"Invite your team, set roles, and share findings and run history across your org."},{slug:"pentests",title:"Pentests",icon:x_,tier:"Pro",navDesc:"Deeper scans on managed infra",headline:"Launch deeper pentests",description:"Run deeper, longer pentests on managed infrastructure whenever you need them."},{slug:"dashboard",title:"Dashboard",icon:cT,tier:"Pro",navDesc:"Everything in one place",headline:"See everything in one place",description:"Track every project, run, and finding across your org from a single dashboard."},{slug:"platform_issues",title:"Issues",icon:QT,tier:"Pro",navDesc:"Triage across your org",headline:"Triage findings across your org",description:"Manage and triage findings across every project and repository in one queue."},{slug:"chat",title:"Chat",icon:vT,tier:"Pro",navDesc:"Ask about any finding",headline:"Ask Strix anything",description:"Ask the agents about any finding, run, or part of your app in natural language."},{slug:"networks",title:"Networks",icon:wT,tier:"Enterprise",navDesc:"Reach internal, VPN-only targets",headline:"Scan internal networks",description:"Connect private networks to scan internal applications, VPN-only services, and RFC1918 targets."},{slug:"knowledge",title:"Knowledge",icon:q2,tier:"Pro",navDesc:"Give agents context",headline:"Give agents context",description:"Teach Strix about your systems and business logic so every run gets smarter."}],ip=Object.fromEntries(nH.map(e=>[e.slug,e])),iH=["pr_reviews","repositories","domains","integrations","members","pentests","networks","chat","dashboard","platform_issues","knowledge"],e_="strix_viewer_sidebar_collapsed";function rH({view:e,onSelectView:t,activeFeature:i,onSelectFeature:a,issuesCount:s,agentCount:l,runCount:c,verified:d,email:f,onOpenEmail:h,onOpenHistory:m,onForget:p}){const[x,y]=ie.useState(!1);ie.useEffect(()=>{try{y(localStorage.getItem(e_)==="1")}catch{}},[]);const _=()=>{y(N=>{const S=!N;try{localStorage.setItem(e_,S?"1":"0")}catch{}return S})};return g.jsx("aside",{className:`hidden flex-shrink-0 border-r border-[#222] lg:block ${x?"w-14":"w-72"}`,children:g.jsxs("div",{className:"sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4",children:[g.jsxs("div",{className:"px-1.5",children:[g.jsxs("div",{className:`flex items-center ${x?"flex-col gap-2":"justify-between"}`,children:[g.jsxs("a",{href:br("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo","sidebar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"h-8 w-10 object-cover"}),!x&&g.jsx("span",{className:"text-base font-medium tracking-tight text-white",children:"Strix"})]}),g.jsx("button",{onClick:_,title:x?"Expand sidebar":"Collapse sidebar","aria-label":x?"Expand sidebar":"Collapse sidebar",className:"flex-shrink-0 cursor-pointer rounded-md p-1.5 text-[#666] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",children:x?g.jsx(kT,{className:"h-4 w-4","aria-hidden":"true"}):g.jsx(NT,{className:"h-4 w-4","aria-hidden":"true"})})]}),g.jsxs("a",{href:br(Vs,"sidebar_start_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("sidebar_start_free","sidebar"),title:"Explore full platform",className:`mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg bg-white font-semibold text-black transition-opacity hover:opacity-90 ${x?"px-0 py-2":"px-3 py-2 text-sm"}`,children:[!x&&"Explore full platform",g.jsx(js,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),d&&f&&(x?g.jsx("div",{className:"mt-2.5 flex items-center justify-center rounded-lg py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},title:`Linked email: ${f}`,children:g.jsx(du,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"})}):g.jsxs("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg px-2.5 py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx(du,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"truncate text-[11px] text-[#666]",children:"Linked email"}),g.jsx("p",{className:"truncate text-xs text-[#aaa]",title:f,children:f})]}),g.jsx("button",{onClick:p,title:"Forget this email on this machine",className:"flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Forget",children:g.jsx(gT,{className:"h-3.5 w-3.5"})})]}))]}),g.jsxs("div",{className:"mt-6 space-y-0.5",children:[g.jsx(Zo,{icon:m_,label:"Overview",desc:"This run's executive report",active:e==="overview",onClick:()=>t("overview"),collapsed:x}),g.jsx(Zo,{icon:y2,label:"Issues",desc:"Findings from this run",count:s>0?s:void 0,active:e==="issues",onClick:()=>t("issues"),collapsed:x}),l>0&&g.jsx(Zo,{icon:__,label:"Agents",desc:"What each agent did",count:l,active:e==="agents",onClick:()=>t("agents"),collapsed:x}),g.jsx(Zo,{icon:Is,label:"Past runs",desc:"Every run on this machine",count:c>0?c:void 0,active:e==="history",onClick:m,collapsed:x}),g.jsx(Zo,{icon:lp,label:"Email report",desc:"Get an encrypted PDF by email",active:e==="email",onClick:h,collapsed:x}),iH.map(N=>{const S=ip[N];return S?g.jsx(fA,{feature:S,active:e==="feature"&&i===N,onClick:()=>a(N),collapsed:x},N):null})]})]})})}function Zo({icon:e,label:t,desc:i,count:a,active:s,onClick:l,collapsed:c=!1}){return c?g.jsx("button",{onClick:l,title:a!=null?`${t} (${a})`:t,className:`flex w-full cursor-pointer items-center justify-center rounded-md px-2.5 py-2 transition-colors ${s?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:s?{background:"rgba(255,255,255,0.12)"}:void 0,children:g.jsx(e,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"})}):g.jsxs("button",{onClick:l,className:`flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${s?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:s?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(e,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:t}),a!=null&&g.jsx("span",{className:"text-xs text-[#666] tabular-nums",children:a})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:i})]})]})}const t_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},aH=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function sH({onVerified:e}){const[t,i]=ie.useState("email"),[a,s]=ie.useState(""),[l,c]=ie.useState(""),[d,f]=ie.useState(!1),[h,m]=ie.useState(null),[p,x]=ie.useState(null),y=async()=>{const N=a.trim();if(!N){m("Enter your email to continue.");return}const S=N.slice(N.lastIndexOf("@")+1).toLowerCase();if(aH.has(S)){Pi("work_email_required"),m(t_.work_email_required);return}f(!0),m(null);const w=await VN(N);f(!1),w.ok?(Pi("email_submitted",{purpose:"verify"}),x(`We sent a 6-digit code to ${N}.`),i("code")):(w.error==="work_email_required"&&Pi("work_email_required"),m(t_[w.error]??"Could not send a code. Try again."))},_=async()=>{const N=l.trim();if(N.length<4){m("Enter the 6-digit code from your email.");return}f(!0),m(null);const S=await YN(a.trim(),N);if(f(!1),!S.verified){m("That code did not match. Check it and try again.");return}Pi("email_verified",{purpose:"verify"}),e()};return g.jsxs("div",{className:"mx-auto mt-5 max-w-sm text-left",children:[h&&g.jsxs("div",{className:"mb-3 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(ap,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:h})]}),p&&!h&&g.jsx("p",{className:"mb-3 text-xs text-[#888]",children:p}),t==="email"?g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),y()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:a,onChange:N=>s(N.target.value),placeholder:"you@company.com",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(Jo,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}):g.jsxs("form",{className:"space-y-3",onSubmit:N=>{N.preventDefault(),_()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:l,onChange:N=>c(N.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:d,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[d&&g.jsx(Jo,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify"]}),g.jsx("button",{type:"button",onClick:()=>{i("email"),m(null),x(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]})]})}const oH=[{key:"critical",dot:"bg-red-500",text:"text-red-500"},{key:"high",dot:"bg-orange-500",text:"text-orange-500"},{key:"medium",dot:"bg-yellow-500",text:"text-yellow-500"},{key:"low",dot:"bg-blue-500",text:"text-blue-500"}];function lH({counts:e}){const t=oH.filter(i=>e[i.key]>0);return t.length===0?g.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):g.jsx("div",{className:"flex items-center gap-3",children:t.map(i=>g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:`h-2 w-2 rounded-full ${i.dot}`,"aria-hidden":"true"}),g.jsx("span",{className:`text-xs tabular-nums ${i.text}`,children:e[i.key]})]},i.key))})}function cH(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);return Number.isNaN(i.getTime())?null:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function n_(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(Number.isNaN(i.getTime()))return null;const a=Date.now()-i.getTime(),s=Math.floor(a/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const l=Math.floor(s/60);if(l<24)return`${l}h ago`;const c=Math.floor(l/24);return c<7?`${c}d ago`:cH(e)}function uH({runs:e,activeRun:t,onSelectRun:i,onVerified:a}){const s=(e==null?void 0:e.count)??0,[l,c]=ie.useState(!1);return!e||e.locked?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(Is,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),g.jsxs("p",{className:"mx-auto mt-1.5 max-w-md text-sm text-[#888]",children:["You have ",s," past ",s===1?"run":"runs"," on this machine."]}),l?g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"mx-auto mt-3 max-w-sm text-xs text-[#666]",children:"Verify your email with a one-time code to unlock the full history."}),g.jsx(sH,{onVerified:a})]}):g.jsx("button",{onClick:()=>{gi("history_unlock","past_runs"),c(!0)},className:"mt-4 cursor-pointer rounded-lg bg-white px-4 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:"View runs"}),g.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[g.jsx(y_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",g.jsx("code",{className:"font-mono text-[#888]",children:"strix view "})]})]}):e.runs.length===0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:"No past runs found on this machine yet."}):g.jsx("div",{className:"space-y-2",children:e.runs.map(d=>{const f=d.name===t,h=n_(d.start_time)??n_(d.end_time),m=ll(d.target,d.name);return g.jsxs("button",{onClick:()=>i(d.name),className:`group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${f?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"truncate text-sm font-medium text-white",children:m}),f&&g.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400",style:{border:"1px solid rgba(16,185,129,0.3)"},children:"Active"})]}),g.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[d.scan_mode&&g.jsx("span",{className:"capitalize",children:d.scan_mode}),d.scan_mode&&(h||d.status)&&g.jsx("span",{className:"text-[#333]",children:"·"}),h&&g.jsx("span",{children:h}),h&&d.status&&g.jsx("span",{className:"text-[#333]",children:"·"}),d.status&&g.jsx("span",{className:"capitalize",children:d.status})]})]}),g.jsx(lH,{counts:d.severity_counts}),g.jsx(k2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},d.name)})})}const i_={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},dH={forbidden:"This email was unsubscribed from Strix, so we cannot send to it.",too_large:"This report is too large to email. Try a smaller run.",unavailable:"The email service is unavailable right now. Try again shortly."},fH=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function hH({activeRun:e,auth:t,purpose:i,skipDisclosure:a=!1,onAuthChanged:s,onExit:l}){const c=(t==null?void 0:t.verified)===!0,d=i==="verify",[f,h]=ie.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[m,p]=ie.useState((t==null?void 0:t.email)??""),[x,y]=ie.useState(""),[_,N]=ie.useState(!1),[S,w]=ie.useState(null),[k,E]=ie.useState(null),[M,z]=ie.useState(""),[R,H]=ie.useState(""),[I,Z]=ie.useState(!1),[j,q]=ie.useState(""),K=ie.useRef(!1),V=async()=>{h("sending"),w(null);const X=await tH(e);if(X.ok){Pi("report_sent"),z(X.password),H(X.filename),h("password");return}if(X.error==="reverify"||X.error==="unverified"){E("Your verification expired. Enter your email to verify again."),h("email");return}w(dH[X.error]??"Could not send the report. Try again."),h("disclosure")},A=()=>{w(null),E(null),c?V():h("email")};ie.useEffect(()=>{!d&&a&&c&&!K.current&&(K.current=!0,V())},[]);const $=async()=>{const X=m.trim();if(!X){w("Enter your email to continue.");return}const C=X.slice(X.lastIndexOf("@")+1).toLowerCase();if(fH.has(C)){Pi("work_email_required"),w(i_.work_email_required);return}N(!0),w(null);const D=await VN(X);N(!1),D.ok?(Pi("email_submitted",{purpose:i}),E(`We sent a 6-digit code to ${X}.`),h("code")):(D.error==="work_email_required"&&Pi("work_email_required"),w(i_[D.error]??"Could not send a code. Try again."))},O=async()=>{const X=x.trim();if(X.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const C=await YN(m.trim(),X);if(N(!1),!C.verified){w("That code did not match. Check it and try again.");return}Pi("email_verified",{purpose:i}),q(C.email),s(),d?l("history"):V()},U=async()=>{try{await navigator.clipboard.writeText(M),Z(!0),setTimeout(()=>Z(!1),1500)}catch{}},Y=j||(t==null?void 0:t.email)||m.trim();return g.jsxs("div",{className:"mx-auto max-w-md space-y-4",children:[g.jsxs("button",{onClick:()=>l(d?"history":"overview"),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white",children:[g.jsx(o_,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(lp,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Email report"})]}),g.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[g.jsx("p",{className:"mb-4 text-xs text-[#666]",children:d?"We send a one-time code to confirm it is you.":"Verified by a one-time code sent to your email"}),S&&g.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(ap,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:S})]}),k&&!S&&f!=="password"&&g.jsx("p",{className:"mb-4 text-xs text-[#888]",children:k}),f==="disclosure"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2.5 rounded-lg p-3.5",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(du,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["Viewing stays local and nothing is uploaded. Emailing is an explicit opt-in: we send an ",g.jsx("span",{className:"text-white",children:"encrypted PDF"}),"."]})]}),g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(mT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"The report is encrypted with a password that only you hold. Strix cannot read it and never stores it. We collect only your email so we can send it."})]})]}),g.jsx("button",{onClick:A,className:"w-full cursor-pointer rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:c?"Email me the encrypted PDF":"Continue with your email"}),c&&(t==null?void 0:t.email)&&g.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),f==="email"&&g.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),$()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:m,onChange:X=>p(X.target.value),placeholder:"you@company.com",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(Jo,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),f==="code"&&g.jsxs("form",{className:"space-y-4",onSubmit:X=>{X.preventDefault(),O()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:x,onChange:X=>y(X.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(Jo,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),g.jsx("button",{type:"button",onClick:()=>{h("email"),w(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),f==="sending"&&g.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[g.jsx(Jo,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),f==="password"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5",children:[g.jsx(zs,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",Y,". Open the attached PDF with this password."]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),g.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[g.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:M}),g.jsxs("button",{onClick:U,className:"flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-xs text-[#aaa] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",style:{border:"1px solid #2a2a2a"},children:[I?g.jsx(zs,{className:"h-3.5 w-3.5"}):g.jsx(al,{className:"h-3.5 w-3.5"}),I?"Copied":"Copy"]})]}),g.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",g.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),g.jsx("button",{onClick:()=>l("overview"),className:"w-full cursor-pointer rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-[rgba(255,255,255,0.06)]",style:{border:"1px solid #2a2a2a"},children:"Done"})]})]})]})}const mH=[{icon:u_,text:"Continuous coverage: scheduled pentests and attack surface monitoring"},{icon:eA,text:"One-click autofix that opens a retested pull request"},{icon:g_,text:"Two-way sync to Jira, Linear, and Slack"},{icon:v_,text:"Your whole team, with roles and shared history"}];function pH({feature:e}){const t=e.icon;return g.jsx("div",{className:"mx-auto w-full max-w-lg",children:g.jsxs("div",{className:"rounded-2xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(t,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("div",{className:"mt-4 flex justify-center",children:g.jsx(Ou,{label:e.tier})}),g.jsx("h2",{className:"mt-3 text-2xl font-semibold text-white",children:e.headline}),g.jsx("p",{className:"mx-auto mt-2 max-w-md text-sm text-[#888]",children:e.description}),g.jsxs("div",{className:"mt-6 rounded-xl p-4 text-left",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx("p",{className:"mb-3 text-xs font-semibold uppercase tracking-wide text-[#666]",children:"Included in Strix Pro"}),g.jsx("ul",{className:"space-y-2.5",children:mH.map(i=>{const a=i.icon;return g.jsxs("li",{className:"flex items-start gap-2.5",children:[g.jsx(a,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-[#aaa]",children:i.text})]},i.text)})})]}),g.jsxs("div",{className:"mt-6 flex flex-col items-center gap-3",children:[g.jsxs("a",{href:br(Vs,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,"feature_page"),className:"inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:["Start free",g.jsx(js,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),g.jsxs("a",{href:br(cA,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,"feature_page_plans"),className:"inline-flex items-center gap-1 text-xs text-[#888] transition-colors hover:text-white",children:["View all plans",g.jsx(js,{className:"h-3 w-3","aria-hidden":"true"})]})]})]})})}const gH="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix. Emailing a report is an explicit opt-in that sends an encrypted copy only you can open.",r_=["critical","high","medium","low"],bH=500,xH=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:fu},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:V2}],yH=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:u_},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:b_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:sp}];function vH(){const[e,t]=ie.useState(null),[i,a]=ie.useState(null),[s,l]=ie.useState(null),[c,d]=ie.useState(null),[f,h]=ie.useState("overview"),[m,p]=ie.useState(null),[x,y]=ie.useState(null),[_,N]=ie.useState(null),[S,w]=ie.useState("report"),[k,E]=ie.useState(!1),M=ie.useCallback(async()=>{try{y(await JU())}catch{}},[]),z=ie.useCallback(async()=>{try{N(await WU())}catch{}},[]);ie.useEffect(()=>{M(),z()},[M,z]);const R=ie.useRef(!1);ie.useEffect(()=>{let D=!1,G;R.current=!1;const L=()=>{G=setTimeout(F,bH)},F=async()=>{if(!D)try{const{summary:B,raw:Q,finished:J}=await PN(e);if(D)return;if(J&&!R.current){R.current=!0;const le=await J1(e);D||a(le);return}const[W,ee]=await Promise.all([GN(e).catch(()=>({agents:[],events:[]})),FN(B.runId,e).catch(()=>[])]);if(D)return;a(le=>({summary:B,raw:Q,finished:J,transcript:W,vulnerabilities:ee,reportMarkdown:(le==null?void 0:le.reportMarkdown)??null})),L()}catch(B){if(D)return;l(B instanceof Error?B.message:"Could not load run data."),L()}};return(async()=>{try{const B=await J1(e);if(D)return;a(B),B.finished?R.current=!0:L()}catch(B){if(D)return;l(B instanceof Error?B.message:"Could not load run data."),L()}})(),()=>{D=!0,G&&clearTimeout(G)}},[e]);const H=ie.useMemo(()=>i?ZU(i.vulnerabilities):null,[i]),I=(i==null?void 0:i.vulnerabilities.find(D=>D.id===c))??null,Z=(i==null?void 0:i.transcript.agents.length)??0,j=(x==null?void 0:x.verified)===!0,q=ie.useRef(!1);ie.useEffect(()=>{q.current=!1},[e]),ie.useEffect(()=>{q.current||!i||(i.finished?(q.current=!0,h("overview")):Z>0&&(q.current=!0,h("agents")))},[i,Z]);const K=ie.useCallback(D=>{q.current=!0,h(D)},[]),V=ie.useCallback(D=>{t(D),d(null),a(null),l(null),q.current=!1},[]),A=ie.useCallback((D,G)=>{gi("email_report",G),w("report"),E(D),K("email")},[K]),$=ie.useCallback(()=>A(!1,"sidebar"),[A]),O=ie.useCallback(()=>A(!0,"overview"),[A]),U=ie.useCallback(()=>{z(),K("history")},[z,K]),Y=ie.useCallback(async()=>{await M(),await z()},[M,z]),X=ie.useCallback(D=>{gi(D,"sidebar_nav"),p(D),K("feature")},[K]),C=ie.useCallback(async()=>{await eH(),await M(),await z()},[M,z]);return g.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[g.jsx(rH,{view:f,onSelectView:D=>{D==="history"?U():K(D)},activeFeature:m,onSelectFeature:X,issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:Z,runCount:(_==null?void 0:_.count)??0,verified:j,email:(x==null?void 0:x.email)??null,onOpenEmail:$,onOpenHistory:U,onForget:()=>void C()}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"border-b border-[#222]",children:g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[g.jsxs("a",{href:br("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),g.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),g.jsx("span",{className:"text-xs text-[#666]",children:"Local results"}),i&&g.jsx(wH,{finished:i.finished}),g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[j&&_&&!_.locked&&_.runs.length>0&&g.jsx(_H,{runs:_,activeRun:e,launchedName:ll((i==null?void 0:i.summary.targets[0])??null,(i==null?void 0:i.summary.runName)??(i==null?void 0:i.summary.runId)??"Current run"),onSelect:V}),g.jsxs("a",{href:br(Vs,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("run_in_cloud","topbar"),className:"inline-flex items-center gap-1 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:["Run in the cloud",g.jsx(js,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-8 space-y-6",children:[f!=="feature"&&f!=="email"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(du,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-emerald-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa] leading-relaxed",children:gH})]}),s&&!i&&f!=="history"&&f!=="email"&&f!=="feature"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[g.jsx(ap,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-red-300",children:s})]}),f==="email"?g.jsx(hH,{activeRun:e,auth:x,purpose:S,skipDisclosure:k,onAuthChanged:()=>{M(),z()},onExit:D=>h(D==="history"?"history":"overview")}):f==="feature"&&m&&ip[m]?g.jsx(pH,{feature:ip[m]}):f==="history"?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Is,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),g.jsx(uH,{runs:_,activeRun:e,onSelectRun:V,onVerified:()=>void Y()})]}):!i&&!s?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[g.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),g.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):i&&H?g.jsxs(g.Fragment,{children:[g.jsx(NH,{summary:i.summary}),g.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[g.jsx(Sm,{active:f==="overview",onClick:()=>K("overview"),children:"Overview"}),g.jsxs(Sm,{active:f==="issues",onClick:()=>K("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),Z>0&&g.jsxs(Sm,{active:f==="agents",onClick:()=>K("agents"),children:["Agents (",Z,")"]})]}),f==="overview"?g.jsx(CH,{summary:i.summary,counts:H,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,onOpenEmail:O}):f==="agents"&&Z>0?g.jsx(MH,{run:i}):I?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("button",{onClick:()=>d(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[g.jsx(o_,{className:"w-4 h-4"})," Back to all findings"]}),g.jsx(z4,{vulnerability:I})]}):g.jsx(SH,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:D=>d(D)})]}):null]})]})]})}function _H({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,l]=ie.useState(!1),c=e.runs.find(f=>f.name===t),d=c?ll(c.target,c.name):i;return g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>l(f=>!f),onBlur:()=>setTimeout(()=>l(!1),150),className:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[#aaa] transition-colors hover:text-white",style:{border:"1px solid #2a2a2a"},children:[g.jsx(Is,{className:"w-3.5 h-3.5","aria-hidden":"true"}),g.jsx("span",{className:"max-w-[160px] truncate",children:d}),g.jsx(d_,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&g.jsx("div",{className:"absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e.runs.map(f=>{const h=f.name===t;return g.jsxs("button",{onMouseDown:()=>a(f.name),className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-[rgba(255,255,255,0.06)] ${h?"text-white":"text-[#aaa]"}`,children:[g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsx("span",{className:"block truncate",children:ll(f.target,f.name)}),f.target&&g.jsx("span",{className:"block truncate font-mono text-[#666]",children:f.target})]}),h&&g.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},f.name)})})]})}function wH({finished:e}){return e?g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[g.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[g.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),g.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function EH(e){if(e==null)return null;if(e<60)return`${e}s`;const t=Math.floor(e/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}function NH({summary:e}){const t=EH(e.durationSeconds);return g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-white",children:ll(e.targets[0]??null,e.runName??e.runId??"Scan results")}),g.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&g.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&g.jsx(Nm,{label:e.scanMode}),t&&g.jsx(Nm,{label:t}),e.status&&g.jsx(Nm,{label:e.status})]})]})}function Nm({label:e}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"capitalize",children:e})]})}function SH({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,l)=>r_.indexOf(s.severity)-r_.indexOf(l.severity));return a.length===0?g.jsxs("div",{className:"space-y-4",children:[g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:t?"No findings in this run.":"No findings yet. The scan is still running…"}),t&&g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),g.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),g.jsx(Rs,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:b_})]})]}):g.jsx("div",{className:"space-y-2",children:a.map(s=>g.jsxs("button",{onClick:()=>i(s.id),className:"cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[g.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${cp(s.severity)}`,"aria-hidden":"true"}),g.jsxs("span",{className:"flex-1 min-w-0",children:[g.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&g.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),g.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${w_[s.severity]}`,children:s.severity})]},s.id))})}function kH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function TH(e){const t=[];let i=null;for(const a of e.split(` +`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const l=s[1].trim().toLowerCase();if(l===i)continue;i=l}else a.trim()!==""&&(i=null);t.push(a)}return t.join(` +`)}function AH({onOpenEmail:e}){return g.jsx("button",{onClick:e,className:"group w-full cursor-pointer rounded-xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4 text-left transition-colors hover:border-emerald-500/40",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{border:"1px solid rgba(16,185,129,0.3)",background:"rgba(16,185,129,0.08)"},children:g.jsx(lp,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#888]",children:"Encrypted with a key only you can see, email verified with a one-time code before sending."})]}),g.jsx("span",{className:"flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90",children:"Email report"})]})})}function CH({summary:e,counts:t,total:i,reportMarkdown:a,onOpenEmail:s}){const l=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,c])=>!!c).map(([c,d])=>({title:c,content:kH(d)}));return g.jsxs("div",{className:"space-y-6",children:[i>0&&g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(I4,{findings:{total:i,...t}})}),g.jsx(AH,{onOpenEmail:s}),l.length>0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:l.map(c=>g.jsx(ra,{title:c.title,content:c.content},c.title))}):a?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(ra,{content:TH(a)})}):i===0&&g.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:xH.map(c=>g.jsx(Fx,{item:c,surface:"overview"},c.slug))}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2 text-sm font-semibold text-white",children:"Continuous coverage for your org"}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:yH.map(c=>g.jsx(Fx,{item:c,surface:"overview"},c.slug))})]})]})}function Sm({active:e,onClick:t,children:i}){return g.jsxs("button",{onClick:t,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[i,e&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function MH({run:e}){const{agents:t,events:i}=e.transcript,a=ie.useMemo(()=>IU(t,i),[t,i]),[s,l]=ie.useState(null),c=s?t.find(d=>d.id===s)??null:null;return g.jsxs("div",{className:"space-y-5",children:[g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(__,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),g.jsxs("span",{className:"text-xs text-[#666]",children:[t.length," agent",t.length===1?"":"s"]})]}),g.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),g.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:g.jsx(k9,{agents:a,selectedAgentId:s,onSelectAgent:d=>l(d),eventsLoaded:!0,eventsEmpty:a.size===0,scanCompleted:e.finished})})]}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Drive the agents live"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Steer and re-run this scan from the web."}),g.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[g.jsx(Rs,{label:"Steer agents from the web",desc:"Guide the agents live while they scan.",slug:"live_scan_prompt",surface:"agents",icon:LT}),g.jsx(Rs,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",surface:"agents",icon:BT})]})]}),c&&g.jsx($U,{agent:c,events:i,onClose:()=>l(null)})]})}a2.createRoot(document.getElementById("root")).render(g.jsx(ie.StrictMode,{children:g.jsx(vH,{})})); diff --git a/strix/viewer/viewer_dist/assets/index-DMIqFbyp.js b/strix/viewer/viewer_dist/assets/index-DMIqFbyp.js deleted file mode 100644 index 403b56df..00000000 --- a/strix/viewer/viewer_dist/assets/index-DMIqFbyp.js +++ /dev/null @@ -1,492 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=i(s);fetch(s.href,l)}})();function gl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zf={exports:{}},Ho={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Mx;function Fk(){if(Mx)return Ho;Mx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var d in s)d!=="key"&&(l[d]=s[d])}else l=s;return s=l.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:l}}return Ho.Fragment=t,Ho.jsx=i,Ho.jsxs=i,Ho}var Ox;function Gk(){return Ox||(Ox=1,Zf.exports=Fk()),Zf.exports}var g=Gk(),Qf={exports:{}},Ve={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rx;function Vk(){if(Rx)return Ve;Rx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x(L){return L===null||typeof L!="object"?null:(L=y&&L[y]||L["@@iterator"],typeof L=="function"?L:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function w(L,V,D){this.props=L,this.context=V,this.refs=S,this.updater=D||_}w.prototype.isReactComponent={},w.prototype.setState=function(L,V){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,V,"setState")},w.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function k(){}k.prototype=w.prototype;function E(L,V,D){this.props=L,this.context=V,this.refs=S,this.updater=D||_}var O=E.prototype=new k;O.constructor=E,N(O,w.prototype),O.isPureReactComponent=!0;var I=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function Z(L,V,D){var G=D.ref;return{$$typeof:e,type:L,key:V,ref:G!==void 0?G:null,props:D}}function z(L,V){return Z(L.type,V,L.props)}function q(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function K(L){var V={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(D){return V[D]})}var Y=/\/+/g;function C(L,V){return typeof L=="object"&&L!==null&&L.key!=null?K(""+L.key):V.toString(36)}function $(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(R,R):(L.status="pending",L.then(function(V){L.status==="pending"&&(L.status="fulfilled",L.value=V)},function(V){L.status==="pending"&&(L.status="rejected",L.reason=V)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function M(L,V,D,G,U){var W=typeof L;(W==="undefined"||W==="boolean")&&(L=null);var J=!1;if(L===null)J=!0;else switch(W){case"bigint":case"string":case"number":J=!0;break;case"object":switch(L.$$typeof){case e:case t:J=!0;break;case m:return J=L._init,M(J(L._payload),V,D,G,U)}}if(J)return U=U(L),J=G===""?"."+C(L,0):G,I(U)?(D="",J!=null&&(D=J.replace(Y,"$&/")+"/"),M(U,V,D,"",function(ce){return ce})):U!=null&&(q(U)&&(U=z(U,D+(U.key==null||L&&L.key===U.key?"":(""+U.key).replace(Y,"$&/")+"/")+J)),V.push(U)),1;J=0;var Q=G===""?".":G+":";if(I(L))for(var ee=0;ee>>1,A=M[F];if(0>>1;Fs(D,X))Gs(U,D)?(M[F]=U,M[G]=X,F=G):(M[F]=D,M[V]=X,F=V);else if(Gs(U,X))M[F]=U,M[G]=X,F=G;else break e}}return B}function s(M,B){var X=M.sortIndex-B.sortIndex;return X!==0?X:M.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],f=[],m=1,p=null,y=3,x=!1,_=!1,N=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function O(M){for(var B=i(f);B!==null;){if(B.callback===null)a(f);else if(B.startTime<=M)a(f),B.sortIndex=B.expirationTime,t(h,B);else break;B=i(f)}}function I(M){if(N=!1,O(M),!_)if(i(h)!==null)_=!0,R||(R=!0,K());else{var B=i(f);B!==null&&$(I,B.startTime-M)}}var R=!1,H=-1,j=5,Z=-1;function z(){return S?!0:!(e.unstable_now()-ZM&&z());){var F=p.callback;if(typeof F=="function"){p.callback=null,y=p.priorityLevel;var A=F(p.expirationTime<=M);if(M=e.unstable_now(),typeof A=="function"){p.callback=A,O(M),B=!0;break t}p===i(h)&&a(h),O(M)}else a(h);p=i(h)}if(p!==null)B=!0;else{var L=i(f);L!==null&&$(I,L.startTime-M),B=!1}}break e}finally{p=null,y=X,x=!1}B=void 0}}finally{B?K():R=!1}}}var K;if(typeof E=="function")K=function(){E(q)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,C=Y.port2;Y.port1.onmessage=q,K=function(){C.postMessage(null)}}else K=function(){w(q,0)};function $(M,B){H=w(function(){M(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125F?(M.sortIndex=X,t(f,M),i(h)===null&&M===i(f)&&(N?(k(H),H=-1):N=!0,$(I,X-F))):(M.sortIndex=A,t(h,M),_||x||(_=!0,R||(R=!0,K()))),M},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(M){var B=y;return function(){var X=y;y=B;try{return M.apply(this,arguments)}finally{y=X}}}})(eh)),eh}var zx;function Kk(){return zx||(zx=1,Jf.exports=Xk()),Jf.exports}var th={exports:{}},kn={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jx;function Zk(){if(jx)return kn;jx=1;var e=bl();function t(h){var f="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),th.exports=Zk(),th.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Bx;function Qk(){if(Bx)return $o;Bx=1;var e=Kk(),t=bl(),i=t_();function a(n){var r="https://react.dev/errors/"+n;if(1A||(n.current=F[A],F[A]=null,A--)}function D(n,r){A++,F[A]=n.current,n.current=r}var G=L(null),U=L(null),W=L(null),J=L(null);function Q(n,r){switch(D(W,r),D(U,n),D(G,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?J0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=J0(r),n=ex(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(G),D(G,n)}function ee(){V(G),V(U),V(W)}function ce(n){n.memoizedState!==null&&D(J,n);var r=G.current,o=ex(r,n.type);r!==o&&(D(U,n),D(G,o))}function fe(n){U.current===n&&(V(G),V(U)),J.current===n&&(V(J),jo._currentValue=X)}var be,we;function Ne(n){if(be===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",we=-1)":-1b||te[u]!==oe[b]){var he=` -`+te[u].replace(" at new "," at ");return n.displayName&&he.includes("")&&(he=he.replace("",n.displayName)),he}while(1<=u&&0<=b);break}}}finally{Le=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ne(o):""}function st(n,r){switch(n.tag){case 26:case 27:case 5:return Ne(n.type);case 16:return Ne("Lazy");case 13:return n.child!==r&&r!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return $e(n.type,!1);case 11:return $e(n.type.render,!1);case 1:return $e(n.type,!0);case 31:return Ne("Activity");default:return""}}function Rt(n){try{var r="",o=null;do r+=st(n,o),o=n,n=n.return;while(n);return r}catch(u){return` -Error generating stack: `+u.message+` -`+u.stack}}var Yt=Object.prototype.hasOwnProperty,Pt=e.unstable_scheduleCallback,Xt=e.unstable_cancelCallback,Vn=e.unstable_shouldYield,wn=e.unstable_requestPaint,ct=e.unstable_now,It=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,ln=e.log,En=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof ln=="function"&&En(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:vr,zn=Math.log,cn=Math.LN2;function vr(n){return n>>>=0,n===0?32:31-(zn(n)/cn|0)|0}var nt=256,Yn=262144,Cn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ne(n,r,o){var u=n.pendingLanes;if(u===0)return 0;var b=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?b=hn(u):(T&=P,T!==0?b=hn(T):o||(o=P&~n,o!==0&&(b=hn(o))))):(P=u&~v,P!==0?b=hn(P):T!==0?b=hn(T):o||(o=u&~n,o!==0&&(b=hn(o)))),b===0?0:r!==0&&r!==b&&(r&v)===0&&(v=b&-b,o=r&-r,v>=o||v===32&&(o&4194048)!==0)?r:b}function me(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function Ee(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pe(){var n=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),n}function St(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function gt(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ce(n,r,o,u,b,v){var T=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var P=n.entanglements,te=n.expirationTimes,oe=n.hiddenUpdates;for(o=T&~o;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ya=/[\n"\\]/g;function Sn(n){return n.replace(Ya,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ua(n,r,o,u,b,v,T,P){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),r!=null?T==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+_t(r)):n.value!==""+_t(r)&&(n.value=""+_t(r)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),r!=null?Tr(n,T,_t(r)):o!=null?Tr(n,T,_t(o)):u!=null&&n.removeAttribute("value"),b==null&&v!=null&&(n.defaultChecked=!!v),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function wi(n,r,o,u,b,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Sr(n);return}o=o!=null?""+_t(o):"",r=r!=null?""+_t(r):o,P||r===n.value||(n.value=r),n.defaultValue=r}u=u??b,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=P?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),Sr(n)}function Tr(n,r,o){r==="number"&&kr(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function un(n,r,o,u){if(n=n.options,r){r={};for(var b=0;b"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=!1;if(Qi)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){Ku=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{Ku=!1}var Mr=null,Zu=null,Ml=null;function eg(){if(Ml)return Ml;var n,r=Zu,o=r.length,u,b="value"in Mr?Mr.value:Mr.textContent,v=b.length;for(n=0;n=no),sg=" ",og=!1;function lg(n,r){switch(n){case"keyup":return fS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ka=!1;function mS(n,r){switch(n){case"compositionend":return cg(r);case"keypress":return r.which!==32?null:(og=!0,sg);case"textInput":return n=r.data,n===sg&&og?null:n;default:return null}}function pS(n,r){if(Ka)return n==="compositionend"||!td&&lg(n,r)?(n=eg(),Ml=Zu=Mr=null,Ka=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=bg(o)}}function yg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?yg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function vg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=kr(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=kr(n.document)}return r}function rd(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var ES=Qi&&"documentMode"in document&&11>=document.documentMode,Za=null,ad=null,so=null,sd=!1;function _g(n,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;sd||Za==null||Za!==kr(u)||(u=Za,"selectionStart"in u&&rd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),so&&ao(so,u)||(so=u,u=Ec(ad,"onSelect"),0>=T,b-=T,ji=1<<32-ut(r)+b|o<Ke?(at=De,De=null):at=De.sibling;var mt=le(ae,De,se[Ke],pe);if(mt===null){De===null&&(De=at);break}n&&De&&mt.alternate===null&&r(ae,De),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt,De=at}if(Ke===se.length)return o(ae,De),ot&&Ji(ae,Ke),Ie;if(De===null){for(;KeKe?(at=De,De=null):at=De.sibling;var Wr=le(ae,De,mt.value,pe);if(Wr===null){De===null&&(De=at);break}n&&De&&Wr.alternate===null&&r(ae,De),ie=v(Wr,ie,Ke),ht===null?Ie=Wr:ht.sibling=Wr,ht=Wr,De=at}if(mt.done)return o(ae,De),ot&&Ji(ae,Ke),Ie;if(De===null){for(;!mt.done;Ke++,mt=se.next())mt=ge(ae,mt.value,pe),mt!==null&&(ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return ot&&Ji(ae,Ke),Ie}for(De=u(De);!mt.done;Ke++,mt=se.next())mt=de(De,ae,Ke,mt.value,pe),mt!==null&&(n&&mt.alternate!==null&&De.delete(mt.key===null?Ke:mt.key),ie=v(mt,ie,Ke),ht===null?Ie=mt:ht.sibling=mt,ht=mt);return n&&De.forEach(function(Pk){return r(ae,Pk)}),ot&&Ji(ae,Ke),Ie}function Nt(ae,ie,se,pe){if(typeof se=="object"&&se!==null&&se.type===N&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case x:e:{for(var Ie=se.key;ie!==null;){if(ie.key===Ie){if(Ie=se.type,Ie===N){if(ie.tag===7){o(ae,ie.sibling),pe=b(ie,se.props.children),pe.return=ae,ae=pe;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===j&&_a(Ie)===ie.type){o(ae,ie.sibling),pe=b(ie,se.props),ho(pe,se),pe.return=ae,ae=pe;break e}o(ae,ie);break}else r(ae,ie);ie=ie.sibling}se.type===N?(pe=ga(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=Hl(se.type,se.key,se.props,null,ae.mode,pe),ho(pe,se),pe.return=ae,ae=pe)}return T(ae);case _:e:{for(Ie=se.key;ie!==null;){if(ie.key===Ie)if(ie.tag===4&&ie.stateNode.containerInfo===se.containerInfo&&ie.stateNode.implementation===se.implementation){o(ae,ie.sibling),pe=b(ie,se.children||[]),pe.return=ae,ae=pe;break e}else{o(ae,ie);break}else r(ae,ie);ie=ie.sibling}pe=hd(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case j:return se=_a(se),Nt(ae,ie,se,pe)}if($(se))return Ae(ae,ie,se,pe);if(K(se)){if(Ie=K(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,ie,se,pe)}if(typeof se.then=="function")return Nt(ae,ie,Yl(se),pe);if(se.$$typeof===E)return Nt(ae,ie,Pl(ae,se),pe);Xl(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ie!==null&&ie.tag===6?(o(ae,ie.sibling),pe=b(ie,se),pe.return=ae,ae=pe):(o(ae,ie),pe=fd(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):o(ae,ie)}return function(ae,ie,se,pe){try{fo=0;var Ie=Nt(ae,ie,se,pe);return os=null,Ie}catch(De){if(De===ss||De===Gl)throw De;var ht=Kn(29,De,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var Ea=Fg(!0),Gg=Fg(!1),zr=!1;function Sd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function jr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ir(n,r,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(pt&2)!==0){var b=u.pending;return b===null?r.next=r:(r.next=b.next,b.next=r),u.pending=r,r=Ul(n),Ag(n,null,o),r}return Bl(n,u,r,o),Ul(n)}function mo(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Ue(n,o)}}function Td(n,r){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var b=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?b=v=T:v=v.next=T,o=o.next}while(o!==null);v===null?b=v=r:v=v.next=r}else b=v=r;o={baseState:u.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var Ad=!1;function po(){if(Ad){var n=as;if(n!==null)throw n}}function go(n,r,o,u){Ad=!1;var b=n.updateQueue;zr=!1;var v=b.firstBaseUpdate,T=b.lastBaseUpdate,P=b.shared.pending;if(P!==null){b.shared.pending=null;var te=P,oe=te.next;te.next=null,T===null?v=oe:T.next=oe,T=te;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=oe:P.next=oe,he.lastBaseUpdate=te))}if(v!==null){var ge=b.baseState;T=0,he=oe=te=null,P=v;do{var le=P.lane&-536870913,de=le!==P.lane;if(de?(rt&le)===le:(u&le)===le){le!==0&&le===rs&&(Ad=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=n,He=P;le=r;var Nt=o;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,le);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,le=typeof Ae=="function"?Ae.call(Nt,ge,le):Ae,le==null)break e;ge=p({},ge,le);break e;case 2:zr=!0}}le=P.callback,le!==null&&(n.flags|=64,de&&(n.flags|=8192),de=b.callbacks,de===null?b.callbacks=[le]:de.push(le))}else de={lane:le,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(oe=he=de,te=ge):he=he.next=de,T|=le;if(P=P.next,P===null){if(P=b.shared.pending,P===null)break;de=P,P=de.next,de.next=null,b.lastBaseUpdate=de,b.shared.pending=null}}while(!0);he===null&&(te=ge),b.baseState=te,b.firstBaseUpdate=oe,b.lastBaseUpdate=he,v===null&&(b.shared.lanes=0),qr|=T,n.lanes=T,n.memoizedState=ge}}function Vg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Yg(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;nv?v:8;var T=M.T,P={};M.T=P,Yd(n,!1,r,o);try{var te=b(),oe=M.S;if(oe!==null&&oe(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=RS(te,u);yo(n,r,he,ei(n))}else yo(n,r,u,ei(n))}catch(ge){yo(n,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{B.p=v,T!==null&&P.types!==null&&(T.types=P.types),M.T=T}}function BS(){}function Gd(n,r,o,u){if(n.tag!==5)throw Error(a(476));var b=Sb(n).queue;Nb(n,b,r,X,o===null?BS:function(){return kb(n),o(u)})}function Sb(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:X},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function kb(n){var r=Sb(n);r.next===null&&(r=n.alternate.memoizedState),yo(n,r.next.queue,{},ei())}function Vd(){return yn(jo)}function Tb(){return Qt().memoizedState}function Ab(){return Qt().memoizedState}function US(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=ei();n=jr(o);var u=Ir(r,n,o);u!==null&&($n(u,r,o),mo(u,r,o)),r={cache:_d()},n.payload=r;return}r=r.return}}function HS(n,r,o){var u=ei();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},rc(n)?Mb(r,o):(o=ud(n,r,o,u),o!==null&&($n(o,n,u),Ob(o,r,u)))}function Cb(n,r,o){var u=ei();yo(n,r,o,u)}function yo(n,r,o,u){var b={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(rc(n))Mb(r,b);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var T=r.lastRenderedState,P=v(T,o);if(b.hasEagerState=!0,b.eagerState=P,Xn(P,T))return Bl(n,r,b,0),kt===null&&Il(),!1}catch{}finally{}if(o=ud(n,r,b,u),o!==null)return $n(o,n,u),Ob(o,r,u),!0}return!1}function Yd(n,r,o,u){if(u={lane:2,revertLane:kf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},rc(n)){if(r)throw Error(a(479))}else r=ud(n,o,u,2),r!==null&&$n(r,n,2)}function rc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function Mb(n,r){cs=Ql=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function Ob(n,r,o){if((o&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,o|=u,r.lanes=o,Ue(n,o)}}var vo={readContext:yn,use:ec,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};vo.useEffectEvent=Gt;var Rb={readContext:yn,use:ec,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:pb,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,nc(4194308,4,yb.bind(null,r,n),o)},useLayoutEffect:function(n,r){return nc(4194308,4,n,r)},useInsertionEffect:function(n,r){nc(4,2,n,r)},useMemo:function(n,r){var o=Rn();r=r===void 0?null:r;var u=n();if(Na){Wt(!0);try{n()}finally{Wt(!1)}}return o.memoizedState=[u,r],u},useReducer:function(n,r,o){var u=Rn();if(o!==void 0){var b=o(r);if(Na){Wt(!0);try{o(r)}finally{Wt(!1)}}}else b=r;return u.memoizedState=u.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},u.queue=n,n=n.dispatch=HS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Hd(n);var r=n.queue,o=Cb.bind(null,Xe,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:Pd,useDeferredValue:function(n,r){var o=Rn();return Fd(o,n,r)},useTransition:function(){var n=Hd(!1);return n=Nb.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var u=Xe,b=Rn();if(ot){if(o===void 0)throw Error(a(407));o=o()}else{if(o=r(),kt===null)throw Error(a(349));(rt&127)!==0||Jg(u,r,o)}b.memoizedState=o;var v={value:o,getSnapshot:r};return b.queue=v,pb(tb.bind(null,u,v,n),[n]),u.flags|=2048,ds(9,{destroy:void 0},eb.bind(null,u,v,o,r),null),o},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(ot){var o=Ii,u=ji;o=(u&~(1<<32-ut(u)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Wl++,0<\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof u.is=="string"?T.createElement("select",{is:u.is}):T.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?T.createElement(b,{is:u.is}):T.createElement(b)}}v[Ut]=r,v[mn]=u;e:for(T=r.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===r)break e;for(;T.sibling===null;){if(T.return===null||T.return===r)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}r.stateNode=v;e:switch(_n(v,b,u),b){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ar(r)}}return Lt(r),lf(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&ar(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=W.current,ns(r)){if(n=r.stateNode,o=r.memoizedProps,u=null,b=xn,b!==null)switch(b.tag){case 27:case 5:u=b.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||Q0(n.nodeValue,o)),n||Dr(r,!0)}else n=Nc(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return Lt(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(u=ns(r),o!==null){if(n===null){if(!u)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Ut]=r}else ba(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),n=!1}else o=bd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(Qn(r),r):(Qn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return Lt(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=ns(r),u!==null&&u.dehydrated!==null){if(n===null){if(!b)throw Error(a(318));if(b=r.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(a(317));b[Ut]=r}else ba(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),b=!1}else b=bd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return r.flags&256?(Qn(r),r):(Qn(r),null)}return Qn(r),(r.flags&128)!==0?(r.lanes=o,r):(o=u!==null,n=n!==null&&n.memoizedState!==null,o&&(u=r.child,b=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(b=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==b&&(u.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),cc(r,r.updateQueue),Lt(r),null);case 4:return ee(),n===null&&Mf(r.stateNode.containerInfo),Lt(r),null;case 10:return tr(r.type),Lt(r),null;case 19:if(V(Zt),u=r.memoizedState,u===null)return Lt(r),null;if(b=(r.flags&128)!==0,v=u.rendering,v===null)if(b)wo(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Zl(n),v!==null){for(r.flags|=128,wo(u,!1),n=v.updateQueue,r.updateQueue=n,cc(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Cg(o,n),o=o.sibling;return D(Zt,Zt.current&1|2),ot&&Ji(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>mc&&(r.flags|=128,b=!0,wo(u,!1),r.lanes=4194304)}else{if(!b)if(n=Zl(v),n!==null){if(r.flags|=128,b=!0,n=n.updateQueue,r.updateQueue=n,cc(r,n),wo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!ot)return Lt(r),null}else 2*ct()-u.renderingStartTime>mc&&o!==536870912&&(r.flags|=128,b=!0,wo(u,!1),r.lanes=4194304);u.isBackwards?(v.sibling=r.child,r.child=v):(n=u.last,n!==null?n.sibling=v:r.child=v,u.last=v)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ct(),n.sibling=null,o=Zt.current,D(Zt,b?o&1|2:o&1),ot&&Ji(r,u.treeForkCount),n):(Lt(r),null);case 22:case 23:return Qn(r),Md(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(o&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),o=r.updateQueue,o!==null&&cc(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048),n!==null&&V(va),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),tr(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function GS(n,r){switch(pd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return tr(en),ee(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return fe(r),null;case 31:if(r.memoizedState!==null){if(Qn(r),r.alternate===null)throw Error(a(340));ba()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Qn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));ba()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return V(Zt),null;case 4:return ee(),null;case 10:return tr(r.type),null;case 22:case 23:return Qn(r),Md(),n!==null&&V(va),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return tr(en),null;case 25:return null;default:return null}}function n0(n,r){switch(pd(r),r.tag){case 3:tr(en),ee();break;case 26:case 27:case 5:fe(r);break;case 4:ee();break;case 31:r.memoizedState!==null&&Qn(r);break;case 13:Qn(r);break;case 19:V(Zt);break;case 10:tr(r.type);break;case 22:case 23:Qn(r),Md(),n!==null&&V(va);break;case 24:tr(en)}}function Eo(n,r){try{var o=r.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var b=u.next;o=b;do{if((o.tag&n)===n){u=void 0;var v=o.create,T=o.inst;u=v(),T.destroy=u}o=o.next}while(o!==b)}}catch(P){yt(r,r.return,P)}}function Hr(n,r,o){try{var u=r.updateQueue,b=u!==null?u.lastEffect:null;if(b!==null){var v=b.next;u=v;do{if((u.tag&n)===n){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,b=r;var te=o,oe=P;try{oe()}catch(he){yt(b,te,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function i0(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{Yg(r,o)}catch(u){yt(n,n.return,u)}}}function r0(n,r,o){o.props=Sa(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){yt(n,r,u)}}function No(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(b){yt(n,r,b)}}function Bi(n,r){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(b){yt(n,r,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(b){yt(n,r,b)}else o.current=null}function a0(n){var r=n.type,o=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(b){yt(n,n.return,b)}}function cf(n,r,o){try{var u=n.stateNode;hk(u,n.type,o,r),u[mn]=r}catch(b){yt(n,n.return,b)}}function s0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Yr(n.type)||n.tag===4}function uf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||s0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Yr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function df(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Yr(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(df(n,r,o),n=n.sibling;n!==null;)df(n,r,o),n=n.sibling}function uc(n,r,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(u!==4&&(u===27&&Yr(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(uc(n,r,o),n=n.sibling;n!==null;)uc(n,r,o),n=n.sibling}function o0(n){var r=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,b=r.attributes;b.length;)r.removeAttributeNode(b[0]);_n(r,u,o),r[Ut]=n,r[mn]=o}catch(v){yt(n,n.return,v)}}var sr=!1,rn=!1,ff=!1,l0=typeof WeakSet=="function"?WeakSet:Set,gn=null;function VS(n,r){if(n=n.containerInfo,Df=Oc,n=vg(n),rd(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var b=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var T=0,P=-1,te=-1,oe=0,he=0,ge=n,le=null;t:for(;;){for(var de;ge!==o||b!==0&&ge.nodeType!==3||(P=T+b),ge!==v||u!==0&&ge.nodeType!==3||(te=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(de=ge.firstChild)!==null;)le=ge,ge=de;for(;;){if(ge===n)break t;if(le===o&&++oe===b&&(P=T),le===v&&++he===u&&(te=T),(de=ge.nextSibling)!==null)break;ge=le,le=ge.parentNode}ge=de}o=P===-1||te===-1?null:{start:P,end:te}}else o=null}o=o||{start:0,end:0}}else o=null;for(Lf={focusedElem:n,selectionRange:o},Oc=!1,gn=r;gn!==null;)if(r=gn,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,gn=n;else for(;gn!==null;){switch(r=gn,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o title"))),_n(v,u,o),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=mx("link","href",b).get(u+(o.href||""));if(T){for(var P=0;PNt&&(T=Nt,Nt=He,He=T);var ae=xg(P,He),ie=xg(P,Nt);if(ae&&ie&&(de.rangeCount!==1||de.anchorNode!==ae.node||de.anchorOffset!==ae.offset||de.focusNode!==ie.node||de.focusOffset!==ie.offset)){var se=ge.createRange();se.setStart(ae.node,ae.offset),de.removeAllRanges(),He>Nt?(de.addRange(se),de.extend(ie.node,ie.offset)):(se.setEnd(ie.node,ie.offset),de.addRange(se))}}}}for(ge=[],de=P;de=de.parentNode;)de.nodeType===1&&ge.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;Po?32:o,M.T=null,o=yf,yf=null;var v=Fr,T=dr;if(dn=0,gs=Fr=null,dr=0,(pt&6)!==0)throw Error(a(331));var P=pt;if(pt|=4,y0(v.current),g0(v,v.current,T,o),pt=P,Mo(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{B.p=b,M.T=u,I0(n,r)}}function U0(n,r,o){r=li(o,r),r=Qd(n.stateNode,r,2),n=Ir(n,r,2),n!==null&&(gt(n,2),Ui(n))}function yt(n,r,o){if(n.tag===3)U0(n,n,o);else for(;r!==null;){if(r.tag===3){U0(r,n,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Pr===null||!Pr.has(u))){n=li(o,n),o=Hb(2),u=Ir(r,o,2),u!==null&&($b(o,u,r,n),gt(u,2),Ui(u));break}}r=r.return}}function Ef(n,r,o){var u=n.pingCache;if(u===null){u=n.pingCache=new KS;var b=new Set;u.set(r,b)}else b=u.get(r),b===void 0&&(b=new Set,u.set(r,b));b.has(o)||(pf=!0,b.add(o),n=ek.bind(null,n,r,o),r.then(n,n))}function ek(n,r,o){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,kt===n&&(rt&o)===o&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-hc?(pt&2)===0&&bs(n,0):gf|=o,ps===rt&&(ps=0)),Ui(n)}function H0(n,r){r===0&&(r=Pe()),n=pa(n,r),n!==null&&(gt(n,r),Ui(n))}function tk(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),H0(n,o)}function nk(n,r){var o=0;switch(n.tag){case 31:case 13:var u=n.stateNode,b=n.memoizedState;b!==null&&(o=b.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),H0(n,o)}function ik(n,r){return Pt(n,r)}var vc=null,ys=null,Nf=!1,_c=!1,Sf=!1,Vr=0;function Ui(n){n!==ys&&n.next===null&&(ys===null?vc=ys=n:ys=ys.next=n),_c=!0,Nf||(Nf=!0,ak())}function Mo(n,r){if(!Sf&&_c){Sf=!0;do for(var o=!1,u=vc;u!==null;){if(n!==0){var b=u.pendingLanes;if(b===0)var v=0;else{var T=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=b&~(T&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,F0(u,v))}else v=rt,v=ne(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||me(u,v)||(o=!0,F0(u,v));u=u.next}while(o);Sf=!1}}function rk(){$0()}function $0(){_c=Nf=!1;var n=0;Vr!==0&&pk()&&(n=Vr);for(var r=ct(),o=null,u=vc;u!==null;){var b=u.next,v=q0(u,r);v===0?(u.next=null,o===null?vc=b:o.next=b,b===null&&(ys=o)):(o=u,(n!==0||(v&3)!==0)&&(_c=!0)),u=b}dn!==0&&dn!==5||Mo(n),Vr!==0&&(Vr=0)}function q0(n,r){for(var o=n.suspendedLanes,u=n.pingedLanes,b=n.expirationTimes,v=n.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&W0(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function ux(n,r,o){var u=vs;if(u&&typeof r=="string"&&r){var b=Sn(r);b='link[rel="'+n+'"][href="'+b+'"]',typeof o=="string"&&(b+='[crossorigin="'+o+'"]'),cx.has(b)||(cx.add(b),n={rel:n,crossOrigin:o,href:r},u.querySelector(b)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Nk(n){fr.D(n),ux("dns-prefetch",n,null)}function Sk(n,r){fr.C(n,r),ux("preconnect",n,r)}function kk(n,r,o){fr.L(n,r,o);var u=vs;if(u&&n&&r){var b='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(b+='[imagesrcset="'+Sn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(b+='[imagesizes="'+Sn(o.imageSizes)+'"]')):b+='[href="'+Sn(n)+'"]';var v=b;switch(r){case"style":v=_s(n);break;case"script":v=ws(n)}mi.has(v)||(n=p({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),mi.set(v,n),u.querySelector(b)!==null||r==="style"&&u.querySelector(Lo(v))||r==="script"&&u.querySelector(zo(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Tk(n,r){fr.m(n,r);var o=vs;if(o&&n){var u=r&&typeof r.as=="string"?r.as:"script",b='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=b;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=ws(n)}if(!mi.has(v)&&(n=p({rel:"modulepreload",href:n},r),mi.set(v,n),o.querySelector(b)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(zo(v)))return}u=o.createElement("link"),_n(u,"link",n),Ft(u),o.head.appendChild(u)}}}function Ak(n,r,o){fr.S(n,r,o);var u=vs;if(u&&n){var b=Li(u).hoistableStyles,v=_s(n);r=r||"default";var T=b.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Lo(v)))P.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":r},o),(o=mi.get(v))&&$f(n,o);var te=T=u.createElement("link");Ft(te),_n(te,"link",n),te._p=new Promise(function(oe,he){te.onload=oe,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,kc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},b.set(v,T)}}}function Ck(n,r){fr.X(n,r);var o=vs;if(o&&n){var u=Li(o).hoistableScripts,b=ws(n),v=u.get(b);v||(v=o.querySelector(zo(b)),v||(n=p({src:n,async:!0},r),(r=mi.get(b))&&qf(n,r),v=o.createElement("script"),Ft(v),_n(v,"link",n),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function Mk(n,r){fr.M(n,r);var o=vs;if(o&&n){var u=Li(o).hoistableScripts,b=ws(n),v=u.get(b);v||(v=o.querySelector(zo(b)),v||(n=p({src:n,async:!0,type:"module"},r),(r=mi.get(b))&&qf(n,r),v=o.createElement("script"),Ft(v),_n(v,"link",n),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function dx(n,r,o,u){var b=(b=W.current)?Sc(b):null;if(!b)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=_s(o.href),o=Li(b).hoistableStyles,u=o.get(r),u||(u={type:"style",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=_s(o.href);var v=Li(b).hoistableStyles,T=v.get(n);if(T||(b=b.ownerDocument||b,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=b.querySelector(Lo(n)))&&!v._p&&(T.instance=v,T.state.loading=5),mi.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},mi.set(n,o),v||Ok(b,n,o,T.state))),r&&u===null)throw Error(a(528,""));return T}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ws(o),o=Li(b).hoistableScripts,u=o.get(r),u||(u={type:"script",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function _s(n){return'href="'+Sn(n)+'"'}function Lo(n){return'link[rel="stylesheet"]['+n+"]"}function fx(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function Ok(n,r,o,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),_n(r,"link",o),Ft(r),n.head.appendChild(r))}function ws(n){return'[src="'+Sn(n)+'"]'}function zo(n){return"script[async]"+n}function hx(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(o.href)+'"]');if(u)return r.instance=u,Ft(u),u;var b=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",b),kc(u,o.precedence,n),r.instance=u;case"stylesheet":b=_s(o.href);var v=n.querySelector(Lo(b));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=fx(o),(b=mi.get(b))&&$f(u,b),v=(n.ownerDocument||n).createElement("link"),Ft(v);var T=v;return T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),r.state.loading|=4,kc(v,o.precedence,n),r.instance=v;case"script":return v=ws(o.src),(b=n.querySelector(zo(v)))?(r.instance=b,Ft(b),b):(u=o,(b=mi.get(v))&&(u=p({},o),qf(u,b)),n=n.ownerDocument||n,b=n.createElement("script"),Ft(b),_n(b,"link",u),n.head.appendChild(b),r.instance=b);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,kc(u,o.precedence,n));return r.instance}function kc(n,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=u.length?u[u.length-1]:null,v=b,T=0;T title"):null)}function Rk(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function gx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Dk(n,r,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var b=_s(u.href),v=r.querySelector(Lo(b));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Ac.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=v,Ft(v);return}v=r.ownerDocument||r,u=fx(u),(b=mi.get(b))&&$f(u,b),v=v.createElement("link"),Ft(v);var T=v;T._p=new Promise(function(P,te){T.onload=P,T.onerror=te}),_n(v,"link",u),o.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Ac.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var Pf=0;function Lk(n,r){return n.stylesheets&&n.count===0&&Mc(n,n.stylesheets),0Pf?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(b)}}:null}function Ac(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Cc=null;function Mc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Cc=new Map,r.forEach(zk,n),Cc=null,Ac.call(n))}function zk(n,r){if(!(r.state.loading&4)){var o=Cc.get(n);if(o)var u=o.get(null);else{o=new Map,Cc.set(n,o);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wf.exports=Qk(),Wf.exports}var Jk=Wk();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const n_=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const e2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const t2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase());/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hx=e=>{const t=t2(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var n2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const i2=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const r2=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:c,...d},h)=>re.createElement("svg",{ref:h,...n2,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:n_("lucide",s),...!l&&!i2(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,m])=>re.createElement(f,m)),...Array.isArray(l)?l:[l]]));/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Me=(e,t)=>{const i=re.forwardRef(({className:a,...s},l)=>re.createElement(r2,{ref:l,iconNode:t,className:n_(`lucide-${e2(Hx(e))}`,`lucide-${e}`,a),...s}));return i.displayName=Hx(e),i};/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const a2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],i_=Me("arrow-left",a2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const s2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],zs=Me("arrow-up-right",s2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const o2=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r_=Me("ban",o2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],c2=Me("bell-off",l2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const u2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],np=Me("bot",u2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const d2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],a_=Me("brain",d2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const f2=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],h2=Me("bug",f2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const m2=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],s_=Me("calendar-clock",m2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const p2=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],g2=Me("check-check",p2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const b2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],js=Me("check",b2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const x2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],o_=Me("chevron-down",x2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const y2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],v2=Me("chevron-right",y2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],l_=Me("circle-alert",_2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const w2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],c_=Me("circle-check-big",w2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const E2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],N2=Me("circle-check",E2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const S2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],k2=Me("circle-dot",S2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const T2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],A2=Me("circle",T2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],u_=Me("clock",C2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const M2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],O2=Me("code",M2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const R2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],rl=Me("copy",R2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],L2=Me("crosshair",D2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const z2=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],j2=Me("database",z2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const I2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],B2=Me("eye",I2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const U2=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],H2=Me("file-check-corner",U2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],d_=Me("file-text",$2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const q2=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],f_=Me("flag",q2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],F2=Me("git-merge",P2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G2=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],ip=Me("git-pull-request",G2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const V2=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Y2=Me("github",V2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const X2=[["path",{d:"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z",key:"148pdi"}]],K2=Me("gitlab",X2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],rp=Me("globe",Z2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Q2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Is=Me("history",Q2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const W2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],J2=Me("image",W2);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const eT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tT=Me("layers",eT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],iT=Me("layout-dashboard",nT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],aT=Me("list-todo",rT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nh=Me("loader-circle",sT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],lT=Me("lock",oT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],uT=Me("log-out",cT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const dT=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],ap=Me("mail",dT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const fT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],$x=Me("message-circle",fT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const hT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],mT=Me("message-square",hT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const pT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],gT=Me("network",pT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const bT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],xT=Me("pencil",bT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const yT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vT=Me("plus",yT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _T=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],h_=Me("puzzle",_T);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const wT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],m_=Me("radar",wT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ET=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],NT=Me("radio",ET);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ST=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],kT=Me("refresh-cw",ST);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const TT=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],AT=Me("rocket",TT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const CT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],MT=Me("rotate-ccw",CT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const OT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],p_=Me("search",OT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const RT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],DT=Me("shield-alert",RT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const LT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],sp=Me("shield-check",LT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const zT=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],jT=Me("sticky-note",zT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const IT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],g_=Me("terminal",IT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const BT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],UT=Me("trash-2",BT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const HT=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$T=Me("triangle-alert",HT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const qT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],b_=Me("users",qT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const PT=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],FT=Me("wand-sparkles",PT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const GT=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],x_=Me("waypoints",GT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const VT=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],cu=Me("wrench",VT);/** - * @license lucide-react v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const YT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],XT=Me("x",YT),KT={open:{label:"Open",color:"bg-red-500/10 text-red-400 border-red-500/20",dotColor:"bg-red-500",description:"Newly discovered, awaiting triage"},in_progress:{label:"In Progress",color:"bg-blue-500/10 text-blue-400 border-blue-500/20",dotColor:"bg-blue-500",description:"Someone is working on this"},snoozed:{label:"Snoozed",color:"bg-purple-500/10 text-purple-400 border-purple-500/20",dotColor:"bg-purple-500",description:"Temporarily hidden until a follow-up date"},fixed:{label:"Fixed",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",dotColor:"bg-emerald-500",description:"This vulnerability has been fixed"},ignored:{label:"Ignored",color:"bg-gray-500/10 text-gray-400 border-gray-500/20",dotColor:"bg-gray-500",description:"Acknowledged but accepted"}},ZT={trivial:{label:"Trivial",color:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20"},low:{label:"Low",color:"bg-blue-500/10 text-blue-400 border-blue-500/20"},medium:{label:"Medium",color:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20"},high:{label:"High",color:"bg-orange-500/10 text-orange-400 border-orange-500/20"}},y_={critical:"bg-red-500/20 text-red-500 border-red-500/30",high:"bg-orange-500/20 text-orange-500 border-orange-500/30",medium:"bg-yellow-500/20 text-yellow-500 border-yellow-500/30",low:"bg-blue-500/20 text-blue-500 border-blue-500/30"};function Bc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const QT={js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",php:"php",cs:"csharp",cpp:"cpp",c:"c",sh:"bash",bash:"bash",sql:"sql",html:"html",css:"css",json:"json",yaml:"yaml",yml:"yaml",xml:"xml"};function WT(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&QT[t]||null}function op(e){switch(e){case"critical":return"bg-red-500";case"high":return"bg-orange-500";case"medium":return"bg-yellow-500";default:return"bg-blue-500"}}async function lp(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}const Vs="https://app.strix.ai/api/auth/signup",JT="https://strix.ai/pricing",eA="ref=oss_viewer&utm_source=oss_viewer&utm_medium=local_viewer&utm_campaign=oss_viewer";function gr(e,t){const i=e.includes("?")?"&":"?";return`${e}${i}${eA}&utm_content=${encodeURIComponent(t)}`}function Ts(e,t={}){try{const i={event:e};for(const[s,l]of Object.entries(t))l!==void 0&&(i[s]=l);const a=JSON.stringify(i);typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",a):fetch("/api/event",{method:"POST",body:a,keepalive:!0})}catch{}}function gi(e,t){Ts("cta_clicked",{cta:e,surface:t})}function Au({label:e="Pro",className:t=""}){return g.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${t}`,style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:e})}function tA({text:e,children:t,className:i=""}){const[a,s]=re.useState(!1);return g.jsxs("span",{className:`relative inline-flex ${i}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&g.jsx("span",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-2 w-max max-w-[240px] -translate-x-1/2 rounded-md px-2.5 py-1.5 text-xs text-[#ddd] shadow-lg",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e})]})}function qx({item:e,surface:t}){const i=e.icon;return g.jsxs("a",{href:gr(Vs,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,t),title:e.desc,className:"group block cursor-pointer rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-4 text-left transition-colors hover:border-[#444]",children:[g.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[g.jsx(i,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(Au,{}),g.jsx(zs,{className:"h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]})]}),g.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:e.desc})]})}function nA({feature:e,active:t,onClick:i}){const a=e.icon;return g.jsxs("button",{onClick:i,className:`group flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${t?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:t?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(a,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:e.title}),g.jsx(Au,{label:e.tier})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:e.navDesc})]})]})}function Rs({label:e,desc:t,slug:i,icon:a,surface:s}){return g.jsx(tA,{text:t,children:g.jsxs("a",{href:gr(Vs,i),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(i,s),className:"group inline-flex items-center gap-2 rounded-lg border border-[#222] bg-[rgba(255,255,255,0.02)] px-3 py-2 text-sm text-[#aaa] transition-colors hover:border-[#444] hover:text-white",children:[g.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),g.jsx("span",{children:e}),g.jsx(Au,{className:"ml-0.5"})]})})}function v_(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t{const i=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),__=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),uu="-",Px=[],sA="arbitrary..",oA=e=>{const t=cA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return lA(c);const d=c.split(uu),h=d[0]===""&&d.length>1?1:0;return w_(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=i[c];return h?f?rA(f,h):h:f||Px}return i[c]||Px}}},w_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],l=i.nextPart.get(s);if(l){const f=w_(e,t+1,l);if(f)return f}const c=i.validators;if(c===null)return;const d=t===0?e.join(uu):e.slice(t).join(uu),h=c.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?sA+a:void 0})(),cA=e=>{const{theme:t,classGroups:i}=e;return uA(i,t)},uA=(e,t)=>{const i=__();for(const a in e){const s=e[a];cp(s,i,a,t)}return i},cp=(e,t,i,a)=>{const s=e.length;for(let l=0;l{if(typeof e=="string"){fA(e,t,i);return}if(typeof e=="function"){hA(e,t,i,a);return}mA(e,t,i,a)},fA=(e,t,i)=>{const a=e===""?t:E_(t,e);a.classGroupId=i},hA=(e,t,i,a)=>{if(pA(e)){cp(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(aA(i,e))},mA=(e,t,i,a)=>{const s=Object.entries(e),l=s.length;for(let c=0;c{let i=e;const a=t.split(uu),s=a.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,gA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(l,c)=>{i[l]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(l){let c=i[l];if(c!==void 0)return c;if((c=a[l])!==void 0)return s(l,c),c},set(l,c){l in i?i[l]=c:s(l,c)}}},Nm="!",Fx=":",bA=[],Gx=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),xA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const l=[];let c=0,d=0,h=0,f;const m=s.length;for(let N=0;Nh?f-h:void 0;return Gx(l,x,y,_)};if(t){const s=t+Fx,l=a;a=c=>c.startsWith(s)?l(c.slice(s.length)):Gx(bA,!1,c,void 0,!0)}if(i){const s=a;a=l=>i({className:l,parseClassName:s})}return a},yA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let l=0;l0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},vA=e=>({cache:gA(e.cacheSize),parseClassName:xA(e),sortModifiers:yA(e),postfixLookupClassGroupIds:_A(e),...oA(e)}),_A=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(wA);let f="";for(let m=h.length-1;m>=0;m-=1){const p=h[m],{isExternal:y,modifiers:x,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=i(p);if(y){f=p+(f.length>0?" "+f:f);continue}let w=!!S,k;if(w){const H=N.substring(0,S);k=a(H);const j=k&&c[k]?a(N):void 0;j&&j!==k&&(k=j,w=!1)}else k=a(N);if(!k){if(!w){f=p+(f.length>0?" "+f:f);continue}if(k=a(N),!k){f=p+(f.length>0?" "+f:f);continue}w=!1}const E=x.length===0?"":x.length===1?x[0]:l(x).join(":"),O=_?E+Nm:E,I=O+k;if(d.indexOf(I)>-1)continue;d.push(I);const R=s(k,w);for(let H=0;H0?" "+f:f)}return f},NA=(...e)=>{let t=0,i,a,s="";for(;t{if(typeof e=="string")return e;let t,i="";for(let a=0;a{let i,a,s,l;const c=h=>{const f=t.reduce((m,p)=>p(m),e());return i=vA(f),a=i.cache.get,s=i.cache.set,l=d,d(h)},d=h=>{const f=a(h);if(f)return f;const m=EA(h,i);return s(h,m),m};return l=c,(...h)=>l(NA(...h))},kA=[],fn=e=>{const t=i=>i[e]||kA;return t.isThemeGetter=!0,t},S_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,AA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,MA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jr=e=>TA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Hi=e=>!!e&&Number.isInteger(Number(e)),ih=e=>e.endsWith("%")&&We(e.slice(0,-1)),hr=e=>AA.test(e),T_=()=>!0,DA=e=>CA.test(e)&&!MA.test(e),up=()=>!1,LA=e=>OA.test(e),zA=e=>RA.test(e),jA=e=>!ke(e)&&!Te(e),IA=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),BA=e=>sa(e,M_,up),ke=e=>S_.test(e),Aa=e=>sa(e,O_,DA),Vx=e=>sa(e,VA,We),UA=e=>sa(e,D_,T_),HA=e=>sa(e,R_,up),Yx=e=>sa(e,A_,up),$A=e=>sa(e,C_,zA),Uc=e=>sa(e,L_,LA),Te=e=>k_.test(e),qo=e=>qa(e,O_),qA=e=>qa(e,R_),Xx=e=>qa(e,A_),PA=e=>qa(e,M_),FA=e=>qa(e,C_),Hc=e=>qa(e,L_,!0),GA=e=>qa(e,D_,!0),sa=(e,t,i)=>{const a=S_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},qa=(e,t,i=!1)=>{const a=k_.exec(e);return a?a[1]?t(a[1]):i:!1},A_=e=>e==="position"||e==="percentage",C_=e=>e==="image"||e==="url",M_=e=>e==="length"||e==="size"||e==="bg-size",O_=e=>e==="length",VA=e=>e==="number",R_=e=>e==="family-name",D_=e=>e==="number"||e==="weight",L_=e=>e==="shadow",YA=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),l=fn("leading"),c=fn("breakpoint"),d=fn("container"),h=fn("spacing"),f=fn("radius"),m=fn("shadow"),p=fn("inset-shadow"),y=fn("text-shadow"),x=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),w=fn("ease"),k=fn("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...O(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],j=()=>[Te,ke,h],Z=()=>[Jr,"full","auto",...j()],z=()=>[Hi,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Hi,Te,ke]},Hi,Te,ke],K=()=>[Hi,"auto",Te,ke],Y=()=>["auto","min","max","fr",Te,ke],C=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...j()],B=()=>[Jr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],X=()=>[Jr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],F=()=>[Jr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],A=()=>[e,Te,ke],L=()=>[...O(),Xx,Yx,{position:[Te,ke]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",PA,BA,{size:[Te,ke]}],G=()=>[ih,qo,Aa],U=()=>["","none","full",f,Te,ke],W=()=>["",We,qo,Aa],J=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[We,ih,Xx,Yx],ce=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[Jr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[T_],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[jA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hr],shadow:[hr],spacing:["px",We],text:[hr],"text-shadow":[hr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jr,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[IA],columns:[{columns:[We,ke,Te,d]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Hi,"auto",Te,ke]}],basis:[{basis:[Jr,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Jr,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Hi,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...C(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...C()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":C()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...F()]}],"min-block-size":[{"min-block":["auto",...F()]}],"max-block-size":[{"max-block":["none",...F()]}],w:[{w:[d,"screen",...B()]}],"min-w":[{"min-w":[d,"screen","none",...B()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",i,qo,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,GA,UA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ih,ke]}],"font-family":[{font:[qA,HA,t]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Te,ke]}],"line-clamp":[{"line-clamp":[We,"none",Te,Vx]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",Te,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,Aa]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[We,"auto",Te,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[Hi,Te,ke]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hi,Te,ke],radial:["",Te,ke],conic:[Hi,Te,ke]},FA,$A]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,qo,Aa]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",m,Hc,Uc]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",p,Hc,Uc]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[We,Aa]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",y,Hc,Uc]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[We,Te,ke]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Te,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,ke]}],filter:[{filter:["","none",Te,ke]}],blur:[{blur:ce()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,Hc,Uc]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",We,Te,ke]}],"hue-rotate":[{"hue-rotate":[We,Te,ke]}],invert:[{invert:["",We,Te,ke]}],saturate:[{saturate:[We,Te,ke]}],sepia:[{sepia:["",We,Te,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,ke]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[We,Te,ke]}],"backdrop-contrast":[{"backdrop-contrast":[We,Te,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,Te,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,Te,ke]}],"backdrop-invert":[{"backdrop-invert":["",We,Te,ke]}],"backdrop-opacity":[{"backdrop-opacity":[We,Te,ke]}],"backdrop-saturate":[{"backdrop-saturate":[We,Te,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",We,Te,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",Te,ke]}],ease:[{ease:["linear","initial",w,Te,ke]}],delay:[{delay:[We,Te,ke]}],animate:[{animate:["none",k,Te,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Te,ke]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],zoom:[{zoom:[Hi,Te,ke]}],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te,ke]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[We,qo,Aa,Vx]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},XA=SA(YA);function $c(...e){return XA(iA(e))}function KA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Sm(e){const t=new Date(e),a=Math.floor((new Date().getTime()-t.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:KA(e)}function ZA(e){return`STRIX-${e}`}function QA(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const WA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eC={};function Kx(e,t){return(eC.jsx?JA:WA).test(e)}const tC=/[ \t\n\f\r]/g;function nC(e){return typeof e=="object"?e.type==="text"?Zx(e.value):!1:Zx(e)}function Zx(e){return e.replace(tC,"")===""}class xl{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}xl.prototype.normal={};xl.prototype.property={};xl.prototype.space=void 0;function z_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new xl(i,a,t)}function km(e){return e.toLowerCase()}class Gn{constructor(t,i){this.attribute=i,this.property=t}}Gn.prototype.attribute="";Gn.prototype.booleanish=!1;Gn.prototype.boolean=!1;Gn.prototype.commaOrSpaceSeparated=!1;Gn.prototype.commaSeparated=!1;Gn.prototype.defined=!1;Gn.prototype.mustUseProperty=!1;Gn.prototype.number=!1;Gn.prototype.overloadedBoolean=!1;Gn.prototype.property="";Gn.prototype.spaceSeparated=!1;Gn.prototype.space=void 0;let iC=0;const Ge=Pa(),an=Pa(),Tm=Pa(),ve=Pa(),Tt=Pa(),Da=Pa(),ti=Pa();function Pa(){return 2**++iC}const Am=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:Da,number:ve,overloadedBoolean:Tm,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),rh=Object.keys(Am);class dp extends Gn{constructor(t,i,a,s){let l=-1;if(super(t,i),Qx(this,"space",s),typeof a=="number")for(;++l4&&i.slice(0,4)==="data"&&lC.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Wx,dC);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Wx.test(l)){let c=l.replace(oC,uC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=dp}return new s(a,t)}function uC(e){return"-"+e.toLowerCase()}function dC(e){return e.charAt(1).toUpperCase()}const fC=z_([j_,rC,U_,H_,$_],"html"),fp=z_([j_,aC,U_,H_,$_],"svg");function hC(e){return e.join(" ").trim()}var Ns={},ah,Jx;function mC(){if(Jx)return ah;Jx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=` -`,f="/",m="*",p="",y="comment",x="declaration";function _(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var k=1,E=1;function O(C){var $=C.match(t);$&&(k+=$.length);var M=C.lastIndexOf(h);E=~M?C.length-M:E+C.length}function I(){var C={line:k,column:E};return function($){return $.position=new R(C),Z(),$}}function R(C){this.start=C,this.end={line:k,column:E},this.source=w.source}R.prototype.content=S;function H(C){var $=new Error(w.source+":"+k+":"+E+": "+C);if($.reason=C,$.filename=w.source,$.line=k,$.column=E,$.source=S,!w.silent)throw $}function j(C){var $=C.exec(S);if($){var M=$[0];return O(M),S=S.slice(M.length),$}}function Z(){j(i)}function z(C){var $;for(C=C||[];$=q();)$!==!1&&C.push($);return C}function q(){var C=I();if(!(f!=S.charAt(0)||m!=S.charAt(1))){for(var $=2;p!=S.charAt($)&&(m!=S.charAt($)||f!=S.charAt($+1));)++$;if($+=2,p===S.charAt($-1))return H("End of comment missing");var M=S.slice(2,$-2);return E+=2,O(M),S=S.slice($),E+=2,C({type:y,comment:M})}}function K(){var C=I(),$=j(a);if($){if(q(),!j(s))return H("property missing ':'");var M=j(l),B=C({type:x,property:N($[0].replace(e,p)),value:M?N(M[0].replace(e,p)):p});return j(c),B}}function Y(){var C=[];z(C);for(var $;$=K();)$!==!1&&(C.push($),z(C));return C}return Z(),Y()}function N(S){return S?S.replace(d,p):p}return ah=_,ah}var ey;function pC(){if(ey)return Ns;ey=1;var e=Ns&&Ns.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=i;const t=e(mC());function i(a,s){let l=null;if(!a||typeof a!="string")return l;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:f,value:m}=h;d?s(f,m,h):m&&(l=l||{},l[f]=m)}),l}return Ns}var Po={},ty;function gC(){if(ty)return Po;ty=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(f){return!f||i.test(f)||e.test(f)},c=function(f,m){return m.toUpperCase()},d=function(f,m){return"".concat(m,"-")},h=function(f,m){return m===void 0&&(m={}),l(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Po.camelCase=h,Po}var Fo,ny;function bC(){if(ny)return Fo;ny=1;var e=Fo&&Fo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(pC()),i=gC();function a(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,i.camelCase)(d,l)]=h)}),c}return a.default=a,Fo=a,Fo}var xC=bC();const yC=gl(xC),q_=P_("end"),hp=P_("start");function P_(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function vC(e){const t=hp(e),i=q_(e);if(t&&i)return{start:t,end:i}}function Jo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iy(e.position):"start"in e||"end"in e?iy(e):"line"in e||"column"in e?Cm(e):""}function Cm(e){return ry(e&&e.line)+":"+ry(e&&e.column)}function iy(e){return Cm(e&&e.start)+"-"+Cm(e&&e.end)}function ry(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let s="",l={},c=!1;if(i&&("line"in i&&"column"in i?l={place:i}:"start"in i&&"end"in i?l={place:i}:"type"in i?l={ancestors:[i],place:i.position}:l={...i}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?l.ruleId=a:(l.source=a.slice(0,h),l.ruleId=a.slice(h+1))}if(!l.place&&l.ancestors&&l.ancestors){const h=l.ancestors[l.ancestors.length-1];h&&(l.place=h.position)}const d=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=Jo(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="";An.prototype.name="";An.prototype.reason="";An.prototype.message="";An.prototype.stack="";An.prototype.column=void 0;An.prototype.line=void 0;An.prototype.ancestors=void 0;An.prototype.cause=void 0;An.prototype.fatal=void 0;An.prototype.place=void 0;An.prototype.ruleId=void 0;An.prototype.source=void 0;const mp={}.hasOwnProperty,_C=new Map,wC=/[A-Z]/g,EC=new Set(["table","tbody","thead","tfoot","tr"]),NC=new Set(["td","th"]),F_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function SC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=DC(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=RC(i,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fp:fC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=G_(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function G_(e,t,i){if(t.type==="element")return kC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return TC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return CC(e,t,i);if(t.type==="mdxjsEsm")return AC(e,t);if(t.type==="root")return MC(e,t,i);if(t.type==="text")return OC(e,t)}function kC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=fp,e.schema=s),e.ancestors.push(t);const l=Y_(e,t.tagName,!1),c=LC(e,t);let d=gp(e,t);return EC.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!nC(h):!0})),V_(e,c,l,t),pp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,l,c,i)}function TC(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}al(e,t.position)}function AC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);al(e,t.position)}function CC(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=fp,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:Y_(e,t.name,!0),c=zC(e,t),d=gp(e,t);return V_(e,c,l,t),pp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,l,c,i)}function MC(e,t,i){const a={};return pp(a,gp(e,t)),e.create(t,e.Fragment,a,i)}function OC(e,t){return t.value}function V_(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function pp(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function RC(e,t,i){return a;function a(s,l,c,d){const f=Array.isArray(c.children)?i:t;return d?f(l,c,d):f(l,c)}}function DC(e,t){return i;function i(a,s,l,c){const d=Array.isArray(l.children),h=hp(a);return t(s,l,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function LC(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&mp.call(t.properties,s)){const l=jC(e,s,t.properties[s]);if(l){const[c,d]=l;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&NC.has(t.tagName)?a=d:i[c]=d}}if(a){const l=i.style||(i.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function zC(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const c=l.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else al(e,t.position);else{const s=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,l=e.evaluater.evaluateExpression(d.expression)}else al(e,t.position);else l=a.value===null?!0:a.value;i[s]=l}return i}function gp(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:_C;for(;++as?0:s+t:t=t>s?s:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);l0?(ii(e,e.length,0,t),e):t}const oy={}.hasOwnProperty;function K_(e){const t={};let i=-1;for(;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Mi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=oa(/[A-Za-z]/),Tn=oa(/[\dA-Za-z]/),GC=oa(/[#-'*+\--9=?A-Z^-~]/);function du(e){return e!==null&&(e<32||e===127)}const Mm=oa(/\d/),VC=oa(/[\dA-Fa-f]/),YC=oa(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function At(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const Cu=oa(new RegExp("\\p{P}|\\p{S}","u")),ja=oa(/\s/);function oa(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Xs(e){const t=[];let i=-1,a=0,s=0;for(;++i55295&&l<57344){const d=e.charCodeAt(i+1);l<56320&&d>56319&&d<57344?(c=String.fromCharCode(l,d),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+s+1,c=""),s&&(i+=s,s=0)}return t.join("")+e.slice(a)}function lt(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(h){return tt(h)?(e.enter(i),d(h)):t(h)}function d(h){return tt(h)&&l++c))return;const H=t.events.length;let j=H,Z,z;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(Z){z=t.events[j][1].end;break}Z=!0}for(w(a),R=H;RE;){const I=i[O];t.containerState=I[1],I[0].exit.call(t,e)}i.length=E}function k(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function WC(e,t,i){return lt(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bs(e){if(e===null||At(e)||ja(e))return 1;if(Cu(e))return 2}function Mu(e,t,i){const a=[];let s=-1;for(;++s1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const p={...e[a][1].end},y={...e[i][1].start};cy(p,-h),cy(y,h),c={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},l={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},f=[],e[a][1].end.offset-e[a][1].start.offset&&(f=pi(f,[["enter",e[a][1],t],["exit",e[a][1],t]])),f=pi(f,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),f=pi(f,Mu(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),f=pi(f,[["exit",l,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,f=pi(f,[["enter",e[i][1],t],["exit",e[i][1],t]])):m=0,ii(e,a-1,i-a+3,f),i=a+f.length-m-2;break}}for(i=-1;++i0&&tt(R)?lt(e,k,"linePrefix",l+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(uy,N,O)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),E)}function O(R){return e.exit("codeFenced"),t(R)}function I(R,H,j){let Z=0;return z;function z($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),q}function q($){return R.enter("codeFencedFence"),tt($)?lt(R,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):K($)}function K($){return $===d?(R.enter("codeFencedFenceSequence"),Y($)):j($)}function Y($){return $===d?(Z++,R.consume($),Y):Z>=c?(R.exit("codeFencedFenceSequence"),tt($)?lt(R,C,"whitespace")($):C($)):j($)}function C($){return $===null||Be($)?(R.exit("codeFencedFence"),H($)):j($)}}}function uM(e,t,i){const a=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const oh={name:"codeIndented",tokenize:fM},dM={partial:!0,tokenize:hM};function fM(e,t,i){const a=this;return s;function s(f){return e.enter("codeIndented"),lt(e,l,"linePrefix",5)(f)}function l(f){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(f):i(f)}function c(f){return f===null?h(f):Be(f)?e.attempt(dM,c,h)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||Be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function h(f){return e.exit("codeIndented"),t(f)}}function hM(e,t,i){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?i(c):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):lt(e,l,"linePrefix",5)(c)}function l(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Be(c)?s(c):i(c)}}const mM={name:"codeText",previous:gM,resolve:pM,tokenize:bM};function pM(e){let t=e.length-4,i=3,a,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const s=i||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Go(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Go(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Go(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function tw(e,t,i,a,s,l,c,d,h){const f=h||Number.POSITIVE_INFINITY;let m=0;return p;function p(w){return w===60?(e.enter(a),e.enter(s),e.enter(l),e.consume(w),e.exit(l),y):w===null||w===32||w===41||du(w)?i(w):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(w))}function y(w){return w===62?(e.enter(l),e.consume(w),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===62?(e.exit("chunkString"),e.exit(d),y(w)):w===null||w===60||Be(w)?i(w):(e.consume(w),w===92?_:x)}function _(w){return w===60||w===62||w===92?(e.consume(w),x):x(w)}function N(w){return!m&&(w===null||w===41||At(w))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(w)):m999||x===null||x===91||x===93&&!h||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(e.exit(l),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||Be(x)||d++>999?(e.exit("chunkString"),m(x)):(e.consume(x),h||(h=!tt(x)),x===92?y:p)}function y(x){return x===91||x===92||x===93?(e.consume(x),d++,p):p(x)}}function iw(e,t,i,a,s,l){let c;return d;function d(y){return y===34||y===39||y===40?(e.enter(a),e.enter(s),e.consume(y),e.exit(s),c=y===40?41:y,h):i(y)}function h(y){return y===c?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),t):(e.enter(l),f(y))}function f(y){return y===c?(e.exit(l),h(c)):y===null?i(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),lt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===c||y===null||Be(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?p:m)}function p(y){return y===c||y===92?(e.consume(y),m):m(y)}}function el(e,t){let i;return a;function a(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,a):tt(s)?lt(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const SM={name:"definition",tokenize:TM},kM={partial:!0,tokenize:AM};function TM(e,t,i){const a=this;let s;return l;function l(x){return e.enter("definition"),c(x)}function c(x){return nw.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return s=Mi(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):i(x)}function h(x){return At(x)?el(e,f)(x):f(x)}function f(x){return tw(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(kM,p,p)(x)}function p(x){return tt(x)?lt(e,y,"whitespace")(x):y(x)}function y(x){return x===null||Be(x)?(e.exit("definition"),a.parser.defined.push(s),t(x)):i(x)}}function AM(e,t,i){return a;function a(d){return At(d)?el(e,s)(d):i(d)}function s(d){return iw(e,l,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function l(d){return tt(d)?lt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const CM={name:"hardBreakEscape",tokenize:MM};function MM(e,t,i){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Be(l)?(e.exit("hardBreakEscape"),t(l)):i(l)}}const OM={name:"headingAtx",resolve:RM,tokenize:DM};function RM(e,t){let i=e.length-2,a=3,s,l;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},l={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function DM(e,t,i){let a=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&a++<6?(e.consume(m),c):m===null||At(m)?(e.exit("atxHeadingSequence"),d(m)):i(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Be(m)?(e.exit("atxHeading"),t(m)):tt(m)?lt(e,d,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),d(m))}function f(m){return m===null||m===35||At(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),f)}}const LM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],fy=["pre","script","style","textarea"],zM={concrete:!0,name:"htmlFlow",resolveTo:BM,tokenize:UM},jM={partial:!0,tokenize:$M},IM={partial:!0,tokenize:HM};function BM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function UM(e,t,i){const a=this;let s,l,c,d,h;return f;function f(D){return m(D)}function m(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),p}function p(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),l=!0,N):D===63?(e.consume(D),s=3,a.interrupt?t:A):Dn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function y(D){return D===45?(e.consume(D),s=2,x):D===91?(e.consume(D),s=5,d=0,_):Dn(D)?(e.consume(D),s=4,a.interrupt?t:A):i(D)}function x(D){return D===45?(e.consume(D),a.interrupt?t:A):i(D)}function _(D){const G="CDATA[";return D===G.charCodeAt(d++)?(e.consume(D),d===G.length?a.interrupt?t:K:_):i(D)}function N(D){return Dn(D)?(e.consume(D),c=String.fromCharCode(D),S):i(D)}function S(D){if(D===null||D===47||D===62||At(D)){const G=D===47,U=c.toLowerCase();return!G&&!l&&fy.includes(U)?(s=1,a.interrupt?t(D):K(D)):LM.includes(c.toLowerCase())?(s=6,G?(e.consume(D),w):a.interrupt?t(D):K(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(D):l?k(D):E(D))}return D===45||Tn(D)?(e.consume(D),c+=String.fromCharCode(D),S):i(D)}function w(D){return D===62?(e.consume(D),a.interrupt?t:K):i(D)}function k(D){return tt(D)?(e.consume(D),k):z(D)}function E(D){return D===47?(e.consume(D),z):D===58||D===95||Dn(D)?(e.consume(D),O):tt(D)?(e.consume(D),E):z(D)}function O(D){return D===45||D===46||D===58||D===95||Tn(D)?(e.consume(D),O):I(D)}function I(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),I):E(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?i(D):D===34||D===39?(e.consume(D),h=D,H):tt(D)?(e.consume(D),R):j(D)}function H(D){return D===h?(e.consume(D),h=null,Z):D===null||Be(D)?i(D):(e.consume(D),H)}function j(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||At(D)?I(D):(e.consume(D),j)}function Z(D){return D===47||D===62||tt(D)?E(D):i(D)}function z(D){return D===62?(e.consume(D),q):i(D)}function q(D){return D===null||Be(D)?K(D):tt(D)?(e.consume(D),q):i(D)}function K(D){return D===45&&s===2?(e.consume(D),M):D===60&&s===1?(e.consume(D),B):D===62&&s===4?(e.consume(D),L):D===63&&s===3?(e.consume(D),A):D===93&&s===5?(e.consume(D),F):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(jM,V,Y)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),Y(D)):(e.consume(D),K)}function Y(D){return e.check(IM,C,V)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),$}function $(D){return D===null||Be(D)?Y(D):(e.enter("htmlFlowData"),K(D))}function M(D){return D===45?(e.consume(D),A):K(D)}function B(D){return D===47?(e.consume(D),c="",X):K(D)}function X(D){if(D===62){const G=c.toLowerCase();return fy.includes(G)?(e.consume(D),L):K(D)}return Dn(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),X):K(D)}function F(D){return D===93?(e.consume(D),A):K(D)}function A(D){return D===62?(e.consume(D),L):D===45&&s===2?(e.consume(D),A):K(D)}function L(D){return D===null||Be(D)?(e.exit("htmlFlowData"),V(D)):(e.consume(D),L)}function V(D){return e.exit("htmlFlow"),t(D)}}function HM(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):i(c)}function l(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function $M(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(yl,t,i)}}const qM={name:"htmlText",tokenize:PM};function PM(e,t,i){const a=this;let s,l,c;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),h}function h(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),I):A===63?(e.consume(A),E):Dn(A)?(e.consume(A),j):i(A)}function f(A){return A===45?(e.consume(A),m):A===91?(e.consume(A),l=0,_):Dn(A)?(e.consume(A),k):i(A)}function m(A){return A===45?(e.consume(A),x):i(A)}function p(A){return A===null?i(A):A===45?(e.consume(A),y):Be(A)?(c=p,B(A)):(e.consume(A),p)}function y(A){return A===45?(e.consume(A),x):p(A)}function x(A){return A===62?M(A):A===45?y(A):p(A)}function _(A){const L="CDATA[";return A===L.charCodeAt(l++)?(e.consume(A),l===L.length?N:_):i(A)}function N(A){return A===null?i(A):A===93?(e.consume(A),S):Be(A)?(c=N,B(A)):(e.consume(A),N)}function S(A){return A===93?(e.consume(A),w):N(A)}function w(A){return A===62?M(A):A===93?(e.consume(A),w):N(A)}function k(A){return A===null||A===62?M(A):Be(A)?(c=k,B(A)):(e.consume(A),k)}function E(A){return A===null?i(A):A===63?(e.consume(A),O):Be(A)?(c=E,B(A)):(e.consume(A),E)}function O(A){return A===62?M(A):E(A)}function I(A){return Dn(A)?(e.consume(A),R):i(A)}function R(A){return A===45||Tn(A)?(e.consume(A),R):H(A)}function H(A){return Be(A)?(c=H,B(A)):tt(A)?(e.consume(A),H):M(A)}function j(A){return A===45||Tn(A)?(e.consume(A),j):A===47||A===62||At(A)?Z(A):i(A)}function Z(A){return A===47?(e.consume(A),M):A===58||A===95||Dn(A)?(e.consume(A),z):Be(A)?(c=Z,B(A)):tt(A)?(e.consume(A),Z):M(A)}function z(A){return A===45||A===46||A===58||A===95||Tn(A)?(e.consume(A),z):q(A)}function q(A){return A===61?(e.consume(A),K):Be(A)?(c=q,B(A)):tt(A)?(e.consume(A),q):Z(A)}function K(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),s=A,Y):Be(A)?(c=K,B(A)):tt(A)?(e.consume(A),K):(e.consume(A),C)}function Y(A){return A===s?(e.consume(A),s=void 0,$):A===null?i(A):Be(A)?(c=Y,B(A)):(e.consume(A),Y)}function C(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||At(A)?Z(A):(e.consume(A),C)}function $(A){return A===47||A===62||At(A)?Z(A):i(A)}function M(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):i(A)}function B(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),X}function X(A){return tt(A)?lt(e,F,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):F(A)}function F(A){return e.enter("htmlTextData"),c(A)}}const yp={name:"labelEnd",resolveAll:YM,resolveTo:XM,tokenize:KM},FM={tokenize:ZM},GM={tokenize:QM},VM={tokenize:WM};function YM(e){let t=-1;const i=[];for(;++t=3&&(f===null||Be(f))?(e.exit("thematicBreak"),t(f)):i(f)}function h(f){return f===s?(e.consume(f),a++,h):(e.exit("thematicBreakSequence"),tt(f)?lt(e,d,"whitespace")(f):d(f))}}const qn={continuation:{tokenize:lO},exit:uO,name:"list",tokenize:oO},aO={partial:!0,tokenize:dO},sO={partial:!0,tokenize:cO};function oO(e,t,i){const a=this,s=a.events[a.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(x){const _=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:Mm(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(iu,i,f)(x):f(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return i(x)}function h(x){return Mm(x)&&++c<10?(e.consume(x),h):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),f(x)):i(x)}function f(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(yl,a.interrupt?i:m,e.attempt(aO,y,p))}function m(x){return a.containerState.initialBlankLine=!0,l++,y(x)}function p(x){return tt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),y):i(x)}function y(x){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function lO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(yl,s,l);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,lt(e,t,"listItemIndent",a.containerState.size+1)(d)}function l(d){return a.containerState.furtherBlankLines||!tt(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(sO,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,lt(e,e.attempt(qn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function cO(e,t,i){const a=this;return lt(e,s,"listItemIndent",a.containerState.size+1);function s(l){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(l):i(l)}}function uO(e){e.exit(this.containerState.type)}function dO(e,t,i){const a=this;return lt(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=a.events[a.events.length-1];return!tt(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):i(l)}}const hy={name:"setextUnderline",resolveTo:fO,tokenize:hO};function fO(e,t){let i=e.length,a,s,l;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!l&&e[i][1].type==="definition"&&(l=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function hO(e,t,i){const a=this;let s;return l;function l(f){let m=a.events.length,p;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){p=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||p)?(e.enter("setextHeadingLine"),s=f,c(f)):i(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===s?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),tt(f)?lt(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):i(f)}}const mO={tokenize:pO};function pO(e){const t=this,i=e.attempt(yl,a,e.attempt(this.parser.constructs.flowInitial,s,lt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(vM,s)),"linePrefix")));return i;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const gO={resolveAll:aw()},bO=rw("string"),xO=rw("text");function rw(e){return{resolveAll:aw(e==="text"?yO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],l=i.attempt(s,c,d);return c;function c(m){return f(m)?l(m):d(m)}function d(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),h}function h(m){return f(m)?(i.exit("data"),l(m)):(i.consume(m),h)}function f(m){if(m===null)return!0;const p=s[m];let y=-1;if(p)for(;++y-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function RO(e,t){let i=-1;const a=[];let s;for(;++i0){const ln=Oe.tokenStack[Oe.tokenStack.length-1];(ln[1]||py).call(Oe,void 0,ln[0])}for(xe.position={start:ea(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:ea(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function VO(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function YO(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function XO(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Xs(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=l+1,d+=1,e.footnoteCounts.set(a,d);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const f={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,f),e.applyData(t,f)}function KO(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function ZO(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function lw(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function QO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return lw(e,t);const s={src:Xs(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function WO(e,t){const i={src:Xs(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function JO(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function eR(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return lw(e,t);const s={href:Xs(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function tR(e,t){const i={href:Xs(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function nR(e,t,i){const a=e.all(t),s=i?iR(i):cw(t),l={},c=[];if(typeof t.checked=="boolean"){const m=a[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},a.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let d=-1;for(;++d1}function rR(e,t){const i={},a=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++s0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=hp(t.children[1]),h=q_(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function cR(e,t,i){const a=i?i.children:void 0,l=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let h=-1;const f=[];for(;++h0,!0),a[0]),s=a.index+a[0].length,a=i.exec(t);return l.push(xy(t.slice(s),s>0,!1)),l.join("")}function xy(e,t,i){let a=0,s=e.length;if(t){let l=e.codePointAt(a);for(;l===gy||l===by;)a++,l=e.codePointAt(a)}if(i){let l=e.codePointAt(s-1);for(;l===gy||l===by;)s--,l=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function fR(e,t){const i={type:"text",value:dR(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function hR(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const mR={blockquote:PO,break:FO,code:GO,delete:VO,emphasis:YO,footnoteReference:XO,heading:KO,html:ZO,imageReference:QO,image:WO,inlineCode:JO,linkReference:eR,link:tR,listItem:nR,list:rR,paragraph:aR,root:sR,strong:oR,table:lR,tableCell:uR,tableRow:cR,text:fR,thematicBreak:hR,toml:qc,yaml:qc,definition:qc,footnoteDefinition:qc};function qc(){}const uw=-1,Ou=0,tl=1,fu=2,vp=3,_p=4,wp=5,Ep=6,dw=7,fw=8,hw=typeof self=="object"?self:globalThis,yy=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new hw[e](t)},pR=(e,t)=>{const i=(s,l)=>(e.set(l,s),s),a=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case Ou:case uw:return i(c,s);case tl:{const d=i([],s);for(const h of c)d.push(a(h));return d}case fu:{const d=i({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case vp:return i(new Date(c),s);case _p:{const{source:d,flags:h}=c;return i(new RegExp(d,h),s)}case wp:{const d=i(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case Ep:{const d=i(new Set,s);for(const h of c)d.add(a(h));return d}case dw:{const{name:d,message:h}=c;return i(typeof hw[d]=="function"?yy(d,h):new Error(h),s)}case fw:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(yy(l,c),s)};return a},vy=e=>pR(new Map,e)(0),Ma="",{toString:gR}={},{keys:bR}=Object,Vo=e=>{const t=typeof e;if(t!=="object"||!e)return[Ou,t];const i=gR.call(e).slice(8,-1);switch(i){case"Array":return[tl,Ma];case"Object":return[fu,Ma];case"Date":return[vp,Ma];case"RegExp":return[_p,Ma];case"Map":return[wp,Ma];case"Set":return[Ep,Ma];case"DataView":return[tl,i]}return i.includes("Array")?[tl,i]:e instanceof Error?[dw,e.name||"Error"]:[fu,i]},Pc=([e,t])=>e===Ou&&(t==="function"||t==="symbol"),xR=(e,t,i,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return i.set(d,h),h},l=c=>{if(i.has(c))return i.get(c);let[d,h]=Vo(c);switch(d){case Ou:{let m=c;switch(h){case"bigint":d=fw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return s([uw],c)}return s([d,m],c)}case tl:{if(h){let y=c;return h==="DataView"?y=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(y=new Uint8Array(c)),s([h,[...y]],c)}const m=[],p=s([d,m],c);for(const y of c)m.push(l(y));return p}case fu:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const m=[],p=s([d,m],c);for(const y of bR(c))(e||!Pc(Vo(c[y])))&&m.push([l(y),l(c[y])]);return p}case vp:return s([d,isNaN(c.getTime())?Ma:c.toISOString()],c);case _p:{const{source:m,flags:p}=c;return s([d,{source:m,flags:p}],c)}case wp:{const m=[],p=s([d,m],c);for(const[y,x]of c)(e||!(Pc(Vo(y))||Pc(Vo(x))))&&m.push([l(y),l(x)]);return p}case Ep:{const m=[],p=s([d,m],c);for(const y of c)(e||!Pc(Vo(y)))&&m.push(l(y));return p}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return l},_y=(e,{json:t,lossy:i}={})=>{const a=[];return xR(!(t||i),!!t,new Map,a)(e),a},hu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vy(_y(e,t)):structuredClone(e):(e,t)=>vy(_y(e,t));function yR(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function vR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _R(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||yR,a=e.options.footnoteBackLabel||vR,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h0&&_.push({type:"text",value:" "});let k=typeof i=="string"?i:i(h,x);typeof k=="string"&&(k={type:"text",value:k}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,x),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(..._)}else m.push(..._);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(f,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...hu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:` -`}]}}const Ru=(function(e){if(e==null)return SR;if(typeof e=="function")return Du(e);if(typeof e=="object")return Array.isArray(e)?wR(e):ER(e);if(typeof e=="string")return NR(e);throw new Error("Expected function, string, or object as test")});function wR(e){const t=[];let i=-1;for(;++i":""))+")"})}return y;function y(){let x=mw,_,N,S;if((!t||l(h,f,m[m.length-1]||void 0))&&(x=CR(i(h,m)),x[0]===Rm))return x;if("children"in h&&h.children){const w=h;if(w.children&&x[0]!==AR)for(N=(a?w.children.length:-1)+c,S=m.concat(w);N>-1&&N0&&i.push({type:"text",value:` -`}),i}function wy(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function Ey(e,t){const i=OR(e,t),a=i.one(e,void 0),s=_R(i),l=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&l.children.push({type:"text",value:` -`},s),l}function jR(e,t){return e&&"run"in e?async function(i,a){const s=Ey(i,{file:a,...t});await e.run(s,a)}:function(i,a){return Ey(i,{file:a,...e||t})}}function Ny(e){if(e)throw e}var ch,Sy;function IR(){if(Sy)return ch;Sy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},l=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),p=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!p)return!1;var y;for(y in f);return typeof y>"u"||e.call(f,y)},c=function(f,m){i&&m.name==="__proto__"?i(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},d=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(a)return a(f,m).value}else return;return f[m]};return ch=function h(){var f,m,p,y,x,_,N=arguments[0],S=1,w=arguments.length,k=!1;for(typeof N=="boolean"&&(k=N,N=arguments[1]||{},S=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Sc.length;let h;d&&c.push(s);try{h=e.apply(this,c)}catch(f){const m=f;if(d&&i)throw m;return s(m)}d||(h&&h.then&&typeof h.then=="function"?h.then(l,s):h instanceof Error?s(h):l(h))}function s(c,...d){i||(i=!0,t(c,...d))}function l(c){s(null,c)}}const $i={basename:$R,dirname:qR,extname:PR,join:FR,sep:"/"};function $R(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vl(e);let i=0,a=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){i=s+1;break}}else a<0&&(l=!0,a=s+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){i=s+1;break}}else c<0&&(l=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function qR(e){if(vl(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function PR(e){vl(e);let t=e.length,i=-1,a=0,s=-1,l=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||i<0||l===0||l===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function FR(...e){let t=-1,i;for(;++t0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function VR(e,t){let i="",a=0,s=-1,l=0,c=-1,d,h;for(;++c<=e.length;){if(c2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",a=0):(i=i.slice(0,h),a=i.length-1-i.lastIndexOf("/")),s=c,l=0;continue}}else if(i.length>0){i="",a=0,s=c,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),a=c-s-1;s=c,l=0}else d===46&&l>-1?l++:l=-1}return i}function vl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const YR={cwd:XR};function XR(){return"/"}function zm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function KR(e){if(typeof e=="string")e=new URL(e);else if(!zm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ZR(e)}function ZR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i0){let[x,..._]=m;const N=a[y][1];Lm(N)&&Lm(x)&&(x=uh(!0,N,x)),a[y]=[f,x,..._]}}}}const e5=new Sp().freeze();function mh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ph(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ty(e){if(!Lm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ay(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fc(e){return t5(e)?e:new gw(e)}function t5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function n5(e){return typeof e=="string"||i5(e)}function i5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cy=[],My={allowDangerousHtml:!0},a5=/^(https?|ircs?|mailto|xmpp)$/i,s5=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function kp(e){const t=o5(e),i=l5(e);return c5(t.runSync(t.parse(i),i),e)}function o5(e){const t=e.rehypePlugins||Cy,i=e.remarkPlugins||Cy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...My}:My;return e5().use(qO).use(i).use(jR,a).use(t)}function l5(e){const t=e.children||"",i=new gw;return typeof t=="string"&&(i.value=t),i}function c5(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||u5;for(const m of s5)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+r5+m.id,void 0);return Np(e,f),SC(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function f(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return c?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let x;for(x in sh)if(Object.hasOwn(sh,x)&&Object.hasOwn(m.properties,x)){const _=m.properties[x],N=sh[x];(N===null||N.includes(m.tagName))&&(m.properties[x]=h(String(_||""),x,m))}}if(m.type==="element"){let x=i?!i.includes(m.tagName):l?l.includes(m.tagName):!1;if(!x&&a&&typeof p=="number"&&(x=!a(m,p,y)),x&&y&&typeof p=="number")return d&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function u5(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||i!==-1&&t>i||a!==-1&&t>a||a5.test(e.slice(0,t))?e:""}function Oy(e,t){const i=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,s=i.indexOf(t);for(;s!==-1;)a++,s=i.indexOf(t,s+t.length);return a}function d5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function f5(e,t,i){const s=Ru((i||{}).ignore||[]),l=h5(t);let c=-1;for(;++c0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=O+1:(_!==O&&k.push({type:"text",value:f.value.slice(_,O)}),Array.isArray(R)?k.push(...R):R&&k.push(R),_=O+E[0].length,w=!0),!y.global)break;E=y.exec(f.value)}return w?(_?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const s=Oy(e,"(");let l=Oy(e,")");for(;a!==-1&&s>l;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),l++;return[e,i]}function bw(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||ja(i)||Cu(i))&&(!t||i!==47)}xw.peek=j5;function A5(){this.buffer()}function C5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function M5(){this.buffer()}function O5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function R5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mi(this.sliceSerialize(e)).toLowerCase(),i.label=t}function D5(e){this.exit(e)}function L5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Mi(this.sliceSerialize(e)).toLowerCase(),i.label=t}function z5(e){this.exit(e)}function j5(){return"["}function xw(e,t,i,a){const s=i.createTracker(a);let l=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return l+=s.move(i.safe(i.associationId(e),{after:"]",before:l})),d(),c(),l+=s.move("]"),l}function I5(){return{enter:{gfmFootnoteCallString:A5,gfmFootnoteCall:C5,gfmFootnoteDefinitionLabelString:M5,gfmFootnoteDefinition:O5},exit:{gfmFootnoteCallString:R5,gfmFootnoteCall:D5,gfmFootnoteDefinitionLabelString:L5,gfmFootnoteDefinition:z5}}}function B5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:xw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,l,c){const d=l.createTracker(c);let h=d.move("[^");const f=l.enter("footnoteDefinition"),m=l.enter("label");return h+=d.move(l.safe(l.associationId(a),{before:h,after:"]"})),m(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?` -`:" ")+l.indentLines(l.containerFlow(a,d.current()),t?yw:U5))),f(),h}}function U5(e,t,i){return t===0?e:yw(e,t,i)}function yw(e,t,i){return(i?"":" ")+e}const H5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vw.peek=G5;function $5(){return{canContainEols:["delete"],enter:{strikethrough:P5},exit:{strikethrough:F5}}}function q5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:H5}],handlers:{delete:vw}}}function P5(e){this.enter({type:"delete",children:[]},e)}function F5(e){this.exit(e)}function vw(e,t,i,a){const s=i.createTracker(a),l=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),l(),c}function G5(){return"~"}function V5(e){return e.length}function Y5(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||V5,l=[],c=[],d=[],h=[];let f=0,m=-1;for(;++mf&&(f=e[m].length);++wh[w])&&(h[w]=E)}N.push(k)}c[m]=N,d[m]=S}let p=-1;if(typeof a=="object"&&"length"in a)for(;++ph[p]&&(h[p]=k),x[p]=k),y[p]=E}c.splice(1,0,y),d.splice(1,0,x),m=-1;const _=[];for(;++m "),l.shift(2);const c=i.indentLines(i.containerFlow(e,l.current()),Z5);return s(),c}function Z5(e,t,i){return">"+(i?"":" ")+e}function Q5(e,t){return Dy(e,t.inConstruct,!0)&&!Dy(e,t.notInConstruct,!1)}function Dy(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++ac&&(c=l):l=1,s=a+t.length,a=i.indexOf(t,s);return c}function J5(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function e3(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function t3(e,t,i,a){const s=e3(i),l=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(J5(e,i)){const p=i.enter("codeIndented"),y=i.indentLines(l,n3);return p(),y}const d=i.createTracker(a),h=s.repeat(Math.max(W5(l,s)+1,3)),f=i.enter("codeFenced");let m=d.move(h);if(e.lang){const p=i.enter(`codeFencedLang${c}`);m+=d.move(i.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=i.enter(`codeFencedMeta${c}`);m+=d.move(" "),m+=d.move(i.safe(e.meta,{before:m,after:` -`,encode:["`"],...d.current()})),p()}return m+=d.move(` -`),l&&(m+=d.move(l+` -`)),m+=d.move(h),f(),m}function n3(e,t,i){return(i?"":" ")+e}function Tp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function i3(e,t,i,a){const s=Tp(i),l=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let d=i.enter("label");const h=i.createTracker(a);let f=h.move("[");return f+=h.move(i.safe(i.associationId(e),{before:f,after:"]",...h.current()})),f+=h.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(i.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=i.enter("destinationRaw"),f+=h.move(i.safe(e.url,{before:f,after:e.title?" ":` -`,...h.current()}))),d(),e.title&&(d=i.enter(`title${l}`),f+=h.move(" "+s),f+=h.move(i.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),c(),f}function r3(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function sl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mu(e,t,i){const a=Bs(e),s=Bs(t);return a===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}_w.peek=a3;function _w(e,t,i,a){const s=r3(i),l=i.enter("emphasis"),c=i.createTracker(a),d=c.move(s);let h=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),m=mu(a.before.charCodeAt(a.before.length-1),f,s);m.inside&&(h=sl(f)+h.slice(1));const p=h.charCodeAt(h.length-1),y=mu(a.after.charCodeAt(0),p,s);y.inside&&(h=h.slice(0,-1)+sl(p));const x=c.move(s);return l(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+h+x}function a3(e,t,i){return i.options.emphasis||"*"}function s3(e,t){let i=!1;return Np(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Rm}),!!((!e.depth||e.depth<3)&&bp(e)&&(t.options.setext||i))}function o3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),l=i.createTracker(a);if(s3(e,i)){const m=i.enter("headingSetext"),p=i.enter("phrasing"),y=i.containerPhrasing(e,{...l.current(),before:` -`,after:` -`});return p(),m(),y+` -`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(` -`))+1))}const c="#".repeat(s),d=i.enter("headingAtx"),h=i.enter("phrasing");l.move(c+" ");let f=i.containerPhrasing(e,{before:"# ",after:` -`,...l.current()});return/^[\t ]/.test(f)&&(f=sl(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,i.options.closeAtx&&(f+=" "+c),h(),d(),f}ww.peek=l3;function ww(e){return e.value||""}function l3(){return"<"}Ew.peek=c3;function Ew(e,t,i,a){const s=Tp(i),l=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let d=i.enter("label");const h=i.createTracker(a);let f=h.move("![");return f+=h.move(i.safe(e.alt,{before:f,after:"]",...h.current()})),f+=h.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=i.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(i.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(d=i.enter("destinationRaw"),f+=h.move(i.safe(e.url,{before:f,after:e.title?" ":")",...h.current()}))),d(),e.title&&(d=i.enter(`title${l}`),f+=h.move(" "+s),f+=h.move(i.safe(e.title,{before:f,after:s,...h.current()})),f+=h.move(s),d()),f+=h.move(")"),c(),f}function c3(){return"!"}Nw.peek=u3;function Nw(e,t,i,a){const s=e.referenceType,l=i.enter("imageReference");let c=i.enter("label");const d=i.createTracker(a);let h=d.move("![");const f=i.safe(e.alt,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=m,l(),s==="full"||!f||f!==p?h+=d.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function u3(){return"!"}Sw.peek=d3;function Sw(e,t,i){let a=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l\u007F]/.test(e.url))}Tw.peek=f3;function Tw(e,t,i,a){const s=Tp(i),l=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,h;if(kw(e,i)){const m=i.stack;i.stack=[],d=i.enter("autolink");let p=c.move("<");return p+=c.move(i.containerPhrasing(e,{before:p,after:">",...c.current()})),p+=c.move(">"),d(),i.stack=m,p}d=i.enter("link"),h=i.enter("label");let f=c.move("[");return f+=c.move(i.containerPhrasing(e,{before:f,after:"](",...c.current()})),f+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(i.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(h=i.enter("destinationRaw"),f+=c.move(i.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${l}`),f+=c.move(" "+s),f+=c.move(i.safe(e.title,{before:f,after:s,...c.current()})),f+=c.move(s),h()),f+=c.move(")"),d(),f}function f3(e,t,i){return kw(e,i)?"<":"["}Aw.peek=h3;function Aw(e,t,i,a){const s=e.referenceType,l=i.enter("linkReference");let c=i.enter("label");const d=i.createTracker(a);let h=d.move("[");const f=i.containerPhrasing(e,{before:h,after:"]",...d.current()});h+=d.move(f+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const p=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=m,l(),s==="full"||!f||f!==p?h+=d.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function h3(){return"["}function Ap(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function m3(e){const t=Ap(e),i=e.options.bulletOther;if(!i)return t==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+i+"`) to be different");return i}function p3(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Cw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function g3(e,t,i,a){const s=i.enter("list"),l=i.bulletCurrent;let c=e.ordered?p3(i):Ap(i);const d=e.ordered?c==="."?")":".":m3(i);let h=t&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),Cw(i)===c&&m){let p=-1;for(;++p-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let c=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=i.createTracker(a);d.move(l+" ".repeat(c-l.length)),d.shift(c);const h=i.enter("listItem"),f=i.indentLines(i.containerFlow(e,d.current()),m);return h(),f;function m(p,y,x){return y?(x?"":" ".repeat(c))+p:(x?l:l+" ".repeat(c-l.length))+p}}function y3(e,t,i,a){const s=i.enter("paragraph"),l=i.enter("phrasing"),c=i.containerPhrasing(e,a);return l(),s(),c}const v3=Ru(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _3(e,t,i,a){return(e.children.some(function(c){return v3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function w3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Mw.peek=E3;function Mw(e,t,i,a){const s=w3(i),l=i.enter("strong"),c=i.createTracker(a),d=c.move(s+s);let h=c.move(i.containerPhrasing(e,{after:s,before:d,...c.current()}));const f=h.charCodeAt(0),m=mu(a.before.charCodeAt(a.before.length-1),f,s);m.inside&&(h=sl(f)+h.slice(1));const p=h.charCodeAt(h.length-1),y=mu(a.after.charCodeAt(0),p,s);y.inside&&(h=h.slice(0,-1)+sl(p));const x=c.move(s+s);return l(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+h+x}function E3(e,t,i){return i.options.strong||"*"}function N3(e,t,i,a){return i.safe(e.value,a)}function S3(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function k3(e,t,i){const a=(Cw(i)+(i.options.ruleSpaces?" ":"")).repeat(S3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const Ow={blockquote:K5,break:Ly,code:t3,definition:i3,emphasis:_w,hardBreak:Ly,heading:o3,html:ww,image:Ew,imageReference:Nw,inlineCode:Sw,link:Tw,linkReference:Aw,list:g3,listItem:x3,paragraph:y3,root:_3,strong:Mw,text:N3,thematicBreak:k3};function T3(){return{enter:{table:A3,tableData:zy,tableHeader:zy,tableRow:M3},exit:{codeText:O3,table:C3,tableData:vh,tableHeader:vh,tableRow:vh}}}function A3(e){const t=e._align;this.enter({type:"table",align:t.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function C3(e){this.exit(e),this.data.inTable=void 0}function M3(e){this.enter({type:"tableRow",children:[]},e)}function vh(e){this.exit(e)}function zy(e){this.enter({type:"tableCell",children:[]},e)}function O3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,R3));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function R3(e,t){return t==="|"?t:e}function D3(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:c,tableCell:h,tableRow:d}};function c(x,_,N,S){return f(m(x,N,S),x.align)}function d(x,_,N,S){const w=p(x,N,S),k=f([w]);return k.slice(0,k.indexOf(` -`))}function h(x,_,N,S){const w=N.enter("tableCell"),k=N.enter("phrasing"),E=N.containerPhrasing(x,{...S,before:l,after:l});return k(),w(),E}function f(x,_){return Y5(x,{align:_,alignDelimiters:a,padding:i,stringLength:s})}function m(x,_,N){const S=x.children;let w=-1;const k=[],E=_.enter("table");for(;++w0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const Q3={tokenize:aD,partial:!0};function W3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:nD,continuation:{tokenize:iD},exit:rD}},text:{91:{name:"gfmFootnoteCall",tokenize:tD},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:J3,resolveTo:eD}}}}function J3(e,t,i){const a=this;let s=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return d;function d(h){if(!c||!c._balanced)return i(h);const f=Mi(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!l.includes(f.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function eD(e,t){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",c,t],["exit",c,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function tD(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,c;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?i(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(p){if(l>999||p===93&&!c||p===null||p===91||At(p))return i(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Mi(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(p)}return At(p)||(c=!0),l++,e.consume(p),p===92?m:f}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,f):f(p)}}function nD(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,c=0,d;return h;function h(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):i(_)}function m(_){if(c>999||_===93&&!d||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return l=Mi(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return At(_)||(d=!0),c++,e.consume(_),_===92?p:m}function p(_){return _===91||_===92||_===93?(e.consume(_),c++,m):m(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(l)||s.push(l),lt(e,x,"gfmFootnoteDefinitionWhitespace")):i(_)}function x(_){return t(_)}}function iD(e,t,i){return e.check(yl,t,e.attempt(Q3,t,i))}function rD(e){e.exit("gfmFootnoteDefinition")}function aD(e,t,i){const a=this;return lt(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(l):i(l)}}function sD(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:s};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let h=-1;for(;++h1?h(_):(c.consume(_),p++,x);if(p<2&&!i)return h(_);const S=c.exit("strikethroughSequenceTemporary"),w=Bs(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class oD{constructor(){this.map=[]}add(t,i,a){lD(this,t,i,a)}consume(t){if(this.map.sort(function(l,c){return l[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(t.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),t.length=this.map[i][0];a.push(t.slice()),t.length=0;let s=a.pop();for(;s;){for(const l of s)t.push(l);s=a.pop()}this.map.length=0}}function lD(e,t,i,a){let s=0;if(!(i===0&&a.length===0)){for(;s-1;){const C=a.events[q][1].type;if(C==="lineEnding"||C==="linePrefix")q--;else break}const K=q>-1?a.events[q][1].type:null,Y=K==="tableHead"||K==="tableRow"?R:h;return Y===R&&a.parser.lazy[a.now().line]?i(z):Y(z)}function h(z){return e.enter("tableHead"),e.enter("tableRow"),f(z)}function f(z){return z===124||(c=!0,l+=1),m(z)}function m(z){return z===null?i(z):Be(z)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),x):i(z):tt(z)?lt(e,m,"whitespace")(z):(l+=1,c&&(c=!1,s+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),p(z)))}function p(z){return z===null||z===124||At(z)?(e.exit("data"),m(z)):(e.consume(z),z===92?y:p)}function y(z){return z===92||z===124?(e.consume(z),p):p(z)}function x(z){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(z):(e.enter("tableDelimiterRow"),c=!1,tt(z)?lt(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):_(z))}function _(z){return z===45||z===58?S(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),N):I(z)}function N(z){return tt(z)?lt(e,S,"whitespace")(z):S(z)}function S(z){return z===58?(l+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),w):z===45?(l+=1,w(z)):z===null||Be(z)?O(z):I(z)}function w(z){return z===45?(e.enter("tableDelimiterFiller"),k(z)):I(z)}function k(z){return z===45?(e.consume(z),k):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(z))}function E(z){return tt(z)?lt(e,O,"whitespace")(z):O(z)}function O(z){return z===124?_(z):z===null||Be(z)?!c||s!==l?I(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):I(z)}function I(z){return i(z)}function R(z){return e.enter("tableRow"),H(z)}function H(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),H):z===null||Be(z)?(e.exit("tableRow"),t(z)):tt(z)?lt(e,H,"whitespace")(z):(e.enter("data"),j(z))}function j(z){return z===null||z===124||At(z)?(e.exit("data"),H(z)):(e.consume(z),z===92?Z:j)}function Z(z){return z===92||z===124?(e.consume(z),j):j(z)}}function fD(e,t){let i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,m,p;const y=new oD;for(;++ii[2]+1){const _=i[2]+1,N=i[3]-i[2]-1;e.add(_,N,[])}}e.add(i[3]+1,0,[["exit",p,t]])}return s!==void 0&&(l.end=Object.assign({},As(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function Iy(e,t,i,a,s){const l=[],c=As(t.events,i);s&&(s.end=Object.assign({},c),l.push(["exit",s,t])),a.end=Object.assign({},c),l.push(["exit",a,t]),e.add(i+1,0,l)}function As(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const hD={name:"tasklistCheck",tokenize:pD};function mD(){return{text:{91:hD}}}function pD(e,t,i){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),l)}function l(h){return At(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):i(h)}function d(h){return Be(h)?t(h):tt(h)?e.check({tokenize:gD},t,i)(h):i(h)}}function gD(e,t,i){return lt(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function bD(e){return K_([q3(),W3(),sD(e),uD(),mD()])}const xD={};function Mp(e){const t=this,i=e||xD,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(bD(i)),l.push(B3()),c.push(U3(i))}var _h,By;function yD(){if(By)return _h;By=1;function e(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(me=>{const Ee=ne[me],Pe=typeof Ee;(Pe==="object"||Pe==="function")&&!Object.isFrozen(Ee)&&e(Ee)}),ne}class t{constructor(me){me.data===void 0&&(me.data={}),this.data=me.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(ne,...me){const Ee=Object.create(null);for(const Pe in ne)Ee[Pe]=ne[Pe];return me.forEach(function(Pe){for(const St in Pe)Ee[St]=Pe[St]}),Ee}const s="",l=ne=>!!ne.scope,c=(ne,{prefix:me})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const Ee=ne.split(".");return[`${me}${Ee.shift()}`,...Ee.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${me}${ne}`};class d{constructor(me,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,me.walk(this)}addText(me){this.buffer+=i(me)}openNode(me){if(!l(me))return;const Ee=c(me.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(me){l(me)&&(this.buffer+=s)}value(){return this.buffer}span(me){this.buffer+=``}}const h=(ne={})=>{const me={children:[]};return Object.assign(me,ne),me};class f{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(me){this.top.children.push(me)}openNode(me){const Ee=h({scope:me});this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(me){return this.constructor._walk(me,this.rootNode)}static _walk(me,Ee){return typeof Ee=="string"?me.addText(Ee):Ee.children&&(me.openNode(Ee),Ee.children.forEach(Pe=>this._walk(me,Pe)),me.closeNode(Ee)),me}static _collapse(me){typeof me!="string"&&me.children&&(me.children.every(Ee=>typeof Ee=="string")?me.children=[me.children.join("")]:me.children.forEach(Ee=>{f._collapse(Ee)}))}}class m extends f{constructor(me){super(),this.options=me}addText(me){me!==""&&this.add(me)}startScope(me){this.openNode(me)}endScope(){this.closeNode()}__addSublanguage(me,Ee){const Pe=me.root;Ee&&(Pe.scope=`language:${Ee}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(ne){return ne?typeof ne=="string"?ne:ne.source:null}function y(ne){return N("(?=",ne,")")}function x(ne){return N("(?:",ne,")*")}function _(ne){return N("(?:",ne,")?")}function N(...ne){return ne.map(Ee=>p(Ee)).join("")}function S(ne){const me=ne[ne.length-1];return typeof me=="object"&&me.constructor===Object?(ne.splice(ne.length-1,1),me):{}}function w(...ne){return"("+(S(ne).capture?"":"?:")+ne.map(Pe=>p(Pe)).join("|")+")"}function k(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function E(ne,me){const Ee=ne&&ne.exec(me);return Ee&&Ee.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function I(ne,{joinWith:me}){let Ee=0;return ne.map(Pe=>{Ee+=1;const St=Ee;let gt=p(Pe),Ce="";for(;gt.length>0;){const Se=O.exec(gt);if(!Se){Ce+=gt;break}Ce+=gt.substring(0,Se.index),gt=gt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Ce+="\\"+String(Number(Se[1])+St):(Ce+=Se[0],Se[0]==="("&&Ee++)}return Ce}).map(Pe=>`(${Pe})`).join(me)}const R=/\b\B/,H="[a-zA-Z]\\w*",j="[a-zA-Z_]\\w*",Z="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",K="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Y=(ne={})=>{const me=/^#![ ]*\//;return ne.binary&&(ne.begin=N(me,/.*\b/,ne.binary,/\b.*/)),a({scope:"meta",begin:me,end:/$/,relevance:0,"on:begin":(Ee,Pe)=>{Ee.index!==0&&Pe.ignoreMatch()}},ne)},C={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},B={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(ne,me,Ee={}){const Pe=a({scope:"comment",begin:ne,end:me,contains:[]},Ee);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const St=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:N(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},F=X("//","$"),A=X("/\\*","\\*/"),L=X("#","$"),V={scope:"number",begin:Z,relevance:0},D={scope:"number",begin:z,relevance:0},G={scope:"number",begin:q,relevance:0},U={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]},W={scope:"title",begin:H,relevance:0},J={scope:"title",begin:j,relevance:0},Q={begin:"\\.\\s*"+j,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:C,BINARY_NUMBER_MODE:G,BINARY_NUMBER_RE:q,COMMENT:X,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:F,C_NUMBER_MODE:D,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(me,Ee)=>{Ee.data._beginMatch=me[1]},"on:end":(me,Ee)=>{Ee.data._beginMatch!==me[1]&&Ee.ignoreMatch()}})},HASH_COMMENT_MODE:L,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:Q,NUMBER_MODE:V,NUMBER_RE:Z,PHRASAL_WORDS_MODE:B,QUOTE_STRING_MODE:M,REGEXP_MODE:U,RE_STARTERS_RE:K,SHEBANG:Y,TITLE_MODE:W,UNDERSCORE_IDENT_RE:j,UNDERSCORE_TITLE_MODE:J});function fe(ne,me){ne.input[ne.index-1]==="."&&me.ignoreMatch()}function be(ne,me){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function we(ne,me){me&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=fe,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function Ne(ne,me){Array.isArray(ne.illegal)&&(ne.illegal=w(...ne.illegal))}function Le(ne,me){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function $e(ne,me){ne.relevance===void 0&&(ne.relevance=1)}const st=(ne,me)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const Ee=Object.assign({},ne);Object.keys(ne).forEach(Pe=>{delete ne[Pe]}),ne.keywords=Ee.keywords,ne.begin=N(Ee.beforeMatch,y(Ee.begin)),ne.starts={relevance:0,contains:[Object.assign(Ee,{endsParent:!0})]},ne.relevance=0,delete Ee.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ne,me,Ee=Yt){const Pe=Object.create(null);return typeof ne=="string"?St(Ee,ne.split(" ")):Array.isArray(ne)?St(Ee,ne):Object.keys(ne).forEach(function(gt){Object.assign(Pe,Pt(ne[gt],me,gt))}),Pe;function St(gt,Ce){me&&(Ce=Ce.map(Se=>Se.toLowerCase())),Ce.forEach(function(Se){const Ue=Se.split("|");Pe[Ue[0]]=[gt,Xt(Ue[0],Ue[1])]})}}function Xt(ne,me){return me?Number(me):Vn(ne)?0:1}function Vn(ne){return Rt.includes(ne.toLowerCase())}const wn={},ct=ne=>{console.error(ne)},It=(ne,...me)=>{console.log(`WARN: ${ne}`,...me)},ue=(ne,me)=>{wn[`${ne}/${me}`]||(console.log(`Deprecated as of ${ne}. ${me}`),wn[`${ne}/${me}`]=!0)},xe=new Error;function Oe(ne,me,{key:Ee}){let Pe=0;const St=ne[Ee],gt={},Ce={};for(let Se=1;Se<=me.length;Se++)Ce[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(me[Se-1]);ne[Ee]=Ce,ne[Ee]._emit=gt,ne[Ee]._multi=!0}function Fe(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw ct("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xe;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw ct("beginScope must be object"),xe;Oe(ne,ne.begin,{key:"beginScope"}),ne.begin=I(ne.begin,{joinWith:""})}}function Ze(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw ct("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xe;if(typeof ne.endScope!="object"||ne.endScope===null)throw ct("endScope must be object"),xe;Oe(ne,ne.end,{key:"endScope"}),ne.end=I(ne.end,{joinWith:""})}}function ln(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function En(ne){ln(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),Fe(ne),Ze(ne)}function Kt(ne){function me(Ce,Se){return new RegExp(p(Ce),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(Se?"g":""))}class Ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,Se]),this.matchAt+=k(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ue=>Ue[1]);this.matcherRe=me(I(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(Se);if(!Ue)return null;const Bt=Ue.findIndex((bi,_r)=>_r>0&&bi!==void 0),Mt=this.matchIndexes[Bt];return Ue.splice(0,Bt),Object.assign(Ue,Mt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const Ue=new Ee;return this.rules.slice(Se).forEach(([Bt,Mt])=>Ue.addRule(Bt,Mt)),Ue.compile(),this.multiRegexes[Se]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ue){this.rules.push([Se,Ue]),Ue.type==="begin"&&this.count++}exec(Se){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Bt=Ue.exec(Se);if(this.resumingScanAtSamePosition()&&!(Bt&&Bt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Bt=Mt.exec(Se)}return Bt&&(this.regexIndex+=Bt.position+1,this.regexIndex===this.count&&this.considerAll()),Bt}}function St(Ce){const Se=new Pe;return Ce.contains.forEach(Ue=>Se.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ce.terminatorEnd&&Se.addRule(Ce.terminatorEnd,{type:"end"}),Ce.illegal&&Se.addRule(Ce.illegal,{type:"illegal"}),Se}function gt(Ce,Se){const Ue=Ce;if(Ce.isCompiled)return Ue;[be,Le,En,st].forEach(Mt=>Mt(Ce,Se)),ne.compilerExtensions.forEach(Mt=>Mt(Ce,Se)),Ce.__beforeBegin=null,[we,Ne,$e].forEach(Mt=>Mt(Ce,Se)),Ce.isCompiled=!0;let Bt=null;return typeof Ce.keywords=="object"&&Ce.keywords.$pattern&&(Ce.keywords=Object.assign({},Ce.keywords),Bt=Ce.keywords.$pattern,delete Ce.keywords.$pattern),Bt=Bt||/\w+/,Ce.keywords&&(Ce.keywords=Pt(Ce.keywords,ne.case_insensitive)),Ue.keywordPatternRe=me(Bt,!0),Se&&(Ce.begin||(Ce.begin=/\B|\b/),Ue.beginRe=me(Ue.begin),!Ce.end&&!Ce.endsWithParent&&(Ce.end=/\B|\b/),Ce.end&&(Ue.endRe=me(Ue.end)),Ue.terminatorEnd=p(Ue.end)||"",Ce.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ce.end?"|":"")+Se.terminatorEnd)),Ce.illegal&&(Ue.illegalRe=me(Ce.illegal)),Ce.contains||(Ce.contains=[]),Ce.contains=[].concat(...Ce.contains.map(function(Mt){return Wt(Mt==="self"?Ce:Mt)})),Ce.contains.forEach(function(Mt){gt(Mt,Ue)}),Ce.starts&>(Ce.starts,Se),Ue.matcher=St(Ue),Ue}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ne.classNameAliases=a(ne.classNameAliases||{}),gt(ne)}function Ct(ne){return ne?ne.endsWithParent||Ct(ne.starts):!1}function Wt(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(me){return a(ne,{variants:null},me)})),ne.cachedVariants?ne.cachedVariants:Ct(ne)?a(ne,{starts:ne.starts?a(ne.starts):null}):Object.isFrozen(ne)?a(ne):ne}var ut="11.11.1";class zn extends Error{constructor(me,Ee){super(me),this.name="HTMLInjectionError",this.html=Ee}}const cn=i,vr=a,nt=Symbol("nomatch"),Yn=7,Cn=function(ne){const me=Object.create(null),Ee=Object.create(null),Pe=[];let St=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",Ce={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function Ue(ye){return Se.noHighlightRe.test(ye)}function Bt(ye){let ze=ye.className+" ";ze+=ye.parentNode?ye.parentNode.className:"";const Qe=Se.languageDetectRe.exec(ze);if(Qe){const ft=bn(Qe[1]);return ft||(It(gt.replace("{}",Qe[1])),It("Falling back to no-highlight mode for this block.",ye)),ft?Qe[1]:"no-highlight"}return ze.split(/\s+/).find(ft=>Ue(ft)||bn(ft))}function Mt(ye,ze,Qe){let ft="",Ht="";typeof ze=="object"?(ft=ye,Qe=ze.ignoreIllegals,Ht=ze.language):(ue("10.7.0","highlight(lang, code, ...args) has been deprecated."),ue("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),Ht=ye,ft=ze),Qe===void 0&&(Qe=!0);const pn={code:ft,language:Ht};Ki("before:highlight",pn);const Mn=pn.result?pn.result:bi(pn.language,pn.code,Qe);return Mn.code=pn.code,Ki("after:highlight",Mn),Mn}function bi(ye,ze,Qe,ft){const Ht=Object.create(null);function pn(_e,Re){return _e.keywords[Re]}function Mn(){if(!qe.keywords){Jt.addText(bt);return}let _e=0;qe.keywordPatternRe.lastIndex=0;let Re=qe.keywordPatternRe.exec(bt),Ye="";for(;Re;){Ye+=bt.substring(_e,Re.index);const it=un.case_insensitive?Re[0].toLowerCase():Re[0],$t=pn(qe,it);if($t){const[si,Qs]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(Ar+=Qs),si.startsWith("_"))Ye+=Re[0];else{const Cl=un.classNameAliases[si]||si;On(Re[0],Cl)}}else Ye+=Re[0];_e=qe.keywordPatternRe.lastIndex,Re=qe.keywordPatternRe.exec(bt)}Ye+=bt.substring(_e),Jt.addText(Ye)}function Nn(){if(bt==="")return;let _e=null;if(typeof qe.subLanguage=="string"){if(!me[qe.subLanguage]){Jt.addText(bt);return}_e=bi(qe.subLanguage,bt,!0,Al[qe.subLanguage]),Al[qe.subLanguage]=_e._top}else _e=wr(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Ar+=_e.relevance),Jt.__addSublanguage(_e._emitter,_e.language)}function _t(){qe.subLanguage!=null?Nn():Mn(),bt=""}function On(_e,Re){_e!==""&&(Jt.startScope(Re),Jt.addText(_e),Jt.endScope())}function Va(_e,Re){let Ye=1;const it=Re.length-1;for(;Ye<=it;){if(!_e._emit[Ye]){Ye++;continue}const $t=un.classNameAliases[_e[Ye]]||_e[Ye],si=Re[Ye];$t?On(si,$t):(bt=si,Mn(),bt=""),Ye++}}function Sr(_e,Re){return _e.scope&&typeof _e.scope=="string"&&Jt.openNode(un.classNameAliases[_e.scope]||_e.scope),_e.beginScope&&(_e.beginScope._wrap?(On(bt,un.classNameAliases[_e.beginScope._wrap]||_e.beginScope._wrap),bt=""):_e.beginScope._multi&&(Va(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function zi(_e,Re,Ye){let it=E(_e.endRe,Ye);if(it){if(_e["on:end"]){const $t=new t(_e);_e["on:end"](Re,$t),$t.isMatchIgnored&&(it=!1)}if(it){for(;_e.endsParent&&_e.parent;)_e=_e.parent;return _e}}if(_e.endsWithParent)return zi(_e.parent,Re,Ye)}function kr(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Cr=!0,0)}function Ya(_e){const Re=_e[0],Ye=_e.rule,it=new t(Ye),$t=[Ye.__beforeBegin,Ye["on:begin"]];for(const si of $t)if(si&&(si(_e,it),it.isMatchIgnored))return kr(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Sr(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=ze.substring(_e.index),it=zi(qe,_e,Ye);if(!it)return nt;const $t=qe;qe.endScope&&qe.endScope._wrap?(_t(),On(Re,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?(_t(),Va(qe.endScope,_e)):$t.skip?bt+=Re:($t.returnEnd||$t.excludeEnd||(bt+=Re),_t(),$t.excludeEnd&&(bt=Re));do qe.scope&&Jt.closeNode(),!qe.skip&&!qe.subLanguage&&(Ar+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&Sr(it.starts,_e),$t.returnEnd?0:Re.length}function ua(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let wi={};function Tr(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(wi.type==="begin"&&Re.type==="end"&&wi.index===Re.index&&Ye===""){if(bt+=ze.slice(Re.index,Re.index+1),!St){const it=new Error(`0 width match regex (${ye})`);throw it.languageName=ye,it.badRule=wi.rule,it}return 1}if(wi=Re,Re.type==="begin")return Ya(Re);if(Re.type==="illegal"&&!Qe){const it=new Error('Illegal lexeme "'+Ye+'" for mode "'+(qe.scope||"")+'"');throw it.mode=qe,it}else if(Re.type==="end"){const it=Sn(Re);if(it!==nt)return it}if(Re.type==="illegal"&&Ye==="")return bt+=` -`,1;if(Zs>1e5&&Zs>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return bt+=Ye,Ye.length}const un=bn(ye);if(!un)throw ct(gt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const da=Kt(un);let Xa="",qe=ft||da;const Al={},Jt=new Se.__emitter(Se);ua();let bt="",Ar=0,Zi=0,Zs=0,Cr=!1;try{if(un.__emitTokens)un.__emitTokens(ze,Jt);else{for(qe.matcher.considerAll();;){Zs++,Cr?Cr=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=Zi;const _e=qe.matcher.exec(ze);if(!_e)break;const Re=ze.substring(Zi,_e.index),Ye=Tr(Re,_e);Zi=_e.index+Ye}Tr(ze.substring(Zi))}return Jt.finalize(),Xa=Jt.toHTML(),{language:ye,value:Xa,relevance:Ar,illegal:!1,_emitter:Jt,_top:qe}}catch(_e){if(_e.message&&_e.message.includes("Illegal"))return{language:ye,value:cn(ze),illegal:!0,relevance:0,_illegalBy:{message:_e.message,index:Zi,context:ze.slice(Zi-100,Zi+100),mode:_e.mode,resultSoFar:Xa},_emitter:Jt};if(St)return{language:ye,value:cn(ze),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function _r(ye){const ze={value:cn(ye),illegal:!1,relevance:0,_top:Ce,_emitter:new Se.__emitter(Se)};return ze._emitter.addText(ye),ze}function wr(ye,ze){ze=ze||Se.languages||Object.keys(me);const Qe=_r(ye),ft=ze.filter(bn).filter(vi).map(_t=>bi(_t,ye,!1));ft.unshift(Qe);const Ht=ft.sort((_t,On)=>{if(_t.relevance!==On.relevance)return On.relevance-_t.relevance;if(_t.language&&On.language){if(bn(_t.language).supersetOf===On.language)return 1;if(bn(On.language).supersetOf===_t.language)return-1}return 0}),[pn,Mn]=Ht,Nn=pn;return Nn.secondBest=Mn,Nn}function ai(ye,ze,Qe){const ft=ze&&Ee[ze]||Qe;ye.classList.add("hljs"),ye.classList.add(`language-${ft}`)}function Ut(ye){let ze=null;const Qe=Bt(ye);if(Ue(Qe))return;if(Ki("before:highlightElement",{el:ye,language:Qe}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",ye.innerHTML);ze=ye;const ft=ze.textContent,Ht=Qe?Mt(ft,{language:Qe,ignoreIllegals:!0}):wr(ft);ye.innerHTML=Ht.value,ye.dataset.highlighted="yes",ai(ye,Qe,Ht.language),ye.result={language:Ht.language,re:Ht.relevance,relevance:Ht.relevance},Ht.secondBest&&(ye.secondBest={language:Ht.secondBest.language,relevance:Ht.secondBest.relevance}),Ki("after:highlightElement",{el:ye,result:Ht,text:ft})}function mn(ye){Se=vr(Se,ye)}const xi=()=>{Nr(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Er(){Nr(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let la=!1;function Nr(){function ye(){Nr()}if(document.readyState==="loading"){la||window.addEventListener("DOMContentLoaded",ye,!1),la=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Fa(ye,ze){let Qe=null;try{Qe=ze(ne)}catch(ft){if(ct("Language definition for '{}' could not be registered.".replace("{}",ye)),St)ct(ft);else throw ft;Qe=Ce}Qe.name||(Qe.name=ye),me[ye]=Qe,Qe.rawDefinition=ze.bind(null,ne),Qe.aliases&&yi(Qe.aliases,{languageName:ye})}function Xi(ye){delete me[ye];for(const ze of Object.keys(Ee))Ee[ze]===ye&&delete Ee[ze]}function ca(){return Object.keys(me)}function bn(ye){return ye=(ye||"").toLowerCase(),me[ye]||me[Ee[ye]]}function yi(ye,{languageName:ze}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{Ee[Qe.toLowerCase()]=ze})}function vi(ye){const ze=bn(ye);return ze&&!ze.disableAutodetect}function Li(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=ze=>{ye["before:highlightBlock"](Object.assign({block:ze.el},ze))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=ze=>{ye["after:highlightBlock"](Object.assign({block:ze.el},ze))})}function Ft(ye){Li(ye),Pe.push(ye)}function Ga(ye){const ze=Pe.indexOf(ye);ze!==-1&&Pe.splice(ze,1)}function Ki(ye,ze){const Qe=ye;Pe.forEach(function(ft){ft[Qe]&&ft[Qe](ze)})}function _i(ye){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),Ut(ye)}Object.assign(ne,{highlight:Mt,highlightAuto:wr,highlightAll:Nr,highlightElement:Ut,highlightBlock:_i,configure:mn,initHighlighting:xi,initHighlightingOnLoad:Er,registerLanguage:Fa,unregisterLanguage:Xi,listLanguages:ca,getLanguage:bn,registerAliases:yi,autoDetection:vi,inherit:vr,addPlugin:Ft,removePlugin:Ga}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString=ut,ne.regex={concat:N,lookahead:y,either:w,optional:_,anyNumberOfTimes:x};for(const ye in ce)typeof ce[ye]=="object"&&e(ce[ye]);return Object.assign(ne,ce),ne},hn=Cn({});return hn.newInstance=()=>Cn({}),_h=hn,hn.HighlightJS=hn,hn.default=hn,_h}var wh,Uy;function vD(){if(Uy)return wh;Uy=1;function e(t){const i=t.regex,a=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},d=t.inherit(c,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[c,f,h,d,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[c,d,f,h]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:m}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return wh=e,wh}var Eh,Hy;function _D(){if(Hy)return Eh;Hy=1;function e(t){const i=t.regex,a={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const l={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),d={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a,l]};l.contains.push(h);const f={match:/\\"/},m={className:"string",begin:/'/,end:/'/},p={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,a]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=t.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),N={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},S=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],k={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],O=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:S,literal:w,built_in:[...E,...O,"set","shopt",...I,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,h,f,m,p,a]}}return Eh=e,Eh}var Nh,$y;function wD(){if($y)return Nh;$y=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(l)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(l)+t.IDENT_RE,relevance:0},_=i.optional(l)+t.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},k=[y,h,a,t.C_BLOCK_COMMENT_MODE,p,m],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:w,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,h,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:y,strings:m,keywords:w}}}return Nh=e,Nh}var Sh,qy;function ED(){if(qy)return Sh;qy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",l="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(l)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},m={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(m,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(l)+t.IDENT_RE,relevance:0},_=i.optional(l)+t.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],S=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],k=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:k},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},H=[R,y,h,a,t.C_BLOCK_COMMENT_MODE,p,m],j={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:H.concat([{begin:/\(/,end:/\)/,keywords:I,contains:H.concat(["self"]),relevance:0}]),relevance:0},Z={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:I,relevance:0},{begin:_,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[m,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,h,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,m,p,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"",keywords:I,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Sh=e,Sh}var kh,Py;function ND(){if(Py)return kh;Py=1;function e(t){const i=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],l=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],d={keyword:l.concat(c),built_in:i,literal:s},h=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=t.inherit(p,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:d},_=t.inherit(x,{illegal:/\n/}),N={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,_]},S={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},w=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});x.contains=[S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],_.contains=[w,N,y,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[m,S,N,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},O=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:d,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},k,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,E,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+O+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:d,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,relevance:0,contains:[k,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},I]}}return kh=e,kh}var Th,Fy;function SD(){if(Fy)return Th;Fy=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(f){const m=f.regex,p=e(f),y={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",_=/@-?\w[\w]*(-\w+)*/,N="[a-zA-Z-][a-zA-Z0-9_-]*",S=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,y,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+l.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...S,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...S,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:m.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...S,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Th=h,Th}var Ah,Gy;function kD(){if(Gy)return Ah;Gy=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},l={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},d={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:i.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=t.inherit(m,{contains:[]}),x=t.inherit(p,{contains:[]});m.contains.push(x),p.contains.push(y);let _=[a,f];return[m,p,y,x].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(m,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},a,c,m,p,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},l,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Ah=e,Ah}var Ch,Vy;function TD(){if(Vy)return Ch;Vy=1;function e(t){const i=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:i.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:i.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Ch=e,Ch}var Mh,Yy;function AD(){if(Yy)return Mh;Yy=1;function e(t){const i=t.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=i.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),l=i.concat(s,/(::\w+)*/),d={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},h={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:d},y={className:"string",contains:[t.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:i.concat(/<<[-~]?'?/,i.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,p]})]}]},x="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",N={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},S={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:d}]},H=[y,{variants:[{match:[/class\s+/,l,/\s+<\s+/,l]},{match:[/\b(class|module)\s+/,l]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,l],scope:{2:"title.class"},keywords:d},{relevance:0,match:[l,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[S]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},N,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:d},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,m),relevance:0}].concat(f,m);p.contains=H,S.contains=H;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:H}}];return m.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(q).concat(m).concat(H)}}return Mh=e,Mh}var Oh,Xy;function CD(){if(Xy)return Oh;Xy=1;function e(t){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"s(c,d,h-1))}function l(c){const d=c.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",f=h+s("(?:<"+h+"~~~(?:\\s*,\\s*"+h+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},N={className:"meta",begin:"@"+h,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},S={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[c.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[c.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[c.BACKSLASH_ESCAPE]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[d.concat(/(?!else)/,h),/\s+/,h,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,h],className:{1:"keyword",3:"title.class"},contains:[S,c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+f+"\\s+)",c.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[N,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,a,c.C_BLOCK_COMMENT_MODE]},c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE]},a,N]}}return Lh=l,Lh}var zh,Wy;function DD(){if(Wy)return zh;Wy=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(l,a,s);function h(f){const m=f.regex,p=(J,{after:Q})=>{const ee="",end:""},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,Q)=>{const ee=J[0].length+J.index,ce=J.input[ee];if(ce==="<"||ce===","){Q.ignoreMatch();return}ce===">"&&(p(J,{after:ee})||Q.ignoreMatch());let fe;const be=J.input.substring(ee);if(fe=be.match(/^\s*=/)){Q.ignoreMatch();return}if((fe=be.match(/^\s+extends\s+/))&&fe.index===0){Q.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},w="[0-9](_?[0-9])*",k=`\\.(${w})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",O={className:"number",variants:[{begin:`(\\b(${E})((${k})|\\.)?|(${k}))[eE][+-]?(${w})\\b`},{begin:`\\b(${E})\\b((${k})\\b|\\.)?|(${k})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,I],subLanguage:"css"}},j={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},Z={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,I]},q={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},K=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,j,Z,{match:/\$\d+/},O];I.contains=K.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(K)});const Y=[].concat(q,I.contains),C=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(Y)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:C},M={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,m.concat(y,"(",m.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},B={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},F={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(J){return m.concat("(?!",J.join("|"),")")}const V={match:m.concat(/\b/,L([...l,"super","import"].map(J=>`${J}\\s*\\(`)),y,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:m.concat(/\./,m.lookahead(m.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:B},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,j,Z,q,{match:/\$\d+/},O,B,{scope:"attr",match:y+m.lookahead(":"),relevance:0},W,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,f.REGEXP_MODE,{className:"function",begin:U,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:_},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},F,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,f.inherit(f.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},D,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},V,A,M,G,{match:/\$[(.]/}]}}return zh=h,zh}var jh,Jy;function LD(){if(Jy)return jh;Jy=1;function e(t){const i={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],l={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,l,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return jh=e,jh}var Ih,ev;function zD(){if(ev)return Ih;ev=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,i="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(l){const c={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},d={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},h={className:"symbol",begin:l.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[l.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+l.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,f]},{begin:"'",end:"'",illegal:/\n/,contains:[l.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[l.BACKSLASH_ESCAPE,m,f]}]};f.contains.push(p);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+l.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+l.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[l.inherit(p,{className:"string"}),"self"]}]},_=a,N=l.COMMENT("/\\*","\\*/",{contains:[l.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:l.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},w=S;return w.variants[1].contains=[S],S.variants[1].contains=[w],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[l.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),l.C_LINE_COMMENT_MODE,N,d,h,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:l.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[l.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[S,l.C_LINE_COMMENT_MODE,N],relevance:0},l.C_LINE_COMMENT_MODE,N,y,x,p,l.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,l.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},l.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,x]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},_]}}return Ih=s,Ih}var Bh,tv;function jD(){if(tv)return Bh;tv=1;const e=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),h=l.concat(c).sort().reverse();function f(m){const p=e(m),y=h,x="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],w=[],k=function(Y){return{className:"string",begin:"~?"+Y+".*?"+Y}},E=function(Y,C,$){return{className:Y,begin:C,relevance:$}},O={$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},I={begin:"\\(",end:"\\)",contains:w,keywords:O,relevance:0};w.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,k("'"),k('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,I,E("variable","@@?"+_,10),E("variable","@\\{"+_+"\\}"),E("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const R=w.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},j={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},Z={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:O,returnEnd:!0,contains:w,relevance:0}},z={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:R}},q={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:N,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,H,E("keyword","all\\b"),E("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,E("selector-tag",N,0),E("selector-id","#"+N),E("selector-class","\\."+N,0),E("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},p.FUNCTION_DISPATCH]},K={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[q]};return S.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Z,z,K,j,q,H,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return Bh=f,Bh}var Uh,nv;function ID(){if(nv)return Uh;nv=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},l=[t.COMMENT("--(?!"+i+")","$"),t.COMMENT("--"+i,a,{contains:[s],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:l.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:l}].concat(l)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return Uh=e,Uh}var Hh,iv;function BD(){if(iv)return Hh;iv=1;function e(t){const i={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:i.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},m={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[t.BACKSLASH_ESCAPE,c,f],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(S,w,k="\\1")=>{const E=k==="\\1"?k:i.concat(k,w);return i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,w,k)=>i.concat(i.concat("(?:",S,")"),w,/(?:\\.|[^\\\/])*?/,k,s),N=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},m,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",i.either(...y,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",i.either(...y,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h,m]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=N,d.contains=N,{name:"Perl",aliases:["pl","pm"],keywords:l,contains:N}}return $h=e,$h}var qh,av;function HD(){if(av)return qh;av=1;function e(t){const i={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,h={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},f={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return qh=e,qh}var Ph,sv;function $D(){if(sv)return Ph;sv=1;function e(t){const i=t.regex,a=/(?![A-Za-z0-9])(?![$])/,s=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),l=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=i.concat(/[A-Z]+/,a),d={scope:"variable",match:"\\$+"+s},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},m=t.inherit(t.APOS_STRING_MODE,{illegal:null}),p=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(f)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(f),"on:begin":($,M)=>{M.data._beginMatch=$[1]||$[2]},"on:end":($,M)=>{M.data._beginMatch!==$[1]&&M.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[ -]`,N={scope:"string",variants:[p,m,y,x]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],k=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],I={keyword:k,literal:($=>{const M=[];return $.forEach(B=>{M.push(B),B.toLowerCase()===B?M.push(B.toUpperCase()):M.push(B.toLowerCase())}),M})(w),built_in:E},R=$=>$.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(E).join("\\b|"),"\\b)"),l],scope:{1:"keyword",4:"title.class"}}]},j=i.concat(s,"\\b(?!\\()"),Z={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),j],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[l,i.concat(/::/,i.lookahead(/(?!class\b)/)),j],scope:{1:"title.class",3:"variable.constant"}},{match:[l,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[l,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},z={scope:"attr",match:i.concat(s,i.lookahead(":"),i.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:I,contains:[z,d,Z,t.C_BLOCK_COMMENT_MODE,N,S,H]},K={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(K);const Y=[z,Z,t.C_BLOCK_COMMENT_MODE,N,S,H],C={begin:i.concat(/#\[\s*\\?/,i.either(l,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...Y]},...Y,{scope:"meta",variants:[{match:l},{match:c}]}]};return{case_insensitive:!1,keywords:I,contains:[C,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},h,{scope:"variable.language",match:/\$this\b/},d,K,Z,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:I,contains:["self",C,d,Z,t.C_BLOCK_COMMENT_MODE,N,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},N,S]}}return Ph=e,Ph}var Fh,ov;function qD(){if(ov)return Fh;ov=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Fh=e,Fh}var Gh,lv;function PD(){if(lv)return Gh;lv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Gh=e,Gh}var Vh,cv;function FD(){if(cv)return Vh;cv=1;function e(t){const i=t.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},p={begin:/\{\{/,relevance:0},y={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,p,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,p,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,p,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",_=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,N=`\\b|${s.join("|")}`,S={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${_}))[eE][+-]?(${x})[jJ]?(?=${N})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${N})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${N})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${N})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${N})`},{begin:`\\b(${x})[jJ](?=${N})`}]},w={className:"comment",begin:i.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",f,S,y,t.HASH_COMMENT_MODE]}]};return m.contains=[y,S,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[f,S,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,w,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[S,k,y]}]}}return Vh=e,Vh}var Yh,uv;function GD(){if(uv)return Yh;uv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Yh=e,Yh}var Xh,dv;function VD(){if(dv)return Xh;dv=1;function e(t){const i=t.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=i.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),l=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=i.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:i.lookahead(i.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[l,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[c,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:l},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Xh=e,Xh}var Kh,fv;function YD(){if(fv)return Kh;fv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),l=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,l,i.lookahead(/\s*\(/))},d="([ui](8|16|32|64|128|size)|f(32|64))?",h=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],f=["true","false","Some","None","Ok","Err"],m=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:p,keyword:h,literal:f,built_in:m},illegal:""},c]}}return Kh=e,Kh}var Zh,hv;function XD(){if(hv)return Zh;hv=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...t,...i],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),d=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(f){const m=e(f),p=c,y=l,x="@[a-z-]+",_="and or not only",S={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,m.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[m.CSS_NUMBER_MODE]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[m.BLOCK_COMMENT,S,m.HEXCOLOR,m.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,m.IMPORTANT,m.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},S,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,m.HEXCOLOR,m.CSS_NUMBER_MODE]},m.FUNCTION_DISPATCH]}}return Zh=h,Zh}var Qh,mv;function KD(){if(mv)return Qh;mv=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Qh=e,Qh}var Wh,pv;function ZD(){if(pv)return Wh;pv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},l={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],d=["double precision","large object","with timezone","without timezone"],h=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=p,N=[...m,...f].filter(R=>!p.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function E(R){return i.concat(/\b/,i.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const O={scope:"keyword",match:E(x),relevance:0};function I(R,{exceptions:H,when:j}={}){const Z=j;return H=H||[],R.map(z=>z.match(/\|\d+$/)||H.includes(z)?z:Z(z)?`${z}|0`:z)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:I(N,{when:R=>R.length<3}),literal:c,type:h,built_in:y},contains:[{scope:"type",match:E(d)},O,k,S,s,l,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return Wh=e,Wh}var Jh,gv;function QD(){if(gv)return Jh;gv=1;function e(j){return j?typeof j=="string"?j:j.source:null}function t(j){return i("(?=",j,")")}function i(...j){return j.map(z=>e(z)).join("")}function a(j){const Z=j[j.length-1];return typeof Z=="object"&&Z.constructor===Object?(j.splice(j.length-1,1),Z):{}}function s(...j){return"("+(a(j).capture?"":"?:")+j.map(q=>e(q)).join("|")+")"}const l=j=>i(/\b/,j,/\w$/.test(j)?/\b/:/\B/),c=["Protocol","Type"].map(l),d=["init","self"].map(l),h=["Any","Self"],f=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],m=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),N=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),S=i(_,N,"*"),w=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),k=s(w,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),E=i(w,k,"*"),O=i(/[A-Z]/,k,"*"),I=["attached","autoclosure",i(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",i(/objc\(/,E,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],R=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(j){const Z={match:/\s+/,relevance:0},z=j.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[j.C_LINE_COMMENT_MODE,z],K={match:[/\./,s(...c,...d)],className:{2:"keyword"}},Y={match:i(/\./,s(...f)),relevance:0},C=f.filter(nt=>typeof nt=="string").concat(["_|0"]),$=f.filter(nt=>typeof nt!="string").concat(h).map(l),M={variants:[{className:"keyword",match:s(...$,...d)}]},B={$pattern:s(/\b\w+/,/#\w+/),keyword:C.concat(y),literal:m},X=[K,Y,M],F={match:i(/\./,s(...x)),relevance:0},A={className:"built_in",match:i(/\b/,s(...x),/(?=\()/)},L=[F,A],V={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},G=[V,D],U="([0-9]_*)+",W="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${U})(\\.(${U}))?([eE][+-]?(${U}))?\\b`},{match:`\\b0x(${W})(\\.(${W}))?([pP][+-]?(${U}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Q=(nt="")=>({className:"subst",variants:[{match:i(/\\/,nt,/[0\\tnr"']/)},{match:i(/\\/,nt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ee=(nt="")=>({className:"subst",match:i(/\\/,nt,/[\t ]*(?:[\r\n]|\r\n)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[Q(nt),ee(nt),ce(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[Q(nt),ce(nt)]}),we={className:"string",variants:[fe(),fe("#"),fe("##"),fe("###"),be(),be("#"),be("##"),be("###")]},Ne=[j.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[j.BACKSLASH_ESCAPE]}],Le={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ne},$e=nt=>{const Yn=i(nt,/\//),Cn=i(/\//,nt);return{begin:Yn,end:Cn,contains:[...Ne,{scope:"comment",begin:`#(?!.*${Cn})`,end:/$/}]}},st={scope:"regexp",variants:[$e("###"),$e("##"),$e("#"),Le]},Rt={match:i(/`/,E,/`/)},Yt={className:"variable",match:/\$\d+/},Pt={className:"variable",match:`\\$${k}+`},Xt=[Rt,Yt,Pt],Vn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:R,contains:[...G,J,we]}]}},wn={scope:"keyword",match:i(/@/,s(...I),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,E)},It=[Vn,wn,ct],ue={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,k,"+")},{className:"type",match:O,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,t(O)),relevance:0}]},xe={begin://,keywords:B,contains:[...q,...X,...It,V,ue]};ue.contains.push(xe);const Oe={match:i(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:B,contains:["self",Oe,...q,st,...X,...L,...G,J,we,...Xt,...It,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},ln={begin:s(t(i(E,/\s*:/)),t(i(E,/\s+/,E,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:E}]},En={begin:/\(/,end:/\)/,keywords:B,contains:[ln,...q,...X,...G,J,we,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,E,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,En,Z],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,En,Z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,O],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...p,...m],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},cn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},vr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:B,contains:[Ze,...X,{begin:/:/,end:/\{/,keywords:B,contains:[{scope:"title.class.inherited",match:O},...X],relevance:0}]};for(const nt of we.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=B;const Cn=[...X,...L,...G,J,we,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:B,contains:[...q,Kt,Ct,zn,cn,vr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},st,...X,...L,...G,J,we,...Xt,...It,ue,Fe]}}return Jh=H,Jh}var em,bv;function WD(){if(bv)return em;bv=1;function e(t){const i="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},l={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},d={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,l]},h=t.inherit(d,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:i,relevance:0},N={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},w=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:i,keywords:{literal:i}},x,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},N,S,c,d],k=[...w];return k.pop(),k.push(h),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}return em=e,em}var tm,xv;function JD(){if(xv)return tm;xv=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],d=[].concat(l,a,s);function h(m){const p=m.regex,y=(Q,{after:ee})=>{const ce="",end:""},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ee)=>{const ce=Q[0].length+Q.index,fe=Q.input[ce];if(fe==="<"||fe===","){ee.ignoreMatch();return}fe===">"&&(y(Q,{after:ce})||ee.ignoreMatch());let be;const we=Q.input.substring(ce);if(be=we.match(/^\s*=/)){ee.ignoreMatch();return}if((be=we.match(/^\s+extends\s+/))&&be.index===0){ee.ignoreMatch();return}}},w={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",E=`\\.(${k})`,O="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",I={className:"number",variants:[{begin:`(\\b(${O})((${E})|\\.)?|(${E}))[eE][+-]?(${k})\\b`},{begin:`\\b(${O})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},j={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"css"}},Z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,R]},K={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},Y=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,H,j,Z,z,{match:/\$\d+/},I];R.contains=Y.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(Y)});const C=[].concat(K,R.contains),$=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(C)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$},B={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,p.concat(x,"(",p.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},F={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(Q){return p.concat("(?!",Q.join("|"),")")}const D={match:p.concat(/\b/,V([...l,"super","import"].map(Q=>`${Q}\\s*\\(`)),x,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:p.concat(/\./,p.lookahead(p.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},U={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),F,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,H,j,Z,z,K,{match:/\$\d+/},I,X,{scope:"attr",match:x+p.lookahead(":"),relevance:0},J,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:W,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:N},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,m.inherit(m.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},D,L,B,U,{match:/\$[(.]/}]}}function f(m){const p=m.regex,y=h(m),x=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,m.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[y.exports.CLASS_REFERENCE]},w={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:e,keyword:t.concat(k),literal:i,built_in:d.concat(_),"variable.language":c},O={className:"meta",begin:"@"+x},I=(Z,z,q)=>{const K=Z.contains.findIndex(Y=>Y.label===z);if(K===-1)throw new Error("can not find mode to replace");Z.contains.splice(K,1,q)};Object.assign(y.keywords,E),y.exports.PARAMS_CONTAINS.push(O);const R=y.contains.find(Z=>Z.scope==="attr"),H=Object.assign({},R,{match:p.concat(x,p.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,H]),y.contains=y.contains.concat([O,N,S,H]),I(y,"shebang",m.SHEBANG()),I(y,"use_strict",w);const j=y.contains.find(Z=>Z.label==="func.def");return j.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return tm=f,tm}var nm,yv;function e4(){if(yv)return nm;yv=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},l=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,d=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,h=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:i.concat(/# */,i.either(c,l),/ *#/)},{begin:i.concat(/# */,h,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,l),/ +/,i.either(d,h),/ *#/)}]},m={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},y=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,s,f,m,p,y,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return nm=e,nm}var im,vv;function t4(){if(vv)return im;vv=1;function e(t){t.regex;const i=t.COMMENT(/\(;/,/;\)/);i.contains.push("self");const a=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],l={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},d={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},h={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},m={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[a,i,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,d,l,t.QUOTE_STRING_MODE,f,m,h]}}return im=e,im}var rm,_v;function n4(){if(_v)return rm;_v=1;var e=yD();return e.registerLanguage("xml",vD()),e.registerLanguage("bash",_D()),e.registerLanguage("c",wD()),e.registerLanguage("cpp",ED()),e.registerLanguage("csharp",ND()),e.registerLanguage("css",SD()),e.registerLanguage("markdown",kD()),e.registerLanguage("diff",TD()),e.registerLanguage("ruby",AD()),e.registerLanguage("go",CD()),e.registerLanguage("graphql",MD()),e.registerLanguage("ini",OD()),e.registerLanguage("java",RD()),e.registerLanguage("javascript",DD()),e.registerLanguage("json",LD()),e.registerLanguage("kotlin",zD()),e.registerLanguage("less",jD()),e.registerLanguage("lua",ID()),e.registerLanguage("makefile",BD()),e.registerLanguage("perl",UD()),e.registerLanguage("objectivec",HD()),e.registerLanguage("php",$D()),e.registerLanguage("php-template",qD()),e.registerLanguage("plaintext",PD()),e.registerLanguage("python",FD()),e.registerLanguage("python-repl",GD()),e.registerLanguage("r",VD()),e.registerLanguage("rust",YD()),e.registerLanguage("scss",XD()),e.registerLanguage("shell",KD()),e.registerLanguage("sql",ZD()),e.registerLanguage("swift",QD()),e.registerLanguage("yaml",WD()),e.registerLanguage("typescript",JD()),e.registerLanguage("vbnet",e4()),e.registerLanguage("wasm",t4()),e.HighlightJS=e,e.default=e,rm=e,rm}var i4=n4();const Fn=gl(i4);function r4(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:t.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},l=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},e.inherit(s,{relevance:0})]}}function a4(e){const t=e.regex,i={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},i]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function s4(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[a,s,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},a,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}function o4(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"{lp(l),s(!0),setTimeout(()=>s(!1),2e3)};return g.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[x?g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[x,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:S,className:"px-3 py-2 text-[#555] hover:text-white transition-colors border-b border-[#2a2a2a]","aria-label":"Copy code",children:a?g.jsx(js,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(rl,{className:"w-3.5 h-3.5"})})]}):g.jsx("button",{onClick:S,className:"absolute top-2 right-2 z-10 p-1 rounded text-[#444] hover:text-white opacity-0 group-hover/code:opacity-100 transition-opacity","aria-label":"Copy code",children:a?g.jsx(js,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(rl,{className:"w-3.5 h-3.5"})}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:N.map((E,O)=>g.jsxs("tr",{children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap px-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:y+O}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:E||` -`}})]},O))})})})]})}function Op(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(l=>l.type==="element"&&l.tagName==="code");(a=s==null?void 0:s.data)!=null&&a.meta&&(s.properties=s.properties||{},s.properties.metastring=s.data.meta)}i.children&&i.children.forEach(s=>t(s))};t(e)}}const Rp={code:Hw,pre:({children:e})=>g.jsx(g.Fragment,{children:e})};function ia({title:e,content:t,action:i}){return g.jsxs("section",{children:[(e||i)&&g.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?g.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):g.jsx("span",{}),i]}),g.jsx("div",{className:"prose-markdown",children:g.jsx(kp,{remarkPlugins:[Mp],rehypePlugins:[Op],components:Rp,children:t})})]})}class c4{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const l=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(l,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,i,a,s){var l;const c=k=>{if(k=this.postProcess(k,a),s){setTimeout(function(){s(k)},0);return}else return k},d=i.length,h=t.length;let f=1,m=d+h;a.maxEditLength!=null&&(m=Math.min(m,a.maxEditLength));const p=(l=a.timeout)!==null&&l!==void 0?l:1/0,y=Date.now()+p,x=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(x[0],i,t,0,a);if(x[0].oldPos+1>=h&&_+1>=d)return c(this.buildValues(x[0].lastComponent,i,t));let N=-1/0,S=1/0;const w=()=>{for(let k=Math.max(N,-f);k<=Math.min(S,f);k+=2){let E;const O=x[k-1],I=x[k+1];O&&(x[k-1]=void 0);let R=!1;if(I){const j=I.oldPos-k;R=I&&0<=j&&j=h&&_+1>=d)return c(this.buildValues(E.lastComponent,i,t))||!0;x[k]=E,E.oldPos+1>=h&&(S=Math.min(S,k-1)),_+1>=d&&(N=Math.max(N,k+1))}f++};if(s)(function k(){setTimeout(function(){if(f>m||Date.now()>y)return s(void 0);w()||k()},0)})();else for(;f<=m&&Date.now()<=y;){const k=w();if(k)return k}}addToPath(t,i,a,s,l){const c=t.lastComponent;return c&&!l.oneChangePerToken&&c.added===i&&c.removed===a?{oldPos:t.oldPos+s,lastComponent:{count:c.count+1,added:i,removed:a,previousComponent:c.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:i,removed:a,previousComponent:c}}}extractCommon(t,i,a,s,l){const c=i.length,d=a.length;let h=t.oldPos,f=h-s,m=0;for(;f+1y.length?_:y}),m.value=this.join(p)}else m.value=this.join(i.slice(h,h+m.count));h+=m.count,m.added||(f+=m.count)}}return s}}class u4 extends c4{constructor(){super(...arguments),this.tokenize=h4}equals(t,i,a){return a.ignoreWhitespace?((!a.newlineIsToken||!t.includes(` -`))&&(t=t.trim()),(!a.newlineIsToken||!i.includes(` -`))&&(i=i.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(t.endsWith(` -`)&&(t=t.slice(0,-1)),i.endsWith(` -`)&&(i=i.slice(0,-1))),super.equals(t,i,a)}}const d4=new u4;function f4(e,t,i){return d4.diff(e,t,i)}function h4(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,` -`));const i=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;sN.value.replace(/\n$/,"").split(` -`).map(S=>{const w=S===""?` -`:f!=="text"?m4(S,f):S.replace(/&/g,"&").replace(//g,">");let k="",E="";return N.removed?k=String(p++):(N.added||(k=String(p++)),E=String(y++)),{highlighted:w,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:E}})),_=()=>{lp(s),d(!0),setTimeout(()=>d(!1),2e3),l==null||l()};return g.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a] break-all",children:[e,":",h,g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:_,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy fixed code",children:c?g.jsx(js,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(rl,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px]",children:g.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:g.jsx("tbody",{children:x.map((N,S)=>g.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-4 pr-1.5 text-right text-[#555] align-top text-[12px] leading-[22px]",children:N.leftNo}),g.jsx("td",{className:"select-none w-[1px] whitespace-nowrap pl-1.5 pr-4 text-right text-[#555] align-top text-[12px] leading-[22px] border-r border-[#2a2a2a]",children:N.rightNo}),g.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function g4({description:e,scriptCode:t,onCopy:i}){const[a,s]=re.useState(!1);if(!e&&!t)return null;const l=()=>{t&&(lp(t),s(!0),setTimeout(()=>s(!1),2e3),i==null||i())};return g.jsxs("section",{children:[g.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),g.jsxs("div",{className:"space-y-4",children:[e&&g.jsx("div",{className:"prose-markdown",children:g.jsx(kp,{remarkPlugins:[Mp],rehypePlugins:[Op],components:Rp,children:e})}),t&&g.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[g.jsxs("div",{className:"flex items-stretch",children:[g.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",g.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),g.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),g.jsx("button",{onClick:l,className:"px-3 py-2 text-[#555] hover:text-white transition-colors flex-shrink-0 border-b border-[#2a2a2a]","aria-label":"Copy PoC code",children:a?g.jsx(js,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(rl,{className:"w-3.5 h-3.5"})})]}),g.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:g.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:g.jsx("code",{dangerouslySetInnerHTML:{__html:Fn.highlight(t,{language:"python"}).value}})})})]})]})]})}function b4(e){const t=e.match(/(?:https?:\/\/)?(?:www\.)?github\.com\/([^\s/]+\/[^\s/]+)/);if(t){const s=t[1].replace(/\.git$/,"");return{display:s,href:`https://github.com/${s}`,provider:"github"}}const i=e.match(/(?:https?:\/\/)?(?:www\.)?gitlab\.com\/([^\s/]+\/[^\s/]+)/);if(i){const s=i[1].replace(/\.git$/,"");return{display:s,href:`https://gitlab.com/${s}`,provider:"gitlab"}}const a=e.match(/(?:https?:\/\/)?(?:www\.)?bitbucket\.org\/([^\s/]+\/[^\s/]+)/);if(a){const s=a[1].replace(/\.git$/,"");return{display:s,href:`https://bitbucket.org/${s}`,provider:"bitbucket"}}return/^https?:\/\//i.test(e)?{display:e.replace(/^https?:\/\/(www\.)?/,""),href:e,provider:null}:/^[a-zA-Z0-9][\w.-]*\.[a-zA-Z]{2,}/.test(e)?{display:e,href:`https://${e}`,provider:null}:{display:e,href:null,provider:null}}function x4({className:e}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:g.jsx("path",{d:"M2.65 3a.72.72 0 0 0-.72.83l2.86 17.39a.98.98 0 0 0 .96.82h13.72a.72.72 0 0 0 .72-.6l2.86-17.4A.72.72 0 0 0 22.3 3H2.65Zm12.1 12.53H9.3L8.06 8.9h7.8l-1.11 6.63Z"})})}function y4({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?g.jsx(K2,{className:`${i} text-orange-400`}):e==="bitbucket"?g.jsx(x4,{className:`${i} text-blue-400`}):g.jsx(Y2,{className:`${i} text-white`})}const v4={attack_vector:{N:"Remotely exploitable",A:"Adjacent network",L:"Local access required",P:"Physical access required"},attack_complexity:{L:"Easy to exploit",H:"Requires specific conditions"},privileges_required:{N:"No authentication needed",L:"Low privileges needed",H:"High privileges needed"},user_interaction:{N:"No user action required",R:"Requires user action",P:"Passive user role",A:"Active user role"},scope:{U:"Impact stays contained",C:"Can spread to other systems"},confidentiality:{N:"No data exposure",L:"Partial data exposure",H:"Full data exposure"},integrity:{N:"No data modification",L:"Limited modification",H:"Full data modification"},availability:{N:"No service disruption",L:"Limited disruption",H:"Full service disruption"}},_4={attack_vector:{N:"high",A:"medium",L:"low",P:"low"},attack_complexity:{L:"high",H:"low"},privileges_required:{N:"high",L:"medium",H:"low"},user_interaction:{N:"high",R:"low",P:"medium",A:"low"},scope:{C:"high",U:"low"},confidentiality:{H:"high",L:"medium",N:"low"},integrity:{H:"high",L:"medium",N:"low"},availability:{H:"high",L:"medium",N:"low"}},w4={high:"bg-red-500/15 text-red-400 border-red-500/25",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/25",low:"bg-[#222] text-[#666] border-[#333]"},E4=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function N4(e,t,i,a,s){const l=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${l}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${l}/-/blob/${d}/${c}#L${s}`:null}function S4({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:l,cwe:c,fix_effort:d,created_at:h,target:f,endpoint:m,method:p,code_locations:y,cvss_breakdown:x,location_meta:_}=e,[N,S]=re.useState(!0),w=y==null?void 0:y.filter(H=>H.fix_before&&H.fix_after),k=w&&w.length>0,E=f?b4(f):null,O=!!(f||m||p||k),I=x&&Object.values(x).some(H=>H!=null);return g.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[g.jsx("div",{className:"pb-4",children:g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${op(a)}`,"aria-hidden":"true"}),g.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),g.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),l&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),g.jsx("span",{className:"text-sm text-white font-mono",children:l})]}),c&&c.length>0&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),g.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=ZT[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(u_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-white",children:Sm(h)})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),O&&g.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[g.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),g.jsxs("div",{className:"space-y-2.5",children:[f&&E&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[E.provider?g.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:g.jsx(y4,{provider:E.provider})}):g.jsx(rp,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),E.href?g.jsx("a",{href:E.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:E.display}):g.jsx("span",{className:"text-sm text-white break-words min-w-0",children:E.display})]}),m&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),g.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:m})]}),p&&g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),g.jsx("span",{className:"text-xs text-white font-mono",children:p})]}),k&&g.jsxs("div",{children:[g.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),g.jsx("div",{className:"space-y-0.5",children:w.map((H,j)=>{const Z=`${H.file}:${H.start_line}`,z=_?N4(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return z?g.jsx("a",{href:z,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:Z},`loc-${j}`):g.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:Z},`loc-${j}`)})})]})]})]}),I&&g.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[g.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[g.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),g.jsx(o_,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),g.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:E4.map(H=>{const j=H.keys.filter(Z=>x[Z]!=null);return j.length===0?null:g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),g.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),g.jsx("div",{className:"space-y-1",children:j.map(Z=>{var Y,C;const z=x[Z],q=z?((Y=_4[Z])==null?void 0:Y[z])??"low":"low",K=z?((C=v4[Z])==null?void 0:C[z])??z:"N/A";return g.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[g.jsx("span",{className:"text-[12px] text-[#aaa]",children:K}),g.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${w4[q]}`,children:q})]},Z)})})]},H.label)})})]})]})}function wv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Sm(e)}`:` on ${Sm(e)}`:""}const k4={open:null,in_progress:{icon:u_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:c2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:N2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:r_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function T4({vulnerability:e}){const t=KT[e.status],i=e.code_locations&&e.code_locations.length>0,a=i||e.remediation_steps,s=!!(e.evidence||e.assumptions||e.poc_description||e.poc_script_code),[l,c]=re.useState("fix"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(f=>f.show);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"mb-2",children:[e.display_number&&g.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:ZA(e.display_number)}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[g.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded-full border ${t.color}`,children:t.label}),g.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${y_[e.severity]}`,title:Bc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${op(e.severity)}`}),g.jsxs("span",{className:"capitalize",children:[e.severity,!Bc(e)&&e.cvss?` ${e.cvss}`:""]}),Bc(e)&&g.jsx(Is,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const f=k4[e.status];if(!f)return null;const m=f.icon;return g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(m,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${f.iconColor}`,"aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:[f.label,wv(e.status_changed_at)]}),e.status_note&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),Bc(e)&&g.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Is,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",g.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",g.jsx("span",{className:"capitalize",children:e.severity}),wv(e.severity_changed_at)]}),e.severity_override_reason&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"space-y-8",children:[g.jsx(ia,{title:"TL;DR",content:e.description}),e.impact&&g.jsx(ia,{title:"Impact",content:e.impact}),e.technical_analysis&&g.jsx(ia,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&g.jsxs("div",{className:"mt-10",children:[g.jsx("div",{className:"border-b border-[#2a2a2a]",children:g.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(f=>g.jsxs("button",{onClick:()=>c(f.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${l===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":l===f.id?"page":void 0,children:[f.label,l===f.id&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},f.id))})}),a&&g.jsxs("div",{className:`pt-6 space-y-6 ${l==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&g.jsx(ia,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(f=>f.fix_before&&f.fix_after).map((f,m)=>g.jsx(p4,{file:f.file,startLine:f.start_line,endLine:f.end_line,before:f.fix_before,after:f.fix_after},`fix-${m}`))]}),s&&g.jsxs("div",{className:`pt-6 space-y-8 ${l==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&g.jsx(ia,{title:"Assumptions",content:e.assumptions}),e.evidence&&g.jsx(ia,{title:"Evidence",content:e.evidence}),g.jsx(g4,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),g.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:g.jsx(S4,{vulnerability:e,statusSlot:g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-full border ${t.color}`,children:[g.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Ship the fix with your team"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Take this finding into your team's workflow."}),g.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[g.jsx(Rs,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:cu,surface:"finding_detail"}),g.jsx(Rs,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:F2,surface:"finding_detail"}),g.jsx(Rs,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:ip,surface:"finding_detail"})]})]})]})}const Ev=[{key:"critical",label:"critical",dotClass:"bg-red-500",textClass:"text-red-500"},{key:"high",label:"high",dotClass:"bg-orange-500",textClass:"text-orange-500"},{key:"medium",label:"medium",dotClass:"bg-yellow-500",textClass:"text-yellow-500"},{key:"low",label:"low",dotClass:"bg-blue-500",textClass:"text-blue-500"}];function A4({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:g.jsxs("div",{className:$c("space-y-3",t),children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),g.jsx("span",{className:"text-sm text-[#666]",children:i})]}),g.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:Ev.map(({key:s,label:l,dotClass:c,textClass:d})=>{const h=e[s];return h<=0?null:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("div",{className:$c("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),g.jsx("span",{className:$c("text-sm tabular-nums",d),children:h}),g.jsx("span",{className:"text-xs text-[#555]",children:l})]},s)})}),a?g.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),g.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:Ev.map(({key:s,dotClass:l})=>{const c=e[s];return c<=0?null:g.jsx("div",{className:$c("h-full",l),style:{width:`${c/e.total*100}%`}},s)})})]})}function on(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i{}};function Lu(){for(var e=0,t=arguments.length,i={},a;e=0&&(a=i.slice(s+1),i=i.slice(0,s)),i&&!t.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}ru.prototype=Lu.prototype={constructor:ru,on:function(e,t){var i=this._,a=M4(e+"",i),s,l=-1,c=a.length;if(arguments.length<2){for(;++l0)for(var i=new Array(s),a=0,s,l;a=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Sv.hasOwnProperty(t)?{space:Sv[t],local:e}:e}function R4(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===Im&&t.documentElement.namespaceURI===Im?t.createElement(e):t.createElementNS(i,e)}}function D4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $w(e){var t=zu(e);return(t.local?D4:R4)(t)}function L4(){}function Dp(e){return e==null?L4:function(){return this.querySelector(e)}}function z4(e){typeof e!="function"&&(e=Dp(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s=E&&(E=k+1);!(I=S[E])&&++E<_;);O._next=I||null}}return c=new ri(c,a),c._enter=d,c._exit=h,c}function tL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nL(){return new ri(this._exit||this._groups.map(Gw),this._parents)}function iL(e,t,i){var a=this.enter(),s=this,l=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),i==null?l.remove():i(l),a&&s?a.merge(s).order():s}function rL(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,l=a.length,c=Math.min(s,l),d=new Array(s),h=0;h=0;)(c=a[s])&&(l&&c.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(c,l),l=c);return this}function sL(e){e||(e=oL);function t(p,y){return p&&y?e(p.__data__,y.__data__):!p-!y}for(var i=this._groups,a=i.length,s=new Array(a),l=0;lt?1:e>=t?0:NaN}function lL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cL(){return Array.from(this)}function uL(){for(var e=this._groups,t=0,i=e.length;t1?this.each((t==null?_L:typeof t=="function"?EL:wL)(e,t,i??"")):Us(this.node(),e)}function Us(e,t){return e.style.getPropertyValue(t)||Vw(e).getComputedStyle(e,null).getPropertyValue(t)}function SL(e){return function(){delete this[e]}}function kL(e,t){return function(){this[e]=t}}function TL(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function AL(e,t){return arguments.length>1?this.each((t==null?SL:typeof t=="function"?TL:kL)(e,t)):this.node()[e]}function Yw(e){return e.trim().split(/^|\s+/)}function Lp(e){return e.classList||new Xw(e)}function Xw(e){this._node=e,this._names=Yw(e.getAttribute("class")||"")}Xw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Kw(e,t){for(var i=Lp(e),a=-1,s=t.length;++a=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function nz(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,l;i()=>e;function Bm(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:l,x:c,y:d,dx:h,dy:f,dispatch:m}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:m}})}Bm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function fz(e){return!e.ctrlKey&&!e.button}function hz(){return this.parentNode}function mz(e,t){return t??{x:e.x,y:e.y}}function pz(){return navigator.maxTouchPoints||"ontouchstart"in this}function tE(){var e=fz,t=hz,i=mz,a=pz,s={},l=Lu("start","drag","end"),c=0,d,h,f,m,p=0;function y(O){O.on("mousedown.drag",x).filter(a).on("touchstart.drag",S).on("touchmove.drag",w,dz).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(O,I){if(!(m||!e.call(this,O,I))){var R=E(this,t.call(this,O,I),O,I,"mouse");R&&(ni(O.view).on("mousemove.drag",_,ol).on("mouseup.drag",N,ol),Jw(O.view),am(O),f=!1,d=O.clientX,h=O.clientY,R("start",O))}}function _(O){if(Ds(O),!f){var I=O.clientX-d,R=O.clientY-h;f=I*I+R*R>p}s.mouse("drag",O)}function N(O){ni(O.view).on("mousemove.drag mouseup.drag",null),eE(O.view,f),Ds(O),s.mouse("end",O)}function S(O,I){if(e.call(this,O,I)){var R=O.changedTouches,H=t.call(this,O,I),j=R.length,Z,z;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?Yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?Yc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bz.exec(e))?new Pn(t[1],t[2],t[3],1):(t=xz.exec(e))?new Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yz.exec(e))?Yc(t[1],t[2],t[3],t[4]):(t=vz.exec(e))?Yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_z.exec(e))?Rv(t[1],t[2]/100,t[3]/100,1):(t=wz.exec(e))?Rv(t[1],t[2]/100,t[3]/100,t[4]):kv.hasOwnProperty(e)?Cv(kv[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function Cv(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Yc(e,t,i,a){return a<=0&&(e=t=i=NaN),new Pn(e,t,i,a)}function Sz(e){return e instanceof wl||(e=Ia(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function Um(e,t,i,a){return arguments.length===1?Sz(e):new Pn(e,t,i,a??1)}function Pn(e,t,i,a){this.r=+e,this.g=+t,this.b=+i,this.opacity=+a}zp(Pn,Um,nE(wl,{brighter(e){return e=e==null?gu:Math.pow(gu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ll:Math.pow(ll,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(La(this.r),La(this.g),La(this.b),bu(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:Mv,formatHex:Mv,formatHex8:kz,formatRgb:Ov,toString:Ov}));function Mv(){return`#${Ra(this.r)}${Ra(this.g)}${Ra(this.b)}`}function kz(){return`#${Ra(this.r)}${Ra(this.g)}${Ra(this.b)}${Ra((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ov(){const e=bu(this.opacity);return`${e===1?"rgb(":"rgba("}${La(this.r)}, ${La(this.g)}, ${La(this.b)}${e===1?")":`, ${e})`}`}function bu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function La(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ra(e){return e=La(e),(e<16?"0":"")+e.toString(16)}function Rv(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Ti(e,t,i,a)}function iE(e){if(e instanceof Ti)return new Ti(e.h,e.s,e.l,e.opacity);if(e instanceof wl||(e=Ia(e)),!e)return new Ti;if(e instanceof Ti)return e;e=e.rgb();var t=e.r/255,i=e.g/255,a=e.b/255,s=Math.min(t,i,a),l=Math.max(t,i,a),c=NaN,d=l-s,h=(l+s)/2;return d?(t===l?c=(i-a)/d+(i0&&h<1?0:c,new Ti(c,d,h,e.opacity)}function Tz(e,t,i,a){return arguments.length===1?iE(e):new Ti(e,t,i,a??1)}function Ti(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}zp(Ti,Tz,nE(wl,{brighter(e){return e=e==null?gu:Math.pow(gu,e),new Ti(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ll:Math.pow(ll,e),new Ti(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*t,s=2*i-a;return new Pn(sm(e>=240?e-240:e+120,s,a),sm(e,s,a),sm(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Ti(Dv(this.h),Xc(this.s),Xc(this.l),bu(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 e=bu(this.opacity);return`${e===1?"hsl(":"hsla("}${Dv(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dv(e){return e=(e||0)%360,e<0?e+360:e}function Xc(e){return Math.max(0,Math.min(1,e||0))}function sm(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}const jp=e=>()=>e;function Az(e,t){return function(i){return e+i*t}}function Cz(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(a){return Math.pow(e+a*t,i)}}function Mz(e){return(e=+e)==1?rE:function(t,i){return i-t?Cz(t,i,e):jp(isNaN(t)?i:t)}}function rE(e,t){var i=t-e;return i?Az(e,i):jp(isNaN(e)?t:e)}const xu=(function e(t){var i=Mz(t);function a(s,l){var c=i((s=Um(s)).r,(l=Um(l)).r),d=i(s.g,l.g),h=i(s.b,l.b),f=rE(s.opacity,l.opacity);return function(m){return s.r=c(m),s.g=d(m),s.b=h(m),s.opacity=f(m),s+""}}return a.gamma=e,a})(1);function Oz(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(l){for(s=0;si&&(l=t.slice(i,l),d[c]?d[c]+=l:d[++c]=l),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:qi(a,s)})),i=om.lastIndex;return i180?m+=360:m-f>180&&(f+=360),y.push({i:p.push(s(p)+"rotate(",null,a)-2,x:qi(f,m)})):m&&p.push(s(p)+"rotate("+m+a)}function d(f,m,p,y){f!==m?y.push({i:p.push(s(p)+"skewX(",null,a)-2,x:qi(f,m)}):m&&p.push(s(p)+"skewX("+m+a)}function h(f,m,p,y,x,_){if(f!==p||m!==y){var N=x.push(s(x)+"scale(",null,",",null,")");_.push({i:N-4,x:qi(f,p)},{i:N-2,x:qi(m,y)})}else(p!==1||y!==1)&&x.push(s(x)+"scale("+p+","+y+")")}return function(f,m){var p=[],y=[];return f=e(f),m=e(m),l(f.translateX,f.translateY,m.translateX,m.translateY,p,y),c(f.rotate,m.rotate,p,y),d(f.skewX,m.skewX,p,y),h(f.scaleX,f.scaleY,m.scaleX,m.scaleY,p,y),f=m=null,function(x){for(var _=-1,N=y.length,S;++_=0&&e._call.call(void 0,t),e=e._next;--Hs}function jv(){Ba=(vu=ul.now())+ju,Hs=Qo=0;try{Vz()}finally{Hs=0,Xz(),Ba=0}}function Yz(){var e=ul.now(),t=e-vu;t>lE&&(ju-=t,vu=e)}function Xz(){for(var e,t=yu,i,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(i=t._next,t._next=null,t=e?e._next=i:yu=i);Wo=e,qm(a)}function qm(e){if(!Hs){Qo&&(Qo=clearTimeout(Qo));var t=e-Ba;t>24?(e<1/0&&(Qo=setTimeout(jv,e-ul.now()-ju)),Yo&&(Yo=clearInterval(Yo))):(Yo||(vu=ul.now(),Yo=setInterval(Yz,lE)),Hs=1,cE(jv))}}function Iv(e,t,i){var a=new _u;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var Kz=Lu("start","end","cancel","interrupt"),Zz=[],dE=0,Bv=1,Pm=2,su=3,Uv=4,Fm=5,ou=6;function Iu(e,t,i,a,s,l){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;Qz(e,i,{name:t,index:a,group:s,on:Kz,tween:Zz,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dE})}function Bp(e,t){var i=Di(e,t);if(i.state>dE)throw new Error("too late; already scheduled");return i}function Vi(e,t){var i=Di(e,t);if(i.state>su)throw new Error("too late; already running");return i}function Di(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function Qz(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=uE(l,0,i.time);function l(f){i.state=Bv,i.timer.restart(c,i.delay,i.time),i.delay<=f&&c(f-i.delay)}function c(f){var m,p,y,x;if(i.state!==Bv)return h();for(m in a)if(x=a[m],x.name===i.name){if(x.state===su)return Iv(c);x.state===Uv?(x.state=ou,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[m]):+mPm&&a.state=0&&(t=t.slice(0,i)),!t||t==="start"})}function Tj(e,t,i){var a,s,l=kj(t)?Bp:Vi;return function(){var c=l(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function Aj(e,t){var i=this._id;return arguments.length<2?Di(this.node(),i).on.on(e):this.each(Tj(i,e,t))}function Cj(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function Mj(){return this.on("end.remove",Cj(this._id))}function Oj(e){var t=this._name,i=this._id;typeof e!="function"&&(e=Dp(e));for(var a=this._groups,s=a.length,l=new Array(s),c=0;c()=>e;function nI(e,{sourceEvent:t,target:i,transform:a,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function pr(e,t,i){this.k=e,this.x=t,this.y=i}pr.prototype={constructor:pr,scale:function(e){return e===1?this:new pr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new pr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Bu=new pr(1,0,0);pE.prototype=pr.prototype;function pE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Bu;return e.__zoom}function lm(e){e.stopImmediatePropagation()}function Xo(e){e.preventDefault(),e.stopImmediatePropagation()}function iI(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function rI(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Hv(){return this.__zoom||Bu}function aI(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function sI(){return navigator.maxTouchPoints||"ontouchstart"in this}function oI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],l=e.invertY(t[0][1])-i[0][1],c=e.invertY(t[1][1])-i[1][1];return e.translate(s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s),c>l?(l+c)/2:Math.min(0,l)||Math.max(0,c))}function gE(){var e=iI,t=rI,i=oI,a=aI,s=sI,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=au,f=Lu("start","zoom","end"),m,p,y,x=500,_=150,N=0,S=10;function w(C){C.property("__zoom",Hv).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",z).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",K).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(C,$,M,B){var X=C.selection?C.selection():C;X.property("__zoom",Hv),C!==X?I(C,$,M,B):X.interrupt().each(function(){R(this,arguments).event(B).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},w.scaleBy=function(C,$,M,B){w.scaleTo(C,function(){var X=this.__zoom.k,F=typeof $=="function"?$.apply(this,arguments):$;return X*F},M,B)},w.scaleTo=function(C,$,M,B){w.transform(C,function(){var X=t.apply(this,arguments),F=this.__zoom,A=M==null?O(X):typeof M=="function"?M.apply(this,arguments):M,L=F.invert(A),V=typeof $=="function"?$.apply(this,arguments):$;return i(E(k(F,V),A,L),X,c)},M,B)},w.translateBy=function(C,$,M,B){w.transform(C,function(){return i(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),c)},null,B)},w.translateTo=function(C,$,M,B,X){w.transform(C,function(){var F=t.apply(this,arguments),A=this.__zoom,L=B==null?O(F):typeof B=="function"?B.apply(this,arguments):B;return i(Bu.translate(L[0],L[1]).scale(A.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof M=="function"?-M.apply(this,arguments):-M),F,c)},B,X)};function k(C,$){return $=Math.max(l[0],Math.min(l[1],$)),$===C.k?C:new pr($,C.x,C.y)}function E(C,$,M){var B=$[0]-M[0]*C.k,X=$[1]-M[1]*C.k;return B===C.x&&X===C.y?C:new pr(C.k,B,X)}function O(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function I(C,$,M,B){C.on("start.zoom",function(){R(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(B).end()}).tween("zoom",function(){var X=this,F=arguments,A=R(X,F).event(B),L=t.apply(X,F),V=M==null?O(L):typeof M=="function"?M.apply(X,F):M,D=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),G=X.__zoom,U=typeof $=="function"?$.apply(X,F):$,W=h(G.invert(V).concat(D/G.k),U.invert(V).concat(D/U.k));return function(J){if(J===1)J=U;else{var Q=W(J),ee=D/Q[2];J=new pr(ee,V[0]-Q[0]*ee,V[1]-Q[1]*ee)}A.zoom(null,J)}})}function R(C,$,M){return!M&&C.__zooming||new H(C,$)}function H(C,$){this.that=C,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,$),this.taps=0}H.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,$){return this.mouse&&C!=="mouse"&&(this.mouse[1]=$.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=$.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=$.invert(this.touch1[0])),this.that.__zoom=$,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var $=ni(this.that).datum();f.call(C,this.that,new nI(C,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:f}),$)}};function j(C,...$){if(!e.apply(this,arguments))return;var M=R(this,$).event(C),B=this.__zoom,X=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,a.apply(this,arguments)))),F=ki(C);if(M.wheel)(M.mouse[0][0]!==F[0]||M.mouse[0][1]!==F[1])&&(M.mouse[1]=B.invert(M.mouse[0]=F)),clearTimeout(M.wheel);else{if(B.k===X)return;M.mouse=[F,B.invert(F)],lu(this),M.start()}Xo(C),M.wheel=setTimeout(A,_),M.zoom("mouse",i(E(k(B,X),M.mouse[0],M.mouse[1]),M.extent,c));function A(){M.wheel=null,M.end()}}function Z(C,...$){if(y||!e.apply(this,arguments))return;var M=C.currentTarget,B=R(this,$,!0).event(C),X=ni(C.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",D,!0),F=ki(C,M),A=C.clientX,L=C.clientY;Jw(C.view),lm(C),B.mouse=[F,this.__zoom.invert(F)],lu(this),B.start();function V(G){if(Xo(G),!B.moved){var U=G.clientX-A,W=G.clientY-L;B.moved=U*U+W*W>N}B.event(G).zoom("mouse",i(E(B.that.__zoom,B.mouse[0]=ki(G,M),B.mouse[1]),B.extent,c))}function D(G){X.on("mousemove.zoom mouseup.zoom",null),eE(G.view,B.moved),Xo(G),B.event(G).end()}}function z(C,...$){if(e.apply(this,arguments)){var M=this.__zoom,B=ki(C.changedTouches?C.changedTouches[0]:C,this),X=M.invert(B),F=M.k*(C.shiftKey?.5:2),A=i(E(k(M,F),B,X),t.apply(this,$),c);Xo(C),d>0?ni(this).transition().duration(d).call(I,A,B,C):ni(this).call(w.transform,A,B,C)}}function q(C,...$){if(e.apply(this,arguments)){var M=C.touches,B=M.length,X=R(this,$,C.changedTouches.length===B).event(C),F,A,L,V;for(lm(C),A=0;A`Seems like you have not used ${e==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},dl=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],bE=["Enter"," ","Escape"],xE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:i})=>`Moved selected node ${e}. New position, x: ${t}, y: ${i}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var $s;(function(e){e.Strict="strict",e.Loose="loose"})($s||($s={}));var za;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(za||(za={}));var fl;(function(e){e.Partial="partial",e.Full="full"})(fl||(fl={}));const yE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ra;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ra||(ra={}));var wu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(wu||(wu={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const $v={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function vE(e){return e===null?null:e?"valid":"invalid"}const _E=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,lI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Hp=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),El=(e,t=[0,0])=>{const{width:i,height:a}=Yi(e),s=e.origin??t,l=i*s[0],c=a*s[1];return{x:e.position.x-l,y:e.position.y-c}},cI=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,s)=>{const l=typeof s=="string";let c=!t.nodeLookup&&!l?s:void 0;t.nodeLookup&&(c=l?t.nodeLookup.get(s):Hp(s)?s:t.nodeLookup.get(s.id));const d=c?Eu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Uu(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Hu(i)},Nl=(e,t={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(i=Uu(i,Eu(s)),a=!0)}),a?Hu(i):{x:0,y:0,width:0,height:0}},$p=(e,t,[i,a,s]=[0,0,1],l=!1,c=!1)=>{const d=(t.x-i)/s,h=(t.y-a)/s,f=t.width/s,m=t.height/s,p=[];for(const y of e.values()){const{measured:x,selectable:_=!0,hidden:N=!1}=y;if(c&&!_||N)continue;const S=x.width??y.width??y.initialWidth??0,w=x.height??y.height??y.initialHeight??0,{x:k,y:E}=y.internals.positionAbsolute,O=SE(d,h,f,m,k,E,S,w),I=S*w,R=l&&O>0;(!y.internals.handleBounds||R||O>=I||y.dragging)&&p.push(y)}return p},uI=(e,t)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),t.filter(a=>i.has(a.source)||i.has(a.target))};function dI(e,t){const i=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{let l;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Yi(s);l=c>0&&d>0}else l=!!(s.measured.width&&s.measured.height&&!s.hidden);l&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function fI({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:l},c){if(e.size===0)return!0;const d=dI(e,c),h=Nl(d),f=Pp(h,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??l,(c==null?void 0:c.padding)??.1);return await a.setViewport(f,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),!0}function wE({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:l}){const c=i.get(e),d=c.parentId?i.get(c.parentId):void 0,{x:h,y:f}=d?d.internals.positionAbsolute:{x:0,y:0},m=c.origin??a;let p=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)l==null||l("005",Oi.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(p=[[h,f],[h+x,f+_]])}else d&&Ha(c.extent)&&(p=[[c.extent[0][0]+h,c.extent[0][1]+f],[c.extent[1][0]+h,c.extent[1][1]+f]]);const y=Ha(p)?Ua(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(l==null||l("015",Oi.error015())),{position:{x:y.x-h+(c.measured.width??0)*m[0],y:y.y-f+(c.measured.height??0)*m[1]},positionAbsolute:y}}async function hI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const l=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const x=l.has(y.id),_=!x&&y.parentId&&c.find(N=>N.id===y.parentId);(x||_)&&c.push(y)}const d=new Set(t.map(y=>y.id)),h=a.filter(y=>y.deletable!==!1),m=uI(c,h);for(const y of h)d.has(y.id)&&!m.find(_=>_.id===y.id)&&m.push(y);if(!s)return{edges:m,nodes:c};const p=await s({nodes:c,edges:m});return typeof p=="boolean"?p?{edges:m,nodes:c}:{edges:[],nodes:[]}:p}const qs=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ua=(e={x:0,y:0},t,i)=>({x:qs(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:qs(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function EE(e,t,i){const{width:a,height:s}=Yi(i),{x:l,y:c}=i.internals.positionAbsolute;return Ua(e,[[l,c],[l+a,c+s]],t)}const qv=(e,t,i)=>ei?-qs(Math.abs(e-i),1,t)/t:0,qp=(e,t,i=15,a=40)=>{const s=qv(e.x,a,t.width-a)*i,l=qv(e.y,a,t.height-a)*i;return[s,l]},Uu=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Gm=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Hu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),hl=(e,t=[0,0])=>{var s,l;const{x:i,y:a}=Hp(e)?e.internals.positionAbsolute:El(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((l=e.measured)==null?void 0:l.height)??e.height??e.initialHeight??0}},Eu=(e,t=[0,0])=>{var s,l;const{x:i,y:a}=Hp(e)?e.internals.positionAbsolute:El(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((l=e.measured)==null?void 0:l.height)??e.height??e.initialHeight??0)}},NE=(e,t)=>Hu(Uu(Gm(e),Gm(t))),SE=(e,t,i,a,s,l,c,d)=>{const h=Math.max(0,Math.min(e+i,s+c)-Math.max(e,s)),f=Math.max(0,Math.min(t+a,l+d)-Math.max(t,l));return Math.ceil(h*f)},Nu=(e,t)=>SE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),Pv=e=>Ai(e.width)&&Ai(e.height)&&Ai(e.x)&&Ai(e.y),Ai=e=>!isNaN(e)&&isFinite(e),kE=(e,t)=>(i,a)=>{},Sl=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),kl=({x:e,y:t},[i,a,s],l=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return l?Sl(d,c):d},Ps=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function Ss(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(t*i*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function mI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=Ss(e,i),s=Ss(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ss(e.top??e.y??0,i),s=Ss(e.bottom??e.y??0,i),l=Ss(e.left??e.x??0,t),c=Ss(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:l,x:l+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function pI(e,t,i,a,s,l){const{x:c,y:d}=Ps(e,[t,i,a]),{x:h,y:f}=Ps({x:e.x+e.width,y:e.y+e.height},[t,i,a]),m=s-h,p=l-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(m),bottom:Math.floor(p)}}const Pp=(e,t,i,a,s,l)=>{const c=mI(l,t,i),d=(t-c.x)/e.width,h=(i-c.y)/e.height,f=Math.min(d,h),m=qs(f,a,s),p=e.x+e.width/2,y=e.y+e.height/2,x=t/2-p*m,_=i/2-y*m,N=pI(e,x,_,m,t,i),S={left:Math.min(N.left-c.left,0),top:Math.min(N.top-c.top,0),right:Math.min(N.right-c.right,0),bottom:Math.min(N.bottom-c.bottom,0)};return{x:x-S.left+S.right,y:_-S.top+S.bottom,zoom:m}},ml=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ha(e){return e!=null&&e!=="parent"}function Yi(e){var t,i;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function TE(e){var t,i;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function AE(e,t={width:0,height:0},i,a,s){const l={...e},c=a.get(i);if(c){const d=c.origin||s;l.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],l.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return l}function Fv(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function gI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function bI(e){return{...xE,...e||{}}}function il(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:l,y:c}=Ci(e),d=kl({x:l-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=i?Sl(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const Fp=e=>({width:e.offsetWidth,height:e.offsetHeight}),CE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},xI=["INPUT","SELECT","TEXTAREA"];function ME(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:xI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const OE=e=>"clientX"in e,Ci=(e,t)=>{var l,c;const i=OE(e),a=i?e.clientX:(l=e.touches)==null?void 0:l[0].clientX,s=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},Gv=(e,t,i,a,s)=>{const l=t.querySelectorAll(`.${e}`);return!l||!l.length?null:Array.from(l).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(d.left-i.left)/a,y:(d.top-i.top)/a,...Fp(c)}})};function RE({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+i*.125,f=t*.125+l*.375+d*.375+a*.125,m=Math.abs(h-e),p=Math.abs(f-t);return[h,f,m,p]}function Qc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Vv({pos:e,x1:t,y1:i,x2:a,y2:s,c:l}){switch(e){case je.Left:return[t-Qc(t-a,l),i];case je.Right:return[t+Qc(a-t,l),i];case je.Top:return[t,i-Qc(i-s,l)];case je.Bottom:return[t,i+Qc(s-i,l)]}}function DE({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:l=je.Top,curvature:c=.25}){const[d,h]=Vv({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[f,m]=Vv({pos:l,x1:a,y1:s,x2:e,y2:t,c}),[p,y,x,_]=RE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:h,targetControlX:f,targetControlY:m});return[`M${e},${t} C${d},${h} ${f},${m} ${a},${s}`,p,y,x,_]}function LE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,l=i0}const _I=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,wI=(e,t)=>t.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),EI=(e,t,i={})=>{var l;if(!e.source||!e.target)return(l=i.onError)==null||l.call(i,"006",Oi.error006()),t;const a=i.getEdgeId||_I;let s;return _E(e)?s={...e}:s={...e,id:a(e)},wI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function zE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,l,c,d]=LE({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,l,c,d]}const Yv={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},NI=({source:e,sourcePosition:t=je.Bottom,target:i})=>t===je.Left||t===je.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function SI({source:e,sourcePosition:t=je.Bottom,target:i,targetPosition:a=je.Top,center:s,offset:l,stepPosition:c}){const d=Yv[t],h=Yv[a],f={x:e.x+d.x*l,y:e.y+d.y*l},m={x:i.x+h.x*l,y:i.y+h.y*l},p=NI({source:f,sourcePosition:t,target:m}),y=p.x!==0?"x":"y",x=p[y];let _=[],N,S;const w={x:0,y:0},k={x:0,y:0},[,,E,O]=LE({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(d[y]*h[y]===-1){y==="x"?(N=s.x??f.x+(m.x-f.x)*c,S=s.y??(f.y+m.y)/2):(N=s.x??(f.x+m.x)/2,S=s.y??f.y+(m.y-f.y)*c);const j=[{x:N,y:f.y},{x:N,y:m.y}],Z=[{x:f.x,y:S},{x:m.x,y:S}];d[y]===x?_=y==="x"?j:Z:_=y==="x"?Z:j}else{const j=[{x:f.x,y:m.y}],Z=[{x:m.x,y:f.y}];if(y==="x"?_=d.x===x?Z:j:_=d.y===x?j:Z,t===a){const C=Math.abs(e[y]-i[y]);if(C<=l){const $=Math.min(l-1,l-C);d[y]===x?w[y]=(f[y]>e[y]?-1:1)*$:k[y]=(m[y]>i[y]?-1:1)*$}}if(t!==a){const C=y==="x"?"y":"x",$=d[y]===h[C],M=f[C]>m[C],B=f[C]=Y?(N=(z.x+q.x)/2,S=_[0].y):(N=_[0].x,S=(z.y+q.y)/2)}const I={x:f.x+w.x,y:f.y+w.y},R={x:m.x+k.x,y:m.y+k.y};return[[e,...I.x!==_[0].x||I.y!==_[0].y?[I]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,E,O]}function kI(e,t,i,a){const s=Math.min(Xv(e,t)/2,Xv(t,i)/2,a),{x:l,y:c}=t;if(e.x===l&&l===i.x||e.y===c&&c===i.y)return`L${l} ${c}`;if(e.y===c){const f=e.xi.id===t):e[0])||null}function Ym(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function AI(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const l=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(h=>{if(h&&typeof h=="object"){const f=Ym(h,t);l.has(f)||(c.push({id:f,color:h.color||i,...h}),l.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const jE=1e3,CI=10,Gp={nodeOrigin:[0,0],nodeExtent:dl,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},MI={...Gp,checkEquality:!0};function Vp(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function OI(e,t,i){const a=Vp(Gp,i);for(const s of e.values())if(s.parentId)Xp(s,e,t,a);else{const l=El(s,a.nodeOrigin),c=Ha(s.extent)?s.extent:a.nodeExtent,d=Ua(l,c,Yi(s));s.internals.positionAbsolute=d}}function RI(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const i=[],a=[];for(const s of e.handles){const l={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?i.push(l):s.type==="target"&&a.push(l)}return{source:i,target:a}}function Yp(e){return e==="manual"}function Xm(e,t,i,a={}){var m,p;const s=Vp(MI,a),l={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!Yp(s.zIndexMode)?jE:0;let h=e.length>0,f=!1;t.clear(),i.clear();for(const y of e){let x=c.get(y.id);if(s.checkEquality&&y===(x==null?void 0:x.internals.userNode))t.set(y.id,x);else{const _=El(y,s.nodeOrigin),N=Ha(y.extent)?y.extent:s.nodeExtent,S=Ua(_,N,Yi(y));x={...s.defaults,...y,measured:{width:(m=y.measured)==null?void 0:m.width,height:(p=y.measured)==null?void 0:p.height},internals:{positionAbsolute:S,handleBounds:RI(y,x),z:IE(y,d,s.zIndexMode),userNode:y}},t.set(y.id,x)}(x.measured===void 0||x.measured.width===void 0||x.measured.height===void 0)&&!x.hidden&&(h=!1),y.parentId&&Xp(x,t,i,a,l),f||(f=y.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}function DI(e,t){if(!e.parentId)return;const i=t.get(e.parentId);i?i.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Xp(e,t,i,a,s){const{elevateNodesOnSelect:l,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=Vp(Gp,a),f=e.parentId,m=t.get(f);if(!m){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}DI(e,i),s&&!m.parentId&&m.internals.rootParentIndex===void 0&&h==="auto"&&(m.internals.rootParentIndex=++s.i,m.internals.z=m.internals.z+s.i*CI),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const p=l&&!Yp(h)?jE:0,{x:y,y:x,z:_}=LI(e,m,c,d,p,h),{positionAbsolute:N}=e.internals,S=y!==N.x||x!==N.y;(S||_!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:S?{x:y,y:x}:N,z:_}})}function IE(e,t,i){const a=Ai(e.zIndex)?e.zIndex:0;return Yp(i)?a:a+(e.selected?t:0)}function LI(e,t,i,a,s,l){const{x:c,y:d}=t.internals.positionAbsolute,h=Yi(e),f=El(e,i),m=Ha(e.extent)?Ua(f,e.extent,h):f;let p=Ua({x:c+m.x,y:d+m.y},a,h);e.extent==="parent"&&(p=EE(p,h,t));const y=IE(e,s,l),x=t.internals.z??0;return{x:p.x,y:p.y,z:x>=y?x+1:y}}function Kp(e,t,i,a=[0,0]){var c;const s=[],l=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=l.get(d.parentId))==null?void 0:c.expandedRect)??hl(h),m=NE(f,d.rect);l.set(d.parentId,{expandedRect:m,parent:h})}return l.size>0&&l.forEach(({expandedRect:d,parent:h},f)=>{var E;const m=h.internals.positionAbsolute,p=Yi(h),y=h.origin??a,x=d.x0||_>0||w||k)&&(s.push({id:f,type:"position",position:{x:h.position.x-x+w,y:h.position.y-_+k}}),(E=i.get(f))==null||E.forEach(O=>{e.some(I=>I.id===O.id)||s.push({id:O.id,type:"position",position:{x:O.position.x+x,y:O.position.y+_}})})),(p.width0){const x=Kp(y,t,i,s);f.push(...x)}return{changes:f,updatedInternals:h}}async function jI({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:l}){if(!t||!e.x&&!e.y)return!1;const c=await t.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[s,l]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function Wv(e,t,i,a,s,l){let c=s;const d=a.get(c)||new Map;a.set(c,d.set(i,t)),c=`${s}-${e}`;const h=a.get(c)||new Map;if(a.set(c,h.set(i,t)),l){c=`${s}-${e}-${l}`;const f=a.get(c)||new Map;a.set(c,f.set(i,t))}}function BE(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:l,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:l,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${l}-${d}`,m=`${l}-${d}--${s}-${c}`;Wv("source",h,m,e,s,c),Wv("target",h,f,e,l,d),t.set(a.id,a)}}function UE(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:UE(i,t):!1}function Jv(e,t,i){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function II(e,t,i,a){const s=new Map;for(const[l,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!UE(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(l);d&&s.set(l,{id:l,position:d.position||{x:0,y:0},distance:{x:i.x-d.internals.positionAbsolute.x,y:i.y-d.internals.positionAbsolute.y},extent:d.extent,parentId:d.parentId,origin:d.origin,expandParent:d.expandParent,internals:{positionAbsolute:d.internals.positionAbsolute||{x:0,y:0}},measured:{width:d.measured.width??0,height:d.measured.height??0}})}return s}function cm({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,d,h;const s=[];for(const[f,m]of t){const p=(c=i.get(f))==null?void 0:c.internals.userNode;p&&s.push({...p,position:m.position,dragging:a})}if(!e)return[s[0],s];const l=(d=i.get(e))==null?void 0:d.internals.userNode;return[l?{...l,position:((h=t.get(e))==null?void 0:h.position)||l.position,dragging:a}:s[0],s]}function BI({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const l={x:i-s.distance.x,y:a-s.distance.y},c=Sl(l,t);return{x:c.x-l.x,y:c.y-l.y}}function UI({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let l={x:null,y:null},c=0,d=new Map,h=!1,f={x:0,y:0},m=null,p=!1,y=null,x=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:E,domNode:O,isSelectable:I,nodeId:R,nodeClickDistance:H=0}){y=ni(O);function j({x:K,y:Y}){const{nodeLookup:C,nodeExtent:$,snapGrid:M,snapToGrid:B,nodeOrigin:X,onNodeDrag:F,onSelectionDrag:A,onError:L,updateNodePositions:V}=t();l={x:K,y:Y};let D=!1;const G=d.size>1,U=G&&$?Gm(Nl(d)):null,W=G&&B?BI({dragItems:d,snapGrid:M,x:K,y:Y}):null;for(const[J,Q]of d){if(!C.has(J))continue;let ee={x:K-Q.distance.x,y:Y-Q.distance.y};B&&(ee=W?{x:Math.round(ee.x+W.x),y:Math.round(ee.y+W.y)}:Sl(ee,M));let ce=null;if(G&&$&&!Q.extent&&U){const{positionAbsolute:we}=Q.internals,Ne=we.x-U.x+$[0][0],Le=we.x+Q.measured.width-U.x2+$[1][0],$e=we.y-U.y+$[0][1],st=we.y+Q.measured.height-U.y2+$[1][1];ce=[[Ne,$e],[Le,st]]}const{position:fe,positionAbsolute:be}=wE({nodeId:J,nextPosition:ee,nodeLookup:C,nodeExtent:ce||$,nodeOrigin:X,onError:L});D=D||Q.position.x!==fe.x||Q.position.y!==fe.y,Q.position=fe,Q.internals.positionAbsolute=be}if(_=_||D,!!D&&(V(d,!0),N&&(a||F||!R&&A))){const[J,Q]=cm({nodeId:R,dragItems:d,nodeLookup:C});a==null||a(N,d,J,Q),F==null||F(N,J,Q),R||A==null||A(N,Q)}}async function Z(){if(!m)return;const{transform:K,panBy:Y,autoPanSpeed:C,autoPanOnNodeDrag:$}=t();if(!$){h=!1,cancelAnimationFrame(c);return}const[M,B]=qp(f,m,C);(M!==0||B!==0)&&(l.x=(l.x??0)-M/K[2],l.y=(l.y??0)-B/K[2],await Y({x:M,y:B})&&j(l)),c=requestAnimationFrame(Z)}function z(K){var G;const{nodeLookup:Y,multiSelectionActive:C,nodesDraggable:$,transform:M,snapGrid:B,snapToGrid:X,selectNodesOnDrag:F,onNodeDragStart:A,onSelectionDragStart:L,unselectNodesAndEdges:V}=t();p=!0,(!F||!I)&&!C&&R&&((G=Y.get(R))!=null&&G.selected||V()),I&&F&&R&&(e==null||e(R));const D=il(K.sourceEvent,{transform:M,snapGrid:B,snapToGrid:X,containerBounds:m});if(l=D,d=II(Y,$,D,R),d.size>0&&(i||A||!R&&L)){const[U,W]=cm({nodeId:R,dragItems:d,nodeLookup:Y});i==null||i(K.sourceEvent,d,U,W),A==null||A(K.sourceEvent,U,W),R||L==null||L(K.sourceEvent,W)}}const q=tE().clickDistance(H).on("start",K=>{const{domNode:Y,nodeDragThreshold:C,transform:$,snapGrid:M,snapToGrid:B}=t();m=(Y==null?void 0:Y.getBoundingClientRect())||null,x=!1,_=!1,N=K.sourceEvent,C===0&&z(K),l=il(K.sourceEvent,{transform:$,snapGrid:M,snapToGrid:B,containerBounds:m}),f=Ci(K.sourceEvent,m)}).on("drag",K=>{const{autoPanOnNodeDrag:Y,transform:C,snapGrid:$,snapToGrid:M,nodeDragThreshold:B,nodeLookup:X}=t(),F=il(K.sourceEvent,{transform:C,snapGrid:$,snapToGrid:M,containerBounds:m});if(N=K.sourceEvent,(K.sourceEvent.type==="touchmove"&&K.sourceEvent.touches.length>1||R&&!X.has(R))&&(x=!0),!x){if(!h&&Y&&p&&(h=!0,Z()),!p){const A=Ci(K.sourceEvent,m),L=A.x-f.x,V=A.y-f.y;Math.sqrt(L*L+V*V)>B&&z(K)}(l.x!==F.xSnapped||l.y!==F.ySnapped)&&d&&p&&(f=Ci(K.sourceEvent,m),j(F))}}).on("end",K=>{if(!p||x){x&&d.size>0&&t().updateNodePositions(d,!1);return}if(h=!1,p=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:Y,updateNodePositions:C,onNodeDragStop:$,onSelectionDragStop:M}=t();if(_&&(C(d,!1),_=!1),s||$||!R&&M){const[B,X]=cm({nodeId:R,dragItems:d,nodeLookup:Y,dragging:!1});s==null||s(K.sourceEvent,d,B,X),$==null||$(K.sourceEvent,B,X),R||M==null||M(K.sourceEvent,X)}}}).filter(K=>{const Y=K.target;return!K.button&&(!k||!Jv(Y,`.${k}`,O))&&(!E||Jv(Y,E,O))});y.call(q)}function w(){y==null||y.on(".drag",null)}return{update:S,destroy:w}}function HI(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const l of t.values())Nu(s,hl(l))>0&&a.push(l);return a}const $I=250;function qI(e,t,i,a){var d,h;let s=[],l=1/0;const c=HI(e,i,t+$I);for(const f of c){const m=[...((d=f.internals.handleBounds)==null?void 0:d.source)??[],...((h=f.internals.handleBounds)==null?void 0:h.target)??[]];for(const p of m){if(a.nodeId===p.nodeId&&a.type===p.type&&a.id===p.id)continue;const{x:y,y:x}=$a(f,p,p.position,!0),_=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(x-e.y,2));_>t||(_1){const f=a.type==="source"?"target":"source";return s.find(m=>m.type===f)??s[0]}return s[0]}function HE(e,t,i,a,s,l=!1){var f,m,p;const c=a.get(e);if(!c)return null;const d=s==="strict"?(f=c.internals.handleBounds)==null?void 0:f[t]:[...((m=c.internals.handleBounds)==null?void 0:m.source)??[],...((p=c.internals.handleBounds)==null?void 0:p.target)??[]],h=(i?d==null?void 0:d.find(y=>y.id===i):d==null?void 0:d[0])??null;return h&&l?{...h,...$a(c,h,h.position,!0)}:h}function $E(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function PI(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const qE=()=>!0;function FI(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:l,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:m,flowId:p,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=qE,onReconnectEnd:k,updateConnection:E,getTransform:O,getFromHandle:I,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:j}){const Z=CE(e.target);let z=0,q;const{x:K,y:Y}=Ci(e),C=$E(l,j),$=d==null?void 0:d.getBoundingClientRect();let M=!1;if(!$||!C)return;const B=HE(s,C,a,h,t);if(!B)return;let X=Ci(e,$),F=!1,A=null,L=!1,V=null;function D(){if(!m||!$)return;const[fe,be]=qp(X,$,R);y({x:fe,y:be}),z=requestAnimationFrame(D)}const G={...B,nodeId:s,type:C,position:B.position},U=h.get(s);let J={inProgress:!0,isValid:null,from:$a(U,G,je.Left,!0),fromHandle:G,fromPosition:G.position,fromNode:U,to:X,toHandle:null,toPosition:$v[G.position],toNode:null,pointer:X};function Q(){M=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:C})}H===0&&Q();function ee(fe){if(!M){const{x:st,y:Rt}=Ci(fe),Yt=st-K,Pt=Rt-Y;if(!(Yt*Yt+Pt*Pt>H*H))return;Q()}if(!I()||!G){ce(fe);return}const be=O();X=Ci(fe,$),q=qI(kl(X,be,!1,[1,1]),i,h,G),F||(D(),F=!0);const we=PE(fe,{handle:q,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:Z,lib:f,flowId:p,nodeLookup:h});V=we.handleDomNode,A=we.connection,L=PI(!!q,we.isValid);const Ne=h.get(s),Le=Ne?$a(Ne,G,je.Left,!0):J.from,$e={...J,from:Le,isValid:L,to:we.toHandle&&L?Ps({x:we.toHandle.x,y:we.toHandle.y},be):X,toHandle:we.toHandle,toPosition:L&&we.toHandle?we.toHandle.position:$v[G.position],toNode:we.toHandle?h.get(we.toHandle.nodeId):null,pointer:X};E($e),J=$e}function ce(fe){if(!("touches"in fe&&fe.touches.length>0)){if(M){(q||V)&&A&&L&&(N==null||N(A));const{inProgress:be,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),l&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(z),F=!1,L=!1,A=null,V=null,Z.removeEventListener("mousemove",ee),Z.removeEventListener("mouseup",ce),Z.removeEventListener("touchmove",ee),Z.removeEventListener("touchend",ce)}}Z.addEventListener("mousemove",ee),Z.addEventListener("mouseup",ce),Z.addEventListener("touchmove",ee),Z.addEventListener("touchend",ce)}function PE(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:l,doc:c,lib:d,flowId:h,isValidConnection:f=qE,nodeLookup:m}){const p=l==="target",y=t?c.querySelector(`.${d}-flow__handle[data-id="${h}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x,y:_}=Ci(e),N=c.elementFromPoint(x,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:y,w={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=$E(void 0,S),E=S.getAttribute("data-nodeid"),O=S.getAttribute("data-handleid"),I=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!k)return w;const H={source:p?E:a,sourceHandle:p?O:s,target:p?a:E,targetHandle:p?s:O};w.connection=H;const Z=I&&R&&(i===$s.Strict?p&&k==="source"||!p&&k==="target":E!==a||O!==s);w.isValid=Z&&f(H),w.toHandle=HE(E,k,O,m,i,!0)}return w}const Km={onPointerDown:FI,isValid:PE};function GI({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ni(e);function l({translateExtent:d,width:h,height:f,zoomStep:m=1,pannable:p=!0,zoomable:y=!0,inversePan:x=!1}){const _=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const O=i(),I=E.sourceEvent.ctrlKey&&ml()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*m,H=O[2]*Math.pow(2,R*I);t.scaleTo(H)};let N=[0,0];const S=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(N=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},w=E=>{const O=i();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const I=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[I[0]-N[0],I[1]-N[1]];N=I;const H=a()*Math.max(O[2],Math.log(O[2]))*(x?-1:1),j={x:O[0]-R[0]*H,y:O[1]-R[1]*H},Z=[[0,0],[h,f]];t.setViewportConstrained({x:j.x,y:j.y,zoom:O[2]},Z,d)},k=gE().on("start",S).on("zoom",p?w:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:l,destroy:c,pointer:ki}}const $u=e=>({x:e.x,y:e.y,zoom:e.k}),um=({x:e,y:t,zoom:i})=>Bu.translate(e,t).scale(i),Cs=(e,t)=>e.target.closest(`.${t}`),FE=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),VI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,dm=(e,t=0,i=VI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},GE=e=>{const t=e.ctrlKey&&ml()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YI({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:l,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return m=>{if(Cs(m,t))return m.ctrlKey&&m.preventDefault(),!1;m.preventDefault(),m.stopImmediatePropagation();const p=i.property("__zoom").k||1;if(m.ctrlKey&&c){const S=ki(m),w=GE(m),k=p*Math.pow(2,w);a.scaleTo(i,k,S,m);return}const y=m.deltaMode===1?20:1;let x=s===za.Vertical?0:m.deltaX*y,_=s===za.Horizontal?0:m.deltaY*y;!ml()&&m.shiftKey&&s!==za.Vertical&&(x=m.deltaY*y,_=0),a.translateBy(i,-(x/p)*l,-(_/p)*l,{internal:!0});const N=$u(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(m,N):(e.isPanScrolling=!0,d==null||d(m,N)),e.panScrollTimeout=setTimeout(()=>{f==null||f(m,N),e.isPanScrolling=!1},150)}}function XI({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const l=a.type==="wheel",c=!t&&l&&!a.ctrlKey,d=Cs(a,e);if(a.ctrlKey&&l&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function KI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var l,c,d;if((l=a.sourceEvent)!=null&&l.internal)return;const s=$u(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((d=a.sourceEvent)==null?void 0:d.type)==="mousedown"&&t(!0),i&&(i==null||i(a.sourceEvent,s))}}function ZI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return l=>{var c,d;e.usedRightMouseButton=!!(i&&FE(t,e.mouseButton??0)),(c=l.sourceEvent)!=null&&c.sync||a([l.transform.x,l.transform.y,l.transform.k]),s&&!((d=l.sourceEvent)!=null&&d.internal)&&(s==null||s(l.sourceEvent,$u(l.transform)))}}function QI({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:l}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,l&&FE(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&l(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=$u(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},i?150:0)}}}function WI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:l,userSelectionActive:c,noWheelClassName:d,noPanClassName:h,lib:f,connectionInProgress:m}){return p=>{var S;const y=e||t,x=i&&p.ctrlKey,_=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Cs(p,`${f}-flow__node`)||Cs(p,`${f}-flow__edge`)))return!0;if(!a&&!y&&!s&&!l&&!i||c||m&&!_||Cs(p,d)&&_||Cs(p,h)&&(!_||s&&_&&!e)||!i&&p.ctrlKey&&_)return!1;if(!i&&p.type==="touchstart"&&((S=p.touches)==null?void 0:S.length)>1)return p.preventDefault(),!1;if(!y&&!s&&!x&&_||!a&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(a)&&!a.includes(p.button)&&p.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||_)&&N}}function JI({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:l,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:h}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect();let p=[[0,0],[m.width,m.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(Y=>{const C=Y[0];C&&(p=[[0,0],[C.contentRect.width,C.contentRect.height]])}):null;y==null||y.observe(e);const x=gE().extent(()=>p).scaleExtent([t,i]).translateExtent(a),_=ni(e).call(x);O({x:s.x,y:s.y,zoom:qs(s.zoom,t,i)},[[0,0],[m.width,m.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(GE);async function w(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?nl:au).transform(dm(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>$(!0)),Y)}):!1}function k({noWheelClassName:Y,noPanClassName:C,onPaneContextMenu:$,userSelectionActive:M,panOnScroll:B,panOnDrag:X,panOnScrollMode:F,panOnScrollSpeed:A,preventScrolling:L,zoomOnPinch:V,zoomOnScroll:D,zoomOnDoubleClick:G,zoomActivationKeyPressed:U,lib:W,onTransformChange:J,connectionInProgress:Q,paneClickDistance:ee,selectionOnDrag:ce}){M&&!f.isZoomingOrPanning&&E();const fe=B&&!U&&!M;x.clickDistance(ce?1/0:!Ai(ee)||ee<0?0:ee);const be=fe?YI({zoomPanValues:f,noWheelClassName:Y,d3Selection:_,d3Zoom:x,panOnScrollMode:F,panOnScrollSpeed:A,zoomOnPinch:V,onPanZoomStart:c,onPanZoom:l,onPanZoomEnd:d}):XI({noWheelClassName:Y,preventScrolling:L,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const we=KI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});x.on("start",we);const Ne=ZI({zoomPanValues:f,panOnDrag:X,onPaneContextMenu:!!$,onPanZoom:l,onTransformChange:J});x.on("zoom",Ne);const Le=QI({zoomPanValues:f,panOnDrag:X,panOnScroll:B,onPaneContextMenu:$,onPanZoomEnd:d,onDraggingChange:h});x.on("end",Le);const $e=WI({zoomActivationKeyPressed:U,panOnDrag:X,zoomOnScroll:D,panOnScroll:B,zoomOnDoubleClick:G,zoomOnPinch:V,userSelectionActive:M,noPanClassName:C,noWheelClassName:Y,lib:W,connectionInProgress:Q});x.filter($e),G?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){x.on("zoom",null)}async function O(Y,C,$){const M=um(Y),B=x==null?void 0:x.constrain()(M,C,$);return B&&await w(B),B}async function I(Y,C){const $=um(Y);return await w($,C),$}function R(Y){if(_){const C=um(Y),$=_.property("__zoom");($.k!==Y.zoom||$.x!==Y.x||$.y!==Y.y)&&(x==null||x.transform(_,C,null,{sync:!0}))}}function H(){const Y=_?pE(_.node()):{x:0,y:0,k:1};return{x:Y.x,y:Y.y,zoom:Y.k}}async function j(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?nl:au).scaleTo(dm(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>$(!0)),Y)}):!1}async function Z(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?nl:au).scaleBy(dm(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>$(!0)),Y)}):!1}function z(Y){x==null||x.scaleExtent(Y)}function q(Y){x==null||x.translateExtent(Y)}function K(Y){const C=!Ai(Y)||Y<0?0:Y;x==null||x.clickDistance(C)}return{update:k,destroy:E,setViewport:I,setViewportConstrained:O,getViewport:H,scaleTo:j,scaleBy:Z,setScaleExtent:z,setTranslateExtent:q,syncViewport:R,setClickDistance:K}}var Fs;(function(e){e.Line="line",e.Handle="handle"})(Fs||(Fs={}));function e6({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:l}){const c=e-t,d=i-a,h=[c>0?1:c<0?-1:0,d>0?1:d<0?-1:0];return c&&s&&(h[0]=h[0]*-1),d&&l&&(h[1]=h[1]*-1),h}function e1(e){const t=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:i,affectsX:a,affectsY:s}}function ta(e,t){return Math.max(0,t-e)}function na(e,t){return Math.max(0,e-t)}function Wc(e,t,i){return Math.max(0,t-e,e-i)}function t1(e,t){return e?!t:t}function t6(e,t,i,a,s,l,c,d){let{affectsX:h,affectsY:f}=t;const{isHorizontal:m,isVertical:p}=t,y=m&&p,{xSnapped:x,ySnapped:_}=i,{minWidth:N,maxWidth:S,minHeight:w,maxHeight:k}=a,{x:E,y:O,width:I,height:R,aspectRatio:H}=e;let j=Math.floor(m?x-e.pointerX:0),Z=Math.floor(p?_-e.pointerY:0);const z=I+(h?-j:j),q=R+(f?-Z:Z),K=-l[0]*I,Y=-l[1]*R;let C=Wc(z,N,S),$=Wc(q,w,k);if(c){let X=0,F=0;h&&j<0?X=ta(E+j+K,c[0][0]):!h&&j>0&&(X=na(E+z+K,c[1][0])),f&&Z<0?F=ta(O+Z+Y,c[0][1]):!f&&Z>0&&(F=na(O+q+Y,c[1][1])),C=Math.max(C,X),$=Math.max($,F)}if(d){let X=0,F=0;h&&j>0?X=na(E+j,d[0][0]):!h&&j<0&&(X=ta(E+z,d[1][0])),f&&Z>0?F=na(O+Z,d[0][1]):!f&&Z<0&&(F=ta(O+q,d[1][1])),C=Math.max(C,X),$=Math.max($,F)}if(s){if(m){const X=Wc(z/H,w,k)*H;if(C=Math.max(C,X),c){let F=0;!h&&!f||h&&!f&&y?F=na(O+Y+z/H,c[1][1])*H:F=ta(O+Y+(h?j:-j)/H,c[0][1])*H,C=Math.max(C,F)}if(d){let F=0;!h&&!f||h&&!f&&y?F=ta(O+z/H,d[1][1])*H:F=na(O+(h?j:-j)/H,d[0][1])*H,C=Math.max(C,F)}}if(p){const X=Wc(q*H,N,S)/H;if($=Math.max($,X),c){let F=0;!h&&!f||f&&!h&&y?F=na(E+q*H+K,c[1][0])/H:F=ta(E+(f?Z:-Z)*H+K,c[0][0])/H,$=Math.max($,F)}if(d){let F=0;!h&&!f||f&&!h&&y?F=ta(E+q*H,d[1][0])/H:F=na(E+(f?Z:-Z)*H,d[0][0])/H,$=Math.max($,F)}}}Z=Z+(Z<0?$:-$),j=j+(j<0?C:-C),s&&(y?z>q*H?Z=(t1(h,f)?-j:j)/H:j=(t1(h,f)?-Z:Z)*H:m?(Z=j/H,f=h):(j=Z*H,h=f));const M=h?E+j:E,B=f?O+Z:O;return{width:I+(h?-j:j),height:R+(f?-Z:Z),x:l[0]*j*(h?-1:1)+M,y:l[1]*Z*(f?-1:1)+B}}const VE={width:0,height:0,x:0,y:0},n6={...VE,pointerX:0,pointerY:0,aspectRatio:1};function i6(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,l=e.measured.width??0,c=e.measured.height??0,d=i[0]*l,h=i[1]*c;return[[a-d,s-h],[a+l-d,s+c-h]]}function r6({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const l=ni(e);let c={controlDirection:e1("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function d({controlPosition:f,boundaries:m,keepAspectRatio:p,resizeDirection:y,onResizeStart:x,onResize:_,onResizeEnd:N,shouldResize:S}){let w={...VE},k={...n6};c={boundaries:m,resizeDirection:y,keepAspectRatio:p,controlDirection:e1(f)};let E,O=null,I=[],R,H,j,Z=!1;const z=tE().on("start",q=>{const{nodeLookup:K,transform:Y,snapGrid:C,snapToGrid:$,nodeOrigin:M,paneDomNode:B}=i();if(E=K.get(t),!E)return;O=(B==null?void 0:B.getBoundingClientRect())??null;const{xSnapped:X,ySnapped:F}=il(q.sourceEvent,{transform:Y,snapGrid:C,snapToGrid:$,containerBounds:O});w={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},k={...w,pointerX:X,pointerY:F,aspectRatio:w.width/w.height},R=void 0,H=Ha(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=K.get(E.parentId)),R&&E.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),I=[],j=void 0;for(const[A,L]of K)if(L.parentId===t&&(I.push({id:A,position:{...L.position},extent:L.extent}),L.extent==="parent"||L.expandParent)){const V=i6(L,E,L.origin??M);j?j=[[Math.min(V[0][0],j[0][0]),Math.min(V[0][1],j[0][1])],[Math.max(V[1][0],j[1][0]),Math.max(V[1][1],j[1][1])]]:j=V}x==null||x(q,{...w})}).on("drag",q=>{const{transform:K,snapGrid:Y,snapToGrid:C,nodeOrigin:$}=i(),M=il(q.sourceEvent,{transform:K,snapGrid:Y,snapToGrid:C,containerBounds:O}),B=[];if(!E)return;const{x:X,y:F,width:A,height:L}=w,V={},D=E.origin??$,{width:G,height:U,x:W,y:J}=t6(k,c.controlDirection,M,c.boundaries,c.keepAspectRatio,D,H,j),Q=G!==A,ee=U!==L,ce=W!==X&&Q,fe=J!==F&ⅇif(!ce&&!fe&&!Q&&!ee)return;if((ce||fe||D[0]===1||D[1]===1)&&(V.x=ce?W:w.x,V.y=fe?J:w.y,w.x=V.x,w.y=V.y,I.length>0)){const Le=W-X,$e=J-F;for(const st of I)st.position={x:st.position.x-Le+D[0]*(G-A),y:st.position.y-$e+D[1]*(U-L)},B.push(st)}if((Q||ee)&&(V.width=Q&&(!c.resizeDirection||c.resizeDirection==="horizontal")?G:w.width,V.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?U:w.height,w.width=V.width,w.height=V.height),R&&E.expandParent){const Le=D[0]*(V.width??0);V.x&&V.x{Z&&(N==null||N(q,{...w}),s==null||s({...w}),Z=!1)});l.call(z)}function h(){l.on(".drag",null)}return{update:d,destroy:h}}var fm={exports:{}},hm={},mm={exports:{}},pm={};/** - * @license React - * use-sync-external-store-shim.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n1;function a6(){if(n1)return pm;n1=1;var e=bl();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function d(p,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return l(function(){N.value=x,N.getSnapshot=y,h(N)&&S({inst:N})},[p,x,y]),s(function(){return h(N)&&S({inst:N}),p(function(){h(N)&&S({inst:N})})},[p]),c(x),x}function h(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!i(p,x)}catch{return!0}}function f(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return pm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,pm}var i1;function s6(){return i1||(i1=1,mm.exports=a6()),mm.exports}/** - * @license React - * use-sync-external-store-shim/with-selector.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r1;function o6(){if(r1)return hm;r1=1;var e=bl(),t=s6();function i(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var a=typeof Object.is=="function"?Object.is:i,s=t.useSyncExternalStore,l=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return hm.useSyncExternalStoreWithSelector=function(f,m,p,y,x){var _=l(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function w(R){if(!k){if(k=!0,E=R,R=y(R),x!==void 0&&N.hasValue){var H=N.value;if(x(H,R))return O=H}return O=R}if(H=O,a(E,R))return H;var j=y(R);return x!==void 0&&x(H,j)?(E=R,H):(E=R,O=j)}var k=!1,E,O,I=p===void 0?null:p;return[function(){return w(m())},I===null?void 0:function(){return w(I())}]},[m,p,y,x]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},hm}var a1;function l6(){return a1||(a1=1,fm.exports=o6()),fm.exports}var c6=l6();const u6=gl(c6),d6={},s1=e=>{let t;const i=new Set,a=(m,p)=>{const y=typeof m=="function"?m(t):m;if(!Object.is(y,t)){const x=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({},t,y),i.forEach(_=>_(t,x))}},s=()=>t,h={setState:a,getState:s,getInitialState:()=>f,subscribe:m=>(i.add(m),()=>i.delete(m)),destroy:()=>{(d6?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},f=t=e(a,s,h);return h},f6=e=>e?s1(e):s1,{useDebugValue:h6}=Yk,{useSyncExternalStoreWithSelector:m6}=u6,p6=e=>e;function YE(e,t=p6,i){const a=m6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return h6(a),a}const o1=(e,t)=>{const i=f6(e),a=(s,l=t)=>YE(i,s,l);return Object.assign(a,i),a},g6=(e,t)=>e?o1(e,t):o1;function qt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}t_();const qu=re.createContext(null),b6=qu.Provider,XE=Oi.error001("react");function dt(e,t){const i=re.useContext(qu);if(i===null)throw new Error(XE);return YE(i,e,t)}function zt(){const e=re.useContext(qu);if(e===null)throw new Error(XE);return re.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const l1={display:"none"},x6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},KE="react-flow__node-desc",ZE="react-flow__edge-desc",y6="react-flow__aria-live",v6=e=>e.ariaLiveMessage,_6=e=>e.ariaLabelConfig;function w6({rfId:e}){const t=dt(v6);return g.jsx("div",{id:`${y6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:x6,children:t})}function E6({rfId:e,disableKeyboardA11y:t}){const i=dt(_6);return g.jsxs(g.Fragment,{children:[g.jsx("div",{id:`${KE}-${e}`,style:l1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),g.jsx("div",{id:`${ZE}-${e}`,style:l1,children:i["edge.a11yDescription.default"]}),!t&&g.jsx(w6,{rfId:e})]})}const Pu=re.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},l)=>{const c=`${e}`.split("-");return g.jsx("div",{className:on(["react-flow__panel",i,...c]),style:a,ref:l,...s,children:t})});Pu.displayName="Panel";const c1="https://reactflow.dev?utm_source=attribution";function N6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:g.jsx(Pu,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${c1}`,children:g.jsx("a",{href:c1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const S6=e=>{const t=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:t,selectedEdges:i}},Jc=e=>e.id;function k6(e,t){return qt(e.selectedNodes.map(Jc),t.selectedNodes.map(Jc))&&qt(e.selectedEdges.map(Jc),t.selectedEdges.map(Jc))}function T6({onSelectionChange:e}){const t=zt(),{selectedNodes:i,selectedEdges:a}=dt(S6,k6);return re.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(l=>l(s))},[i,a,e]),null}const A6=e=>!!e.onSelectionChangeHandlers;function C6({onSelectionChange:e}){const t=dt(A6);return e||t?g.jsx(T6,{onSelectionChange:e}):null}const QE=[0,0],M6={x:0,y:0,zoom:1},O6=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],u1=[...O6,"rfId"],R6=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),d1={translateExtent:dl,nodeOrigin:QE,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function D6(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:l,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:h}=dt(R6,qt),f=zt();re.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{m.current=d1,d()}),[]);const m=re.useRef(d1);return re.useEffect(()=>{for(const p of u1){const y=e[p],x=m.current[p];y!==x&&(typeof e[p]>"u"||(p==="nodes"?t(y):p==="edges"?i(y):p==="minZoom"?a(y):p==="maxZoom"?s(y):p==="translateExtent"?l(y):p==="nodeExtent"?c(y):p==="ariaLabelConfig"?f.setState({ariaLabelConfig:bI(y)}):p==="fitView"?f.setState({fitViewQueued:y}):p==="fitViewOptions"?f.setState({fitViewOptions:y}):f.setState({[p]:y})))}m.current=e},u1.map(p=>e[p])),null}function f1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function L6(e){var a;const[t,i]=re.useState(e==="system"?null:e);return re.useEffect(()=>{if(e!=="system"){i(e);return}const s=f1(),l=()=>i(s!=null&&s.matches?"dark":"light");return l(),s==null||s.addEventListener("change",l),()=>{s==null||s.removeEventListener("change",l)}},[e]),t!==null?t:(a=f1())!=null&&a.matches?"dark":"light"}const h1=typeof document<"u"?document:null;function pl(e=null,t={target:h1,actInsideInputWithModifier:!0}){const[i,a]=re.useState(!1),s=re.useRef(!1),l=re.useRef(new Set([])),[c,d]=re.useMemo(()=>{if(e!==null){const f=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",` -`).replace(` - -`,` -+`).split(` -`)),m=f.reduce((p,y)=>p.concat(...y),[]);return[f,m]}return[[],[]]},[e]);return re.useEffect(()=>{const h=(t==null?void 0:t.target)??h1,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const m=x=>{var S,w;if(s.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!s.current||s.current&&!f)&&ME(x))return!1;const N=p1(x.code,d);if(l.current.add(x[N]),m1(c,l.current,!1)){const k=((w=(S=x.composedPath)==null?void 0:S.call(x))==null?void 0:w[0])||x.target,E=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&x.preventDefault(),a(!0)}},p=x=>{const _=p1(x.code,d);m1(c,l.current,!0)?(a(!1),l.current.clear()):l.current.delete(x[_]),x.key==="Meta"&&l.current.clear(),s.current=!1},y=()=>{l.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",m),h==null||h.addEventListener("keyup",p),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{h==null||h.removeEventListener("keydown",m),h==null||h.removeEventListener("keyup",p),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),i}function m1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function p1(e,t){return t.includes(e)?"code":"key"}const z6=()=>{const e=zt();return re.useMemo(()=>({zoomIn:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,t):!1},zoomOut:async t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,t):!1},zoomTo:async(t,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,i):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,i)=>{const{transform:[a,s,l],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??l},i),!0):!1},getViewport:()=>{const[t,i,a]=e.getState().transform;return{x:t,y:i,zoom:a}},setCenter:async(t,i,a)=>e.getState().setCenter(t,i,a),fitBounds:async(t,i)=>{const{width:a,height:s,minZoom:l,maxZoom:c,panZoom:d}=e.getState(),h=Pp(t,a,s,l,c,(i==null?void 0:i.padding)??.1);return d?(await d.setViewport(h,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),!0):!1},screenToFlowPosition:(t,i={})=>{const{transform:a,snapGrid:s,snapToGrid:l,domNode:c}=e.getState();if(!c)return t;const{x:d,y:h}=c.getBoundingClientRect(),f={x:t.x-d,y:t.y-h},m=i.snapGrid??s,p=i.snapToGrid??l;return kl(f,a,p,m)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:l}=a.getBoundingClientRect(),c=Ps(t,i);return{x:c.x+s,y:c.y+l}}}),[])};function WE(e,t){const i=[],a=new Map,s=[];for(const l of e)if(l.type==="add"){s.push(l);continue}else if(l.type==="remove"||l.type==="replace")a.set(l.id,[l]);else{const c=a.get(l.id);c?c.push(l):a.set(l.id,[l])}for(const l of t){const c=a.get(l.id);if(!c){i.push(l);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...l};for(const h of c)j6(h,d);i.push(d)}return s.length&&s.forEach(l=>{l.index!==void 0?i.splice(l.index,0,{...l.item}):i.push({...l.item})}),i}function j6(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function JE(e,t){return WE(e,t)}function eN(e,t){return WE(e,t)}function Oa(e,t){return{id:e,type:"select",selected:t}}function Ms(e,t=new Set,i=!1){const a=[];for(const[s,l]of e){const c=t.has(s);!(l.selected===void 0&&!c)&&l.selected!==c&&(i&&(l.selected=c),a.push(Oa(l.id,c)))}return a}function g1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(l=>[l.id,l]));for(const[l,c]of e.entries()){const d=t.get(c.id),h=((s=d==null?void 0:d.internals)==null?void 0:s.userNode)??d;h!==void 0&&h!==c&&i.push({id:c.id,item:c,type:"replace"}),h===void 0&&i.push({item:c,type:"add",index:l})}for(const[l]of t)a.get(l)===void 0&&i.push({id:l,type:"remove"});return i}function b1(e){return{id:e.id,type:"remove"}}const I6=kE();function B6(e,t,i={}){return EI(e,t,{...i,onError:i.onError??I6})}const x1=e=>lI(e),U6=e=>_E(e);function tN(e){return re.forwardRef(e)}const nN=typeof window<"u"?re.useLayoutEffect:re.useEffect;function y1(e){const[t,i]=re.useState(BigInt(0)),[a]=re.useState(()=>H6(()=>i(s=>s+BigInt(1))));return nN(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function H6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const iN=re.createContext(null);function $6({children:e}){const t=zt(),i=re.useCallback(d=>{const{nodes:h=[],setNodes:f,hasDefaultNodes:m,onNodesChange:p,nodeLookup:y,fitViewQueued:x,onNodesChangeMiddlewareMap:_}=t.getState();let N=h;for(const w of d)N=typeof w=="function"?w(N):w;let S=g1({items:N,lookup:y});for(const w of _.values())S=w(S);m&&f(N),S.length>0?p==null||p(S):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:E}=t.getState();w&&E(k)})},[]),a=y1(i),s=re.useCallback(d=>{const{edges:h=[],setEdges:f,hasDefaultEdges:m,onEdgesChange:p,edgeLookup:y}=t.getState();let x=h;for(const _ of d)x=typeof _=="function"?_(x):_;m?f(x):p&&p(g1({items:x,lookup:y}))},[]),l=y1(s),c=re.useMemo(()=>({nodeQueue:a,edgeQueue:l}),[]);return g.jsx(iN.Provider,{value:c,children:e})}function q6(){const e=re.useContext(iN);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const P6=e=>!!e.panZoom;function Tl(){const e=z6(),t=zt(),i=q6(),a=dt(P6),s=re.useMemo(()=>{const l=p=>t.getState().nodeLookup.get(p),c=p=>{i.nodeQueue.push(p)},d=p=>{i.edgeQueue.push(p)},h=p=>{var w,k;const{nodeLookup:y,nodeOrigin:x}=t.getState(),_=x1(p)?p:y.get(p.id),N=_.parentId?AE(_.position,_.measured,_.parentId,y,x):_.position,S={..._,position:N,width:((w=_.measured)==null?void 0:w.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return hl(S)},f=(p,y,x={replace:!1})=>{c(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&x1(S)?S:{...N,...S}}return N}))},m=(p,y,x={replace:!1})=>{d(_=>_.map(N=>{if(N.id===p){const S=typeof y=="function"?y(N):y;return x.replace&&U6(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var y;return(y=l(p))==null?void 0:y.internals.userNode},getInternalNode:l,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(y=>({...y}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:c,setEdges:d,addNodes:p=>{const y=Array.isArray(p)?p:[p];i.nodeQueue.push(x=>[...x,...y])},addEdges:p=>{const y=Array.isArray(p)?p:[p];i.edgeQueue.push(x=>[...x,...y])},toObject:()=>{const{nodes:p=[],edges:y=[],transform:x}=t.getState(),[_,N,S]=x;return{nodes:p.map(w=>({...w})),edges:y.map(w=>({...w})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:p=[],edges:y=[]})=>{const{nodes:x,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:w,triggerEdgeChanges:k,onDelete:E,onBeforeDelete:O}=t.getState(),{nodes:I,edges:R}=await hI({nodesToRemove:p,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:O}),H=R.length>0,j=I.length>0;if(H){const Z=R.map(b1);S==null||S(R),k(Z)}if(j){const Z=I.map(b1);N==null||N(I),w(Z)}return(j||H)&&(E==null||E({nodes:I,edges:R})),{deletedNodes:I,deletedEdges:R}},getIntersectingNodes:(p,y=!0,x)=>{const _=Pv(p),N=_?p:h(p),S=x!==void 0;return N?(x||t.getState().nodes).filter(w=>{const k=t.getState().nodeLookup.get(w.id);if(k&&!_&&(w.id===p.id||!k.internals.positionAbsolute))return!1;const E=hl(S?w:k),O=Nu(E,N);return y&&O>0||O>=E.width*E.height||O>=N.width*N.height}):[]},isNodeIntersecting:(p,y,x=!0)=>{const N=Pv(p)?p:h(p);if(!N)return!1;const S=Nu(N,y);return x&&S>0||S>=y.width*y.height||S>=N.width*N.height},updateNode:f,updateNodeData:(p,y,x={replace:!1})=>{f(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},updateEdge:m,updateEdgeData:(p,y,x={replace:!1})=>{m(p,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},getNodesBounds:p=>{const{nodeLookup:y,nodeOrigin:x}=t.getState();return cI(p,{nodeLookup:y,nodeOrigin:x})},getHandleConnections:({type:p,id:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}-${p}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:p,handleId:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}${p?y?`-${p}-${y}`:`-${p}`:""}`))==null?void 0:_.values())??[])},fitView:async p=>{const y=t.getState().fitViewResolver??gI();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:y}),i.nodeQueue.push(x=>[...x]),y.promise}}},[]);return re.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const v1=e=>e.selected,F6=typeof window<"u"?window:void 0;function G6({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=zt(),{deleteElements:a}=Tl(),s=pl(e,{actInsideInputWithModifier:!1}),l=pl(t,{target:F6});re.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(v1),edges:c.filter(v1)}),i.setState({nodesSelectionActive:!1})}},[s]),re.useEffect(()=>{i.setState({multiSelectionActive:l})},[l])}function V6(e){const t=zt();re.useEffect(()=>{const i=()=>{var s,l,c,d;if(!e.current||!(((l=(s=e.current).checkVisibility)==null?void 0:l.call(s))??!0))return!1;const a=Fp(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Oi.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const Fu={position:"absolute",width:"100%",height:"100%",top:0,left:0},Y6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function X6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:l=za.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:h,translateExtent:f,minZoom:m,maxZoom:p,zoomActivationKeyCode:y,preventScrolling:x=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:w,isControlledViewport:k,paneClickDistance:E,selectionOnDrag:O}){const I=zt(),R=re.useRef(null),{userSelectionActive:H,lib:j,connectionInProgress:Z}=dt(Y6,qt),z=pl(y),q=re.useRef();V6(R);const K=re.useCallback(Y=>{w==null||w({x:Y[0],y:Y[1],zoom:Y[2]}),k||I.setState({transform:Y})},[w,k]);return re.useEffect(()=>{if(R.current){q.current=JI({domNode:R.current,minZoom:m,maxZoom:p,translateExtent:f,viewport:h,onDraggingChange:M=>I.setState(B=>B.paneDragging===M?B:{paneDragging:M}),onPanZoomStart:(M,B)=>{const{onViewportChangeStart:X,onMoveStart:F}=I.getState();F==null||F(M,B),X==null||X(B)},onPanZoom:(M,B)=>{const{onViewportChange:X,onMove:F}=I.getState();F==null||F(M,B),X==null||X(B)},onPanZoomEnd:(M,B)=>{const{onViewportChangeEnd:X,onMoveEnd:F}=I.getState();F==null||F(M,B),X==null||X(B)}});const{x:Y,y:C,zoom:$}=q.current.getViewport();return I.setState({panZoom:q.current,transform:[Y,C,$],domNode:R.current.closest(".react-flow")}),()=>{var M;(M=q.current)==null||M.destroy()}}},[]),re.useEffect(()=>{var Y;(Y=q.current)==null||Y.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:l,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:z,preventScrolling:x,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:j,onTransformChange:K,connectionInProgress:Z,selectionOnDrag:O,paneClickDistance:E})},[e,t,i,a,s,l,c,d,z,x,S,H,N,j,K,Z,O,E]),g.jsx("div",{className:"react-flow__renderer",ref:R,style:Fu,children:_})}const K6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Z6(){const{userSelectionActive:e,userSelectionRect:t}=dt(K6,qt);return e&&t?g.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const gm=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},Q6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function W6({isSelecting:e,selectionKeyPressed:t,selectionMode:i=fl.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:l,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:h,onPaneClick:f,onPaneContextMenu:m,onPaneScroll:p,onPaneMouseEnter:y,onPaneMouseMove:x,onPaneMouseLeave:_,children:N}){const S=re.useRef(0),w=zt(),{userSelectionActive:k,elementsSelectable:E,dragging:O,panBy:I,autoPanSpeed:R}=dt(Q6,qt),H=E&&(e||k),j=re.useRef(null),Z=re.useRef(),z=re.useRef(new Set),q=re.useRef(new Set),K=re.useRef(!1),Y=re.useRef(!1),C=re.useRef({x:0,y:0}),$=re.useRef(!1),M=Q=>{if(Y.current||K.current||w.getState().connection.inProgress){Y.current=!1,K.current=!1;return}f==null||f(Q),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},B=Q=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){Q.preventDefault();return}m==null||m(Q)},X=p?Q=>p(Q):void 0,F=Q=>{Y.current&&(Q.stopPropagation(),Y.current=!1)},A=Q=>{var st,Rt;const{domNode:ee,transform:ce}=w.getState();if(Z.current=ee==null?void 0:ee.getBoundingClientRect(),!Z.current)return;const fe=Q.target===j.current;if(!fe&&!!Q.target.closest(".nokey")||!e||!(c&&fe||t)||Q.button!==0||!Q.isPrimary)return;(Rt=(st=Q.target)==null?void 0:st.setPointerCapture)==null||Rt.call(st,Q.pointerId),Y.current=!1;const{x:Ne,y:Le}=Ci(Q.nativeEvent,Z.current),$e=kl({x:Ne,y:Le},ce);w.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:Le}}),fe||(Q.stopPropagation(),Q.preventDefault())};function L(Q,ee){const{userSelectionRect:ce}=w.getState();if(!ce)return;const{transform:fe,nodeLookup:be,edgeLookup:we,connectionLookup:Ne,triggerNodeChanges:Le,triggerEdgeChanges:$e,defaultEdgeOptions:st}=w.getState(),Rt={x:ce.startX,y:ce.startY},{x:Yt,y:Pt}=Ps(Rt,fe),Xt={startX:Rt.x,startY:Rt.y,x:QIt.id)),q.current=new Set;const ct=(st==null?void 0:st.selectable)??!0;for(const It of z.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=we.get(xe);Oe&&(Oe.selectable??ct)&&q.current.add(xe)}}if(!Fv(Vn,z.current)){const It=Ms(be,z.current,!0);Le(It)}if(!Fv(wn,q.current)){const It=Ms(we,q.current);$e(It)}w.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function V(){if(!s||!Z.current)return;const[Q,ee]=qp(C.current,Z.current,R);I({x:Q,y:ee}).then(ce=>{if(!Y.current||!ce){S.current=requestAnimationFrame(V);return}const{x:fe,y:be}=C.current;L(fe,be),S.current=requestAnimationFrame(V)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,$.current=!1};re.useEffect(()=>()=>D(),[]);const G=Q=>{const{userSelectionRect:ee,transform:ce,resetSelectedElements:fe}=w.getState();if(!Z.current||!ee)return;const{x:be,y:we}=Ci(Q.nativeEvent,Z.current);C.current={x:be,y:we};const Ne=Ps({x:ee.startX,y:ee.startY},ce);if(!Y.current){const Le=t?0:l;if(Math.hypot(be-Ne.x,we-Ne.y)<=Le)return;fe(),d==null||d(Q)}Y.current=!0,$.current||(V(),$.current=!0),L(be,we)},U=Q=>{var ee,ce;if(!H){Q.target===j.current&&w.getState().connection.inProgress&&(K.current=!0);return}Q.button===0&&((ce=(ee=Q.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,Q.pointerId),!k&&Q.target===j.current&&w.getState().userSelectionRect&&(M==null||M(Q)),w.setState({userSelectionActive:!1,userSelectionRect:null}),Y.current&&(h==null||h(Q),w.setState({nodesSelectionActive:z.current.size>0})),D())},W=Q=>{var ee,ce;(ce=(ee=Q.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,Q.pointerId),D()},J=a===!0||Array.isArray(a)&&a.includes(0);return g.jsxs("div",{className:on(["react-flow__pane",{draggable:J,dragging:O,selection:e}]),onClick:H?void 0:gm(M,j),onContextMenu:gm(B,j),onWheel:gm(X,j),onPointerEnter:H?void 0:y,onPointerMove:H?G:x,onPointerUp:U,onPointerCancel:H?W:void 0,onPointerDownCapture:H?A:void 0,onClickCapture:H?F:void 0,onPointerLeave:_,ref:j,style:Fu,children:[N,g.jsx(Z6,{})]})}function Zm({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:l,multiSelectionActive:c,nodeLookup:d,onError:h}=t.getState(),f=d.get(e);if(!f){h==null||h("012",Oi.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(i||f.selected&&c)&&(l({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function rN({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:l,nodeClickDistance:c}){const d=zt(),[h,f]=re.useState(!1),m=re.useRef();return re.useEffect(()=>{if(!t)return m.current=UI({getStoreItems:()=>d.getState(),onNodeMouseDown:p=>{Zm({id:p,store:d,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}}),()=>{var p;(p=m.current)==null||p.destroy(),m.current=void 0}},[t,d,e]),re.useEffect(()=>{t||!e.current||!m.current||m.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:l,nodeId:s,nodeClickDistance:c})},[i,a,t,l,e,s,c]),h}const J6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function aN(){const e=zt();return re.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:l,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:m}=e.getState(),p=new Map,y=J6(c),x=s?l[0]:5,_=s?l[1]:5,N=i.direction.x*x*i.factor,S=i.direction.y*_*i.factor;for(const[,w]of f){if(!y(w))continue;let k={x:w.internals.positionAbsolute.x+N,y:w.internals.positionAbsolute.y+S};s&&(k=Sl(k,l));const{position:E,positionAbsolute:O}=wE({nodeId:w.id,nextPosition:k,nodeLookup:f,nodeExtent:a,nodeOrigin:m,onError:d});w.position=E,w.internals.positionAbsolute=O,p.set(w.id,w)}h(p)},[])}const Zp=re.createContext(null),e8=Zp.Provider;Zp.Consumer;const sN=()=>re.useContext(Zp),t8=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),oN=re.createContext(null);function n8({children:e}){const t=dt(t8,qt);return g.jsx(oN.Provider,{value:t,children:e})}function i8(){const e=re.useContext(oN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const r8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},a8=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:l,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return r8;const m=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===t&&(h==null?void 0:h.type)===i;return{connectingFrom:(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===i,connectingTo:m,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===i,isPossibleEndHandle:l===$s.Strict?(d==null?void 0:d.type)!==i:e!==(d==null?void 0:d.nodeId)||t!==(d==null?void 0:d.id),connectionInProcess:!!d,clickConnectionInProcess:!!s,valid:m&&f}};function s8({type:e="source",position:t=je.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:l=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:m,onTouchStart:p,...y},x){var $,M;const _=c||null,N=e==="target",S=zt(),w=sN(),{connectOnClick:k,noPanClassName:E,rfId:O}=i8(),{connectingFrom:I,connectingTo:R,clickConnecting:H,isPossibleEndHandle:j,connectionInProcess:Z,clickConnectionInProcess:z,valid:q}=dt(a8(w,_,e),qt);w||(M=($=S.getState()).onError)==null||M.call($,"010",Oi.error010());const K=B=>{const{defaultEdgeOptions:X,onConnect:F,hasDefaultEdges:A}=S.getState(),L={...X,...B};if(A){const{edges:V,setEdges:D,onError:G}=S.getState();D(B6(L,V,{onError:G}))}F==null||F(L),d==null||d(L)},Y=B=>{if(!w)return;const X=OE(B.nativeEvent);if(s&&(X&&B.button===0||!X)){const F=S.getState();Km.onPointerDown(B.nativeEvent,{handleDomNode:B.currentTarget,autoPanOnConnect:F.autoPanOnConnect,connectionMode:F.connectionMode,connectionRadius:F.connectionRadius,domNode:F.domNode,nodeLookup:F.nodeLookup,lib:F.lib,isTarget:N,handleId:_,nodeId:w,flowId:F.rfId,panBy:F.panBy,cancelConnection:F.cancelConnection,onConnectStart:F.onConnectStart,onConnectEnd:(...A)=>{var L,V;return(V=(L=S.getState()).onConnectEnd)==null?void 0:V.call(L,...A)},updateConnection:F.updateConnection,onConnect:K,isValidConnection:i||((...A)=>{var L,V;return((V=(L=S.getState()).isValidConnection)==null?void 0:V.call(L,...A))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:F.autoPanSpeed,dragThreshold:F.connectionDragThreshold})}X?m==null||m(B):p==null||p(B)},C=B=>{const{onClickConnectStart:X,onClickConnectEnd:F,connectionClickStartHandle:A,connectionMode:L,isValidConnection:V,lib:D,rfId:G,nodeLookup:U,connection:W}=S.getState();if(!w||!A&&!s)return;if(!A){X==null||X(B.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=CE(B.target),Q=i||V,{connection:ee,isValid:ce}=Km.isValid(B.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:L,fromNodeId:A.nodeId,fromHandleId:A.id||null,fromType:A.type,isValidConnection:Q,flowId:G,doc:J,lib:D,nodeLookup:U});ce&&ee&&K(ee);const fe=structuredClone(W);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,F==null||F(B,fe),S.setState({connectionClickStartHandle:null})};return g.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${O}-${w}-${_}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:l,clickconnecting:H,connectingfrom:I,connectingto:R,valid:q,connectionindicator:a&&(!Z||j)&&(Z||z?l:s)}]),onMouseDown:Y,onTouchStart:Y,onClick:k?C:void 0,ref:x,...y,children:h})}const Gs=re.memo(tN(s8));function o8({data:e,isConnectable:t,sourcePosition:i=je.Bottom}){return g.jsxs(g.Fragment,{children:[e==null?void 0:e.label,g.jsx(Gs,{type:"source",position:i,isConnectable:t})]})}function l8({data:e,isConnectable:t,targetPosition:i=je.Top,sourcePosition:a=je.Bottom}){return g.jsxs(g.Fragment,{children:[g.jsx(Gs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,g.jsx(Gs,{type:"source",position:a,isConnectable:t})]})}function c8(){return null}function u8({data:e,isConnectable:t,targetPosition:i=je.Top}){return g.jsxs(g.Fragment,{children:[g.jsx(Gs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Su={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},_1={input:o8,default:l8,output:u8,group:c8};function d8(e){var t,i,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const f8=e=>{const{width:t,height:i,x:a,y:s}=Nl(e.nodeLookup,{filter:l=>!!l.selected});return{width:Ai(t)?t:null,height:Ai(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function h8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=zt(),{width:s,height:l,transformString:c,userSelectionActive:d}=dt(f8,qt),h=aN(),f=re.useRef(null);re.useEffect(()=>{var x;i||(x=f.current)==null||x.focus({preventScroll:!0})},[i]);const m=!d&&s!==null&&l!==null;if(rN({nodeRef:f,disabled:!m}),!m)return null;const p=e?x=>{const _=a.getState().nodes.filter(N=>N.selected);e(x,_)}:void 0,y=x=>{Object.prototype.hasOwnProperty.call(Su,x.key)&&(x.preventDefault(),h({direction:Su[x.key],factor:x.shiftKey?4:1}))};return g.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:g.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:i?void 0:-1,onKeyDown:i?void 0:y,style:{width:s,height:l}})})}const w1=typeof window<"u"?window:void 0,m8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function lN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:l,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:h,selectionKeyCode:f,selectionOnDrag:m,selectionMode:p,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:O,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:j,autoPanOnSelection:Z,defaultViewport:z,translateExtent:q,minZoom:K,maxZoom:Y,preventScrolling:C,onSelectionContextMenu:$,noWheelClassName:M,noPanClassName:B,disableKeyboardA11y:X,onViewportChange:F,isControlledViewport:A}){const{nodesSelectionActive:L,userSelectionActive:V}=dt(m8,qt),D=pl(f,{target:w1}),G=pl(N,{target:w1}),U=G||j,W=G||O,J=m&&U!==!0,Q=D||V||J;return G6({deleteKeyCode:h,multiSelectionKeyCode:_}),g.jsx(X6,{onPaneContextMenu:l,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:W,panOnScrollSpeed:I,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&U,defaultViewport:z,translateExtent:q,minZoom:K,maxZoom:Y,zoomActivationKeyCode:S,preventScrolling:C,noWheelClassName:M,noPanClassName:B,onViewportChange:F,isControlledViewport:A,paneClickDistance:d,selectionOnDrag:J,children:g.jsxs(W6,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:l,onPaneScroll:c,panOnDrag:U,autoPanOnSelection:Z,isSelecting:!!Q,selectionMode:p,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,L&&g.jsx(h8,{onSelectionContextMenu:$,noPanClassName:B,disableKeyboardA11y:X})]})})}lN.displayName="FlowRenderer";const p8=re.memo(lN),g8=e=>t=>e?$p(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(i=>i.id):Array.from(t.nodeLookup.keys());function b8(e){return dt(re.useCallback(g8(e),[e]),qt)}const x8=e=>e.updateNodeInternals;function y8(){const e=dt(x8),[t]=re.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const l=s.target.getAttribute("data-id");a.set(l,{id:l,nodeElement:s.target,force:!0})}),e(a)}));return re.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function v8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=zt(),l=re.useRef(null),c=re.useRef(null),d=re.useRef(e.sourcePosition),h=re.useRef(e.targetPosition),f=re.useRef(t),m=i&&!!e.internals.handleBounds;return re.useEffect(()=>{l.current&&!e.hidden&&(!m||c.current!==l.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(l.current),c.current=l.current)},[m,e.hidden]),re.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),re.useEffect(()=>{if(l.current){const p=f.current!==t,y=d.current!==e.sourcePosition,x=h.current!==e.targetPosition;(p||y||x)&&(f.current=t,d.current=e.sourcePosition,h.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:l.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),l}function _8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:l,onDoubleClick:c,nodesDraggable:d,elementsSelectable:h,nodesConnectable:f,nodesFocusable:m,resizeObserver:p,noDragClassName:y,noPanClassName:x,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:w,onError:k}){const{node:E,internals:O,isParent:I}=dt(Q=>{const ee=Q.nodeLookup.get(e),ce=Q.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:ce}},qt);let R=E.type||"default",H=(S==null?void 0:S[R])||_1[R];H===void 0&&(k==null||k("003",Oi.error003(R)),R="default",H=(S==null?void 0:S.default)||_1.default);const j=!!(E.draggable||d&&typeof E.draggable>"u"),Z=!!(E.selectable||h&&typeof E.selectable>"u"),z=!!(E.connectable||f&&typeof E.connectable>"u"),q=!!(E.focusable||m&&typeof E.focusable>"u"),K=zt(),Y=TE(E),C=v8({node:E,nodeType:R,hasDimensions:Y,resizeObserver:p}),$=rN({nodeRef:C,disabled:E.hidden||!j,noDragClassName:y,handleSelector:E.dragHandle,nodeId:e,isSelectable:Z,nodeClickDistance:w}),M=aN();if(E.hidden)return null;const B=Yi(E),X=d8(E),F=Z||j||t||i||a||s,A=i?Q=>i(Q,{...O.userNode}):void 0,L=a?Q=>a(Q,{...O.userNode}):void 0,V=s?Q=>s(Q,{...O.userNode}):void 0,D=l?Q=>l(Q,{...O.userNode}):void 0,G=c?Q=>c(Q,{...O.userNode}):void 0,U=Q=>{const{selectNodesOnDrag:ee,nodeDragThreshold:ce}=K.getState();Z&&(!ee||!j||ce>0)&&Zm({id:e,store:K,nodeRef:C}),t&&t(Q,{...O.userNode})},W=Q=>{if(!(ME(Q.nativeEvent)||_)){if(bE.includes(Q.key)&&Z){const ee=Q.key==="Escape";Zm({id:e,store:K,unselect:ee,nodeRef:C})}else if(j&&E.selected&&Object.prototype.hasOwnProperty.call(Su,Q.key)){Q.preventDefault();const{ariaLabelConfig:ee}=K.getState();K.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:Q.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),M({direction:Su[Q.key],factor:Q.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=C.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:Q,width:ee,height:ce,autoPanOnNodeFocus:fe,setCenter:be}=K.getState();if(!fe)return;$p(new Map([[e,E]]),{x:0,y:0,width:ee,height:ce},Q,!0).length>0||be(E.position.x+B.width/2,E.position.y+B.height/2,{zoom:Q[2]})};return g.jsx("div",{className:on(["react-flow__node",`react-flow__node-${R}`,{[x]:j},E.className,{selected:E.selected,selectable:Z,parent:I,draggable:j,dragging:$}]),ref:C,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:F?"all":"none",visibility:Y?"visible":"hidden",...E.style,...X},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:A,onMouseMove:L,onMouseLeave:V,onContextMenu:D,onClick:U,onDoubleClick:G,onKeyDown:q?W:void 0,tabIndex:q?0:void 0,onFocus:q?J:void 0,role:E.ariaRole??(q?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${KE}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:g.jsx(e8,{value:e,children:g.jsx(H,{id:e,data:E.data,type:R,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:E.selected??!1,selectable:Z,draggable:j,deletable:E.deletable??!0,isConnectable:z,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:$,dragHandle:E.dragHandle,zIndex:O.z,parentId:E.parentId,...B})})})}var w8=re.memo(_8);const E8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function cN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(E8,qt),l=b8(e.onlyRenderVisibleElements),c=y8();return g.jsx("div",{className:"react-flow__nodes",style:Fu,children:l.map(d=>g.jsx(w8,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:c,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:s},d))})}cN.displayName="NodeRenderer";const N8=re.memo(cN);function S8(e){return dt(re.useCallback(i=>{if(!e)return i.edges.map(s=>s.id);const a=[];if(i.width&&i.height)for(const s of i.edges){const l=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);l&&c&&vI({sourceNode:l,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const k8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return g.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},T8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return g.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},E1={[wu.Arrow]:k8,[wu.ArrowClosed]:T8};function A8(e){const t=zt();return re.useMemo(()=>{var s,l;return Object.prototype.hasOwnProperty.call(E1,e)?E1[e]:((l=(s=t.getState()).onError)==null||l.call(s,"009",Oi.error009(e)),null)},[e])}const C8=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:l="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const h=A8(t);return h?g.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:l,orient:d,refX:"0",refY:"0",children:g.jsx(h,{color:i,strokeWidth:c})}):null},uN=({defaultColor:e,rfId:t})=>{const i=dt(l=>l.edges),a=dt(l=>l.defaultEdgeOptions),s=re.useMemo(()=>AI(i,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,t,e]);return s.length?g.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:g.jsx("defs",{children:s.map(l=>g.jsx(C8,{id:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,strokeWidth:l.strokeWidth,orient:l.orient},l.id))})}):null};uN.displayName="MarkerDefinitions";var M8=re.memo(uN);function dN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:l,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:h,className:f,...m}){const[p,y]=re.useState({x:1,y:0,width:0,height:0}),x=on(["react-flow__edge-textwrapper",f]),_=re.useRef(null);return re.useEffect(()=>{if(_.current){const N=_.current.getBBox();y({x:N.x,y:N.y,width:N.width,height:N.height})}},[i]),i?g.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:x,visibility:p.width?"visible":"hidden",...m,children:[s&&g.jsx("rect",{width:p.width+2*c[0],x:-c[0],y:-c[1],height:p.height+2*c[1],className:"react-flow__edge-textbg",style:l,rx:d,ry:d}),g.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:_,style:a,children:i}),h]}):null}dN.displayName="EdgeText";const O8=re.memo(dN);function Gu({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h,interactionWidth:f=20,...m}){return g.jsxs(g.Fragment,{children:[g.jsx("path",{...m,d:e,fill:"none",className:on(["react-flow__edge-path",m.className])}),f?g.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,a&&Ai(t)&&Ai(i)?g.jsx(O8,{x:t,y:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function N1({pos:e,x1:t,y1:i,x2:a,y2:s}){return e===je.Left||e===je.Right?[.5*(t+a),i]:[t,.5*(i+s)]}function fN({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:l=je.Top}){const[c,d]=N1({pos:i,x1:e,y1:t,x2:a,y2:s}),[h,f]=N1({pos:l,x1:a,y1:s,x2:e,y2:t}),[m,p,y,x]=RE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:d,targetControlX:h,targetControlY:f});return[`M${e},${t} C${c},${d} ${h},${f} ${a},${s}`,m,p,y,x]}function hN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,sourcePosition:c,targetPosition:d,label:h,labelStyle:f,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})=>{const[k,E,O]=fN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:l,targetPosition:d}),I=e.isInternal?void 0:t;return g.jsx(Gu,{id:I,path:k,labelX:E,labelY:O,label:h,labelStyle:f,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:w})})}const R8=hN({isInternal:!1}),mN=hN({isInternal:!0});R8.displayName="SimpleBezierEdge";mN.displayName="SimpleBezierEdgeInternal";function pN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,sourcePosition:x=je.Bottom,targetPosition:_=je.Top,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,O,I]=Vm({sourceX:i,sourceY:a,sourcePosition:x,targetX:s,targetY:l,targetPosition:_,borderRadius:w==null?void 0:w.borderRadius,offset:w==null?void 0:w.offset,stepPosition:w==null?void 0:w.stepPosition}),R=e.isInternal?void 0:t;return g.jsx(Gu,{id:R,path:E,labelX:O,labelY:I,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const gN=pN({isInternal:!1}),bN=pN({isInternal:!0});gN.displayName="SmoothStepEdge";bN.displayName="SmoothStepEdgeInternal";function xN(e){return re.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return g.jsx(gN,{...i,id:a,pathOptions:re.useMemo(()=>{var l;return{borderRadius:0,offset:(l=i.pathOptions)==null?void 0:l.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const D8=xN({isInternal:!1}),yN=xN({isInternal:!0});D8.displayName="StepEdge";yN.displayName="StepEdgeInternal";function vN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,w,k]=zE({sourceX:i,sourceY:a,targetX:s,targetY:l}),E=e.isInternal?void 0:t;return g.jsx(Gu,{id:E,path:S,labelX:w,labelY:k,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})})}const L8=vN({isInternal:!1}),_N=vN({isInternal:!0});L8.displayName="StraightEdge";_N.displayName="StraightEdgeInternal";function wN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:l,sourcePosition:c=je.Bottom,targetPosition:d=je.Top,label:h,labelStyle:f,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,pathOptions:w,interactionWidth:k})=>{const[E,O,I]=DE({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:l,targetPosition:d,curvature:w==null?void 0:w.curvature}),R=e.isInternal?void 0:t;return g.jsx(Gu,{id:R,path:E,labelX:O,labelY:I,label:h,labelStyle:f,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const z8=wN({isInternal:!1}),EN=wN({isInternal:!0});z8.displayName="BezierEdge";EN.displayName="BezierEdgeInternal";const S1={default:EN,straight:_N,step:yN,smoothstep:bN,simplebezier:mN},k1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},j8=(e,t,i)=>i===je.Left?e-t:i===je.Right?e+t:e,I8=(e,t,i)=>i===je.Top?e-t:i===je.Bottom?e+t:e,T1="react-flow__edgeupdater";function A1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:l,onMouseOut:c,type:d}){return g.jsx("circle",{onMouseDown:s,onMouseEnter:l,onMouseOut:c,className:on([T1,`${T1}-${d}`]),cx:j8(t,a,e),cy:I8(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function B8({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:l,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:m,onReconnectEnd:p,setReconnecting:y,setUpdateHover:x}){const _=zt(),N=(O,I)=>{if(O.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:j,connectionRadius:Z,lib:z,onConnectStart:q,cancelConnection:K,nodeLookup:Y,rfId:C,panBy:$,updateConnection:M}=_.getState(),B=I.type==="target",X=(L,V)=>{y(!1),p==null||p(L,i,I.type,V)},F=L=>f==null?void 0:f(i,L),A=(L,V)=>{y(!0),m==null||m(O,i,I.type),q==null||q(L,V)};Km.onPointerDown(O.nativeEvent,{autoPanOnConnect:R,connectionMode:j,connectionRadius:Z,domNode:H,handleId:I.id,nodeId:I.nodeId,nodeLookup:Y,isTarget:B,edgeUpdaterType:I.type,lib:z,flowId:C,cancelConnection:K,panBy:$,isValidConnection:(...L)=>{var V,D;return((D=(V=_.getState()).isValidConnection)==null?void 0:D.call(V,...L))??!0},onConnect:F,onConnectStart:A,onConnectEnd:(...L)=>{var V,D;return(D=(V=_.getState()).onConnectEnd)==null?void 0:D.call(V,...L)},onReconnectEnd:X,updateConnection:M,getTransform:()=>_.getState().transform,getFromHandle:()=>_.getState().connection.fromHandle,dragThreshold:_.getState().connectionDragThreshold,handleDomNode:O.currentTarget})},S=O=>N(O,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),w=O=>N(O,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>x(!0),E=()=>x(!1);return g.jsxs(g.Fragment,{children:[(e===!0||e==="source")&&g.jsx(A1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&g.jsx(A1,{position:h,centerX:l,centerY:c,radius:t,onMouseDown:w,onMouseEnter:k,onMouseOut:E,type:"target"})]})}function U8({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:l,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,rfId:_,edgeTypes:N,noPanClassName:S,onError:w,disableKeyboardA11y:k}){let E=dt(be=>be.edgeLookup.get(e));const O=dt(be=>be.defaultEdgeOptions);E=O?{...O,...E}:E;let I=E.type||"default",R=(N==null?void 0:N[I])||S1[I];R===void 0&&(w==null||w("011",Oi.error011(I)),I="default",R=(N==null?void 0:N.default)||S1.default);const H=!!(E.focusable||t&&typeof E.focusable>"u"),j=typeof p<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),Z=!!(E.selectable||a&&typeof E.selectable>"u"),z=re.useRef(null),[q,K]=re.useState(!1),[Y,C]=re.useState(!1),$=zt(),{zIndex:M=E.zIndex,sourceX:B,sourceY:X,targetX:F,targetY:A,sourcePosition:L,targetPosition:V}=dt(re.useCallback(be=>{const we=be.nodeLookup.get(E.source),Ne=be.nodeLookup.get(E.target);if(!we||!Ne)return k1;const Le=TI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:be.connectionMode,onError:w}),$e=yI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...Le||k1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),qt),D=re.useMemo(()=>E.markerStart?`url('#${Ym(E.markerStart,_)}')`:void 0,[E.markerStart,_]),G=re.useMemo(()=>E.markerEnd?`url('#${Ym(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||B===null||X===null||F===null||A===null)return null;const U=be=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:Le}=$.getState();Z&&($.setState({nodesSelectionActive:!1}),E.selected&&Le?(Ne({nodes:[],edges:[E]}),($e=z.current)==null||$e.blur()):we([e])),s&&s(be,E)},W=l?be=>{l(be,{...E})}:void 0,J=c?be=>{c(be,{...E})}:void 0,Q=d?be=>{d(be,{...E})}:void 0,ee=h?be=>{h(be,{...E})}:void 0,ce=f?be=>{f(be,{...E})}:void 0,fe=be=>{var we;if(!k&&bE.includes(be.key)&&Z){const{unselectNodesAndEdges:Ne,addSelectedEdges:Le}=$.getState();be.key==="Escape"?((we=z.current)==null||we.blur(),Ne({edges:[E]})):Le([e])}};return g.jsx("svg",{style:{zIndex:M},children:g.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${I}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!Z&&!s,updating:q,selectable:Z}]),onClick:U,onDoubleClick:W,onContextMenu:J,onMouseEnter:Q,onMouseMove:ee,onMouseLeave:ce,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:E.ariaRole??(H?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":H?`${ZE}-${_}`:void 0,ref:z,...E.domAttributes,children:[!Y&&g.jsx(R,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:Z,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:B,sourceY:X,targetX:F,targetY:A,sourcePosition:L,targetPosition:V,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:D,markerEnd:G,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),j&&g.jsx(B8,{edge:E,isReconnectable:j,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,sourceX:B,sourceY:X,targetX:F,targetY:A,sourcePosition:L,targetPosition:V,setUpdateHover:K,setReconnecting:C})]})})}var H8=re.memo(U8);const $8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function NN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:l,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:h,onEdgeMouseLeave:f,onEdgeClick:m,reconnectRadius:p,onEdgeDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,onError:E}=dt($8,qt),O=S8(t);return g.jsxs("div",{className:"react-flow__edges",children:[g.jsx(M8,{defaultColor:e,rfId:i}),O.map(I=>g.jsx(H8,{id:I,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,noPanClassName:s,onReconnect:l,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,onClick:m,reconnectRadius:p,onDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,rfId:i,onError:E,edgeTypes:a,disableKeyboardA11y:N},I))]})}NN.displayName="EdgeRenderer";const q8=re.memo(NN),C1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function P8({children:e}){const t=zt(),i=re.useRef(null),[a]=re.useState(()=>t.getState().transform);return nN(()=>{let s=null;const l=()=>{const c=t.getState().transform;s&&c[0]===s[0]&&c[1]===s[1]&&c[2]===s[2]||(s=c,i.current&&(i.current.style.transform=C1(c)))};return l(),t.subscribe(l)},[t]),g.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:C1(a)},children:e})}function F8(e){const t=Tl(),i=re.useRef(!1);re.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const G8=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function V8(e){const t=dt(G8),i=zt();return re.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function Y8(e){return e.connection.inProgress?{...e.connection,to:kl(e.connection.to,e.transform)}:{...e.connection}}function X8(e){return Y8}function K8(e){const t=X8();return dt(t,qt)}const Z8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Q8({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:l,height:c,isValid:d,inProgress:h}=dt(Z8,qt);return!(l&&s&&h)?null:g.jsx("svg",{style:e,width:l,height:c,className:"react-flow__connectionline react-flow__container",children:g.jsx("g",{className:on(["react-flow__connection",vE(d)]),children:g.jsx(SN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const SN=({style:e,type:t=ra.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:l,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:m,toHandle:p,toPosition:y,pointer:x}=K8();if(!s)return;if(i)return g.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:l.x,fromY:l.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:y,connectionStatus:vE(a),toNode:m,toHandle:p,pointer:x});let _="";const N={sourceX:l.x,sourceY:l.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:y};switch(t){case ra.Bezier:[_]=DE(N);break;case ra.SimpleBezier:[_]=fN(N);break;case ra.Step:[_]=Vm({...N,borderRadius:0});break;case ra.SmoothStep:[_]=Vm(N);break;default:[_]=zE(N)}return g.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};SN.displayName="ConnectionLine";const W8={};function M1(e=W8){re.useRef(e),zt(),re.useEffect(()=>{},[e])}function J8(){zt(),re.useRef(!1),re.useEffect(()=>{},[])}function kN({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:l,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:m,onSelectionContextMenu:p,onSelectionStart:y,onSelectionEnd:x,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:w,selectionKeyCode:k,selectionOnDrag:E,selectionMode:O,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:j,onlyRenderVisibleElements:Z,elementsSelectable:z,defaultViewport:q,translateExtent:K,minZoom:Y,maxZoom:C,preventScrolling:$,defaultMarkerColor:M,zoomOnScroll:B,zoomOnPinch:X,panOnScroll:F,panOnScrollSpeed:A,panOnScrollMode:L,zoomOnDoubleClick:V,panOnDrag:D,autoPanOnSelection:G,onPaneClick:U,onPaneMouseEnter:W,onPaneMouseMove:J,onPaneMouseLeave:Q,onPaneScroll:ee,onPaneContextMenu:ce,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:wn,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return M1(e),M1(t),J8(),F8(i),V8(xe),g.jsx(p8,{onPaneClick:U,onPaneMouseEnter:W,onPaneMouseMove:J,onPaneMouseLeave:Q,onPaneContextMenu:ce,onPaneScroll:ee,paneClickDistance:fe,deleteKeyCode:j,selectionKeyCode:k,selectionOnDrag:E,selectionMode:O,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:I,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:z,zoomOnScroll:B,zoomOnPinch:X,zoomOnDoubleClick:V,panOnScroll:F,panOnScrollSpeed:A,panOnScrollMode:L,panOnDrag:D,autoPanOnSelection:G,defaultViewport:q,translateExtent:K,minZoom:Y,maxZoom:C,onSelectionContextMenu:p,preventScrolling:$,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:wn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:g.jsxs(P8,{children:[g.jsx(q8,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:Z,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:M,noPanClassName:wn,disableKeyboardA11y:ct,rfId:ue}),g.jsx(Q8,{style:N,type:_,component:S,containerStyle:w}),g.jsx("div",{className:"react-flow__edgelabel-renderer"}),g.jsx(N8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:l,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:m,nodeClickDistance:be,onlyRenderVisibleElements:Z,noPanClassName:wn,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),g.jsx("div",{className:"react-flow__viewport-portal"})]})})}kN.displayName="GraphView";const eB=re.memo(kN),tB=kE(),O1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:h=.5,maxZoom:f=2,nodeOrigin:m,nodeExtent:p,zIndexMode:y="basic"}={})=>{const x=new Map,_=new Map,N=new Map,S=new Map,w=a??t??[],k=i??e??[],E=m??[0,0],O=p??dl;BE(N,S,w);const{nodesInitialized:I}=Xm(k,x,_,{nodeOrigin:E,nodeExtent:O,zIndexMode:y});let R=[0,0,1];if(c&&s&&l){const H=Nl(x,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:j,y:Z,zoom:z}=Pp(H,s,l,h,f,(d==null?void 0:d.padding)??.1);R=[j,Z,z]}return{rfId:"1",width:s??0,height:l??0,transform:R,nodes:k,nodesInitialized:I,nodeLookup:x,parentLookup:_,edges:w,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:f,translateExtent:dl,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:$s.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:d,fitViewResolver:null,connection:{...yE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:tB,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:xE,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},nB=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y})=>g6((x,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:k,fitViewResolver:E,width:O,height:I,minZoom:R,maxZoom:H}=_();w&&(await fI({nodes:S,width:O,height:I,panZoom:w,minZoom:R,maxZoom:H},k),E==null||E.resolve(!0),x({fitViewResolver:null}))}return{...O1({nodes:e,edges:t,width:s,height:l,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:m,nodeExtent:p,defaultNodes:i,defaultEdges:a,zIndexMode:y}),setNodes:S=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:E,elevateNodesOnSelect:O,fitViewQueued:I,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:j,hasSelectedNodes:Z}=Xm(S,w,k,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:R}),z=H&&Z;I&&j?(N(),x({nodes:S,nodesInitialized:j,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:z})):x({nodes:S,nodesInitialized:j,nodesSelectionActive:z})},setEdges:S=>{const{connectionLookup:w,edgeLookup:k}=_();BE(w,k,S),x({edges:S})},setDefaultNodesAndEdges:(S,w)=>{if(S){const{setNodes:k}=_();k(S),x({hasDefaultNodes:!0})}if(w){const{setEdges:k}=_();k(w),x({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:E,domNode:O,nodeOrigin:I,nodeExtent:R,debug:H,fitViewQueued:j,zIndexMode:Z}=_(),{changes:z,updatedInternals:q}=zI(S,k,E,O,I,R,Z);q&&(OI(k,E,{nodeOrigin:I,nodeExtent:R,zIndexMode:Z}),j?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(z==null?void 0:z.length)>0&&(H&&console.log("React Flow: trigger node changes",z),w==null||w(z)))},updateNodePositions:(S,w=!1)=>{const k=[];let E=[];const{nodeLookup:O,triggerNodeChanges:I,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:j}=_();for(const[Z,z]of S){const q=O.get(Z),K=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(z!=null&&z.position)),Y={id:Z,type:"position",position:K?{x:Math.max(0,z.position.x),y:Math.max(0,z.position.y)}:z.position,dragging:w};if(q&&R.inProgress&&R.fromNode.id===q.id){const C=$a(q,R.fromHandle,je.Left,!0);H({...R,from:C})}K&&q.parentId&&k.push({id:Z,parentId:q.parentId,rect:{...z.internals.positionAbsolute,width:z.measured.width??0,height:z.measured.height??0}}),E.push(Y)}if(k.length>0){const{parentLookup:Z,nodeOrigin:z}=_(),q=Kp(k,O,Z,z);E.push(...q)}for(const Z of j.values())E=Z(E);I(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:k,nodes:E,hasDefaultNodes:O,debug:I}=_();if(S!=null&&S.length){if(O){const R=JE(S,E);k(R)}I&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:k,edges:E,hasDefaultEdges:O,debug:I}=_();if(S!=null&&S.length){if(O){const R=eN(S,E);k(R)}I&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:O,triggerEdgeChanges:I}=_();if(w){const R=S.map(H=>Oa(H,!0));O(R);return}O(Ms(E,new Set([...S]),!0)),I(Ms(k))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:O,triggerEdgeChanges:I}=_();if(w){const R=S.map(H=>Oa(H,!0));I(R);return}I(Ms(k,new Set([...S]))),O(Ms(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:k,nodes:E,nodeLookup:O,triggerNodeChanges:I,triggerEdgeChanges:R}=_(),H=S||E,j=w||k,Z=[];for(const q of H){if(!q.selected)continue;const K=O.get(q.id);K&&(K.selected=!1),Z.push(Oa(q.id,!1))}const z=[];for(const q of j)q.selected&&z.push(Oa(q.id,!1));I(Z),R(z)},setMinZoom:S=>{const{panZoom:w,maxZoom:k}=_();w==null||w.setScaleExtent([S,k]),x({minZoom:S})},setMaxZoom:S=>{const{panZoom:w,minZoom:k}=_();w==null||w.setScaleExtent([k,S]),x({maxZoom:S})},setTranslateExtent:S=>{var w;(w=_().panZoom)==null||w.setTranslateExtent(S),x({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:E,elementsSelectable:O}=_();if(!O)return;const I=w.reduce((H,j)=>j.selected?[...H,Oa(j.id,!1)]:H,[]),R=S.reduce((H,j)=>j.selected?[...H,Oa(j.id,!1)]:H,[]);k(I),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:k,parentLookup:E,nodeOrigin:O,elevateNodesOnSelect:I,nodeExtent:R,zIndexMode:H}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(Xm(w,k,E,{nodeOrigin:O,nodeExtent:S,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:H}),x({nodeExtent:S}))},panBy:S=>{const{transform:w,width:k,height:E,panZoom:O,translateExtent:I}=_();return jI({delta:S,panZoom:O,transform:w,translateExtent:I,width:k,height:E})},setCenter:async(S,w,k)=>{const{width:E,height:O,maxZoom:I,panZoom:R}=_();if(!R)return!1;const H=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:I;return await R.setViewport({x:E/2-S*H,y:O/2-w*H,zoom:H},{duration:k==null?void 0:k.duration,ease:k==null?void 0:k.ease,interpolate:k==null?void 0:k.interpolate}),!0},cancelConnection:()=>{x({connection:{...yE}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...O1()})}},Object.is);function iB({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:l,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y,children:x}){const[_]=re.useState(()=>nB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:l,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y}));return g.jsx(b6,{value:_,children:g.jsx($6,{children:g.jsx(n8,{children:x})})})}function rB({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:l,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x}){return re.useContext(qu)?g.jsx(g.Fragment,{children:e}):g.jsx(iB,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:l,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x,children:e})}const aB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function sB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:l,edgeTypes:c,onNodeClick:d,onEdgeClick:h,onInit:f,onMove:m,onMoveStart:p,onMoveEnd:y,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:O,onNodeContextMenu:I,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:j,onNodeDragStop:Z,onNodesDelete:z,onEdgesDelete:q,onDelete:K,onSelectionChange:Y,onSelectionDragStart:C,onSelectionDrag:$,onSelectionDragStop:M,onSelectionContextMenu:B,onSelectionStart:X,onSelectionEnd:F,onBeforeDelete:A,connectionMode:L,connectionLineType:V=ra.Bezier,connectionLineStyle:D,connectionLineComponent:G,connectionLineContainerStyle:U,deleteKeyCode:W="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:Q=!1,selectionMode:ee=fl.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:fe=ml()?"Meta":"Control",zoomActivationKeyCode:be=ml()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=QE,edgesFocusable:Vn,edgesReconnectable:wn,elementsSelectable:ct=!0,defaultViewport:It=M6,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=dl,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:ln="#b1b1b7",zoomOnScroll:En=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=za.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:vr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:me=1,nodeClickDistance:Ee=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:_r=10,onNodesChange:wr,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:mn="nowheel",noPanClassName:xi="nopan",fitView:Er,fitViewOptions:la,connectOnClick:Nr,attributionPosition:Fa,proOptions:Xi,defaultEdgeOptions:ca,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:yi=!1,disableKeyboardA11y:vi=!1,autoPanOnConnect:Li,autoPanOnNodeDrag:Ft,autoPanOnSelection:Ga=!0,autoPanSpeed:Ki,connectionRadius:_i,isValidConnection:ye,onError:ze,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:pn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:Va="light",debug:Sr,onScroll:zi,ariaLabelConfig:kr,zIndexMode:Ya="basic",...Sn},ua){const wi=ft||"1",Tr=L6(Va),un=re.useCallback(da=>{da.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),zi==null||zi(da)},[zi]);return g.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...aB},ref:ua,className:on(["react-flow",s,Tr]),id:ft,role:"application",children:g.jsxs(rB,{nodes:e,edges:t,width:_t,height:On,fitView:Er,fitViewOptions:la,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Ya,children:[g.jsx(D6,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:w,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Vn,edgesReconnectable:wn,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:yi,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:wr,onEdgesChange:ai,snapToGrid:we,snapGrid:Ne,connectionMode:L,translateExtent:Oe,connectOnClick:Nr,defaultEdgeOptions:ca,fitView:Er,fitViewOptions:la,onNodesDelete:z,onEdgesDelete:q,onDelete:K,onNodeDragStart:H,onNodeDrag:j,onNodeDragStop:Z,onSelectionDrag:$,onSelectionDragStart:C,onSelectionDragStop:M,onMove:m,onMoveStart:p,onMoveEnd:y,noPanClassName:xi,nodeOrigin:Xt,rfId:wi,autoPanOnConnect:Li,autoPanOnNodeDrag:Ft,autoPanSpeed:Ki,onError:ze,connectionRadius:_i,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:pn,onBeforeDelete:A,debug:Sr,ariaLabelConfig:kr,zIndexMode:Ya}),g.jsx(eB,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:O,onNodeContextMenu:I,onNodeDoubleClick:R,nodeTypes:l,edgeTypes:c,connectionLineType:V,connectionLineStyle:D,connectionLineComponent:G,connectionLineContainerStyle:U,selectionKeyCode:J,selectionOnDrag:Q,selectionMode:ee,deleteKeyCode:W,multiSelectionKeyCode:fe,panActivationKeyCode:ce,zoomActivationKeyCode:be,onlyRenderVisibleElements:Le,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:En,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Ga,onPaneClick:vr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:B,onSelectionStart:X,onSelectionEnd:F,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:_r,defaultMarkerColor:ln,noDragClassName:Ut,noWheelClassName:mn,noPanClassName:xi,rfId:wi,disableKeyboardA11y:vi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),g.jsx(C6,{onSelectionChange:Y}),Pe,g.jsx(N6,{proOptions:Xi,position:Fa}),g.jsx(E6,{rfId:wi,disableKeyboardA11y:vi})]})})}var oB=tN(sB);function lB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(l=>JE(s,l)),[]);return[t,i,a]}function cB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(l=>eN(s,l)),[]);return[t,i,a]}function uB({dimensions:e,lineWidth:t,variant:i,className:a}){return g.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",i,a])})}function dB({radius:e,className:t}){return g.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",t])})}var aa;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(aa||(aa={}));const fB={[aa.Dots]:1,[aa.Lines]:1,[aa.Cross]:6},hB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function TN({id:e,variant:t=aa.Dots,gap:i=20,size:a,lineWidth:s=1,offset:l=0,color:c,bgColor:d,style:h,className:f,patternClassName:m}){const p=re.useRef(null),{transform:y,patternId:x}=dt(hB,qt),_=a||fB[t],N=t===aa.Dots,S=t===aa.Cross,w=Array.isArray(i)?i:[i,i],k=[w[0]*y[2]||1,w[1]*y[2]||1],E=_*y[2],O=Array.isArray(l)?l:[l,l],I=S?[E,E]:k,R=[O[0]*y[2]||1+I[0]/2,O[1]*y[2]||1+I[1]/2],H=`${x}${e||""}`;return g.jsxs("svg",{className:on(["react-flow__background",f]),style:{...h,...Fu,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[g.jsx("pattern",{id:H,x:y[0]%k[0],y:y[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:N?g.jsx(dB,{radius:E/2,className:m}):g.jsx(uB,{dimensions:I,lineWidth:s,variant:t,className:m})}),g.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}TN.displayName="Background";const mB=re.memo(TN);function pB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:g.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function gB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:g.jsx("path",{d:"M0 0h32v4.2H0z"})})}function bB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:g.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function xB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function yB(){return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:g.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function eu({children:e,className:t,...i}){return g.jsx("button",{type:"button",className:on(["react-flow__controls-button",t]),...i,children:e})}const vB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function AN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:l,onZoomOut:c,onFitView:d,onInteractiveChange:h,className:f,children:m,position:p="bottom-left",orientation:y="vertical","aria-label":x}){const _=zt(),{isInteractive:N,minZoomReached:S,maxZoomReached:w,ariaLabelConfig:k}=dt(vB,qt),{zoomIn:E,zoomOut:O,fitView:I}=Tl(),R=()=>{E(),l==null||l()},H=()=>{O(),c==null||c()},j=()=>{I(s),d==null||d()},Z=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},z=y==="horizontal"?"horizontal":"vertical";return g.jsxs(Pu,{className:on(["react-flow__controls",z,f]),position:p,style:e,"data-testid":"rf__controls","aria-label":x??k["controls.ariaLabel"],children:[t&&g.jsxs(g.Fragment,{children:[g.jsx(eu,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:w,children:g.jsx(pB,{})}),g.jsx(eu,{onClick:H,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:g.jsx(gB,{})})]}),i&&g.jsx(eu,{className:"react-flow__controls-fitview",onClick:j,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:g.jsx(bB,{})}),a&&g.jsx(eu,{className:"react-flow__controls-interactive",onClick:Z,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?g.jsx(yB,{}):g.jsx(xB,{})}),m]})}AN.displayName="Controls";const _B=re.memo(AN);function wB({id:e,x:t,y:i,width:a,height:s,style:l,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:m,shapeRendering:p,selected:y,onClick:x}){const{background:_,backgroundColor:N}=l||{},S=c||_||N;return g.jsx("rect",{className:on(["react-flow__minimap-node",{selected:y},f]),x:t,y:i,rx:m,ry:m,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:h},shapeRendering:p,onClick:x?w=>x(w,e):void 0})}const EB=re.memo(wB),NB=e=>e.nodes.map(t=>t.id),bm=e=>e instanceof Function?e:()=>e;function SB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:l=EB,onClick:c}){const d=dt(NB,qt),h=bm(t),f=bm(e),m=bm(i),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g.jsx(g.Fragment,{children:d.map(y=>g.jsx(TB,{id:y,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:l,onClick:c,shapeRendering:p},y))})}function kB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:l,shapeRendering:c,NodeComponent:d,onClick:h}){const{node:f,x:m,y:p,width:y,height:x}=dt(_=>{const N=_.nodeLookup.get(e);if(!N)return{node:void 0,x:0,y:0,width:0,height:0};const S=N.internals.userNode,{x:w,y:k}=N.internals.positionAbsolute,{width:E,height:O}=Yi(S);return{node:S,x:w,y:k,width:E,height:O}},qt);return!f||f.hidden||!TE(f)?null:g.jsx(d,{x:m,y:p,width:y,height:x,style:f.style,selected:!!f.selected,className:a(f),color:t(f),borderRadius:s,strokeColor:i(f),strokeWidth:l,shapeRendering:c,onClick:h,id:f.id})}const TB=re.memo(kB);var AB=re.memo(SB);const CB=200,MB=150,OB=e=>!e.hidden,RB=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?NE(Nl(e.nodeLookup,{filter:OB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},R1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,DB=(e,t)=>R1(e.viewBB,t.viewBB)&&R1(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,LB="react-flow__minimap-desc";function CN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:l=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:h,maskColor:f,maskStrokeColor:m,maskStrokeWidth:p,position:y="bottom-right",onClick:x,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:w,inversePan:k,zoomStep:E=1,offsetScale:O=5}){const I=zt(),R=re.useRef(null),{boundingRect:H,viewBB:j,rfId:Z,panZoom:z,translateExtent:q,flowWidth:K,flowHeight:Y,ariaLabelConfig:C}=dt(RB,DB),$=(e==null?void 0:e.width)??CB,M=(e==null?void 0:e.height)??MB,B=H.width/$,X=H.height/M,F=Math.max(B,X),A=F*$,L=F*M,V=O*F,D=H.x-(A-H.width)/2-V,G=H.y-(L-H.height)/2-V,U=A+V*2,W=L+V*2,J=`${LB}-${Z}`,Q=re.useRef(0),ee=re.useRef();Q.current=F,re.useEffect(()=>{if(R.current&&z)return ee.current=GI({domNode:R.current,panZoom:z,getTransform:()=>I.getState().transform,getViewScale:()=>Q.current}),()=>{var we;(we=ee.current)==null||we.destroy()}},[z]),re.useEffect(()=>{var we;(we=ee.current)==null||we.update({translateExtent:q,width:K,height:Y,inversePan:k,pannable:N,zoomStep:E,zoomable:S})},[N,S,k,E,q,K,Y]);const ce=x?we=>{var $e;const[Ne,Le]=(($e=ee.current)==null?void 0:$e.pointer(we))||[0,0];x(we,{x:Ne,y:Le})}:void 0,fe=_?re.useCallback((we,Ne)=>{const Le=I.getState().nodeLookup.get(Ne).internals.userNode;_(we,Le)},[]):void 0,be=w??C["minimap.ariaLabel"];return g.jsx(Pu,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof m=="string"?m:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*F:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:on(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:g.jsxs("svg",{width:$,height:M,viewBox:`${D} ${G} ${U} ${W}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ce,children:[be&&g.jsx("title",{id:J,children:be}),g.jsx(AB,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:l,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),g.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-V},${G-V}h${U+V*2}v${W+V*2}h${-U-V*2}z - M${j.x},${j.y}h${j.width}v${j.height}h${-j.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}CN.displayName="MiniMap";const zB=re.memo(CN),jB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,IB={[Fs.Line]:"right",[Fs.Handle]:"bottom-right"};function BB({nodeId:e,position:t,variant:i=Fs.Handle,className:a,style:s=void 0,children:l,color:c,minWidth:d=10,minHeight:h=10,maxWidth:f=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:y,autoScale:x=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:w}){const k=sN(),E=typeof e=="string"?e:k,O=zt(),I=re.useRef(null),R=i===Fs.Handle,H=dt(re.useCallback(jB(R&&x),[R,x]),qt),j=re.useRef(null),Z=t??IB[i];re.useEffect(()=>{if(!(!I.current||!E))return j.current||(j.current=r6({domNode:I.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:q,transform:K,snapGrid:Y,snapToGrid:C,nodeOrigin:$,domNode:M}=O.getState();return{nodeLookup:q,transform:K,snapGrid:Y,snapToGrid:C,nodeOrigin:$,paneDomNode:M}},onChange:(q,K)=>{const{triggerNodeChanges:Y,nodeLookup:C,parentLookup:$,nodeOrigin:M}=O.getState(),B=[],X={x:q.x,y:q.y},F=C.get(E);if(F&&F.expandParent&&F.parentId){const A=F.origin??M,L=q.width??F.measured.width??0,V=q.height??F.measured.height??0,D={id:F.id,parentId:F.parentId,rect:{width:L,height:V,...AE({x:q.x??F.position.x,y:q.y??F.position.y},{width:L,height:V},F.parentId,C,A)}},G=Kp([D],C,$,M);B.push(...G),X.x=q.x?Math.max(A[0]*L,q.x):void 0,X.y=q.y?Math.max(A[1]*V,q.y):void 0}if(X.x!==void 0&&X.y!==void 0){const A={id:E,type:"position",position:{...X}};B.push(A)}if(q.width!==void 0&&q.height!==void 0){const L={id:E,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};B.push(L)}for(const A of K){const L={...A,type:"position"};B.push(L)}Y(B)},onEnd:({width:q,height:K})=>{const Y={id:E,type:"dimensions",resizing:!1,dimensions:{width:q,height:K}};O.getState().triggerNodeChanges([Y])}})),j.current.update({controlPosition:Z,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:m},keepAspectRatio:p,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var q;(q=j.current)==null||q.destroy()}},[Z,d,h,f,m,p,N,S,w,_]);const z=Z.split("-");return g.jsx("div",{className:on(["react-flow__resize-control","nodrag",...z,i,a]),ref:I,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:l})}re.memo(BB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ri=vt((e,t)=>{var i=Object.defineProperty,a=(Y,C,$)=>C in Y?i(Y,C,{enumerable:!0,configurable:!0,writable:!0,value:$}):Y[C]=$,s=(Y,C)=>()=>(C||Y((C={exports:{}}).exports,C),C.exports),l=(Y,C,$)=>a(Y,typeof C!="symbol"?C+"":C,$),c=s((Y,C)=>{var $="\0",M="\0",B="",X=class{constructor(G){l(this,"_isDirected",!0),l(this,"_isMultigraph",!1),l(this,"_isCompound",!1),l(this,"_label"),l(this,"_defaultNodeLabelFn",()=>{}),l(this,"_defaultEdgeLabelFn",()=>{}),l(this,"_nodes",{}),l(this,"_in",{}),l(this,"_preds",{}),l(this,"_out",{}),l(this,"_sucs",{}),l(this,"_edgeObjs",{}),l(this,"_edgeLabels",{}),l(this,"_nodeCount",0),l(this,"_edgeCount",0),l(this,"_parent"),l(this,"_children"),G&&(this._isDirected=Object.hasOwn(G,"directed")?G.directed:!0,this._isMultigraph=Object.hasOwn(G,"multigraph")?G.multigraph:!1,this._isCompound=Object.hasOwn(G,"compound")?G.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[M]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(G){return this._label=G,this}graph(){return this._label}setDefaultNodeLabel(G){return this._defaultNodeLabelFn=G,typeof G!="function"&&(this._defaultNodeLabelFn=()=>G),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var G=this;return this.nodes().filter(U=>Object.keys(G._in[U]).length===0)}sinks(){var G=this;return this.nodes().filter(U=>Object.keys(G._out[U]).length===0)}setNodes(G,U){var W=arguments,J=this;return G.forEach(function(Q){W.length>1?J.setNode(Q,U):J.setNode(Q)}),this}setNode(G,U){return Object.hasOwn(this._nodes,G)?(arguments.length>1&&(this._nodes[G]=U),this):(this._nodes[G]=arguments.length>1?U:this._defaultNodeLabelFn(G),this._isCompound&&(this._parent[G]=M,this._children[G]={},this._children[M][G]=!0),this._in[G]={},this._preds[G]={},this._out[G]={},this._sucs[G]={},++this._nodeCount,this)}node(G){return this._nodes[G]}hasNode(G){return Object.hasOwn(this._nodes,G)}removeNode(G){var U=this;if(Object.hasOwn(this._nodes,G)){var W=J=>U.removeEdge(U._edgeObjs[J]);delete this._nodes[G],this._isCompound&&(this._removeFromParentsChildList(G),delete this._parent[G],this.children(G).forEach(function(J){U.setParent(J)}),delete this._children[G]),Object.keys(this._in[G]).forEach(W),delete this._in[G],delete this._preds[G],Object.keys(this._out[G]).forEach(W),delete this._out[G],delete this._sucs[G],--this._nodeCount}return this}setParent(G,U){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(U===void 0)U=M;else{U+="";for(var W=U;W!==void 0;W=this.parent(W))if(W===G)throw new Error("Setting "+U+" as parent of "+G+" would create a cycle");this.setNode(U)}return this.setNode(G),this._removeFromParentsChildList(G),this._parent[G]=U,this._children[U][G]=!0,this}_removeFromParentsChildList(G){delete this._children[this._parent[G]][G]}parent(G){if(this._isCompound){var U=this._parent[G];if(U!==M)return U}}children(G=M){if(this._isCompound){var U=this._children[G];if(U)return Object.keys(U)}else{if(G===M)return this.nodes();if(this.hasNode(G))return[]}}predecessors(G){var U=this._preds[G];if(U)return Object.keys(U)}successors(G){var U=this._sucs[G];if(U)return Object.keys(U)}neighbors(G){var U=this.predecessors(G);if(U){let J=new Set(U);for(var W of this.successors(G))J.add(W);return Array.from(J.values())}}isLeaf(G){var U;return this.isDirected()?U=this.successors(G):U=this.neighbors(G),U.length===0}filterNodes(G){var U=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});U.setGraph(this.graph());var W=this;Object.entries(this._nodes).forEach(function([ee,ce]){G(ee)&&U.setNode(ee,ce)}),Object.values(this._edgeObjs).forEach(function(ee){U.hasNode(ee.v)&&U.hasNode(ee.w)&&U.setEdge(ee,W.edge(ee))});var J={};function Q(ee){var ce=W.parent(ee);return ce===void 0||U.hasNode(ce)?(J[ee]=ce,ce):ce in J?J[ce]:Q(ce)}return this._isCompound&&U.nodes().forEach(ee=>U.setParent(ee,Q(ee))),U}setDefaultEdgeLabel(G){return this._defaultEdgeLabelFn=G,typeof G!="function"&&(this._defaultEdgeLabelFn=()=>G),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(G,U){var W=this,J=arguments;return G.reduce(function(Q,ee){return J.length>1?W.setEdge(Q,ee,U):W.setEdge(Q,ee),ee}),this}setEdge(){var G,U,W,J,Q=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(G=ee.v,U=ee.w,W=ee.name,arguments.length===2&&(J=arguments[1],Q=!0)):(G=ee,U=arguments[1],W=arguments[3],arguments.length>2&&(J=arguments[2],Q=!0)),G=""+G,U=""+U,W!==void 0&&(W=""+W);var ce=L(this._isDirected,G,U,W);if(Object.hasOwn(this._edgeLabels,ce))return Q&&(this._edgeLabels[ce]=J),this;if(W!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(G),this.setNode(U),this._edgeLabels[ce]=Q?J:this._defaultEdgeLabelFn(G,U,W);var fe=V(this._isDirected,G,U,W);return G=fe.v,U=fe.w,Object.freeze(fe),this._edgeObjs[ce]=fe,F(this._preds[U],G),F(this._sucs[G],U),this._in[U][ce]=fe,this._out[G][ce]=fe,this._edgeCount++,this}edge(G,U,W){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,G,U,W);return this._edgeLabels[J]}edgeAsObj(){let G=this.edge(...arguments);return typeof G!="object"?{label:G}:G}hasEdge(G,U,W){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,G,U,W);return Object.hasOwn(this._edgeLabels,J)}removeEdge(G,U,W){var J=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,G,U,W),Q=this._edgeObjs[J];return Q&&(G=Q.v,U=Q.w,delete this._edgeLabels[J],delete this._edgeObjs[J],A(this._preds[U],G),A(this._sucs[G],U),delete this._in[U][J],delete this._out[G][J],this._edgeCount--),this}inEdges(G,U){return this.isDirected()?this.filterEdges(this._in[G],G,U):this.nodeEdges(G,U)}outEdges(G,U){return this.isDirected()?this.filterEdges(this._out[G],G,U):this.nodeEdges(G,U)}nodeEdges(G,U){if(G in this._nodes)return this.filterEdges({...this._in[G],...this._out[G]},G,U)}filterEdges(G,U,W){if(G){var J=Object.values(G);return W?J.filter(function(Q){return Q.v===U&&Q.w===W||Q.v===W&&Q.w===U}):J}}};function F(G,U){G[U]?G[U]++:G[U]=1}function A(G,U){--G[U]||delete G[U]}function L(G,U,W,J){var Q=""+U,ee=""+W;if(!G&&Q>ee){var ce=Q;Q=ee,ee=ce}return Q+B+ee+B+(J===void 0?$:J)}function V(G,U,W,J){var Q=""+U,ee=""+W;if(!G&&Q>ee){var ce=Q;Q=ee,ee=ce}var fe={v:Q,w:ee};return J&&(fe.name=J),fe}function D(G,U){return L(G,U.v,U.w,U.name)}C.exports=X}),d=s((Y,C)=>{C.exports="3.0.2"}),h=s((Y,C)=>{C.exports={Graph:c(),version:d()}}),f=s((Y,C)=>{var $=c();C.exports={write:M,read:F};function M(A){var L={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:B(A),edges:X(A)};return A.graph()!==void 0&&(L.value=structuredClone(A.graph())),L}function B(A){return A.nodes().map(function(L){var V=A.node(L),D=A.parent(L),G={v:L};return V!==void 0&&(G.value=V),D!==void 0&&(G.parent=D),G})}function X(A){return A.edges().map(function(L){var V=A.edge(L),D={v:L.v,w:L.w};return L.name!==void 0&&(D.name=L.name),V!==void 0&&(D.value=V),D})}function F(A){var L=new $(A.options).setGraph(A.value);return A.nodes.forEach(function(V){L.setNode(V.v,V.value),V.parent&&L.setParent(V.v,V.parent)}),A.edges.forEach(function(V){L.setEdge({v:V.v,w:V.w,name:V.name},V.value)}),L}}),m=s((Y,C)=>{C.exports=M;var $=()=>1;function M(X,F,A,L){return B(X,String(F),A||$,L||function(V){return X.outEdges(V)})}function B(X,F,A,L){var V={},D=!0,G=0,U=X.nodes(),W=function(ce){var fe=A(ce);V[ce.v].distance+fe{C.exports=$;function $(M){var B={},X=[],F;function A(L){Object.hasOwn(B,L)||(B[L]=!0,F.push(L),M.successors(L).forEach(A),M.predecessors(L).forEach(A))}return M.nodes().forEach(function(L){F=[],A(L),F.length&&X.push(F)}),X}}),y=s((Y,C)=>{var $=class{constructor(){l(this,"_arr",[]),l(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(M){return M.key})}has(M){return Object.hasOwn(this._keyIndices,M)}priority(M){var B=this._keyIndices[M];if(B!==void 0)return this._arr[B].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(M,B){var X=this._keyIndices;if(M=String(M),!Object.hasOwn(X,M)){var F=this._arr,A=F.length;return X[M]=A,F.push({key:M,priority:B}),this._decrease(A),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var M=this._arr.pop();return delete this._keyIndices[M.key],this._heapify(0),M.key}decrease(M,B){var X=this._keyIndices[M];if(B>this._arr[X].priority)throw new Error("New priority is greater than current priority. Key: "+M+" Old: "+this._arr[X].priority+" New: "+B);this._arr[X].priority=B,this._decrease(X)}_heapify(M){var B=this._arr,X=2*M,F=X+1,A=M;X>1,!(B[F].priority{var $=y();C.exports=B;var M=()=>1;function B(F,A,L,V){var D=function(G){return F.outEdges(G)};return X(F,String(A),L||M,V||D)}function X(F,A,L,V){var D={},G=new $,U,W,J=function(Q){var ee=Q.v!==U?Q.v:Q.w,ce=D[ee],fe=L(Q),be=W.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+Q+" Weight: "+fe);be0&&(U=G.removeMin(),W=D[U],W.distance!==Number.POSITIVE_INFINITY);)V(U).forEach(J);return D}}),_=s((Y,C)=>{var $=x();C.exports=M;function M(B,X,F){return B.nodes().reduce(function(A,L){return A[L]=$(B,L,X,F),A},{})}}),N=s((Y,C)=>{C.exports=$;function $(B,X,F){if(B[X].predecessor!==void 0)throw new Error("Invalid source vertex");if(B[F].predecessor===void 0&&F!==X)throw new Error("Invalid destination vertex");return{weight:B[F].distance,path:M(B,X,F)}}function M(B,X,F){for(var A=[],L=F;L!==X;)A.push(L),L=B[L].predecessor;return A.push(X),A.reverse()}}),S=s((Y,C)=>{C.exports=$;function $(M){var B=0,X=[],F={},A=[];function L(V){var D=F[V]={onStack:!0,lowlink:B,index:B++};if(X.push(V),M.successors(V).forEach(function(W){Object.hasOwn(F,W)?F[W].onStack&&(D.lowlink=Math.min(D.lowlink,F[W].index)):(L(W),D.lowlink=Math.min(D.lowlink,F[W].lowlink))}),D.lowlink===D.index){var G=[],U;do U=X.pop(),F[U].onStack=!1,G.push(U);while(V!==U);A.push(G)}}return M.nodes().forEach(function(V){Object.hasOwn(F,V)||L(V)}),A}}),w=s((Y,C)=>{var $=S();C.exports=M;function M(B){return $(B).filter(function(X){return X.length>1||X.length===1&&B.hasEdge(X[0],X[0])})}}),k=s((Y,C)=>{C.exports=M;var $=()=>1;function M(X,F,A){return B(X,F||$,A||function(L){return X.outEdges(L)})}function B(X,F,A){var L={},V=X.nodes();return V.forEach(function(D){L[D]={},L[D][D]={distance:0},V.forEach(function(G){D!==G&&(L[D][G]={distance:Number.POSITIVE_INFINITY})}),A(D).forEach(function(G){var U=G.v===D?G.w:G.v,W=F(G);L[D][U]={distance:W,predecessor:D}})}),V.forEach(function(D){var G=L[D];V.forEach(function(U){var W=L[U];V.forEach(function(J){var Q=W[D],ee=G[J],ce=W[J],fe=Q.distance+ee.distance;fe{function $(B){var X={},F={},A=[];function L(V){if(Object.hasOwn(F,V))throw new M;Object.hasOwn(X,V)||(F[V]=!0,X[V]=!0,B.predecessors(V).forEach(L),delete F[V],A.push(V))}if(B.sinks().forEach(L),Object.keys(X).length!==B.nodeCount())throw new M;return A}var M=class extends Error{constructor(){super(...arguments)}};C.exports=$,$.CycleException=M}),O=s((Y,C)=>{var $=E();C.exports=M;function M(B){try{$(B)}catch(X){if(X instanceof $.CycleException)return!1;throw X}return!0}}),I=s((Y,C)=>{C.exports=$;function $(B,X,F,A,L){Array.isArray(X)||(X=[X]);var V=(B.isDirected()?B.successors:B.neighbors).bind(B),D={};return X.forEach(function(G){if(!B.hasNode(G))throw new Error("Graph does not have node: "+G);L=M(B,G,F==="post",D,V,A,L)}),L}function M(B,X,F,A,L,V,D){return Object.hasOwn(A,X)||(A[X]=!0,F||(D=V(D,X)),L(X).forEach(function(G){D=M(B,G,F,A,L,V,D)}),F&&(D=V(D,X))),D}}),R=s((Y,C)=>{var $=I();C.exports=M;function M(B,X,F){return $(B,X,F,function(A,L){return A.push(L),A},[])}}),H=s((Y,C)=>{var $=R();C.exports=M;function M(B,X){return $(B,X,"post")}}),j=s((Y,C)=>{var $=R();C.exports=M;function M(B,X){return $(B,X,"pre")}}),Z=s((Y,C)=>{var $=c(),M=y();C.exports=B;function B(X,F){var A=new $,L={},V=new M,D;function G(W){var J=W.v===D?W.w:W.v,Q=V.priority(J);if(Q!==void 0){var ee=F(W);ee0;){if(D=V.removeMin(),Object.hasOwn(L,D))A.setEdge(D,L[D]);else{if(U)throw new Error("Input graph is not connected: "+X);U=!0}X.nodeEdges(D).forEach(G)}return A}}),z=s((Y,C)=>{var $=x(),M=m();C.exports=B;function B(F,A,L,V){return X(F,A,L,V||function(D){return F.outEdges(D)})}function X(F,A,L,V){if(L===void 0)return $(F,A,L,V);for(var D=!1,G=F.nodes(),U=0;U{C.exports={bellmanFord:m(),components:p(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:k(),isAcyclic:O(),postorder:H(),preorder:j(),prim:Z(),shortestPaths:z(),reduce:I(),tarjan:S(),topsort:E()}}),K=h();t.exports={Graph:K.Graph,json:f(),alg:q(),version:K.version}}),UB=vt((e,t)=>{var i=class{constructor(){let l={};l._next=l._prev=l,this._sentinel=l}dequeue(){let l=this._sentinel,c=l._prev;if(c!==l)return a(c),c}enqueue(l){let c=this._sentinel;l._prev&&l._next&&a(l),l._next=c._next,c._next._prev=l,c._next=l,l._prev=c}toString(){let l=[],c=this._sentinel,d=c._prev;for(;d!==c;)l.push(JSON.stringify(d,s)),d=d._prev;return"["+l.join(", ")+"]"}};function a(l){l._prev._next=l._next,l._next._prev=l._prev,delete l._next,delete l._prev}function s(l,c){if(l!=="_next"&&l!=="_prev")return c}t.exports=i}),HB=vt((e,t)=>{var i=Ri().Graph,a=UB();t.exports=l;var s=()=>1;function l(p,y){if(p.nodeCount()<=1)return[];let x=h(p,y||s);return c(x.graph,x.buckets,x.zeroIdx).flatMap(_=>p.outEdges(_.v,_.w))}function c(p,y,x){let _=[],N=y[y.length-1],S=y[0],w;for(;p.nodeCount();){for(;w=S.dequeue();)d(p,y,x,w);for(;w=N.dequeue();)d(p,y,x,w);if(p.nodeCount()){for(let k=y.length-2;k>0;--k)if(w=y[k].dequeue(),w){_=_.concat(d(p,y,x,w,!0));break}}}return _}function d(p,y,x,_,N){let S=N?[]:void 0;return p.inEdges(_.v).forEach(w=>{let k=p.edge(w),E=p.node(w.v);N&&S.push({v:w.v,w:w.w}),E.out-=k,f(y,x,E)}),p.outEdges(_.v).forEach(w=>{let k=p.edge(w),E=w.w,O=p.node(E);O.in-=k,f(y,x,O)}),p.removeNode(_.v),S}function h(p,y){let x=new i,_=0,N=0;p.nodes().forEach(k=>{x.setNode(k,{v:k,in:0,out:0})}),p.edges().forEach(k=>{let E=x.edge(k.v,k.w)||0,O=y(k),I=E+O;x.setEdge(k.v,k.w,I),N=Math.max(N,x.node(k.v).out+=O),_=Math.max(_,x.node(k.w).in+=O)});let S=m(N+_+3).map(()=>new a),w=_+1;return x.nodes().forEach(k=>{f(S,w,x.node(k))}),{graph:x,buckets:S,zeroIdx:w}}function f(p,y,x){x.out?x.in?p[x.out-x.in+y].enqueue(x):p[p.length-1].enqueue(x):p[0].enqueue(x)}function m(p){let y=[];for(let x=0;x{var i=Ri().Graph;t.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:l,buildLayerMatrix:f,intersectRect:h,mapValues:j,maxRank:S,normalizeRanks:m,notime:E,partition:w,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:p,simplify:s,successorWeights:c,time:k,uniqueId:I,zipObject:Z};function a(z,q,K,Y){for(var C=Y;z.hasNode(C);)C=I(Y);return K.dummy=q,z.setNode(C,K),C}function s(z){let q=new i().setGraph(z.graph());return z.nodes().forEach(K=>q.setNode(K,z.node(K))),z.edges().forEach(K=>{let Y=q.edge(K.v,K.w)||{weight:0,minlen:1},C=z.edge(K);q.setEdge(K.v,K.w,{weight:Y.weight+C.weight,minlen:Math.max(Y.minlen,C.minlen)})}),q}function l(z){let q=new i({multigraph:z.isMultigraph()}).setGraph(z.graph());return z.nodes().forEach(K=>{z.children(K).length||q.setNode(K,z.node(K))}),z.edges().forEach(K=>{q.setEdge(K,z.edge(K))}),q}function c(z){let q=z.nodes().map(K=>{let Y={};return z.outEdges(K).forEach(C=>{Y[C.w]=(Y[C.w]||0)+z.edge(C).weight}),Y});return Z(z.nodes(),q)}function d(z){let q=z.nodes().map(K=>{let Y={};return z.inEdges(K).forEach(C=>{Y[C.v]=(Y[C.v]||0)+z.edge(C).weight}),Y});return Z(z.nodes(),q)}function h(z,q){let K=z.x,Y=z.y,C=q.x-K,$=q.y-Y,M=z.width/2,B=z.height/2;if(!C&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let X,F;return Math.abs($)*M>Math.abs(C)*B?($<0&&(B=-B),X=B*C/$,F=B):(C<0&&(M=-M),X=M,F=M*$/C),{x:K+X,y:Y+F}}function f(z){let q=R(S(z)+1).map(()=>[]);return z.nodes().forEach(K=>{let Y=z.node(K),C=Y.rank;C!==void 0&&(q[C][Y.order]=K)}),q}function m(z){let q=z.nodes().map(Y=>{let C=z.node(Y).rank;return C===void 0?Number.MAX_VALUE:C}),K=N(Math.min,q);z.nodes().forEach(Y=>{let C=z.node(Y);Object.hasOwn(C,"rank")&&(C.rank-=K)})}function p(z){let q=z.nodes().map(M=>z.node(M).rank).filter(M=>M!==void 0),K=N(Math.min,q),Y=[];z.nodes().forEach(M=>{let B=z.node(M).rank-K;Y[B]||(Y[B]=[]),Y[B].push(M)});let C=0,$=z.graph().nodeRankFactor;Array.from(Y).forEach((M,B)=>{M===void 0&&B%$!==0?--C:M!==void 0&&C&&M.forEach(X=>z.node(X).rank+=C)})}function y(z,q,K,Y){let C={width:0,height:0};return arguments.length>=4&&(C.rank=K,C.order=Y),a(z,"border",C,q)}function x(z,q=_){let K=[];for(let Y=0;Y_){let K=x(q);return z.apply(null,K.map(Y=>z.apply(null,Y)))}else return z.apply(null,q)}function S(z){let q=z.nodes().map(K=>{let Y=z.node(K).rank;return Y===void 0?Number.MIN_VALUE:Y});return N(Math.max,q)}function w(z,q){let K={lhs:[],rhs:[]};return z.forEach(Y=>{q(Y)?K.lhs.push(Y):K.rhs.push(Y)}),K}function k(z,q){let K=Date.now();try{return q()}finally{console.log(z+" time: "+(Date.now()-K)+"ms")}}function E(z,q){return q()}var O=0;function I(z){var q=++O;return z+(""+q)}function R(z,q,K=1){q==null&&(q=z,z=0);let Y=$=>$q<$);let C=[];for(let $=z;Y($);$+=K)C.push($);return C}function H(z,q){let K={};for(let Y of q)z[Y]!==void 0&&(K[Y]=z[Y]);return K}function j(z,q){let K=q;return typeof q=="string"&&(K=Y=>Y[q]),Object.entries(z).reduce((Y,[C,$])=>(Y[C]=K($,C),Y),{})}function Z(z,q){return z.reduce((K,Y,C)=>(K[Y]=q[C],K),{})}}),$B=vt((e,t)=>{var i=HB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,h(d)):l(d)).forEach(f=>{let m=d.edge(f);d.removeEdge(f),m.forwardName=f.name,m.reversed=!0,d.setEdge(f.w,f.v,m,a("rev"))});function h(f){return m=>f.edge(m).weight}}function l(d){let h=[],f={},m={};function p(y){Object.hasOwn(m,y)||(m[y]=!0,f[y]=!0,d.outEdges(y).forEach(x=>{Object.hasOwn(f,x.w)?h.push(x):p(x.w)}),delete f[y])}return d.nodes().forEach(p),h}function c(d){d.edges().forEach(h=>{let f=d.edge(h);if(f.reversed){d.removeEdge(h);let m=f.forwardName;delete f.reversed,delete f.forwardName,d.setEdge(h.w,h.v,f,m)}})}}),qB=vt((e,t)=>{var i=sn();t.exports={run:a,undo:l};function a(c){c.graph().dummyChains=[],c.edges().forEach(d=>s(c,d))}function s(c,d){let h=d.v,f=c.node(h).rank,m=d.w,p=c.node(m).rank,y=d.name,x=c.edge(d),_=x.labelRank;if(p===f+1)return;c.removeEdge(d);let N,S,w;for(w=0,++f;f{let h=c.node(d),f=h.edgeLabel,m;for(c.setEdge(h.edgeObj,f);h.dummy;)m=c.successors(d)[0],c.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=m,h=c.node(d)})}}),ku=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(l){var c={};function d(h){var f=l.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let m=l.outEdges(h).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-l.edge(y).minlen);var p=i(Math.min,m);return p===Number.POSITIVE_INFINITY&&(p=0),f.rank=p}l.sources().forEach(d)}function s(l,c){return l.node(c.w).rank-l.node(c.v).rank-l.edge(c).minlen}}),MN=vt((e,t)=>{var i=Ri().Graph,a=ku().slack;t.exports=s;function s(h){var f=new i({directed:!1}),m=h.nodes()[0],p=h.nodeCount();f.setNode(m,{});for(var y,x;l(f,h){var x=y.v,_=p===x?y.w:x;!h.hasNode(_)&&!a(f,y)&&(h.setNode(_,{}),h.setEdge(p,_,{}),m(_))})}return h.nodes().forEach(m),h.nodeCount()}function c(h,f){return f.edges().reduce((m,p)=>{let y=Number.POSITIVE_INFINITY;return h.hasNode(p.v)!==h.hasNode(p.w)&&(y=a(f,p)),yf.node(p).rank+=m)}}),PB=vt((e,t)=>{var i=MN(),a=ku().slack,s=ku().longestPath,l=Ri().alg.preorder,c=Ri().alg.postorder,d=sn().simplify;t.exports=h,h.initLowLimValues=y,h.initCutValues=f,h.calcCutValue=p,h.leaveEdge=_,h.enterEdge=N,h.exchangeEdges=S;function h(O){O=d(O),s(O);var I=i(O);y(I),f(I,O);for(var R,H;R=_(I);)H=N(I,O,R),S(I,O,R,H)}function f(O,I){var R=c(O,O.nodes());R=R.slice(0,R.length-1),R.forEach(H=>m(O,I,H))}function m(O,I,R){var H=O.node(R),j=H.parent;O.edge(R,j).cutvalue=p(O,I,R)}function p(O,I,R){var H=O.node(R),j=H.parent,Z=!0,z=I.edge(R,j),q=0;return z||(Z=!1,z=I.edge(j,R)),q=z.weight,I.nodeEdges(R).forEach(K=>{var Y=K.v===R,C=Y?K.w:K.v;if(C!==j){var $=Y===Z,M=I.edge(K).weight;if(q+=$?M:-M,k(O,R,C)){var B=O.edge(R,C).cutvalue;q+=$?-B:B}}}),q}function y(O,I){arguments.length<2&&(I=O.nodes()[0]),x(O,{},1,I)}function x(O,I,R,H,j){var Z=R,z=O.node(H);return I[H]=!0,O.neighbors(H).forEach(q=>{Object.hasOwn(I,q)||(R=x(O,I,R,q,H))}),z.low=Z,z.lim=R++,j?z.parent=j:delete z.parent,R}function _(O){return O.edges().find(I=>O.edge(I).cutvalue<0)}function N(O,I,R){var H=R.v,j=R.w;I.hasEdge(H,j)||(H=R.w,j=R.v);var Z=O.node(H),z=O.node(j),q=Z,K=!1;Z.lim>z.lim&&(q=z,K=!0);var Y=I.edges().filter(C=>K===E(O,O.node(C.v),q)&&K!==E(O,O.node(C.w),q));return Y.reduce((C,$)=>a(I,$)!I.node(j).parent),H=l(O,R);H=H.slice(1),H.forEach(j=>{var Z=O.node(j).parent,z=I.edge(j,Z),q=!1;z||(z=I.edge(Z,j),q=!0),I.node(j).rank=I.node(Z).rank+(q?z.minlen:-z.minlen)})}function k(O,I,R){return O.hasEdge(I,R)}function E(O,I,R){return R.low<=I.lim&&I.lim<=R.lim}}),FB=vt((e,t)=>{var i=ku(),a=i.longestPath,s=MN(),l=PB();t.exports=c;function c(m){var p=m.graph().ranker;if(p instanceof Function)return p(m);switch(m.graph().ranker){case"network-simplex":f(m);break;case"tight-tree":h(m);break;case"longest-path":d(m);break;case"none":break;default:f(m)}}var d=a;function h(m){a(m),s(m)}function f(m){l(m)}}),GB=vt((e,t)=>{t.exports=i;function i(l){let c=s(l);l.graph().dummyChains.forEach(d=>{let h=l.node(d),f=h.edgeObj,m=a(l,c,f.v,f.w),p=m.path,y=m.lca,x=0,_=p[x],N=!0;for(;d!==f.w;){if(h=l.node(d),N){for(;(_=p[x])!==y&&l.node(_).maxRankp||y>c[x].lim));for(_=x,x=h;(x=l.parent(x))!==_;)m.push(x);return{path:f.concat(m.reverse()),lca:_}}function s(l){let c={},d=0;function h(f){let m=d;l.children(f).forEach(h),c[f]={low:m,lim:d++}}return l.children().forEach(h),c}}),VB=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(h){let f=i.addDummyNode(h,"root",{},"_root"),m=l(h),p=Object.values(m),y=i.applyWithChunking(Math.max,p)-1,x=2*y+1;h.graph().nestingRoot=f,h.edges().forEach(N=>h.edge(N).minlen*=x);let _=c(h)+1;h.children().forEach(N=>s(h,f,x,_,y,m,N)),h.graph().nodeRankFactor=x}function s(h,f,m,p,y,x,_){let N=h.children(_);if(!N.length){_!==f&&h.setEdge(f,_,{weight:0,minlen:m});return}let S=i.addBorderNode(h,"_bt"),w=i.addBorderNode(h,"_bb"),k=h.node(_);h.setParent(S,_),k.borderTop=S,h.setParent(w,_),k.borderBottom=w,N.forEach(E=>{s(h,f,m,p,y,x,E);let O=h.node(E),I=O.borderTop?O.borderTop:E,R=O.borderBottom?O.borderBottom:E,H=O.borderTop?p:2*p,j=I!==R?1:y-x[_]+1;h.setEdge(S,I,{weight:H,minlen:j,nestingEdge:!0}),h.setEdge(R,w,{weight:H,minlen:j,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:y+x[_]})}function l(h){var f={};function m(p,y){var x=h.children(p);x&&x.length&&x.forEach(_=>m(_,y+1)),f[p]=y}return h.children().forEach(p=>m(p,1)),f}function c(h){return h.edges().reduce((f,m)=>f+h.edge(m).weight,0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,h.edges().forEach(m=>{var p=h.edge(m);p.nestingEdge&&h.removeEdge(m)})}}),YB=vt((e,t)=>{var i=sn();t.exports=a;function a(l){function c(d){let h=l.children(d),f=l.node(d);if(h.length&&h.forEach(c),Object.hasOwn(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(let m=f.minRank,p=f.maxRank+1;m{t.exports={adjust:i,undo:a};function i(m){let p=m.graph().rankdir.toLowerCase();(p==="lr"||p==="rl")&&s(m)}function a(m){let p=m.graph().rankdir.toLowerCase();(p==="bt"||p==="rl")&&c(m),(p==="lr"||p==="rl")&&(h(m),s(m))}function s(m){m.nodes().forEach(p=>l(m.node(p))),m.edges().forEach(p=>l(m.edge(p)))}function l(m){let p=m.width;m.width=m.height,m.height=p}function c(m){m.nodes().forEach(p=>d(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(d),Object.hasOwn(y,"y")&&d(y)})}function d(m){m.y=-m.y}function h(m){m.nodes().forEach(p=>f(m.node(p))),m.edges().forEach(p=>{let y=m.edge(p);y.points.forEach(f),Object.hasOwn(y,"x")&&f(y)})}function f(m){let p=m.x;m.x=m.y,m.y=p}}),KB=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let l={},c=s.nodes().filter(p=>!s.children(p).length),d=c.map(p=>s.node(p).rank),h=i.applyWithChunking(Math.max,d),f=i.range(h+1).map(()=>[]);function m(p){if(l[p])return;l[p]=!0;let y=s.node(p);f[y.rank].push(p),s.successors(p).forEach(m)}return c.sort((p,y)=>s.node(p).rank-s.node(y).rank).forEach(m),f}}),ZB=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(l,c){let d=0;for(let h=1;hN)),f=c.flatMap(_=>l.outEdges(_).map(N=>({pos:h[N.w],weight:l.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),m=1;for(;m{let N=_.pos+m;y[N]+=_.weight;let S=0;for(;N>0;)N%2&&(S+=y[N+1]),N=N-1>>1,y[N]+=_.weight;x+=_.weight*S}),x}}),QB=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(l=>{let c=a.inEdges(l);if(c.length){let d=c.reduce((h,f)=>{let m=a.edge(f),p=a.node(f.v);return{sum:h.sum+m.weight*p.order,weight:h.weight+m.weight}},{sum:0,weight:0});return{v:l,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:l}})}}),WB=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let h={};c.forEach((m,p)=>{let y=h[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};m.barycenter!==void 0&&(y.barycenter=m.barycenter,y.weight=m.weight)}),d.edges().forEach(m=>{let p=h[m.v],y=h[m.w];p!==void 0&&y!==void 0&&(y.indegree++,p.out.push(h[m.w]))});let f=Object.values(h).filter(m=>!m.indegree);return s(f)}function s(c){let d=[];function h(m){return p=>{p.merged||(p.barycenter===void 0||m.barycenter===void 0||p.barycenter>=m.barycenter)&&l(m,p)}}function f(m){return p=>{p.in.push(m),--p.indegree===0&&c.push(p)}}for(;c.length;){let m=c.pop();d.push(m),m.in.reverse().forEach(h(m)),m.out.forEach(f(m))}return d.filter(m=>!m.merged).map(m=>i.pick(m,["vs","i","barycenter","weight"]))}function l(c,d){let h=0,f=0;c.weight&&(h+=c.barycenter*c.weight,f+=c.weight),d.weight&&(h+=d.barycenter*d.weight,f+=d.weight),c.vs=d.vs.concat(c.vs),c.barycenter=h/f,c.weight=f,c.i=Math.min(d.i,c.i),d.merged=!0}}),JB=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let h=i.partition(c,S=>Object.hasOwn(S,"barycenter")),f=h.lhs,m=h.rhs.sort((S,w)=>w.i-S.i),p=[],y=0,x=0,_=0;f.sort(l(!!d)),_=s(p,m,_),f.forEach(S=>{_+=S.vs.length,p.push(S.vs),y+=S.barycenter*S.weight,x+=S.weight,_=s(p,m,_)});let N={vs:p.flat(!0)};return x&&(N.barycenter=y/x,N.weight=x),N}function s(c,d,h){let f;for(;d.length&&(f=d[d.length-1]).i<=h;)d.pop(),c.push(f.vs),h++;return h}function l(c){return(d,h)=>d.barycenterh.barycenter?1:c?h.i-d.i:d.i-h.i}}),e9=vt((e,t)=>{var i=QB(),a=WB(),s=JB();t.exports=l;function l(h,f,m,p){let y=h.children(f),x=h.node(f),_=x?x.borderLeft:void 0,N=x?x.borderRight:void 0,S={};_&&(y=y.filter(O=>O!==_&&O!==N));let w=i(h,y);w.forEach(O=>{if(h.children(O.v).length){let I=l(h,O.v,m,p);S[O.v]=I,Object.hasOwn(I,"barycenter")&&d(O,I)}});let k=a(w,m);c(k,S);let E=s(k,p);if(_&&(E.vs=[_,E.vs,N].flat(!0),h.predecessors(_).length)){let O=h.node(h.predecessors(_)[0]),I=h.node(h.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+O.order+I.order)/(E.weight+2),E.weight+=2}return E}function c(h,f){h.forEach(m=>{m.vs=m.vs.flatMap(p=>f[p]?f[p].vs:p)})}function d(h,f){h.barycenter!==void 0?(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight):(h.barycenter=f.barycenter,h.weight=f.weight)}}),t9=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let m=l(c),p=new i({compound:!0}).setGraph({root:m}).setDefaultNodeLabel(y=>c.node(y));return f.forEach(y=>{let x=c.node(y),_=c.parent(y);(x.rank===d||x.minRank<=d&&d<=x.maxRank)&&(p.setNode(y),p.setParent(y,_||m),c[h](y).forEach(N=>{let S=N.v===y?N.w:N.v,w=p.edge(S,y),k=w!==void 0?w.weight:0;p.setEdge(S,y,{weight:c.edge(N).weight+k})}),Object.hasOwn(x,"minRank")&&p.setNode(y,{borderLeft:x.borderLeft[d],borderRight:x.borderRight[d]}))}),p}function l(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),n9=vt((e,t)=>{t.exports=i;function i(a,s,l){let c={},d;l.forEach(h=>{let f=a.parent(h),m,p;for(;f;){if(m=a.parent(f),m?(p=c[m],c[m]=f):(p=d,d=f),p&&p!==f){s.setEdge(p,f);return}f=m}})}}),i9=vt((e,t)=>{var i=KB(),a=ZB(),s=e9(),l=t9(),c=n9(),d=Ri().Graph,h=sn();t.exports=f;function f(x,_={}){if(typeof _.customOrder=="function"){_.customOrder(x,f);return}let N=h.maxRank(x),S=m(x,h.range(1,N+1),"inEdges"),w=m(x,h.range(N-1,-1,-1),"outEdges"),k=i(x);if(y(x,k),_.disableOptimalOrderHeuristic)return;let E=Number.POSITIVE_INFINITY,O,I=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){p(R%2?S:w,R%4>=2,I),k=h.buildLayerMatrix(x);let j=a(x,k);j{S.has(k)||S.set(k,[]),S.get(k).push(E)};for(let k of x.nodes()){let E=x.node(k);if(typeof E.rank=="number"&&w(E.rank,k),typeof E.minRank=="number"&&typeof E.maxRank=="number")for(let O=E.minRank;O<=E.maxRank;O++)O!==E.rank&&w(O,k)}return _.map(function(k){return l(x,k,N,S.get(k)||[])})}function p(x,_,N){let S=new d;x.forEach(function(w){N.forEach(O=>S.setEdge(O.left,O.right));let k=w.graph().root,E=s(w,k,S,_);E.vs.forEach((O,I)=>w.node(O).order=I),c(w,S,E.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,w)=>x.node(S).order=w))}}),r9=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:l,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:m,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,E){let O={};function I(R,H){let j=0,Z=0,z=R.length,q=H[H.length-1];return H.forEach((K,Y)=>{let C=c(k,K),$=C?k.node(C).order:z;(C||K===q)&&(H.slice(Z,Y+1).forEach(M=>{k.predecessors(M).forEach(B=>{let X=k.node(B),F=X.order;(F{K=H[Y],k.node(K).dummy&&k.predecessors(K).forEach(C=>{let $=k.node(C);$.dummy&&($.orderq)&&d(O,C,K)})})}function R(H,j){let Z=-1,z,q=0;return j.forEach((K,Y)=>{if(k.node(K).dummy==="border"){let C=k.predecessors(K);C.length&&(z=k.node(C[0]).order,I(j,q,Y,Z,z),q=Y,Z=z)}I(j,q,j.length,z,H.length)}),j}return E.length&&E.reduce(R),O}function c(k,E){if(k.node(E).dummy)return k.predecessors(E).find(O=>k.node(O).dummy)}function d(k,E,O){if(E>O){let R=E;E=O,O=R}let I=k[E];I||(k[E]=I={}),I[O]=!0}function h(k,E,O){if(E>O){let I=E;E=O,O=I}return!!k[E]&&Object.hasOwn(k[E],O)}function f(k,E,O,I){let R={},H={},j={};return E.forEach(Z=>{Z.forEach((z,q)=>{R[z]=z,H[z]=z,j[z]=q})}),E.forEach(Z=>{let z=-1;Z.forEach(q=>{let K=I(q);if(K.length){K=K.sort((C,$)=>j[C]-j[$]);let Y=(K.length-1)/2;for(let C=Math.floor(Y),$=Math.ceil(Y);C<=$;++C){let M=K[C];H[q]===q&&zMath.max(C,H[$.v]+j.edge($)),0)}function K(Y){let C=j.outEdges(Y).reduce((M,B)=>Math.min(M,H[B.w]-j.edge(B)),Number.POSITIVE_INFINITY),$=k.node(Y);C!==Number.POSITIVE_INFINITY&&$.borderType!==Z&&(H[Y]=Math.max(H[Y],C))}return z(q,j.predecessors.bind(j)),z(K,j.successors.bind(j)),Object.keys(I).forEach(Y=>H[Y]=H[O[Y]]),H}function p(k,E,O,I){let R=new i,H=k.graph(),j=S(H.nodesep,H.edgesep,I);return E.forEach(Z=>{let z;Z.forEach(q=>{let K=O[q];if(R.setNode(K),z){var Y=O[z],C=R.edge(Y,K);R.setEdge(Y,K,Math.max(j(k,q,z),C||0))}z=q})}),R}function y(k,E){return Object.values(E).reduce((O,I)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(I).forEach(([Z,z])=>{let q=w(k,Z)/2;R=Math.max(z+q,R),H=Math.min(z-q,H)});let j=R-H;return j{["l","r"].forEach(j=>{let Z=H+j,z=k[Z];if(z===E)return;let q=Object.values(z),K=I-a.applyWithChunking(Math.min,q);j!=="l"&&(K=R-a.applyWithChunking(Math.max,q)),K&&(k[Z]=a.mapValues(z,Y=>Y+K))})})}function _(k,E){return a.mapValues(k.ul,(O,I)=>{if(E)return k[E.toLowerCase()][I];{let R=Object.values(k).map(H=>H[I]).sort((H,j)=>H-j);return(R[1]+R[2])/2}})}function N(k){let E=a.buildLayerMatrix(k),O=Object.assign(s(k,E),l(k,E)),I={},R;["u","d"].forEach(j=>{R=j==="u"?E:Object.values(E).reverse(),["l","r"].forEach(Z=>{Z==="r"&&(R=R.map(Y=>Object.values(Y).reverse()));let z=(j==="u"?k.predecessors:k.successors).bind(k),q=f(k,R,O,z),K=m(k,R,q.root,q.align,Z==="r");Z==="r"&&(K=a.mapValues(K,Y=>-Y)),I[j+Z]=K})});let H=y(k,I);return x(I,H),_(I,k.graph().align)}function S(k,E,O){return(I,R,H)=>{let j=I.node(R),Z=I.node(H),z=0,q;if(z+=j.width/2,Object.hasOwn(j,"labelpos"))switch(j.labelpos.toLowerCase()){case"l":q=-j.width/2;break;case"r":q=j.width/2;break}if(q&&(z+=O?q:-q),q=0,z+=(j.dummy?E:k)/2,z+=(Z.dummy?E:k)/2,z+=Z.width/2,Object.hasOwn(Z,"labelpos"))switch(Z.labelpos.toLowerCase()){case"l":q=Z.width/2;break;case"r":q=-Z.width/2;break}return q&&(z+=O?q:-q),q=0,z}}function w(k,E){return k.node(E).width}}),a9=vt((e,t)=>{var i=sn(),a=r9().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),l(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function l(c){let d=i.buildLayerMatrix(c),h=c.graph().ranksep,f=c.graph().rankalign,m=0;d.forEach(p=>{let y=p.reduce((x,_)=>{let N=c.node(_).height;return x>N?x:N},0);p.forEach(x=>{let _=c.node(x);f==="top"?_.y=m+_.height/2:f==="bottom"?_.y=m+y-_.height/2:_.y=m+y/2}),m+=y+h})}}),s9=vt((e,t)=>{var i=$B(),a=qB(),s=FB(),l=sn().normalizeRanks,c=GB(),d=sn().removeEmptyRanks,h=VB(),f=YB(),m=XB(),p=i9(),y=a9(),x=sn(),_=Ri().Graph;t.exports=N;function N(U,W={}){let J=W.debugTiming?x.time:x.notime;return J("layout",()=>{let Q=J(" buildLayoutGraph",()=>z(U));return J(" runLayout",()=>S(Q,J,W)),J(" updateInputGraph",()=>w(U,Q)),Q})}function S(U,W,J){W(" makeSpaceForEdgeLabels",()=>q(U)),W(" removeSelfEdges",()=>A(U)),W(" acyclic",()=>i.run(U)),W(" nestingGraph.run",()=>h.run(U)),W(" rank",()=>s(x.asNonCompoundGraph(U))),W(" injectEdgeLabelProxies",()=>K(U)),W(" removeEmptyRanks",()=>d(U)),W(" nestingGraph.cleanup",()=>h.cleanup(U)),W(" normalizeRanks",()=>l(U)),W(" assignRankMinMax",()=>Y(U)),W(" removeEdgeLabelProxies",()=>C(U)),W(" normalize.run",()=>a.run(U)),W(" parentDummyChains",()=>c(U)),W(" addBorderSegments",()=>f(U)),W(" order",()=>p(U,J)),W(" insertSelfEdges",()=>L(U)),W(" adjustCoordinateSystem",()=>m.adjust(U)),W(" position",()=>y(U)),W(" positionSelfEdges",()=>V(U)),W(" removeBorderNodes",()=>F(U)),W(" normalize.undo",()=>a.undo(U)),W(" fixupEdgeLabelCoords",()=>B(U)),W(" undoCoordinateSystem",()=>m.undo(U)),W(" translateGraph",()=>$(U)),W(" assignNodeIntersects",()=>M(U)),W(" reversePoints",()=>X(U)),W(" acyclic.undo",()=>i.undo(U))}function w(U,W){U.nodes().forEach(J=>{let Q=U.node(J),ee=W.node(J);Q&&(Q.x=ee.x,Q.y=ee.y,Q.order=ee.order,Q.rank=ee.rank,W.children(J).length&&(Q.width=ee.width,Q.height=ee.height))}),U.edges().forEach(J=>{let Q=U.edge(J),ee=W.edge(J);Q.points=ee.points,Object.hasOwn(ee,"x")&&(Q.x=ee.x,Q.y=ee.y)}),U.graph().width=W.graph().width,U.graph().height=W.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],E={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},O=["acyclicer","ranker","rankdir","align","rankalign"],I=["width","height","rank"],R={width:0,height:0},H=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Z=["labelpos"];function z(U){let W=new _({multigraph:!0,compound:!0}),J=G(U.graph());return W.setGraph(Object.assign({},E,D(J,k),x.pick(J,O))),U.nodes().forEach(Q=>{let ee=G(U.node(Q)),ce=D(ee,I);Object.keys(R).forEach(fe=>{ce[fe]===void 0&&(ce[fe]=R[fe])}),W.setNode(Q,ce),W.setParent(Q,U.parent(Q))}),U.edges().forEach(Q=>{let ee=G(U.edge(Q));W.setEdge(Q,Object.assign({},j,D(ee,H),x.pick(ee,Z)))}),W}function q(U){let W=U.graph();W.ranksep/=2,U.edges().forEach(J=>{let Q=U.edge(J);Q.minlen*=2,Q.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Q.width+=Q.labeloffset:Q.height+=Q.labeloffset)})}function K(U){U.edges().forEach(W=>{let J=U.edge(W);if(J.width&&J.height){let Q=U.node(W.v),ee={rank:(U.node(W.w).rank-Q.rank)/2+Q.rank,e:W};x.addDummyNode(U,"edge-proxy",ee,"_ep")}})}function Y(U){let W=0;U.nodes().forEach(J=>{let Q=U.node(J);Q.borderTop&&(Q.minRank=U.node(Q.borderTop).rank,Q.maxRank=U.node(Q.borderBottom).rank,W=Math.max(W,Q.maxRank))}),U.graph().maxRank=W}function C(U){U.nodes().forEach(W=>{let J=U.node(W);J.dummy==="edge-proxy"&&(U.edge(J.e).labelRank=J.rank,U.removeNode(W))})}function $(U){let W=Number.POSITIVE_INFINITY,J=0,Q=Number.POSITIVE_INFINITY,ee=0,ce=U.graph(),fe=ce.marginx||0,be=ce.marginy||0;function we(Ne){let Le=Ne.x,$e=Ne.y,st=Ne.width,Rt=Ne.height;W=Math.min(W,Le-st/2),J=Math.max(J,Le+st/2),Q=Math.min(Q,$e-Rt/2),ee=Math.max(ee,$e+Rt/2)}U.nodes().forEach(Ne=>we(U.node(Ne))),U.edges().forEach(Ne=>{let Le=U.edge(Ne);Object.hasOwn(Le,"x")&&we(Le)}),W-=fe,Q-=be,U.nodes().forEach(Ne=>{let Le=U.node(Ne);Le.x-=W,Le.y-=Q}),U.edges().forEach(Ne=>{let Le=U.edge(Ne);Le.points.forEach($e=>{$e.x-=W,$e.y-=Q}),Object.hasOwn(Le,"x")&&(Le.x-=W),Object.hasOwn(Le,"y")&&(Le.y-=Q)}),ce.width=J-W+fe,ce.height=ee-Q+be}function M(U){U.edges().forEach(W=>{let J=U.edge(W),Q=U.node(W.v),ee=U.node(W.w),ce,fe;J.points?(ce=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],ce=ee,fe=Q),J.points.unshift(x.intersectRect(Q,ce)),J.points.push(x.intersectRect(ee,fe))})}function B(U){U.edges().forEach(W=>{let J=U.edge(W);if(Object.hasOwn(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function X(U){U.edges().forEach(W=>{let J=U.edge(W);J.reversed&&J.points.reverse()})}function F(U){U.nodes().forEach(W=>{if(U.children(W).length){let J=U.node(W),Q=U.node(J.borderTop),ee=U.node(J.borderBottom),ce=U.node(J.borderLeft[J.borderLeft.length-1]),fe=U.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-ce.x),J.height=Math.abs(ee.y-Q.y),J.x=ce.x+J.width/2,J.y=Q.y+J.height/2}}),U.nodes().forEach(W=>{U.node(W).dummy==="border"&&U.removeNode(W)})}function A(U){U.edges().forEach(W=>{if(W.v===W.w){var J=U.node(W.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:W,label:U.edge(W)}),U.removeEdge(W)}})}function L(U){var W=x.buildLayerMatrix(U);W.forEach(J=>{var Q=0;J.forEach((ee,ce)=>{var fe=U.node(ee);fe.order=ce+Q,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode(U,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:ce+ ++Q,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function V(U){U.nodes().forEach(W=>{var J=U.node(W);if(J.dummy==="selfedge"){var Q=U.node(J.e.v),ee=Q.x+Q.width/2,ce=Q.y,fe=J.x-ee,be=Q.height/2;U.setEdge(J.e,J.label),U.removeNode(W),J.label.points=[{x:ee+2*fe/3,y:ce-be},{x:ee+5*fe/6,y:ce-be},{x:ee+fe,y:ce},{x:ee+5*fe/6,y:ce+be},{x:ee+2*fe/3,y:ce+be}],J.label.x=J.x,J.label.y=J.y}})}function D(U,W){return x.mapValues(x.pick(U,W),Number)}function G(U){var W={};return U&&Object.entries(U).forEach(([J,Q])=>{typeof J=="string"&&(J=J.toLowerCase()),W[J]=Q}),W}}),o9=vt((e,t)=>{var i=sn(),a=Ri().Graph;t.exports={debugOrdering:s};function s(l){let c=i.buildLayerMatrix(l),d=new a({compound:!0,multigraph:!0}).setGraph({});return l.nodes().forEach(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+l.node(h).rank)}),l.edges().forEach(h=>d.setEdge(h.v,h.w,{},h.name)),c.forEach((h,f)=>{let m="layer"+f;d.setNode(m,{rank:"same"}),h.reduce((p,y)=>(d.setEdge(p,y,{style:"invis"}),y))}),d}}),l9=vt((e,t)=>{t.exports="2.0.4"}),c9=vt((e,t)=>{t.exports={graphlib:Ri(),layout:s9(),debug:o9(),util:{time:sn().time,notime:sn().notime},version:l9()}});const D1=c9();/*! For license information please see dagre.esm.js.LEGAL.txt */const L1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function u9({data:e,selected:t}){const i=e;return g.jsxs("div",{className:`w-[260px] rounded-lg border px-4 py-3 transition-colors ${i.isSelected||t?"border-white/30 bg-[#0a0a0a]":"border-[#222] bg-black hover:border-[#333]"}`,children:[g.jsx(Gs,{type:"target",position:je.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[g.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${L1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),g.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${L1[i.status]??"bg-gray-500"}`})]}),g.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),g.jsx(Gs,{type:"source",position:je.Bottom,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.children&&i.children.length>0?"!bg-[#444]":"!bg-transparent"}`})]})}const d9=re.memo(u9);function Ko({w:e=24}){return g.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[g.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),g.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),g.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),g.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function ks(){return g.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function z1({count:e}){return g.jsx("div",{className:"relative flex justify-center",children:g.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function f9(){return g.jsx("div",{className:"h-full bg-black overflow-hidden",children:g.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[g.jsx(Ko,{w:20}),g.jsx(ks,{}),g.jsx(z1,{count:3}),g.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(ks,{}),g.jsx(Ko,{w:e})]},t))}),g.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(ks,{}),g.jsx(z1,{count:2}),g.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(ks,{}),g.jsx(Ko,{w:e})]},t))})]}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(ks,{}),g.jsx(Ko,{w:18}),g.jsx(ks,{}),g.jsx(Ko,{w:12})]}),g.jsx("div",{className:"w-[180px]"})]})]})})}const Qm=260,Wm=80,h9={agentNode:d9};function m9(e,t){const i=new D1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[l,c]of e)if(i.setNode(l,{width:Qm,height:Wm}),a.push({id:l,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:l===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${l}`;i.setEdge(c.parentId,l),s.push({id:d,source:c.parentId,target:l,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}D1.layout(i);for(const l of a){const c=i.node(l.id);c&&(l.position={x:c.x-Qm/2,y:c.y-Wm/2})}return{nodes:a,edges:s}}const xm=300;function p9({nodes:e}){const{setCenter:t}=Tl(),i=re.useRef(!1);return re.useEffect(()=>{if(e.length>0&&!i.current){const s=e.find(d=>!d.data.parentId)??e[0];i.current=!0;const l=s.position.x+Qm/2,c=s.position.y+Wm/2;setTimeout(()=>t(l,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function g9(){const{zoomIn:e,zoomOut:t,fitView:i}=Tl();return g.jsx(_B,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:g.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[g.jsx("button",{onClick:()=>e({duration:xm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M12 5v14M5 12h14"})})}),g.jsx("button",{onClick:()=>t({duration:xm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] border-y border-[#222] transition-colors",title:"Zoom out",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M5 12h14"})})}),g.jsx("button",{onClick:()=>i({padding:.3,duration:xm}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:g.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:g.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function b9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:l}){const[c,d,h]=lB([]),[f,m,p]=cB([]);re.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=m9(e,t);d(S),m(w)},[e.size,d,m]),re.useEffect(()=>{e.size!==0&&d(S=>S.map(w=>{const k=e.get(w.id);return k?{...w,data:{...k,isSelected:w.id===t}}:w}))},[e,t,d]);const y=re.useRef(!1),x=re.useCallback((S,w)=>{y.current=!0,i(w.id)},[i]),_=re.useCallback(()=>{if(y.current){y.current=!1;return}i(null)},[i]);if(e.size===0&&a&&s)return g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[g.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:l?g.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})}):g.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),g.jsx("p",{className:"text-sm text-[#555]",children:l?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return g.jsxs("div",{className:"relative h-full",children:[g.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:g.jsx(f9,{})}),g.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:g.jsxs(oB,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:p,onNodeClick:x,onPaneClick:_,nodeTypes:h9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[g.jsx(mB,{color:"#111",gap:20}),g.jsx(p9,{nodes:c}),g.jsx(g9,{}),g.jsx(zB,{position:"bottom-left",nodeColor:S=>{var k;const w=(k=S.data)==null?void 0:k.status;return w==="running"?"#3b82f6":w==="completed"?"#10b981":w==="failed"||w==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Os({text:e,className:t=""}){return g.jsx("div",{className:`prose-markdown ${t}`,children:g.jsx(kp,{remarkPlugins:[Mp],rehypePlugins:[Op],components:Rp,children:e})})}const j1=6,I1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=re.useState(!1),l=e.trimEnd().split(` -`).length>t;return g.jsxs("div",{children:[g.jsx("div",{className:i&&l?"max-h-[1200px] overflow-auto":"",style:!i&&l?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:g.jsx(Os,{text:e})}),l&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function xr({children:e,className:t=""}){const[i,a]=re.useState(!1),l=typeof e=="string"?e.trimEnd().split(` -`):null,c=l!==null&&l.length>j1,d=c&&!i?l.slice(0,j1).join(` -`):e;return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[13px] leading-relaxed whitespace-pre-wrap break-words mt-1 ${i?"overflow-auto max-h-[1200px]":"overflow-hidden"} ${t}`,children:d}),c&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function Qp({code:e,language:t,className:i="",collapsible:a=!1}){const[s,l]=re.useState(!1),c=e.trimEnd().split(` -`),d=a&&c.length>I1,h=d&&!s?c.slice(0,I1).join(` -`):e;let f;try{f=t?Fn.highlight(h,{language:t,ignoreIllegals:!0}).value:Fn.highlightAuto(h).value}catch{f=Fn.highlightAuto(h).value}return g.jsxs("div",{children:[g.jsx("pre",{className:`font-mono text-[12px] leading-relaxed px-0 py-1 mt-1 whitespace-pre-wrap break-all ${a?s?"overflow-auto max-h-[1200px]":"overflow-hidden":"overflow-auto max-h-[400px]"} ${i}`,children:g.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),d&&g.jsx("button",{onClick:()=>l(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const x9=50,B1=200,U1=25,H1=24,y9=[/\n?\[Command still running after [\d.]+s - showing output so far\.?\s*(?:Use C-c to interrupt if needed\.)?\]/g,/^\[Below is the output of the previous command\.\]\n?/gm,/^No command is currently running\. Cannot send input\.$/gm,/^A command is already running\. Use is_input=true to send input to it, or interrupt it first \(e\.g\., with C-c\)\.$/gm],v9=/^Chunk ID: [0-9a-f]+\s*$/,_9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function w9(e){const t=[];for(let i=0;is.test(e[a]));)a++;aB1?e.slice(0,B1-3)+"...":e}function N9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of y9)i=i.replace(a,"");if(i.trim()){const a=w9(i.split(` -`)),s=[];for(const l of a)s.length===0&&!l.trim()||/^\[STRIX_\d+\]\$\s*/.test(l)||t&&l.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${E9(t.trim())}\\s*$`).test(l)||s.push(l);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(` -`)}return i.trim()}function S9(e){const t=e.split(` -`);if(t.length<=x9)return t.map(ym).join(` -`);const i=t.length-U1-H1;return[...t.slice(0,U1).map(ym),`... ${i} lines truncated ...`,...t.slice(-H1).map(ym)].join(` -`)}function k9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",l=i;let c=null,d=null,h=null;if(l&&typeof l=="object"){c=typeof l.content=="string"?l.content:null,d=typeof l.error=="string"?l.error:null,h=typeof l.exit_code=="number"?l.exit_code:null;const m=typeof l.status=="string"?l.status:"";(m==="running"||m==="command still running")&&(c=null)}else typeof l=="string"&&(c=l);const f=c?S9(N9(c,s)):null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&g.jsx(Qp,{code:s,language:"bash",collapsible:!0}),d&&g.jsx(xr,{className:"text-red-400/70",children:d}),f&&g.jsx(xr,{className:"text-[#666]",children:f}),h!=null&&h!==0&&g.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const $1={back:"going back in browser history",forward:"going forward in browser history",scroll_down:"scrolling down",scroll_up:"scrolling up",refresh:"refreshing",close_tab:"closing tab",switch_tab:"switching tab",list_tabs:"listing tabs",view_source:"viewing page source",get_console_logs:"getting console logs",screenshot:"taking screenshot",wait:"waiting...",close:"closing"},q1={click:"clicking",double_click:"double clicking",hover:"hovering"};function vm({prefix:e,url:t,suffix:i}){return g.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&g.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),i]})}function T9(e){const t=e.action??"",i=e.url??void 0;if(t in $1)return $1[t];if(t==="launch")return i?g.jsx(vm,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return g.jsx(vm,{prefix:"navigating to ",url:i});if(t==="new_tab")return g.jsx(vm,{prefix:"opening tab ",url:i});if(t in q1)return q1[t];if(t==="type")return`typing "${(e.text??"").slice(0,40)}"`;if(t==="press_key"||t==="key_press")return`pressing key ${e.key??""}`;if(t==="save_pdf"||t==="save_as_pdf"){const a=e.file_path??"";return`saving PDF${a?` to ${a}`:""}`}return t==="execute_js"?"executing javascript":t||"browser action"}function A9({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=T9(e);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),g.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&g.jsx(Qp,{code:i,language:"javascript",collapsible:!0})]})}function Wp(e){return e.length>60?"..."+e.slice(-57):e}const tu=30;function C9({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",l=t.new_str??"",c=t.regex??"";let d;e==="list_files"?d="list":e==="search_files"?d="search":a==="view"?d="view":a==="create"?d="create":a==="str_replace"?d="edit":a==="undo_edit"?d="undo":a==="insert"?d="insert":d="file";const h=i?Wp(i):"",f=c?` /${c}/`:"",m=s?s.split(` -`):[],p=l?l.split(` -`):[],y=m.length+p.length,x=y>tu,_=x?Math.round(tu*(m.length/y)):m.length,N=x?tu-_:p.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),h&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),f&&g.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:f}),(s||l)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[m.slice(0,_).map((S,w)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${w}`)),p.slice(0,N).map((S,w)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${w}`)),x&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-tu," more lines"]})]})]})}const nu=30,M9="*** Begin Patch",O9="*** End Patch",P1="*** Add File: ",F1="*** Update File: ",G1="*** Delete File: ",R9={add:"create",update:"edit",delete:"delete"};function D9(e){const t=e.patch;return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.patch=="string"?t.patch:typeof e.input=="string"?e.input:""}function L9(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(` -`))if(!(s===M9||s===O9))if(s.startsWith(P1))a(),i={kind:"add",path:s.slice(P1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(F1))a(),i={kind:"update",path:s.slice(F1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(G1))a(),i={kind:"delete",path:s.slice(G1.length).trim(),oldLines:[],newLines:[]};else if((i==null?void 0:i.kind)==="update"){if(s.startsWith("@@"))continue;s.startsWith("-")&&!s.startsWith("---")?i.oldLines.push(s.slice(1)):s.startsWith("+")&&!s.startsWith("+++")&&i.newLines.push(s.slice(1))}else(i==null?void 0:i.kind)==="add"&&(s.startsWith("+")?i.newLines.push(s.slice(1)):s.trim()&&i.newLines.push(s));return a(),t}function z9({op:e}){const t=R9[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>nu,s=a&&i>0?Math.round(nu*(e.oldLines.length/i)):e.oldLines.length,l=a?nu-s:e.newLines.length;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Wp(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&g.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>g.jsxs("div",{className:"text-red-400/60",children:[g.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,l).map((c,d)=>g.jsxs("div",{className:"text-emerald-400/60",children:[g.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&g.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-nu," more lines"]})]})]})}function j9({args:e,result:t,status:i}){const a=L9(D9(e));return a.length===0?g.jsxs("div",{children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):g.jsxs("div",{className:"space-y-2",children:[a.map((s,l)=>g.jsx(z9,{op:s},l)),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function I9({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const l=a.trim();l&&!l.toLowerCase().startsWith("data:image/")&&!l.startsWith("{")&&(s=l)}return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2",children:[g.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&g.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Wp(i)})]}),s&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const B9={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function U9({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",l=e.target??"",c=e.endpoint??"",d=e.method??"",h=e.technical_analysis??"",f=e.poc_description??"",m=e.poc_script_code??"",p=e.remediation_steps??"",y=e.cve??"",x=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),w=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=B9[S]??"text-yellow-400";return g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),w!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",w]}),y&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),x&&g.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x})]}),i&&g.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(l||c)&&g.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[l,c?` ${d} ${c}`:""]}),a&&g.jsx(Ln,{text:a,maxLines:20}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:15})})]}),h&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:h,maxLines:20})})]}),(f||m)&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),f&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:f})}),m&&g.jsx(Hw,{children:m})]}),p&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:p,maxLines:15})})]})]})}const ON=200,RN={GET:"text-emerald-400/80",POST:"text-blue-400/80",PUT:"text-yellow-400/80",PATCH:"text-orange-400/80",DELETE:"text-red-400/80"};function Jp(e){return e<300?"text-emerald-400/80":e<400?"text-yellow-400/80":e<500?"text-orange-400/80":"text-red-400/80"}function Fi(e,t=80){return e.length>t?e.slice(0,t-3)+"...":e}function Jm(e,t=150){return Fi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function ep(e,t){const i=e.split(` -`),a=i.slice(0,t).map(s=>Fi(s,ON-5)).join(` -`);return i.length>t?a+` -...`:a}function H9({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,l=Array.isArray(s)?s:[];return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,150)})]}),l.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[l.slice(0,20).map((c,d)=>{const h=(c.method??"GET").toUpperCase(),f=c.host??"",m=c.path??"",p=c.response,y=(p==null?void 0:p.statusCode)??null;return g.jsxs("div",{className:"flex gap-2",children:[g.jsx("span",{className:`w-10 shrink-0 font-bold ${RN[h]??"text-[#888]"}`,children:h}),g.jsx("span",{className:"text-[#777] truncate",children:Fi(f+m,180)}),y!=null&&g.jsx("span",{className:`ml-auto shrink-0 ${Jp(y)}`,children:y})]},d)}),l.length>20&&g.jsxs("div",{className:"text-[#555]",children:["... +",l.length-20," more"]})]})]})}function $9({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",l=t,c=l?l.matches:null,d=Array.isArray(c)?c:[],h=l?l.content??null:null,f=l?!!l.has_more:!1;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),s&&g.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Fi(s,100),"/"]})]}),d.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((m,p)=>{const y=(m.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),x=(m.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return g.jsxs("div",{children:[y&&g.jsxs("span",{className:"text-[#555]",children:["...",y]}),g.jsx("span",{className:"text-amber-400/80 font-bold",children:m.match}),x&&g.jsxs("span",{className:"text-[#555]",children:[x,"..."]})]},p)}),d.length>5&&g.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),h&&!d.length&&(()=>{const m=h.split(` -`),p=m.slice(0,15).map(x=>Fi(x,ON)).join(` -`),y=f||m.length>15;return g.jsx(xr,{className:"text-[#666]",children:p+(y?` -... more content available`:"")})})()]})}function q9({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,l=e.body,c=typeof l=="string"?l:"",d=t,h=d?d.error??null:null,f=d?d.status_code??null:null,m=d?d.response_time_ms??null:null,p=d?d.body:null,y=typeof p=="string"?p:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[g.jsxs("div",{children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),g.jsx("span",{className:`font-bold ${RN[i]??"text-[#888]"}`,children:i}),g.jsx("span",{className:"text-[#888] ml-1 break-all",children:Fi(a,180)})]}),s&&typeof s=="object"&&Object.entries(s).slice(0,5).map(([x,_])=>g.jsxs("div",{className:"text-[#555] pl-5",children:[x,": ",Jm(String(_),150)]},x))]}),c&&g.jsx(xr,{className:"text-[#888]",children:ep(c,4)}),h&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:Jm(h,150)}),f!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${Jp(f)}`,children:f}),m!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[m,"ms"]})]}),y&&g.jsx(xr,{className:"text-[#666]",children:ep(y,6)})]})}function P9({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,l=s?s.status_code??null:null,c=s?s.response_time_ms??null:null,d=s?s.body:null,h=typeof d=="string"?d:null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&g.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([f,m])=>g.jsxs("div",{children:[g.jsxs("span",{className:"text-orange-400/60",children:[f,":"]})," ",g.jsx("span",{className:"text-[#777]",children:Jm(typeof m=="string"?m:JSON.stringify(m),150)})]},f))}),l!=null&&g.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[g.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),g.jsx("span",{className:`font-bold ${Jp(l)}`,children:l}),c!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&g.jsx(xr,{className:"text-[#666]",children:ep(h,5)})]})}const F9={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function G9({args:e}){const t=e.action??"",i=e.scope_name??"",a=F9[t]??(t||"managing");return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,50)})]})}function V9({args:e}){const t=e.parent_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Fi(String(t),20)]})]})}function Y9({args:e}){const t=e.entry_id;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Fi(String(t),20)]})]})}function X9(e){switch(e.toolName){case"list_requests":return g.jsx(H9,{...e});case"view_request":return g.jsx($9,{...e});case"send_request":return g.jsx(q9,{...e});case"repeat_request":return g.jsx(P9,{...e});case"scope_rules":return g.jsx(G9,{...e});case"list_sitemap":return g.jsx(V9,{...e});case"view_sitemap_entry":return g.jsx(Y9,{...e});default:return g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function K9({args:e}){const t=e.thought??e.content??"";return t?g.jsxs("div",{children:[g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:20})})]}):null}function Z9({toolName:e,args:t}){if(e==="create_agent"){const i=t.name??t.agent_name??"",a=t.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&g.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=t.result_summary??"",a=t.success,s=t.findings,l=Array.isArray(s)?s:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${a===!1?"text-red-400/80":"text-emerald-400/80"}`,children:a===!1?"Agent failed":"Agent completed"}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})}),l&&l.length>0&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:l.map((c,d)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-red-400/50 mr-1",children:"•"}),typeof c=="string"?c:JSON.stringify(c)]},d))})]})}if(e==="send_message_to_agent"){const i=t.message??"",a=t.target_agent_id??t.agent_id??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=t.reason??"";return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&g.jsx("span",{className:"text-[#888] text-[13px] truncate",children:i})]})}if(e==="stop_agent"){const i=t.target_agent_id??"",a=t.cascade!==!1,s=t.reason??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&g.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):g.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function Q9({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,l=a&&!a.success?a.message??null:null;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&g.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),l&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:l}),s&&g.jsx("div",{className:"mt-2",children:g.jsx(Ln,{text:s,maxLines:15})})]})}const W9=50,V1=200,Y1=25,X1=24,J9=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,eU=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function tU(e){return e.replace(J9,"")}function _m(e){const t=tU(e);return t.length>V1?t.slice(0,V1-3)+"...":t}function nU(e){return e.replace(eU,"").trim()}function iU(e){const t=e.split(` -`);if(t.length<=W9)return t.map(_m).join(` -`);const i=t.length-Y1-X1;return[...t.slice(0,Y1).map(_m),`... ${i} lines truncated ...`,...t.slice(-X1).map(_m)].join(` -`)}function rU({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let l=null;s&&typeof s=="object"?l=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(l=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=l?iU(nU(l)):null;return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&g.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&g.jsx(Qp,{code:a,language:"python",collapsible:!0}),d&&g.jsx(xr,{className:"text-[#666]",children:d})]})}function aU({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&g.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,l)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},l))})]})}function sU({args:e}){const t=e.name??"Unknown Agent",i=e.task??"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),g.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),i&&g.jsx("div",{className:"mt-1.5",children:g.jsx(Ln,{text:i,maxLines:15})})]})}function oU(e){return e.toolName==="subagent_start_info"?g.jsx(sU,{...e}):g.jsx(aU,{...e})}function lU({args:e}){const t=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return g.jsxs("div",{className:"space-y-3",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:t,maxLines:25})})]}),i&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:i,maxLines:25})})]}),a&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:a,maxLines:25})})]}),s&&g.jsxs("div",{children:[g.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),g.jsx("div",{className:"mt-1",children:g.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!i&&!a&&!s&&g.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function cU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",l=t.category??"general";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),g.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",l,")"]})]}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s})})]})}if(e==="delete_note")return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note removed"});if(e==="update_note"){const a=t.title??"",s=t.content??"";return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s})})]})}if(e==="get_note"){const a=i,s=a&&typeof a=="object"&&a.success?a.note:void 0;return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",g.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&g.jsx("div",{className:"mt-1",children:g.jsx(Os,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const l=a.notes;s=Array.isArray(l)?l:[]}return g.jsxs("div",{children:[g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?g.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((l,c)=>g.jsxs("div",{className:"text-[13px]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"-"}),g.jsx("span",{className:"text-[#999]",children:l.title??"(untitled)"}),g.jsxs("span",{className:"text-[#555] ml-1",children:["(",l.category??"general",")"]}),l.content&&g.jsx("div",{className:"ml-3",children:g.jsx(Os,{text:l.content})})]},c))}):g.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return g.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const uU={create_todo:{label:"Task added",Icon:vT},list_todos:{label:"Plan",Icon:g2},update_todo:{label:"Task updated",Icon:xT},mark_todo_done:{label:"Task completed",Icon:c_},mark_todo_pending:{label:"Task reopened",Icon:MT},delete_todo:{label:"Task removed",Icon:UT}};function dU({status:e}){return e==="done"?g.jsx(c_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?g.jsx(k2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):g.jsx(A2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function fU({todos:e,highlightId:t}){return g.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",l=t&&i.id===t;return g.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${l?"bg-purple-500/[0.08]":""}`,children:[g.jsx("div",{className:"mt-[1px]",children:g.jsx(dU,{status:s})}),g.jsx("span",{className:`text-[13px] leading-snug ${s==="done"?"text-[#555] line-through":s==="in_progress"?"text-[#bbb]":"text-[#999]"}`,children:i.title??"(untitled)"})]},i.id??a)})})}function hU({toolName:e,args:t,result:i}){const a=uU[e]??{label:"Plan",Icon:kT},s=a.Icon,l=i;if(typeof l=="string"&&l.trim())return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),g.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:l.trim()})]});let c=[],d=null,h;if(l&&typeof l=="object"){if(d=l.error??null,l.success){const m=l.todos;c=Array.isArray(m)?m:[]}h=l.id??t.todo_id??void 0}const f=e!=="list_todos"?h:void 0;return c.length===0&&!d?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[g.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&g.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&g.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:g.jsx(fU,{todos:c,highlightId:f})})]})}function K1(e){if(e==null)return null;if(typeof e=="string")return e.trim()?e:null;if(typeof e=="object"){const t=e;if(typeof t.__raw=="string")return t.__raw;if(Object.keys(t).length===0)return null;try{return JSON.stringify(e,null,2)}catch{return String(e)}}return String(e)}function DN({toolName:e,args:t,result:i}){const a=K1(t),s=K1(i);return g.jsxs("div",{children:[g.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&g.jsx(xr,{className:"text-[#777]",children:a}),s&&g.jsx(xr,{className:"text-[#666]",children:s})]})}function mU({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&g.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const Vu={terminal:{renderer:k9,icon:g_,color:"text-emerald-400"},python:{renderer:rU,icon:O2,color:"text-yellow-400"},browser:{renderer:A9,icon:rp,color:"text-blue-400"},filesystem:{renderer:C9,icon:d_,color:"text-sky-400"},proxy:{renderer:X9,icon:zs,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:U9,icon:DT,color:"text-red-400"},thinking:{renderer:K9,icon:a_,color:"text-purple-400"},agents:{renderer:Z9,icon:np,color:"text-cyan-400",match:/agent/},search:{renderer:Q9,icon:p_,color:"text-amber-400"},lifecycle:{renderer:oU,icon:f_,color:"text-emerald-400"},notes:{renderer:cU,icon:jT,color:"text-amber-400",match:/note/},skills:{renderer:mU,icon:cu,color:"text-emerald-400"},todos:{renderer:hU,icon:aT,color:"text-purple-400",match:/todo/},telemetry:{renderer:DN,icon:cu,color:"text-[#555]"}},pU={terminal:["exec_command","write_stdin","terminal_execute"],python:["python_action"],browser:["browser_action"],filesystem:["apply_patch","view_image","str_replace_editor","list_files","search_files"],proxy:["list_requests","view_request","repeat_request","list_sitemap","view_sitemap_entry","scope_rules","send_request"],reporting:["create_vulnerability_report"],thinking:["think"],agents:["create_agent","agent_finish","send_message_to_agent","wait_for_message","view_agent_graph","stop_agent"],search:["web_search"],lifecycle:["scan_start_info","subagent_start_info","finish_scan"],notes:["create_note","delete_note","update_note","list_notes","get_note"],skills:["load_skill"],todos:["create_todo","list_todos","update_todo","mark_todo_done","mark_todo_pending","delete_todo"],telemetry:["sandbox_error_details","llm_error_details"]},gU=Object.fromEntries(Object.entries(pU).flatMap(([e,t])=>t.map(i=>[i,e]))),bU={finish_scan:lU,apply_patch:j9,view_image:I9},xU={agent_finish:{icon:f_,color:"text-cyan-400"},send_message_to_agent:{icon:$x,color:"text-cyan-400"},wait_for_message:{icon:$x,color:"text-cyan-400"},view_agent_graph:{icon:B2,color:"text-cyan-400"},stop_agent:{icon:r_,color:"text-red-400"},scan_start_info:{icon:L2,color:"text-emerald-400"},subagent_start_info:{icon:np,color:"text-purple-400"},view_image:{icon:J2,color:"text-sky-400"}},yU=Vu.telemetry;function LN(e){var i;const t=gU[e];if(t)return t;for(const[a,s]of Object.entries(Vu))if((i=s.match)!=null&&i.test(e))return a;return null}function vU(e){const t=bU[e];if(t)return t;const i=LN(e);return i?Vu[i].renderer:DN}function _U(e){const t=xU[e];if(t)return t;const i=LN(e),a=i?Vu[i]:yU;return{icon:a.icon,color:a.color}}const wU=30;function EU({role:e,content:t}){const i=e==="user"||e==="human";return g.jsxs("div",{children:[g.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),g.jsx("div",{className:"mt-1.5 italic text-[#888]",children:g.jsx(Ln,{text:t,maxLines:wU})})]})}class NU extends re.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?g.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function SU(e){const t=vU(e.toolName);return g.jsx(NU,{toolName:e.toolName,children:g.jsx(t,{...e})})}function zN(e){if(e==null||typeof e!="string")return e;const t=e.trim();if(!t)return e;try{return JSON.parse(t)}catch{}try{const i=t.replace(/\bNone\b/g,"null").replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/'/g,'"');return JSON.parse(i)}catch{return{__raw:e}}}function jN(e){const t=zN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function Z1(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function IN(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}const kU={completed:"text-emerald-400 border-emerald-500/30 bg-emerald-500/10",running:"text-blue-400 border-blue-500/30 bg-blue-500/10",waiting:"text-yellow-400 border-yellow-500/30 bg-yellow-500/10",stopped:"text-[#aaa] border-[#333] bg-[#1a1a1a]",crashed:"text-red-400 border-red-500/30 bg-red-500/10",failed:"text-red-400 border-red-500/30 bg-red-500/10"};function TU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function AU(e,t){var d;const i=new Map;for(const h of e)if(h.parent_id){const f=i.get(h.parent_id)??[];f.push(h.id),i.set(h.parent_id,f)}const a=new Map,s=new Map,l=new Map;for(const h of t)if(h.type==="tool"){if(a.set(h.agent_id,(a.get(h.agent_id)??0)+1),((d=h.data)==null?void 0:d.tool_name)==="create_agent"){const f=jN(h.data.args),m=f.name??f.agent_name??"",p=f.task??"";m&&p&&l.set(m,p)}}else IN(h)||s.set(h.agent_id,(s.get(h.agent_id)??0)+1);const c=new Map;for(const h of e)c.set(h.id,{id:h.id,name:h.name,task:l.get(h.name)??"",status:TU(h.status),parentId:h.parent_id,children:i.get(h.id)??[],createdAt:h.created_at,toolCount:a.get(h.id)??0,messageCount:s.get(h.id)??0});return c}function CU({agent:e,events:t,showHeader:i=!0}){const a=re.useMemo(()=>t.filter(c=>c.agent_id===e.id&&!IN(c)).sort((c,d)=>Z1(c.id)-Z1(d.id)),[t,e.id]),s=a.filter(c=>c.type==="tool").length,l=a.length-s;return g.jsxs("div",{children:[i&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[g.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),g.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${kU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),g.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),g.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[l," message",l===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?g.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):g.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,w,k,E,O;const h=d===a.length-1,f=c.type==="tool",m=f?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",p=f?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let y,x;if(f){const I=_U(m);y=I.icon,x=I.color}else{const I=p==="user"||p==="human";y=I?np:a_,x=I?"text-blue-400":"text-purple-400"}const _=f?String(((w=c.data)==null?void 0:w.status)??"completed"):"completed";return g.jsxs("div",{className:"flex gap-3",children:[g.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[g.jsx("div",{className:`w-[30px] h-[30px] rounded-full bg-black border flex items-center justify-center shrink-0 ${f&&_==="running"?"border-blue-500/40 animate-pulse":f&&_==="failed"?"border-red-500/30":"border-[#222]"}`,children:g.jsx(y,{className:`w-3.5 h-3.5 ${x}`})}),!h&&g.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),g.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:f?g.jsx(SU,{toolName:m,args:jN((k=c.data)==null?void 0:k.args),result:zN((E=c.data)==null?void 0:E.result)??null,status:_}):g.jsx(EU,{role:p,content:String(((O=c.data)==null?void 0:O.content)??"")})})]},c.id)})})]})}const MU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},OU=80;function RU({agent:e,events:t,onClose:i}){const a=re.useRef(null),s=re.useRef(!1),l=re.useCallback(()=>{const c=a.current;c&&(s.current=c.scrollHeight-c.scrollTop-c.clientHeight{const c=a.current;!c||!s.current||requestAnimationFrame(()=>{c.scrollTo({top:c.scrollHeight,behavior:"smooth"})})},[t]),re.useEffect(()=>{const c=h=>{h.key==="Escape"&&i()};document.addEventListener("keydown",c);const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",c),document.body.style.overflow=d}},[i]),g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4 sm:p-8",onClick:i,role:"dialog","aria-modal":"true","aria-label":`Agent ${e.name}`,children:g.jsxs("div",{className:"relative flex h-[80vh] w-full max-w-5xl flex-col rounded-xl border border-[#222] bg-[#0a0a0a] shadow-2xl",onClick:c=>c.stopPropagation(),children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${MU[e.status]??"bg-[#888]"}`}),g.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),g.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),g.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"flex-shrink-0 rounded-md p-1 text-[#888] transition-colors hover:bg-[#1a1a1a] hover:text-white",children:g.jsx(XT,{className:"h-4 w-4"})})]}),g.jsx("div",{ref:a,onScroll:l,className:"flex-1 overflow-y-auto p-5",children:g.jsx(CU,{agent:e,events:t,showHeader:!1})}),g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-[#222] px-5 py-3",children:[g.jsx("span",{className:"text-xs text-[#888]",children:"Steer agents live from your terminal."}),g.jsx("a",{href:gr(Vs,"steer_agent"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("steer_agent","agents"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class Tu extends Error{constructor(t){super(t),this.name="RunParseError"}}const DU=["critical","high","medium","low"];function LU(e){const t=String(e??"").toLowerCase().trim();return DU.includes(t)?t:"low"}function zU(e){if(typeof e=="string"&&e.trim()){const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);if(!Number.isNaN(i.getTime()))return i.toISOString();const a=new Date(e);if(!Number.isNaN(a.getTime()))return a.toISOString()}return new Date().toISOString()}function Ot(e){return typeof e=="string"&&e.length>0?e:null}function jU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function BN(e,t){try{return JSON.parse(e)}catch{throw new Tu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function IU(e){const t=BN(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Tu("run.json is not an object.");const i=t,a=[],s=i.targets_info;if(Array.isArray(s)){for(const x of s)if(x&&typeof x=="object"){const _=x.original;typeof _=="string"&&_&&a.push(_)}}const l=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(l&&c){const x=new Date(l).getTime(),_=new Date(c).getTime();!Number.isNaN(x)&&!Number.isNaN(_)&&_>=x&&(d=Math.round((_-x)/1e3))}let h=null,f=null,m=null,p=null;const y=i.scan_results;if(y&&typeof y=="object"){const x=y;h=Ot(x.executive_summary),f=Ot(x.technical_analysis),m=Ot(x.methodology),p=Ot(x.recommendations)}return{runId:Ot(i.run_id),runName:Ot(i.run_name),targets:a,scanMode:Ot(i.scan_mode),status:Ot(i.status),startTime:l,endTime:c,durationSeconds:d,executiveSummary:h,technicalAnalysis:f,methodology:m,recommendations:p}}function BU(){return{pr_review_id:null,cve:null,cvss:null,potential_risk_saving:null,risk_saving_description:null,impact:null,endpoint:null,method:null,target:null,technical_analysis:null,poc_description:null,poc_script_code:null,code_diff:null,code_file:null,code_before:null,code_after:null,cwe:null,code_locations:null,remediation_steps:null,fix_pr_body:null,evidence:null,assumptions:null,fix_effort:null,cvss_breakdown:null,status_changed_at:null,status_changed_by:null,status_note:null,snoozed_until:null,reopened_at:null,reopened_by:null,original_severity:null,severity_changed_at:null,severity_changed_by:null,severity_override_reason:null,retest_of_vulnerability_id:null}}function UU(e,t,i){const a=e.cwe,s=typeof a=="string"&&a.trim()?[a.trim()]:Array.isArray(a)?a.filter(c=>typeof c=="string"&&c):null;return{...BU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:LU(e.severity),status:"open",created_at:zU(e.timestamp),cve:Ot(e.cve),cvss:jU(e.cvss),impact:Ot(e.impact),endpoint:Ot(e.endpoint),method:Ot(e.method),target:Ot(e.target),technical_analysis:Ot(e.technical_analysis),poc_description:Ot(e.poc_description),poc_script_code:Ot(e.poc_script_code),cwe:s,code_locations:Array.isArray(e.code_locations)?e.code_locations:null,remediation_steps:Ot(e.remediation_steps),fix_pr_body:Ot(e.fix_pr_body),evidence:Ot(e.evidence),assumptions:Ot(e.assumptions),fix_effort:Ot(e.fix_effort)??null,cvss_breakdown:e.cvss_breakdown??null}}function HU(e,t=null){const i=BN(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Tu("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Tu(`vulnerabilities.json entry #${s+1} is not an object.`);return UU(a,s,t)})}function $U(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Ks(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function Yu(e){return e?`?run=${encodeURIComponent(e)}`:""}async function UN(e){const t=await Ks("/api/run"+Yu(e)),i=IU(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function HN(e,t){const i=await Ks("/api/vulnerabilities"+Yu(t));return HU(JSON.stringify(i),e)}async function qU(e){const t=await Ks("/api/report"+Yu(e));return(t==null?void 0:t.markdown)??null}async function $N(e){const t=await Ks("/api/transcript"+Yu(e));return{agents:Array.isArray(t==null?void 0:t.agents)?t.agents:[],events:Array.isArray(t==null?void 0:t.events)?t.events:[]}}async function Q1(e){const{summary:t,raw:i,finished:a}=await UN(e),[s,l,c]=await Promise.all([HN(t.runId,e).catch(()=>[]),qU(e).catch(()=>null),$N(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:l,transcript:c}}async function Xu(e,t){const i=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),cache:"no-store"});let a={};try{const s=await i.json();s&&typeof s=="object"&&(a=s)}catch{}return{ok:i.ok,status:i.status,data:a}}async function PU(){const e=await Ks("/api/runs");return{locked:(e==null?void 0:e.locked)??!0,count:typeof(e==null?void 0:e.count)=="number"?e.count:0,runs:Array.isArray(e==null?void 0:e.runs)?e.runs:[]}}async function FU(){const e=await Ks("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function GU(e){const{ok:t,data:i}=await Xu("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function VU(e,t){const{ok:i,data:a}=await Xu("/api/auth/otp/verify",{email:e,code:t});return i&&a.verified===!0?{verified:!0,email:String(a.email??e)}:{verified:!1,error:String(a.error??"invalid_code")}}async function YU(){await Xu("/api/auth/forget",{})}async function XU(e){const{ok:t,data:i}=await Xu("/api/report/send",e?{run:e}:{});return t&&i.ok===!0?{ok:!0,password:String(i.password??""),filename:String(i.filename??"strix-report.pdf")}:{ok:!1,error:String(i.error??"unavailable")}}const KU=[{slug:"pr_reviews",title:"PR Reviews",icon:ip,tier:"Pro",navDesc:"Pentest every pull request",headline:"Pentest every pull request",description:"Strix reviews every pull request your team opens and catches exploitable changes before they merge."},{slug:"repositories",title:"Repositories",icon:tT,tier:"Pro",navDesc:"Connect your team's repos",headline:"Connect your team's repositories",description:"Link your org's repositories so Strix can scan them continuously and track findings over time."},{slug:"domains",title:"Domains",icon:rp,tier:"Pro",navDesc:"Cover the domains you own",headline:"Cover every domain you own",description:"Add the domains your team owns and let Strix watch them for newly exposed paths and drift."},{slug:"integrations",title:"Integrations",icon:h_,tier:"Pro",navDesc:"Sync to Jira, Linear, Slack",headline:"Sync findings to your tools",description:"Two-way sync findings to Jira, Linear, and Slack so fixes happen where your team already works."},{slug:"members",title:"Members",icon:b_,tier:"Pro",navDesc:"Invite your team, set roles",headline:"Bring your whole team",description:"Invite your team, set roles, and share findings and run history across your org."},{slug:"pentests",title:"Pentests",icon:p_,tier:"Pro",navDesc:"Deeper scans on managed infra",headline:"Launch deeper pentests",description:"Run deeper, longer pentests on managed infrastructure whenever you need them."},{slug:"dashboard",title:"Dashboard",icon:iT,tier:"Pro",navDesc:"Everything in one place",headline:"See everything in one place",description:"Track every project, run, and finding across your org from a single dashboard."},{slug:"platform_issues",title:"Issues",icon:$T,tier:"Pro",navDesc:"Triage across your org",headline:"Triage findings across your org",description:"Manage and triage findings across every project and repository in one queue."},{slug:"chat",title:"Chat",icon:mT,tier:"Pro",navDesc:"Ask about any finding",headline:"Ask Strix anything",description:"Ask the agents about any finding, run, or part of your app in natural language."},{slug:"networks",title:"Networks",icon:gT,tier:"Enterprise",navDesc:"Reach internal, VPN-only targets",headline:"Scan internal networks",description:"Connect private networks to scan internal applications, VPN-only services, and RFC1918 targets."},{slug:"knowledge",title:"Knowledge",icon:j2,tier:"Pro",navDesc:"Give agents context",headline:"Give agents context",description:"Teach Strix about your systems and business logic so every run gets smarter."}],tp=Object.fromEntries(KU.map(e=>[e.slug,e])),ZU=["pr_reviews","repositories","domains","integrations","members","pentests","networks","chat","dashboard","platform_issues","knowledge"];function QU({view:e,onSelectView:t,activeFeature:i,onSelectFeature:a,issuesCount:s,agentCount:l,runCount:c,verified:d,email:h,onOpenEmail:f,onOpenHistory:m,onForget:p}){return g.jsx("aside",{className:"hidden w-72 flex-shrink-0 border-r border-[#222] lg:block",children:g.jsxs("div",{className:"sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4",children:[g.jsxs("div",{className:"px-1.5",children:[g.jsxs("a",{href:gr("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo","sidebar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"h-8 w-10 object-cover"}),g.jsx("span",{className:"text-base font-medium tracking-tight text-white",children:"Strix"})]}),g.jsxs("a",{href:gr(Vs,"sidebar_start_free"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("sidebar_start_free","sidebar"),className:"mt-3 flex w-full cursor-pointer items-center justify-center gap-1.5 rounded-lg bg-white px-3 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:["Explore full platform",g.jsx(zs,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),d&&h&&g.jsxs("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg px-2.5 py-2",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx(sp,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"truncate text-[11px] text-[#666]",children:"Linked email"}),g.jsx("p",{className:"truncate text-xs text-[#aaa]",title:h,children:h})]}),g.jsx("button",{onClick:p,title:"Forget this email on this machine",className:"flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Forget",children:g.jsx(uT,{className:"h-3.5 w-3.5"})})]})]}),g.jsxs("div",{className:"mt-6 space-y-0.5",children:[g.jsx(Zo,{icon:d_,label:"Overview",desc:"This run's executive report",active:e==="overview",onClick:()=>t("overview")}),g.jsx(Zo,{icon:h2,label:"Issues",desc:"Findings from this run",count:s>0?s:void 0,active:e==="issues",onClick:()=>t("issues")}),l>0&&g.jsx(Zo,{icon:x_,label:"Agents",desc:"What each agent did",count:l,active:e==="agents",onClick:()=>t("agents")}),g.jsx(Zo,{icon:Is,label:"Past runs",desc:"Every run on this machine",count:c>0?c:void 0,active:e==="history",onClick:m}),g.jsx(Zo,{icon:ap,label:"Email report",desc:"Get an encrypted PDF by email",active:e==="email",onClick:f}),ZU.map(y=>{const x=tp[y];return x?g.jsx(nA,{feature:x,active:e==="feature"&&i===y,onClick:()=>a(y)},y):null})]})]})})}function Zo({icon:e,label:t,desc:i,count:a,active:s,onClick:l}){return g.jsxs("button",{onClick:l,className:`flex w-full cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-1.5 text-left transition-colors ${s?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:s?{background:"rgba(255,255,255,0.12)"}:void 0,children:[g.jsx(e,{className:"mt-0.5 h-4 w-4 flex-shrink-0","aria-hidden":"true"}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"flex-1 truncate text-sm",children:t}),a!=null&&g.jsx("span",{className:"text-xs text-[#666] tabular-nums",children:a})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:i})]})]})}const WU=[{key:"critical",dot:"bg-red-500",text:"text-red-500"},{key:"high",dot:"bg-orange-500",text:"text-orange-500"},{key:"medium",dot:"bg-yellow-500",text:"text-yellow-500"},{key:"low",dot:"bg-blue-500",text:"text-blue-500"}];function JU({counts:e}){const t=WU.filter(i=>e[i.key]>0);return t.length===0?g.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):g.jsx("div",{className:"flex items-center gap-3",children:t.map(i=>g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:`h-2 w-2 rounded-full ${i.dot}`,"aria-hidden":"true"}),g.jsx("span",{className:`text-xs tabular-nums ${i.text}`,children:e[i.key]})]},i.key))})}function W1(e){if(!e)return null;const t=e.trim().replace(" UTC","Z").replace(" ","T"),i=new Date(t);return Number.isNaN(i.getTime())?null:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function eH({runs:e,activeRun:t,onSelectRun:i,onVerifyClick:a}){const s=(e==null?void 0:e.count)??0;return!e||e.locked?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(Is,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),g.jsxs("p",{className:"mx-auto mt-1.5 max-w-md text-sm text-[#888]",children:["You have ",s," past ",s===1?"run":"runs"," on this machine."]}),g.jsx("button",{onClick:a,className:"mt-4 cursor-pointer rounded-lg bg-white px-4 py-2 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:"View runs"}),g.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[g.jsx(g_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",g.jsx("code",{className:"font-mono text-[#888]",children:"strix view "})]})]}):e.runs.length===0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:"No past runs found on this machine yet."}):g.jsx("div",{className:"space-y-2",children:e.runs.map(l=>{const c=l.name===t,d=W1(l.start_time)??W1(l.end_time);return g.jsxs("button",{onClick:()=>i(l.name),className:`group flex w-full cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 text-left transition-colors ${c?"border-[#444] bg-[rgba(255,255,255,0.04)]":"border-[#222] bg-[rgba(255,255,255,0.02)] hover:border-[#444]"}`,children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"truncate text-sm font-medium text-white",children:l.name}),c&&g.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400",style:{border:"1px solid rgba(16,185,129,0.3)"},children:"Active"})]}),g.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[l.target&&g.jsx("span",{className:"truncate font-mono text-[#888]",children:l.target}),l.target&&(l.scan_mode||d||l.status)&&g.jsx("span",{className:"text-[#333]",children:"·"}),l.scan_mode&&g.jsx("span",{className:"capitalize",children:l.scan_mode}),d&&g.jsx("span",{className:"text-[#333]",children:"·"}),d&&g.jsx("span",{children:d}),l.status&&g.jsx("span",{className:"text-[#333]",children:"·"}),l.status&&g.jsx("span",{className:"capitalize",children:l.status})]})]}),g.jsx(JU,{counts:l.severity_counts}),g.jsx(v2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},l.name)})})}const J1={work_email_required:"Please use your work email, not a personal one.",rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",unavailable:"The email service is unavailable right now. Try again shortly."},tH={forbidden:"This email was unsubscribed from Strix, so we cannot send to it.",too_large:"This report is too large to email. Try a smaller run.",unavailable:"The email service is unavailable right now. Try again shortly."},nH=new Set(["gmail.com","googlemail.com","yahoo.com","ymail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","aol.com","proton.me","protonmail.com","gmx.com","mail.com"]);function iH({activeRun:e,auth:t,purpose:i,skipDisclosure:a=!1,onAuthChanged:s,onExit:l}){const c=(t==null?void 0:t.verified)===!0,d=i==="verify",[h,f]=re.useState(()=>d?"email":a?c?"sending":"email":"disclosure"),[m,p]=re.useState((t==null?void 0:t.email)??""),[y,x]=re.useState(""),[_,N]=re.useState(!1),[S,w]=re.useState(null),[k,E]=re.useState(null),[O,I]=re.useState(""),[R,H]=re.useState(""),[j,Z]=re.useState(!1),[z,q]=re.useState(""),K=re.useRef(!1),Y=async()=>{f("sending"),w(null);const F=await XU(e);if(F.ok){Ts("report_sent"),I(F.password),H(F.filename),f("password");return}if(F.error==="reverify"||F.error==="unverified"){E("Your verification expired. Enter your email to verify again."),f("email");return}w(tH[F.error]??"Could not send the report. Try again."),f("disclosure")},C=()=>{w(null),E(null),c?Y():f("email")};re.useEffect(()=>{!d&&a&&c&&!K.current&&(K.current=!0,Y())},[]);const $=async()=>{const F=m.trim();if(!F){w("Enter your email to continue.");return}const A=F.slice(F.lastIndexOf("@")+1).toLowerCase();if(nH.has(A)){Ts("work_email_required"),w(J1.work_email_required);return}N(!0),w(null);const L=await GU(F);N(!1),L.ok?(Ts("email_submitted",{purpose:i}),E(`We sent a 6-digit code to ${F}.`),f("code")):(L.error==="work_email_required"&&Ts("work_email_required"),w(J1[L.error]??"Could not send a code. Try again."))},M=async()=>{const F=y.trim();if(F.length<4){w("Enter the 6-digit code from your email.");return}N(!0),w(null);const A=await VU(m.trim(),F);if(N(!1),!A.verified){w("That code did not match. Check it and try again.");return}Ts("email_verified",{purpose:i}),q(A.email),s(),d?l("history"):Y()},B=async()=>{try{await navigator.clipboard.writeText(O),Z(!0),setTimeout(()=>Z(!1),1500)}catch{}},X=z||(t==null?void 0:t.email)||m.trim();return g.jsxs("div",{className:"mx-auto max-w-md space-y-4",children:[g.jsxs("button",{onClick:()=>l(d?"history":"overview"),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] transition-colors hover:text-white",children:[g.jsx(i_,{className:"h-4 w-4"}),d?"Back to past runs":"Back to results"]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(ap,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:d?"Verify your email":"Email report"})]}),g.jsxs("div",{className:"w-full rounded-2xl bg-[rgba(255,255,255,0.02)] p-6",style:{border:"1px solid #2a2a2a"},children:[g.jsx("p",{className:"mb-4 text-xs text-[#666]",children:d?"We send a one-time code to confirm it is you.":"Verified by a one-time code sent to your email"}),S&&g.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-red-500/30 bg-red-500/5 px-3 py-2",children:[g.jsx(l_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-xs text-red-300",children:S})]}),k&&!S&&h!=="password"&&g.jsx("p",{className:"mb-4 text-xs text-[#888]",children:k}),h==="disclosure"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2.5 rounded-lg p-3.5",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(sp,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs leading-relaxed text-[#aaa]",children:["Viewing stays local and nothing is uploaded. Emailing is an explicit opt-in: we send an ",g.jsx("span",{className:"text-white",children:"encrypted PDF"}),"."]})]}),g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(lT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("p",{className:"text-xs leading-relaxed text-[#aaa]",children:"The report is encrypted with a password that only you hold. Strix cannot read it and never stores it. We collect only your email so we can send it."})]})]}),g.jsx("button",{onClick:C,className:"w-full cursor-pointer rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:c?"Email me the encrypted PDF":"Continue with your email"}),c&&(t==null?void 0:t.email)&&g.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",t.email]})]}),h==="email"&&g.jsxs("form",{className:"space-y-4",onSubmit:F=>{F.preventDefault(),$()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your work email"}),g.jsx("input",{type:"email",autoFocus:!0,value:m,onChange:F=>p(F.target.value),placeholder:"you@company.com",className:"w-full rounded-lg bg-black px-3 py-2.5 text-sm text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}}),g.jsx("span",{className:"mt-1.5 block text-[11px] text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(nh,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),h==="code"&&g.jsxs("form",{className:"space-y-4",onSubmit:F=>{F.preventDefault(),M()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),g.jsx("input",{inputMode:"numeric",autoFocus:!0,value:y,onChange:F=>x(F.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"123456",className:"w-full rounded-lg bg-black px-3 py-2.5 text-center text-lg font-mono tracking-[0.4em] text-white outline-none transition-colors focus:border-[#444]",style:{border:"1px solid #2a2a2a"}})]}),g.jsxs("button",{type:"submit",disabled:_,className:"flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90 disabled:opacity-60",children:[_&&g.jsx(nh,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),d?"Verify":"Verify and send"]}),g.jsx("button",{type:"button",onClick:()=>{f("email"),w(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),h==="sending"&&g.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[g.jsx(nh,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),h==="password"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-emerald-500/30 bg-emerald-500/5 px-3 py-2.5",children:[g.jsx(js,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),g.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",X,". Open the attached PDF with this password."]})]}),g.jsxs("div",{children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),g.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[g.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:O}),g.jsxs("button",{onClick:B,className:"flex cursor-pointer items-center gap-1 rounded-md px-2 py-1 text-xs text-[#aaa] transition-colors hover:bg-[rgba(255,255,255,0.06)] hover:text-white",style:{border:"1px solid #2a2a2a"},children:[j?g.jsx(js,{className:"h-3.5 w-3.5"}):g.jsx(rl,{className:"h-3.5 w-3.5"}),j?"Copied":"Copy"]})]}),g.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",g.jsx("span",{className:"font-mono text-[#888]",children:R})]})]}),g.jsx("button",{onClick:()=>l("overview"),className:"w-full cursor-pointer rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-[rgba(255,255,255,0.06)]",style:{border:"1px solid #2a2a2a"},children:"Done"})]})]})]})}const rH=[{icon:s_,text:"Continuous coverage: scheduled pentests and attack surface monitoring"},{icon:FT,text:"One-click autofix that opens a retested pull request"},{icon:h_,text:"Two-way sync to Jira, Linear, and Slack"},{icon:b_,text:"Your whole team, with roles and shared history"}];function aH({feature:e}){const t=e.icon;return g.jsx("div",{className:"mx-auto w-full max-w-lg",children:g.jsxs("div",{className:"rounded-2xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[g.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-xl",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(t,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),g.jsx("div",{className:"mt-4 flex justify-center",children:g.jsx(Au,{label:e.tier})}),g.jsx("h2",{className:"mt-3 text-2xl font-semibold text-white",children:e.headline}),g.jsx("p",{className:"mx-auto mt-2 max-w-md text-sm text-[#888]",children:e.description}),g.jsxs("div",{className:"mt-6 rounded-xl p-4 text-left",style:{border:"1px solid #222",background:"rgba(255,255,255,0.02)"},children:[g.jsx("p",{className:"mb-3 text-xs font-semibold uppercase tracking-wide text-[#666]",children:"Included in Strix Pro"}),g.jsx("ul",{className:"space-y-2.5",children:rH.map(i=>{const a=i.icon;return g.jsxs("li",{className:"flex items-start gap-2.5",children:[g.jsx(a,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-[#aaa]",children:i.text})]},i.text)})})]}),g.jsxs("div",{className:"mt-6 flex flex-col items-center gap-3",children:[g.jsxs("a",{href:gr(Vs,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,"feature_page"),className:"inline-flex w-full items-center justify-center gap-1.5 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-90",children:["Start free",g.jsx(zs,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),g.jsxs("a",{href:gr(JT,e.slug),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug,"feature_page_plans"),className:"inline-flex items-center gap-1 text-xs text-[#888] transition-colors hover:text-white",children:["View all plans",g.jsx(zs,{className:"h-3 w-3","aria-hidden":"true"})]})]})]})})}const sH="Your findings stay on your machine. They're rendered here locally in your browser and never uploaded or stored by Strix. Emailing a report is an explicit opt-in that sends an encrypted copy only you can open.",e_=["critical","high","medium","low"],oH=500,lH=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:cu},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:H2}],cH=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:s_},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:m_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:ip}];function uH(){const[e,t]=re.useState(null),[i,a]=re.useState(null),[s,l]=re.useState(null),[c,d]=re.useState(null),[h,f]=re.useState("overview"),[m,p]=re.useState(null),[y,x]=re.useState(null),[_,N]=re.useState(null),[S,w]=re.useState("report"),[k,E]=re.useState(!1),O=re.useCallback(async()=>{try{x(await FU())}catch{}},[]),I=re.useCallback(async()=>{try{N(await PU())}catch{}},[]);re.useEffect(()=>{O(),I()},[O,I]);const R=re.useRef(!1);re.useEffect(()=>{let F=!1,A;R.current=!1;const L=()=>{A=setTimeout(V,oH)},V=async()=>{if(!F)try{const{summary:D,raw:G,finished:U}=await UN(e);if(F)return;if(U&&!R.current){R.current=!0;const Q=await Q1(e);F||a(Q);return}const[W,J]=await Promise.all([$N(e).catch(()=>({agents:[],events:[]})),HN(D.runId,e).catch(()=>[])]);if(F)return;a(Q=>({summary:D,raw:G,finished:U,transcript:W,vulnerabilities:J,reportMarkdown:(Q==null?void 0:Q.reportMarkdown)??null})),L()}catch(D){if(F)return;l(D instanceof Error?D.message:"Could not load run data."),L()}};return(async()=>{try{const D=await Q1(e);if(F)return;a(D),D.finished?R.current=!0:L()}catch(D){if(F)return;l(D instanceof Error?D.message:"Could not load run data."),L()}})(),()=>{F=!0,A&&clearTimeout(A)}},[e]);const H=re.useMemo(()=>i?$U(i.vulnerabilities):null,[i]),j=(i==null?void 0:i.vulnerabilities.find(F=>F.id===c))??null,Z=(i==null?void 0:i.transcript.agents.length)??0,z=(y==null?void 0:y.verified)===!0,q=re.useCallback(F=>{t(F),d(null),a(null),l(null),f("overview")},[]),K=re.useCallback((F,A)=>{gi("email_report",A),w("report"),E(F),f("email")},[]),Y=re.useCallback(()=>K(!1,"sidebar"),[K]),C=re.useCallback(()=>K(!0,"overview"),[K]),$=re.useCallback(()=>{gi("history_unlock","past_runs"),w("verify"),E(!1),f("email")},[]),M=re.useCallback(()=>{I(),f("history")},[I]),B=re.useCallback(F=>{gi(F,"sidebar_nav"),p(F),f("feature")},[]),X=re.useCallback(async()=>{await YU(),await O(),await I()},[O,I]);return g.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[g.jsx(QU,{view:h,onSelectView:F=>{F==="history"?M():f(F)},activeFeature:m,onSelectFeature:B,issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:Z,runCount:(_==null?void 0:_.count)??0,verified:z,email:(y==null?void 0:y.email)??null,onOpenEmail:Y,onOpenHistory:M,onForget:()=>void X()}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"border-b border-[#222]",children:g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[g.jsxs("a",{href:gr("https://app.strix.ai","logo"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo","topbar"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[g.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),g.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),g.jsx("span",{className:"text-xs text-[#666]",children:"Local results"}),i&&g.jsx(fH,{finished:i.finished}),g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[z&&_&&!_.locked&&_.runs.length>0&&g.jsx(dH,{runs:_,activeRun:e,launchedName:(i==null?void 0:i.summary.runName)??(i==null?void 0:i.summary.runId)??"Current run",onSelect:q}),g.jsxs("a",{href:gr(Vs,"run_in_cloud"),target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("run_in_cloud","topbar"),className:"inline-flex items-center gap-1 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity hover:opacity-90",children:["Run in the cloud",g.jsx(zs,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),g.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-8 space-y-6",children:[h!=="feature"&&h!=="email"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(sp,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-emerald-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-[#aaa] leading-relaxed",children:sH})]}),s&&!i&&h!=="history"&&h!=="email"&&h!=="feature"&&g.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[g.jsx(l_,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),g.jsx("p",{className:"text-sm text-red-300",children:s})]}),h==="email"?g.jsx(iH,{activeRun:e,auth:y,purpose:S,skipDisclosure:k,onAuthChanged:()=>{O(),I()},onExit:F=>f(F==="history"?"history":"overview")}):h==="feature"&&m&&tp[m]?g.jsx(aH,{feature:tp[m]}):h==="history"?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Is,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),g.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),g.jsx(eH,{runs:_,activeRun:e,onSelectRun:q,onVerifyClick:$})]}):!i&&!s?g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[g.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),g.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):i&&H?g.jsxs(g.Fragment,{children:[g.jsx(mH,{summary:i.summary}),g.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[g.jsx(Em,{active:h==="overview",onClick:()=>f("overview"),children:"Overview"}),g.jsxs(Em,{active:h==="issues",onClick:()=>f("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),Z>0&&g.jsxs(Em,{active:h==="agents",onClick:()=>f("agents"),children:["Agents (",Z,")"]})]}),h==="overview"?g.jsx(yH,{summary:i.summary,counts:H,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,onOpenEmail:C}):h==="agents"&&Z>0?g.jsx(vH,{run:i}):j?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("button",{onClick:()=>d(null),className:"cursor-pointer inline-flex items-center gap-1.5 text-sm text-[#888] hover:text-white transition-colors",children:[g.jsx(i_,{className:"w-4 h-4"})," Back to all findings"]}),g.jsx(T4,{vulnerability:j})]}):g.jsx(pH,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:F=>d(F)})]}):null]})]})]})}function dH({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,l]=re.useState(!1),c=t??i;return g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>l(d=>!d),onBlur:()=>setTimeout(()=>l(!1),150),className:"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[#aaa] transition-colors hover:text-white",style:{border:"1px solid #2a2a2a"},children:[g.jsx(Is,{className:"w-3.5 h-3.5","aria-hidden":"true"}),g.jsx("span",{className:"max-w-[160px] truncate",children:c}),g.jsx(o_,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&g.jsx("div",{className:"absolute right-0 z-50 mt-1.5 max-h-80 w-64 overflow-y-auto rounded-lg py-1 shadow-xl",style:{border:"1px solid #2a2a2a",background:"#0a0a0a"},children:e.runs.map(d=>{const h=d.name===t;return g.jsxs("button",{onMouseDown:()=>a(d.name),className:`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-[rgba(255,255,255,0.06)] ${h?"text-white":"text-[#aaa]"}`,children:[g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsx("span",{className:"block truncate",children:d.name}),d.target&&g.jsx("span",{className:"block truncate font-mono text-[#666]",children:d.target})]}),h&&g.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},d.name)})})]})}function fH({finished:e}){return e?g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):g.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[g.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[g.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),g.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function hH(e){if(e==null)return null;if(e<60)return`${e}s`;const t=Math.floor(e/60);return t<60?`${t}m`:`${Math.floor(t/60)}h ${t%60}m`}function mH({summary:e}){const t=hH(e.durationSeconds);return g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.runName??e.runId??"Scan results"}),g.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-[#888]",children:[e.targets.length>0&&g.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&g.jsx(wm,{label:e.scanMode}),t&&g.jsx(wm,{label:t}),e.status&&g.jsx(wm,{label:e.status})]})]})}function wm({label:e}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"capitalize",children:e})]})}function pH({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,l)=>e_.indexOf(s.severity)-e_.indexOf(l.severity));return a.length===0?g.jsxs("div",{className:"space-y-4",children:[g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center text-sm text-[#888]",children:t?"No findings in this run.":"No findings yet. The scan is still running…"}),t&&g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),g.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),g.jsx(Rs,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",surface:"empty_state",icon:m_})]})]}):g.jsx("div",{className:"space-y-2",children:a.map(s=>g.jsxs("button",{onClick:()=>i(s.id),className:"cursor-pointer w-full text-left rounded-lg border border-[#222] hover:border-[#444] bg-[rgba(255,255,255,0.02)] px-4 py-3 transition-colors flex items-center gap-3",children:[g.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${op(s.severity)}`,"aria-hidden":"true"}),g.jsxs("span",{className:"flex-1 min-w-0",children:[g.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&g.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),g.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${y_[s.severity]}`,children:s.severity})]},s.id))})}function gH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function bH(e){const t=[];let i=null;for(const a of e.split(` -`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const l=s[1].trim().toLowerCase();if(l===i)continue;i=l}else a.trim()!==""&&(i=null);t.push(a)}return t.join(` -`)}function xH({onOpenEmail:e}){return g.jsx("button",{onClick:e,className:"group w-full cursor-pointer rounded-xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4 text-left transition-colors hover:border-emerald-500/40",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg",style:{border:"1px solid rgba(16,185,129,0.3)",background:"rgba(16,185,129,0.08)"},children:g.jsx(ap,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#888]",children:"Encrypted with a key only you can see, email verified with a one-time code before sending."})]}),g.jsx("span",{className:"flex-shrink-0 rounded-lg bg-white px-3 py-1.5 text-xs font-semibold text-black transition-opacity group-hover:opacity-90",children:"Email report"})]})})}function yH({summary:e,counts:t,total:i,reportMarkdown:a,onOpenEmail:s}){const l=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,c])=>!!c).map(([c,d])=>({title:c,content:gH(d)}));return g.jsxs("div",{className:"space-y-6",children:[i>0&&g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(A4,{findings:{total:i,...t}})}),g.jsx(xH,{onOpenEmail:s}),l.length>0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:l.map(c=>g.jsx(ia,{title:c.title,content:c.content},c.title))}):a?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:g.jsx(ia,{content:bH(a)})}):i===0&&g.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:lH.map(c=>g.jsx(qx,{item:c,surface:"overview"},c.slug))}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2 text-sm font-semibold text-white",children:"Continuous coverage for your org"}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:cH.map(c=>g.jsx(qx,{item:c,surface:"overview"},c.slug))})]})]})}function Em({active:e,onClick:t,children:i}){return g.jsxs("button",{onClick:t,className:`cursor-pointer relative pb-2.5 text-sm font-semibold transition-colors ${e?"text-white":"text-[#666] hover:text-white"}`,children:[i,e&&g.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function vH({run:e}){const{agents:t,events:i}=e.transcript,a=re.useMemo(()=>AU(t,i),[t,i]),[s,l]=re.useState(null),c=s?t.find(d=>d.id===s)??null:null;return g.jsxs("div",{className:"space-y-5",children:[g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(x_,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),g.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),g.jsxs("span",{className:"text-xs text-[#666]",children:[t.length," agent",t.length===1?"":"s"]})]}),g.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),g.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:g.jsx(b9,{agents:a,selectedAgentId:s,onSelectAgent:d=>l(d),eventsLoaded:!0,eventsEmpty:a.size===0,scanCompleted:e.finished})})]}),g.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[g.jsx("p",{className:"text-sm font-semibold text-white",children:"Drive the agents live"}),g.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Steer and re-run this scan from the web."}),g.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[g.jsx(Rs,{label:"Steer agents from the web",desc:"Guide the agents live while they scan.",slug:"live_scan_prompt",surface:"agents",icon:NT}),g.jsx(Rs,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",surface:"agents",icon:AT})]})]}),c&&g.jsx(RU,{agent:c,events:i,onClose:()=>l(null)})]})}Jk.createRoot(document.getElementById("root")).render(g.jsx(re.StrictMode,{children:g.jsx(uH,{})})); diff --git a/strix/viewer/viewer_dist/index.html b/strix/viewer/viewer_dist/index.html index 8e887cea..bb7a0755 100644 --- a/strix/viewer/viewer_dist/index.html +++ b/strix/viewer/viewer_dist/index.html @@ -6,8 +6,8 @@ Strix Results - - + +