diff --git a/strix/viewer/viewer_dist/assets/index-BXJCfPCf.css b/strix/viewer/viewer_dist/assets/index-BXJCfPCf.css new file mode 100644 index 00000000..11b6f7cd --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-BXJCfPCf.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-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)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.-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-CjWyBgvB.css b/strix/viewer/viewer_dist/assets/index-CjWyBgvB.css deleted file mode 100644 index 5a4c1167..00000000 --- a/strix/viewer/viewer_dist/assets/index-CjWyBgvB.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-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)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\[100\]{z-index:100}.-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-\[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-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-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-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.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-DQjB5huW.js b/strix/viewer/viewer_dist/assets/index-DQjB5huW.js new file mode 100644 index 00000000..4cdadc03 --- /dev/null +++ b/strix/viewer/viewer_dist/assets/index-DQjB5huW.js @@ -0,0 +1,492 @@ +(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 o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf={exports:{}},Il={};/** + * @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 Ax;function qk(){if(Ax)return Il;Ax=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Il.Fragment=t,Il.jsx=i,Il.jsxs=i,Il}var Cx;function Pk(){return Cx||(Cx=1,Xf.exports=qk()),Xf.exports}var g=Pk(),Kf={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 Mx;function Fk(){if(Mx)return Ve;Mx=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"),o=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(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||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 O=E.prototype=new k;O.constructor=E,N(O,w.prototype),O.isPureReactComponent=!0;var B=Array.isArray;function R(){}var U={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function K(D,G,L){var F=L.ref;return{$$typeof:e,type:D,key:G,ref:F!==void 0?F:null,props:L}}function z(D,G){return K(D.type,G,D.props)}function q(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function X(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(L){return G[L]})}var Y=/\/+/g;function C(D,G){return typeof D=="object"&&D!==null&&D.key!=null?X(""+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 A(D,G,L,F,H){var Z=typeof D;(Z==="undefined"||Z==="boolean")&&(D=null);var J=!1;if(D===null)J=!0;else switch(Z){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,A(J(D._payload),G,L,F,H)}}if(J)return H=H(D),J=F===""?"."+C(D,0):F,B(H)?(L="",J!=null&&(L=J.replace(Y,"$&/")+"/"),A(H,G,L,"",function(ce){return ce})):H!=null&&(q(H)&&(H=z(H,L+(H.key==null||D&&D.key===H.key?"":(""+H.key).replace(Y,"$&/")+"/")+J)),G.push(H)),1;J=0;var W=F===""?".":F+":";if(B(D))for(var ee=0;ee>>1,M=A[Q];if(0>>1;Qs(L,V))Fs(H,L)?(A[Q]=H,A[F]=V,Q=F):(A[Q]=L,A[G]=V,Q=G);else if(Fs(H,V))A[Q]=H,A[F]=V,Q=F;else break e}}return j}function s(A,j){var V=A.sortIndex-j.sortIndex;return V!==0?V:A.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.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(A){for(var j=i(f);j!==null;){if(j.callback===null)a(f);else if(j.startTime<=A)a(f),j.sortIndex=j.expirationTime,t(h,j);else break;j=i(f)}}function B(A){if(N=!1,O(A),!_)if(i(h)!==null)_=!0,R||(R=!0,X());else{var j=i(f);j!==null&&$(B,j.startTime-A)}}var R=!1,U=-1,I=5,K=-1;function z(){return S?!0:!(e.unstable_now()-KA&&z());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,y=p.priorityLevel;var M=Q(p.expirationTime<=A);if(A=e.unstable_now(),typeof M=="function"){p.callback=M,O(A),j=!0;break t}p===i(h)&&a(h),O(A)}else a(h);p=i(h)}if(p!==null)j=!0;else{var D=i(f);D!==null&&$(B,D.startTime-A),j=!1}}break e}finally{p=null,y=V,x=!1}j=void 0}}finally{j?X():R=!1}}}var X;if(typeof E=="function")X=function(){E(q)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,C=Y.port2;Y.port1.onmessage=q,X=function(){C.postMessage(null)}}else X=function(){w(q,0)};function $(A,j){U=w(function(){A(e.unstable_now())},j)}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(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125Q?(A.sortIndex=V,t(f,A),i(h)===null&&A===i(f)&&(N?(k(U),U=-1):N=!0,$(B,V-Q))):(A.sortIndex=M,t(h,A),_||x||(_=!0,R||(R=!0,X()))),A},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(A){var j=y;return function(){var V=y;y=j;try{return A.apply(this,arguments)}finally{y=V}}}})(Wf)),Wf}var Dx;function Yk(){return Dx||(Dx=1,Qf.exports=Vk()),Qf.exports}var Jf={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 Lx;function Xk(){if(Lx)return kn;Lx=1;var e=po();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(),Jf.exports=Xk(),Jf.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 jx;function Kk(){if(jx)return Bl;jx=1;var e=Yk(),t=po(),i=J1();function a(n){var r="https://react.dev/errors/"+n;if(1M||(n.current=Q[M],Q[M]=null,M--)}function L(n,r){M++,Q[M]=n.current,n.current=r}var F=D(null),H=D(null),Z=D(null),J=D(null);function W(n,r){switch(L(Z,r),L(H,n),L(F,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Q0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Q0(r),n=W0(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(H),G(Z)}function ce(n){n.memoizedState!==null&&L(J,n);var r=F.current,l=W0(r,n.type);r!==l&&(L(H,n),L(F,l))}function fe(n){H.current===n&&(G(F),G(H)),J.current===n&&(G(J),Dl._currentValue=V)}var be,we;function Ne(n){if(be===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",we=-1)":-1b||te[u]!==le[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=l}return(l=n?n.displayName||n.name:"")?Ne(l):""}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="",l=null;do r+=st(n,l),l=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,on=e.log,En=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof on=="function"&&En(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:yr,zn=Math.log,cn=Math.LN2;function yr(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,l){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):l||(l=P&~n,l!==0&&(b=hn(l))))):(P=u&~v,P!==0?b=hn(P):T!==0?b=hn(T):l||(l=u&~n,l!==0&&(b=hn(l)))),b===0?0:r!==0&&r!==b&&(r&v)===0&&(v=b&-b,l=r&-r,v>=l||v===32&&(l&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=[],l=0;31>l;l++)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,l,u,b,v){var T=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,te=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Va=/[\n"\\]/g;function Sn(n){return n.replace(Va,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ca(n,r,l,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?kr(n,T,_t(r)):l!=null?kr(n,T,_t(l)):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,l,u,b,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Nr(n);return}l=l!=null?""+_t(l):"",r=r!=null?""+_t(r):l,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),Nr(n)}function kr(n,r,l){r==="number"&&Sr(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function un(n,r,l,u){if(n=n.options,r){r={};for(var b=0;b"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if(Qi)try{var Qs={};Object.defineProperty(Qs,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Yu=!1}var Cr=null,Xu=null,Ao=null;function Wp(){if(Ao)return Ao;var n,r=Xu,l=r.length,u,b="value"in Cr?Cr.value:Cr.textContent,v=b.length;for(n=0;n=el),rg=" ",ag=!1;function sg(n,r){switch(n){case"keyup":return uS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Xa=!1;function fS(n,r){switch(n){case"compositionend":return lg(r);case"keypress":return r.which!==32?null:(ag=!0,rg);case"textInput":return n=r.data,n===rg&&ag?null:n;default:return null}}function hS(n,r){if(Xa)return n==="compositionend"||!Ju&&sg(n,r)?(n=Wp(),Ao=Xu=Cr=null,Xa=!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:l,offset:r-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pg(l)}}function bg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?bg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function xg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Sr(n.document);r instanceof n.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)n=r.contentWindow;else break;r=Sr(n.document)}return r}function nd(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 _S=Qi&&"documentMode"in document&&11>=document.documentMode,Ka=null,id=null,rl=null,rd=!1;function yg(n,r,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;rd||Ka==null||Ka!==Sr(u)||(u=Ka,"selectionStart"in u&&nd(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}),rl&&il(rl,u)||(rl=u,u=_c(id,"onSelect"),0>=T,b-=T,ji=1<<32-ut(r)+b|l<Ke?(at=De,De=null):at=De.sibling;var mt=oe(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 l(ae,De),lt&&Ji(ae,Ke),Ie;if(De===null){for(;KeKe?(at=De,De=null):at=De.sibling;var Qr=oe(ae,De,mt.value,pe);if(Qr===null){De===null&&(De=at);break}n&&De&&Qr.alternate===null&&r(ae,De),ie=v(Qr,ie,Ke),ht===null?Ie=Qr:ht.sibling=Qr,ht=Qr,De=at}if(mt.done)return l(ae,De),lt&&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 lt&&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($k){return r(ae,$k)}),lt&&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){l(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===I&&va(Ie)===ie.type){l(ae,ie.sibling),pe=b(ie,se.props),ul(pe,se),pe.return=ae,ae=pe;break e}l(ae,ie);break}else r(ae,ie);ie=ie.sibling}se.type===N?(pe=pa(se.props.children,ae.mode,pe,se.key),pe.return=ae,ae=pe):(pe=Bo(se.type,se.key,se.props,null,ae.mode,pe),ul(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){l(ae,ie.sibling),pe=b(ie,se.children||[]),pe.return=ae,ae=pe;break e}else{l(ae,ie);break}else r(ae,ie);ie=ie.sibling}pe=dd(se,ae.mode,pe),pe.return=ae,ae=pe}return T(ae);case I:return se=va(se),Nt(ae,ie,se,pe)}if($(se))return Ae(ae,ie,se,pe);if(X(se)){if(Ie=X(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,Go(se),pe);if(se.$$typeof===E)return Nt(ae,ie,$o(ae,se),pe);Vo(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ie!==null&&ie.tag===6?(l(ae,ie.sibling),pe=b(ie,se),pe.return=ae,ae=pe):(l(ae,ie),pe=ud(se,ae.mode,pe),pe.return=ae,ae=pe),T(ae)):l(ae,ie)}return function(ae,ie,se,pe){try{cl=0;var Ie=Nt(ae,ie,se,pe);return ss=null,Ie}catch(De){if(De===as||De===Po)throw De;var ht=Kn(29,De,null,ae.mode);return ht.lanes=pe,ht.return=ae,ht}finally{}}}var wa=qg(!0),Pg=qg(!1),Lr=!1;function Ed(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nd(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 zr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function jr(n,r,l){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=Io(n),kg(n,null,l),r}return jo(n,u,r,l),Io(n)}function dl(n,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}function Sd(n,r){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var b=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?b=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?b=v=r:v=v.next=r}else b=v=r;l={baseState:u.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=r:n.next=r,l.lastBaseUpdate=r}var kd=!1;function fl(){if(kd){var n=rs;if(n!==null)throw n}}function hl(n,r,l,u){kd=!1;var b=n.updateQueue;Lr=!1;var v=b.firstBaseUpdate,T=b.lastBaseUpdate,P=b.shared.pending;if(P!==null){b.shared.pending=null;var te=P,le=te.next;te.next=null,T===null?v=le:T.next=le,T=te;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=le:P.next=le,he.lastBaseUpdate=te))}if(v!==null){var ge=b.baseState;T=0,he=le=te=null,P=v;do{var oe=P.lane&-536870913,de=oe!==P.lane;if(de?(rt&oe)===oe:(u&oe)===oe){oe!==0&&oe===is&&(kd=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=n,He=P;oe=r;var Nt=l;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,oe);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,oe=typeof Ae=="function"?Ae.call(Nt,ge,oe):Ae,oe==null)break e;ge=p({},ge,oe);break e;case 2:Lr=!0}}oe=P.callback,oe!==null&&(n.flags|=64,de&&(n.flags|=8192),de=b.callbacks,de===null?b.callbacks=[oe]:de.push(oe))}else de={lane:oe,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(le=he=de,te=ge):he=he.next=de,T|=oe;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=le,b.lastBaseUpdate=he,v===null&&(b.shared.lanes=0),$r|=T,n.lanes=T,n.memoizedState=ge}}function Fg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Gg(n,r){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;nv?v:8;var T=A.T,P={};A.T=P,Gd(n,!1,r,l);try{var te=b(),le=A.S;if(le!==null&&le(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=MS(te,u);gl(n,r,he,ei(n))}else gl(n,r,u,ei(n))}catch(ge){gl(n,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{j.p=v,T!==null&&P.types!==null&&(T.types=P.types),A.T=T}}function jS(){}function Pd(n,r,l,u){if(n.tag!==5)throw Error(a(476));var b=Eb(n).queue;wb(n,b,r,V,l===null?jS:function(){return Nb(n),l(u)})}function Eb(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:V},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:l},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Nb(n){var r=Eb(n);r.next===null&&(r=n.alternate.memoizedState),gl(n,r.next.queue,{},ei())}function Fd(){return yn(Dl)}function Sb(){return Qt().memoizedState}function kb(){return Qt().memoizedState}function IS(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var l=ei();n=zr(l);var u=jr(r,n,l);u!==null&&($n(u,r,l),dl(u,r,l)),r={cache:yd()},n.payload=r;return}r=r.return}}function BS(n,r,l){var u=ei();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},nc(n)?Ab(r,l):(l=od(n,r,l,u),l!==null&&($n(l,n,u),Cb(l,r,u)))}function Tb(n,r,l){var u=ei();gl(n,r,l,u)}function gl(n,r,l,u){var b={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(nc(n))Ab(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,l);if(b.hasEagerState=!0,b.eagerState=P,Xn(P,T))return jo(n,r,b,0),kt===null&&zo(),!1}catch{}finally{}if(l=od(n,r,b,u),l!==null)return $n(l,n,u),Cb(l,r,u),!0}return!1}function Gd(n,r,l,u){if(u={lane:2,revertLane:Nf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},nc(n)){if(r)throw Error(a(479))}else r=od(n,l,u,2),r!==null&&$n(r,n,2)}function nc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function Ab(n,r){os=Ko=!0;var l=n.pending;l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function Cb(n,r,l){if((l&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}var bl={readContext:yn,use:Wo,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};bl.useEffectEvent=Gt;var Mb={readContext:yn,use:Wo,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:hb,useImperativeHandle:function(n,r,l){l=l!=null?l.concat([n]):null,ec(4194308,4,bb.bind(null,r,n),l)},useLayoutEffect:function(n,r){return ec(4194308,4,n,r)},useInsertionEffect:function(n,r){ec(4,2,n,r)},useMemo:function(n,r){var l=Rn();r=r===void 0?null:r;var u=n();if(Ea){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,r],u},useReducer:function(n,r,l){var u=Rn();if(l!==void 0){var b=l(r);if(Ea){Wt(!0);try{l(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=BS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Bd(n);var r=n.queue,l=Tb.bind(null,Xe,r);return r.dispatch=l,[n.memoizedState,l]},useDebugValue:$d,useDeferredValue:function(n,r){var l=Rn();return qd(l,n,r)},useTransition:function(){var n=Bd(!1);return n=wb.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,l){var u=Xe,b=Rn();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),kt===null)throw Error(a(349));(rt&127)!==0||Qg(u,r,l)}b.memoizedState=l;var v={value:l,getSnapshot:r};return b.queue=v,hb(Jg.bind(null,u,v,n),[n]),u.flags|=2048,us(9,{destroy:void 0},Wg.bind(null,u,v,l,r),null),l},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(lt){var l=Ii,u=ji;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Zo++,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),sf(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,l),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=Z.current,ts(r)){if(n=r.stateNode,l=r.memoizedProps,u=null,b=xn,b!==null)switch(b.tag){case 27:case 5:u=b.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||K0(n.nodeValue,l)),n||Rr(r,!0)}else n=wc(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return Lt(r),null;case 31:if(l=r.memoizedState,n===null||n.memoizedState!==null){if(u=ts(r),l!==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 ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),n=!1}else l=pd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),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=ts(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 ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),b=!1}else b=pd(),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=l,r):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(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)),l!==n&&l&&(r.child.flags|=8192),lc(r,r.updateQueue),Lt(r),null);case 4:return ee(),n===null&&Af(r.stateNode.containerInfo),Lt(r),null;case 10:return tr(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)yl(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Xo(n),v!==null){for(r.flags|=128,yl(u,!1),n=v.updateQueue,r.updateQueue=n,lc(r,n),r.subtreeFlags=0,n=l,l=r.child;l!==null;)Tg(l,n),l=l.sibling;return L(Zt,Zt.current&1|2),lt&&Ji(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>fc&&(r.flags|=128,b=!0,yl(u,!1),r.lanes=4194304)}else{if(!b)if(n=Xo(v),n!==null){if(r.flags|=128,b=!0,n=n.updateQueue,r.updateQueue=n,lc(r,n),yl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return Lt(r),null}else 2*ct()-u.renderingStartTime>fc&&l!==536870912&&(r.flags|=128,b=!0,yl(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,l=Zt.current,L(Zt,b?l&1|2:l&1),lt&&Ji(r,u.treeForkCount),n):(Lt(r),null);case 22:case 23:return Qn(r),Ad(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(l&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),l=r.updateQueue,l!==null&&lc(r,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048),n!==null&&G(ya),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),tr(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function PS(n,r){switch(hd(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));ga()}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));ga()}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 tr(r.type),null;case 22:case 23:return Qn(r),Ad(),n!==null&&G(ya),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 e0(n,r){switch(hd(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:G(Zt);break;case 10:tr(r.type);break;case 22:case 23:Qn(r),Ad(),n!==null&&G(ya);break;case 24:tr(en)}}function vl(n,r){try{var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var b=u.next;l=b;do{if((l.tag&n)===n){u=void 0;var v=l.create,T=l.inst;u=v(),T.destroy=u}l=l.next}while(l!==b)}}catch(P){yt(r,r.return,P)}}function Ur(n,r,l){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=l,le=P;try{le()}catch(he){yt(b,te,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function t0(n){var r=n.updateQueue;if(r!==null){var l=n.stateNode;try{Gg(r,l)}catch(u){yt(n,n.return,u)}}}function n0(n,r,l){l.props=Na(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,r,u)}}function _l(n,r){try{var l=n.ref;if(l!==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 l=="function"?n.refCleanup=l(u):l.current=u}}catch(b){yt(n,r,b)}}function Bi(n,r){var l=n.ref,u=n.refCleanup;if(l!==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 l=="function")try{l(null)}catch(b){yt(n,r,b)}else l.current=null}function i0(n){var r=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(b){yt(n,n.return,b)}}function lf(n,r,l){try{var u=n.stateNode;dk(u,n.type,l,r),u[mn]=r}catch(b){yt(n,n.return,b)}}function r0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Vr(n.type)||n.tag===4}function of(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||r0(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&&Vr(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 cf(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(n),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode,r=null),n=n.child,n!==null))for(cf(n,r,l),n=n.sibling;n!==null;)cf(n,r,l),n=n.sibling}function oc(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?l.insertBefore(n,r):l.appendChild(n);else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(oc(n,r,l),n=n.sibling;n!==null;)oc(n,r,l),n=n.sibling}function a0(n){var r=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,b=r.attributes;b.length;)r.removeAttributeNode(b[0]);_n(r,u,l),r[Ut]=n,r[mn]=l}catch(v){yt(n,n.return,v)}}var sr=!1,rn=!1,uf=!1,s0=typeof WeakSet=="function"?WeakSet:Set,gn=null;function FS(n,r){if(n=n.containerInfo,Of=Cc,n=xg(n),nd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var b=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,P=-1,te=-1,le=0,he=0,ge=n,oe=null;t:for(;;){for(var de;ge!==l||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;)oe=ge,ge=de;for(;;){if(ge===n)break t;if(oe===l&&++le===b&&(P=T),oe===v&&++he===u&&(te=T),(de=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=de}l=P===-1||te===-1?null:{start:P,end:te}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rf={focusedElem:n,selectionRange:l},Cc=!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(l=0;l title"))),_n(v,u,l),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=fx("link","href",b).get(u+(l.href||""));if(T){for(var P=0;PNt&&(T=Nt,Nt=He,He=T);var ae=gg(P,He),ie=gg(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;Pl?32:l,A.T=null,l=bf,bf=null;var v=Pr,T=dr;if(dn=0,ps=Pr=null,dr=0,(pt&6)!==0)throw Error(a(331));var P=pt;if(pt|=4,b0(v.current),m0(v,v.current,T,l),pt=P,Tl(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{j.p=b,A.T=u,z0(n,r)}}function I0(n,r,l){r=oi(l,r),r=Kd(n.stateNode,r,2),n=jr(n,r,2),n!==null&&(gt(n,2),Ui(n))}function yt(n,r,l){if(n.tag===3)I0(n,n,l);else for(;r!==null;){if(r.tag===3){I0(r,n,l);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qr===null||!qr.has(u))){n=oi(l,n),l=Bb(2),u=jr(r,l,2),u!==null&&(Ub(l,u,r,n),gt(u,2),Ui(u));break}}r=r.return}}function _f(n,r,l){var u=n.pingCache;if(u===null){u=n.pingCache=new YS;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(l)||(hf=!0,b.add(l),n=WS.bind(null,n,r,l),r.then(n,n))}function WS(n,r,l){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(rt&l)===l&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-dc?(pt&2)===0&&gs(n,0):mf|=l,ms===rt&&(ms=0)),Ui(n)}function B0(n,r){r===0&&(r=Pe()),n=ma(n,r),n!==null&&(gt(n,r),Ui(n))}function JS(n){var r=n.memoizedState,l=0;r!==null&&(l=r.retryLane),B0(n,l)}function ek(n,r){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,b=n.memoizedState;b!==null&&(l=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),B0(n,l)}function tk(n,r){return Pt(n,r)}var xc=null,xs=null,wf=!1,yc=!1,Ef=!1,Gr=0;function Ui(n){n!==xs&&n.next===null&&(xs===null?xc=xs=n:xs=xs.next=n),yc=!0,wf||(wf=!0,ik())}function Tl(n,r){if(!Ef&&yc){Ef=!0;do for(var l=!1,u=xc;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&&(l=!0,q0(u,v))}else v=rt,v=ne(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||me(u,v)||(l=!0,q0(u,v));u=u.next}while(l);Ef=!1}}function nk(){U0()}function U0(){yc=wf=!1;var n=0;Gr!==0&&hk()&&(n=Gr);for(var r=ct(),l=null,u=xc;u!==null;){var b=u.next,v=H0(u,r);v===0?(u.next=null,l===null?xc=b:l.next=b,b===null&&(xs=l)):(l=u,(n!==0||(v&3)!==0)&&(yc=!0)),u=b}dn!==0&&dn!==5||Tl(n),Gr!==0&&(Gr=0)}function H0(n,r){for(var l=n.suspendedLanes,u=n.pingedLanes,b=n.expirationTimes,v=n.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&Z0(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function ox(n,r,l){var u=ys;if(u&&typeof r=="string"&&r){var b=Sn(r);b='link[rel="'+n+'"][href="'+b+'"]',typeof l=="string"&&(b+='[crossorigin="'+l+'"]'),lx.has(b)||(lx.add(b),n={rel:n,crossOrigin:l,href:r},u.querySelector(b)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function wk(n){fr.D(n),ox("dns-prefetch",n,null)}function Ek(n,r){fr.C(n,r),ox("preconnect",n,r)}function Nk(n,r,l){fr.L(n,r,l);var u=ys;if(u&&n&&r){var b='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(b+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(b+='[imagesizes="'+Sn(l.imageSizes)+'"]')):b+='[href="'+Sn(n)+'"]';var v=b;switch(r){case"style":v=vs(n);break;case"script":v=_s(n)}mi.has(v)||(n=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:n,as:r},l),mi.set(v,n),u.querySelector(b)!==null||r==="style"&&u.querySelector(Ol(v))||r==="script"&&u.querySelector(Rl(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function Sk(n,r){fr.m(n,r);var l=ys;if(l&&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=_s(n)}if(!mi.has(v)&&(n=p({rel:"modulepreload",href:n},r),mi.set(v,n),l.querySelector(b)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Rl(v)))return}u=l.createElement("link"),_n(u,"link",n),Ft(u),l.head.appendChild(u)}}}function kk(n,r,l){fr.S(n,r,l);var u=ys;if(u&&n){var b=Li(u).hoistableStyles,v=vs(n);r=r||"default";var T=b.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Ol(v)))P.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":r},l),(l=mi.get(v))&&Uf(n,l);var te=T=u.createElement("link");Ft(te),_n(te,"link",n),te._p=new Promise(function(le,he){te.onload=le,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Nc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},b.set(v,T)}}}function Tk(n,r){fr.X(n,r);var l=ys;if(l&&n){var u=Li(l).hoistableScripts,b=_s(n),v=u.get(b);v||(v=l.querySelector(Rl(b)),v||(n=p({src:n,async:!0},r),(r=mi.get(b))&&Hf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function Ak(n,r){fr.M(n,r);var l=ys;if(l&&n){var u=Li(l).hoistableScripts,b=_s(n),v=u.get(b);v||(v=l.querySelector(Rl(b)),v||(n=p({src:n,async:!0,type:"module"},r),(r=mi.get(b))&&Hf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(b,v))}}function cx(n,r,l,u){var b=(b=Z.current)?Ec(b):null;if(!b)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=vs(l.href),l=Li(b).hoistableStyles,u=l.get(r),u||(u={type:"style",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=vs(l.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(Ol(n)))&&!v._p&&(T.instance=v,T.state.loading=5),mi.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},mi.set(n,l),v||Ck(b,n,l,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=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=_s(l),l=Li(b).hoistableScripts,u=l.get(r),u||(u={type:"script",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function vs(n){return'href="'+Sn(n)+'"'}function Ol(n){return'link[rel="stylesheet"]['+n+"]"}function ux(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function Ck(n,r,l,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",l),Ft(r),n.head.appendChild(r))}function _s(n){return'[src="'+Sn(n)+'"]'}function Rl(n){return"script[async]"+n}function dx(n,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(u)return r.instance=u,Ft(u),u;var b=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",b),Nc(u,l.precedence,n),r.instance=u;case"stylesheet":b=vs(l.href);var v=n.querySelector(Ol(b));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=ux(l),(b=mi.get(b))&&Uf(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,Nc(v,l.precedence,n),r.instance=v;case"script":return v=_s(l.src),(b=n.querySelector(Rl(v)))?(r.instance=b,Ft(b),b):(u=l,(b=mi.get(v))&&(u=p({},l),Hf(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,Nc(u,l.precedence,n));return r.instance}function Nc(n,r,l){for(var u=l.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 Mk(n,r,l){if(l===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 mx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ok(n,r,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var b=vs(u.href),v=r.querySelector(Ol(b));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=kc.bind(n),r.then(n,n)),l.state.loading|=4,l.instance=v,Ft(v);return}v=r.ownerDocument||r,u=ux(u),(b=mi.get(b))&&Uf(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),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=kc.bind(n),r.addEventListener("load",l),r.addEventListener("error",l))}}var $f=0;function Rk(n,r){return n.stylesheets&&n.count===0&&Ac(n,n.stylesheets),0$f?50:800)+r);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(b)}}:null}function kc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Tc=null;function Ac(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Tc=new Map,r.forEach(Dk,n),Tc=null,kc.call(n))}function Dk(n,r){if(!(r.state.loading&4)){var l=Tc.get(n);if(l)var u=l.get(null);else{l=new Map,Tc.set(n,l);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(),Zf.exports=Kk(),Zf.exports}var Qk=Zk();/** + * @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 e_=(...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 Wk=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 Jk=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 Bx=e=>{const t=Jk(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 e2={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 t2=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 n2=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},h)=>re.createElement("svg",{ref:h,...e2,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:e_("lucide",s),...!o&&!t2(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,m])=>re.createElement(f,m)),...Array.isArray(o)?o:[o]]));/** + * @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},o)=>re.createElement(n2,{ref:o,iconNode:t,className:e_(`lucide-${Wk(Bx(e))}`,`lucide-${e}`,a),...s}));return i.displayName=Bx(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 i2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],r2=Me("arrow-left",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 a2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ds=Me("arrow-up-right",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:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t_=Me("ban",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 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"}]],o2=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 c2=[["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"}]],ep=Me("bot",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 u2=[["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"}]],n_=Me("brain",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 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"}]],f2=Me("bug",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 h2=[["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"}]],i_=Me("calendar-clock",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:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],p2=Me("check-check",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:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ls=Me("check",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:"m6 9 6 6 6-6",key:"qrunsl"}]],r_=Me("chevron-down",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:"m9 18 6-6-6-6",key:"mthhwq"}]],y2=Me("chevron-right",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=[["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"}]],a_=Me("circle-alert",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:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],s_=Me("circle-check-big",_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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],E2=Me("circle-check",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 N2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],S2=Me("circle-dot",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 k2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T2=Me("circle",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 A2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l_=Me("clock",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=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],M2=Me("code",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=[["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"}]],to=Me("copy",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 R2=[["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"}]],D2=Me("crosshair",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 L2=[["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"}]],z2=Me("database",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 j2=[["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"}]],I2=Me("eye",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 B2=[["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"}]],U2=Me("file-check-corner",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 H2=[["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"}]],o_=Me("file-text",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 $2=[["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"}]],c_=Me("flag",$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=[["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"}]],P2=Me("git-merge",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 F2=[["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"}]],tp=Me("git-pull-request",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 G2=[["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"}]],V2=Me("github",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:"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"}]],X2=Me("gitlab",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 K2=[["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"}]],np=Me("globe",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 Z2=[["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"}]],zs=Me("history",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=[["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"}]],W2=Me("image",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 J2=[["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"}]],eT=Me("layers",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 tT=[["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"}]],nT=Me("layout-dashboard",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 iT=[["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"}]],rT=Me("list-todo",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 aT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],eh=Me("loader-circle",aT);/** + * @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:"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",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=[["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"}]],cT=Me("log-out",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 uT=[["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"}]],ip=Me("mail",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 dT=[["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"}]],Ux=Me("message-circle",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:"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"}]],hT=Me("message-square",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 mT=[["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"}]],pT=Me("network",mT);/** + * @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.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"}]],bT=Me("pencil",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 xT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yT=Me("plus",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 vT=[["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"}]],u_=Me("puzzle",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 _T=[["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"}]],d_=Me("radar",_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:"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"}]],ET=Me("radio",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 NT=[["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"}]],ST=Me("refresh-cw",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 kT=[["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"}]],TT=Me("rocket",kT);/** + * @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 AT=[["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"}]],CT=Me("rotate-ccw",AT);/** + * @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 MT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],f_=Me("search",MT);/** + * @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:"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"}]],RT=Me("shield-alert",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 DT=[["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"}]],rp=Me("shield-check",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 LT=[["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"}]],zT=Me("sticky-note",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 jT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],h_=Me("terminal",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:"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"}]],BT=Me("trash-2",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:"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"}]],HT=Me("triangle-alert",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:"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"}]],m_=Me("users",$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:"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"}]],PT=Me("wand-sparkles",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:"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"}]],p_=Me("waypoints",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:"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"}]],lu=Me("wrench",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:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],g_=Me("x",VT),YT={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"}},XT={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"}},b_={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 jc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const KT={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 ZT(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&KT[t]||null}function ap(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 sp(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 Fs="https://app.strix.ai/api/auth/signup",QT="https://strix.ai/pricing";function gi(e){try{const t=JSON.stringify({event:"cta_clicked",cta:e});typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",t):fetch("/api/event",{method:"POST",body:t,keepalive:!0})}catch{}}function ku({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 WT({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 Hx({item:e}){const t=e.icon;return g.jsxs("a",{href:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug),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(t,{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(ku,{}),g.jsx(Ds,{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 JT({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(ku,{label:e.tier})]}),g.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:e.navDesc})]})]})}function Ms({label:e,desc:t,slug:i,icon:a}){return g.jsx(WT,{text:t,children:g.jsxs("a",{href:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(i),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(ku,{className:"ml-0.5"})]})})}function x_(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}),y_=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),ou="-",$x=[],iA="arbitrary..",rA=e=>{const t=sA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return aA(c);const d=c.split(ou),h=d[0]===""&&d.length>1?1:0;return v_(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=i[c];return h?f?tA(f,h):h:f||$x}return i[c]||$x}}},v_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],o=i.nextPart.get(s);if(o){const f=v_(e,t+1,o);if(f)return f}const c=i.validators;if(c===null)return;const d=t===0?e.join(ou):e.slice(t).join(ou),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?iA+a:void 0})(),sA=e=>{const{theme:t,classGroups:i}=e;return lA(i,t)},lA=(e,t)=>{const i=y_();for(const a in e){const s=e[a];lp(s,i,a,t)}return i},lp=(e,t,i,a)=>{const s=e.length;for(let o=0;o{if(typeof e=="string"){cA(e,t,i);return}if(typeof e=="function"){uA(e,t,i,a);return}dA(e,t,i,a)},cA=(e,t,i)=>{const a=e===""?t:__(t,e);a.classGroupId=i},uA=(e,t,i,a)=>{if(fA(e)){lp(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(nA(i,e))},dA=(e,t,i,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c{let i=e;const a=t.split(ou),s=a.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,hA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(o,c)=>{i[o]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(o){let c=i[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in i?i[o]=c:s(o,c)}}},wm="!",qx=":",mA=[],Px=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),pA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const o=[];let c=0,d=0,h=0,f;const m=s.length;for(let N=0;Nh?f-h:void 0;return Px(o,x,y,_)};if(t){const s=t+qx,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):Px(mA,!1,c,void 0,!0)}if(i){const s=a;a=o=>i({className:o,parseClassName:s})}return a},gA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let o=0;o0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},bA=e=>({cache:hA(e.cacheSize),parseClassName:pA(e),sortModifiers:gA(e),postfixLookupClassGroupIds:xA(e),...rA(e)}),xA=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(yA);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 U=N.substring(0,S);k=a(U);const I=k&&c[k]?a(N):void 0;I&&I!==k&&(k=I,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]:o(x).join(":"),O=_?E+wm:E,B=O+k;if(d.indexOf(B)>-1)continue;d.push(B);const R=s(k,w);for(let U=0;U0?" "+f:f)}return f},_A=(...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,o;const c=h=>{const f=t.reduce((m,p)=>p(m),e());return i=bA(f),a=i.cache.get,s=i.cache.set,o=d,d(h)},d=h=>{const f=a(h);if(f)return f;const m=vA(h,i);return s(h,m),m};return o=c,(...h)=>o(_A(...h))},EA=[],fn=e=>{const t=i=>i[e]||EA;return t.isThemeGetter=!0,t},E_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,NA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,SA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kA=/\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$/,TA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=e=>NA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Hi=e=>!!e&&Number.isInteger(Number(e)),th=e=>e.endsWith("%")&&We(e.slice(0,-1)),hr=e=>SA.test(e),S_=()=>!0,MA=e=>kA.test(e)&&!TA.test(e),op=()=>!1,OA=e=>AA.test(e),RA=e=>CA.test(e),DA=e=>!ke(e)&&!Te(e),LA=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)),zA=e=>aa(e,A_,op),ke=e=>E_.test(e),Ta=e=>aa(e,C_,MA),Fx=e=>aa(e,PA,We),jA=e=>aa(e,O_,S_),IA=e=>aa(e,M_,op),Gx=e=>aa(e,k_,op),BA=e=>aa(e,T_,RA),Ic=e=>aa(e,R_,OA),Te=e=>N_.test(e),Ul=e=>$a(e,C_),UA=e=>$a(e,M_),Vx=e=>$a(e,k_),HA=e=>$a(e,A_),$A=e=>$a(e,T_),Bc=e=>$a(e,R_,!0),qA=e=>$a(e,O_,!0),aa=(e,t,i)=>{const a=E_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},$a=(e,t,i=!1)=>{const a=N_.exec(e);return a?a[1]?t(a[1]):i:!1},k_=e=>e==="position"||e==="percentage",T_=e=>e==="image"||e==="url",A_=e=>e==="length"||e==="size"||e==="bg-size",C_=e=>e==="length",PA=e=>e==="number",M_=e=>e==="family-name",O_=e=>e==="number"||e==="weight",R_=e=>e==="shadow",FA=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),o=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"],B=()=>[...O(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],I=()=>[Te,ke,h],K=()=>[Wr,"full","auto",...I()],z=()=>[Hi,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Hi,Te,ke]},Hi,Te,ke],X=()=>[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"],A=()=>["auto",...I()],j=()=>[Wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],V=()=>[Wr,"screen","full","dvw","lvw","svw","min","max","fit",...I()],Q=()=>[Wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],M=()=>[e,Te,ke],D=()=>[...O(),Vx,Gx,{position:[Te,ke]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",HA,zA,{size:[Te,ke]}],F=()=>[th,Ul,Ta],H=()=>["","none","full",f,Te,ke],Z=()=>["",We,Ul,Ta],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,th,Vx,Gx],ce=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],we=()=>[We,Te,ke],Ne=()=>[Wr,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[S_],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[DA],"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",Wr,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[LA],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:B()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Hi,"auto",Te,ke]}],basis:[{basis:[Wr,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Wr,"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":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"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: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:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[d,"screen",...j()]}],"min-w":[{"min-w":[d,"screen","none",...j()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",i,Ul,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,qA,jA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",th,ke]}],"font-family":[{font:[UA,IA,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,Fx]}],leading:[{leading:[o,...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:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",Te,Ta]}],"text-decoration-color":[{decoration:M()}],"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]},$A,BA]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,Te,ke]}],"outline-w":[{outline:["",We,Ul,Ta]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",m,Bc,Ic]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",p,Bc,Ic]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[We,Ta]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",y,Bc,Ic]}],"text-shadow-color":[{"text-shadow":M()}],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":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"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":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"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":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"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":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"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":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"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":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"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":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"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":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"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:ce()}],brightness:[{brightness:[We,Te,ke]}],contrast:[{contrast:[We,Te,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,Bc,Ic]}],"drop-shadow-color":[{"drop-shadow":M()}],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":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":B()}],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:B()}],"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:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"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",...M()]}],"stroke-w":[{stroke:[We,Ul,Ta,Fx]}],stroke:[{stroke:["none",...M()]}],"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"]}},GA=wA(FA);function Uc(...e){return GA(eA(e))}function VA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Em(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`:VA(e)}function YA(e){return`STRIX-${e}`}function XA(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const KA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QA={};function Yx(e,t){return(QA.jsx?ZA:KA).test(e)}const WA=/[ \t\n\f\r]/g;function JA(e){return typeof e=="object"?e.type==="text"?Xx(e.value):!1:Xx(e)}function Xx(e){return e.replace(WA,"")===""}class go{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}go.prototype.normal={};go.prototype.property={};go.prototype.space=void 0;function D_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new go(i,a,t)}function Nm(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 eC=0;const Ge=qa(),an=qa(),Sm=qa(),ve=qa(),Tt=qa(),Ra=qa(),ti=qa();function qa(){return 2**++eC}const km=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:Ra,number:ve,overloadedBoolean:Sm,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),nh=Object.keys(km);class cp extends Gn{constructor(t,i,a,s){let o=-1;if(super(t,i),Kx(this,"space",s),typeof a=="number")for(;++o4&&i.slice(0,4)==="data"&&aC.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Zx,oC);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Zx.test(o)){let c=o.replace(rC,lC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=cp}return new s(a,t)}function lC(e){return"-"+e.toLowerCase()}function oC(e){return e.charAt(1).toUpperCase()}const cC=D_([L_,tC,I_,B_,U_],"html"),up=D_([L_,nC,I_,B_,U_],"svg");function uC(e){return e.join(" ").trim()}var Es={},ih,Qx;function dC(){if(Qx)return ih;Qx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,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 A=C.lastIndexOf(h);E=~A?C.length-A:E+C.length}function B(){var C={line:k,column:E};return function($){return $.position=new R(C),K(),$}}function R(C){this.start=C,this.end={line:k,column:E},this.source=w.source}R.prototype.content=S;function U(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 I(C){var $=C.exec(S);if($){var A=$[0];return O(A),S=S.slice(A.length),$}}function K(){I(i)}function z(C){var $;for(C=C||[];$=q();)$!==!1&&C.push($);return C}function q(){var C=B();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 U("End of comment missing");var A=S.slice(2,$-2);return E+=2,O(A),S=S.slice($),E+=2,C({type:y,comment:A})}}function X(){var C=B(),$=I(a);if($){if(q(),!I(s))return U("property missing ':'");var A=I(o),j=C({type:x,property:N($[0].replace(e,p)),value:A?N(A[0].replace(e,p)):p});return I(c),j}}function Y(){var C=[];z(C);for(var $;$=X();)$!==!1&&(C.push($),z(C));return C}return K(),Y()}function N(S){return S?S.replace(d,p):p}return ih=_,ih}var Wx;function fC(){if(Wx)return Es;Wx=1;var e=Es&&Es.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=i;const t=e(dC());function i(a,s){let o=null;if(!a||typeof a!="string")return o;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&&(o=o||{},o[f]=m)}),o}return Es}var Hl={},Jx;function hC(){if(Jx)return Hl;Jx=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=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={}),o(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Hl.camelCase=h,Hl}var $l,ey;function mC(){if(ey)return $l;ey=1;var e=$l&&$l.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(fC()),i=hC();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,i.camelCase)(d,o)]=h)}),c}return a.default=a,$l=a,$l}var pC=mC();const gC=mo(pC),H_=$_("end"),dp=$_("start");function $_(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 bC(e){const t=dp(e),i=H_(e);if(t&&i)return{start:t,end:i}}function Zl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ty(e.position):"start"in e||"end"in e?ty(e):"line"in e||"column"in e?Tm(e):""}function Tm(e){return ny(e&&e.line)+":"+ny(e&&e.column)}function ty(e){return Tm(e&&e.start)+"-"+Tm(e&&e.end)}function ny(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="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?o.ruleId=a:(o.source=a.slice(0,h),o.ruleId=a.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.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=Zl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.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 fp={}.hasOwnProperty,xC=new Map,yC=/[A-Z]/g,vC=new Set(["table","tbody","thead","tfoot","tr"]),_C=new Set(["td","th"]),q_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wC(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=MC(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=CC(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"?up:cC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=P_(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function P_(e,t,i){if(t.type==="element")return EC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kC(e,t,i);if(t.type==="mdxjsEsm")return SC(e,t);if(t.type==="root")return TC(e,t,i);if(t.type==="text")return AC(e,t)}function EC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=up,e.schema=s),e.ancestors.push(t);const o=G_(e,t.tagName,!1),c=OC(e,t);let d=mp(e,t);return vC.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!JA(h):!0})),F_(e,c,o,t),hp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function NC(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)}no(e,t.position)}function SC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);no(e,t.position)}function kC(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=up,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:G_(e,t.name,!0),c=RC(e,t),d=mp(e,t);return F_(e,c,o,t),hp(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function TC(e,t,i){const a={};return hp(a,mp(e,t)),e.create(t,e.Fragment,a,i)}function AC(e,t){return t.value}function F_(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function hp(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function CC(e,t,i){return a;function a(s,o,c,d){const f=Array.isArray(c.children)?i:t;return d?f(o,c,d):f(o,c)}}function MC(e,t){return i;function i(a,s,o,c){const d=Array.isArray(o.children),h=dp(a);return t(s,o,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function OC(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&fp.call(t.properties,s)){const o=DC(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&_C.has(t.tagName)?a=d:i[c]=d}}if(a){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function RC(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else no(e,t.position);else{const s=a.name;let o;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,o=e.evaluater.evaluateExpression(d.expression)}else no(e,t.position);else o=a.value===null?!0:a.value;i[s]=o}return i}function mp(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:xC;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);o0?(ii(e,e.length,0,t),e):t}const ay={}.hasOwnProperty;function Y_(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=sa(/[A-Za-z]/),Tn=sa(/[\dA-Za-z]/),qC=sa(/[#-'*+\--9=?A-Z^-~]/);function cu(e){return e!==null&&(e<32||e===127)}const Am=sa(/\d/),PC=sa(/[\dA-Fa-f]/),FC=sa(/[!-/:-@[-`{-~]/);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 Tu=sa(new RegExp("\\p{P}|\\p{S}","u")),za=sa(/\s/);function sa(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Vs(e){const t=[];let i=-1,a=0,s=0;for(;++i55295&&o<57344){const d=e.charCodeAt(i+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);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 ot(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return tt(h)?(e.enter(i),d(h)):t(h)}function d(h){return tt(h)&&o++c))return;const U=t.events.length;let I=U,K,z;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(K){z=t.events[I][1].end;break}K=!0}for(w(a),R=U;RE;){const B=i[O];t.containerState=B[1],B[0].exit.call(t,e)}i.length=E}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function KC(e,t,i){return ot(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function js(e){if(e===null||At(e)||za(e))return 1;if(Tu(e))return 2}function Au(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};ly(p,-h),ly(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},o={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",o,t]]),f=pi(f,Au(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),f=pi(f,[["exit",o,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)?ot(e,k,"linePrefix",o+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(oy,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 B(R,U,I){let K=0;return z;function z($){return R.enter("lineEnding"),R.consume($),R.exit("lineEnding"),q}function q($){return R.enter("codeFencedFence"),tt($)?ot(R,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):X($)}function X($){return $===d?(R.enter("codeFencedFenceSequence"),Y($)):I($)}function Y($){return $===d?(K++,R.consume($),Y):K>=c?(R.exit("codeFencedFenceSequence"),tt($)?ot(R,C,"whitespace")($):C($)):I($)}function C($){return $===null||Be($)?(R.exit("codeFencedFence"),U($)):I($)}}}function lM(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"),o)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const ah={name:"codeIndented",tokenize:cM},oM={partial:!0,tokenize:uM};function cM(e,t,i){const a=this;return s;function s(f){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(f)}function o(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(oM,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 uM(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):ot(e,o,"linePrefix",5)(c)}function o(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 dM={name:"codeText",previous:hM,resolve:fM,tokenize:mM};function fM(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 o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&ql(this.left,a),o.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),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(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 J_(e,t,i,a,s,o,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(o),e.consume(w),e.exit(o),y):w===null||w===32||w===41||cu(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(o),e.consume(w),e.exit(o),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(o),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 tw(e,t,i,a,s,o){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(o),f(y))}function f(y){return y===c?(e.exit(o),h(c)):y===null?i(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ot(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 Ql(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)?ot(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const wM={name:"definition",tokenize:NM},EM={partial:!0,tokenize:SM};function NM(e,t,i){const a=this;let s;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return ew.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)?Ql(e,f)(x):f(x)}function f(x){return J_(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(EM,p,p)(x)}function p(x){return tt(x)?ot(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 SM(e,t,i){return a;function a(d){return At(d)?Ql(e,s)(d):i(d)}function s(d){return tw(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return tt(d)?ot(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const kM={name:"hardBreakEscape",tokenize:TM};function TM(e,t,i){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Be(o)?(e.exit("hardBreakEscape"),t(o)):i(o)}}const AM={name:"headingAtx",resolve:CM,tokenize:MM};function CM(e,t){let i=e.length-2,a=3,s,o;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},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function MM(e,t,i){let a=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(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)?ot(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 OM=["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"],uy=["pre","script","style","textarea"],RM={concrete:!0,name:"htmlFlow",resolveTo:zM,tokenize:jM},DM={partial:!0,tokenize:BM},LM={partial:!0,tokenize:IM};function zM(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 jM(e,t,i){const a=this;let s,o,c,d,h;return f;function f(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),y):L===47?(e.consume(L),o=!0,N):L===63?(e.consume(L),s=3,a.interrupt?t:M):Dn(L)?(e.consume(L),c=String.fromCharCode(L),S):i(L)}function y(L){return L===45?(e.consume(L),s=2,x):L===91?(e.consume(L),s=5,d=0,_):Dn(L)?(e.consume(L),s=4,a.interrupt?t:M):i(L)}function x(L){return L===45?(e.consume(L),a.interrupt?t:M):i(L)}function _(L){const F="CDATA[";return L===F.charCodeAt(d++)?(e.consume(L),d===F.length?a.interrupt?t:X:_):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,H=c.toLowerCase();return!F&&!o&&uy.includes(H)?(s=1,a.interrupt?t(L):X(L)):OM.includes(c.toLowerCase())?(s=6,F?(e.consume(L),w):a.interrupt?t(L):X(L)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(L):o?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:X):i(L)}function k(L){return tt(L)?(e.consume(L),k):z(L)}function E(L){return L===47?(e.consume(L),z):L===58||L===95||Dn(L)?(e.consume(L),O):tt(L)?(e.consume(L),E):z(L)}function O(L){return L===45||L===46||L===58||L===95||Tn(L)?(e.consume(L),O):B(L)}function B(L){return L===61?(e.consume(L),R):tt(L)?(e.consume(L),B):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),h=L,U):tt(L)?(e.consume(L),R):I(L)}function U(L){return L===h?(e.consume(L),h=null,K):L===null||Be(L)?i(L):(e.consume(L),U)}function I(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||At(L)?B(L):(e.consume(L),I)}function K(L){return L===47||L===62||tt(L)?E(L):i(L)}function z(L){return L===62?(e.consume(L),q):i(L)}function q(L){return L===null||Be(L)?X(L):tt(L)?(e.consume(L),q):i(L)}function X(L){return L===45&&s===2?(e.consume(L),A):L===60&&s===1?(e.consume(L),j):L===62&&s===4?(e.consume(L),D):L===63&&s===3?(e.consume(L),M):L===93&&s===5?(e.consume(L),Q):Be(L)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(DM,G,Y)(L)):L===null||Be(L)?(e.exit("htmlFlowData"),Y(L)):(e.consume(L),X)}function Y(L){return e.check(LM,C,G)(L)}function C(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return L===null||Be(L)?Y(L):(e.enter("htmlFlowData"),X(L))}function A(L){return L===45?(e.consume(L),M):X(L)}function j(L){return L===47?(e.consume(L),c="",V):X(L)}function V(L){if(L===62){const F=c.toLowerCase();return uy.includes(F)?(e.consume(L),D):X(L)}return Dn(L)&&c.length<8?(e.consume(L),c+=String.fromCharCode(L),V):X(L)}function Q(L){return L===93?(e.consume(L),M):X(L)}function M(L){return L===62?(e.consume(L),D):L===45&&s===2?(e.consume(L),M):X(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 IM(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function BM(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(bo,t,i)}}const UM={name:"htmlText",tokenize:HM};function HM(e,t,i){const a=this;let s,o,c;return d;function d(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),B):M===63?(e.consume(M),E):Dn(M)?(e.consume(M),I):i(M)}function f(M){return M===45?(e.consume(M),m):M===91?(e.consume(M),o=0,_):Dn(M)?(e.consume(M),k):i(M)}function m(M){return M===45?(e.consume(M),x):i(M)}function p(M){return M===null?i(M):M===45?(e.consume(M),y):Be(M)?(c=p,j(M)):(e.consume(M),p)}function y(M){return M===45?(e.consume(M),x):p(M)}function x(M){return M===62?A(M):M===45?y(M):p(M)}function _(M){const D="CDATA[";return M===D.charCodeAt(o++)?(e.consume(M),o===D.length?N:_):i(M)}function N(M){return M===null?i(M):M===93?(e.consume(M),S):Be(M)?(c=N,j(M)):(e.consume(M),N)}function S(M){return M===93?(e.consume(M),w):N(M)}function w(M){return M===62?A(M):M===93?(e.consume(M),w):N(M)}function k(M){return M===null||M===62?A(M):Be(M)?(c=k,j(M)):(e.consume(M),k)}function E(M){return M===null?i(M):M===63?(e.consume(M),O):Be(M)?(c=E,j(M)):(e.consume(M),E)}function O(M){return M===62?A(M):E(M)}function B(M){return Dn(M)?(e.consume(M),R):i(M)}function R(M){return M===45||Tn(M)?(e.consume(M),R):U(M)}function U(M){return Be(M)?(c=U,j(M)):tt(M)?(e.consume(M),U):A(M)}function I(M){return M===45||Tn(M)?(e.consume(M),I):M===47||M===62||At(M)?K(M):i(M)}function K(M){return M===47?(e.consume(M),A):M===58||M===95||Dn(M)?(e.consume(M),z):Be(M)?(c=K,j(M)):tt(M)?(e.consume(M),K):A(M)}function z(M){return M===45||M===46||M===58||M===95||Tn(M)?(e.consume(M),z):q(M)}function q(M){return M===61?(e.consume(M),X):Be(M)?(c=q,j(M)):tt(M)?(e.consume(M),q):K(M)}function X(M){return M===null||M===60||M===61||M===62||M===96?i(M):M===34||M===39?(e.consume(M),s=M,Y):Be(M)?(c=X,j(M)):tt(M)?(e.consume(M),X):(e.consume(M),C)}function Y(M){return M===s?(e.consume(M),s=void 0,$):M===null?i(M):Be(M)?(c=Y,j(M)):(e.consume(M),Y)}function C(M){return M===null||M===34||M===39||M===60||M===61||M===96?i(M):M===47||M===62||At(M)?K(M):(e.consume(M),C)}function $(M){return M===47||M===62||At(M)?K(M):i(M)}function A(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):i(M)}function j(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),V}function V(M){return tt(M)?ot(e,Q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):Q(M)}function Q(M){return e.enter("htmlTextData"),c(M)}}const bp={name:"labelEnd",resolveAll:FM,resolveTo:GM,tokenize:VM},$M={tokenize:YM},qM={tokenize:XM},PM={tokenize:KM};function FM(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)?ot(e,d,"whitespace")(f):d(f))}}const qn={continuation:{tokenize:aO},exit:lO,name:"list",tokenize:rO},nO={partial:!0,tokenize:oO},iO={partial:!0,tokenize:sO};function rO(e,t,i){const a=this,s=a.events[a.events.length-1];let o=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:Am(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(tu,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 Am(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(bo,a.interrupt?i:m,e.attempt(nO,y,p))}function m(x){return a.containerState.initialBlankLine=!0,o++,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=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function aO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(bo,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ot(e,t,"listItemIndent",a.containerState.size+1)(d)}function o(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(iO,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(qn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function sO(e,t,i){const a=this;return ot(e,s,"listItemIndent",a.containerState.size+1);function s(o){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(o):i(o)}}function lO(e){e.exit(this.containerState.type)}function oO(e,t,i){const a=this;return ot(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!tt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):i(o)}}const dy={name:"setextUnderline",resolveTo:cO,tokenize:uO};function cO(e,t){let i=e.length,a,s,o;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),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function uO(e,t,i){const a=this;let s;return o;function o(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)?ot(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):i(f)}}const dO={tokenize:fO};function fO(e){const t=this,i=e.attempt(bo,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(bM,s)),"linePrefix")));return i;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const hO={resolveAll:iw()},mO=nw("string"),pO=nw("text");function nw(e){return{resolveAll:iw(e==="text"?gO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],o=i.attempt(s,c,d);return c;function c(m){return f(m)?o(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"),o(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()}o>0&&c.push(e[s].slice(0,o))}return c}function CO(e,t){let i=-1;const a=[];let s;for(;++i0){const on=Oe.tokenStack[Oe.tokenStack.length-1];(on[1]||hy).call(Oe,void 0,on[0])}for(xe.position={start:Jr(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Jr(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function PO(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function FO(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function GO(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Vs(a.toLowerCase()),o=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=o+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 VO(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 YO(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function sw(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),o=s[0];o&&o.type==="text"?o.value="["+o.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 XO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return sw(e,t);const s={src:Vs(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function KO(e,t){const i={src:Vs(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 ZO(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 QO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return sw(e,t);const s={href:Vs(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function WO(e,t){const i={href:Vs(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 JO(e,t,i){const a=e.all(t),s=i?eR(i):lw(t),o={},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:[]}),o.className=["task-list-item"]}let d=-1;for(;++d1}function tR(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=dp(t.children[1]),h=H_(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function sR(e,t,i){const a=i?i.children:void 0,o=(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 o.push(gy(t.slice(s),s>0,!1)),o.join("")}function gy(e,t,i){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===my||o===py;)a++,o=e.codePointAt(a)}if(i){let o=e.codePointAt(s-1);for(;o===my||o===py;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function cR(e,t){const i={type:"text",value:oR(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function uR(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const dR={blockquote:HO,break:$O,code:qO,delete:PO,emphasis:FO,footnoteReference:GO,heading:VO,html:YO,imageReference:XO,image:KO,inlineCode:ZO,linkReference:QO,link:WO,listItem:JO,list:tR,paragraph:nR,root:iR,strong:rR,table:aR,tableCell:lR,tableRow:sR,text:cR,thematicBreak:uR,toml:Hc,yaml:Hc,definition:Hc,footnoteDefinition:Hc};function Hc(){}const ow=-1,Cu=0,Wl=1,uu=2,xp=3,yp=4,vp=5,_p=6,cw=7,uw=8,dw=typeof self=="object"?self:globalThis,by=(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 dw[e](t)},fR=(e,t)=>{const i=(s,o)=>(e.set(o,s),s),a=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case Cu:case ow:return i(c,s);case Wl:{const d=i([],s);for(const h of c)d.push(a(h));return d}case uu:{const d=i({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case xp:return i(new Date(c),s);case yp:{const{source:d,flags:h}=c;return i(new RegExp(d,h),s)}case vp:{const d=i(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case _p:{const d=i(new Set,s);for(const h of c)d.add(a(h));return d}case cw:{const{name:d,message:h}=c;return i(typeof dw[d]=="function"?by(d,h):new Error(h),s)}case uw: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(by(o,c),s)};return a},xy=e=>fR(new Map,e)(0),Ca="",{toString:hR}={},{keys:mR}=Object,Pl=e=>{const t=typeof e;if(t!=="object"||!e)return[Cu,t];const i=hR.call(e).slice(8,-1);switch(i){case"Array":return[Wl,Ca];case"Object":return[uu,Ca];case"Date":return[xp,Ca];case"RegExp":return[yp,Ca];case"Map":return[vp,Ca];case"Set":return[_p,Ca];case"DataView":return[Wl,i]}return i.includes("Array")?[Wl,i]:e instanceof Error?[cw,e.name||"Error"]:[uu,i]},$c=([e,t])=>e===Cu&&(t==="function"||t==="symbol"),pR=(e,t,i,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return i.set(d,h),h},o=c=>{if(i.has(c))return i.get(c);let[d,h]=Pl(c);switch(d){case Cu:{let m=c;switch(h){case"bigint":d=uw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return s([ow],c)}return s([d,m],c)}case Wl:{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(o(y));return p}case uu:{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 o(c.toJSON());const m=[],p=s([d,m],c);for(const y of mR(c))(e||!$c(Pl(c[y])))&&m.push([o(y),o(c[y])]);return p}case xp:return s([d,isNaN(c.getTime())?Ca:c.toISOString()],c);case yp:{const{source:m,flags:p}=c;return s([d,{source:m,flags:p}],c)}case vp:{const m=[],p=s([d,m],c);for(const[y,x]of c)(e||!($c(Pl(y))||$c(Pl(x))))&&m.push([o(y),o(x)]);return p}case _p:{const m=[],p=s([d,m],c);for(const y of c)(e||!$c(Pl(y)))&&m.push(o(y));return p}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return o},yy=(e,{json:t,lossy:i}={})=>{const a=[];return pR(!(t||i),!!t,new Map,a)(e),a},du=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xy(yy(e,t)):structuredClone(e):(e,t)=>xy(yy(e,t));function gR(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 bR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||gR,a=e.options.footnoteBackLabel||bR,s=e.options.footnoteLabel||"Footnotes",o=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:o,properties:{...du(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 Mu=(function(e){if(e==null)return wR;if(typeof e=="function")return Ou(e);if(typeof e=="object")return Array.isArray(e)?yR(e):vR(e);if(typeof e=="string")return _R(e);throw new Error("Expected function, string, or object as test")});function yR(e){const t=[];let i=-1;for(;++i":""))+")"})}return y;function y(){let x=fw,_,N,S;if((!t||o(h,f,m[m.length-1]||void 0))&&(x=kR(i(h,m)),x[0]===Mm))return x;if("children"in h&&h.children){const w=h;if(w.children&&x[0]!==SR)for(N=(a?w.children.length:-1)+c,S=m.concat(w);N>-1&&N0&&i.push({type:"text",value:` +`}),i}function vy(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function _y(e,t){const i=AR(e,t),a=i.one(e,void 0),s=xR(i),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` +`},s),o}function DR(e,t){return e&&"run"in e?async function(i,a){const s=_y(i,{file:a,...t});await e.run(s,a)}:function(i,a){return _y(i,{file:a,...e||t})}}function wy(e){if(e)throw e}var lh,Ey;function LR(){if(Ey)return lh;Ey=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]"},o=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 lh=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(o,s):h instanceof Error?s(h):o(h))}function s(c,...d){i||(i=!0,t(c,...d))}function o(c){s(null,c)}}const $i={basename:BR,dirname:UR,extname:HR,join:$R,sep:"/"};function BR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xo(e);let i=0,a=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else a<0&&(o=!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(o){i=s+1;break}}else c<0&&(o=!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 UR(e){if(xo(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 HR(e){xo(e);let t=e.length,i=-1,a=0,s=-1,o=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:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function $R(...e){let t=-1,i;for(;++t0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function PR(e,t){let i="",a=0,s=-1,o=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,o=0;continue}}else if(i.length>0){i="",a=0,s=c,o=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,o=0}else d===46&&o>-1?o++:o=-1}return i}function xo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FR={cwd:GR};function GR(){return"/"}function Dm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function VR(e){if(typeof e=="string")e=new URL(e);else if(!Dm(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 YR(e)}function YR(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];Rm(N)&&Rm(x)&&(x=oh(!0,N,x)),a[y]=[f,x,..._]}}}}const QR=new Ep().freeze();function fh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mh(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 Sy(e){if(!Rm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ky(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qc(e){return WR(e)?e:new mw(e)}function WR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function JR(e){return typeof e=="string"||e5(e)}function e5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const t5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ty=[],Ay={allowDangerousHtml:!0},n5=/^(https?|ircs?|mailto|xmpp)$/i,i5=[{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 Np(e){const t=r5(e),i=a5(e);return s5(t.runSync(t.parse(i),i),e)}function r5(e){const t=e.rehypePlugins||Ty,i=e.remarkPlugins||Ty,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ay}:Ay;return QR().use(UO).use(i).use(DR,a).use(t)}function a5(e){const t=e.children||"",i=new mw;return typeof t=="string"&&(i.value=t),i}function s5(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||l5;for(const m of i5)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+t5+m.id,void 0);return wp(e,f),wC(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 rh)if(Object.hasOwn(rh,x)&&Object.hasOwn(m.properties,x)){const _=m.properties[x],N=rh[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):o?o.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 l5(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||n5.test(e.slice(0,t))?e:""}function Cy(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 o5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function c5(e,t,i){const s=Mu((i||{}).ignore||[]),o=u5(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=Cy(e,"(");let o=Cy(e,")");for(;a!==-1&&s>o;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),o++;return[e,i]}function pw(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||za(i)||Tu(i))&&(!t||i!==47)}gw.peek=D5;function S5(){this.buffer()}function k5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function T5(){this.buffer()}function A5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function C5(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 M5(e){this.exit(e)}function O5(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 R5(e){this.exit(e)}function D5(){return"["}function gw(e,t,i,a){const s=i.createTracker(a);let o=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return o+=s.move(i.safe(i.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function L5(){return{enter:{gfmFootnoteCallString:S5,gfmFootnoteCall:k5,gfmFootnoteDefinitionLabelString:T5,gfmFootnoteDefinition:A5},exit:{gfmFootnoteCallString:C5,gfmFootnoteCall:M5,gfmFootnoteDefinitionLabelString:O5,gfmFootnoteDefinition:R5}}}function z5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:gw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,o,c){const d=o.createTracker(c);let h=d.move("[^");const f=o.enter("footnoteDefinition"),m=o.enter("label");return h+=d.move(o.safe(o.associationId(a),{before:h,after:"]"})),m(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?` +`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?bw:j5))),f(),h}}function j5(e,t,i){return t===0?e:bw(e,t,i)}function bw(e,t,i){return(i?"":" ")+e}const I5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xw.peek=q5;function B5(){return{canContainEols:["delete"],enter:{strikethrough:H5},exit:{strikethrough:$5}}}function U5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:I5}],handlers:{delete:xw}}}function H5(e){this.enter({type:"delete",children:[]},e)}function $5(e){this.exit(e)}function xw(e,t,i,a){const s=i.createTracker(a),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function q5(){return"~"}function P5(e){return e.length}function F5(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||P5,o=[],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 "),o.shift(2);const c=i.indentLines(i.containerFlow(e,o.current()),Y5);return s(),c}function Y5(e,t,i){return">"+(i?"":" ")+e}function X5(e,t){return Oy(e,t.inConstruct,!0)&&!Oy(e,t.notInConstruct,!1)}function Oy(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++ac&&(c=o):o=1,s=a+t.length,a=i.indexOf(t,s);return c}function Z5(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 Q5(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 W5(e,t,i,a){const s=Q5(i),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(Z5(e,i)){const p=i.enter("codeIndented"),y=i.indentLines(o,J5);return p(),y}const d=i.createTracker(a),h=s.repeat(Math.max(K5(o,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(` +`),o&&(m+=d.move(o+` +`)),m+=d.move(h),f(),m}function J5(e,t,i){return(i?"":" ")+e}function Sp(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 e3(e,t,i,a){const s=Sp(i),o=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${o}`),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 t3(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 io(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fu(e,t,i){const a=js(e),s=js(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}}yw.peek=n3;function yw(e,t,i,a){const s=t3(i),o=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=fu(a.before.charCodeAt(a.before.length-1),f,s);m.inside&&(h=io(f)+h.slice(1));const p=h.charCodeAt(h.length-1),y=fu(a.after.charCodeAt(0),p,s);y.inside&&(h=h.slice(0,-1)+io(p));const x=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+h+x}function n3(e,t,i){return i.options.emphasis||"*"}function i3(e,t){let i=!1;return wp(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Mm}),!!((!e.depth||e.depth<3)&&pp(e)&&(t.options.setext||i))}function r3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(a);if(i3(e,i)){const m=i.enter("headingSetext"),p=i.enter("phrasing"),y=i.containerPhrasing(e,{...o.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");o.move(c+" ");let f=i.containerPhrasing(e,{before:"# ",after:` +`,...o.current()});return/^[\t ]/.test(f)&&(f=io(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,i.options.closeAtx&&(f+=" "+c),h(),d(),f}vw.peek=a3;function vw(e){return e.value||""}function a3(){return"<"}_w.peek=s3;function _w(e,t,i,a){const s=Sp(i),o=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${o}`),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 s3(){return"!"}ww.peek=l3;function ww(e,t,i,a){const s=e.referenceType,o=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,o(),s==="full"||!f||f!==p?h+=d.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function l3(){return"!"}Ew.peek=o3;function Ew(e,t,i){let a=e.value||"",s="`",o=-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+" ");++o\u007F]/.test(e.url))}Sw.peek=c3;function Sw(e,t,i,a){const s=Sp(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,h;if(Nw(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${o}`),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 c3(e,t,i){return Nw(e,i)?"<":"["}kw.peek=u3;function kw(e,t,i,a){const s=e.referenceType,o=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,o(),s==="full"||!f||f!==p?h+=d.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function u3(){return"["}function kp(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 d3(e){const t=kp(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 f3(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 Tw(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 h3(e,t,i,a){const s=i.enter("list"),o=i.bulletCurrent;let c=e.ordered?f3(i):kp(i);const d=e.ordered?c==="."?")":".":d3(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),Tw(i)===c&&m){let p=-1;for(;++p-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.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(o+" ".repeat(c-o.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?o:o+" ".repeat(c-o.length))+p}}function g3(e,t,i,a){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(e,a);return o(),s(),c}const b3=Mu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function x3(e,t,i,a){return(e.children.some(function(c){return b3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function y3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Aw.peek=v3;function Aw(e,t,i,a){const s=y3(i),o=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=fu(a.before.charCodeAt(a.before.length-1),f,s);m.inside&&(h=io(f)+h.slice(1));const p=h.charCodeAt(h.length-1),y=fu(a.after.charCodeAt(0),p,s);y.inside&&(h=h.slice(0,-1)+io(p));const x=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+h+x}function v3(e,t,i){return i.options.strong||"*"}function _3(e,t,i,a){return i.safe(e.value,a)}function w3(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 E3(e,t,i){const a=(Tw(i)+(i.options.ruleSpaces?" ":"")).repeat(w3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const Cw={blockquote:V5,break:Ry,code:W5,definition:e3,emphasis:yw,hardBreak:Ry,heading:r3,html:vw,image:_w,imageReference:ww,inlineCode:Ew,link:Sw,linkReference:kw,list:h3,listItem:p3,paragraph:g3,root:x3,strong:Aw,text:_3,thematicBreak:E3};function N3(){return{enter:{table:S3,tableData:Dy,tableHeader:Dy,tableRow:T3},exit:{codeText:A3,table:k3,tableData:xh,tableHeader:xh,tableRow:xh}}}function S3(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 k3(e){this.exit(e),this.data.inTable=void 0}function T3(e){this.enter({type:"tableRow",children:[]},e)}function xh(e){this.exit(e)}function Dy(e){this.enter({type:"tableCell",children:[]},e)}function A3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,C3));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function C3(e,t){return t==="|"?t:e}function M3(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=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:o,after:o});return k(),w(),E}function f(x,_){return F5(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 X3={tokenize:nD,partial:!0};function K3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:J3,continuation:{tokenize:eD},exit:tD}},text:{91:{name:"gfmFootnoteCall",tokenize:W3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Z3,resolveTo:Q3}}}}function Z3(e,t,i){const a=this;let s=a.events.length;const o=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||!o.includes(f.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function Q3(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 o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function W3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=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(o>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),o++,e.consume(p),p===92?m:f}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function J3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,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 o=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(o)||s.push(o),ot(e,x,"gfmFootnoteDefinitionWhitespace")):i(_)}function x(_){return t(_)}}function eD(e,t,i){return e.check(bo,t,e.attempt(X3,t,i))}function tD(e){e.exit("gfmFootnoteDefinition")}function nD(e,t,i){const a=this;return ot(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):i(o)}}function iD(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,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=js(_);return S._open=!w||w===2&&!!N,S._close=!N||N===2&&!!w,d(_)}}}class rD{constructor(){this.map=[]}add(t,i,a){aD(this,t,i,a)}consume(t){if(this.map.sort(function(o,c){return o[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 o of s)t.push(o);s=a.pop()}this.map.length=0}}function aD(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 X=q>-1?a.events[q][1].type:null,Y=X==="tableHead"||X==="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,o+=1),m(z)}function m(z){return z===null?i(z):Be(z)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),x):i(z):tt(z)?ot(e,m,"whitespace")(z):(o+=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)?ot(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):B(z)}function N(z){return tt(z)?ot(e,S,"whitespace")(z):S(z)}function S(z){return z===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),w):z===45?(o+=1,w(z)):z===null||Be(z)?O(z):B(z)}function w(z){return z===45?(e.enter("tableDelimiterFiller"),k(z)):B(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)?ot(e,O,"whitespace")(z):O(z)}function O(z){return z===124?_(z):z===null||Be(z)?!c||s!==o?B(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):B(z)}function B(z){return i(z)}function R(z){return e.enter("tableRow"),U(z)}function U(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),U):z===null||Be(z)?(e.exit("tableRow"),t(z)):tt(z)?ot(e,U,"whitespace")(z):(e.enter("data"),I(z))}function I(z){return z===null||z===124||At(z)?(e.exit("data"),U(z)):(e.consume(z),z===92?K:I)}function K(z){return z===92||z===124?(e.consume(z),I):I(z)}}function cD(e,t){let i=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,m,p;const y=new rD;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&&(o.end=Object.assign({},ks(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function zy(e,t,i,a,s){const o=[],c=ks(t.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),a.end=Object.assign({},c),o.push(["exit",a,t]),e.add(i+1,0,o)}function ks(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const uD={name:"tasklistCheck",tokenize:fD};function dD(){return{text:{91:uD}}}function fD(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"),o)}function o(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:hD},t,i)(h):i(h)}}function hD(e,t,i){return ot(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function mD(e){return Y_([U3(),K3(),iD(e),lD(),dD()])}const pD={};function Ap(e){const t=this,i=e||pD,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(mD(i)),o.push(z3()),c.push(j3(i))}var yh,jy;function gD(){if(jy)return yh;jy=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="",o=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(!o(me))return;const Ee=c(me.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(me){o(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 B(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/,U="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",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]},A={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},j={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/},V=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},Q=V("//","$"),M=V("/\\*","\\*/"),D=V("#","$"),G={scope:"number",begin:K,relevance:0},L={scope:"number",begin:z,relevance:0},F={scope:"number",begin:q,relevance:0},H={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]},Z={scope:"title",begin:U,relevance:0},J={scope:"title",begin:I,relevance:0},W={begin:"\\.\\s*"+I,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:C,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:q,COMMENT:V,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:Q,C_NUMBER_MODE:L,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:D,IDENT_RE:U,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:G,NUMBER_RE:K,PHRASAL_WORDS_MODE:j,QUOTE_STRING_MODE:A,REGEXP_MODE:H,RE_STARTERS_RE:X,SHEBANG:Y,TITLE_MODE:Z,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,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=B(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=B(ne.end,{joinWith:""})}}function on(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function En(ne){on(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(B(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,vr)=>vr>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,yr=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,Ks]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(Tr+=Ks),si.startsWith("_"))Ye+=Re[0];else{const To=un.classNameAliases[si]||si;On(Re[0],To)}}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,ko[qe.subLanguage]),ko[qe.subLanguage]=_e._top}else _e=_r(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Tr+=_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 Ga(_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 Nr(_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&&(Ga(_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 Sr(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Ar=!0,0)}function Va(_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 Sr(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Nr(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(),Ga(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&&(Tr+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&Nr(it.starts,_e),$t.returnEnd?0:Re.length}function ca(){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 kr(_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 Va(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(Xs>1e5&&Xs>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 ua=Kt(un);let Ya="",qe=ft||ua;const ko={},Jt=new Se.__emitter(Se);ca();let bt="",Tr=0,Zi=0,Xs=0,Ar=!1;try{if(un.__emitTokens)un.__emitTokens(ze,Jt);else{for(qe.matcher.considerAll();;){Xs++,Ar?Ar=!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=kr(Re,_e);Zi=_e.index+Ye}kr(ze.substring(Zi))}return Jt.finalize(),Ya=Jt.toHTML(),{language:ye,value:Ya,relevance:Tr,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:Ya},_emitter:Jt};if(St)return{language:ye,value:cn(ze),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function vr(ye){const ze={value:cn(ye),illegal:!1,relevance:0,_top:Ce,_emitter:new Se.__emitter(Se)};return ze._emitter.addText(ye),ze}function _r(ye,ze){ze=ze||Se.languages||Object.keys(me);const Qe=vr(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}):_r(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=yr(Se,ye)}const xi=()=>{Er(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function wr(){Er(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let la=!1;function Er(){function ye(){Er()}if(document.readyState==="loading"){la||window.addEventListener("DOMContentLoaded",ye,!1),la=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Pa(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 oa(){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 Fa(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:_r,highlightAll:Er,highlightElement:Ut,highlightBlock:_i,configure:mn,initHighlighting:xi,initHighlightingOnLoad:wr,registerLanguage:Pa,unregisterLanguage:Xi,listLanguages:oa,getLanguage:bn,registerAliases:yi,autoDetection:vi,inherit:yr,addPlugin:Ft,removePlugin:Fa}),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({}),yh=hn,hn.HighlightJS=hn,hn.default=hn,yh}var vh,Iy;function bD(){if(Iy)return vh;Iy=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,o={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},o,{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 vh=e,vh}var _h,By;function xD(){if(By)return _h;By=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 o={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,o]};o.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"],B=["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",...B,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,h,f,m,p,a]}}return _h=e,_h}var wh,Uy;function yD(){if(Uy)return wh;Uy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(o)+"[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(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+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 wh=e,wh}var Eh,Hy;function vD(){if(Hy)return Eh;Hy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(o)+"[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(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+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"],B={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*\(/))},U=[R,y,h,a,t.C_BLOCK_COMMENT_MODE,p,m],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:U.concat([{begin:/\(/,end:/\)/,keywords:B,contains:U.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:B,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:B,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,m,p,h,{begin:/\(/,end:/\)/,keywords:B,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:B,illegal:"",keywords:B,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Eh=e,Eh}var Nh,$y;function _D(){if($y)return Nh;$y=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"],o=["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:o.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+")*>)?(\\[\\])?",B={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]},B]}}return Nh=e,Nh}var Sh,qy;function wD(){if(qy)return Sh;qy=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(),o=["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:":("+o.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 Sh=h,Sh}var kh,Py;function ED(){if(Py)return kh;Py=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},o={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:"$"},o,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return kh=e,kh}var Th,Fy;function ND(){if(Fy)return Th;Fy=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 Th=e,Th}var Ah,Gy;function SD(){if(Gy)return Ah;Gy=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]+/),o=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}]},U=[y,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:d},{relevance:0,match:[o,/\.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=U,S.contains=U;const q=[{begin:/^\s*=>/,starts:{end:"$",contains:U}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:d,contains:U}}];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(U)}}return Ah=e,Ah}var Ch,Vy;function kD(){if(Vy)return Ch;Vy=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 o(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 Rh=o,Rh}var Dh,Zy;function MD(){if(Zy)return Dh;Zy=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"],o=["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(o,a,s);function h(f){const m=f.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,ce=J.input[ee];if(ce==="<"||ce===","){W.ignoreMatch();return}ce===">"&&(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]*",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},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},U={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,B]},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]},X=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,U,I,K,{match:/\$\d+/},O];B.contains=X.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(X)});const Y=[].concat(q,B.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},A={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"}}]},j={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]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},M={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([...o,"super","import"].map(J=>`${J}\\s*\\(`)),y,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:m.concat(/\./,m.lookahead(m.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},H="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(H)],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:j},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,U,I,K,q,{match:/\$\d+/},O,j,{scope:"attr",match:y+m.lookahead(":"),relevance:0},Z,{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:H,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"]}]}]},Q,{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},L,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},G,M,A,F,{match:/\$[(.]/}]}}return Dh=h,Dh}var Lh,Qy;function OD(){if(Qy)return Lh;Qy=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"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Lh=e,Lh}var zh,Wy;function RD(){if(Wy)return zh;Wy=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(o){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:o.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},m={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[m,f]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,m,f]}]};f.contains.push(p);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(p,{className:"string"}),"self"]}]},_=a,N=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:o.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:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,N,d,h,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.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,o.C_LINE_COMMENT_MODE,N],relevance:0},o.C_LINE_COMMENT_MODE,N,y,x,p,o.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.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 zh=s,zh}var jh,Jy;function DD(){if(Jy)return jh;Jy=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(),o=["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=o.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(" ")},B={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,B,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}),U={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}}]},K={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,U,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:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},p.FUNCTION_DISPATCH]},X={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[q]};return S.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,K,z,X,I,q,U,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return jh=f,jh}var Ih,ev;function LD(){if(ev)return Ih;ev=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},o=[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:o.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:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return Ih=e,Ih}var Bh,tv;function zD(){if(tv)return Bh;tv=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:o,contains:N}}return Uh=e,Uh}var Hh,iv;function ID(){if(iv)return Hh;iv=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 Hh=e,Hh}var $h,rv;function BD(){if(rv)return $h;rv=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),o=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":($,A)=>{A.data._beginMatch=$[1]||$[2]},"on:end":($,A)=>{A.data._beginMatch!==$[1]&&A.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"],B={keyword:k,literal:($=>{const A=[];return $.forEach(j=>{A.push(j),j.toLowerCase()===j?A.push(j.toUpperCase()):A.push(j.toLowerCase())}),A})(w),built_in:E},R=$=>$.map(A=>A.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(E).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},I=i.concat(s,"\\b(?!\\()"),K={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[o,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/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:B,contains:[z,d,K,t.C_BLOCK_COMMENT_MODE,N,S,U]},X={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(X);const Y=[z,K,t.C_BLOCK_COMMENT_MODE,N,S,U],C={begin:i.concat(/#\[\s*\\?/,i.either(o,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:o},{match:c}]}]};return{case_insensitive:!1,keywords:B,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,X,K,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},U,{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:B,contains:["self",C,d,K,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 $h=e,$h}var qh,av;function UD(){if(av)return qh;av=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 qh=e,qh}var Ph,sv;function HD(){if(sv)return Ph;sv=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Ph=e,Ph}var Fh,lv;function $D(){if(lv)return Fh;lv=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 Fh=e,Fh}var Gh,ov;function qD(){if(ov)return Gh;ov=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Gh=e,Gh}var Vh,cv;function PD(){if(cv)return Vh;cv=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]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[o,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:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Vh=e,Vh}var Yh,uv;function FD(){if(uv)return Yh;uv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),o=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,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 Yh=e,Yh}var Xh,dv;function GD(){if(dv)return Xh;dv=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(),o=["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=o,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 Xh=h,Xh}var Kh,fv;function VD(){if(fv)return Kh;fv=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 Kh=e,Kh}var Zh,hv;function YD(){if(hv)return Zh;hv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={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(U=>U.replace(/\s+/,"\\s+"))),/\b/)}const O={scope:"keyword",match:E(x),relevance:0};function B(R,{exceptions:U,when:I}={}){const K=I;return U=U||[],R.map(z=>z.match(/\|\d+$/)||U.includes(z)?z:K(z)?`${z}|0`:z)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(N,{when:R=>R.length<3}),literal:c,type:h,built_in:y},contains:[{scope:"type",match:E(d)},O,k,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,w]}}return Zh=e,Zh}var Qh,mv;function XD(){if(mv)return Qh;mv=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(z=>e(z)).join("")}function a(I){const K=I[I.length-1];return typeof K=="object"&&K.constructor===Object?(I.splice(I.length-1,1),K):{}}function s(...I){return"("+(a(I).capture?"":"?:")+I.map(q=>e(q)).join("|")+")"}const o=I=>i(/\b/,I,/\w$/.test(I)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),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,"*"),B=["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 U(I){const K={match:/\s+/,relevance:0},z=I.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[I.C_LINE_COMMENT_MODE,z],X={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(o),A={variants:[{className:"keyword",match:s(...$,...d)}]},j={$pattern:s(/\b\w+/,/#\w+/),keyword:C.concat(y),literal:m},V=[X,Y,A],Q={match:i(/\./,s(...x)),relevance:0},M={className:"built_in",match:i(/\b/,s(...x),/(?=\()/)},D=[Q,M],G={match:/->/,relevance:0},L={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[G,L],H="([0-9]_*)+",Z="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${H})(\\.(${H}))?([eE][+-]?(${H}))?\\b`},{match:`\\b0x(${Z})(\\.(${Z}))?([pP][+-]?(${H}))?\\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)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),ee(nt),ce(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),ce(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(...B),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:j,contains:[...q,...V,...It,G,ue]};ue.contains.push(xe);const Oe={match:i(E,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:j,contains:["self",Oe,...q,st,...V,...D,...F,J,we,...Xt,...It,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},on={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:j,contains:[on,...q,...V,...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,K],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,En,K],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"}},yr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,E,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:j,contains:[Ze,...V,{begin:/:/,end:/\{/,keywords:j,contains:[{scope:"title.class.inherited",match:O},...V],relevance:0}]};for(const nt of we.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=j;const Cn=[...V,...D,...F,J,we,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:j,contains:[...q,Kt,Ct,zn,cn,yr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},st,...V,...D,...F,J,we,...Xt,...It,ue,Fe]}}return Qh=U,Qh}var Wh,pv;function KD(){if(pv)return Wh;pv=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]|$)/}]},o={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,o]},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 Wh=e,Wh}var Jh,gv;function ZD(){if(gv)return Jh;gv=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"],o=["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(o,a,s);function h(m){const p=m.regex,y=(W,{after:ee})=>{const ce="",end:""},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const ce=W[0].length+W.index,fe=W.input[ce];if(fe==="<"||fe===","){ee.ignoreMatch();return}fe===">"&&(y(W,{after:ce})||ee.ignoreMatch());let be;const we=W.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]*",B={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:[]},U={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"}},K={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,R]},X={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,U,I,K,z,{match:/\$\d+/},B];R.contains=Y.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(Y)});const C=[].concat(X,R.contains),$=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(C)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:$},j={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"}}]},V={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]}},Q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],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([...o,"super","import"].map(W=>`${W}\\s*\\(`)),x,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:p.concat(/\./,p.lookahead(p.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},Z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:$,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),Q,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,U,I,K,z,X,{match:/\$\d+/},B,V,{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:[X,m.REGEXP_MODE,{className:"function",begin:Z,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"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,m.inherit(m.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},L,D,j,H,{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},B=(K,z,q)=>{const X=K.contains.findIndex(Y=>Y.label===z);if(X===-1)throw new Error("can not find mode to replace");K.contains.splice(X,1,q)};Object.assign(y.keywords,E),y.exports.PARAMS_CONTAINS.push(O);const R=y.contains.find(K=>K.scope==="attr"),U=Object.assign({},R,{match:p.concat(x,p.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,U]),y.contains=y.contains.concat([O,N,S,U]),B(y,"shebang",m.SHEBANG()),B(y,"use_strict",w);const I=y.contains.find(K=>K.label==="func.def");return I.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return Jh=f,Jh}var em,bv;function QD(){if(bv)return em;bv=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\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,o),/ *#/)},{begin:i.concat(/# */,h,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,o),/ +/,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 em=e,em}var tm,xv;function WD(){if(xv)return tm;xv=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"],o={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,o,t.QUOTE_STRING_MODE,f,m,h]}}return tm=e,tm}var nm,yv;function JD(){if(yv)return nm;yv=1;var e=gD();return e.registerLanguage("xml",bD()),e.registerLanguage("bash",xD()),e.registerLanguage("c",yD()),e.registerLanguage("cpp",vD()),e.registerLanguage("csharp",_D()),e.registerLanguage("css",wD()),e.registerLanguage("markdown",ED()),e.registerLanguage("diff",ND()),e.registerLanguage("ruby",SD()),e.registerLanguage("go",kD()),e.registerLanguage("graphql",TD()),e.registerLanguage("ini",AD()),e.registerLanguage("java",CD()),e.registerLanguage("javascript",MD()),e.registerLanguage("json",OD()),e.registerLanguage("kotlin",RD()),e.registerLanguage("less",DD()),e.registerLanguage("lua",LD()),e.registerLanguage("makefile",zD()),e.registerLanguage("perl",jD()),e.registerLanguage("objectivec",ID()),e.registerLanguage("php",BD()),e.registerLanguage("php-template",UD()),e.registerLanguage("plaintext",HD()),e.registerLanguage("python",$D()),e.registerLanguage("python-repl",qD()),e.registerLanguage("r",PD()),e.registerLanguage("rust",FD()),e.registerLanguage("scss",GD()),e.registerLanguage("shell",VD()),e.registerLanguage("sql",YD()),e.registerLanguage("swift",XD()),e.registerLanguage("yaml",KD()),e.registerLanguage("typescript",ZD()),e.registerLanguage("vbnet",QD()),e.registerLanguage("wasm",WD()),e.HighlightJS=e,e.default=e,nm=e,nm}var e4=JD();const Fn=mo(e4);function t4(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}}]}},o=[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:o}},{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:o}},e.inherit(s,{relevance:0})]}}function n4(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 i4(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 r4(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:"{sp(o),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(Ls,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(to,{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(Ls,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(to,{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 Cp(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(o=>o.type==="element"&&o.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 Mp={code:Bw,pre:({children:e})=>g.jsx(g.Fragment,{children:e})};function na({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(Np,{remarkPlugins:[Ap],rehypePlugins:[Cp],components:Mp,children:t})})]})}class s4{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const o=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(o,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,i,a,s){var o;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=(o=a.timeout)!==null&&o!==void 0?o: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],B=x[k+1];O&&(x[k-1]=void 0);let R=!1;if(B){const I=B.oldPos-k;R=B&&0<=I&&I=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,o){const c=t.lastComponent;return c&&!o.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,o){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 l4 extends s4{constructor(){super(...arguments),this.tokenize=u4}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 o4=new l4;function c4(e,t,i){return o4.diff(e,t,i)}function u4(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"?d4(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}})),_=()=>{sp(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};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(Ls,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(to,{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 h4({description:e,scriptCode:t,onCopy:i}){const[a,s]=re.useState(!1);if(!e&&!t)return null;const o=()=>{t&&(sp(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(Np,{remarkPlugins:[Ap],rehypePlugins:[Cp],components:Mp,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:o,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(Ls,{className:"w-3.5 h-3.5 text-emerald-400"}):g.jsx(to,{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 m4(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 p4({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 g4({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?g.jsx(X2,{className:`${i} text-orange-400`}):e==="bitbucket"?g.jsx(p4,{className:`${i} text-blue-400`}):g.jsx(V2,{className:`${i} text-white`})}const b4={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"}},x4={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"}},y4={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]"},v4=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function _4(e,t,i,a,s){const o=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${o}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${o}/-/blob/${d}/${c}#L${s}`:null}function w4({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:o,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(U=>U.fix_before&&U.fix_after),k=w&&w.length>0,E=f?m4(f):null,O=!!(f||m||p||k),B=x&&Object.values(x).some(U=>U!=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 ${ap(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"})]}),o&&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:o})]}),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=XT[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(l_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),g.jsx("span",{className:"text-sm text-white",children:Em(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(g4,{provider:E.provider})}):g.jsx(np,{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((U,I)=>{const K=`${U.file}:${U.start_line}`,z=_?_4(_.repo_url,_.provider,_.branch,U.file,U.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:K},`loc-${I}`):g.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:K},`loc-${I}`)})})]})]})]}),B&&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(r_,{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:v4.map(U=>{const I=U.keys.filter(K=>x[K]!=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:U.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(K=>{var Y,C;const z=x[K],q=z?((Y=x4[K])==null?void 0:Y[z])??"low":"low",X=z?((C=b4[K])==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:X}),g.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${y4[q]}`,children:q})]},K)})})]},U.label)})})]})]})}function vv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Em(e)}`:` on ${Em(e)}`:""}const E4={open:null,in_progress:{icon:l_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:o2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:E2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:t_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function N4({vulnerability:e}){const t=YT[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),[o,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:YA(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 ${b_[e.severity]}`,title:jc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[g.jsx("div",{className:`w-2 h-2 rounded-full ${ap(e.severity)}`}),g.jsxs("span",{className:"capitalize",children:[e.severity,!jc(e)&&e.cvss?` ${e.cvss}`:""]}),jc(e)&&g.jsx(zs,{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=E4[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,vv(e.status_changed_at)]}),e.status_note&&g.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),jc(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(zs,{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}),vv(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(na,{title:"TL;DR",content:e.description}),e.impact&&g.jsx(na,{title:"Impact",content:e.impact}),e.technical_analysis&&g.jsx(na,{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 ${o===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===f.id?"page":void 0,children:[f.label,o===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 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&g.jsx(na,{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(f4,{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 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&g.jsx(na,{title:"Assumptions",content:e.assumptions}),e.evidence&&g.jsx(na,{title:"Evidence",content:e.evidence}),g.jsx(h4,{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(w4,{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(Ms,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:lu}),g.jsx(Ms,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:P2}),g.jsx(Ms,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:tp})]})]})]})}const _v=[{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 S4({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:g.jsxs("div",{className:Uc("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:_v.map(({key:s,label:o,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:Uc("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),g.jsx("span",{className:Uc("text-sm tabular-nums",d),children:h}),g.jsx("span",{className:"text-xs text-[#555]",children:o})]},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:_v.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:g.jsx("div",{className:Uc("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function ln(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i{}};function Ru(){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}})}nu.prototype=Ru.prototype={constructor:nu,on:function(e,t){var i=this._,a=T4(e+"",i),s,o=-1,c=a.length;if(arguments.length<2){for(;++o0)for(var i=new Array(s),a=0,s,o;a=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Ev.hasOwnProperty(t)?{space:Ev[t],local:e}:e}function C4(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===zm&&t.documentElement.namespaceURI===zm?t.createElement(e):t.createElementNS(i,e)}}function M4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Uw(e){var t=Du(e);return(t.local?M4:C4)(t)}function O4(){}function Op(e){return e==null?O4:function(){return this.querySelector(e)}}function R4(e){typeof e!="function"&&(e=Op(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s=E&&(E=k+1);!(B=S[E])&&++E<_;);O._next=B||null}}return c=new ri(c,a),c._enter=d,c._exit=h,c}function W4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function J4(){return new ri(this._exit||this._groups.map(Pw),this._parents)}function eL(e,t,i){var a=this.enter(),s=this,o=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?o.remove():i(o),a&&s?a.merge(s).order():s}function tL(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,o=a.length,c=Math.min(s,o),d=new Array(s),h=0;h=0;)(c=a[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function iL(e){e||(e=rL);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),o=0;ot?1:e>=t?0:NaN}function aL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function sL(){return Array.from(this)}function lL(){for(var e=this._groups,t=0,i=e.length;t1?this.each((t==null?xL:typeof t=="function"?vL:yL)(e,t,i??"")):Is(this.node(),e)}function Is(e,t){return e.style.getPropertyValue(t)||Fw(e).getComputedStyle(e,null).getPropertyValue(t)}function wL(e){return function(){delete this[e]}}function EL(e,t){return function(){this[e]=t}}function NL(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function SL(e,t){return arguments.length>1?this.each((t==null?wL:typeof t=="function"?NL:EL)(e,t)):this.node()[e]}function Gw(e){return e.trim().split(/^|\s+/)}function Rp(e){return e.classList||new Vw(e)}function Vw(e){this._node=e,this._names=Gw(e.getAttribute("class")||"")}Vw.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 Yw(e,t){for(var i=Rp(e),a=-1,s=t.length;++a=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function JL(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,o;i()=>e;function jm(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:o,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:o,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}})}jm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function cz(e){return!e.ctrlKey&&!e.button}function uz(){return this.parentNode}function dz(e,t){return t??{x:e.x,y:e.y}}function fz(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jw(){var e=cz,t=uz,i=dz,a=fz,s={},o=Ru("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,oz).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(O,B){if(!(m||!e.call(this,O,B))){var R=E(this,t.call(this,O,B),O,B,"mouse");R&&(ni(O.view).on("mousemove.drag",_,ro).on("mouseup.drag",N,ro),Qw(O.view),im(O),f=!1,d=O.clientX,h=O.clientY,R("start",O))}}function _(O){if(Os(O),!f){var B=O.clientX-d,R=O.clientY-h;f=B*B+R*R>p}s.mouse("drag",O)}function N(O){ni(O.view).on("mousemove.drag mouseup.drag",null),Ww(O.view,f),Os(O),s.mouse("end",O)}function S(O,B){if(e.call(this,O,B)){var R=O.changedTouches,U=t.call(this,O,B),I=R.length,K,z;for(K=0;K>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?Gc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?Gc(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=mz.exec(e))?new Pn(t[1],t[2],t[3],1):(t=pz.exec(e))?new Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=gz.exec(e))?Gc(t[1],t[2],t[3],t[4]):(t=bz.exec(e))?Gc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xz.exec(e))?Mv(t[1],t[2]/100,t[3]/100,1):(t=yz.exec(e))?Mv(t[1],t[2]/100,t[3]/100,t[4]):Nv.hasOwnProperty(e)?Tv(Nv[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function Tv(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Gc(e,t,i,a){return a<=0&&(e=t=i=NaN),new Pn(e,t,i,a)}function wz(e){return e instanceof vo||(e=ja(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function Im(e,t,i,a){return arguments.length===1?wz(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}Dp(Pn,Im,eE(vo,{brighter(e){return e=e==null?mu:Math.pow(mu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Da(this.r),Da(this.g),Da(this.b),pu(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:Av,formatHex:Av,formatHex8:Ez,formatRgb:Cv,toString:Cv}));function Av(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}`}function Ez(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}${Oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cv(){const e=pu(this.opacity);return`${e===1?"rgb(":"rgba("}${Da(this.r)}, ${Da(this.g)}, ${Da(this.b)}${e===1?")":`, ${e})`}`}function pu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Da(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oa(e){return e=Da(e),(e<16?"0":"")+e.toString(16)}function Mv(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 tE(e){if(e instanceof Ti)return new Ti(e.h,e.s,e.l,e.opacity);if(e instanceof vo||(e=ja(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),o=Math.max(t,i,a),c=NaN,d=o-s,h=(o+s)/2;return d?(t===o?c=(i-a)/d+(i0&&h<1?0:c,new Ti(c,d,h,e.opacity)}function Nz(e,t,i,a){return arguments.length===1?tE(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}Dp(Ti,Nz,eE(vo,{brighter(e){return e=e==null?mu:Math.pow(mu,e),new Ti(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,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(rm(e>=240?e-240:e+120,s,a),rm(e,s,a),rm(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new Ti(Ov(this.h),Vc(this.s),Vc(this.l),pu(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=pu(this.opacity);return`${e===1?"hsl(":"hsla("}${Ov(this.h)}, ${Vc(this.s)*100}%, ${Vc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ov(e){return e=(e||0)%360,e<0?e+360:e}function Vc(e){return Math.max(0,Math.min(1,e||0))}function rm(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 Lp=e=>()=>e;function Sz(e,t){return function(i){return e+i*t}}function kz(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 Tz(e){return(e=+e)==1?nE:function(t,i){return i-t?kz(t,i,e):Lp(isNaN(t)?i:t)}}function nE(e,t){var i=t-e;return i?Sz(e,i):Lp(isNaN(e)?t:e)}const gu=(function e(t){var i=Tz(t);function a(s,o){var c=i((s=Im(s)).r,(o=Im(o)).r),d=i(s.g,o.g),h=i(s.b,o.b),f=nE(s.opacity,o.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 Az(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;si&&(o=t.slice(i,o),d[c]?d[c]+=o:d[++c]=o),(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=am.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),o(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;--Bs}function Lv(){Ia=(xu=lo.now())+Lu,Bs=Xl=0;try{Pz()}finally{Bs=0,Gz(),Ia=0}}function Fz(){var e=lo.now(),t=e-xu;t>sE&&(Lu-=t,xu=e)}function Gz(){for(var e,t=bu,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:bu=i);Kl=e,Hm(a)}function Hm(e){if(!Bs){Xl&&(Xl=clearTimeout(Xl));var t=e-Ia;t>24?(e<1/0&&(Xl=setTimeout(Lv,e-lo.now()-Lu)),Fl&&(Fl=clearInterval(Fl))):(Fl||(xu=lo.now(),Fl=setInterval(Fz,sE)),Bs=1,lE(Lv))}}function zv(e,t,i){var a=new yu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var Vz=Ru("start","end","cancel","interrupt"),Yz=[],cE=0,jv=1,$m=2,ru=3,Iv=4,qm=5,au=6;function zu(e,t,i,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;Xz(e,i,{name:t,index:a,group:s,on:Vz,tween:Yz,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:cE})}function jp(e,t){var i=Di(e,t);if(i.state>cE)throw new Error("too late; already scheduled");return i}function Vi(e,t){var i=Di(e,t);if(i.state>ru)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 Xz(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=oE(o,0,i.time);function o(f){i.state=jv,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!==jv)return h();for(m in a)if(x=a[m],x.name===i.name){if(x.state===ru)return zv(c);x.state===Iv?(x.state=au,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[m]):+m$m&&a.state=0&&(t=t.slice(0,i)),!t||t==="start"})}function Nj(e,t,i){var a,s,o=Ej(t)?jp:Vi;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function Sj(e,t){var i=this._id;return arguments.length<2?Di(this.node(),i).on.on(e):this.each(Nj(i,e,t))}function kj(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function Tj(){return this.on("end.remove",kj(this._id))}function Aj(e){var t=this._name,i=this._id;typeof e!="function"&&(e=Op(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c()=>e;function Jj(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 ju=new pr(1,0,0);hE.prototype=pr.prototype;function hE(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ju;return e.__zoom}function sm(e){e.stopImmediatePropagation()}function Gl(e){e.preventDefault(),e.stopImmediatePropagation()}function eI(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function tI(){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 Bv(){return this.__zoom||ju}function nI(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function iI(){return navigator.maxTouchPoints||"ontouchstart"in this}function rI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],o=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>o?(o+c)/2:Math.min(0,o)||Math.max(0,c))}function mE(){var e=eI,t=tI,i=rI,a=nI,s=iI,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=iu,f=Ru("start","zoom","end"),m,p,y,x=500,_=150,N=0,S=10;function w(C){C.property("__zoom",Bv).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",z).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(C,$,A,j){var V=C.selection?C.selection():C;V.property("__zoom",Bv),C!==V?B(C,$,A,j):V.interrupt().each(function(){R(this,arguments).event(j).start().zoom(null,typeof $=="function"?$.apply(this,arguments):$).end()})},w.scaleBy=function(C,$,A,j){w.scaleTo(C,function(){var V=this.__zoom.k,Q=typeof $=="function"?$.apply(this,arguments):$;return V*Q},A,j)},w.scaleTo=function(C,$,A,j){w.transform(C,function(){var V=t.apply(this,arguments),Q=this.__zoom,M=A==null?O(V):typeof A=="function"?A.apply(this,arguments):A,D=Q.invert(M),G=typeof $=="function"?$.apply(this,arguments):$;return i(E(k(Q,G),M,D),V,c)},A,j)},w.translateBy=function(C,$,A,j){w.transform(C,function(){return i(this.__zoom.translate(typeof $=="function"?$.apply(this,arguments):$,typeof A=="function"?A.apply(this,arguments):A),t.apply(this,arguments),c)},null,j)},w.translateTo=function(C,$,A,j,V){w.transform(C,function(){var Q=t.apply(this,arguments),M=this.__zoom,D=j==null?O(Q):typeof j=="function"?j.apply(this,arguments):j;return i(ju.translate(D[0],D[1]).scale(M.k).translate(typeof $=="function"?-$.apply(this,arguments):-$,typeof A=="function"?-A.apply(this,arguments):-A),Q,c)},j,V)};function k(C,$){return $=Math.max(o[0],Math.min(o[1],$)),$===C.k?C:new pr($,C.x,C.y)}function E(C,$,A){var j=$[0]-A[0]*C.k,V=$[1]-A[1]*C.k;return j===C.x&&V===C.y?C:new pr(C.k,j,V)}function O(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function B(C,$,A,j){C.on("start.zoom",function(){R(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(j).end()}).tween("zoom",function(){var V=this,Q=arguments,M=R(V,Q).event(j),D=t.apply(V,Q),G=A==null?O(D):typeof A=="function"?A.apply(V,Q):A,L=Math.max(D[1][0]-D[0][0],D[1][1]-D[0][1]),F=V.__zoom,H=typeof $=="function"?$.apply(V,Q):$,Z=h(F.invert(G).concat(L/F.k),H.invert(G).concat(L/H.k));return function(J){if(J===1)J=H;else{var W=Z(J),ee=L/W[2];J=new pr(ee,G[0]-W[0]*ee,G[1]-W[1]*ee)}M.zoom(null,J)}})}function R(C,$,A){return!A&&C.__zooming||new U(C,$)}function U(C,$){this.that=C,this.args=$,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,$),this.taps=0}U.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 Jj(C,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:f}),$)}};function I(C,...$){if(!e.apply(this,arguments))return;var A=R(this,$).event(C),j=this.__zoom,V=Math.max(o[0],Math.min(o[1],j.k*Math.pow(2,a.apply(this,arguments)))),Q=ki(C);if(A.wheel)(A.mouse[0][0]!==Q[0]||A.mouse[0][1]!==Q[1])&&(A.mouse[1]=j.invert(A.mouse[0]=Q)),clearTimeout(A.wheel);else{if(j.k===V)return;A.mouse=[Q,j.invert(Q)],su(this),A.start()}Gl(C),A.wheel=setTimeout(M,_),A.zoom("mouse",i(E(k(j,V),A.mouse[0],A.mouse[1]),A.extent,c));function M(){A.wheel=null,A.end()}}function K(C,...$){if(y||!e.apply(this,arguments))return;var A=C.currentTarget,j=R(this,$,!0).event(C),V=ni(C.view).on("mousemove.zoom",G,!0).on("mouseup.zoom",L,!0),Q=ki(C,A),M=C.clientX,D=C.clientY;Qw(C.view),sm(C),j.mouse=[Q,this.__zoom.invert(Q)],su(this),j.start();function G(F){if(Gl(F),!j.moved){var H=F.clientX-M,Z=F.clientY-D;j.moved=H*H+Z*Z>N}j.event(F).zoom("mouse",i(E(j.that.__zoom,j.mouse[0]=ki(F,A),j.mouse[1]),j.extent,c))}function L(F){V.on("mousemove.zoom mouseup.zoom",null),Ww(F.view,j.moved),Gl(F),j.event(F).end()}}function z(C,...$){if(e.apply(this,arguments)){var A=this.__zoom,j=ki(C.changedTouches?C.changedTouches[0]:C,this),V=A.invert(j),Q=A.k*(C.shiftKey?.5:2),M=i(E(k(A,Q),j,V),t.apply(this,$),c);Gl(C),d>0?ni(this).transition().duration(d).call(B,M,j,C):ni(this).call(w.transform,M,j,C)}}function q(C,...$){if(e.apply(this,arguments)){var A=C.touches,j=A.length,V=R(this,$,C.changedTouches.length===j).event(C),Q,M,D,G;for(sm(C),M=0;M`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.`},oo=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],pE=["Enter"," ","Escape"],gE={"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 Us;(function(e){e.Strict="strict",e.Loose="loose"})(Us||(Us={}));var La;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(La||(La={}));var co;(function(e){e.Partial="partial",e.Full="full"})(co||(co={}));const bE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ia;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ia||(ia={}));var vu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(vu||(vu={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const Uv={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function xE(e){return e===null?null:e?"valid":"invalid"}const yE=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,aI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Bp=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),_o=(e,t=[0,0])=>{const{width:i,height:a}=Yi(e),s=e.origin??t,o=i*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},sI=(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 o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Bp(s)?s:t.nodeLookup.get(s.id));const d=c?_u(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Iu(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Bu(i)},wo=(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=Iu(i,_u(s)),a=!0)}),a?Bu(i):{x:0,y:0,width:0,height:0}},Up=(e,t,[i,a,s]=[0,0,1],o=!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=EE(d,h,f,m,k,E,S,w),B=S*w,R=o&&O>0;(!y.internals.handleBounds||R||O>=B||y.dragging)&&p.push(y)}return p},lI=(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 oI(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 o;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Yi(s);o=c>0&&d>0}else o=!!(s.measured.width&&s.measured.height&&!s.hidden);o&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function cI({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=oI(e,c),h=wo(d),f=$p(h,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(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 vE({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){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)o==null||o("005",Oi.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(p=[[h,f],[h+x,f+_]])}else d&&Ua(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=Ua(p)?Ba(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("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 uI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const o=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const x=o.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=lI(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 Hs=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ba=(e={x:0,y:0},t,i)=>({x:Hs(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:Hs(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function _E(e,t,i){const{width:a,height:s}=Yi(i),{x:o,y:c}=i.internals.positionAbsolute;return Ba(e,[[o,c],[o+a,c+s]],t)}const Hv=(e,t,i)=>ei?-Hs(Math.abs(e-i),1,t)/t:0,Hp=(e,t,i=15,a=40)=>{const s=Hv(e.x,a,t.width-a)*i,o=Hv(e.y,a,t.height-a)*i;return[s,o]},Iu=(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)}),Pm=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Bu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),uo=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Bp(e)?e.internals.positionAbsolute:_o(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},_u=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Bp(e)?e.internals.positionAbsolute:_o(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},wE=(e,t)=>Bu(Iu(Pm(e),Pm(t))),EE=(e,t,i,a,s,o,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,o+d)-Math.max(t,o));return Math.ceil(h*f)},wu=(e,t)=>EE(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),$v=e=>Ai(e.width)&&Ai(e.height)&&Ai(e.x)&&Ai(e.y),Ai=e=>!isNaN(e)&&isFinite(e),NE=(e,t)=>(i,a)=>{},Eo=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),No=({x:e,y:t},[i,a,s],o=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return o?Eo(d,c):d},$s=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function Ns(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 dI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=Ns(e,i),s=Ns(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ns(e.top??e.y??0,i),s=Ns(e.bottom??e.y??0,i),o=Ns(e.left??e.x??0,t),c=Ns(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function fI(e,t,i,a,s,o){const{x:c,y:d}=$s(e,[t,i,a]),{x:h,y:f}=$s({x:e.x+e.width,y:e.y+e.height},[t,i,a]),m=s-h,p=o-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(m),bottom:Math.floor(p)}}const $p=(e,t,i,a,s,o)=>{const c=dI(o,t,i),d=(t-c.x)/e.width,h=(i-c.y)/e.height,f=Math.min(d,h),m=Hs(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=fI(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}},fo=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ua(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 SE(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 kE(e,t={width:0,height:0},i,a,s){const o={...e},c=a.get(i);if(c){const d=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return o}function qv(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function hI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function mI(e){return{...gE,...e||{}}}function eo(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:o,y:c}=Ci(e),d=No({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=i?Eo(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const qp=e=>({width:e.offsetWidth,height:e.offsetHeight}),TE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},pI=["INPUT","SELECT","TEXTAREA"];function AE(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:pI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const CE=e=>"clientX"in e,Ci=(e,t)=>{var o,c;const i=CE(e),a=i?e.clientX:(o=e.touches)==null?void 0:o[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)}},Pv=(e,t,i,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).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,...qp(c)}})};function ME({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+i*.125,f=t*.125+o*.375+d*.375+a*.125,m=Math.abs(h-e),p=Math.abs(f-t);return[h,f,m,p]}function Kc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Fv({pos:e,x1:t,y1:i,x2:a,y2:s,c:o}){switch(e){case je.Left:return[t-Kc(t-a,o),i];case je.Right:return[t+Kc(a-t,o),i];case je.Top:return[t,i-Kc(i-s,o)];case je.Bottom:return[t,i+Kc(s-i,o)]}}function OE({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top,curvature:c=.25}){const[d,h]=Fv({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[f,m]=Fv({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[p,y,x,_]=ME({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 RE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,o=i0}const xI=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,yI=(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)),vI=(e,t,i={})=>{var o;if(!e.source||!e.target)return(o=i.onError)==null||o.call(i,"006",Oi.error006()),t;const a=i.getEdgeId||xI;let s;return yE(e)?s={...e}:s={...e,id:a(e)},yI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function DE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,o,c,d]=RE({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,o,c,d]}const Gv={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},_I=({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 wI({source:e,sourcePosition:t=je.Bottom,target:i,targetPosition:a=je.Top,center:s,offset:o,stepPosition:c}){const d=Gv[t],h=Gv[a],f={x:e.x+d.x*o,y:e.y+d.y*o},m={x:i.x+h.x*o,y:i.y+h.y*o},p=_I({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]=RE({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 I=[{x:N,y:f.y},{x:N,y:m.y}],K=[{x:f.x,y:S},{x:m.x,y:S}];d[y]===x?_=y==="x"?I:K:_=y==="x"?K:I}else{const I=[{x:f.x,y:m.y}],K=[{x:m.x,y:f.y}];if(y==="x"?_=d.x===x?K:I:_=d.y===x?I:K,t===a){const C=Math.abs(e[y]-i[y]);if(C<=o){const $=Math.min(o-1,o-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],A=f[C]>m[C],j=f[C]=Y?(N=(z.x+q.x)/2,S=_[0].y):(N=_[0].x,S=(z.y+q.y)/2)}const B={x:f.x+w.x,y:f.y+w.y},R={x:m.x+k.x,y:m.y+k.y};return[[e,...B.x!==_[0].x||B.y!==_[0].y?[B]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,E,O]}function EI(e,t,i,a){const s=Math.min(Vv(e,t)/2,Vv(t,i)/2,a),{x:o,y:c}=t;if(e.x===o&&o===i.x||e.y===c&&c===i.y)return`L${o} ${c}`;if(e.y===c){const f=e.xi.id===t):e[0])||null}function Gm(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function SI(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(h=>{if(h&&typeof h=="object"){const f=Gm(h,t);o.has(f)||(c.push({id:f,color:h.color||i,...h}),o.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const LE=1e3,kI=10,Pp={nodeOrigin:[0,0],nodeExtent:oo,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},TI={...Pp,checkEquality:!0};function Fp(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function AI(e,t,i){const a=Fp(Pp,i);for(const s of e.values())if(s.parentId)Vp(s,e,t,a);else{const o=_o(s,a.nodeOrigin),c=Ua(s.extent)?s.extent:a.nodeExtent,d=Ba(o,c,Yi(s));s.internals.positionAbsolute=d}}function CI(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 o={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(o):s.type==="target"&&a.push(o)}return{source:i,target:a}}function Gp(e){return e==="manual"}function Vm(e,t,i,a={}){var m,p;const s=Fp(TI,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!Gp(s.zIndexMode)?LE: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 _=_o(y,s.nodeOrigin),N=Ua(y.extent)?y.extent:s.nodeExtent,S=Ba(_,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:CI(y,x),z:zE(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&&Vp(x,t,i,a,o),f||(f=y.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}function MI(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 Vp(e,t,i,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=Fp(Pp,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}MI(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*kI),s&&m.internals.rootParentIndex!==void 0&&(s.i=m.internals.rootParentIndex);const p=o&&!Gp(h)?LE:0,{x:y,y:x,z:_}=OI(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 zE(e,t,i){const a=Ai(e.zIndex)?e.zIndex:0;return Gp(i)?a:a+(e.selected?t:0)}function OI(e,t,i,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,h=Yi(e),f=_o(e,i),m=Ua(e.extent)?Ba(f,e.extent,h):f;let p=Ba({x:c+m.x,y:d+m.y},a,h);e.extent==="parent"&&(p=_E(p,h,t));const y=zE(e,s,o),x=t.internals.z??0;return{x:p.x,y:p.y,z:x>=y?x+1:y}}function Yp(e,t,i,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??uo(h),m=wE(f,d.rect);o.set(d.parentId,{expandedRect:m,parent:h})}return o.size>0&&o.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(B=>B.id===O.id)||s.push({id:O.id,type:"position",position:{x:O.position.x+x,y:O.position.y+_}})})),(p.width0){const x=Yp(y,t,i,s);f.push(...x)}return{changes:f,updatedInternals:h}}async function DI({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:o}){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,o]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function Zv(e,t,i,a,s,o){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)),o){c=`${s}-${e}-${o}`;const f=a.get(c)||new Map;a.set(c,f.set(i,t))}}function jE(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${o}-${d}`,m=`${o}-${d}--${s}-${c}`;Zv("source",h,m,e,s,c),Zv("target",h,f,e,o,d),t.set(a.id,a)}}function IE(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:IE(i,t):!1}function Qv(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 LI(e,t,i,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!IE(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(o);d&&s.set(o,{id:o,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 lm({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 o=(d=i.get(e))==null?void 0:d.internals.userNode;return[o?{...o,position:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:s[0],s]}function zI({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:i-s.distance.x,y:a-s.distance.y},c=Eo(o,t);return{x:c.x-o.x,y:c.y-o.y}}function jI({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let o={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:B,nodeId:R,nodeClickDistance:U=0}){y=ni(O);function I({x:X,y:Y}){const{nodeLookup:C,nodeExtent:$,snapGrid:A,snapToGrid:j,nodeOrigin:V,onNodeDrag:Q,onSelectionDrag:M,onError:D,updateNodePositions:G}=t();o={x:X,y:Y};let L=!1;const F=d.size>1,H=F&&$?Pm(wo(d)):null,Z=F&&j?zI({dragItems:d,snapGrid:A,x:X,y:Y}):null;for(const[J,W]of d){if(!C.has(J))continue;let ee={x:X-W.distance.x,y:Y-W.distance.y};j&&(ee=Z?{x:Math.round(ee.x+Z.x),y:Math.round(ee.y+Z.y)}:Eo(ee,A));let ce=null;if(F&&$&&!W.extent&&H){const{positionAbsolute:we}=W.internals,Ne=we.x-H.x+$[0][0],Le=we.x+W.measured.width-H.x2+$[1][0],$e=we.y-H.y+$[0][1],st=we.y+W.measured.height-H.y2+$[1][1];ce=[[Ne,$e],[Le,st]]}const{position:fe,positionAbsolute:be}=vE({nodeId:J,nextPosition:ee,nodeLookup:C,nodeExtent:ce||$,nodeOrigin:V,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||Q||!R&&M))){const[J,W]=lm({nodeId:R,dragItems:d,nodeLookup:C});a==null||a(N,d,J,W),Q==null||Q(N,J,W),R||M==null||M(N,W)}}async function K(){if(!m)return;const{transform:X,panBy:Y,autoPanSpeed:C,autoPanOnNodeDrag:$}=t();if(!$){h=!1,cancelAnimationFrame(c);return}const[A,j]=Hp(f,m,C);(A!==0||j!==0)&&(o.x=(o.x??0)-A/X[2],o.y=(o.y??0)-j/X[2],await Y({x:A,y:j})&&I(o)),c=requestAnimationFrame(K)}function z(X){var F;const{nodeLookup:Y,multiSelectionActive:C,nodesDraggable:$,transform:A,snapGrid:j,snapToGrid:V,selectNodesOnDrag:Q,onNodeDragStart:M,onSelectionDragStart:D,unselectNodesAndEdges:G}=t();p=!0,(!Q||!B)&&!C&&R&&((F=Y.get(R))!=null&&F.selected||G()),B&&Q&&R&&(e==null||e(R));const L=eo(X.sourceEvent,{transform:A,snapGrid:j,snapToGrid:V,containerBounds:m});if(o=L,d=LI(Y,$,L,R),d.size>0&&(i||M||!R&&D)){const[H,Z]=lm({nodeId:R,dragItems:d,nodeLookup:Y});i==null||i(X.sourceEvent,d,H,Z),M==null||M(X.sourceEvent,H,Z),R||D==null||D(X.sourceEvent,Z)}}const q=Jw().clickDistance(U).on("start",X=>{const{domNode:Y,nodeDragThreshold:C,transform:$,snapGrid:A,snapToGrid:j}=t();m=(Y==null?void 0:Y.getBoundingClientRect())||null,x=!1,_=!1,N=X.sourceEvent,C===0&&z(X),o=eo(X.sourceEvent,{transform:$,snapGrid:A,snapToGrid:j,containerBounds:m}),f=Ci(X.sourceEvent,m)}).on("drag",X=>{const{autoPanOnNodeDrag:Y,transform:C,snapGrid:$,snapToGrid:A,nodeDragThreshold:j,nodeLookup:V}=t(),Q=eo(X.sourceEvent,{transform:C,snapGrid:$,snapToGrid:A,containerBounds:m});if(N=X.sourceEvent,(X.sourceEvent.type==="touchmove"&&X.sourceEvent.touches.length>1||R&&!V.has(R))&&(x=!0),!x){if(!h&&Y&&p&&(h=!0,K()),!p){const M=Ci(X.sourceEvent,m),D=M.x-f.x,G=M.y-f.y;Math.sqrt(D*D+G*G)>j&&z(X)}(o.x!==Q.xSnapped||o.y!==Q.ySnapped)&&d&&p&&(f=Ci(X.sourceEvent,m),I(Q))}}).on("end",X=>{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:A}=t();if(_&&(C(d,!1),_=!1),s||$||!R&&A){const[j,V]=lm({nodeId:R,dragItems:d,nodeLookup:Y,dragging:!1});s==null||s(X.sourceEvent,d,j,V),$==null||$(X.sourceEvent,j,V),R||A==null||A(X.sourceEvent,V)}}}).filter(X=>{const Y=X.target;return!X.button&&(!k||!Qv(Y,`.${k}`,O))&&(!E||Qv(Y,E,O))});y.call(q)}function w(){y==null||y.on(".drag",null)}return{update:S,destroy:w}}function II(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const o of t.values())wu(s,uo(o))>0&&a.push(o);return a}const BI=250;function UI(e,t,i,a){var d,h;let s=[],o=1/0;const c=II(e,i,t+BI);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}=Ha(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 BE(e,t,i,a,s,o=!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&&o?{...h,...Ha(c,h,h.position,!0)}:h}function UE(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function HI(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const HE=()=>!0;function $I(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:m,flowId:p,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:w=HE,onReconnectEnd:k,updateConnection:E,getTransform:O,getFromHandle:B,autoPanSpeed:R,dragThreshold:U=1,handleDomNode:I}){const K=TE(e.target);let z=0,q;const{x:X,y:Y}=Ci(e),C=UE(o,I),$=d==null?void 0:d.getBoundingClientRect();let A=!1;if(!$||!C)return;const j=BE(s,C,a,h,t);if(!j)return;let V=Ci(e,$),Q=!1,M=null,D=!1,G=null;function L(){if(!m||!$)return;const[fe,be]=Hp(V,$,R);y({x:fe,y:be}),z=requestAnimationFrame(L)}const F={...j,nodeId:s,type:C,position:j.position},H=h.get(s);let J={inProgress:!0,isValid:null,from:Ha(H,F,je.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:H,to:V,toHandle:null,toPosition:Uv[F.position],toNode:null,pointer:V};function W(){A=!0,E(J),_==null||_(e,{nodeId:s,handleId:a,handleType:C})}U===0&&W();function ee(fe){if(!A){const{x:st,y:Rt}=Ci(fe),Yt=st-X,Pt=Rt-Y;if(!(Yt*Yt+Pt*Pt>U*U))return;W()}if(!B()||!F){ce(fe);return}const be=O();V=Ci(fe,$),q=UI(No(V,be,!1,[1,1]),i,h,F),Q||(L(),Q=!0);const we=$E(fe,{handle:q,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:w,doc:K,lib:f,flowId:p,nodeLookup:h});G=we.handleDomNode,M=we.connection,D=HI(!!q,we.isValid);const Ne=h.get(s),Le=Ne?Ha(Ne,F,je.Left,!0):J.from,$e={...J,from:Le,isValid:D,to:we.toHandle&&D?$s({x:we.toHandle.x,y:we.toHandle.y},be):V,toHandle:we.toHandle,toPosition:D&&we.toHandle?we.toHandle.position:Uv[F.position],toNode:we.toHandle?h.get(we.toHandle.nodeId):null,pointer:V};E($e),J=$e}function ce(fe){if(!("touches"in fe&&fe.touches.length>0)){if(A){(q||G)&&M&&D&&(N==null||N(M));const{inProgress:be,...we}=J,Ne={...we,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(z),Q=!1,D=!1,M=null,G=null,K.removeEventListener("mousemove",ee),K.removeEventListener("mouseup",ce),K.removeEventListener("touchmove",ee),K.removeEventListener("touchend",ce)}}K.addEventListener("mousemove",ee),K.addEventListener("mouseup",ce),K.addEventListener("touchmove",ee),K.addEventListener("touchend",ce)}function $E(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:h,isValidConnection:f=HE,nodeLookup:m}){const p=o==="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=UE(void 0,S),E=S.getAttribute("data-nodeid"),O=S.getAttribute("data-handleid"),B=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!E||!k)return w;const U={source:p?E:a,sourceHandle:p?O:s,target:p?a:E,targetHandle:p?s:O};w.connection=U;const K=B&&R&&(i===Us.Strict?p&&k==="source"||!p&&k==="target":E!==a||O!==s);w.isValid=K&&f(U),w.toHandle=BE(E,k,O,m,i,!0)}return w}const Ym={onPointerDown:$I,isValid:$E};function qI({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ni(e);function o({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(),B=E.sourceEvent.ctrlKey&&fo()?10:1,R=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*m,U=O[2]*Math.pow(2,R*B);t.scaleTo(U)};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 B=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],R=[B[0]-N[0],B[1]-N[1]];N=B;const U=a()*Math.max(O[2],Math.log(O[2]))*(x?-1:1),I={x:O[0]-R[0]*U,y:O[1]-R[1]*U},K=[[0,0],[h,f]];t.setViewportConstrained({x:I.x,y:I.y,zoom:O[2]},K,d)},k=mE().on("start",S).on("zoom",p?w:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:ki}}const Uu=e=>({x:e.x,y:e.y,zoom:e.k}),om=({x:e,y:t,zoom:i})=>ju.translate(e,t).scale(i),Ts=(e,t)=>e.target.closest(`.${t}`),qE=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),PI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,cm=(e,t=0,i=PI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},PE=e=>{const t=e.ctrlKey&&fo()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function FI({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return m=>{if(Ts(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=PE(m),k=p*Math.pow(2,w);a.scaleTo(i,k,S,m);return}const y=m.deltaMode===1?20:1;let x=s===La.Vertical?0:m.deltaX*y,_=s===La.Horizontal?0:m.deltaY*y;!fo()&&m.shiftKey&&s!==La.Vertical&&(x=m.deltaY*y,_=0),a.translateBy(i,-(x/p)*o,-(_/p)*o,{internal:!0});const N=Uu(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 GI({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=Ts(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function VI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=Uu(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 YI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(i&&qE(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((d=o.sourceEvent)!=null&&d.internal)&&(s==null||s(o.sourceEvent,Uu(o.transform)))}}function XI({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,o&&qE(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=Uu(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},i?150:0)}}}function KI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,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"&&(Ts(p,`${f}-flow__node`)||Ts(p,`${f}-flow__edge`)))return!0;if(!a&&!y&&!s&&!o&&!i||c||m&&!_||Ts(p,d)&&_||Ts(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 ZI({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:o,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=mE().extent(()=>p).scaleExtent([t,i]).translateExtent(a),_=ni(e).call(x);O({x:s.x,y:s.y,zoom:Hs(s.zoom,t,i)},[[0,0],[m.width,m.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(PE);async function w(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Jl:iu).transform(cm(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>$(!0)),Y)}):!1}function k({noWheelClassName:Y,noPanClassName:C,onPaneContextMenu:$,userSelectionActive:A,panOnScroll:j,panOnDrag:V,panOnScrollMode:Q,panOnScrollSpeed:M,preventScrolling:D,zoomOnPinch:G,zoomOnScroll:L,zoomOnDoubleClick:F,zoomActivationKeyPressed:H,lib:Z,onTransformChange:J,connectionInProgress:W,paneClickDistance:ee,selectionOnDrag:ce}){A&&!f.isZoomingOrPanning&&E();const fe=j&&!H&&!A;x.clickDistance(ce?1/0:!Ai(ee)||ee<0?0:ee);const be=fe?FI({zoomPanValues:f,noWheelClassName:Y,d3Selection:_,d3Zoom:x,panOnScrollMode:Q,panOnScrollSpeed:M,zoomOnPinch:G,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):GI({noWheelClassName:Y,preventScrolling:D,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const we=VI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});x.on("start",we);const Ne=YI({zoomPanValues:f,panOnDrag:V,onPaneContextMenu:!!$,onPanZoom:o,onTransformChange:J});x.on("zoom",Ne);const Le=XI({zoomPanValues:f,panOnDrag:V,panOnScroll:j,onPaneContextMenu:$,onPanZoomEnd:d,onDraggingChange:h});x.on("end",Le);const $e=KI({zoomActivationKeyPressed:H,panOnDrag:V,zoomOnScroll:L,panOnScroll:j,zoomOnDoubleClick:F,zoomOnPinch:G,userSelectionActive:A,noPanClassName:C,noWheelClassName:Y,lib:Z,connectionInProgress:W});x.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function E(){x.on("zoom",null)}async function O(Y,C,$){const A=om(Y),j=x==null?void 0:x.constrain()(A,C,$);return j&&await w(j),j}async function B(Y,C){const $=om(Y);return await w($,C),$}function R(Y){if(_){const C=om(Y),$=_.property("__zoom");($.k!==Y.zoom||$.x!==Y.x||$.y!==Y.y)&&(x==null||x.transform(_,C,null,{sync:!0}))}}function U(){const Y=_?hE(_.node()):{x:0,y:0,k:1};return{x:Y.x,y:Y.y,zoom:Y.k}}async function I(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Jl:iu).scaleTo(cm(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>$(!0)),Y)}):!1}async function K(Y,C){return _?new Promise($=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Jl:iu).scaleBy(cm(_,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 X(Y){const C=!Ai(Y)||Y<0?0:Y;x==null||x.clickDistance(C)}return{update:k,destroy:E,setViewport:B,setViewportConstrained:O,getViewport:U,scaleTo:I,scaleBy:K,setScaleExtent:z,setTranslateExtent:q,syncViewport:R,setClickDistance:X}}var qs;(function(e){e.Line="line",e.Handle="handle"})(qs||(qs={}));function QI({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:o}){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&&o&&(h[1]=h[1]*-1),h}function Wv(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 ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function Zc(e,t,i){return Math.max(0,t-e,e-i)}function Jv(e,t){return e?!t:t}function WI(e,t,i,a,s,o,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:B,height:R,aspectRatio:U}=e;let I=Math.floor(m?x-e.pointerX:0),K=Math.floor(p?_-e.pointerY:0);const z=B+(h?-I:I),q=R+(f?-K:K),X=-o[0]*B,Y=-o[1]*R;let C=Zc(z,N,S),$=Zc(q,w,k);if(c){let V=0,Q=0;h&&I<0?V=ea(E+I+X,c[0][0]):!h&&I>0&&(V=ta(E+z+X,c[1][0])),f&&K<0?Q=ea(O+K+Y,c[0][1]):!f&&K>0&&(Q=ta(O+q+Y,c[1][1])),C=Math.max(C,V),$=Math.max($,Q)}if(d){let V=0,Q=0;h&&I>0?V=ta(E+I,d[0][0]):!h&&I<0&&(V=ea(E+z,d[1][0])),f&&K>0?Q=ta(O+K,d[0][1]):!f&&K<0&&(Q=ea(O+q,d[1][1])),C=Math.max(C,V),$=Math.max($,Q)}if(s){if(m){const V=Zc(z/U,w,k)*U;if(C=Math.max(C,V),c){let Q=0;!h&&!f||h&&!f&&y?Q=ta(O+Y+z/U,c[1][1])*U:Q=ea(O+Y+(h?I:-I)/U,c[0][1])*U,C=Math.max(C,Q)}if(d){let Q=0;!h&&!f||h&&!f&&y?Q=ea(O+z/U,d[1][1])*U:Q=ta(O+(h?I:-I)/U,d[0][1])*U,C=Math.max(C,Q)}}if(p){const V=Zc(q*U,N,S)/U;if($=Math.max($,V),c){let Q=0;!h&&!f||f&&!h&&y?Q=ta(E+q*U+X,c[1][0])/U:Q=ea(E+(f?K:-K)*U+X,c[0][0])/U,$=Math.max($,Q)}if(d){let Q=0;!h&&!f||f&&!h&&y?Q=ea(E+q*U,d[1][0])/U:Q=ta(E+(f?K:-K)*U,d[0][0])/U,$=Math.max($,Q)}}}K=K+(K<0?$:-$),I=I+(I<0?C:-C),s&&(y?z>q*U?K=(Jv(h,f)?-I:I)/U:I=(Jv(h,f)?-K:K)*U:m?(K=I/U,f=h):(I=K*U,h=f));const A=h?E+I:E,j=f?O+K:O;return{width:B+(h?-I:I),height:R+(f?-K:K),x:o[0]*I*(h?-1:1)+A,y:o[1]*K*(f?-1:1)+j}}const FE={width:0,height:0,x:0,y:0},JI={...FE,pointerX:0,pointerY:0,aspectRatio:1};function e6(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,d=i[0]*o,h=i[1]*c;return[[a-d,s-h],[a+o-d,s+c-h]]}function t6({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const o=ni(e);let c={controlDirection:Wv("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={...FE},k={...JI};c={boundaries:m,resizeDirection:y,keepAspectRatio:p,controlDirection:Wv(f)};let E,O=null,B=[],R,U,I,K=!1;const z=Jw().on("start",q=>{const{nodeLookup:X,transform:Y,snapGrid:C,snapToGrid:$,nodeOrigin:A,paneDomNode:j}=i();if(E=X.get(t),!E)return;O=(j==null?void 0:j.getBoundingClientRect())??null;const{xSnapped:V,ySnapped:Q}=eo(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:V,pointerY:Q,aspectRatio:w.width/w.height},R=void 0,U=Ua(E.extent)?E.extent:void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(R=X.get(E.parentId)),R&&E.extent==="parent"&&(U=[[0,0],[R.measured.width,R.measured.height]]),B=[],I=void 0;for(const[M,D]of X)if(D.parentId===t&&(B.push({id:M,position:{...D.position},extent:D.extent}),D.extent==="parent"||D.expandParent)){const G=e6(D,E,D.origin??A);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}x==null||x(q,{...w})}).on("drag",q=>{const{transform:X,snapGrid:Y,snapToGrid:C,nodeOrigin:$}=i(),A=eo(q.sourceEvent,{transform:X,snapGrid:Y,snapToGrid:C,containerBounds:O}),j=[];if(!E)return;const{x:V,y:Q,width:M,height:D}=w,G={},L=E.origin??$,{width:F,height:H,x:Z,y:J}=WI(k,c.controlDirection,A,c.boundaries,c.keepAspectRatio,L,U,I),W=F!==M,ee=H!==D,ce=Z!==V&&W,fe=J!==Q&ⅇif(!ce&&!fe&&!W&&!ee)return;if((ce||fe||L[0]===1||L[1]===1)&&(G.x=ce?Z:w.x,G.y=fe?J:w.y,w.x=G.x,w.y=G.y,B.length>0)){const Le=Z-V,$e=J-Q;for(const st of B)st.position={x:st.position.x-Le+L[0]*(F-M),y:st.position.y-$e+L[1]*(H-D)},j.push(st)}if((W||ee)&&(G.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:w.width,G.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?H:w.height,w.width=G.width,w.height=G.height),R&&E.expandParent){const Le=L[0]*(G.width??0);G.x&&G.x{K&&(N==null||N(q,{...w}),s==null||s({...w}),K=!1)});o.call(z)}function h(){o.on(".drag",null)}return{update:d,destroy:h}}var um={exports:{}},dm={},fm={exports:{}},hm={};/** + * @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 e1;function n6(){if(e1)return hm;e1=1;var e=po();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,o=e.useLayoutEffect,c=e.useDebugValue;function d(p,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return o(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 hm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,hm}var t1;function i6(){return t1||(t1=1,fm.exports=n6()),fm.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 n1;function r6(){if(n1)return dm;n1=1;var e=po(),t=i6();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,o=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return dm.useSyncExternalStoreWithSelector=function(f,m,p,y,x){var _=o(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 U=N.value;if(x(U,R))return O=U}return O=R}if(U=O,a(E,R))return U;var I=y(R);return x!==void 0&&x(U,I)?(E=R,U):(E=R,O=I)}var k=!1,E,O,B=p===void 0?null:p;return[function(){return w(m())},B===null?void 0:function(){return w(B())}]},[m,p,y,x]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},dm}var i1;function a6(){return i1||(i1=1,um.exports=r6()),um.exports}var s6=a6();const l6=mo(s6),o6={},r1=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:()=>{(o6?"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},c6=e=>e?r1(e):r1,{useDebugValue:u6}=Gk,{useSyncExternalStoreWithSelector:d6}=l6,f6=e=>e;function GE(e,t=f6,i){const a=d6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return u6(a),a}const a1=(e,t)=>{const i=c6(e),a=(s,o=t)=>GE(i,s,o);return Object.assign(a,i),a},h6=(e,t)=>e?a1(e,t):a1;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}J1();const Hu=re.createContext(null),m6=Hu.Provider,VE=Oi.error001("react");function dt(e,t){const i=re.useContext(Hu);if(i===null)throw new Error(VE);return GE(i,e,t)}function zt(){const e=re.useContext(Hu);if(e===null)throw new Error(VE);return re.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const s1={display:"none"},p6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},YE="react-flow__node-desc",XE="react-flow__edge-desc",g6="react-flow__aria-live",b6=e=>e.ariaLiveMessage,x6=e=>e.ariaLabelConfig;function y6({rfId:e}){const t=dt(b6);return g.jsx("div",{id:`${g6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:p6,children:t})}function v6({rfId:e,disableKeyboardA11y:t}){const i=dt(x6);return g.jsxs(g.Fragment,{children:[g.jsx("div",{id:`${YE}-${e}`,style:s1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),g.jsx("div",{id:`${XE}-${e}`,style:s1,children:i["edge.a11yDescription.default"]}),!t&&g.jsx(y6,{rfId:e})]})}const $u=re.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},o)=>{const c=`${e}`.split("-");return g.jsx("div",{className:ln(["react-flow__panel",i,...c]),style:a,ref:o,...s,children:t})});$u.displayName="Panel";const l1="https://reactflow.dev?utm_source=attribution";function _6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:g.jsx($u,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${l1}`,children:g.jsx("a",{href:l1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const w6=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}},Qc=e=>e.id;function E6(e,t){return qt(e.selectedNodes.map(Qc),t.selectedNodes.map(Qc))&&qt(e.selectedEdges.map(Qc),t.selectedEdges.map(Qc))}function N6({onSelectionChange:e}){const t=zt(),{selectedNodes:i,selectedEdges:a}=dt(w6,E6);return re.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[i,a,e]),null}const S6=e=>!!e.onSelectionChangeHandlers;function k6({onSelectionChange:e}){const t=dt(S6);return e||t?g.jsx(N6,{onSelectionChange:e}):null}const KE=[0,0],T6={x:0,y:0,zoom:1},A6=["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"],o1=[...A6,"rfId"],C6=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}),c1={translateExtent:oo,nodeOrigin:KE,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function M6(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:h}=dt(C6,qt),f=zt();re.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{m.current=c1,d()}),[]);const m=re.useRef(c1);return re.useEffect(()=>{for(const p of o1){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"?o(y):p==="nodeExtent"?c(y):p==="ariaLabelConfig"?f.setState({ariaLabelConfig:mI(y)}):p==="fitView"?f.setState({fitViewQueued:y}):p==="fitViewOptions"?f.setState({fitViewOptions:y}):f.setState({[p]:y})))}m.current=e},o1.map(p=>e[p])),null}function u1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function O6(e){var a;const[t,i]=re.useState(e==="system"?null:e);return re.useEffect(()=>{if(e!=="system"){i(e);return}const s=u1(),o=()=>i(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=u1())!=null&&a.matches?"dark":"light"}const d1=typeof document<"u"?document:null;function ho(e=null,t={target:d1,actInsideInputWithModifier:!0}){const[i,a]=re.useState(!1),s=re.useRef(!1),o=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)??d1,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)&&AE(x))return!1;const N=h1(x.code,d);if(o.current.add(x[N]),f1(c,o.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 _=h1(x.code,d);f1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(x[_]),x.key==="Meta"&&o.current.clear(),s.current=!1},y=()=>{o.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 f1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function h1(e,t){return t.includes(e)?"code":"key"}const R6=()=>{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,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},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:o,maxZoom:c,panZoom:d}=e.getState(),h=$p(t,a,s,o,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:o,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??o;return No(f,a,p,m)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=$s(t,i);return{x:c.x+s,y:c.y+o}}}),[])};function ZE(e,t){const i=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){i.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...o};for(const h of c)D6(h,d);i.push(d)}return s.length&&s.forEach(o=>{o.index!==void 0?i.splice(o.index,0,{...o.item}):i.push({...o.item})}),i}function D6(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 QE(e,t){return ZE(e,t)}function WE(e,t){return ZE(e,t)}function Ma(e,t){return{id:e,type:"select",selected:t}}function As(e,t=new Set,i=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(i&&(o.selected=c),a.push(Ma(o.id,c)))}return a}function m1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,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:o})}for(const[o]of t)a.get(o)===void 0&&i.push({id:o,type:"remove"});return i}function p1(e){return{id:e.id,type:"remove"}}const L6=NE();function z6(e,t,i={}){return vI(e,t,{...i,onError:i.onError??L6})}const g1=e=>aI(e),j6=e=>yE(e);function JE(e){return re.forwardRef(e)}const eN=typeof window<"u"?re.useLayoutEffect:re.useEffect;function b1(e){const[t,i]=re.useState(BigInt(0)),[a]=re.useState(()=>I6(()=>i(s=>s+BigInt(1))));return eN(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function I6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const tN=re.createContext(null);function B6({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=m1({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=b1(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(m1({items:x,lookup:y}))},[]),o=b1(s),c=re.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return g.jsx(tN.Provider,{value:c,children:e})}function U6(){const e=re.useContext(tN);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const H6=e=>!!e.panZoom;function So(){const e=R6(),t=zt(),i=U6(),a=dt(H6),s=re.useMemo(()=>{const o=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(),_=g1(p)?p:y.get(p.id),N=_.parentId?kE(_.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 uo(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&&g1(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&&j6(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var y;return(y=o(p))==null?void 0:y.internals.userNode},getInternalNode:o,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:B,edges:R}=await uI({nodesToRemove:p,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:O}),U=R.length>0,I=B.length>0;if(U){const K=R.map(p1);S==null||S(R),k(K)}if(I){const K=B.map(p1);N==null||N(B),w(K)}return(I||U)&&(E==null||E({nodes:B,edges:R})),{deletedNodes:B,deletedEdges:R}},getIntersectingNodes:(p,y=!0,x)=>{const _=$v(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=uo(S?w:k),O=wu(E,N);return y&&O>0||O>=E.width*E.height||O>=N.width*N.height}):[]},isNodeIntersecting:(p,y,x=!0)=>{const N=$v(p)?p:h(p);if(!N)return!1;const S=wu(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 sI(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??hI();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 x1=e=>e.selected,$6=typeof window<"u"?window:void 0;function q6({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=zt(),{deleteElements:a}=So(),s=ho(e,{actInsideInputWithModifier:!1}),o=ho(t,{target:$6});re.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(x1),edges:c.filter(x1)}),i.setState({nodesSelectionActive:!1})}},[s]),re.useEffect(()=>{i.setState({multiSelectionActive:o})},[o])}function P6(e){const t=zt();re.useEffect(()=>{const i=()=>{var s,o,c,d;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=qp(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 qu={position:"absolute",width:"100%",height:"100%",top:0,left:0},F6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function G6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=La.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 B=zt(),R=re.useRef(null),{userSelectionActive:U,lib:I,connectionInProgress:K}=dt(F6,qt),z=ho(y),q=re.useRef();P6(R);const X=re.useCallback(Y=>{w==null||w({x:Y[0],y:Y[1],zoom:Y[2]}),k||B.setState({transform:Y})},[w,k]);return re.useEffect(()=>{if(R.current){q.current=ZI({domNode:R.current,minZoom:m,maxZoom:p,translateExtent:f,viewport:h,onDraggingChange:A=>B.setState(j=>j.paneDragging===A?j:{paneDragging:A}),onPanZoomStart:(A,j)=>{const{onViewportChangeStart:V,onMoveStart:Q}=B.getState();Q==null||Q(A,j),V==null||V(j)},onPanZoom:(A,j)=>{const{onViewportChange:V,onMove:Q}=B.getState();Q==null||Q(A,j),V==null||V(j)},onPanZoomEnd:(A,j)=>{const{onViewportChangeEnd:V,onMoveEnd:Q}=B.getState();Q==null||Q(A,j),V==null||V(j)}});const{x:Y,y:C,zoom:$}=q.current.getViewport();return B.setState({panZoom:q.current,transform:[Y,C,$],domNode:R.current.closest(".react-flow")}),()=>{var A;(A=q.current)==null||A.destroy()}}},[]),re.useEffect(()=>{var Y;(Y=q.current)==null||Y.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:z,preventScrolling:x,noPanClassName:S,userSelectionActive:U,noWheelClassName:N,lib:I,onTransformChange:X,connectionInProgress:K,selectionOnDrag:O,paneClickDistance:E})},[e,t,i,a,s,o,c,d,z,x,S,U,N,I,X,K,O,E]),g.jsx("div",{className:"react-flow__renderer",ref:R,style:qu,children:_})}const V6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Y6(){const{userSelectionActive:e,userSelectionRect:t}=dt(V6,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 mm=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},X6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function K6({isSelecting:e,selectionKeyPressed:t,selectionMode:i=co.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,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:B,autoPanSpeed:R}=dt(X6,qt),U=E&&(e||k),I=re.useRef(null),K=re.useRef(),z=re.useRef(new Set),q=re.useRef(new Set),X=re.useRef(!1),Y=re.useRef(!1),C=re.useRef({x:0,y:0}),$=re.useRef(!1),A=W=>{if(Y.current||X.current||w.getState().connection.inProgress){Y.current=!1,X.current=!1;return}f==null||f(W),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},j=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}m==null||m(W)},V=p?W=>p(W):void 0,Q=W=>{Y.current&&(W.stopPropagation(),Y.current=!1)},M=W=>{var st,Rt;const{domNode:ee,transform:ce}=w.getState();if(K.current=ee==null?void 0:ee.getBoundingClientRect(),!K.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),Y.current=!1;const{x:Ne,y:Le}=Ci(W.nativeEvent,K.current),$e=No({x:Ne,y:Le},ce);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: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}=$s(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 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(!qv(Vn,z.current)){const It=As(be,z.current,!0);Le(It)}if(!qv(wn,q.current)){const It=As(we,q.current);$e(It)}w.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function G(){if(!s||!K.current)return;const[W,ee]=Hp(C.current,K.current,R);B({x:W,y:ee}).then(ce=>{if(!Y.current||!ce){S.current=requestAnimationFrame(G);return}const{x:fe,y:be}=C.current;D(fe,be),S.current=requestAnimationFrame(G)})}const L=()=>{cancelAnimationFrame(S.current),S.current=0,$.current=!1};re.useEffect(()=>()=>L(),[]);const F=W=>{const{userSelectionRect:ee,transform:ce,resetSelectedElements:fe}=w.getState();if(!K.current||!ee)return;const{x:be,y:we}=Ci(W.nativeEvent,K.current);C.current={x:be,y:we};const Ne=$s({x:ee.startX,y:ee.startY},ce);if(!Y.current){const Le=t?0:o;if(Math.hypot(be-Ne.x,we-Ne.y)<=Le)return;fe(),d==null||d(W)}Y.current=!0,$.current||(G(),$.current=!0),D(be,we)},H=W=>{var ee,ce;if(!U){W.target===I.current&&w.getState().connection.inProgress&&(X.current=!0);return}W.button===0&&((ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),!k&&W.target===I.current&&w.getState().userSelectionRect&&(A==null||A(W)),w.setState({userSelectionActive:!1,userSelectionRect:null}),Y.current&&(h==null||h(W),w.setState({nodesSelectionActive:z.current.size>0})),L())},Z=W=>{var ee,ce;(ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),L()},J=a===!0||Array.isArray(a)&&a.includes(0);return g.jsxs("div",{className:ln(["react-flow__pane",{draggable:J,dragging:O,selection:e}]),onClick:U?void 0:mm(A,I),onContextMenu:mm(j,I),onWheel:mm(V,I),onPointerEnter:U?void 0:y,onPointerMove:U?F:x,onPointerUp:H,onPointerCancel:U?Z:void 0,onPointerDownCapture:U?M:void 0,onClickCapture:U?Q:void 0,onPointerLeave:_,ref:I,style:qu,children:[N,g.jsx(Y6,{})]})}function Xm({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,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)&&(o({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var m;return(m=a==null?void 0:a.current)==null?void 0:m.blur()})):s([e])}function nN({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=zt(),[h,f]=re.useState(!1),m=re.useRef();return re.useEffect(()=>{if(!t)return m.current=jI({getStoreItems:()=>d.getState(),onNodeMouseDown:p=>{Xm({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:o,nodeId:s,nodeClickDistance:c})},[i,a,t,o,e,s,c]),h}const Z6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function iN(){const e=zt();return re.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:m}=e.getState(),p=new Map,y=Z6(c),x=s?o[0]:5,_=s?o[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=Eo(k,o));const{position:E,positionAbsolute:O}=vE({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 Xp=re.createContext(null),Q6=Xp.Provider;Xp.Consumer;const rN=()=>re.useContext(Xp),W6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),aN=re.createContext(null);function J6({children:e}){const t=dt(W6,qt);return g.jsx(aN.Provider,{value:t,children:e})}function e8(){const e=re.useContext(aN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const t8={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},n8=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return t8;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:o===Us.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 i8({type:e="source",position:t=je.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:m,onTouchStart:p,...y},x){var $,A;const _=c||null,N=e==="target",S=zt(),w=rN(),{connectOnClick:k,noPanClassName:E,rfId:O}=e8(),{connectingFrom:B,connectingTo:R,clickConnecting:U,isPossibleEndHandle:I,connectionInProcess:K,clickConnectionInProcess:z,valid:q}=dt(n8(w,_,e),qt);w||(A=($=S.getState()).onError)==null||A.call($,"010",Oi.error010());const X=j=>{const{defaultEdgeOptions:V,onConnect:Q,hasDefaultEdges:M}=S.getState(),D={...V,...j};if(M){const{edges:G,setEdges:L,onError:F}=S.getState();L(z6(D,G,{onError:F}))}Q==null||Q(D),d==null||d(D)},Y=j=>{if(!w)return;const V=CE(j.nativeEvent);if(s&&(V&&j.button===0||!V)){const Q=S.getState();Ym.onPointerDown(j.nativeEvent,{handleDomNode:j.currentTarget,autoPanOnConnect:Q.autoPanOnConnect,connectionMode:Q.connectionMode,connectionRadius:Q.connectionRadius,domNode:Q.domNode,nodeLookup:Q.nodeLookup,lib:Q.lib,isTarget:N,handleId:_,nodeId:w,flowId:Q.rfId,panBy:Q.panBy,cancelConnection:Q.cancelConnection,onConnectStart:Q.onConnectStart,onConnectEnd:(...M)=>{var D,G;return(G=(D=S.getState()).onConnectEnd)==null?void 0:G.call(D,...M)},updateConnection:Q.updateConnection,onConnect:X,isValidConnection:i||((...M)=>{var D,G;return((G=(D=S.getState()).isValidConnection)==null?void 0:G.call(D,...M))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:Q.autoPanSpeed,dragThreshold:Q.connectionDragThreshold})}V?m==null||m(j):p==null||p(j)},C=j=>{const{onClickConnectStart:V,onClickConnectEnd:Q,connectionClickStartHandle:M,connectionMode:D,isValidConnection:G,lib:L,rfId:F,nodeLookup:H,connection:Z}=S.getState();if(!w||!M&&!s)return;if(!M){V==null||V(j.nativeEvent,{nodeId:w,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:w,type:e,id:_}});return}const J=TE(j.target),W=i||G,{connection:ee,isValid:ce}=Ym.isValid(j.nativeEvent,{handle:{nodeId:w,id:_,type:e},connectionMode:D,fromNodeId:M.nodeId,fromHandleId:M.id||null,fromType:M.type,isValidConnection:W,flowId:F,doc:J,lib:L,nodeLookup:H});ce&&ee&&X(ee);const fe=structuredClone(Z);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,Q==null||Q(j,fe),S.setState({connectionClickStartHandle:null})};return g.jsx("div",{"data-handleid":_,"data-nodeid":w,"data-handlepos":t,"data-id":`${O}-${w}-${_}-${e}`,className:ln(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:U,connectingfrom:B,connectingto:R,valid:q,connectionindicator:a&&(!K||I)&&(K||z?o:s)}]),onMouseDown:Y,onTouchStart:Y,onClick:k?C:void 0,ref:x,...y,children:h})}const Ps=re.memo(JE(i8));function r8({data:e,isConnectable:t,sourcePosition:i=je.Bottom}){return g.jsxs(g.Fragment,{children:[e==null?void 0:e.label,g.jsx(Ps,{type:"source",position:i,isConnectable:t})]})}function a8({data:e,isConnectable:t,targetPosition:i=je.Top,sourcePosition:a=je.Bottom}){return g.jsxs(g.Fragment,{children:[g.jsx(Ps,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,g.jsx(Ps,{type:"source",position:a,isConnectable:t})]})}function s8(){return null}function l8({data:e,isConnectable:t,targetPosition:i=je.Top}){return g.jsxs(g.Fragment,{children:[g.jsx(Ps,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Eu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},y1={input:r8,default:a8,output:l8,group:s8};function o8(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 c8=e=>{const{width:t,height:i,x:a,y:s}=wo(e.nodeLookup,{filter:o=>!!o.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 u8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=zt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(c8,qt),h=iN(),f=re.useRef(null);re.useEffect(()=>{var x;i||(x=f.current)==null||x.focus({preventScroll:!0})},[i]);const m=!d&&s!==null&&o!==null;if(nN({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(Eu,x.key)&&(x.preventDefault(),h({direction:Eu[x.key],factor:x.shiftKey?4:1}))};return g.jsx("div",{className:ln(["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:o}})})}const v1=typeof window<"u"?window:void 0,d8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function sN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,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:B,panOnScrollMode:R,zoomOnDoubleClick:U,panOnDrag:I,autoPanOnSelection:K,defaultViewport:z,translateExtent:q,minZoom:X,maxZoom:Y,preventScrolling:C,onSelectionContextMenu:$,noWheelClassName:A,noPanClassName:j,disableKeyboardA11y:V,onViewportChange:Q,isControlledViewport:M}){const{nodesSelectionActive:D,userSelectionActive:G}=dt(d8,qt),L=ho(f,{target:v1}),F=ho(N,{target:v1}),H=F||I,Z=F||O,J=m&&H!==!0,W=L||G||J;return q6({deleteKeyCode:h,multiSelectionKeyCode:_}),g.jsx(G6,{onPaneContextMenu:o,elementsSelectable:w,zoomOnScroll:k,zoomOnPinch:E,panOnScroll:Z,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:U,panOnDrag:!L&&H,defaultViewport:z,translateExtent:q,minZoom:X,maxZoom:Y,zoomActivationKeyCode:S,preventScrolling:C,noWheelClassName:A,noPanClassName:j,onViewportChange:Q,isControlledViewport:M,paneClickDistance:d,selectionOnDrag:J,children:g.jsxs(K6,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:H,autoPanOnSelection:K,isSelecting:!!W,selectionMode:p,selectionKeyPressed:L,paneClickDistance:d,selectionOnDrag:J,children:[e,D&&g.jsx(u8,{onSelectionContextMenu:$,noPanClassName:j,disableKeyboardA11y:V})]})})}sN.displayName="FlowRenderer";const f8=re.memo(sN),h8=e=>t=>e?Up(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 m8(e){return dt(re.useCallback(h8(e),[e]),qt)}const p8=e=>e.updateNodeInternals;function g8(){const e=dt(p8),[t]=re.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return re.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function b8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=zt(),o=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(()=>{o.current&&!e.hidden&&(!m||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[m,e.hidden]),re.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),re.useEffect(()=>{if(o.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:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function x8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:o,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:B}=dt(W=>{const ee=W.nodeLookup.get(e),ce=W.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:ce}},qt);let R=E.type||"default",U=(S==null?void 0:S[R])||y1[R];U===void 0&&(k==null||k("003",Oi.error003(R)),R="default",U=(S==null?void 0:S.default)||y1.default);const I=!!(E.draggable||d&&typeof E.draggable>"u"),K=!!(E.selectable||h&&typeof E.selectable>"u"),z=!!(E.connectable||f&&typeof E.connectable>"u"),q=!!(E.focusable||m&&typeof E.focusable>"u"),X=zt(),Y=SE(E),C=b8({node:E,nodeType:R,hasDimensions:Y,resizeObserver:p}),$=nN({nodeRef:C,disabled:E.hidden||!I,noDragClassName:y,handleSelector:E.dragHandle,nodeId:e,isSelectable:K,nodeClickDistance:w}),A=iN();if(E.hidden)return null;const j=Yi(E),V=o8(E),Q=K||I||t||i||a||s,M=i?W=>i(W,{...O.userNode}):void 0,D=a?W=>a(W,{...O.userNode}):void 0,G=s?W=>s(W,{...O.userNode}):void 0,L=o?W=>o(W,{...O.userNode}):void 0,F=c?W=>c(W,{...O.userNode}):void 0,H=W=>{const{selectNodesOnDrag:ee,nodeDragThreshold:ce}=X.getState();K&&(!ee||!I||ce>0)&&Xm({id:e,store:X,nodeRef:C}),t&&t(W,{...O.userNode})},Z=W=>{if(!(AE(W.nativeEvent)||_)){if(pE.includes(W.key)&&K){const ee=W.key==="Escape";Xm({id:e,store:X,unselect:ee,nodeRef:C})}else if(I&&E.selected&&Object.prototype.hasOwnProperty.call(Eu,W.key)){W.preventDefault();const{ariaLabelConfig:ee}=X.getState();X.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),A({direction:Eu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=C.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:ee,height:ce,autoPanOnNodeFocus:fe,setCenter:be}=X.getState();if(!fe)return;Up(new Map([[e,E]]),{x:0,y:0,width:ee,height:ce},W,!0).length>0||be(E.position.x+j.width/2,E.position.y+j.height/2,{zoom:W[2]})};return g.jsx("div",{className:ln(["react-flow__node",`react-flow__node-${R}`,{[x]:I},E.className,{selected:E.selected,selectable:K,parent:B,draggable:I,dragging:$}]),ref:C,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:Q?"all":"none",visibility:Y?"visible":"hidden",...E.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:M,onMouseMove:D,onMouseLeave:G,onContextMenu:L,onClick:H,onDoubleClick:F,onKeyDown:q?Z: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:`${YE}-${N}`,"aria-label":E.ariaLabel,...E.domAttributes,children:g.jsx(Q6,{value:e,children:g.jsx(U,{id:e,data:E.data,type:R,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:E.selected??!1,selectable:K,draggable:I,deletable:E.deletable??!0,isConnectable:z,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:$,dragHandle:E.dragHandle,zIndex:O.z,parentId:E.parentId,...j})})})}var y8=re.memo(x8);const v8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function lN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(v8,qt),o=m8(e.onlyRenderVisibleElements),c=g8();return g.jsx("div",{className:"react-flow__nodes",style:qu,children:o.map(d=>g.jsx(y8,{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))})}lN.displayName="NodeRenderer";const _8=re.memo(lN);function w8(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 o=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);o&&c&&bI({sourceNode:o,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const E8=({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"})},N8=({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"})},_1={[vu.Arrow]:E8,[vu.ArrowClosed]:N8};function S8(e){const t=zt();return re.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(_1,e)?_1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Oi.error009(e)),null)},[e])}const k8=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const h=S8(t);return h?g.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:d,refX:"0",refY:"0",children:g.jsx(h,{color:i,strokeWidth:c})}):null},oN=({defaultColor:e,rfId:t})=>{const i=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=re.useMemo(()=>SI(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(o=>g.jsx(k8,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};oN.displayName="MarkerDefinitions";var T8=re.memo(oN);function cN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,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=ln(["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:o,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}cN.displayName="EdgeText";const A8=re.memo(cN);function Pu({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:o,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:ln(["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(A8,{x:t,y:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function w1({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 uN({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top}){const[c,d]=w1({pos:i,x1:e,y1:t,x2:a,y2:s}),[h,f]=w1({pos:o,x1:a,y1:s,x2:e,y2:t}),[m,p,y,x]=ME({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 dN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,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]=uN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),B=e.isInternal?void 0:t;return g.jsx(Pu,{id:B,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 C8=dN({isInternal:!1}),fN=dN({isInternal:!0});C8.displayName="SimpleBezierEdge";fN.displayName="SimpleBezierEdgeInternal";function hN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,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,B]=Fm({sourceX:i,sourceY:a,sourcePosition:x,targetX:s,targetY:o,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(Pu,{id:R,path:E,labelX:O,labelY:B,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const mN=hN({isInternal:!1}),pN=hN({isInternal:!0});mN.displayName="SmoothStepEdge";pN.displayName="SmoothStepEdgeInternal";function gN(e){return re.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return g.jsx(mN,{...i,id:a,pathOptions:re.useMemo(()=>{var o;return{borderRadius:0,offset:(o=i.pathOptions)==null?void 0:o.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const M8=gN({isInternal:!1}),bN=gN({isInternal:!0});M8.displayName="StepEdge";bN.displayName="StepEdgeInternal";function xN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:m,labelBgBorderRadius:p,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,w,k]=DE({sourceX:i,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return g.jsx(Pu,{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 O8=xN({isInternal:!1}),yN=xN({isInternal:!0});O8.displayName="StraightEdge";yN.displayName="StraightEdgeInternal";function vN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,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,B]=OE({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d,curvature:w==null?void 0:w.curvature}),R=e.isInternal?void 0:t;return g.jsx(Pu,{id:R,path:E,labelX:O,labelY:B,label:h,labelStyle:f,labelShowBg:m,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const R8=vN({isInternal:!1}),_N=vN({isInternal:!0});R8.displayName="BezierEdge";_N.displayName="BezierEdgeInternal";const E1={default:_N,straight:yN,step:bN,smoothstep:pN,simplebezier:fN},N1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},D8=(e,t,i)=>i===je.Left?e-t:i===je.Right?e+t:e,L8=(e,t,i)=>i===je.Top?e-t:i===je.Bottom?e+t:e,S1="react-flow__edgeupdater";function k1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return g.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:ln([S1,`${S1}-${d}`]),cx:D8(t,a,e),cy:L8(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function z8({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:m,onReconnectEnd:p,setReconnecting:y,setUpdateHover:x}){const _=zt(),N=(O,B)=>{if(O.button!==0)return;const{autoPanOnConnect:R,domNode:U,connectionMode:I,connectionRadius:K,lib:z,onConnectStart:q,cancelConnection:X,nodeLookup:Y,rfId:C,panBy:$,updateConnection:A}=_.getState(),j=B.type==="target",V=(D,G)=>{y(!1),p==null||p(D,i,B.type,G)},Q=D=>f==null?void 0:f(i,D),M=(D,G)=>{y(!0),m==null||m(O,i,B.type),q==null||q(D,G)};Ym.onPointerDown(O.nativeEvent,{autoPanOnConnect:R,connectionMode:I,connectionRadius:K,domNode:U,handleId:B.id,nodeId:B.nodeId,nodeLookup:Y,isTarget:j,edgeUpdaterType:B.type,lib:z,flowId:C,cancelConnection:X,panBy:$,isValidConnection:(...D)=>{var G,L;return((L=(G=_.getState()).isValidConnection)==null?void 0:L.call(G,...D))??!0},onConnect:Q,onConnectStart:M,onConnectEnd:(...D)=>{var G,L;return(L=(G=_.getState()).onConnectEnd)==null?void 0:L.call(G,...D)},onReconnectEnd:V,updateConnection:A,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(k1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&g.jsx(k1,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:w,onMouseEnter:k,onMouseOut:E,type:"target"})]})}function j8({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:o,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 B=E.type||"default",R=(N==null?void 0:N[B])||E1[B];R===void 0&&(w==null||w("011",Oi.error011(B)),B="default",R=(N==null?void 0:N.default)||E1.default);const U=!!(E.focusable||t&&typeof E.focusable>"u"),I=typeof p<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),K=!!(E.selectable||a&&typeof E.selectable>"u"),z=re.useRef(null),[q,X]=re.useState(!1),[Y,C]=re.useState(!1),$=zt(),{zIndex:A=E.zIndex,sourceX:j,sourceY:V,targetX:Q,targetY:M,sourcePosition:D,targetPosition:G}=dt(re.useCallback(be=>{const we=be.nodeLookup.get(E.source),Ne=be.nodeLookup.get(E.target);if(!we||!Ne)return N1;const Le=NI({id:e,sourceNode:we,targetNode:Ne,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:be.connectionMode,onError:w}),$e=gI({selected:E.selected,zIndex:E.zIndex,sourceNode:we,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...Le||N1,zIndex:$e}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),qt),L=re.useMemo(()=>E.markerStart?`url('#${Gm(E.markerStart,_)}')`:void 0,[E.markerStart,_]),F=re.useMemo(()=>E.markerEnd?`url('#${Gm(E.markerEnd,_)}')`:void 0,[E.markerEnd,_]);if(E.hidden||j===null||V===null||Q===null||M===null)return null;const H=be=>{var $e;const{addSelectedEdges:we,unselectNodesAndEdges:Ne,multiSelectionActive:Le}=$.getState();K&&($.setState({nodesSelectionActive:!1}),E.selected&&Le?(Ne({nodes:[],edges:[E]}),($e=z.current)==null||$e.blur()):we([e])),s&&s(be,E)},Z=o?be=>{o(be,{...E})}:void 0,J=c?be=>{c(be,{...E})}:void 0,W=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&&pE.includes(be.key)&&K){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:A},children:g.jsxs("g",{className:ln(["react-flow__edge",`react-flow__edge-${B}`,E.className,S,{selected:E.selected,animated:E.animated,inactive:!K&&!s,updating:q,selectable:K}]),onClick:H,onDoubleClick:Z,onContextMenu:J,onMouseEnter:W,onMouseMove:ee,onMouseLeave:ce,onKeyDown:U?fe:void 0,tabIndex:U?0:void 0,role:E.ariaRole??(U?"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":U?`${XE}-${_}`: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:K,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:j,sourceY:V,targetX:Q,targetY:M,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(z8,{edge:E,isReconnectable:I,reconnectRadius:m,onReconnect:p,onReconnectStart:y,onReconnectEnd:x,sourceX:j,sourceY:V,targetX:Q,targetY:M,sourcePosition:D,targetPosition:G,setUpdateHover:X,setReconnecting:C})]})})}var I8=re.memo(j8);const B8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function wN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:o,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(B8,qt),O=w8(t);return g.jsxs("div",{className:"react-flow__edges",children:[g.jsx(T8,{defaultColor:e,rfId:i}),O.map(B=>g.jsx(I8,{id:B,edgesFocusable:S,edgesReconnectable:w,elementsSelectable:k,noPanClassName:s,onReconnect:o,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},B))]})}wN.displayName="EdgeRenderer";const U8=re.memo(wN),T1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function H8({children:e}){const t=zt(),i=re.useRef(null),[a]=re.useState(()=>t.getState().transform);return eN(()=>{let s=null;const o=()=>{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=T1(c)))};return o(),t.subscribe(o)},[t]),g.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:T1(a)},children:e})}function $8(e){const t=So(),i=re.useRef(!1);re.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const q8=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function P8(e){const t=dt(q8),i=zt();return re.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function F8(e){return e.connection.inProgress?{...e.connection,to:No(e.connection.to,e.transform)}:{...e.connection}}function G8(e){return F8}function V8(e){const t=G8();return dt(t,qt)}const Y8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function X8({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:h}=dt(Y8,qt);return!(o&&s&&h)?null:g.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:g.jsx("g",{className:ln(["react-flow__connection",xE(d)]),children:g.jsx(EN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const EN=({style:e,type:t=ia.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:m,toHandle:p,toPosition:y,pointer:x}=V8();if(!s)return;if(i)return g.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:y,connectionStatus:xE(a),toNode:m,toHandle:p,pointer:x});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:y};switch(t){case ia.Bezier:[_]=OE(N);break;case ia.SimpleBezier:[_]=uN(N);break;case ia.Step:[_]=Fm({...N,borderRadius:0});break;case ia.SmoothStep:[_]=Fm(N);break;default:[_]=DE(N)}return g.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};EN.displayName="ConnectionLine";const K8={};function A1(e=K8){re.useRef(e),zt(),re.useEffect(()=>{},[e])}function Z8(){zt(),re.useRef(!1),re.useEffect(()=>{},[])}function NN({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,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:B,panActivationKeyCode:R,zoomActivationKeyCode:U,deleteKeyCode:I,onlyRenderVisibleElements:K,elementsSelectable:z,defaultViewport:q,translateExtent:X,minZoom:Y,maxZoom:C,preventScrolling:$,defaultMarkerColor:A,zoomOnScroll:j,zoomOnPinch:V,panOnScroll:Q,panOnScrollSpeed:M,panOnScrollMode:D,zoomOnDoubleClick:G,panOnDrag:L,autoPanOnSelection:F,onPaneClick:H,onPaneMouseEnter:Z,onPaneMouseMove:J,onPaneMouseLeave:W,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 A1(e),A1(t),Z8(),$8(i),P8(xe),g.jsx(f8,{onPaneClick:H,onPaneMouseEnter:Z,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:ce,onPaneScroll:ee,paneClickDistance:fe,deleteKeyCode:I,selectionKeyCode:k,selectionOnDrag:E,selectionMode:O,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:U,elementsSelectable:z,zoomOnScroll:j,zoomOnPinch:V,zoomOnDoubleClick:G,panOnScroll:Q,panOnScrollSpeed:M,panOnScrollMode:D,panOnDrag:L,autoPanOnSelection:F,defaultViewport:q,translateExtent:X,minZoom:Y,maxZoom:C,onSelectionContextMenu:p,preventScrolling:$,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:wn,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:g.jsxs(H8,{children:[g.jsx(U8,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:K,onEdgeContextMenu:we,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:A,noPanClassName:wn,disableKeyboardA11y:ct,rfId:ue}),g.jsx(X8,{style:N,type:_,component:S,containerStyle:w}),g.jsx("div",{className:"react-flow__edgelabel-renderer"}),g.jsx(_8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:m,nodeClickDistance:be,onlyRenderVisibleElements:K,noPanClassName:wn,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),g.jsx("div",{className:"react-flow__viewport-portal"})]})})}NN.displayName="GraphView";const Q8=re.memo(NN),W8=NE(),C1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,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??oo;jE(N,S,w);const{nodesInitialized:B}=Vm(k,x,_,{nodeOrigin:E,nodeExtent:O,zIndexMode:y});let R=[0,0,1];if(c&&s&&o){const U=wo(x,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:I,y:K,zoom:z}=$p(U,s,o,h,f,(d==null?void 0:d.padding)??.1);R=[I,K,z]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:k,nodesInitialized:B,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:oo,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Us.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:{...bE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:W8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:gE,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},J8=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y})=>h6((x,_)=>{async function N(){const{nodeLookup:S,panZoom:w,fitViewOptions:k,fitViewResolver:E,width:O,height:B,minZoom:R,maxZoom:U}=_();w&&(await cI({nodes:S,width:O,height:B,panZoom:w,minZoom:R,maxZoom:U},k),E==null||E.resolve(!0),x({fitViewResolver:null}))}return{...C1({nodes:e,edges:t,width:s,height:o,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:B,zIndexMode:R,nodesSelectionActive:U}=_(),{nodesInitialized:I,hasSelectedNodes:K}=Vm(S,w,k,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:R}),z=U&&K;B&&I?(N(),x({nodes:S,nodesInitialized:I,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:z})):x({nodes:S,nodesInitialized:I,nodesSelectionActive:z})},setEdges:S=>{const{connectionLookup:w,edgeLookup:k}=_();jE(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:B,nodeExtent:R,debug:U,fitViewQueued:I,zIndexMode:K}=_(),{changes:z,updatedInternals:q}=RI(S,k,E,O,B,R,K);q&&(AI(k,E,{nodeOrigin:B,nodeExtent:R,zIndexMode:K}),I?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(z==null?void 0:z.length)>0&&(U&&console.log("React Flow: trigger node changes",z),w==null||w(z)))},updateNodePositions:(S,w=!1)=>{const k=[];let E=[];const{nodeLookup:O,triggerNodeChanges:B,connection:R,updateConnection:U,onNodesChangeMiddlewareMap:I}=_();for(const[K,z]of S){const q=O.get(K),X=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(z!=null&&z.position)),Y={id:K,type:"position",position:X?{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=Ha(q,R.fromHandle,je.Left,!0);U({...R,from:C})}X&&q.parentId&&k.push({id:K,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:K,nodeOrigin:z}=_(),q=Yp(k,O,K,z);E.push(...q)}for(const K of I.values())E=K(E);B(E)},triggerNodeChanges:S=>{const{onNodesChange:w,setNodes:k,nodes:E,hasDefaultNodes:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=QE(S,E);k(R)}B&&console.log("React Flow: trigger node changes",S),w==null||w(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:w,setEdges:k,edges:E,hasDefaultEdges:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=WE(S,E);k(R)}B&&console.log("React Flow: trigger edge changes",S),w==null||w(S)}},addSelectedNodes:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(w){const R=S.map(U=>Ma(U,!0));O(R);return}O(As(E,new Set([...S]),!0)),B(As(k))},addSelectedEdges:S=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:E,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(w){const R=S.map(U=>Ma(U,!0));B(R);return}B(As(k,new Set([...S]))),O(As(E,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:w}={})=>{const{edges:k,nodes:E,nodeLookup:O,triggerNodeChanges:B,triggerEdgeChanges:R}=_(),U=S||E,I=w||k,K=[];for(const q of U){if(!q.selected)continue;const X=O.get(q.id);X&&(X.selected=!1),K.push(Ma(q.id,!1))}const z=[];for(const q of I)q.selected&&z.push(Ma(q.id,!1));B(K),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 B=w.reduce((U,I)=>I.selected?[...U,Ma(I.id,!1)]:U,[]),R=S.reduce((U,I)=>I.selected?[...U,Ma(I.id,!1)]:U,[]);k(B),E(R)},setNodeExtent:S=>{const{nodes:w,nodeLookup:k,parentLookup:E,nodeOrigin:O,elevateNodesOnSelect:B,nodeExtent:R,zIndexMode:U}=_();S[0][0]===R[0][0]&&S[0][1]===R[0][1]&&S[1][0]===R[1][0]&&S[1][1]===R[1][1]||(Vm(w,k,E,{nodeOrigin:O,nodeExtent:S,elevateNodesOnSelect:B,checkEquality:!1,zIndexMode:U}),x({nodeExtent:S}))},panBy:S=>{const{transform:w,width:k,height:E,panZoom:O,translateExtent:B}=_();return DI({delta:S,panZoom:O,transform:w,translateExtent:B,width:k,height:E})},setCenter:async(S,w,k)=>{const{width:E,height:O,maxZoom:B,panZoom:R}=_();if(!R)return!1;const U=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:B;return await R.setViewport({x:E/2-S*U,y:O/2-w*U,zoom:U},{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:{...bE}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...C1()})}},Object.is);function eB({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:m,nodeExtent:p,zIndexMode:y,children:x}){const[_]=re.useState(()=>J8({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:m,nodeExtent:p,zIndexMode:y}));return g.jsx(m6,{value:_,children:g.jsx(B6,{children:g.jsx(J6,{children:x})})})}function tB({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x}){return re.useContext(Hu)?g.jsx(g.Fragment,{children:e}):g.jsx(eB,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:m,nodeOrigin:p,nodeExtent:y,zIndexMode:x,children:e})}const nB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function iB({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:o,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:B,onNodeDoubleClick:R,onNodeDragStart:U,onNodeDrag:I,onNodeDragStop:K,onNodesDelete:z,onEdgesDelete:q,onDelete:X,onSelectionChange:Y,onSelectionDragStart:C,onSelectionDrag:$,onSelectionDragStop:A,onSelectionContextMenu:j,onSelectionStart:V,onSelectionEnd:Q,onBeforeDelete:M,connectionMode:D,connectionLineType:G=ia.Bezier,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:H,deleteKeyCode:Z="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:ee=co.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:fe=fo()?"Meta":"Control",zoomActivationKeyCode:be=fo()?"Meta":"Control",snapToGrid:we,snapGrid:Ne,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=KE,edgesFocusable:Vn,edgesReconnectable:wn,elementsSelectable:ct=!0,defaultViewport:It=T6,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=oo,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:on="#b1b1b7",zoomOnScroll:En=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=La.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:yr,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:vr=10,onNodesChange:_r,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:mn="nowheel",noPanClassName:xi="nopan",fitView:wr,fitViewOptions:la,connectOnClick:Er,attributionPosition:Pa,proOptions:Xi,defaultEdgeOptions:oa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:yi=!1,disableKeyboardA11y:vi=!1,autoPanOnConnect:Li,autoPanOnNodeDrag:Ft,autoPanOnSelection:Fa=!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:Ga="light",debug:Nr,onScroll:zi,ariaLabelConfig:Sr,zIndexMode:Va="basic",...Sn},ca){const wi=ft||"1",kr=O6(Ga),un=re.useCallback(ua=>{ua.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),zi==null||zi(ua)},[zi]);return g.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...nB},ref:ca,className:ln(["react-flow",s,kr]),id:ft,role:"application",children:g.jsxs(tB,{nodes:e,edges:t,width:_t,height:On,fitView:wr,fitViewOptions:la,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Va,children:[g.jsx(M6,{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:_r,onEdgesChange:ai,snapToGrid:we,snapGrid:Ne,connectionMode:D,translateExtent:Oe,connectOnClick:Er,defaultEdgeOptions:oa,fitView:wr,fitViewOptions:la,onNodesDelete:z,onEdgesDelete:q,onDelete:X,onNodeDragStart:U,onNodeDrag:I,onNodeDragStop:K,onSelectionDrag:$,onSelectionDragStart:C,onSelectionDragStop:A,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:M,debug:Nr,ariaLabelConfig:Sr,zIndexMode:Va}),g.jsx(Q8,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:E,onNodeMouseLeave:O,onNodeContextMenu:B,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:G,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:H,selectionKeyCode:J,selectionOnDrag:W,selectionMode:ee,deleteKeyCode:Z,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:Fa,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:me,nodeClickDistance:Ee,onSelectionContextMenu:j,onSelectionStart:V,onSelectionEnd:Q,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:bi,reconnectRadius:vr,defaultMarkerColor:on,noDragClassName:Ut,noWheelClassName:mn,noPanClassName:xi,rfId:wi,disableKeyboardA11y:vi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),g.jsx(k6,{onSelectionChange:Y}),Pe,g.jsx(_6,{proOptions:Xi,position:Pa}),g.jsx(v6,{rfId:wi,disableKeyboardA11y:vi})]})})}var rB=JE(iB);function aB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>QE(s,o)),[]);return[t,i,a]}function sB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>WE(s,o)),[]);return[t,i,a]}function lB({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:ln(["react-flow__background-pattern",i,a])})}function oB({radius:e,className:t}){return g.jsx("circle",{cx:e,cy:e,r:e,className:ln(["react-flow__background-pattern","dots",t])})}var ra;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ra||(ra={}));const cB={[ra.Dots]:1,[ra.Lines]:1,[ra.Cross]:6},uB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function SN({id:e,variant:t=ra.Dots,gap:i=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:h,className:f,patternClassName:m}){const p=re.useRef(null),{transform:y,patternId:x}=dt(uB,qt),_=a||cB[t],N=t===ra.Dots,S=t===ra.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(o)?o:[o,o],B=S?[E,E]:k,R=[O[0]*y[2]||1+B[0]/2,O[1]*y[2]||1+B[1]/2],U=`${x}${e||""}`;return g.jsxs("svg",{className:ln(["react-flow__background",f]),style:{...h,...qu,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[g.jsx("pattern",{id:U,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(oB,{radius:E/2,className:m}):g.jsx(lB,{dimensions:B,lineWidth:s,variant:t,className:m})}),g.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${U})`})]})}SN.displayName="Background";const dB=re.memo(SN);function fB(){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 hB(){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 mB(){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 pB(){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 gB(){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 Wc({children:e,className:t,...i}){return g.jsx("button",{type:"button",className:ln(["react-flow__controls-button",t]),...i,children:e})}const bB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function kN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,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(bB,qt),{zoomIn:E,zoomOut:O,fitView:B}=So(),R=()=>{E(),o==null||o()},U=()=>{O(),c==null||c()},I=()=>{B(s),d==null||d()},K=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},z=y==="horizontal"?"horizontal":"vertical";return g.jsxs($u,{className:ln(["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(Wc,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:w,children:g.jsx(fB,{})}),g.jsx(Wc,{onClick:U,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:g.jsx(hB,{})})]}),i&&g.jsx(Wc,{className:"react-flow__controls-fitview",onClick:I,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:g.jsx(mB,{})}),a&&g.jsx(Wc,{className:"react-flow__controls-interactive",onClick:K,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?g.jsx(gB,{}):g.jsx(pB,{})}),m]})}kN.displayName="Controls";const xB=re.memo(kN);function yB({id:e,x:t,y:i,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:m,shapeRendering:p,selected:y,onClick:x}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return g.jsx("rect",{className:ln(["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 vB=re.memo(yB),_B=e=>e.nodes.map(t=>t.id),pm=e=>e instanceof Function?e:()=>e;function wB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=vB,onClick:c}){const d=dt(_B,qt),h=pm(t),f=pm(e),m=pm(i),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g.jsx(g.Fragment,{children:d.map(y=>g.jsx(NB,{id:y,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:m,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:p},y))})}function EB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,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||!SE(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:o,shapeRendering:c,onClick:h,id:f.id})}const NB=re.memo(EB);var SB=re.memo(wB);const kB=200,TB=150,AB=e=>!e.hidden,CB=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?wE(wo(e.nodeLookup,{filter:AB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},M1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,MB=(e,t)=>M1(e.viewBB,t.viewBB)&&M1(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,OB="react-flow__minimap-desc";function TN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=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 B=zt(),R=re.useRef(null),{boundingRect:U,viewBB:I,rfId:K,panZoom:z,translateExtent:q,flowWidth:X,flowHeight:Y,ariaLabelConfig:C}=dt(CB,MB),$=(e==null?void 0:e.width)??kB,A=(e==null?void 0:e.height)??TB,j=U.width/$,V=U.height/A,Q=Math.max(j,V),M=Q*$,D=Q*A,G=O*Q,L=U.x-(M-U.width)/2-G,F=U.y-(D-U.height)/2-G,H=M+G*2,Z=D+G*2,J=`${OB}-${K}`,W=re.useRef(0),ee=re.useRef();W.current=Q,re.useEffect(()=>{if(R.current&&z)return ee.current=qI({domNode:R.current,panZoom:z,getTransform:()=>B.getState().transform,getViewScale:()=>W.current}),()=>{var we;(we=ee.current)==null||we.destroy()}},[z]),re.useEffect(()=>{var we;(we=ee.current)==null||we.update({translateExtent:q,width:X,height:Y,inversePan:k,pannable:N,zoomStep:E,zoomable:S})},[N,S,k,E,q,X,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=B.getState().nodeLookup.get(Ne).internals.userNode;_(we,Le)},[]):void 0,be=w??C["minimap.ariaLabel"];return g.jsx($u,{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*Q: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:ln(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:g.jsxs("svg",{width:$,height:A,viewBox:`${L} ${F} ${H} ${Z}`,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(SB,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),g.jsx("path",{className:"react-flow__minimap-mask",d:`M${L-G},${F-G}h${H+G*2}v${Z+G*2}h${-H-G*2}z + M${I.x},${I.y}h${I.width}v${I.height}h${-I.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}TN.displayName="MiniMap";const RB=re.memo(TN),DB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,LB={[qs.Line]:"right",[qs.Handle]:"bottom-right"};function zB({nodeId:e,position:t,variant:i=qs.Handle,className:a,style:s=void 0,children:o,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=rN(),E=typeof e=="string"?e:k,O=zt(),B=re.useRef(null),R=i===qs.Handle,U=dt(re.useCallback(DB(R&&x),[R,x]),qt),I=re.useRef(null),K=t??LB[i];re.useEffect(()=>{if(!(!B.current||!E))return I.current||(I.current=t6({domNode:B.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:q,transform:X,snapGrid:Y,snapToGrid:C,nodeOrigin:$,domNode:A}=O.getState();return{nodeLookup:q,transform:X,snapGrid:Y,snapToGrid:C,nodeOrigin:$,paneDomNode:A}},onChange:(q,X)=>{const{triggerNodeChanges:Y,nodeLookup:C,parentLookup:$,nodeOrigin:A}=O.getState(),j=[],V={x:q.x,y:q.y},Q=C.get(E);if(Q&&Q.expandParent&&Q.parentId){const M=Q.origin??A,D=q.width??Q.measured.width??0,G=q.height??Q.measured.height??0,L={id:Q.id,parentId:Q.parentId,rect:{width:D,height:G,...kE({x:q.x??Q.position.x,y:q.y??Q.position.y},{width:D,height:G},Q.parentId,C,M)}},F=Yp([L],C,$,A);j.push(...F),V.x=q.x?Math.max(M[0]*D,q.x):void 0,V.y=q.y?Math.max(M[1]*G,q.y):void 0}if(V.x!==void 0&&V.y!==void 0){const M={id:E,type:"position",position:{...V}};j.push(M)}if(q.width!==void 0&&q.height!==void 0){const D={id:E,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};j.push(D)}for(const M of X){const D={...M,type:"position"};j.push(D)}Y(j)},onEnd:({width:q,height:X})=>{const Y={id:E,type:"dimensions",resizing:!1,dimensions:{width:q,height:X}};O.getState().triggerNodeChanges([Y])}})),I.current.update({controlPosition:K,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:m},keepAspectRatio:p,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:w,shouldResize:_}),()=>{var q;(q=I.current)==null||q.destroy()}},[K,d,h,f,m,p,N,S,w,_]);const z=K.split("-");return g.jsx("div",{className:ln(["react-flow__resize-control","nodrag",...z,i,a]),ref:B,style:{...s,scale:U,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}re.memo(zB);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),o=(Y,C,$)=>a(Y,typeof C!="symbol"?C+"":C,$),c=s((Y,C)=>{var $="\0",A="\0",j="",V=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(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[A]={})}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(H=>Object.keys(F._in[H]).length===0)}sinks(){var F=this;return this.nodes().filter(H=>Object.keys(F._out[H]).length===0)}setNodes(F,H){var Z=arguments,J=this;return F.forEach(function(W){Z.length>1?J.setNode(W,H):J.setNode(W)}),this}setNode(F,H){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=H),this):(this._nodes[F]=arguments.length>1?H:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=A,this._children[F]={},this._children[A][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 H=this;if(Object.hasOwn(this._nodes,F)){var Z=J=>H.removeEdge(H._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){H.setParent(J)}),delete this._children[F]),Object.keys(this._in[F]).forEach(Z),delete this._in[F],delete this._preds[F],Object.keys(this._out[F]).forEach(Z),delete this._out[F],delete this._sucs[F],--this._nodeCount}return this}setParent(F,H){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(H===void 0)H=A;else{H+="";for(var Z=H;Z!==void 0;Z=this.parent(Z))if(Z===F)throw new Error("Setting "+H+" as parent of "+F+" would create a cycle");this.setNode(H)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=H,this._children[H][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var H=this._parent[F];if(H!==A)return H}}children(F=A){if(this._isCompound){var H=this._children[F];if(H)return Object.keys(H)}else{if(F===A)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var H=this._preds[F];if(H)return Object.keys(H)}successors(F){var H=this._sucs[F];if(H)return Object.keys(H)}neighbors(F){var H=this.predecessors(F);if(H){let J=new Set(H);for(var Z of this.successors(F))J.add(Z);return Array.from(J.values())}}isLeaf(F){var H;return this.isDirected()?H=this.successors(F):H=this.neighbors(F),H.length===0}filterNodes(F){var H=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});H.setGraph(this.graph());var Z=this;Object.entries(this._nodes).forEach(function([ee,ce]){F(ee)&&H.setNode(ee,ce)}),Object.values(this._edgeObjs).forEach(function(ee){H.hasNode(ee.v)&&H.hasNode(ee.w)&&H.setEdge(ee,Z.edge(ee))});var J={};function W(ee){var ce=Z.parent(ee);return ce===void 0||H.hasNode(ce)?(J[ee]=ce,ce):ce in J?J[ce]:W(ce)}return this._isCompound&&H.nodes().forEach(ee=>H.setParent(ee,W(ee))),H}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,H){var Z=this,J=arguments;return F.reduce(function(W,ee){return J.length>1?Z.setEdge(W,ee,H):Z.setEdge(W,ee),ee}),this}setEdge(){var F,H,Z,J,W=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(F=ee.v,H=ee.w,Z=ee.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=ee,H=arguments[1],Z=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,H=""+H,Z!==void 0&&(Z=""+Z);var ce=D(this._isDirected,F,H,Z);if(Object.hasOwn(this._edgeLabels,ce))return W&&(this._edgeLabels[ce]=J),this;if(Z!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode(H),this._edgeLabels[ce]=W?J:this._defaultEdgeLabelFn(F,H,Z);var fe=G(this._isDirected,F,H,Z);return F=fe.v,H=fe.w,Object.freeze(fe),this._edgeObjs[ce]=fe,Q(this._preds[H],F),Q(this._sucs[F],H),this._in[H][ce]=fe,this._out[F][ce]=fe,this._edgeCount++,this}edge(F,H,Z){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,H,Z);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,H,Z){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,H,Z);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,H,Z){var J=arguments.length===1?L(this._isDirected,arguments[0]):D(this._isDirected,F,H,Z),W=this._edgeObjs[J];return W&&(F=W.v,H=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],M(this._preds[H],F),M(this._sucs[F],H),delete this._in[H][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,H){return this.isDirected()?this.filterEdges(this._in[F],F,H):this.nodeEdges(F,H)}outEdges(F,H){return this.isDirected()?this.filterEdges(this._out[F],F,H):this.nodeEdges(F,H)}nodeEdges(F,H){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,H)}filterEdges(F,H,Z){if(F){var J=Object.values(F);return Z?J.filter(function(W){return W.v===H&&W.w===Z||W.v===Z&&W.w===H}):J}}};function Q(F,H){F[H]?F[H]++:F[H]=1}function M(F,H){--F[H]||delete F[H]}function D(F,H,Z,J){var W=""+H,ee=""+Z;if(!F&&W>ee){var ce=W;W=ee,ee=ce}return W+j+ee+j+(J===void 0?$:J)}function G(F,H,Z,J){var W=""+H,ee=""+Z;if(!F&&W>ee){var ce=W;W=ee,ee=ce}var fe={v:W,w:ee};return J&&(fe.name=J),fe}function L(F,H){return D(F,H.v,H.w,H.name)}C.exports=V}),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:A,read:Q};function A(M){var D={options:{directed:M.isDirected(),multigraph:M.isMultigraph(),compound:M.isCompound()},nodes:j(M),edges:V(M)};return M.graph()!==void 0&&(D.value=structuredClone(M.graph())),D}function j(M){return M.nodes().map(function(D){var G=M.node(D),L=M.parent(D),F={v:D};return G!==void 0&&(F.value=G),L!==void 0&&(F.parent=L),F})}function V(M){return M.edges().map(function(D){var G=M.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 Q(M){var D=new $(M.options).setGraph(M.value);return M.nodes.forEach(function(G){D.setNode(G.v,G.value),G.parent&&D.setParent(G.v,G.parent)}),M.edges.forEach(function(G){D.setEdge({v:G.v,w:G.w,name:G.name},G.value)}),D}}),m=s((Y,C)=>{C.exports=A;var $=()=>1;function A(V,Q,M,D){return j(V,String(Q),M||$,D||function(G){return V.outEdges(G)})}function j(V,Q,M,D){var G={},L=!0,F=0,H=V.nodes(),Z=function(ce){var fe=M(ce);G[ce.v].distance+fe{C.exports=$;function $(A){var j={},V=[],Q;function M(D){Object.hasOwn(j,D)||(j[D]=!0,Q.push(D),A.successors(D).forEach(M),A.predecessors(D).forEach(M))}return A.nodes().forEach(function(D){Q=[],M(D),Q.length&&V.push(Q)}),V}}),y=s((Y,C)=>{var $=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(A){return A.key})}has(A){return Object.hasOwn(this._keyIndices,A)}priority(A){var j=this._keyIndices[A];if(j!==void 0)return this._arr[j].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(A,j){var V=this._keyIndices;if(A=String(A),!Object.hasOwn(V,A)){var Q=this._arr,M=Q.length;return V[A]=M,Q.push({key:A,priority:j}),this._decrease(M),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var A=this._arr.pop();return delete this._keyIndices[A.key],this._heapify(0),A.key}decrease(A,j){var V=this._keyIndices[A];if(j>this._arr[V].priority)throw new Error("New priority is greater than current priority. Key: "+A+" Old: "+this._arr[V].priority+" New: "+j);this._arr[V].priority=j,this._decrease(V)}_heapify(A){var j=this._arr,V=2*A,Q=V+1,M=A;V>1,!(j[Q].priority{var $=y();C.exports=j;var A=()=>1;function j(Q,M,D,G){var L=function(F){return Q.outEdges(F)};return V(Q,String(M),D||A,G||L)}function V(Q,M,D,G){var L={},F=new $,H,Z,J=function(W){var ee=W.v!==H?W.v:W.w,ce=L[ee],fe=D(W),be=Z.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be0&&(H=F.removeMin(),Z=L[H],Z.distance!==Number.POSITIVE_INFINITY);)G(H).forEach(J);return L}}),_=s((Y,C)=>{var $=x();C.exports=A;function A(j,V,Q){return j.nodes().reduce(function(M,D){return M[D]=$(j,D,V,Q),M},{})}}),N=s((Y,C)=>{C.exports=$;function $(j,V,Q){if(j[V].predecessor!==void 0)throw new Error("Invalid source vertex");if(j[Q].predecessor===void 0&&Q!==V)throw new Error("Invalid destination vertex");return{weight:j[Q].distance,path:A(j,V,Q)}}function A(j,V,Q){for(var M=[],D=Q;D!==V;)M.push(D),D=j[D].predecessor;return M.push(V),M.reverse()}}),S=s((Y,C)=>{C.exports=$;function $(A){var j=0,V=[],Q={},M=[];function D(G){var L=Q[G]={onStack:!0,lowlink:j,index:j++};if(V.push(G),A.successors(G).forEach(function(Z){Object.hasOwn(Q,Z)?Q[Z].onStack&&(L.lowlink=Math.min(L.lowlink,Q[Z].index)):(D(Z),L.lowlink=Math.min(L.lowlink,Q[Z].lowlink))}),L.lowlink===L.index){var F=[],H;do H=V.pop(),Q[H].onStack=!1,F.push(H);while(G!==H);M.push(F)}}return A.nodes().forEach(function(G){Object.hasOwn(Q,G)||D(G)}),M}}),w=s((Y,C)=>{var $=S();C.exports=A;function A(j){return $(j).filter(function(V){return V.length>1||V.length===1&&j.hasEdge(V[0],V[0])})}}),k=s((Y,C)=>{C.exports=A;var $=()=>1;function A(V,Q,M){return j(V,Q||$,M||function(D){return V.outEdges(D)})}function j(V,Q,M){var D={},G=V.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})}),M(L).forEach(function(F){var H=F.v===L?F.w:F.v,Z=Q(F);D[L][H]={distance:Z,predecessor:L}})}),G.forEach(function(L){var F=D[L];G.forEach(function(H){var Z=D[H];G.forEach(function(J){var W=Z[L],ee=F[J],ce=Z[J],fe=W.distance+ee.distance;fe{function $(j){var V={},Q={},M=[];function D(G){if(Object.hasOwn(Q,G))throw new A;Object.hasOwn(V,G)||(Q[G]=!0,V[G]=!0,j.predecessors(G).forEach(D),delete Q[G],M.push(G))}if(j.sinks().forEach(D),Object.keys(V).length!==j.nodeCount())throw new A;return M}var A=class extends Error{constructor(){super(...arguments)}};C.exports=$,$.CycleException=A}),O=s((Y,C)=>{var $=E();C.exports=A;function A(j){try{$(j)}catch(V){if(V instanceof $.CycleException)return!1;throw V}return!0}}),B=s((Y,C)=>{C.exports=$;function $(j,V,Q,M,D){Array.isArray(V)||(V=[V]);var G=(j.isDirected()?j.successors:j.neighbors).bind(j),L={};return V.forEach(function(F){if(!j.hasNode(F))throw new Error("Graph does not have node: "+F);D=A(j,F,Q==="post",L,G,M,D)}),D}function A(j,V,Q,M,D,G,L){return Object.hasOwn(M,V)||(M[V]=!0,Q||(L=G(L,V)),D(V).forEach(function(F){L=A(j,F,Q,M,D,G,L)}),Q&&(L=G(L,V))),L}}),R=s((Y,C)=>{var $=B();C.exports=A;function A(j,V,Q){return $(j,V,Q,function(M,D){return M.push(D),M},[])}}),U=s((Y,C)=>{var $=R();C.exports=A;function A(j,V){return $(j,V,"post")}}),I=s((Y,C)=>{var $=R();C.exports=A;function A(j,V){return $(j,V,"pre")}}),K=s((Y,C)=>{var $=c(),A=y();C.exports=j;function j(V,Q){var M=new $,D={},G=new A,L;function F(Z){var J=Z.v===L?Z.w:Z.v,W=G.priority(J);if(W!==void 0){var ee=Q(Z);ee0;){if(L=G.removeMin(),Object.hasOwn(D,L))M.setEdge(L,D[L]);else{if(H)throw new Error("Input graph is not connected: "+V);H=!0}V.nodeEdges(L).forEach(F)}return M}}),z=s((Y,C)=>{var $=x(),A=m();C.exports=j;function j(Q,M,D,G){return V(Q,M,D,G||function(L){return Q.outEdges(L)})}function V(Q,M,D,G){if(D===void 0)return $(Q,M,D,G);for(var L=!1,F=Q.nodes(),H=0;H{C.exports={bellmanFord:m(),components:p(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:w(),floydWarshall:k(),isAcyclic:O(),postorder:U(),preorder:I(),prim:K(),shortestPaths:z(),reduce:B(),tarjan:S(),topsort:E()}}),X=h();t.exports={Graph:X.Graph,json:f(),alg:q(),version:X.version}}),jB=vt((e,t)=>{var i=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,c=o._prev;if(c!==o)return a(c),c}enqueue(o){let c=this._sentinel;o._prev&&o._next&&a(o),o._next=c._next,c._next._prev=o,c._next=o,o._prev=c}toString(){let o=[],c=this._sentinel,d=c._prev;for(;d!==c;)o.push(JSON.stringify(d,s)),d=d._prev;return"["+o.join(", ")+"]"}};function a(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function s(o,c){if(o!=="_next"&&o!=="_prev")return c}t.exports=i}),IB=vt((e,t)=>{var i=Ri().Graph,a=jB();t.exports=o;var s=()=>1;function o(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),B=E+O;x.setEdge(k.v,k.w,B),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:o,buildLayerMatrix:f,intersectRect:h,mapValues:I,maxRank:S,normalizeRanks:m,notime:E,partition:w,pick:U,predecessorWeights:d,range:R,removeEmptyRanks:p,simplify:s,successorWeights:c,time:k,uniqueId:B,zipObject:K};function a(z,q,X,Y){for(var C=Y;z.hasNode(C);)C=B(Y);return X.dummy=q,z.setNode(C,X),C}function s(z){let q=new i().setGraph(z.graph());return z.nodes().forEach(X=>q.setNode(X,z.node(X))),z.edges().forEach(X=>{let Y=q.edge(X.v,X.w)||{weight:0,minlen:1},C=z.edge(X);q.setEdge(X.v,X.w,{weight:Y.weight+C.weight,minlen:Math.max(Y.minlen,C.minlen)})}),q}function o(z){let q=new i({multigraph:z.isMultigraph()}).setGraph(z.graph());return z.nodes().forEach(X=>{z.children(X).length||q.setNode(X,z.node(X))}),z.edges().forEach(X=>{q.setEdge(X,z.edge(X))}),q}function c(z){let q=z.nodes().map(X=>{let Y={};return z.outEdges(X).forEach(C=>{Y[C.w]=(Y[C.w]||0)+z.edge(C).weight}),Y});return K(z.nodes(),q)}function d(z){let q=z.nodes().map(X=>{let Y={};return z.inEdges(X).forEach(C=>{Y[C.v]=(Y[C.v]||0)+z.edge(C).weight}),Y});return K(z.nodes(),q)}function h(z,q){let X=z.x,Y=z.y,C=q.x-X,$=q.y-Y,A=z.width/2,j=z.height/2;if(!C&&!$)throw new Error("Not possible to find intersection inside of the rectangle");let V,Q;return Math.abs($)*A>Math.abs(C)*j?($<0&&(j=-j),V=j*C/$,Q=j):(C<0&&(A=-A),V=A,Q=A*$/C),{x:X+V,y:Y+Q}}function f(z){let q=R(S(z)+1).map(()=>[]);return z.nodes().forEach(X=>{let Y=z.node(X),C=Y.rank;C!==void 0&&(q[C][Y.order]=X)}),q}function m(z){let q=z.nodes().map(Y=>{let C=z.node(Y).rank;return C===void 0?Number.MAX_VALUE:C}),X=N(Math.min,q);z.nodes().forEach(Y=>{let C=z.node(Y);Object.hasOwn(C,"rank")&&(C.rank-=X)})}function p(z){let q=z.nodes().map(A=>z.node(A).rank).filter(A=>A!==void 0),X=N(Math.min,q),Y=[];z.nodes().forEach(A=>{let j=z.node(A).rank-X;Y[j]||(Y[j]=[]),Y[j].push(A)});let C=0,$=z.graph().nodeRankFactor;Array.from(Y).forEach((A,j)=>{A===void 0&&j%$!==0?--C:A!==void 0&&C&&A.forEach(V=>z.node(V).rank+=C)})}function y(z,q,X,Y){let C={width:0,height:0};return arguments.length>=4&&(C.rank=X,C.order=Y),a(z,"border",C,q)}function x(z,q=_){let X=[];for(let Y=0;Y_){let X=x(q);return z.apply(null,X.map(Y=>z.apply(null,Y)))}else return z.apply(null,q)}function S(z){let q=z.nodes().map(X=>{let Y=z.node(X).rank;return Y===void 0?Number.MIN_VALUE:Y});return N(Math.max,q)}function w(z,q){let X={lhs:[],rhs:[]};return z.forEach(Y=>{q(Y)?X.lhs.push(Y):X.rhs.push(Y)}),X}function k(z,q){let X=Date.now();try{return q()}finally{console.log(z+" time: "+(Date.now()-X)+"ms")}}function E(z,q){return q()}var O=0;function B(z){var q=++O;return z+(""+q)}function R(z,q,X=1){q==null&&(q=z,z=0);let Y=$=>$q<$);let C=[];for(let $=z;Y($);$+=X)C.push($);return C}function U(z,q){let X={};for(let Y of q)z[Y]!==void 0&&(X[Y]=z[Y]);return X}function I(z,q){let X=q;return typeof q=="string"&&(X=Y=>Y[q]),Object.entries(z).reduce((Y,[C,$])=>(Y[C]=X($,C),Y),{})}function K(z,q){return z.reduce((X,Y,C)=>(X[Y]=q[C],X),{})}}),BB=vt((e,t)=>{var i=IB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,h(d)):o(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 o(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)}})}}),UB=vt((e,t)=>{var i=sn();t.exports={run:a,undo:o};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)})}}),Nu=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(h){var f=o.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let m=o.outEdges(h).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-o.edge(y).minlen);var p=i(Math.min,m);return p===Number.POSITIVE_INFINITY&&(p=0),f.rank=p}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),AN=vt((e,t)=>{var i=Ri().Graph,a=Nu().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;o(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)}}),HB=vt((e,t)=>{var i=AN(),a=Nu().slack,s=Nu().longestPath,o=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 B=i(O);y(B),f(B,O);for(var R,U;R=_(B);)U=N(B,O,R),S(B,O,R,U)}function f(O,B){var R=c(O,O.nodes());R=R.slice(0,R.length-1),R.forEach(U=>m(O,B,U))}function m(O,B,R){var U=O.node(R),I=U.parent;O.edge(R,I).cutvalue=p(O,B,R)}function p(O,B,R){var U=O.node(R),I=U.parent,K=!0,z=B.edge(R,I),q=0;return z||(K=!1,z=B.edge(I,R)),q=z.weight,B.nodeEdges(R).forEach(X=>{var Y=X.v===R,C=Y?X.w:X.v;if(C!==I){var $=Y===K,A=B.edge(X).weight;if(q+=$?A:-A,k(O,R,C)){var j=O.edge(R,C).cutvalue;q+=$?-j:j}}}),q}function y(O,B){arguments.length<2&&(B=O.nodes()[0]),x(O,{},1,B)}function x(O,B,R,U,I){var K=R,z=O.node(U);return B[U]=!0,O.neighbors(U).forEach(q=>{Object.hasOwn(B,q)||(R=x(O,B,R,q,U))}),z.low=K,z.lim=R++,I?z.parent=I:delete z.parent,R}function _(O){return O.edges().find(B=>O.edge(B).cutvalue<0)}function N(O,B,R){var U=R.v,I=R.w;B.hasEdge(U,I)||(U=R.w,I=R.v);var K=O.node(U),z=O.node(I),q=K,X=!1;K.lim>z.lim&&(q=z,X=!0);var Y=B.edges().filter(C=>X===E(O,O.node(C.v),q)&&X!==E(O,O.node(C.w),q));return Y.reduce((C,$)=>a(B,$)!B.node(I).parent),U=o(O,R);U=U.slice(1),U.forEach(I=>{var K=O.node(I).parent,z=B.edge(I,K),q=!1;z||(z=B.edge(K,I),q=!0),B.node(I).rank=B.node(K).rank+(q?z.minlen:-z.minlen)})}function k(O,B,R){return O.hasEdge(B,R)}function E(O,B,R){return R.low<=B.lim&&B.lim<=R.lim}}),$B=vt((e,t)=>{var i=Nu(),a=i.longestPath,s=AN(),o=HB();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){o(m)}}),qB=vt((e,t)=>{t.exports=i;function i(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let h=o.node(d),f=h.edgeObj,m=a(o,c,f.v,f.w),p=m.path,y=m.lca,x=0,_=p[x],N=!0;for(;d!==f.w;){if(h=o.node(d),N){for(;(_=p[x])!==y&&o.node(_).maxRankp||y>c[x].lim));for(_=x,x=h;(x=o.parent(x))!==_;)m.push(x);return{path:f.concat(m.reverse()),lca:_}}function s(o){let c={},d=0;function h(f){let m=d;o.children(f).forEach(h),c[f]={low:m,lim:d++}}return o.children().forEach(h),c}}),PB=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(h){let f=i.addDummyNode(h,"root",{},"_root"),m=o(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),B=O.borderTop?O.borderTop:E,R=O.borderBottom?O.borderBottom:E,U=O.borderTop?p:2*p,I=B!==R?1:y-x[_]+1;h.setEdge(S,B,{weight:U,minlen:I,nestingEdge:!0}),h.setEdge(R,w,{weight:U,minlen:I,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:y+x[_]})}function o(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)})}}),FB=vt((e,t)=>{var i=sn();t.exports=a;function a(o){function c(d){let h=o.children(d),f=o.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=>o(m.node(p))),m.edges().forEach(p=>o(m.edge(p)))}function o(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}}),VB=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let o={},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(o[p])return;o[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}}),YB=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(o,c){let d=0;for(let h=1;hN)),f=c.flatMap(_=>o.outEdges(_).map(N=>({pos:h[N.w],weight:o.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}}),XB=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(o=>{let c=a.inEdges(o);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:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),KB=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)&&o(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 o(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}}),ZB=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(o(!!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 o(c){return(d,h)=>d.barycenterh.barycenter?1:c?h.i-d.i:d.i-h.i}}),QB=vt((e,t)=>{var i=XB(),a=KB(),s=ZB();t.exports=o;function o(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 B=o(h,O.v,m,p);S[O.v]=B,Object.hasOwn(B,"barycenter")&&d(O,B)}});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]),B=h.node(h.predecessors(N)[0]);Object.hasOwn(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+O.order+B.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)}}),WB=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let m=o(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 o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),JB=vt((e,t)=>{t.exports=i;function i(a,s,o){let c={},d;o.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}})}}),e9=vt((e,t)=>{var i=VB(),a=YB(),s=QB(),o=WB(),c=JB(),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,B=_.constraints||[];for(let R=0,U=0;U<4;++R,++U){p(R%2?S:w,R%4>=2,B),k=h.buildLayerMatrix(x);let I=a(x,k);I{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 o(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,B)=>w.node(O).order=B),c(w,S,E.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,w)=>x.node(S).order=w))}}),t9=vt((e,t)=>{var i=Ri().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:m,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,E){let O={};function B(R,U){let I=0,K=0,z=R.length,q=U[U.length-1];return U.forEach((X,Y)=>{let C=c(k,X),$=C?k.node(C).order:z;(C||X===q)&&(U.slice(K,Y+1).forEach(A=>{k.predecessors(A).forEach(j=>{let V=k.node(j),Q=V.order;(Q{X=U[Y],k.node(X).dummy&&k.predecessors(X).forEach(C=>{let $=k.node(C);$.dummy&&($.orderq)&&d(O,C,X)})})}function R(U,I){let K=-1,z,q=0;return I.forEach((X,Y)=>{if(k.node(X).dummy==="border"){let C=k.predecessors(X);C.length&&(z=k.node(C[0]).order,B(I,q,Y,K,z),q=Y,K=z)}B(I,q,I.length,z,U.length)}),I}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 B=k[E];B||(k[E]=B={}),B[O]=!0}function h(k,E,O){if(E>O){let B=E;E=O,O=B}return!!k[E]&&Object.hasOwn(k[E],O)}function f(k,E,O,B){let R={},U={},I={};return E.forEach(K=>{K.forEach((z,q)=>{R[z]=z,U[z]=z,I[z]=q})}),E.forEach(K=>{let z=-1;K.forEach(q=>{let X=B(q);if(X.length){X=X.sort((C,$)=>I[C]-I[$]);let Y=(X.length-1)/2;for(let C=Math.floor(Y),$=Math.ceil(Y);C<=$;++C){let A=X[C];U[q]===q&&zMath.max(C,U[$.v]+I.edge($)),0)}function X(Y){let C=I.outEdges(Y).reduce((A,j)=>Math.min(A,U[j.w]-I.edge(j)),Number.POSITIVE_INFINITY),$=k.node(Y);C!==Number.POSITIVE_INFINITY&&$.borderType!==K&&(U[Y]=Math.max(U[Y],C))}return z(q,I.predecessors.bind(I)),z(X,I.successors.bind(I)),Object.keys(B).forEach(Y=>U[Y]=U[O[Y]]),U}function p(k,E,O,B){let R=new i,U=k.graph(),I=S(U.nodesep,U.edgesep,B);return E.forEach(K=>{let z;K.forEach(q=>{let X=O[q];if(R.setNode(X),z){var Y=O[z],C=R.edge(Y,X);R.setEdge(Y,X,Math.max(I(k,q,z),C||0))}z=q})}),R}function y(k,E){return Object.values(E).reduce((O,B)=>{let R=Number.NEGATIVE_INFINITY,U=Number.POSITIVE_INFINITY;Object.entries(B).forEach(([K,z])=>{let q=w(k,K)/2;R=Math.max(z+q,R),U=Math.min(z-q,U)});let I=R-U;return I{["l","r"].forEach(I=>{let K=U+I,z=k[K];if(z===E)return;let q=Object.values(z),X=B-a.applyWithChunking(Math.min,q);I!=="l"&&(X=R-a.applyWithChunking(Math.max,q)),X&&(k[K]=a.mapValues(z,Y=>Y+X))})})}function _(k,E){return a.mapValues(k.ul,(O,B)=>{if(E)return k[E.toLowerCase()][B];{let R=Object.values(k).map(U=>U[B]).sort((U,I)=>U-I);return(R[1]+R[2])/2}})}function N(k){let E=a.buildLayerMatrix(k),O=Object.assign(s(k,E),o(k,E)),B={},R;["u","d"].forEach(I=>{R=I==="u"?E:Object.values(E).reverse(),["l","r"].forEach(K=>{K==="r"&&(R=R.map(Y=>Object.values(Y).reverse()));let z=(I==="u"?k.predecessors:k.successors).bind(k),q=f(k,R,O,z),X=m(k,R,q.root,q.align,K==="r");K==="r"&&(X=a.mapValues(X,Y=>-Y)),B[I+K]=X})});let U=y(k,B);return x(B,U),_(B,k.graph().align)}function S(k,E,O){return(B,R,U)=>{let I=B.node(R),K=B.node(U),z=0,q;if(z+=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&&(z+=O?q:-q),q=0,z+=(I.dummy?E:k)/2,z+=(K.dummy?E:k)/2,z+=K.width/2,Object.hasOwn(K,"labelpos"))switch(K.labelpos.toLowerCase()){case"l":q=K.width/2;break;case"r":q=-K.width/2;break}return q&&(z+=O?q:-q),q=0,z}}function w(k,E){return k.node(E).width}}),n9=vt((e,t)=>{var i=sn(),a=t9().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function o(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})}}),i9=vt((e,t)=>{var i=BB(),a=UB(),s=$B(),o=sn().normalizeRanks,c=qB(),d=sn().removeEmptyRanks,h=PB(),f=FB(),m=GB(),p=e9(),y=n9(),x=sn(),_=Ri().Graph;t.exports=N;function N(H,Z={}){let J=Z.debugTiming?x.time:x.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>z(H));return J(" runLayout",()=>S(W,J,Z)),J(" updateInputGraph",()=>w(H,W)),W})}function S(H,Z,J){Z(" makeSpaceForEdgeLabels",()=>q(H)),Z(" removeSelfEdges",()=>M(H)),Z(" acyclic",()=>i.run(H)),Z(" nestingGraph.run",()=>h.run(H)),Z(" rank",()=>s(x.asNonCompoundGraph(H))),Z(" injectEdgeLabelProxies",()=>X(H)),Z(" removeEmptyRanks",()=>d(H)),Z(" nestingGraph.cleanup",()=>h.cleanup(H)),Z(" normalizeRanks",()=>o(H)),Z(" assignRankMinMax",()=>Y(H)),Z(" removeEdgeLabelProxies",()=>C(H)),Z(" normalize.run",()=>a.run(H)),Z(" parentDummyChains",()=>c(H)),Z(" addBorderSegments",()=>f(H)),Z(" order",()=>p(H,J)),Z(" insertSelfEdges",()=>D(H)),Z(" adjustCoordinateSystem",()=>m.adjust(H)),Z(" position",()=>y(H)),Z(" positionSelfEdges",()=>G(H)),Z(" removeBorderNodes",()=>Q(H)),Z(" normalize.undo",()=>a.undo(H)),Z(" fixupEdgeLabelCoords",()=>j(H)),Z(" undoCoordinateSystem",()=>m.undo(H)),Z(" translateGraph",()=>$(H)),Z(" assignNodeIntersects",()=>A(H)),Z(" reversePoints",()=>V(H)),Z(" acyclic.undo",()=>i.undo(H))}function w(H,Z){H.nodes().forEach(J=>{let W=H.node(J),ee=Z.node(J);W&&(W.x=ee.x,W.y=ee.y,W.order=ee.order,W.rank=ee.rank,Z.children(J).length&&(W.width=ee.width,W.height=ee.height))}),H.edges().forEach(J=>{let W=H.edge(J),ee=Z.edge(J);W.points=ee.points,Object.hasOwn(ee,"x")&&(W.x=ee.x,W.y=ee.y)}),H.graph().width=Z.graph().width,H.graph().height=Z.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"],B=["width","height","rank"],R={width:0,height:0},U=["minlen","weight","width","height","labeloffset"],I={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function z(H){let Z=new _({multigraph:!0,compound:!0}),J=F(H.graph());return Z.setGraph(Object.assign({},E,L(J,k),x.pick(J,O))),H.nodes().forEach(W=>{let ee=F(H.node(W)),ce=L(ee,B);Object.keys(R).forEach(fe=>{ce[fe]===void 0&&(ce[fe]=R[fe])}),Z.setNode(W,ce),Z.setParent(W,H.parent(W))}),H.edges().forEach(W=>{let ee=F(H.edge(W));Z.setEdge(W,Object.assign({},I,L(ee,U),x.pick(ee,K)))}),Z}function q(H){let Z=H.graph();Z.ranksep/=2,H.edges().forEach(J=>{let W=H.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Z.rankdir==="TB"||Z.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function X(H){H.edges().forEach(Z=>{let J=H.edge(Z);if(J.width&&J.height){let W=H.node(Z.v),ee={rank:(H.node(Z.w).rank-W.rank)/2+W.rank,e:Z};x.addDummyNode(H,"edge-proxy",ee,"_ep")}})}function Y(H){let Z=0;H.nodes().forEach(J=>{let W=H.node(J);W.borderTop&&(W.minRank=H.node(W.borderTop).rank,W.maxRank=H.node(W.borderBottom).rank,Z=Math.max(Z,W.maxRank))}),H.graph().maxRank=Z}function C(H){H.nodes().forEach(Z=>{let J=H.node(Z);J.dummy==="edge-proxy"&&(H.edge(J.e).labelRank=J.rank,H.removeNode(Z))})}function $(H){let Z=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,ee=0,ce=H.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;Z=Math.min(Z,Le-st/2),J=Math.max(J,Le+st/2),W=Math.min(W,$e-Rt/2),ee=Math.max(ee,$e+Rt/2)}H.nodes().forEach(Ne=>we(H.node(Ne))),H.edges().forEach(Ne=>{let Le=H.edge(Ne);Object.hasOwn(Le,"x")&&we(Le)}),Z-=fe,W-=be,H.nodes().forEach(Ne=>{let Le=H.node(Ne);Le.x-=Z,Le.y-=W}),H.edges().forEach(Ne=>{let Le=H.edge(Ne);Le.points.forEach($e=>{$e.x-=Z,$e.y-=W}),Object.hasOwn(Le,"x")&&(Le.x-=Z),Object.hasOwn(Le,"y")&&(Le.y-=W)}),ce.width=J-Z+fe,ce.height=ee-W+be}function A(H){H.edges().forEach(Z=>{let J=H.edge(Z),W=H.node(Z.v),ee=H.node(Z.w),ce,fe;J.points?(ce=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],ce=ee,fe=W),J.points.unshift(x.intersectRect(W,ce)),J.points.push(x.intersectRect(ee,fe))})}function j(H){H.edges().forEach(Z=>{let J=H.edge(Z);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 V(H){H.edges().forEach(Z=>{let J=H.edge(Z);J.reversed&&J.points.reverse()})}function Q(H){H.nodes().forEach(Z=>{if(H.children(Z).length){let J=H.node(Z),W=H.node(J.borderTop),ee=H.node(J.borderBottom),ce=H.node(J.borderLeft[J.borderLeft.length-1]),fe=H.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-ce.x),J.height=Math.abs(ee.y-W.y),J.x=ce.x+J.width/2,J.y=W.y+J.height/2}}),H.nodes().forEach(Z=>{H.node(Z).dummy==="border"&&H.removeNode(Z)})}function M(H){H.edges().forEach(Z=>{if(Z.v===Z.w){var J=H.node(Z.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Z,label:H.edge(Z)}),H.removeEdge(Z)}})}function D(H){var Z=x.buildLayerMatrix(H);Z.forEach(J=>{var W=0;J.forEach((ee,ce)=>{var fe=H.node(ee);fe.order=ce+W,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode(H,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:ce+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function G(H){H.nodes().forEach(Z=>{var J=H.node(Z);if(J.dummy==="selfedge"){var W=H.node(J.e.v),ee=W.x+W.width/2,ce=W.y,fe=J.x-ee,be=W.height/2;H.setEdge(J.e,J.label),H.removeNode(Z),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 L(H,Z){return x.mapValues(x.pick(H,Z),Number)}function F(H){var Z={};return H&&Object.entries(H).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Z[J]=W}),Z}}),r9=vt((e,t)=>{var i=sn(),a=Ri().Graph;t.exports={debugOrdering:s};function s(o){let c=i.buildLayerMatrix(o),d=new a({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),o.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}}),a9=vt((e,t)=>{t.exports="2.0.4"}),s9=vt((e,t)=>{t.exports={graphlib:Ri(),layout:i9(),debug:r9(),util:{time:sn().time,notime:sn().notime},version:a9()}});const O1=s9();/*! For license information please see dagre.esm.js.LEGAL.txt */const R1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function l9({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(Ps,{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 ${R1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),g.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${R1[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(Ps,{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 o9=re.memo(l9);function Vl({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 Ss(){return g.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function D1({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 c9(){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(Vl,{w:20}),g.jsx(Ss,{}),g.jsx(D1,{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(Ss,{}),g.jsx(Vl,{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(Ss,{}),g.jsx(D1,{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(Ss,{}),g.jsx(Vl,{w:e})]},t))})]}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx(Ss,{}),g.jsx(Vl,{w:18}),g.jsx(Ss,{}),g.jsx(Vl,{w:12})]}),g.jsx("div",{className:"w-[180px]"})]})]})})}const Km=260,Zm=80,u9={agentNode:o9};function d9(e,t){const i=new O1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[o,c]of e)if(i.setNode(o,{width:Km,height:Zm}),a.push({id:o,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:o===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${o}`;i.setEdge(c.parentId,o),s.push({id:d,source:c.parentId,target:o,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}O1.layout(i);for(const o of a){const c=i.node(o.id);c&&(o.position={x:c.x-Km/2,y:c.y-Zm/2})}return{nodes:a,edges:s}}const gm=300;function f9({nodes:e}){const{setCenter:t}=So(),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 o=s.position.x+Km/2,c=s.position.y+Zm/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function h9(){const{zoomIn:e,zoomOut:t,fitView:i}=So();return g.jsx(xB,{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:gm}),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:gm}),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:gm}),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 m9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,h]=aB([]),[f,m,p]=sB([]);re.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:w}=d9(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:o?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:o?"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(c9,{})}),g.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:g.jsxs(rB,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:p,onNodeClick:x,onPaneClick:_,nodeTypes:u9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[g.jsx(dB,{color:"#111",gap:20}),g.jsx(f9,{nodes:c}),g.jsx(h9,{}),g.jsx(RB,{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 Cs({text:e,className:t=""}){return g.jsx("div",{className:`prose-markdown ${t}`,children:g.jsx(Np,{remarkPlugins:[Ap],rehypePlugins:[Cp],components:Mp,children:e})})}const L1=6,z1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=re.useState(!1),o=e.trimEnd().split(` +`).length>t;return g.jsxs("div",{children:[g.jsx("div",{className:i&&o?"max-h-[1200px] overflow-auto":"",style:!i&&o?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:g.jsx(Cs,{text:e})}),o&&g.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function br({children:e,className:t=""}){const[i,a]=re.useState(!1),o=typeof e=="string"?e.trimEnd().split(` +`):null,c=o!==null&&o.length>L1,d=c&&!i?o.slice(0,L1).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 Kp({code:e,language:t,className:i="",collapsible:a=!1}){const[s,o]=re.useState(!1),c=e.trimEnd().split(` +`),d=a&&c.length>z1,h=d&&!s?c.slice(0,z1).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:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const p9=50,j1=200,I1=25,B1=24,g9=[/\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],b9=/^Chunk ID: [0-9a-f]+\s*$/,x9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function y9(e){const t=[];for(let i=0;is.test(e[a]));)a++;aj1?e.slice(0,j1-3)+"...":e}function _9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of g9)i=i.replace(a,"");if(i.trim()){const a=y9(i.split(` +`)),s=[];for(const o of a)s.length===0&&!o.trim()||/^\[STRIX_\d+\]\$\s*/.test(o)||t&&o.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${v9(t.trim())}\\s*$`).test(o)||s.push(o);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(` +`)}return i.trim()}function w9(e){const t=e.split(` +`);if(t.length<=p9)return t.map(bm).join(` +`);const i=t.length-I1-B1;return[...t.slice(0,I1).map(bm),`... ${i} lines truncated ...`,...t.slice(-B1).map(bm)].join(` +`)}function E9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",o=i;let c=null,d=null,h=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,h=typeof o.exit_code=="number"?o.exit_code:null;const m=typeof o.status=="string"?o.status:"";(m==="running"||m==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const f=c?w9(_9(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(Kp,{code:s,language:"bash",collapsible:!0}),d&&g.jsx(br,{className:"text-red-400/70",children:d}),f&&g.jsx(br,{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 U1={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"},H1={click:"clicking",double_click:"double clicking",hover:"hovering"};function xm({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 N9(e){const t=e.action??"",i=e.url??void 0;if(t in U1)return U1[t];if(t==="launch")return i?g.jsx(xm,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return g.jsx(xm,{prefix:"navigating to ",url:i});if(t==="new_tab")return g.jsx(xm,{prefix:"opening tab ",url:i});if(t in H1)return H1[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 S9({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=N9(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(Kp,{code:i,language:"javascript",collapsible:!0})]})}function Zp(e){return e.length>60?"..."+e.slice(-57):e}const Jc=30;function k9({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",o=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?Zp(i):"",f=c?` /${c}/`:"",m=s?s.split(` +`):[],p=o?o.split(` +`):[],y=m.length+p.length,x=y>Jc,_=x?Math.round(Jc*(m.length/y)):m.length,N=x?Jc-_: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||o)&&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-Jc," more lines"]})]})]})}const eu=30,T9="*** Begin Patch",A9="*** End Patch",$1="*** Add File: ",q1="*** Update File: ",P1="*** Delete File: ",C9={add:"create",update:"edit",delete:"delete"};function M9(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 O9(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(` +`))if(!(s===T9||s===A9))if(s.startsWith($1))a(),i={kind:"add",path:s.slice($1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(q1))a(),i={kind:"update",path:s.slice(q1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(P1))a(),i={kind:"delete",path:s.slice(P1.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 R9({op:e}){const t=C9[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>eu,s=a&&i>0?Math.round(eu*(e.oldLines.length/i)):e.oldLines.length,o=a?eu-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:Zp(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,o).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-eu," more lines"]})]})]})}function D9({args:e,result:t,status:i}){const a=O9(M9(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,o)=>g.jsx(R9,{op:s},o)),i==="failed"&&typeof t=="string"&&t.trim()&&g.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function L9({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const o=a.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}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:Zp(i)})]}),s&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const z9={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function j9({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",o=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=z9[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}),(o||c)&&g.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,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(Cs,{text:f})}),m&&g.jsx(Bw,{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 CN=200,MN={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 Qp(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 Qm(e,t=150){return Fi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function Wm(e,t){const i=e.split(` +`),a=i.slice(0,t).map(s=>Fi(s,CN-5)).join(` +`);return i.length>t?a+` +...`:a}function I9({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,o=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)})]}),o.length>0&&g.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.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 ${MN[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 ${Qp(y)}`,children:y})]},d)}),o.length>20&&g.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function B9({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",o=t,c=o?o.matches:null,d=Array.isArray(c)?c:[],h=o?o.content??null:null,f=o?!!o.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,CN)).join(` +`),y=f||m.length>15;return g.jsx(br,{className:"text-[#666]",children:p+(y?` +... more content available`:"")})})()]})}function U9({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,o=e.body,c=typeof o=="string"?o:"",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 ${MN[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,": ",Qm(String(_),150)]},x))]}),c&&g.jsx(br,{className:"text-[#888]",children:Wm(c,4)}),h&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:Qm(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 ${Qp(f)}`,children:f}),m!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[m,"ms"]})]}),y&&g.jsx(br,{className:"text-[#666]",children:Wm(y,6)})]})}function H9({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,o=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:Qm(typeof m=="string"?m:JSON.stringify(m),150)})]},f))}),o!=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 ${Qp(o)}`,children:o}),c!=null&&g.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&g.jsx(br,{className:"text-[#666]",children:Wm(h,5)})]})}const $9={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function q9({args:e}){const t=e.action??"",i=e.scope_name??"",a=$9[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 P9({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 F9({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 G9(e){switch(e.toolName){case"list_requests":return g.jsx(I9,{...e});case"view_request":return g.jsx(B9,{...e});case"send_request":return g.jsx(U9,{...e});case"repeat_request":return g.jsx(H9,{...e});case"scope_rules":return g.jsx(q9,{...e});case"list_sitemap":return g.jsx(P9,{...e});case"view_sitemap_entry":return g.jsx(F9,{...e});default:return g.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function V9({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 Y9({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,o=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})}),o&&o.length>0&&g.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.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 X9({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,o=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}),o&&g.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&g.jsx("div",{className:"mt-2",children:g.jsx(Ln,{text:s,maxLines:15})})]})}const K9=50,F1=200,G1=25,V1=24,Z9=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,Q9=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function W9(e){return e.replace(Z9,"")}function ym(e){const t=W9(e);return t.length>F1?t.slice(0,F1-3)+"...":t}function J9(e){return e.replace(Q9,"").trim()}function eU(e){const t=e.split(` +`);if(t.length<=K9)return t.map(ym).join(` +`);const i=t.length-G1-V1;return[...t.slice(0,G1).map(ym),`... ${i} lines truncated ...`,...t.slice(-V1).map(ym)].join(` +`)}function tU({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let o=null;s&&typeof s=="object"?o=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(o=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=o?eU(J9(o)):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(Kp,{code:a,language:"python",collapsible:!0}),d&&g.jsx(br,{className:"text-[#666]",children:d})]})}function nU({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,o)=>g.jsxs("div",{className:"text-[13px] text-[#888]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function iU({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 rU(e){return e.toolName==="subagent_start_info"?g.jsx(iU,{...e}):g.jsx(nU,{...e})}function aU({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 sU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=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:["(",o,")"]})]}),a&&g.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&g.jsx("div",{className:"mt-1",children:g.jsx(Cs,{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(Cs,{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(Cs,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const o=a.notes;s=Array.isArray(o)?o:[]}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((o,c)=>g.jsxs("div",{className:"text-[13px]",children:[g.jsx("span",{className:"text-[#555] mr-1",children:"-"}),g.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),g.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),o.content&&g.jsx("div",{className:"ml-3",children:g.jsx(Cs,{text:o.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 lU={create_todo:{label:"Task added",Icon:yT},list_todos:{label:"Plan",Icon:p2},update_todo:{label:"Task updated",Icon:bT},mark_todo_done:{label:"Task completed",Icon:s_},mark_todo_pending:{label:"Task reopened",Icon:CT},delete_todo:{label:"Task removed",Icon:BT}};function oU({status:e}){return e==="done"?g.jsx(s_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?g.jsx(S2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):g.jsx(T2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function cU({todos:e,highlightId:t}){return g.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",o=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 ${o?"bg-purple-500/[0.08]":""}`,children:[g.jsx("div",{className:"mt-[1px]",children:g.jsx(oU,{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 uU({toolName:e,args:t,result:i}){const a=lU[e]??{label:"Plan",Icon:ST},s=a.Icon,o=i;if(typeof o=="string"&&o.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:o.trim()})]});let c=[],d=null,h;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const m=o.todos;c=Array.isArray(m)?m:[]}h=o.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(cU,{todos:c,highlightId:f})})]})}function Y1(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 ON({toolName:e,args:t,result:i}){const a=Y1(t),s=Y1(i);return g.jsxs("div",{children:[g.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&g.jsx(br,{className:"text-[#777]",children:a}),s&&g.jsx(br,{className:"text-[#666]",children:s})]})}function dU({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 Fu={terminal:{renderer:E9,icon:h_,color:"text-emerald-400"},python:{renderer:tU,icon:M2,color:"text-yellow-400"},browser:{renderer:S9,icon:np,color:"text-blue-400"},filesystem:{renderer:k9,icon:o_,color:"text-sky-400"},proxy:{renderer:G9,icon:Ds,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:j9,icon:RT,color:"text-red-400"},thinking:{renderer:V9,icon:n_,color:"text-purple-400"},agents:{renderer:Y9,icon:ep,color:"text-cyan-400",match:/agent/},search:{renderer:X9,icon:f_,color:"text-amber-400"},lifecycle:{renderer:rU,icon:c_,color:"text-emerald-400"},notes:{renderer:sU,icon:zT,color:"text-amber-400",match:/note/},skills:{renderer:dU,icon:lu,color:"text-emerald-400"},todos:{renderer:uU,icon:rT,color:"text-purple-400",match:/todo/},telemetry:{renderer:ON,icon:lu,color:"text-[#555]"}},fU={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"]},hU=Object.fromEntries(Object.entries(fU).flatMap(([e,t])=>t.map(i=>[i,e]))),mU={finish_scan:aU,apply_patch:D9,view_image:L9},pU={agent_finish:{icon:c_,color:"text-cyan-400"},send_message_to_agent:{icon:Ux,color:"text-cyan-400"},wait_for_message:{icon:Ux,color:"text-cyan-400"},view_agent_graph:{icon:I2,color:"text-cyan-400"},stop_agent:{icon:t_,color:"text-red-400"},scan_start_info:{icon:D2,color:"text-emerald-400"},subagent_start_info:{icon:ep,color:"text-purple-400"},view_image:{icon:W2,color:"text-sky-400"}},gU=Fu.telemetry;function RN(e){var i;const t=hU[e];if(t)return t;for(const[a,s]of Object.entries(Fu))if((i=s.match)!=null&&i.test(e))return a;return null}function bU(e){const t=mU[e];if(t)return t;const i=RN(e);return i?Fu[i].renderer:ON}function xU(e){const t=pU[e];if(t)return t;const i=RN(e),a=i?Fu[i]:gU;return{icon:a.icon,color:a.color}}const yU=30;function vU({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:yU})})]})}class _U 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 wU(e){const t=bU(e.toolName);return g.jsx(_U,{toolName:e.toolName,children:g.jsx(t,{...e})})}function DN(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 LN(e){const t=DN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function X1(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function zN(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}const EU={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 NU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function SU(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,o=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=LN(h.data.args),m=f.name??f.agent_name??"",p=f.task??"";m&&p&&o.set(m,p)}}else zN(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:o.get(h.name)??"",status:NU(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 kU({agent:e,events:t,showHeader:i=!0}){const a=re.useMemo(()=>t.filter(c=>c.agent_id===e.id&&!zN(c)).sort((c,d)=>X1(c.id)-X1(d.id)),[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=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 ${EU[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:[o," message",o===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 B=xU(m);y=B.icon,x=B.color}else{const B=p==="user"||p==="human";y=B?ep:n_,x=B?"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(wU,{toolName:m,args:LN((k=c.data)==null?void 0:k.args),result:DN((E=c.data)==null?void 0:E.result)??null,status:_}):g.jsx(vU,{role:p,content:String(((O=c.data)==null?void 0:O.content)??"")})})]},c.id)})})]})}const TU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},AU=80;function CU({agent:e,events:t,onClose:i}){const a=re.useRef(null),s=re.useRef(!1),o=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 ${TU[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(g_,{className:"h-4 w-4"})})]}),g.jsx("div",{ref:a,onScroll:o,className:"flex-1 overflow-y-auto p-5",children:g.jsx(kU,{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:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("steer_agent"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class Su extends Error{constructor(t){super(t),this.name="RunParseError"}}const MU=["critical","high","medium","low"];function OU(e){const t=String(e??"").toLowerCase().trim();return MU.includes(t)?t:"low"}function RU(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 DU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function jN(e,t){try{return JSON.parse(e)}catch{throw new Su(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function LU(e){const t=jN(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Su("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 o=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(o&&c){const x=new Date(o).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:o,endTime:c,durationSeconds:d,executiveSummary:h,technicalAnalysis:f,methodology:m,recommendations:p}}function zU(){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 jU(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{...zU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:OU(e.severity),status:"open",created_at:RU(e.timestamp),cve:Ot(e.cve),cvss:DU(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 IU(e,t=null){const i=jN(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Su("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Su(`vulnerabilities.json entry #${s+1} is not an object.`);return jU(a,s,t)})}function BU(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Ys(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function Gu(e){return e?`?run=${encodeURIComponent(e)}`:""}async function IN(e){const t=await Ys("/api/run"+Gu(e)),i=LU(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function BN(e,t){const i=await Ys("/api/vulnerabilities"+Gu(t));return IU(JSON.stringify(i),e)}async function UU(e){const t=await Ys("/api/report"+Gu(e));return(t==null?void 0:t.markdown)??null}async function UN(e){const t=await Ys("/api/transcript"+Gu(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 K1(e){const{summary:t,raw:i,finished:a}=await IN(e),[s,o,c]=await Promise.all([BN(t.runId,e).catch(()=>[]),UU(e).catch(()=>null),UN(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function Vu(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 HU(){const e=await Ys("/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 $U(){const e=await Ys("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function qU(e){const{ok:t,data:i}=await Vu("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function PU(e,t){const{ok:i,data:a}=await Vu("/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 FU(){await Vu("/api/auth/forget",{})}async function GU(e){const{ok:t,data:i}=await Vu("/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 VU=[{slug:"pr_reviews",title:"PR Reviews",icon:tp,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:eT,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:np,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:u_,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:m_,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:f_,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:nT,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:HT,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:hT,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:pT,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:z2,tier:"Pro",navDesc:"Give agents context",headline:"Give agents context",description:"Teach Strix about your systems and business logic so every run gets smarter."}],Jm=Object.fromEntries(VU.map(e=>[e.slug,e])),YU=["pr_reviews","repositories","domains","integrations","members","pentests","networks","chat","dashboard","platform_issues","knowledge"];function XU({view:e,onSelectView:t,activeFeature:i,onSelectFeature:a,issuesCount:s,agentCount:o,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:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo"),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:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("sidebar_start_free"),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:["Start free",g.jsx(Ds,{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(rp,{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:"Signed in as"}),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(cT,{className:"h-3.5 w-3.5"})})]})]}),g.jsxs("div",{className:"mt-6 space-y-0.5",children:[g.jsx(Yl,{icon:o_,label:"Overview",desc:"This run's executive report",active:e==="overview",onClick:()=>t("overview")}),g.jsx(Yl,{icon:f2,label:"Issues",desc:"Findings from this run",count:s>0?s:void 0,active:e==="issues",onClick:()=>t("issues")}),o>0&&g.jsx(Yl,{icon:p_,label:"Agents",desc:"What each agent did",count:o,active:e==="agents",onClick:()=>t("agents")}),g.jsx(Yl,{icon:zs,label:"Past runs",desc:"Every run on this machine",count:c>0?c:void 0,active:e==="history",onClick:m}),g.jsx(Yl,{icon:ip,label:"Email report",desc:"Get an encrypted PDF by email",onClick:f}),YU.map(y=>{const x=Jm[y];return x?g.jsx(JT,{feature:x,active:e==="feature"&&i===y,onClick:()=>a(y)},y):null})]})]})})}function Yl({icon:e,label:t,desc:i,count:a,active:s,onClick:o}){return g.jsxs("button",{onClick:o,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 KU=[{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 ZU({counts:e}){const t=KU.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 Z1(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 QU({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(zs,{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(h_,{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(o=>{const c=o.name===t,d=Z1(o.start_time)??Z1(o.end_time);return g.jsxs("button",{onClick:()=>i(o.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:o.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:[o.target&&g.jsx("span",{className:"truncate font-mono text-[#888]",children:o.target}),o.target&&(o.scan_mode||d||o.status)&&g.jsx("span",{className:"text-[#333]",children:"·"}),o.scan_mode&&g.jsx("span",{className:"capitalize",children:o.scan_mode}),d&&g.jsx("span",{className:"text-[#333]",children:"·"}),d&&g.jsx("span",{children:d}),o.status&&g.jsx("span",{className:"text-[#333]",children:"·"}),o.status&&g.jsx("span",{className:"capitalize",children:o.status})]})]}),g.jsx(ZU,{counts:o.severity_counts}),g.jsx(y2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},o.name)})})}const Q1={rate_limited:"Too many requests. Wait a minute and try again.",invalid_email:"That email does not look right. Check it and try again.",work_email_required:"Please use your work email, not a personal one.",unavailable:"The email service is unavailable right now. Try again shortly."},WU=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 JU(e){var i;const t=(i=e.split("@")[1])==null?void 0:i.trim().toLowerCase();return t!=null&&WU.has(t)}const eH={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."};function tH({open:e,onClose:t,activeRun:i,auth:a,purpose:s,onVerified:o}){const c=(a==null?void 0:a.verified)===!0,[d,h]=re.useState("disclosure"),[f,m]=re.useState(""),[p,y]=re.useState(""),[x,_]=re.useState(!1),[N,S]=re.useState(null),[w,k]=re.useState(null),[E,O]=re.useState(""),[B,R]=re.useState(""),[U,I]=re.useState(!1),K=re.useRef("");if(re.useEffect(()=>{e&&(h(s==="verify"?"email":"disclosure"),y(""),_(!1),S(null),k(null),O(""),R(""),I(!1),m((a==null?void 0:a.email)??""))},[e,a==null?void 0:a.email,s]),re.useEffect(()=>{if(!e)return;const A=j=>{j.key==="Escape"&&d!=="password"&&t()};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[e,d,t]),!e)return null;const z=async()=>{h("sending"),S(null);const A=await GU(i);if(A.ok){O(A.password),R(A.filename),h("password");return}if(A.error==="reverify"||A.error==="unverified"){k("Your verification expired. Enter your email to verify again."),h("email");return}S(eH[A.error]??"Could not send the report. Try again."),h("disclosure")},q=()=>{S(null),k(null),c?z():h("email")},X=async()=>{const A=f.trim();if(!A){S("Enter your email to continue.");return}if(JU(A)){S(Q1.work_email_required);return}_(!0),S(null);const j=await qU(A);_(!1),j.ok?(k(`We sent a 6-digit code to ${A}.`),h("code")):S(Q1[j.error]??"Could not send a code. Try again.")},Y=async()=>{const A=p.trim();if(A.length<4){S("Enter the 6-digit code from your email.");return}_(!0),S(null);const j=await PU(f.trim(),A);if(_(!1),j.verified){if(K.current=j.email,o(),s==="verify"){t();return}z()}else S("That code did not match. Check it and try again.")},C=async()=>{try{await navigator.clipboard.writeText(E),I(!0),setTimeout(()=>I(!1),1500)}catch{}},$=K.current||(a==null?void 0:a.email)||f.trim();return g.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":"Email an encrypted report",children:[g.jsx("div",{className:"absolute inset-0 bg-black/70",onClick:()=>d!=="password"&&t()}),g.jsxs("div",{className:"relative z-10 w-full max-w-md rounded-2xl bg-[#0a0a0a] p-6 shadow-2xl",style:{border:"1px solid #2a2a2a"},children:[g.jsx("button",{onClick:t,className:"absolute right-4 top-4 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Close",children:g.jsx(g_,{className:"h-5 w-5"})}),g.jsxs("div",{className:"mb-4 flex items-center gap-2.5",children:[g.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:g.jsx(ip,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-base font-semibold text-white",children:s==="verify"?"Verify your email to view your runs":"Email an encrypted PDF report of this run"}),g.jsx("p",{className:"text-xs text-[#666]",children:s==="verify"?"We send a one-time code to confirm it is you.":"Verified by a one-time code sent to your email"})]})]}),N&&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(a_,{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:N})]}),w&&!N&&d!=="password"&&g.jsx("p",{className:"mb-4 text-xs text-[#888]",children:w}),d==="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(rp,{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:q,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&&(a==null?void 0:a.email)&&g.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",a.email]})]}),d==="email"&&g.jsxs("form",{className:"space-y-4",onSubmit:A=>{A.preventDefault(),X()},children:[g.jsxs("label",{className:"block",children:[g.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your email"}),g.jsx("input",{type:"email",autoFocus:!0,value:f,onChange:A=>m(A.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-xs text-[#666]",children:"Use your work email."})]}),g.jsxs("button",{type:"submit",disabled:x,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:[x&&g.jsx(eh,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),d==="code"&&g.jsxs("form",{className:"space-y-4",onSubmit:A=>{A.preventDefault(),Y()},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:p,onChange:A=>y(A.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:x,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:[x&&g.jsx(eh,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),s==="verify"?"Verify":"Verify and send"]}),g.jsx("button",{type:"button",onClick:()=>{h("email"),S(null),k(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),d==="sending"&&g.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[g.jsx(eh,{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..."})]}),d==="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(Ls,{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 ",$,". 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:E}),g.jsxs("button",{onClick:C,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:[U?g.jsx(Ls,{className:"h-3.5 w-3.5"}):g.jsx(to,{className:"h-3.5 w-3.5"}),U?"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:B})]})]}),g.jsx("button",{onClick:t,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 nH=[{icon:i_,text:"Continuous coverage: scheduled pentests and attack surface monitoring"},{icon:PT,text:"One-click autofix that opens a retested pull request"},{icon:u_,text:"Two-way sync to Jira, Linear, and Slack"},{icon:m_,text:"Your whole team, with roles and shared history"}];function iH({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(ku,{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:nH.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:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(e.slug),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(Ds,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),g.jsxs("a",{href:QT,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi(`${e.slug}_pricing`),className:"inline-flex items-center gap-1 text-xs text-[#888] transition-colors hover:text-white",children:["View all plans",g.jsx(Ds,{className:"h-3 w-3","aria-hidden":"true"})]})]})]})})}const rH="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.",W1=["critical","high","medium","low"],aH=500,sH=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:lu},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:U2}],lH=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:i_},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:d_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:tp}];function oH(){const[e,t]=re.useState(null),[i,a]=re.useState(null),[s,o]=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(!1),[k,E]=re.useState("report"),O=re.useCallback(async()=>{try{x(await $U())}catch{}},[]),B=re.useCallback(async()=>{try{N(await HU())}catch{}},[]);re.useEffect(()=>{O(),B()},[O,B]);const R=re.useRef(!1);re.useEffect(()=>{let j=!1,V;R.current=!1;const Q=()=>{V=setTimeout(M,aH)},M=async()=>{if(!j)try{const{summary:D,raw:G,finished:L}=await IN(e);if(j)return;if(L&&!R.current){R.current=!0;const Z=await K1(e);j||a(Z);return}const[F,H]=await Promise.all([UN(e).catch(()=>({agents:[],events:[]})),BN(D.runId,e).catch(()=>[])]);if(j)return;a(Z=>({summary:D,raw:G,finished:L,transcript:F,vulnerabilities:H,reportMarkdown:(Z==null?void 0:Z.reportMarkdown)??null})),Q()}catch(D){if(j)return;o(D instanceof Error?D.message:"Could not load run data."),Q()}};return(async()=>{try{const D=await K1(e);if(j)return;a(D),D.finished?R.current=!0:Q()}catch(D){if(j)return;o(D instanceof Error?D.message:"Could not load run data."),Q()}})(),()=>{j=!0,V&&clearTimeout(V)}},[e]);const U=re.useMemo(()=>i?BU(i.vulnerabilities):null,[i]),I=(i==null?void 0:i.vulnerabilities.find(j=>j.id===c))??null,K=(i==null?void 0:i.transcript.agents.length)??0,z=(y==null?void 0:y.verified)===!0,q=re.useCallback(j=>{t(j),d(null),a(null),o(null),f("overview")},[]),X=re.useCallback(()=>{gi("email_report"),E("report"),w(!0)},[]),Y=re.useCallback(()=>{gi("history_unlock"),E("verify"),w(!0)},[]),C=re.useCallback(()=>{B(),f("history")},[B]),$=re.useCallback(j=>{gi(`nav_${j}`),p(j),f("feature")},[]),A=re.useCallback(async()=>{await FU(),await O(),await B()},[O,B]);return g.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[g.jsx(XU,{view:h,onSelectView:j=>{j==="history"?C():f(j)},activeFeature:m,onSelectFeature:$,issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:K,runCount:(_==null?void 0:_.count)??0,verified:z,email:(y==null?void 0:y.email)??null,onOpenEmail:X,onOpenHistory:C,onForget:()=>void A()}),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:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("logo"),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(uH,{finished:i.finished}),g.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[z&&_&&!_.locked&&_.runs.length>0&&g.jsx(cH,{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:Fs,target:"_blank",rel:"noopener noreferrer",onClick:()=>gi("run_in_cloud"),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(Ds,{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:[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(rp,{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:rH})]}),s&&!i&&h!=="history"&&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(a_,{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==="feature"&&m&&Jm[m]?g.jsx(iH,{feature:Jm[m]}):h==="history"?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(zs,{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(QU,{runs:_,activeRun:e,onSelectRun:q,onVerifyClick: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&&U?g.jsxs(g.Fragment,{children:[g.jsx(fH,{summary:i.summary}),g.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[g.jsx(_m,{active:h==="overview",onClick:()=>f("overview"),children:"Overview"}),g.jsxs(_m,{active:h==="issues",onClick:()=>f("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),K>0&&g.jsxs(_m,{active:h==="agents",onClick:()=>f("agents"),children:["Agents (",K,")"]})]}),h==="overview"?g.jsx(bH,{summary:i.summary,counts:U,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,onOpenEmail:X}):h==="agents"&&K>0?g.jsx(xH,{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(r2,{className:"w-4 h-4"})," Back to all findings"]}),g.jsx(N4,{vulnerability:I})]}):g.jsx(hH,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:j=>d(j)})]}):null]})]}),g.jsx(tH,{open:S,onClose:()=>w(!1),activeRun:e,auth:y,purpose:k,onVerified:()=>{O(),B()}})]})}function cH({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,o]=re.useState(!1),c=t??i;return g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>o(d=>!d),onBlur:()=>setTimeout(()=>o(!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(zs,{className:"w-3.5 h-3.5","aria-hidden":"true"}),g.jsx("span",{className:"max-w-[160px] truncate",children:c}),g.jsx(r_,{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 uH({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 dH(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 fH({summary:e}){const t=dH(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(vm,{label:e.scanMode}),t&&g.jsx(vm,{label:t}),e.status&&g.jsx(vm,{label:e.status})]})]})}function vm({label:e}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-[#333]",children:"·"}),g.jsx("span",{className:"capitalize",children:e})]})}function hH({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,o)=>W1.indexOf(s.severity)-W1.indexOf(o.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(Ms,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:d_})]})]}):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 ${ap(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 ${b_[s.severity]}`,children:s.severity})]},s.id))})}function mH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function pH(e){const t=[];let i=null;for(const a of e.split(` +`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const o=s[1].trim().toLowerCase();if(o===i)continue;i=o}else a.trim()!==""&&(i=null);t.push(a)}return t.join(` +`)}function gH({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(ip,{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 bH({summary:e,counts:t,total:i,reportMarkdown:a,onOpenEmail:s}){const o=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,c])=>!!c).map(([c,d])=>({title:c,content:mH(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(S4,{findings:{total:i,...t}})}),g.jsx(gH,{onOpenEmail:s}),o.length>0?g.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:o.map(c=>g.jsx(na,{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(na,{content:pH(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:sH.map(c=>g.jsx(Hx,{item:c},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:lH.map(c=>g.jsx(Hx,{item:c},c.slug))})]})]})}function _m({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 xH({run:e}){const{agents:t,events:i}=e.transcript,a=re.useMemo(()=>SU(t,i),[t,i]),[s,o]=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(p_,{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(m9,{agents:a,selectedAgentId:s,onSelectAgent:d=>o(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(Ms,{label:"Steer agents from the web",desc:"Guide the agents live while they scan.",slug:"live_scan_prompt",icon:ET}),g.jsx(Ms,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",icon:TT})]})]}),c&&g.jsx(CU,{agent:c,events:i,onClose:()=>o(null)})]})}Qk.createRoot(document.getElementById("root")).render(g.jsx(re.StrictMode,{children:g.jsx(oH,{})})); diff --git a/strix/viewer/viewer_dist/assets/index-DdJz2sb3.js b/strix/viewer/viewer_dist/assets/index-DdJz2sb3.js deleted file mode 100644 index 7804a274..00000000 --- a/strix/viewer/viewer_dist/assets/index-DdJz2sb3.js +++ /dev/null @@ -1,487 +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 o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf={exports:{}},jl={};/** - * @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 Tx;function Bk(){if(Tx)return jl;Tx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return jl.Fragment=t,jl.jsx=i,jl.jsxs=i,jl}var Ax;function Uk(){return Ax||(Ax=1,Yf.exports=Bk()),Yf.exports}var b=Uk(),Xf={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 Cx;function Hk(){if(Cx)return Ve;Cx=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"),o=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"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function E(z,V,D){this.props=z,this.context=V,this.refs=S,this.updater=D||_}E.prototype.isReactComponent={},E.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,V,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function k(){}k.prototype=E.prototype;function w(z,V,D){this.props=z,this.context=V,this.refs=S,this.updater=D||_}var O=w.prototype=new k;O.constructor=w,N(O,E.prototype),O.isPureReactComponent=!0;var B=Array.isArray;function R(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function K(z,V,D){var F=D.ref;return{$$typeof:e,type:z,key:V,ref:F!==void 0?F:null,props:D}}function L(z,V){return K(z.type,V,z.props)}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(D){return V[D]})}var G=/\/+/g;function C(z,V){return typeof z=="object"&&z!==null&&z.key!=null?X(""+z.key):V.toString(36)}function j(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function M(z,V,D,F,$){var Q=typeof z;(Q==="undefined"||Q==="boolean")&&(z=null);var J=!1;if(z===null)J=!0;else switch(Q){case"bigint":case"string":case"number":J=!0;break;case"object":switch(z.$$typeof){case e:case t:J=!0;break;case p:return J=z._init,M(J(z._payload),V,D,F,$)}}if(J)return $=$(z),J=F===""?"."+C(z,0):F,B($)?(D="",J!=null&&(D=J.replace(G,"$&/")+"/"),M($,V,D,"",function(ce){return ce})):$!=null&&(q($)&&($=L($,D+($.key==null||z&&z.key===$.key?"":(""+$.key).replace(G,"$&/")+"/")+J)),V.push($)),1;J=0;var W=F===""?".":F+":";if(B(z))for(var ee=0;ee>>1,A=M[Z];if(0>>1;Zs(D,Y))Fs($,D)?(M[Z]=$,M[F]=Y,Z=F):(M[Z]=D,M[V]=Y,Z=V);else if(Fs($,Y))M[Z]=$,M[F]=Y,Z=F;else break e}}return U}function s(M,U){var Y=M.sortIndex-U.sortIndex;return Y!==0?Y:M.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],f=[],p=1,m=null,y=3,x=!1,_=!1,N=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function O(M){for(var U=i(f);U!==null;){if(U.callback===null)a(f);else if(U.startTime<=M)a(f),U.sortIndex=U.expirationTime,t(h,U);else break;U=i(f)}}function B(M){if(N=!1,O(M),!_)if(i(h)!==null)_=!0,R||(R=!0,X());else{var U=i(f);U!==null&&j(B,U.startTime-M)}}var R=!1,H=-1,I=5,K=-1;function L(){return S?!0:!(e.unstable_now()-KM&&L());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,y=m.priorityLevel;var A=Z(m.expirationTime<=M);if(M=e.unstable_now(),typeof A=="function"){m.callback=A,O(M),U=!0;break t}m===i(h)&&a(h),O(M)}else a(h);m=i(h)}if(m!==null)U=!0;else{var z=i(f);z!==null&&j(B,z.startTime-M),U=!1}}break e}finally{m=null,y=Y,x=!1}U=void 0}}finally{U?X():R=!1}}}var X;if(typeof w=="function")X=function(){w(q)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,C=G.port2;G.port1.onmessage=q,X=function(){C.postMessage(null)}}else X=function(){E(q,0)};function j(M,U){H=E(function(){M(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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125Z?(M.sortIndex=Y,t(f,M),i(h)===null&&M===i(f)&&(N?(k(H),H=-1):N=!0,j(B,Y-Z))):(M.sortIndex=A,t(h,M),_||x||(_=!0,R||(R=!0,X()))),M},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(M){var U=y;return function(){var Y=y;y=U;try{return M.apply(this,arguments)}finally{y=Y}}}})(Qf)),Qf}var Rx;function Pk(){return Rx||(Rx=1,Zf.exports=qk()),Zf.exports}var Wf={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 Dx;function Fk(){if(Dx)return kn;Dx=1;var e=po();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(),Wf.exports=Fk(),Wf.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 zx;function Gk(){if(zx)return Il;zx=1;var e=Pk(),t=po(),i=W1();function a(n){var r="https://react.dev/errors/"+n;if(1A||(n.current=Z[A],Z[A]=null,A--)}function D(n,r){A++,Z[A]=n.current,n.current=r}var F=z(null),$=z(null),Q=z(null),J=z(null);function W(n,r){switch(D(Q,r),D($,n),D(F,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Z0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Z0(r),n=Q0(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(F),D(F,n)}function ee(){V(F),V($),V(Q)}function ce(n){n.memoizedState!==null&&D(J,n);var r=F.current,l=Q0(r,n.type);r!==l&&(D($,n),D(F,l))}function fe(n){$.current===n&&(V(F),V($)),J.current===n&&(V(J),Rl._currentValue=Y)}var be,Ee;function Ne(n){if(be===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||"",Ee=-1)":-1g||te[u]!==le[g]){var he=` -`+te[u].replace(" at new "," at ");return n.displayName&&he.includes("")&&(he=he.replace("",n.displayName)),he}while(1<=u&&0<=g);break}}}finally{Le=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Ne(l):""}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="",l=null;do r+=st(n,l),l=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,En=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,on=e.log,wn=e.unstable_setDisableYieldValue,Kt=null,Ct=null;function Wt(n){if(typeof on=="function"&&wn(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Kt,n)}catch{}}var ut=Math.clz32?Math.clz32:yr,zn=Math.log,cn=Math.LN2;function yr(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,l){var u=n.pendingLanes;if(u===0)return 0;var g=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var P=u&134217727;return P!==0?(u=P&~v,u!==0?g=hn(u):(T&=P,T!==0?g=hn(T):l||(l=P&~n,l!==0&&(g=hn(l))))):(P=u&~v,P!==0?g=hn(P):T!==0?g=hn(T):l||(l=u&~n,l!==0&&(g=hn(l)))),g===0?0:r!==0&&r!==g&&(r&v)===0&&(v=g&-g,l=r&-r,v>=l||v===32&&(l&4194048)!==0)?r:g}function pe(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function we(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=[],l=0;31>l;l++)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,l,u,g,v){var T=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var P=n.entanglements,te=n.expirationTimes,le=n.hiddenUpdates;for(l=T&~l;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Va=/[\n"\\]/g;function Sn(n){return n.replace(Va,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ca(n,r,l,u,g,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?kr(n,T,_t(r)):l!=null?kr(n,T,_t(l)):u!=null&&n.removeAttribute("value"),g==null&&v!=null&&(n.defaultChecked=!!v),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?n.name=""+_t(P):n.removeAttribute("name")}function _i(n,r,l,u,g,v,T,P){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Nr(n);return}l=l!=null?""+_t(l):"",r=r!=null?""+_t(r):l,P||r===n.value||(n.value=r),n.defaultValue=r}u=u??g,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),Nr(n)}function kr(n,r,l){r==="number"&&Sr(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function un(n,r,l,u){if(n=n.options,r){r={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Qi)try{var Zs={};Object.defineProperty(Zs,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Zs,Zs),window.removeEventListener("test",Zs,Zs)}catch{Vu=!1}var Cr=null,Yu=null,To=null;function Qm(){if(To)return To;var n,r=Yu,l=r.length,u,g="value"in Cr?Cr.value:Cr.textContent,v=g.length;for(n=0;n=Js),ig=" ",rg=!1;function ag(n,r){switch(n){case"keyup":return sS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Xa=!1;function oS(n,r){switch(n){case"compositionend":return sg(r);case"keypress":return r.which!==32?null:(rg=!0,ig);case"textInput":return n=r.data,n===ig&&rg?null:n;default:return null}}function cS(n,r){if(Xa)return n==="compositionend"||!Wu&&ag(n,r)?(n=Qm(),To=Yu=Cr=null,Xa=!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:l,offset:r-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pg(l)}}function gg(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?gg(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function bg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Sr(n.document);r instanceof n.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)n=r.contentWindow;else break;r=Sr(n.document)}return r}function td(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 bS=Qi&&"documentMode"in document&&11>=document.documentMode,Ka=null,nd=null,il=null,id=!1;function xg(n,r,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;id||Ka==null||Ka!==Sr(u)||(u=Ka,"selectionStart"in u&&td(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}),il&&nl(il,u)||(il=u,u=vc(nd,"onSelect"),0>=T,g-=T,zi=1<<32-ut(r)+g|l<Ke?(at=De,De=null):at=De.sibling;var pt=oe(ae,De,se[Ke],me);if(pt===null){De===null&&(De=at);break}n&&De&&pt.alternate===null&&r(ae,De),ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt,De=at}if(Ke===se.length)return l(ae,De),lt&&Ji(ae,Ke),Ie;if(De===null){for(;KeKe?(at=De,De=null):at=De.sibling;var Qr=oe(ae,De,pt.value,me);if(Qr===null){De===null&&(De=at);break}n&&De&&Qr.alternate===null&&r(ae,De),ie=v(Qr,ie,Ke),ht===null?Ie=Qr:ht.sibling=Qr,ht=Qr,De=at}if(pt.done)return l(ae,De),lt&&Ji(ae,Ke),Ie;if(De===null){for(;!pt.done;Ke++,pt=se.next())pt=ge(ae,pt.value,me),pt!==null&&(ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return lt&&Ji(ae,Ke),Ie}for(De=u(De);!pt.done;Ke++,pt=se.next())pt=de(De,ae,Ke,pt.value,me),pt!==null&&(n&&pt.alternate!==null&&De.delete(pt.key===null?Ke:pt.key),ie=v(pt,ie,Ke),ht===null?Ie=pt:ht.sibling=pt,ht=pt);return n&&De.forEach(function(Ik){return r(ae,Ik)}),lt&&Ji(ae,Ke),Ie}function Nt(ae,ie,se,me){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){l(ae,ie.sibling),me=g(ie,se.props.children),me.return=ae,ae=me;break e}}else if(ie.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===I&&va(Ie)===ie.type){l(ae,ie.sibling),me=g(ie,se.props),cl(me,se),me.return=ae,ae=me;break e}l(ae,ie);break}else r(ae,ie);ie=ie.sibling}se.type===N?(me=ma(se.props.children,ae.mode,me,se.key),me.return=ae,ae=me):(me=Io(se.type,se.key,se.props,null,ae.mode,me),cl(me,se),me.return=ae,ae=me)}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){l(ae,ie.sibling),me=g(ie,se.children||[]),me.return=ae,ae=me;break e}else{l(ae,ie);break}else r(ae,ie);ie=ie.sibling}me=ud(se,ae.mode,me),me.return=ae,ae=me}return T(ae);case I:return se=va(se),Nt(ae,ie,se,me)}if(j(se))return Ae(ae,ie,se,me);if(X(se)){if(Ie=X(se),typeof Ie!="function")throw Error(a(150));return se=Ie.call(se),He(ae,ie,se,me)}if(typeof se.then=="function")return Nt(ae,ie,Fo(se),me);if(se.$$typeof===w)return Nt(ae,ie,Ho(ae,se),me);Go(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,ie!==null&&ie.tag===6?(l(ae,ie.sibling),me=g(ie,se),me.return=ae,ae=me):(l(ae,ie),me=cd(se,ae.mode,me),me.return=ae,ae=me),T(ae)):l(ae,ie)}return function(ae,ie,se,me){try{ol=0;var Ie=Nt(ae,ie,se,me);return ss=null,Ie}catch(De){if(De===as||De===qo)throw De;var ht=Kn(29,De,null,ae.mode);return ht.lanes=me,ht.return=ae,ht}finally{}}}var Ea=$g(!0),qg=$g(!1),Lr=!1;function Ed(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wd(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 zr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function jr(n,r,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(mt&2)!==0){var g=u.pending;return g===null?r.next=r:(r.next=g.next,g.next=r),u.pending=r,r=jo(n),Sg(n,null,l),r}return zo(n,u,r,l),jo(n)}function ul(n,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}function Nd(n,r){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var g=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?g=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?g=v=r:v=v.next=r}else g=v=r;l={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=r:n.next=r,l.lastBaseUpdate=r}var Sd=!1;function dl(){if(Sd){var n=rs;if(n!==null)throw n}}function fl(n,r,l,u){Sd=!1;var g=n.updateQueue;Lr=!1;var v=g.firstBaseUpdate,T=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var te=P,le=te.next;te.next=null,T===null?v=le:T.next=le,T=te;var he=n.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==T&&(P===null?he.firstBaseUpdate=le:P.next=le,he.lastBaseUpdate=te))}if(v!==null){var ge=g.baseState;T=0,he=le=te=null,P=v;do{var oe=P.lane&-536870913,de=oe!==P.lane;if(de?(rt&oe)===oe:(u&oe)===oe){oe!==0&&oe===is&&(Sd=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=n,He=P;oe=r;var Nt=l;switch(He.tag){case 1:if(Ae=He.payload,typeof Ae=="function"){ge=Ae.call(Nt,ge,oe);break e}ge=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=He.payload,oe=typeof Ae=="function"?Ae.call(Nt,ge,oe):Ae,oe==null)break e;ge=m({},ge,oe);break e;case 2:Lr=!0}}oe=P.callback,oe!==null&&(n.flags|=64,de&&(n.flags|=8192),de=g.callbacks,de===null?g.callbacks=[oe]:de.push(oe))}else de={lane:oe,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(le=he=de,te=ge):he=he.next=de,T|=oe;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;de=P,P=de.next,de.next=null,g.lastBaseUpdate=de,g.shared.pending=null}}while(!0);he===null&&(te=ge),g.baseState=te,g.firstBaseUpdate=le,g.lastBaseUpdate=he,v===null&&(g.shared.lanes=0),$r|=T,n.lanes=T,n.memoizedState=ge}}function Pg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Fg(n,r){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;nv?v:8;var T=M.T,P={};M.T=P,Fd(n,!1,r,l);try{var te=g(),le=M.S;if(le!==null&&le(P,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var he=kS(te,u);ml(n,r,he,ei(n))}else ml(n,r,u,ei(n))}catch(ge){ml(n,r,{then:function(){},status:"rejected",reason:ge},ei())}finally{U.p=v,T!==null&&P.types!==null&&(T.types=P.types),M.T=T}}function RS(){}function qd(n,r,l,u){if(n.tag!==5)throw Error(a(476));var g=Eb(n).queue;_b(n,g,r,Y,l===null?RS:function(){return wb(n),l(u)})}function Eb(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:ir,lastRenderedState:Y},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:l},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function wb(n){var r=Eb(n);r.next===null&&(r=n.alternate.memoizedState),ml(n,r.next.queue,{},ei())}function Pd(){return yn(Rl)}function Nb(){return Qt().memoizedState}function Sb(){return Qt().memoizedState}function DS(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var l=ei();n=zr(l);var u=jr(r,n,l);u!==null&&($n(u,r,l),ul(u,r,l)),r={cache:xd()},n.payload=r;return}r=r.return}}function LS(n,r,l){var u=ei();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tc(n)?Tb(r,l):(l=ld(n,r,l,u),l!==null&&($n(l,n,u),Ab(l,r,u)))}function kb(n,r,l){var u=ei();ml(n,r,l,u)}function ml(n,r,l,u){var g={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(tc(n))Tb(r,g);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,l);if(g.hasEagerState=!0,g.eagerState=P,Xn(P,T))return zo(n,r,g,0),kt===null&&Lo(),!1}catch{}finally{}if(l=ld(n,r,g,u),l!==null)return $n(l,n,u),Ab(l,r,u),!0}return!1}function Fd(n,r,l,u){if(u={lane:2,revertLane:wf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},tc(n)){if(r)throw Error(a(479))}else r=ld(n,l,u,2),r!==null&&$n(r,n,2)}function tc(n){var r=n.alternate;return n===Xe||r!==null&&r===Xe}function Tb(n,r){os=Xo=!0;var l=n.pending;l===null?r.next=r:(r.next=l.next,l.next=r),n.pending=r}function Ab(n,r,l){if((l&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,l|=u,r.lanes=l,Ue(n,l)}}var gl={readContext:yn,use:Qo,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};gl.useEffectEvent=Gt;var Cb={readContext:yn,use:Qo,useCallback:function(n,r){return Rn().memoizedState=[n,r===void 0?null:r],n},useContext:yn,useEffect:fb,useImperativeHandle:function(n,r,l){l=l!=null?l.concat([n]):null,Jo(4194308,4,gb.bind(null,r,n),l)},useLayoutEffect:function(n,r){return Jo(4194308,4,n,r)},useInsertionEffect:function(n,r){Jo(4,2,n,r)},useMemo:function(n,r){var l=Rn();r=r===void 0?null:r;var u=n();if(wa){Wt(!0);try{n()}finally{Wt(!1)}}return l.memoizedState=[u,r],u},useReducer:function(n,r,l){var u=Rn();if(l!==void 0){var g=l(r);if(wa){Wt(!0);try{l(r)}finally{Wt(!1)}}}else g=r;return u.memoizedState=u.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},u.queue=n,n=n.dispatch=LS.bind(null,Xe,n),[u.memoizedState,n]},useRef:function(n){var r=Rn();return n={current:n},r.memoizedState=n},useState:function(n){n=Id(n);var r=n.queue,l=kb.bind(null,Xe,r);return r.dispatch=l,[n.memoizedState,l]},useDebugValue:Hd,useDeferredValue:function(n,r){var l=Rn();return $d(l,n,r)},useTransition:function(){var n=Id(!1);return n=_b.bind(null,Xe,n.queue,!0,!1),Rn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,l){var u=Xe,g=Rn();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),kt===null)throw Error(a(349));(rt&127)!==0||Zg(u,r,l)}g.memoizedState=l;var v={value:l,getSnapshot:r};return g.queue=v,fb(Wg.bind(null,u,v,n),[n]),u.flags|=2048,us(9,{destroy:void 0},Qg.bind(null,u,v,l,r),null),l},useId:function(){var n=Rn(),r=kt.identifierPrefix;if(lt){var l=ji,u=zi;l=(u&~(1<<32-ut(u)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Ko++,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(g,{is:u.is}):T.createElement(g)}}v[Ut]=r,v[pn]=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,g,u),g){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),af(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,l),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=Q.current,ts(r)){if(n=r.stateNode,l=r.memoizedProps,u=null,g=xn,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}n[Ut]=r,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||X0(n.nodeValue,l)),n||Rr(r,!0)}else n=_c(n).createTextNode(u),n[Ut]=r,r.stateNode=n}return Lt(r),null;case 31:if(l=r.memoizedState,n===null||n.memoizedState!==null){if(u=ts(r),l!==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 ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),n=!1}else l=pd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),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(g=ts(r),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(a(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(a(317));g[Ut]=r}else ga(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Lt(r),g=!1}else g=pd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return r.flags&256?(Qn(r),r):(Qn(r),null)}return Qn(r),(r.flags&128)!==0?(r.lanes=l,r):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=r.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==g&&(u.flags|=2048)),l!==n&&l&&(r.child.flags|=8192),sc(r,r.updateQueue),Lt(r),null);case 4:return ee(),n===null&&Tf(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(g=(r.flags&128)!==0,v=u.rendering,v===null)if(g)xl(u,!1);else{if(Vt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=Yo(n),v!==null){for(r.flags|=128,xl(u,!1),n=v.updateQueue,r.updateQueue=n,sc(r,n),r.subtreeFlags=0,n=l,l=r.child;l!==null;)kg(l,n),l=l.sibling;return D(Zt,Zt.current&1|2),lt&&Ji(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ct()>dc&&(r.flags|=128,g=!0,xl(u,!1),r.lanes=4194304)}else{if(!g)if(n=Yo(v),n!==null){if(r.flags|=128,g=!0,n=n.updateQueue,r.updateQueue=n,sc(r,n),xl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!lt)return Lt(r),null}else 2*ct()-u.renderingStartTime>dc&&l!==536870912&&(r.flags|=128,g=!0,xl(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,l=Zt.current,D(Zt,g?l&1|2:l&1),lt&&Ji(r,u.treeForkCount),n):(Lt(r),null);case 22:case 23:return Qn(r),Td(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(l&536870912)!==0&&(r.flags&128)===0&&(Lt(r),r.subtreeFlags&6&&(r.flags|=8192)):Lt(r),l=r.updateQueue,l!==null&&sc(r,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048),n!==null&&V(ya),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),tr(en),Lt(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function US(n,r){switch(fd(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));ga()}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));ga()}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),Td(),n!==null&&V(ya),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 Jb(n,r){switch(fd(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),Td(),n!==null&&V(ya);break;case 24:tr(en)}}function yl(n,r){try{var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var g=u.next;l=g;do{if((l.tag&n)===n){u=void 0;var v=l.create,T=l.inst;u=v(),T.destroy=u}l=l.next}while(l!==g)}}catch(P){yt(r,r.return,P)}}function Ur(n,r,l){try{var u=r.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var v=g.next;u=v;do{if((u.tag&n)===n){var T=u.inst,P=T.destroy;if(P!==void 0){T.destroy=void 0,g=r;var te=l,le=P;try{le()}catch(he){yt(g,te,he)}}}u=u.next}while(u!==v)}}catch(he){yt(r,r.return,he)}}function e0(n){var r=n.updateQueue;if(r!==null){var l=n.stateNode;try{Fg(r,l)}catch(u){yt(n,n.return,u)}}}function t0(n,r,l){l.props=Na(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){yt(n,r,u)}}function vl(n,r){try{var l=n.ref;if(l!==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 l=="function"?n.refCleanup=l(u):l.current=u}}catch(g){yt(n,r,g)}}function Ii(n,r){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(g){yt(n,r,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){yt(n,r,g)}else l.current=null}function n0(n){var r=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(g){yt(n,n.return,g)}}function sf(n,r,l){try{var u=n.stateNode;lk(u,n.type,l,r),u[pn]=r}catch(g){yt(n,n.return,g)}}function i0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Vr(n.type)||n.tag===4}function lf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||i0(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&&Vr(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 of(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(n),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=_e));else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode,r=null),n=n.child,n!==null))for(of(n,r,l),n=n.sibling;n!==null;)of(n,r,l),n=n.sibling}function lc(n,r,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?l.insertBefore(n,r):l.appendChild(n);else if(u!==4&&(u===27&&Vr(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(lc(n,r,l),n=n.sibling;n!==null;)lc(n,r,l),n=n.sibling}function r0(n){var r=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,g=r.attributes;g.length;)r.removeAttributeNode(g[0]);_n(r,u,l),r[Ut]=n,r[pn]=l}catch(v){yt(n,n.return,v)}}var sr=!1,rn=!1,cf=!1,a0=typeof WeakSet=="function"?WeakSet:Set,gn=null;function HS(n,r){if(n=n.containerInfo,Mf=Ac,n=bg(n),td(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var g=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,P=-1,te=-1,le=0,he=0,ge=n,oe=null;t:for(;;){for(var de;ge!==l||g!==0&&ge.nodeType!==3||(P=T+g),ge!==v||u!==0&&ge.nodeType!==3||(te=T+u),ge.nodeType===3&&(T+=ge.nodeValue.length),(de=ge.firstChild)!==null;)oe=ge,ge=de;for(;;){if(ge===n)break t;if(oe===l&&++le===g&&(P=T),oe===v&&++he===u&&(te=T),(de=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=de}l=P===-1||te===-1?null:{start:P,end:te}}else l=null}l=l||{start:0,end:0}}else l=null;for(Of={focusedElem:n,selectionRange:l},Ac=!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(l=0;l title"))),_n(v,u,l),v[Ut]=n,Ft(v),u=v;break e;case"link":var T=dx("link","href",g).get(u+(l.href||""));if(T){for(var P=0;PNt&&(T=Nt,Nt=He,He=T);var ae=mg(P,He),ie=mg(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;Pl?32:l,M.T=null,l=gf,gf=null;var v=Pr,T=dr;if(dn=0,ms=Pr=null,dr=0,(mt&6)!==0)throw Error(a(331));var P=mt;if(mt|=4,g0(v.current),h0(v,v.current,T,l),mt=P,kl(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Kt,v)}catch{}return!0}finally{U.p=g,M.T=u,L0(n,r)}}function j0(n,r,l){r=oi(l,r),r=Xd(n.stateNode,r,2),n=jr(n,r,2),n!==null&&(gt(n,2),Bi(n))}function yt(n,r,l){if(n.tag===3)j0(n,n,l);else for(;r!==null;){if(r.tag===3){j0(r,n,l);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(qr===null||!qr.has(u))){n=oi(l,n),l=Ib(2),u=jr(r,l,2),u!==null&&(Bb(l,u,r,n),gt(u,2),Bi(u));break}}r=r.return}}function vf(n,r,l){var u=n.pingCache;if(u===null){u=n.pingCache=new PS;var g=new Set;u.set(r,g)}else g=u.get(r),g===void 0&&(g=new Set,u.set(r,g));g.has(l)||(ff=!0,g.add(l),n=XS.bind(null,n,r,l),r.then(n,n))}function XS(n,r,l){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,kt===n&&(rt&l)===l&&(Vt===4||Vt===3&&(rt&62914560)===rt&&300>ct()-uc?(mt&2)===0&&gs(n,0):hf|=l,ps===rt&&(ps=0)),Bi(n)}function I0(n,r){r===0&&(r=Pe()),n=pa(n,r),n!==null&&(gt(n,r),Bi(n))}function KS(n){var r=n.memoizedState,l=0;r!==null&&(l=r.retryLane),I0(n,l)}function ZS(n,r){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,g=n.memoizedState;g!==null&&(l=g.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),I0(n,l)}function QS(n,r){return Pt(n,r)}var bc=null,xs=null,_f=!1,xc=!1,Ef=!1,Gr=0;function Bi(n){n!==xs&&n.next===null&&(xs===null?bc=xs=n:xs=xs.next=n),xc=!0,_f||(_f=!0,JS())}function kl(n,r){if(!Ef&&xc){Ef=!0;do for(var l=!1,u=bc;u!==null;){if(n!==0){var g=u.pendingLanes;if(g===0)var v=0;else{var T=u.suspendedLanes,P=u.pingedLanes;v=(1<<31-ut(42|n)+1)-1,v&=g&~(T&~P),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,$0(u,v))}else v=rt,v=ne(u,u===kt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||pe(u,v)||(l=!0,$0(u,v));u=u.next}while(l);Ef=!1}}function WS(){B0()}function B0(){xc=_f=!1;var n=0;Gr!==0&&ck()&&(n=Gr);for(var r=ct(),l=null,u=bc;u!==null;){var g=u.next,v=U0(u,r);v===0?(u.next=null,l===null?bc=g:l.next=g,g===null&&(xs=l)):(l=u,(n!==0||(v&3)!==0)&&(xc=!0)),u=g}dn!==0&&dn!==5||kl(n),Gr!==0&&(Gr=0)}function U0(n,r){for(var l=n.suspendedLanes,u=n.pingedLanes,g=n.expirationTimes,v=n.pendingLanes&-62914561;0P)break;var he=te.transferSize,ge=te.initiatorType;he&&K0(ge)&&(te=te.responseEnd,T+=he*(te"u"?null:document;function lx(n,r,l){var u=ys;if(u&&typeof r=="string"&&r){var g=Sn(r);g='link[rel="'+n+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),sx.has(g)||(sx.add(g),n={rel:n,crossOrigin:l,href:r},u.querySelector(g)===null&&(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function xk(n){fr.D(n),lx("dns-prefetch",n,null)}function yk(n,r){fr.C(n,r),lx("preconnect",n,r)}function vk(n,r,l){fr.L(n,r,l);var u=ys;if(u&&n&&r){var g='link[rel="preload"][as="'+Sn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+Sn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+Sn(l.imageSizes)+'"]')):g+='[href="'+Sn(n)+'"]';var v=g;switch(r){case"style":v=vs(n);break;case"script":v=_s(n)}pi.has(v)||(n=m({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:n,as:r},l),pi.set(v,n),u.querySelector(g)!==null||r==="style"&&u.querySelector(Ml(v))||r==="script"&&u.querySelector(Ol(v))||(r=u.createElement("link"),_n(r,"link",n),Ft(r),u.head.appendChild(r)))}}function _k(n,r){fr.m(n,r);var l=ys;if(l&&n){var u=r&&typeof r.as=="string"?r.as:"script",g='link[rel="modulepreload"][as="'+Sn(u)+'"][href="'+Sn(n)+'"]',v=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=_s(n)}if(!pi.has(v)&&(n=m({rel:"modulepreload",href:n},r),pi.set(v,n),l.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ol(v)))return}u=l.createElement("link"),_n(u,"link",n),Ft(u),l.head.appendChild(u)}}}function Ek(n,r,l){fr.S(n,r,l);var u=ys;if(u&&n){var g=Di(u).hoistableStyles,v=vs(n);r=r||"default";var T=g.get(v);if(!T){var P={loading:0,preload:null};if(T=u.querySelector(Ml(v)))P.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":r},l),(l=pi.get(v))&&Bf(n,l);var te=T=u.createElement("link");Ft(te),_n(te,"link",n),te._p=new Promise(function(le,he){te.onload=le,te.onerror=he}),te.addEventListener("load",function(){P.loading|=1}),te.addEventListener("error",function(){P.loading|=2}),P.loading|=4,wc(T,r,u)}T={type:"stylesheet",instance:T,count:1,state:P},g.set(v,T)}}}function wk(n,r){fr.X(n,r);var l=ys;if(l&&n){var u=Di(l).hoistableScripts,g=_s(n),v=u.get(g);v||(v=l.querySelector(Ol(g)),v||(n=m({src:n,async:!0},r),(r=pi.get(g))&&Uf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(g,v))}}function Nk(n,r){fr.M(n,r);var l=ys;if(l&&n){var u=Di(l).hoistableScripts,g=_s(n),v=u.get(g);v||(v=l.querySelector(Ol(g)),v||(n=m({src:n,async:!0,type:"module"},r),(r=pi.get(g))&&Uf(n,r),v=l.createElement("script"),Ft(v),_n(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(g,v))}}function ox(n,r,l,u){var g=(g=Q.current)?Ec(g):null;if(!g)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=vs(l.href),l=Di(g).hoistableStyles,u=l.get(r),u||(u={type:"style",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=vs(l.href);var v=Di(g).hoistableStyles,T=v.get(n);if(T||(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=g.querySelector(Ml(n)))&&!v._p&&(T.instance=v,T.state.loading=5),pi.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},pi.set(n,l),v||Sk(g,n,l,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=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=_s(l),l=Di(g).hoistableScripts,u=l.get(r),u||(u={type:"script",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function vs(n){return'href="'+Sn(n)+'"'}function Ml(n){return'link[rel="stylesheet"]['+n+"]"}function cx(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function Sk(n,r,l,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",l),Ft(r),n.head.appendChild(r))}function _s(n){return'[src="'+Sn(n)+'"]'}function Ol(n){return"script[async]"+n}function ux(n,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+Sn(l.href)+'"]');if(u)return r.instance=u,Ft(u),u;var g=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Ft(u),_n(u,"style",g),wc(u,l.precedence,n),r.instance=u;case"stylesheet":g=vs(l.href);var v=n.querySelector(Ml(g));if(v)return r.state.loading|=4,r.instance=v,Ft(v),v;u=cx(l),(g=pi.get(g))&&Bf(u,g),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,wc(v,l.precedence,n),r.instance=v;case"script":return v=_s(l.src),(g=n.querySelector(Ol(v)))?(r.instance=g,Ft(g),g):(u=l,(g=pi.get(v))&&(u=m({},l),Uf(u,g)),n=n.ownerDocument||n,g=n.createElement("script"),Ft(g),_n(g,"link",u),n.head.appendChild(g),r.instance=g);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,wc(u,l.precedence,n));return r.instance}function wc(n,r,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,v=g,T=0;T title"):null)}function kk(n,r,l){if(l===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 hx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Tk(n,r,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=vs(u.href),v=r.querySelector(Ml(g));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Sc.bind(n),r.then(n,n)),l.state.loading|=4,l.instance=v,Ft(v);return}v=r.ownerDocument||r,u=cx(u),(g=pi.get(g))&&Bf(u,g),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),l.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Sc.bind(n),r.addEventListener("load",l),r.addEventListener("error",l))}}var Hf=0;function Ak(n,r){return n.stylesheets&&n.count===0&&Tc(n,n.stylesheets),0Hf?50:800)+r);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function Sc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var kc=null;function Tc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,kc=new Map,r.forEach(Ck,n),kc=null,Sc.call(n))}function Ck(n,r){if(!(r.state.loading&4)){var l=kc.get(n);if(l)var u=l.get(null);else{l=new Map,kc.set(n,l);for(var g=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(),Kf.exports=Gk(),Kf.exports}var Yk=Vk();/** - * @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 J1=(...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 Xk=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 Kk=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 Ix=e=>{const t=Kk(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 Zk={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 Qk=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 Wk=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},h)=>re.createElement("svg",{ref:h,...Zk,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:J1("lucide",s),...!o&&!Qk(d)&&{"aria-hidden":"true"},...d},[...c.map(([f,p])=>re.createElement(f,p)),...Array.isArray(o)?o:[o]]));/** - * @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},o)=>re.createElement(Wk,{ref:o,iconNode:t,className:J1(`lucide-${Xk(Ix(e))}`,`lucide-${e}`,a),...s}));return i.displayName=Ix(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 Jk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],e2=Me("arrow-left",Jk);/** - * @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=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Su=Me("arrow-up-right",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 n2=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e_=Me("ban",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 i2=[["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"}]],r2=Me("bell-off",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 a2=[["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"}]],Wp=Me("bot",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:"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"}]],t_=Me("brain",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 l2=[["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"}]],o2=Me("bug",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 c2=[["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"}]],u2=Me("calendar-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 d2=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],f2=Me("check-check",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 h2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ds=Me("check",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 p2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],n_=Me("chevron-down",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 m2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],g2=Me("chevron-right",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 b2=[["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"}]],i_=Me("circle-alert",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:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],r_=Me("circle-check-big",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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],v2=Me("circle-check",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"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],E2=Me("circle-dot",_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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],N2=Me("circle",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 S2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],a_=Me("clock",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 k2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],T2=Me("code",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 A2=[["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"}]],eo=Me("copy",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"}],["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"}]],M2=Me("crosshair",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=[["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"}]],R2=Me("database",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=[["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"}]],L2=Me("eye",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=[["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"}]],j2=Me("file-check-corner",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:"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"}]],s_=Me("file-text",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 B2=[["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"}]],l_=Me("flag",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:"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"}]],H2=Me("git-merge",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=[["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"}]],Jp=Me("git-pull-request",$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:"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"}]],P2=Me("github",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 F2=[["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"}]],G2=Me("gitlab",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 V2=[["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"}]],em=Me("globe",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 Y2=[["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"}]],Ls=Me("history",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=[["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"}]],K2=Me("image",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=[["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"}]],Q2=Me("layers",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 W2=[["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"}]],J2=Me("layout-dashboard",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:"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"}]],tT=Me("list-todo",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=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jf=Me("loader-circle",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=[["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"}]],rT=Me("lock",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 aT=[["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"}]],sT=Me("log-out",aT);/** - * @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:"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"}]],tm=Me("mail",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 oT=[["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"}]],Bx=Me("message-circle",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:"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"}]],uT=Me("message-square",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=[["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"}]],fT=Me("network",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 hT=[["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"}]],pT=Me("pencil",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 mT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gT=Me("plus",mT);/** - * @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:"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"}]],xT=Me("puzzle",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:"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"}]],o_=Me("radar",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 vT=[["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"}]],_T=Me("radio",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 ET=[["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"}]],wT=Me("refresh-cw",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=[["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"}]],ST=Me("rocket",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 kT=[["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"}]],TT=Me("rotate-ccw",kT);/** - * @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 AT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],c_=Me("search",AT);/** - * @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:"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"}]],MT=Me("shield-alert",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:"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"}]],nm=Me("shield-check",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:"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"}]],DT=Me("sticky-note",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:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u_=Me("terminal",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:"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"}]],jT=Me("trash-2",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:"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"}]],BT=Me("triangle-alert",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:"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"}]],HT=Me("users",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:"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"}]],d_=Me("waypoints",$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:"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"}]],su=Me("wrench",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:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],f_=Me("x",PT),FT={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"}},GT={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"}},h_={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 zc(e){return e.original_severity!=null&&e.original_severity!==e.severity}const VT={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 YT(e){var i;if(!e)return null;const t=(i=e.split(".").pop())==null?void 0:i.toLowerCase();return t&&VT[t]||null}function im(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 rm(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 Ps="https://app.strix.ai/api/auth/signup";function qi(e){try{const t=JSON.stringify({event:"cta_clicked",cta:e});typeof navigator<"u"&&navigator.sendBeacon?navigator.sendBeacon("/api/event",t):fetch("/api/event",{method:"POST",body:t,keepalive:!0})}catch{}}function am({className:e=""}){return b.jsx("span",{className:`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-[#aaa] ${e}`,style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:"Pro"})}function XT({text:e,children:t,className:i=""}){const[a,s]=re.useState(!1);return b.jsxs("span",{className:`relative inline-flex ${i}`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>s(!0),onBlur:()=>s(!1),children:[t,a&&b.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 Ux({item:e}){const t=e.icon;return b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(e.slug),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:[b.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[b.jsx(t,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(am,{}),b.jsx(Su,{className:"h-3.5 w-3.5 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]})]}),b.jsx("p",{className:"text-sm font-medium text-white",children:e.title}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:e.desc})]})}function KT({item:e}){const t=e.icon;return b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(e.slug),className:"group flex w-full items-start gap-2.5 rounded-md px-2.5 py-2 transition-colors hover:bg-[rgba(255,255,255,0.06)]",children:[b.jsx(t,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#666] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"}),b.jsxs("span",{className:"min-w-0 flex-1",children:[b.jsxs("span",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:"flex-1 truncate text-sm text-[#aaa] transition-colors group-hover:text-white",children:e.title}),b.jsx(am,{})]}),b.jsx("span",{className:"mt-0.5 block text-[11px] leading-snug text-[#666]",children:e.desc})]})]})}function Ms({label:e,desc:t,slug:i,icon:a}){return b.jsx(XT,{text:t,children:b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi(i),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:[b.jsx(a,{className:"h-4 w-4 text-[#888] transition-colors group-hover:text-white","aria-hidden":"true"}),b.jsx("span",{children:e}),b.jsx(am,{className:"ml-0.5"})]})})}function p_(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}),m_=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),lu="-",Hx=[],JT="arbitrary..",eA=e=>{const t=nA(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return tA(c);const d=c.split(lu),h=d[0]===""&&d.length>1?1:0;return g_(d,h,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=a[c],f=i[c];return h?f?QT(f,h):h:f||Hx}return i[c]||Hx}}},g_=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const s=e[t],o=i.nextPart.get(s);if(o){const f=g_(e,t+1,o);if(f)return f}const c=i.validators;if(c===null)return;const d=t===0?e.join(lu):e.slice(t).join(lu),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?JT+a:void 0})(),nA=e=>{const{theme:t,classGroups:i}=e;return iA(i,t)},iA=(e,t)=>{const i=m_();for(const a in e){const s=e[a];sm(s,i,a,t)}return i},sm=(e,t,i,a)=>{const s=e.length;for(let o=0;o{if(typeof e=="string"){aA(e,t,i);return}if(typeof e=="function"){sA(e,t,i,a);return}lA(e,t,i,a)},aA=(e,t,i)=>{const a=e===""?t:b_(t,e);a.classGroupId=i},sA=(e,t,i,a)=>{if(oA(e)){sm(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(WT(i,e))},lA=(e,t,i,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c{let i=e;const a=t.split(lu),s=a.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,cA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const s=(o,c)=>{i[o]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(o){let c=i[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in i?i[o]=c:s(o,c)}}},_p="!",$x=":",uA=[],qx=(e,t,i,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:s}),dA=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=s=>{const o=[];let c=0,d=0,h=0,f;const p=s.length;for(let N=0;Nh?f-h:void 0;return qx(o,x,y,_)};if(t){const s=t+$x,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):qx(uA,!1,c,void 0,!0)}if(i){const s=a;a=o=>i({className:o,parseClassName:s})}return a},fA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let s=[];for(let o=0;o0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},hA=e=>({cache:cA(e.cacheSize),parseClassName:dA(e),sortModifiers:fA(e),postfixLookupClassGroupIds:pA(e),...eA(e)}),pA=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let a=0;a{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:c}=t,d=[],h=e.trim().split(mA);let f="";for(let p=h.length-1;p>=0;p-=1){const m=h[p],{isExternal:y,modifiers:x,hasImportantModifier:_,baseClassName:N,maybePostfixModifierPosition:S}=i(m);if(y){f=m+(f.length>0?" "+f:f);continue}let E=!!S,k;if(E){const H=N.substring(0,S);k=a(H);const I=k&&c[k]?a(N):void 0;I&&I!==k&&(k=I,E=!1)}else k=a(N);if(!k){if(!E){f=m+(f.length>0?" "+f:f);continue}if(k=a(N),!k){f=m+(f.length>0?" "+f:f);continue}E=!1}const w=x.length===0?"":x.length===1?x[0]:o(x).join(":"),O=_?w+_p:w,B=O+k;if(d.indexOf(B)>-1)continue;d.push(B);const R=s(k,E);for(let H=0;H0?" "+f:f)}return f},bA=(...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,o;const c=h=>{const f=t.reduce((p,m)=>m(p),e());return i=hA(f),a=i.cache.get,s=i.cache.set,o=d,d(h)},d=h=>{const f=a(h);if(f)return f;const p=gA(h,i);return s(h,p),p};return o=c,(...h)=>o(bA(...h))},yA=[],fn=e=>{const t=i=>i[e]||yA;return t.isThemeGetter=!0,t},y_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_A=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EA=/\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$/,wA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,SA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=e=>vA.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Ui=e=>!!e&&Number.isInteger(Number(e)),eh=e=>e.endsWith("%")&&We(e.slice(0,-1)),hr=e=>_A.test(e),__=()=>!0,kA=e=>EA.test(e)&&!wA.test(e),lm=()=>!1,TA=e=>NA.test(e),AA=e=>SA.test(e),CA=e=>!ke(e)&&!Te(e),MA=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)),OA=e=>aa(e,N_,lm),ke=e=>y_.test(e),Ta=e=>aa(e,S_,kA),Px=e=>aa(e,UA,We),RA=e=>aa(e,T_,__),DA=e=>aa(e,k_,lm),Fx=e=>aa(e,E_,lm),LA=e=>aa(e,w_,AA),jc=e=>aa(e,A_,TA),Te=e=>v_.test(e),Bl=e=>$a(e,S_),zA=e=>$a(e,k_),Gx=e=>$a(e,E_),jA=e=>$a(e,N_),IA=e=>$a(e,w_),Ic=e=>$a(e,A_,!0),BA=e=>$a(e,T_,!0),aa=(e,t,i)=>{const a=y_.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},$a=(e,t,i=!1)=>{const a=v_.exec(e);return a?a[1]?t(a[1]):i:!1},E_=e=>e==="position"||e==="percentage",w_=e=>e==="image"||e==="url",N_=e=>e==="length"||e==="size"||e==="bg-size",S_=e=>e==="length",UA=e=>e==="number",k_=e=>e==="family-name",T_=e=>e==="number"||e==="weight",A_=e=>e==="shadow",HA=()=>{const e=fn("color"),t=fn("font"),i=fn("text"),a=fn("font-weight"),s=fn("tracking"),o=fn("leading"),c=fn("breakpoint"),d=fn("container"),h=fn("spacing"),f=fn("radius"),p=fn("shadow"),m=fn("inset-shadow"),y=fn("text-shadow"),x=fn("drop-shadow"),_=fn("blur"),N=fn("perspective"),S=fn("aspect"),E=fn("ease"),k=fn("animate"),w=()=>["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"],B=()=>[...O(),Te,ke],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[Te,ke,h],K=()=>[Wr,"full","auto",...I()],L=()=>[Ui,"none","subgrid",Te,ke],q=()=>["auto",{span:["full",Ui,Te,ke]},Ui,Te,ke],X=()=>[Ui,"auto",Te,ke],G=()=>["auto","min","max","fr",Te,ke],C=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...I()],U=()=>[Wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[Wr,"screen","full","dvw","lvw","svw","min","max","fit",...I()],Z=()=>[Wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],A=()=>[e,Te,ke],z=()=>[...O(),Gx,Fx,{position:[Te,ke]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",jA,OA,{size:[Te,ke]}],F=()=>[eh,Bl,Ta],$=()=>["","none","full",f,Te,ke],Q=()=>["",We,Bl,Ta],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,eh,Gx,Fx],ce=()=>["","none",_,Te,ke],fe=()=>["none",We,Te,ke],be=()=>["none",We,Te,ke],Ee=()=>[We,Te,ke],Ne=()=>[Wr,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[__],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[CA],"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",Wr,ke,Te,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,ke]}],"container-named":[MA],columns:[{columns:[We,ke,Te,d]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:B()}],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:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Ui,"auto",Te,ke]}],basis:[{basis:[Wr,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Wr,"auto","initial","none",ke]}],grow:[{grow:["",We,Te,ke]}],shrink:[{shrink:["",We,Te,ke]}],order:[{order:[Ui,"first","last","none",Te,ke]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...C(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...C()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":C()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],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: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":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",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],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,Bl,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,BA,RA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eh,ke]}],"font-family":[{font:[zA,DA,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,Px]}],leading:[{leading:[o,...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: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,Ta]}],"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:I()}],"tab-size":[{tab:[Ui,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:z()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ui,Te,ke],radial:["",Te,ke],conic:[Ui,Te,ke]},IA,LA]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"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: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,Bl,Ta]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,Ic,jc]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,Ic,jc]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[We,Ta]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",y,Ic,jc]}],"text-shadow-color":[{"text-shadow":A()}],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":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:z()}],"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,Ic,jc]}],"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":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",E,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":B()}],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:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[Te,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"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:[Ui,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":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",...A()]}],"stroke-w":[{stroke:[We,Bl,Ta,Px]}],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"]}},$A=xA(HA);function Bc(...e){return $A(ZT(e))}function qA(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function Ep(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`:qA(e)}function PA(e){return`STRIX-${e}`}function FA(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const GA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YA={};function Vx(e,t){return(YA.jsx?VA:GA).test(e)}const XA=/[ \t\n\f\r]/g;function KA(e){return typeof e=="object"?e.type==="text"?Yx(e.value):!1:Yx(e)}function Yx(e){return e.replace(XA,"")===""}class mo{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}mo.prototype.normal={};mo.prototype.property={};mo.prototype.space=void 0;function C_(e,t){const i={},a={};for(const s of e)Object.assign(i,s.property),Object.assign(a,s.normal);return new mo(i,a,t)}function wp(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 ZA=0;const Ge=qa(),an=qa(),Np=qa(),ve=qa(),Tt=qa(),Ra=qa(),ti=qa();function qa(){return 2**++ZA}const Sp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:an,commaOrSpaceSeparated:ti,commaSeparated:Ra,number:ve,overloadedBoolean:Np,spaceSeparated:Tt},Symbol.toStringTag,{value:"Module"})),th=Object.keys(Sp);class om extends Gn{constructor(t,i,a,s){let o=-1;if(super(t,i),Xx(this,"space",s),typeof a=="number")for(;++o4&&i.slice(0,4)==="data"&&tC.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Kx,rC);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Kx.test(o)){let c=o.replace(eC,iC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=om}return new s(a,t)}function iC(e){return"-"+e.toLowerCase()}function rC(e){return e.charAt(1).toUpperCase()}const aC=C_([M_,QA,D_,L_,z_],"html"),cm=C_([M_,WA,D_,L_,z_],"svg");function sC(e){return e.join(" ").trim()}var ws={},nh,Zx;function lC(){if(Zx)return nh;Zx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=` -`,f="/",p="*",m="",y="comment",x="declaration";function _(S,E){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];E=E||{};var k=1,w=1;function O(C){var j=C.match(t);j&&(k+=j.length);var M=C.lastIndexOf(h);w=~M?C.length-M:w+C.length}function B(){var C={line:k,column:w};return function(j){return j.position=new R(C),K(),j}}function R(C){this.start=C,this.end={line:k,column:w},this.source=E.source}R.prototype.content=S;function H(C){var j=new Error(E.source+":"+k+":"+w+": "+C);if(j.reason=C,j.filename=E.source,j.line=k,j.column=w,j.source=S,!E.silent)throw j}function I(C){var j=C.exec(S);if(j){var M=j[0];return O(M),S=S.slice(M.length),j}}function K(){I(i)}function L(C){var j;for(C=C||[];j=q();)j!==!1&&C.push(j);return C}function q(){var C=B();if(!(f!=S.charAt(0)||p!=S.charAt(1))){for(var j=2;m!=S.charAt(j)&&(p!=S.charAt(j)||f!=S.charAt(j+1));)++j;if(j+=2,m===S.charAt(j-1))return H("End of comment missing");var M=S.slice(2,j-2);return w+=2,O(M),S=S.slice(j),w+=2,C({type:y,comment:M})}}function X(){var C=B(),j=I(a);if(j){if(q(),!I(s))return H("property missing ':'");var M=I(o),U=C({type:x,property:N(j[0].replace(e,m)),value:M?N(M[0].replace(e,m)):m});return I(c),U}}function G(){var C=[];L(C);for(var j;j=X();)j!==!1&&(C.push(j),L(C));return C}return K(),G()}function N(S){return S?S.replace(d,m):m}return nh=_,nh}var Qx;function oC(){if(Qx)return ws;Qx=1;var e=ws&&ws.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=i;const t=e(lC());function i(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,t.default)(a),d=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:f,value:p}=h;d?s(f,p,h):p&&(o=o||{},o[f]=p)}),o}return ws}var Ul={},Wx;function cC(){if(Wx)return Ul;Wx=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(f){return!f||i.test(f)||e.test(f)},c=function(f,p){return p.toUpperCase()},d=function(f,p){return"".concat(p,"-")},h=function(f,p){return p===void 0&&(p={}),o(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(s,d):f=f.replace(a,d),f.replace(t,c))};return Ul.camelCase=h,Ul}var Hl,Jx;function uC(){if(Jx)return Hl;Jx=1;var e=Hl&&Hl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(oC()),i=cC();function a(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,h){d&&h&&(c[(0,i.camelCase)(d,o)]=h)}),c}return a.default=a,Hl=a,Hl}var dC=uC();const fC=ho(dC),j_=I_("end"),um=I_("start");function I_(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 hC(e){const t=um(e),i=j_(e);if(t&&i)return{start:t,end:i}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ey(e.position):"start"in e||"end"in e?ey(e):"line"in e||"column"in e?kp(e):""}function kp(e){return ty(e&&e.line)+":"+ty(e&&e.column)}function ey(e){return kp(e&&e.start)+"-"+kp(e&&e.end)}function ty(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="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?o.ruleId=a:(o.source=a.slice(0,h),o.ruleId=a.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.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=Kl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.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 dm={}.hasOwnProperty,pC=new Map,mC=/[A-Z]/g,gC=new Set(["table","tbody","thead","tfoot","tr"]),bC=new Set(["td","th"]),B_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xC(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=kC(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=SC(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"?cm:aC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=U_(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function U_(e,t,i){if(t.type==="element")return yC(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return vC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return EC(e,t,i);if(t.type==="mdxjsEsm")return _C(e,t);if(t.type==="root")return wC(e,t,i);if(t.type==="text")return NC(e,t)}function yC(e,t,i){const a=e.schema;let s=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=cm,e.schema=s),e.ancestors.push(t);const o=$_(e,t.tagName,!1),c=TC(e,t);let d=hm(e,t);return gC.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!KA(h):!0})),H_(e,c,o,t),fm(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function vC(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)}to(e,t.position)}function _C(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);to(e,t.position)}function EC(e,t,i){const a=e.schema;let s=a;t.name==="svg"&&a.space==="html"&&(s=cm,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:$_(e,t.name,!0),c=AC(e,t),d=hm(e,t);return H_(e,c,o,t),fm(c,d),e.ancestors.pop(),e.schema=a,e.create(t,o,c,i)}function wC(e,t,i){const a={};return fm(a,hm(e,t)),e.create(t,e.Fragment,a,i)}function NC(e,t){return t.value}function H_(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function fm(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function SC(e,t,i){return a;function a(s,o,c,d){const f=Array.isArray(c.children)?i:t;return d?f(o,c,d):f(o,c)}}function kC(e,t){return i;function i(a,s,o,c){const d=Array.isArray(o.children),h=um(a);return t(s,o,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function TC(e,t){const i={};let a,s;for(s in t.properties)if(s!=="children"&&dm.call(t.properties,s)){const o=CC(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&bC.has(t.tagName)?a=d:i[c]=d}}if(a){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function AC(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else to(e,t.position);else{const s=a.name;let o;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,o=e.evaluater.evaluateExpression(d.expression)}else to(e,t.position);else o=a.value===null?!0:a.value;i[s]=o}return i}function hm(e,t){const i=[];let a=-1;const s=e.passKeys?new Map:pC;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);o0?(ii(e,e.length,0,t),e):t}const ry={}.hasOwnProperty;function P_(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 Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dn=sa(/[A-Za-z]/),Tn=sa(/[\dA-Za-z]/),BC=sa(/[#-'*+\--9=?A-Z^-~]/);function ou(e){return e!==null&&(e<32||e===127)}const Tp=sa(/\d/),UC=sa(/[\dA-Fa-f]/),HC=sa(/[!-/:-@[-`{-~]/);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 ku=sa(new RegExp("\\p{P}|\\p{S}","u")),za=sa(/\s/);function sa(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function Gs(e){const t=[];let i=-1,a=0,s=0;for(;++i55295&&o<57344){const d=e.charCodeAt(i+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);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 ot(e,t,i,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return tt(h)?(e.enter(i),d(h)):t(h)}function d(h){return tt(h)&&o++c))return;const H=t.events.length;let I=H,K,L;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(K){L=t.events[I][1].end;break}K=!0}for(E(a),R=H;Rw;){const B=i[O];t.containerState=B[1],B[0].exit.call(t,e)}i.length=w}function k(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function GC(e,t,i){return ot(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function zs(e){if(e===null||At(e)||za(e))return 1;if(ku(e))return 2}function Tu(e,t,i){const a=[];let s=-1;for(;++s1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[i][1].start};sy(m,-h),sy(y,h),c={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:y},o={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=mi(f,[["enter",e[a][1],t],["exit",e[a][1],t]])),f=mi(f,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),f=mi(f,Tu(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),f=mi(f,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[i][1].end.offset-e[i][1].start.offset?(p=2,f=mi(f,[["enter",e[i][1],t],["exit",e[i][1],t]])):p=0,ii(e,a-1,i-a+3,f),i=a+f.length-p-2;break}}for(i=-1;++i0&&tt(R)?ot(e,k,"linePrefix",o+1)(R):k(R)}function k(R){return R===null||Be(R)?e.check(ly,N,O)(R):(e.enter("codeFlowValue"),w(R))}function w(R){return R===null||Be(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),w)}function O(R){return e.exit("codeFenced"),t(R)}function B(R,H,I){let K=0;return L;function L(j){return R.enter("lineEnding"),R.consume(j),R.exit("lineEnding"),q}function q(j){return R.enter("codeFencedFence"),tt(j)?ot(R,X,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):X(j)}function X(j){return j===d?(R.enter("codeFencedFenceSequence"),G(j)):I(j)}function G(j){return j===d?(K++,R.consume(j),G):K>=c?(R.exit("codeFencedFenceSequence"),tt(j)?ot(R,C,"whitespace")(j):C(j)):I(j)}function C(j){return j===null||Be(j)?(R.exit("codeFencedFence"),H(j)):I(j)}}}function iM(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"),o)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const rh={name:"codeIndented",tokenize:aM},rM={partial:!0,tokenize:sM};function aM(e,t,i){const a=this;return s;function s(f){return e.enter("codeIndented"),ot(e,o,"linePrefix",5)(f)}function o(f){const p=a.events[a.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(f):i(f)}function c(f){return f===null?h(f):Be(f)?e.attempt(rM,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 sM(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):ot(e,o,"linePrefix",5)(c)}function o(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 lM={name:"codeText",previous:cM,resolve:oM,tokenize:uM};function oM(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 o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&$l(this.left,a),o.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),$l(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$l(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 K_(e,t,i,a,s,o,c,d,h){const f=h||Number.POSITIVE_INFINITY;let p=0;return m;function m(E){return E===60?(e.enter(a),e.enter(s),e.enter(o),e.consume(E),e.exit(o),y):E===null||E===32||E===41||ou(E)?i(E):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(E))}function y(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(s),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(d),y(E)):E===null||E===60||Be(E)?i(E):(e.consume(E),E===92?_:x)}function _(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function N(E){return!p&&(E===null||E===41||At(E))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(E)):p999||x===null||x===91||x===93&&!h||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(e.exit(o),e.enter(s),e.consume(x),e.exit(s),e.exit(a),t):Be(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||Be(x)||d++>999?(e.exit("chunkString"),p(x)):(e.consume(x),h||(h=!tt(x)),x===92?y:m)}function y(x){return x===91||x===92||x===93?(e.consume(x),d++,m):m(x)}}function Q_(e,t,i,a,s,o){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(o),f(y))}function f(y){return y===c?(e.exit(o),h(c)):y===null?i(y):Be(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ot(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===c||y===null||Be(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?m:p)}function m(y){return y===c||y===92?(e.consume(y),p):p(y)}}function Zl(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)?ot(e,a,i?"linePrefix":"lineSuffix")(s):t(s)}}const xM={name:"definition",tokenize:vM},yM={partial:!0,tokenize:_M};function vM(e,t,i){const a=this;let s;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return Z_.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return s=Ci(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)?Zl(e,f)(x):f(x)}function f(x){return K_(e,p,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function p(x){return e.attempt(yM,m,m)(x)}function m(x){return tt(x)?ot(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 _M(e,t,i){return a;function a(d){return At(d)?Zl(e,s)(d):i(d)}function s(d){return Q_(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return tt(d)?ot(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Be(d)?t(d):i(d)}}const EM={name:"hardBreakEscape",tokenize:wM};function wM(e,t,i){return a;function a(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Be(o)?(e.exit("hardBreakEscape"),t(o)):i(o)}}const NM={name:"headingAtx",resolve:SM,tokenize:kM};function SM(e,t){let i=e.length-2,a=3,s,o;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},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ii(e,a,i-a+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function kM(e,t,i){let a=0;return s;function s(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&a++<6?(e.consume(p),c):p===null||At(p)?(e.exit("atxHeadingSequence"),d(p)):i(p)}function d(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||Be(p)?(e.exit("atxHeading"),t(p)):tt(p)?ot(e,d,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),d(p))}function f(p){return p===null||p===35||At(p)?(e.exit("atxHeadingText"),d(p)):(e.consume(p),f)}}const TM=["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"],cy=["pre","script","style","textarea"],AM={concrete:!0,name:"htmlFlow",resolveTo:OM,tokenize:RM},CM={partial:!0,tokenize:LM},MM={partial:!0,tokenize:DM};function OM(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 RM(e,t,i){const a=this;let s,o,c,d,h;return f;function f(D){return p(D)}function p(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),m}function m(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),o=!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 F="CDATA[";return D===F.charCodeAt(d++)?(e.consume(D),d===F.length?a.interrupt?t:X:_):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 F=D===47,$=c.toLowerCase();return!F&&!o&&cy.includes($)?(s=1,a.interrupt?t(D):X(D)):TM.includes(c.toLowerCase())?(s=6,F?(e.consume(D),E):a.interrupt?t(D):X(D)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(D):o?k(D):w(D))}return D===45||Tn(D)?(e.consume(D),c+=String.fromCharCode(D),S):i(D)}function E(D){return D===62?(e.consume(D),a.interrupt?t:X):i(D)}function k(D){return tt(D)?(e.consume(D),k):L(D)}function w(D){return D===47?(e.consume(D),L):D===58||D===95||Dn(D)?(e.consume(D),O):tt(D)?(e.consume(D),w):L(D)}function O(D){return D===45||D===46||D===58||D===95||Tn(D)?(e.consume(D),O):B(D)}function B(D){return D===61?(e.consume(D),R):tt(D)?(e.consume(D),B):w(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):I(D)}function H(D){return D===h?(e.consume(D),h=null,K):D===null||Be(D)?i(D):(e.consume(D),H)}function I(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||At(D)?B(D):(e.consume(D),I)}function K(D){return D===47||D===62||tt(D)?w(D):i(D)}function L(D){return D===62?(e.consume(D),q):i(D)}function q(D){return D===null||Be(D)?X(D):tt(D)?(e.consume(D),q):i(D)}function X(D){return D===45&&s===2?(e.consume(D),M):D===60&&s===1?(e.consume(D),U):D===62&&s===4?(e.consume(D),z):D===63&&s===3?(e.consume(D),A):D===93&&s===5?(e.consume(D),Z):Be(D)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(CM,V,G)(D)):D===null||Be(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),X)}function G(D){return e.check(MM,C,V)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),j}function j(D){return D===null||Be(D)?G(D):(e.enter("htmlFlowData"),X(D))}function M(D){return D===45?(e.consume(D),A):X(D)}function U(D){return D===47?(e.consume(D),c="",Y):X(D)}function Y(D){if(D===62){const F=c.toLowerCase();return cy.includes(F)?(e.consume(D),z):X(D)}return Dn(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),Y):X(D)}function Z(D){return D===93?(e.consume(D),A):X(D)}function A(D){return D===62?(e.consume(D),z):D===45&&s===2?(e.consume(D),A):X(D)}function z(D){return D===null||Be(D)?(e.exit("htmlFlowData"),V(D)):(e.consume(D),z)}function V(D){return e.exit("htmlFlow"),t(D)}}function DM(e,t,i){const a=this;return s;function s(c){return Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function LM(e,t,i){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(go,t,i)}}const zM={name:"htmlText",tokenize:jM};function jM(e,t,i){const a=this;let s,o,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),B):A===63?(e.consume(A),w):Dn(A)?(e.consume(A),I):i(A)}function f(A){return A===45?(e.consume(A),p):A===91?(e.consume(A),o=0,_):Dn(A)?(e.consume(A),k):i(A)}function p(A){return A===45?(e.consume(A),x):i(A)}function m(A){return A===null?i(A):A===45?(e.consume(A),y):Be(A)?(c=m,U(A)):(e.consume(A),m)}function y(A){return A===45?(e.consume(A),x):m(A)}function x(A){return A===62?M(A):A===45?y(A):m(A)}function _(A){const z="CDATA[";return A===z.charCodeAt(o++)?(e.consume(A),o===z.length?N:_):i(A)}function N(A){return A===null?i(A):A===93?(e.consume(A),S):Be(A)?(c=N,U(A)):(e.consume(A),N)}function S(A){return A===93?(e.consume(A),E):N(A)}function E(A){return A===62?M(A):A===93?(e.consume(A),E):N(A)}function k(A){return A===null||A===62?M(A):Be(A)?(c=k,U(A)):(e.consume(A),k)}function w(A){return A===null?i(A):A===63?(e.consume(A),O):Be(A)?(c=w,U(A)):(e.consume(A),w)}function O(A){return A===62?M(A):w(A)}function B(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,U(A)):tt(A)?(e.consume(A),H):M(A)}function I(A){return A===45||Tn(A)?(e.consume(A),I):A===47||A===62||At(A)?K(A):i(A)}function K(A){return A===47?(e.consume(A),M):A===58||A===95||Dn(A)?(e.consume(A),L):Be(A)?(c=K,U(A)):tt(A)?(e.consume(A),K):M(A)}function L(A){return A===45||A===46||A===58||A===95||Tn(A)?(e.consume(A),L):q(A)}function q(A){return A===61?(e.consume(A),X):Be(A)?(c=q,U(A)):tt(A)?(e.consume(A),q):K(A)}function X(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(e.consume(A),s=A,G):Be(A)?(c=X,U(A)):tt(A)?(e.consume(A),X):(e.consume(A),C)}function G(A){return A===s?(e.consume(A),s=void 0,j):A===null?i(A):Be(A)?(c=G,U(A)):(e.consume(A),G)}function C(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||At(A)?K(A):(e.consume(A),C)}function j(A){return A===47||A===62||At(A)?K(A):i(A)}function M(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):i(A)}function U(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Y}function Y(A){return tt(A)?ot(e,Z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Z(A)}function Z(A){return e.enter("htmlTextData"),c(A)}}const gm={name:"labelEnd",resolveAll:HM,resolveTo:$M,tokenize:qM},IM={tokenize:PM},BM={tokenize:FM},UM={tokenize:GM};function HM(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)?ot(e,d,"whitespace")(f):d(f))}}const qn={continuation:{tokenize:tO},exit:iO,name:"list",tokenize:eO},WM={partial:!0,tokenize:rO},JM={partial:!0,tokenize:nO};function eO(e,t,i){const a=this,s=a.events[a.events.length-1];let o=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:Tp(x)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(eu,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 Tp(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(go,a.interrupt?i:p,e.attempt(WM,y,m))}function p(x){return a.containerState.initialBlankLine=!0,o++,y(x)}function m(x){return tt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),y):i(x)}function y(x){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function tO(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(go,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ot(e,t,"listItemIndent",a.containerState.size+1)(d)}function o(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(JM,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ot(e,e.attempt(qn,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function nO(e,t,i){const a=this;return ot(e,s,"listItemIndent",a.containerState.size+1);function s(o){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(o):i(o)}}function iO(e){e.exit(this.containerState.type)}function rO(e,t,i){const a=this;return ot(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!tt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):i(o)}}const uy={name:"setextUnderline",resolveTo:aO,tokenize:sO};function aO(e,t){let i=e.length,a,s,o;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),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[a][1],t]),e[a][1].end={...e[o][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function sO(e,t,i){const a=this;let s;return o;function o(f){let p=a.events.length,m;for(;p--;)if(a.events[p][1].type!=="lineEnding"&&a.events[p][1].type!=="linePrefix"&&a.events[p][1].type!=="content"){m=a.events[p][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||m)?(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)?ot(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):i(f)}}const lO={tokenize:oO};function oO(e){const t=this,i=e.attempt(go,a,e.attempt(this.parser.constructs.flowInitial,s,ot(e,e.attempt(this.parser.constructs.flow,s,e.attempt(hM,s)),"linePrefix")));return i;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const cO={resolveAll:J_()},uO=W_("string"),dO=W_("text");function W_(e){return{resolveAll:J_(e==="text"?fO:void 0),tokenize:t};function t(i){const a=this,s=this.parser.constructs[e],o=i.attempt(s,c,d);return c;function c(p){return f(p)?o(p):d(p)}function d(p){if(p===null){i.consume(p);return}return i.enter("data"),i.consume(p),h}function h(p){return f(p)?(i.exit("data"),o(p)):(i.consume(p),h)}function f(p){if(p===null)return!0;const m=s[p];let y=-1;if(m)for(;++y-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function SO(e,t){let i=-1;const a=[];let s;for(;++i0){const on=Oe.tokenStack[Oe.tokenStack.length-1];(on[1]||fy).call(Oe,void 0,on[0])}for(xe.position={start:Jr(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Jr(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function UO(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function HO(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function $O(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=Gs(a.toLowerCase()),o=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=o+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 qO(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 PO(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function nE(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),o=s[0];o&&o.type==="text"?o.value="["+o.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 FO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return nE(e,t);const s={src:Gs(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function GO(e,t){const i={src:Gs(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 VO(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 YO(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return nE(e,t);const s={href:Gs(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function XO(e,t){const i={href:Gs(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 KO(e,t,i){const a=e.all(t),s=i?ZO(i):iE(t),o={},c=[];if(typeof t.checked=="boolean"){const p=a[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d1}function QO(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=um(t.children[1]),h=j_(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function nR(e,t,i){const a=i?i.children:void 0,o=(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 o.push(my(t.slice(s),s>0,!1)),o.join("")}function my(e,t,i){let a=0,s=e.length;if(t){let o=e.codePointAt(a);for(;o===hy||o===py;)a++,o=e.codePointAt(a)}if(i){let o=e.codePointAt(s-1);for(;o===hy||o===py;)s--,o=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function aR(e,t){const i={type:"text",value:rR(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function sR(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const lR={blockquote:jO,break:IO,code:BO,delete:UO,emphasis:HO,footnoteReference:$O,heading:qO,html:PO,imageReference:FO,image:GO,inlineCode:VO,linkReference:YO,link:XO,listItem:KO,list:QO,paragraph:WO,root:JO,strong:eR,table:tR,tableCell:iR,tableRow:nR,text:aR,thematicBreak:sR,toml:Uc,yaml:Uc,definition:Uc,footnoteDefinition:Uc};function Uc(){}const rE=-1,Au=0,Ql=1,cu=2,bm=3,xm=4,ym=5,vm=6,aE=7,sE=8,lE=typeof self=="object"?self:globalThis,gy=(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 lE[e](t)},oR=(e,t)=>{const i=(s,o)=>(e.set(o,s),s),a=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case Au:case rE:return i(c,s);case Ql:{const d=i([],s);for(const h of c)d.push(a(h));return d}case cu:{const d=i({},s);for(const[h,f]of c)d[a(h)]=a(f);return d}case bm:return i(new Date(c),s);case xm:{const{source:d,flags:h}=c;return i(new RegExp(d,h),s)}case ym:{const d=i(new Map,s);for(const[h,f]of c)d.set(a(h),a(f));return d}case vm:{const d=i(new Set,s);for(const h of c)d.add(a(h));return d}case aE:{const{name:d,message:h}=c;return i(typeof lE[d]=="function"?gy(d,h):new Error(h),s)}case sE: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(gy(o,c),s)};return a},by=e=>oR(new Map,e)(0),Ca="",{toString:cR}={},{keys:uR}=Object,ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Au,t];const i=cR.call(e).slice(8,-1);switch(i){case"Array":return[Ql,Ca];case"Object":return[cu,Ca];case"Date":return[bm,Ca];case"RegExp":return[xm,Ca];case"Map":return[ym,Ca];case"Set":return[vm,Ca];case"DataView":return[Ql,i]}return i.includes("Array")?[Ql,i]:e instanceof Error?[aE,e.name||"Error"]:[cu,i]},Hc=([e,t])=>e===Au&&(t==="function"||t==="symbol"),dR=(e,t,i,a)=>{const s=(c,d)=>{const h=a.push(c)-1;return i.set(d,h),h},o=c=>{if(i.has(c))return i.get(c);let[d,h]=ql(c);switch(d){case Au:{let p=c;switch(h){case"bigint":d=sE,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return s([rE],c)}return s([d,p],c)}case Ql:{if(h){let y=c;return h==="DataView"?y=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(y=new Uint8Array(c)),s([h,[...y]],c)}const p=[],m=s([d,p],c);for(const y of c)p.push(o(y));return m}case cu:{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 o(c.toJSON());const p=[],m=s([d,p],c);for(const y of uR(c))(e||!Hc(ql(c[y])))&&p.push([o(y),o(c[y])]);return m}case bm:return s([d,isNaN(c.getTime())?Ca:c.toISOString()],c);case xm:{const{source:p,flags:m}=c;return s([d,{source:p,flags:m}],c)}case ym:{const p=[],m=s([d,p],c);for(const[y,x]of c)(e||!(Hc(ql(y))||Hc(ql(x))))&&p.push([o(y),o(x)]);return m}case vm:{const p=[],m=s([d,p],c);for(const y of c)(e||!Hc(ql(y)))&&p.push(o(y));return m}}const{message:f}=c;return s([d,{name:h,message:f}],c)};return o},xy=(e,{json:t,lossy:i}={})=>{const a=[];return dR(!(t||i),!!t,new Map,a)(e),a},uu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?by(xy(e,t)):structuredClone(e):(e,t)=>by(xy(e,t));function fR(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 hR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||fR,a=e.options.footnoteBackLabel||hR,s=e.options.footnoteLabel||"Footnotes",o=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=p[p.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 p.push(..._);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(f,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...uu(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 Cu=(function(e){if(e==null)return xR;if(typeof e=="function")return Mu(e);if(typeof e=="object")return Array.isArray(e)?mR(e):gR(e);if(typeof e=="string")return bR(e);throw new Error("Expected function, string, or object as test")});function mR(e){const t=[];let i=-1;for(;++i":""))+")"})}return y;function y(){let x=oE,_,N,S;if((!t||o(h,f,p[p.length-1]||void 0))&&(x=ER(i(h,p)),x[0]===Cp))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==_R)for(N=(a?E.children.length:-1)+c,S=p.concat(E);N>-1&&N0&&i.push({type:"text",value:` -`}),i}function yy(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function vy(e,t){const i=NR(e,t),a=i.one(e,void 0),s=pR(i),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` -`},s),o}function CR(e,t){return e&&"run"in e?async function(i,a){const s=vy(i,{file:a,...t});await e.run(s,a)}:function(i,a){return vy(i,{file:a,...e||t})}}function _y(e){if(e)throw e}var sh,Ey;function MR(){if(Ey)return sh;Ey=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]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!m)return!1;var y;for(y in f);return typeof y>"u"||e.call(f,y)},c=function(f,p){i&&p.name==="__proto__"?i(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},d=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(a)return a(f,p).value}else return;return f[p]};return sh=function h(){var f,p,m,y,x,_,N=arguments[0],S=1,E=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 p=f;if(d&&i)throw p;return s(p)}d||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...d){i||(i=!0,t(c,...d))}function o(c){s(null,c)}}const Hi={basename:LR,dirname:zR,extname:jR,join:IR,sep:"/"};function LR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bo(e);let i=0,a=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else a<0&&(o=!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(o){i=s+1;break}}else c<0&&(o=!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 zR(e){if(bo(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 jR(e){bo(e);let t=e.length,i=-1,a=0,s=-1,o=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:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===a+1?"":e.slice(s,i)}function IR(...e){let t=-1,i;for(;++t0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function UR(e,t){let i="",a=0,s=-1,o=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,o=0;continue}}else if(i.length>0){i="",a=0,s=c,o=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,o=0}else d===46&&o>-1?o++:o=-1}return i}function bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HR={cwd:$R};function $R(){return"/"}function Rp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qR(e){if(typeof e=="string")e=new URL(e);else if(!Rp(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 PR(e)}function PR(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,..._]=p;const N=a[y][1];Op(N)&&Op(x)&&(x=lh(!0,N,x)),a[y]=[f,x,..._]}}}}const YR=new Em().freeze();function dh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hh(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 Ny(e){if(!Op(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sy(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $c(e){return XR(e)?e:new uE(e)}function XR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KR(e){return typeof e=="string"||ZR(e)}function ZR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ky=[],Ty={allowDangerousHtml:!0},WR=/^(https?|ircs?|mailto|xmpp)$/i,JR=[{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 wm(e){const t=e5(e),i=t5(e);return n5(t.runSync(t.parse(i),i),e)}function e5(e){const t=e.rehypePlugins||ky,i=e.remarkPlugins||ky,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ty}:Ty;return YR().use(zO).use(i).use(CR,a).use(t)}function t5(e){const t=e.children||"",i=new uE;return typeof t=="string"&&(i.value=t),i}function n5(e,t){const i=t.allowedElements,a=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||i5;for(const p of JR)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+QR+p.id,void 0);return _m(e,f),xC(e,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function f(p,m,y){if(p.type==="raw"&&y&&typeof m=="number")return c?y.children.splice(m,1):y.children[m]={type:"text",value:p.value},m;if(p.type==="element"){let x;for(x in ih)if(Object.hasOwn(ih,x)&&Object.hasOwn(p.properties,x)){const _=p.properties[x],N=ih[x];(N===null||N.includes(p.tagName))&&(p.properties[x]=h(String(_||""),x,p))}}if(p.type==="element"){let x=i?!i.includes(p.tagName):o?o.includes(p.tagName):!1;if(!x&&a&&typeof m=="number"&&(x=!a(p,m,y)),x&&y&&typeof m=="number")return d&&p.children?y.children.splice(m,1,...p.children):y.children.splice(m,1),m}}}function i5(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||WR.test(e.slice(0,t))?e:""}function Ay(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 r5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function a5(e,t,i){const s=Cu((i||{}).ignore||[]),o=s5(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+w[0].length,E=!0),!y.global)break;w=y.exec(f.value)}return E?(_?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")");const s=Ay(e,"(");let o=Ay(e,")");for(;a!==-1&&s>o;)e+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),o++;return[e,i]}function dE(e,t){const i=e.input.charCodeAt(e.index-1);return(e.index===0||za(i)||ku(i))&&(!t||i!==47)}fE.peek=C5;function _5(){this.buffer()}function E5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w5(){this.buffer()}function N5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function S5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=t}function k5(e){this.exit(e)}function T5(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),i.label=t}function A5(e){this.exit(e)}function C5(){return"["}function fE(e,t,i,a){const s=i.createTracker(a);let o=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return o+=s.move(i.safe(i.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function M5(){return{enter:{gfmFootnoteCallString:_5,gfmFootnoteCall:E5,gfmFootnoteDefinitionLabelString:w5,gfmFootnoteDefinition:N5},exit:{gfmFootnoteCallString:S5,gfmFootnoteCall:k5,gfmFootnoteDefinitionLabelString:T5,gfmFootnoteDefinition:A5}}}function O5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:i,footnoteReference:fE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,s,o,c){const d=o.createTracker(c);let h=d.move("[^");const f=o.enter("footnoteDefinition"),p=o.enter("label");return h+=d.move(o.safe(o.associationId(a),{before:h,after:"]"})),p(),h+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),h+=d.move((t?` -`:" ")+o.indentLines(o.containerFlow(a,d.current()),t?hE:R5))),f(),h}}function R5(e,t,i){return t===0?e:hE(e,t,i)}function hE(e,t,i){return(i?"":" ")+e}const D5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];pE.peek=B5;function L5(){return{canContainEols:["delete"],enter:{strikethrough:j5},exit:{strikethrough:I5}}}function z5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:D5}],handlers:{delete:pE}}}function j5(e){this.enter({type:"delete",children:[]},e)}function I5(e){this.exit(e)}function pE(e,t,i,a){const s=i.createTracker(a),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function B5(){return"~"}function U5(e){return e.length}function H5(e,t){const i=t||{},a=(i.align||[]).concat(),s=i.stringLength||U5,o=[],c=[],d=[],h=[];let f=0,p=-1;for(;++pf&&(f=e[p].length);++Eh[E])&&(h[E]=w)}N.push(k)}c[p]=N,d[p]=S}let m=-1;if(typeof a=="object"&&"length"in a)for(;++mh[m]&&(h[m]=k),x[m]=k),y[m]=w}c.splice(1,0,y),d.splice(1,0,x),p=-1;const _=[];for(;++p "),o.shift(2);const c=i.indentLines(i.containerFlow(e,o.current()),P5);return s(),c}function P5(e,t,i){return">"+(i?"":" ")+e}function F5(e,t){return My(e,t.inConstruct,!0)&&!My(e,t.notInConstruct,!1)}function My(e,t,i){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return i;let a=-1;for(;++ac&&(c=o):o=1,s=a+t.length,a=i.indexOf(t,s);return c}function V5(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 Y5(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 X5(e,t,i,a){const s=Y5(i),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(V5(e,i)){const m=i.enter("codeIndented"),y=i.indentLines(o,K5);return m(),y}const d=i.createTracker(a),h=s.repeat(Math.max(G5(o,s)+1,3)),f=i.enter("codeFenced");let p=d.move(h);if(e.lang){const m=i.enter(`codeFencedLang${c}`);p+=d.move(i.safe(e.lang,{before:p,after:" ",encode:["`"],...d.current()})),m()}if(e.lang&&e.meta){const m=i.enter(`codeFencedMeta${c}`);p+=d.move(" "),p+=d.move(i.safe(e.meta,{before:p,after:` -`,encode:["`"],...d.current()})),m()}return p+=d.move(` -`),o&&(p+=d.move(o+` -`)),p+=d.move(h),f(),p}function K5(e,t,i){return(i?"":" ")+e}function Nm(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 Z5(e,t,i,a){const s=Nm(i),o=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${o}`),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 Q5(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 no(e){return"&#x"+e.toString(16).toUpperCase()+";"}function du(e,t,i){const a=zs(e),s=zs(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}}mE.peek=W5;function mE(e,t,i,a){const s=Q5(i),o=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),p=du(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=no(f)+h.slice(1));const m=h.charCodeAt(h.length-1),y=du(a.after.charCodeAt(0),m,s);y.inside&&(h=h.slice(0,-1)+no(m));const x=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+h+x}function W5(e,t,i){return i.options.emphasis||"*"}function J5(e,t){let i=!1;return _m(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Cp}),!!((!e.depth||e.depth<3)&&pm(e)&&(t.options.setext||i))}function e3(e,t,i,a){const s=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(a);if(J5(e,i)){const p=i.enter("headingSetext"),m=i.enter("phrasing"),y=i.containerPhrasing(e,{...o.current(),before:` -`,after:` -`});return m(),p(),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");o.move(c+" ");let f=i.containerPhrasing(e,{before:"# ",after:` -`,...o.current()});return/^[\t ]/.test(f)&&(f=no(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,i.options.closeAtx&&(f+=" "+c),h(),d(),f}gE.peek=t3;function gE(e){return e.value||""}function t3(){return"<"}bE.peek=n3;function bE(e,t,i,a){const s=Nm(i),o=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${o}`),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 n3(){return"!"}xE.peek=i3;function xE(e,t,i,a){const s=e.referenceType,o=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 p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=p,o(),s==="full"||!f||f!==m?h+=d.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function i3(){return"!"}yE.peek=r3;function yE(e,t,i){let a=e.value||"",s="`",o=-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+" ");++o\u007F]/.test(e.url))}_E.peek=a3;function _E(e,t,i,a){const s=Nm(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(a);let d,h;if(vE(e,i)){const p=i.stack;i.stack=[],d=i.enter("autolink");let m=c.move("<");return m+=c.move(i.containerPhrasing(e,{before:m,after:">",...c.current()})),m+=c.move(">"),d(),i.stack=p,m}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${o}`),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 a3(e,t,i){return vE(e,i)?"<":"["}EE.peek=s3;function EE(e,t,i,a){const s=e.referenceType,o=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 p=i.stack;i.stack=[],c=i.enter("reference");const m=i.safe(i.associationId(e),{before:h,after:"]",...d.current()});return c(),i.stack=p,o(),s==="full"||!f||f!==m?h+=d.move(m+"]"):s==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function s3(){return"["}function Sm(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 l3(e){const t=Sm(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 o3(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 wE(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 c3(e,t,i,a){const s=i.enter("list"),o=i.bulletCurrent;let c=e.ordered?o3(i):Sm(i);const d=e.ordered?c==="."?")":".":l3(i);let h=t&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.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),wE(i)===c&&p){let m=-1;for(;++m-1?t.start:1)+(i.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.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(o+" ".repeat(c-o.length)),d.shift(c);const h=i.enter("listItem"),f=i.indentLines(i.containerFlow(e,d.current()),p);return h(),f;function p(m,y,x){return y?(x?"":" ".repeat(c))+m:(x?o:o+" ".repeat(c-o.length))+m}}function f3(e,t,i,a){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(e,a);return o(),s(),c}const h3=Cu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function p3(e,t,i,a){return(e.children.some(function(c){return h3(c)})?i.containerPhrasing:i.containerFlow).call(i,e,a)}function m3(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}NE.peek=g3;function NE(e,t,i,a){const s=m3(i),o=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),p=du(a.before.charCodeAt(a.before.length-1),f,s);p.inside&&(h=no(f)+h.slice(1));const m=h.charCodeAt(h.length-1),y=du(a.after.charCodeAt(0),m,s);y.inside&&(h=h.slice(0,-1)+no(m));const x=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},d+h+x}function g3(e,t,i){return i.options.strong||"*"}function b3(e,t,i,a){return i.safe(e.value,a)}function x3(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 y3(e,t,i){const a=(wE(i)+(i.options.ruleSpaces?" ":"")).repeat(x3(i));return i.options.ruleSpaces?a.slice(0,-1):a}const SE={blockquote:q5,break:Oy,code:X5,definition:Z5,emphasis:mE,hardBreak:Oy,heading:e3,html:gE,image:bE,imageReference:xE,inlineCode:yE,link:_E,linkReference:EE,list:c3,listItem:d3,paragraph:f3,root:p3,strong:NE,text:b3,thematicBreak:y3};function v3(){return{enter:{table:_3,tableData:Ry,tableHeader:Ry,tableRow:w3},exit:{codeText:N3,table:E3,tableData:bh,tableHeader:bh,tableRow:bh}}}function _3(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 E3(e){this.exit(e),this.data.inTable=void 0}function w3(e){this.enter({type:"tableRow",children:[]},e)}function bh(e){this.exit(e)}function Ry(e){this.enter({type:"tableCell",children:[]},e)}function N3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S3));const i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function S3(e,t){return t==="|"?t:e}function k3(e){const t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,o=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(p(x,N,S),x.align)}function d(x,_,N,S){const E=m(x,N,S),k=f([E]);return k.slice(0,k.indexOf(` -`))}function h(x,_,N,S){const E=N.enter("tableCell"),k=N.enter("phrasing"),w=N.containerPhrasing(x,{...S,before:o,after:o});return k(),E(),w}function f(x,_){return H5(x,{align:_,alignDelimiters:a,padding:i,stringLength:s})}function p(x,_,N){const S=x.children;let E=-1;const k=[],w=_.enter("table");for(;++E0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const F3={tokenize:W3,partial:!0};function G3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:K3,continuation:{tokenize:Z3},exit:Q3}},text:{91:{name:"gfmFootnoteCall",tokenize:X3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:V3,resolveTo:Y3}}}}function V3(e,t,i){const a=this;let s=a.events.length;const o=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=Ci(a.sliceSerialize({start:c.end,end:a.now()}));return f.codePointAt(0)!==94||!o.includes(f.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function Y3(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 o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...d),e}function X3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?i(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(o>999||m===93&&!c||m===null||m===91||At(m))return i(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(Ci(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(m)}return At(m)||(c=!0),o++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function K3(e,t,i){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,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",p):i(_)}function p(_){if(c>999||_===93&&!d||_===null||_===91||At(_))return i(_);if(_===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return o=Ci(a.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return At(_)||(d=!0),c++,e.consume(_),_===92?m:p}function m(_){return _===91||_===92||_===93?(e.consume(_),c++,p):p(_)}function y(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),s.includes(o)||s.push(o),ot(e,x,"gfmFootnoteDefinitionWhitespace")):i(_)}function x(_){return t(_)}}function Z3(e,t,i){return e.check(go,t,e.attempt(F3,t,i))}function Q3(e){e.exit("gfmFootnoteDefinition")}function W3(e,t,i){const a=this;return ot(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):i(o)}}function J3(e){let i=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,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(_),m++,x);if(m<2&&!i)return h(_);const S=c.exit("strikethroughSequenceTemporary"),E=zs(_);return S._open=!E||E===2&&!!N,S._close=!N||N===2&&!!E,d(_)}}}class eD{constructor(){this.map=[]}add(t,i,a){tD(this,t,i,a)}consume(t){if(this.map.sort(function(o,c){return o[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 o of s)t.push(o);s=a.pop()}this.map.length=0}}function tD(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 X=q>-1?a.events[q][1].type:null,G=X==="tableHead"||X==="tableRow"?R:h;return G===R&&a.parser.lazy[a.now().line]?i(L):G(L)}function h(L){return e.enter("tableHead"),e.enter("tableRow"),f(L)}function f(L){return L===124||(c=!0,o+=1),p(L)}function p(L){return L===null?i(L):Be(L)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),x):i(L):tt(L)?ot(e,p,"whitespace")(L):(o+=1,c&&(c=!1,s+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),m(L)))}function m(L){return L===null||L===124||At(L)?(e.exit("data"),p(L)):(e.consume(L),L===92?y:m)}function y(L){return L===92||L===124?(e.consume(L),m):m(L)}function x(L){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(L):(e.enter("tableDelimiterRow"),c=!1,tt(L)?ot(e,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):_(L))}function _(L){return L===45||L===58?S(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),N):B(L)}function N(L){return tt(L)?ot(e,S,"whitespace")(L):S(L)}function S(L){return L===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):L===45?(o+=1,E(L)):L===null||Be(L)?O(L):B(L)}function E(L){return L===45?(e.enter("tableDelimiterFiller"),k(L)):B(L)}function k(L){return L===45?(e.consume(L),k):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(L))}function w(L){return tt(L)?ot(e,O,"whitespace")(L):O(L)}function O(L){return L===124?_(L):L===null||Be(L)?!c||s!==o?B(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):B(L)}function B(L){return i(L)}function R(L){return e.enter("tableRow"),H(L)}function H(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),H):L===null||Be(L)?(e.exit("tableRow"),t(L)):tt(L)?ot(e,H,"whitespace")(L):(e.enter("data"),I(L))}function I(L){return L===null||L===124||At(L)?(e.exit("data"),H(L)):(e.consume(L),L===92?K:I)}function K(L){return L===92||L===124?(e.consume(L),I):I(L)}}function aD(e,t){let i=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,h=0,f,p,m;const y=new eD;for(;++ii[2]+1){const _=i[2]+1,N=i[3]-i[2]-1;e.add(_,N,[])}}e.add(i[3]+1,0,[["exit",m,t]])}return s!==void 0&&(o.end=Object.assign({},ks(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Ly(e,t,i,a,s){const o=[],c=ks(t.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),a.end=Object.assign({},c),o.push(["exit",a,t]),e.add(i+1,0,o)}function ks(e,t){const i=e[t],a=i[0]==="enter"?"start":"end";return i[1][a]}const sD={name:"tasklistCheck",tokenize:oD};function lD(){return{text:{91:sD}}}function oD(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"),o)}function o(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:cD},t,i)(h):i(h)}}function cD(e,t,i){return ot(e,a,"whitespace");function a(s){return s===null?i(s):t(s)}}function uD(e){return P_([z3(),G3(),J3(e),iD(),lD()])}const dD={};function Tm(e){const t=this,i=e||dD,a=t.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(uD(i)),o.push(O3()),c.push(R3(i))}var xh,zy;function fD(){if(zy)return xh;zy=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(pe=>{const we=ne[pe],Pe=typeof we;(Pe==="object"||Pe==="function")&&!Object.isFrozen(we)&&e(we)}),ne}class t{constructor(pe){pe.data===void 0&&(pe.data={}),this.data=pe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ne){return ne.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function a(ne,...pe){const we=Object.create(null);for(const Pe in ne)we[Pe]=ne[Pe];return pe.forEach(function(Pe){for(const St in Pe)we[St]=Pe[St]}),we}const s="",o=ne=>!!ne.scope,c=(ne,{prefix:pe})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const we=ne.split(".");return[`${pe}${we.shift()}`,...we.map((Pe,St)=>`${Pe}${"_".repeat(St+1)}`)].join(" ")}return`${pe}${ne}`};class d{constructor(pe,we){this.buffer="",this.classPrefix=we.classPrefix,pe.walk(this)}addText(pe){this.buffer+=i(pe)}openNode(pe){if(!o(pe))return;const we=c(pe.scope,{prefix:this.classPrefix});this.span(we)}closeNode(pe){o(pe)&&(this.buffer+=s)}value(){return this.buffer}span(pe){this.buffer+=``}}const h=(ne={})=>{const pe={children:[]};return Object.assign(pe,ne),pe};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(pe){this.top.children.push(pe)}openNode(pe){const we=h({scope:pe});this.add(we),this.stack.push(we)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(pe){return this.constructor._walk(pe,this.rootNode)}static _walk(pe,we){return typeof we=="string"?pe.addText(we):we.children&&(pe.openNode(we),we.children.forEach(Pe=>this._walk(pe,Pe)),pe.closeNode(we)),pe}static _collapse(pe){typeof pe!="string"&&pe.children&&(pe.children.every(we=>typeof we=="string")?pe.children=[pe.children.join("")]:pe.children.forEach(we=>{f._collapse(we)}))}}class p extends f{constructor(pe){super(),this.options=pe}addText(pe){pe!==""&&this.add(pe)}startScope(pe){this.openNode(pe)}endScope(){this.closeNode()}__addSublanguage(pe,we){const Pe=pe.root;we&&(Pe.scope=`language:${we}`),this.add(Pe)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(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(we=>m(we)).join("")}function S(ne){const pe=ne[ne.length-1];return typeof pe=="object"&&pe.constructor===Object?(ne.splice(ne.length-1,1),pe):{}}function E(...ne){return"("+(S(ne).capture?"":"?:")+ne.map(Pe=>m(Pe)).join("|")+")"}function k(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function w(ne,pe){const we=ne&&ne.exec(pe);return we&&we.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(ne,{joinWith:pe}){let we=0;return ne.map(Pe=>{we+=1;const St=we;let gt=m(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]==="("&&we++)}return Ce}).map(Pe=>`(${Pe})`).join(pe)}const R=/\b\B/,H="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(ne={})=>{const pe=/^#![ ]*\//;return ne.binary&&(ne.begin=N(pe,/.*\b/,ne.binary,/\b.*/)),a({scope:"meta",begin:pe,end:/$/,relevance:0,"on:begin":(we,Pe)=>{we.index!==0&&Pe.ignoreMatch()}},ne)},C={begin:"\\\\[\\s\\S]",relevance:0},j={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},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,pe,we={}){const Pe=a({scope:"comment",begin:ne,end:pe,contains:[]},we);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=E("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},Z=Y("//","$"),A=Y("/\\*","\\*/"),z=Y("#","$"),V={scope:"number",begin:K,relevance:0},D={scope:"number",begin:L,relevance:0},F={scope:"number",begin:q,relevance:0},$={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]},Q={scope:"title",begin:H,relevance:0},J={scope:"title",begin:I,relevance:0},W={begin:"\\.\\s*"+I,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:j,BACKSLASH_ESCAPE:C,BINARY_NUMBER_MODE:F,BINARY_NUMBER_RE:q,COMMENT:Y,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:Z,C_NUMBER_MODE:D,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(pe,we)=>{we.data._beginMatch=pe[1]},"on:end":(pe,we)=>{we.data._beginMatch!==pe[1]&&we.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:H,MATCH_NOTHING_RE:R,METHOD_GUARD:W,NUMBER_MODE:V,NUMBER_RE:K,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:M,REGEXP_MODE:$,RE_STARTERS_RE:X,SHEBANG:G,TITLE_MODE:Q,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:J});function fe(ne,pe){ne.input[ne.index-1]==="."&&pe.ignoreMatch()}function be(ne,pe){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function Ee(ne,pe){pe&&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,pe){Array.isArray(ne.illegal)&&(ne.illegal=E(...ne.illegal))}function Le(ne,pe){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,pe){ne.relevance===void 0&&(ne.relevance=1)}const st=(ne,pe)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const we=Object.assign({},ne);Object.keys(ne).forEach(Pe=>{delete ne[Pe]}),ne.keywords=we.keywords,ne.begin=N(we.beforeMatch,y(we.begin)),ne.starts={relevance:0,contains:[Object.assign(we,{endsParent:!0})]},ne.relevance=0,delete we.beforeMatch},Rt=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Pt(ne,pe,we=Yt){const Pe=Object.create(null);return typeof ne=="string"?St(we,ne.split(" ")):Array.isArray(ne)?St(we,ne):Object.keys(ne).forEach(function(gt){Object.assign(Pe,Pt(ne[gt],pe,gt))}),Pe;function St(gt,Ce){pe&&(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,pe){return pe?Number(pe):Vn(ne)?0:1}function Vn(ne){return Rt.includes(ne.toLowerCase())}const En={},ct=ne=>{console.error(ne)},It=(ne,...pe)=>{console.log(`WARN: ${ne}`,...pe)},ue=(ne,pe)=>{En[`${ne}/${pe}`]||(console.log(`Deprecated as of ${ne}. ${pe}`),En[`${ne}/${pe}`]=!0)},xe=new Error;function Oe(ne,pe,{key:we}){let Pe=0;const St=ne[we],gt={},Ce={};for(let Se=1;Se<=pe.length;Se++)Ce[Se+Pe]=St[Se],gt[Se+Pe]=!0,Pe+=k(pe[Se-1]);ne[we]=Ce,ne[we]._emit=gt,ne[we]._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=B(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=B(ne.end,{joinWith:""})}}function on(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function wn(ne){on(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 pe(Ce,Se){return new RegExp(m(Ce),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(Se?"g":""))}class we{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=pe(B(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((gi,vr)=>vr>0&&gi!==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 we;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,wn,st].forEach(Mt=>Mt(Ce,Se)),ne.compilerExtensions.forEach(Mt=>Mt(Ce,Se)),Ce.__beforeBegin=null,[Ee,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=pe(Bt,!0),Se&&(Ce.begin||(Ce.begin=/\B|\b/),Ue.beginRe=pe(Ue.begin),!Ce.end&&!Ce.endsWithParent&&(Ce.end=/\B|\b/),Ce.end&&(Ue.endRe=pe(Ue.end)),Ue.terminatorEnd=m(Ue.end)||"",Ce.endsWithParent&&Se.terminatorEnd&&(Ue.terminatorEnd+=(Ce.end?"|":"")+Se.terminatorEnd)),Ce.illegal&&(Ue.illegalRe=pe(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(pe){return a(ne,{variants:null},pe)})),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(pe,we){super(pe),this.name="HTMLInjectionError",this.html=we}}const cn=i,yr=a,nt=Symbol("nomatch"),Yn=7,Cn=function(ne){const pe=Object.create(null),we=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:p};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 mn={code:ft,language:Ht};Ki("before:highlight",mn);const Mn=mn.result?mn.result:gi(mn.language,mn.code,Qe);return Mn.code=mn.code,Ki("after:highlight",Mn),Mn}function gi(ye,ze,Qe,ft){const Ht=Object.create(null);function mn(_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=mn(qe,it);if($t){const[si,Xs]=$t;if(Jt.addText(Ye),Ye="",Ht[it]=(Ht[it]||0)+1,Ht[it]<=Yn&&(Tr+=Xs),si.startsWith("_"))Ye+=Re[0];else{const ko=un.classNameAliases[si]||si;On(Re[0],ko)}}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(!pe[qe.subLanguage]){Jt.addText(bt);return}_e=gi(qe.subLanguage,bt,!0,So[qe.subLanguage]),So[qe.subLanguage]=_e._top}else _e=_r(bt,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Tr+=_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 Ga(_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 Nr(_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&&(Ga(_e.beginScope,Re),bt="")),qe=Object.create(_e,{parent:{value:qe}}),qe}function Li(_e,Re,Ye){let it=w(_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 Li(_e.parent,Re,Ye)}function Sr(_e){return qe.matcher.regexIndex===0?(bt+=_e[0],1):(Ar=!0,0)}function Va(_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 Sr(Re);return Ye.skip?bt+=Re:(Ye.excludeBegin&&(bt+=Re),_t(),!Ye.returnBegin&&!Ye.excludeBegin&&(bt=Re)),Nr(Ye,_e),Ye.returnBegin?0:Re.length}function Sn(_e){const Re=_e[0],Ye=ze.substring(_e.index),it=Li(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(),Ga(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&&(Tr+=qe.relevance),qe=qe.parent;while(qe!==it.parent);return it.starts&&Nr(it.starts,_e),$t.returnEnd?0:Re.length}function ca(){const _e=[];for(let Re=qe;Re!==un;Re=Re.parent)Re.scope&&_e.unshift(Re.scope);_e.forEach(Re=>Jt.openNode(Re))}let _i={};function kr(_e,Re){const Ye=Re&&Re[0];if(bt+=_e,Ye==null)return _t(),0;if(_i.type==="begin"&&Re.type==="end"&&_i.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=_i.rule,it}return 1}if(_i=Re,Re.type==="begin")return Va(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(Ys>1e5&&Ys>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 ua=Kt(un);let Ya="",qe=ft||ua;const So={},Jt=new Se.__emitter(Se);ca();let bt="",Tr=0,Zi=0,Ys=0,Ar=!1;try{if(un.__emitTokens)un.__emitTokens(ze,Jt);else{for(qe.matcher.considerAll();;){Ys++,Ar?Ar=!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=kr(Re,_e);Zi=_e.index+Ye}kr(ze.substring(Zi))}return Jt.finalize(),Ya=Jt.toHTML(),{language:ye,value:Ya,relevance:Tr,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:Ya},_emitter:Jt};if(St)return{language:ye,value:cn(ze),illegal:!1,relevance:0,errorRaised:_e,_emitter:Jt,_top:qe};throw _e}}function vr(ye){const ze={value:cn(ye),illegal:!1,relevance:0,_top:Ce,_emitter:new Se.__emitter(Se)};return ze._emitter.addText(ye),ze}function _r(ye,ze){ze=ze||Se.languages||Object.keys(pe);const Qe=vr(ye),ft=ze.filter(bn).filter(yi).map(_t=>gi(_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}),[mn,Mn]=Ht,Nn=mn;return Nn.secondBest=Mn,Nn}function ai(ye,ze,Qe){const ft=ze&&we[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}):_r(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 pn(ye){Se=yr(Se,ye)}const bi=()=>{wr(),ue("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Er(){wr(),ue("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let la=!1;function wr(){function ye(){wr()}if(document.readyState==="loading"){la||window.addEventListener("DOMContentLoaded",ye,!1),la=!0;return}document.querySelectorAll(Se.cssSelector).forEach(Ut)}function Pa(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),pe[ye]=Qe,Qe.rawDefinition=ze.bind(null,ne),Qe.aliases&&xi(Qe.aliases,{languageName:ye})}function Xi(ye){delete pe[ye];for(const ze of Object.keys(we))we[ze]===ye&&delete we[ze]}function oa(){return Object.keys(pe)}function bn(ye){return ye=(ye||"").toLowerCase(),pe[ye]||pe[we[ye]]}function xi(ye,{languageName:ze}){typeof ye=="string"&&(ye=[ye]),ye.forEach(Qe=>{we[Qe.toLowerCase()]=ze})}function yi(ye){const ze=bn(ye);return ze&&!ze.disableAutodetect}function Di(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){Di(ye),Pe.push(ye)}function Fa(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 vi(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:_r,highlightAll:wr,highlightElement:Ut,highlightBlock:vi,configure:pn,initHighlighting:bi,initHighlightingOnLoad:Er,registerLanguage:Pa,unregisterLanguage:Xi,listLanguages:oa,getLanguage:bn,registerAliases:xi,autoDetection:yi,inherit:yr,addPlugin:Ft,removePlugin:Fa}),ne.debugMode=function(){St=!1},ne.safeMode=function(){St=!0},ne.versionString=ut,ne.regex={concat:N,lookahead:y,either:E,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({}),xh=hn,hn.HighlightJS=hn,hn.default=hn,xh}var yh,jy;function hD(){if(jy)return yh;jy=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,o={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"}),p={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},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[p],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:p}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return yh=e,yh}var vh,Iy;function pD(){if(Iy)return vh;Iy=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 o={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,o]};o.contains.push(h);const f={match:/\\"/},p={className:"string",begin:/'/,end:/'/},m={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"],E=["true","false"],k={match:/(\/[a-z._-]+)+/},w=["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"],B=["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:E,built_in:[...w,...O,"set","shopt",...B,...R]},contains:[_,t.SHEBANG(),N,y,c,d,k,h,f,p,m,a]}}return vh=e,vh}var _h,By;function mD(){if(By)return _h;By=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={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})"/})]},m={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+t.IDENT_RE+"\\s*\\(",E={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,m,p],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:k.concat([{begin:/\(/,end:/\)/,keywords:E,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:E,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:y,strings:p,keywords:E}}}return _h=e,_h}var Eh,Uy;function gD(){if(Uy)return Eh;Uy=1;function e(t){const i=t.regex,a=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",d="(?!struct)("+s+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={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})"/})]},m={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(p,{className:"string"}),{className:"string",begin:/<.*?>/},a,t.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},_=i.optional(o)+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"],E=["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"],B={type:S,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},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,m,p],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:H.concat([{begin:/\(/,end:/\)/,keywords:B,contains:H.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:B,relevance:0},{begin:_,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[a,t.C_BLOCK_COMMENT_MODE,p,m,h,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",a,t.C_BLOCK_COMMENT_MODE,p,m,h]}]},h,a,t.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"",keywords:B,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Eh=e,Eh}var wh,Hy;function bD(){if(Hy)return wh;Hy=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"],o=["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:o.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},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},m={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=t.inherit(m,{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]},E=t.inherit(S,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});x.contains=[S,N,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],_.contains=[E,N,y,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const k={variants:[p,S,N,m,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},w={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},O=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={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,w,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,w,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,w],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]},B]}}return wh=e,wh}var Nh,$y;function xD(){if($y)return Nh;$y=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(),o=["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 p=f.regex,m=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:[m.BLOCK_COMMENT,y,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+N,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+o.join("|")+")"},{begin:":(:)?("+c.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.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}]},m.FUNCTION_DISPATCH]},{begin:p.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,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b"}]}}return Nh=h,Nh}var Sh,qy;function yD(){if(qy)return Sh;qy=1;function e(t){const i=t.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},o={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}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=t.inherit(p,{contains:[]}),x=t.inherit(m,{contains:[]});p.contains.push(x),m.contains.push(y);let _=[a,f];return[p,m,y,x].forEach(k=>{k.contains=k.contains.concat(_)}),_=_.concat(p,m),{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,p,m,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},o,s,f,d,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Sh=e,Sh}var kh,Py;function vD(){if(Py)return kh;Py=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 kh=e,kh}var Th,Fy;function _D(){if(Fy)return Th;Fy=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]+/),o=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:">"},p=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],m={className:"subst",begin:/#\{/,end:/\}/,keywords:d},y={className:"string",contains:[t.BACKSLASH_ESCAPE,m],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,m]})]}]},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+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:d},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:d},{relevance:0,match:[o,/\.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,m],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,p),relevance:0}].concat(f,p);m.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 p.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:d,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(q).concat(p).concat(H)}}return Th=e,Th}var Ah,Gy;function ED(){if(Gy)return Ah;Gy=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 o(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 Oh=o,Oh}var Rh,Ky;function kD(){if(Ky)return Rh;Ky=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"],o=["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(o,a,s);function h(f){const p=f.regex,m=(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,ce=J.input[ee];if(ce==="<"||ce===","){W.ignoreMatch();return}ce===">"&&(m(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},E="[0-9](_?[0-9])*",k=`\\.(${E})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",O={className:"number",variants:[{begin:`(\\b(${w})((${k})|\\.)?|(${k}))[eE][+-]?(${E})\\b`},{begin:`\\b(${w})\\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},B={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},R={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,B],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,B]},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]},X=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,I,K,{match:/\$\d+/},O];B.contains=X.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(X)});const G=[].concat(q,B.contains),C=G.concat([{begin:/(\s*)\(/,end:/\)/,keywords:S,contains:["self"].concat(G)}]),j={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:C},M={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"}}]},U={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]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[j],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(J){return p.concat("(?!",J.join("|"),")")}const V={match:p.concat(/\b/,z([...o,"super","import"].map(J=>`${J}\\s*\\(`)),y,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},D={begin:p.concat(/\./,p.lookahead(p.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},j]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[j]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,R,H,I,K,q,{match:/\$\d+/},O,U,{scope:"attr",match:y+p.lookahead(":"),relevance:0},Q,{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:$,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"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[j,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:[j]},V,A,M,F,{match:/\$[(.]/}]}}return Rh=h,Rh}var Dh,Zy;function TD(){if(Zy)return Dh;Zy=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"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[i,a,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Dh=e,Dh}var Lh,Qy;function AD(){if(Qy)return Lh;Qy=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(o){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:o.UNDERSCORE_IDENT_RE+"@"},f={className:"subst",begin:/\$\{/,end:/\}/,contains:[o.C_NUMBER_MODE]},p={className:"variable",begin:"\\$"+o.UNDERSCORE_IDENT_RE},m={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[p,f]},{begin:"'",end:"'",illegal:/\n/,contains:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[o.BACKSLASH_ESCAPE,p,f]}]};f.contains.push(m);const y={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+o.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+o.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[o.inherit(m,{className:"string"}),"self"]}]},_=a,N=o.COMMENT("/\\*","\\*/",{contains:[o.C_BLOCK_COMMENT_MODE]}),S={variants:[{className:"type",begin:o.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=S;return E.variants[1].contains=[S],S.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:c,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),o.C_LINE_COMMENT_MODE,N,d,h,y,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:c,relevance:5,contains:[{begin:o.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[o.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,o.C_LINE_COMMENT_MODE,N],relevance:0},o.C_LINE_COMMENT_MODE,N,y,x,m,o.C_NUMBER_MODE]},N]},{begin:[/class|interface|trait/,/\s+/,o.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},o.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},y,x]},m,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},_]}}return Lh=s,Lh}var zh,Wy;function CD(){if(Wy)return zh;Wy=1;const e=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.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:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.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(),o=["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=o.concat(c).sort().reverse();function f(p){const m=e(p),y=h,x="and or not only",_="[\\w-]+",N="("+_+"|@\\{"+_+"\\})",S=[],E=[],k=function(G){return{className:"string",begin:"~?"+G+".*?"+G}},w=function(G,C,j){return{className:G,begin:C,relevance:j}},O={$pattern:/[a-z-]+/,keyword:x,attribute:s.join(" ")},B={begin:"\\(",end:"\\)",contains:E,keywords:O,relevance:0};E.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,k("'"),k('"'),m.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},m.HEXCOLOR,B,w("variable","@@?"+_,10),w("variable","@\\{"+_+"\\}"),w("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},m.IMPORTANT,{beginKeywords:"and not"},m.FUNCTION_DISPATCH);const R=E.concat({begin:/\{/,end:/\}/,contains:S}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},I={begin:N+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+d.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},K={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:E,relevance:0}},L={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:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,H,w("keyword","all\\b"),w("variable","@\\{"+_+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},m.CSS_NUMBER_MODE,w("selector-tag",N,0),w("selector-id","#"+N),w("selector-class","\\."+N,0),w("selector-tag","&",0),m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:R},{begin:"!important"},m.FUNCTION_DISPATCH]},X={begin:_+`:(:)?(${y.join("|")})`,returnBegin:!0,contains:[q]};return S.push(p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,K,L,X,I,q,H,m.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:S}}return zh=f,zh}var jh,Jy;function MD(){if(Jy)return jh;Jy=1;function e(t){const i="\\[=*\\[",a="\\]=*\\]",s={begin:i,end:a,contains:["self"]},o=[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:o.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:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:i,end:a,contains:[s],relevance:5}])}}return jh=e,jh}var Ih,ev;function OD(){if(ev)return Ih;ev=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]},p={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},m=[t.BACKSLASH_ESCAPE,c,f],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(S,E,k="\\1")=>{const w=k==="\\1"?k:i.concat(k,E);return i.concat(i.concat("(?:",S,")"),E,/(?:\\.|[^\\\/])*?/,w,/(?:\\.|[^\\\/])*?/,k,s)},_=(S,E,k)=>i.concat(i.concat("(?:",S,")"),E,/(?:\\.|[^\\\/])*?/,k,s),N=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),d,{className:"string",contains:m,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}]},p,{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,p]},{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:o,contains:N}}return Bh=e,Bh}var Uh,nv;function DD(){if(nv)return Uh;nv=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 Uh=e,Uh}var Hh,iv;function LD(){if(iv)return Hh;iv=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),o=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:/\}/}]},p=t.inherit(t.APOS_STRING_MODE,{illegal:null}),m=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":(j,M)=>{M.data._beginMatch=j[1]||j[2]},"on:end":(j,M)=>{M.data._beginMatch!==j[1]&&M.ignoreMatch()}},x=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[ -]`,N={scope:"string",variants:[m,p,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},E=["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"],w=["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"],B={keyword:k,literal:(j=>{const M=[];return j.forEach(U=>{M.push(U),U.toLowerCase()===U?M.push(U.toUpperCase()):M.push(U.toLowerCase())}),M})(E),built_in:w},R=j=>j.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,i.concat(_,"+"),i.concat("(?!",R(w).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},I=i.concat(s,"\\b(?!\\()"),K={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,i.concat(/::/,i.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[o,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:i.concat(s,i.lookahead(":"),i.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[L,d,K,t.C_BLOCK_COMMENT_MODE,N,S,H]},X={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",R(k).join("\\b|"),"|",R(w).join("\\b|"),"\\b)"),s,i.concat(_,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(X);const G=[L,K,t.C_BLOCK_COMMENT_MODE,N,S,H],C={begin:i.concat(/#\[\s*\\?/,i.either(o,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...G]},...G,{scope:"meta",variants:[{match:o},{match:c}]}]};return{case_insensitive:!1,keywords:B,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,X,K,{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:B,contains:["self",C,d,K,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 Hh=e,Hh}var $h,rv;function zD(){if(rv)return $h;rv=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 $h=e,$h}var qh,av;function jD(){if(av)return qh;av=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return qh=e,qh}var Ph,sv;function ID(){if(sv)return Ph;sv=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:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},m={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,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,m,p]},{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,m,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,m,p]},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})`}]},E={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 p.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,E,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 Ph=e,Ph}var Fh,lv;function BD(){if(lv)return Fh;lv=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Fh=e,Fh}var Gh,ov;function UD(){if(ov)return Gh;ov=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]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[o,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:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Gh=e,Gh}var Vh,cv;function HD(){if(cv)return Vh;cv=1;function e(t){const i=t.regex,a=/(r#)?/,s=i.concat(a,t.UNDERSCORE_IDENT_RE),o=i.concat(a,t.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:i.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,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"],p=["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!"],m=["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:m,keyword:h,literal:f,built_in:p},illegal:""},c]}}return Vh=e,Vh}var Yh,uv;function $D(){if(uv)return Yh;uv=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(),o=["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 p=e(f),m=c,y=o,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,p.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+a.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+y.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+m.join("|")+")"},S,{begin:/\(/,end:/\)/,contains:[p.CSS_NUMBER_MODE]},p.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:[p.BLOCK_COMMENT,S,p.HEXCOLOR,p.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,p.IMPORTANT,p.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,p.HEXCOLOR,p.CSS_NUMBER_MODE]},p.FUNCTION_DISPATCH]}}return Yh=h,Yh}var Xh,dv;function qD(){if(dv)return Xh;dv=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 Xh=e,Xh}var Kh,fv;function PD(){if(fv)return Kh;fv=1;function e(t){const i=t.regex,a=t.COMMENT("--","$"),s={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={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"],p=["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"],m=["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"],_=m,N=[...p,...f].filter(R=>!m.includes(R)),S={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},E={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:i.concat(/\b/,i.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function w(R){return i.concat(/\b/,i.either(...R.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const O={scope:"keyword",match:w(x),relevance:0};function B(R,{exceptions:H,when:I}={}){const K=I;return H=H||[],R.map(L=>L.match(/\|\d+$/)||H.includes(L)?L:K(L)?`${L}|0`:L)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(N,{when:R=>R.length<3}),literal:c,type:h,built_in:y},contains:[{scope:"type",match:w(d)},O,k,S,s,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,a,E]}}return Kh=e,Kh}var Zh,hv;function FD(){if(hv)return Zh;hv=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(L=>e(L)).join("")}function a(I){const K=I[I.length-1];return typeof K=="object"&&K.constructor===Object?(I.splice(I.length-1,1),K):{}}function s(...I){return"("+(a(I).capture?"":"?:")+I.map(q=>e(q)).join("|")+")"}const o=I=>i(/\b/,I,/\w$/.test(I)?/\b/:/\B/),c=["Protocol","Type"].map(o),d=["init","self"].map(o),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"],p=["false","nil","true"],m=["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,"*"),E=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(E,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=i(E,k,"*"),O=i(/[A-Z]/,k,"*"),B=["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\(/,w,/\)/),"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 K={match:/\s+/,relevance:0},L=I.COMMENT("/\\*","\\*/",{contains:["self"]}),q=[I.C_LINE_COMMENT_MODE,L],X={match:[/\./,s(...c,...d)],className:{2:"keyword"}},G={match:i(/\./,s(...f)),relevance:0},C=f.filter(nt=>typeof nt=="string").concat(["_|0"]),j=f.filter(nt=>typeof nt!="string").concat(h).map(o),M={variants:[{className:"keyword",match:s(...j,...d)}]},U={$pattern:s(/\b\w+/,/#\w+/),keyword:C.concat(y),literal:p},Y=[X,G,M],Z={match:i(/\./,s(...x)),relevance:0},A={className:"built_in",match:i(/\b/,s(...x),/(?=\()/)},z=[Z,A],V={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:S},{match:`\\.(\\.|${N})+`}]},F=[V,D],$="([0-9]_*)+",Q="([0-9a-fA-F]_*)+",J={className:"number",relevance:0,variants:[{match:`\\b(${$})(\\.(${$}))?([eE][+-]?(${$}))?\\b`},{match:`\\b0x(${Q})(\\.(${Q}))?([pP][+-]?(${$}))?\\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)/)}),ce=(nt="")=>({className:"subst",label:"interpol",begin:i(/\\/,nt,/\(/),end:/\)/}),fe=(nt="")=>({begin:i(nt,/"""/),end:i(/"""/,nt),contains:[W(nt),ee(nt),ce(nt)]}),be=(nt="")=>({begin:i(nt,/"/),end:i(/"/,nt),contains:[W(nt),ce(nt)]}),Ee={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(/`/,w,/`/)},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,Ee]}]}},En={scope:"keyword",match:i(/@/,s(...B),t(s(/\(/,/\s+/)))},ct={scope:"meta",match:i(/@/,w)},It=[Vn,En,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:U,contains:[...q,...Y,...It,V,ue]};ue.contains.push(xe);const Oe={match:i(w,/\s*:/),keywords:"_|0",relevance:0},Fe={begin:/\(/,end:/\)/,relevance:0,keywords:U,contains:["self",Oe,...q,st,...Y,...z,...F,J,Ee,...Xt,...It,ue]},Ze={begin://,keywords:"repeat each",contains:[...q,ue]},on={begin:s(t(i(w,/\s*:/)),t(i(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}]},wn={begin:/\(/,end:/\)/,keywords:U,contains:[on,...q,...Y,...F,J,Ee,...It,ue,Fe],endsParent:!0,illegal:/["']/},Kt={match:[/(func|macro)/,/\s+/,s(Rt.match,w,S)],className:{1:"keyword",3:"title.function"},contains:[Ze,wn,K],illegal:[/\[/,/%/]},Ct={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ze,wn,K],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,S],className:{1:"keyword",3:"title"}},ut={begin:[/precedencegroup/,/\s+/,O],className:{1:"keyword",3:"title"},contains:[ue],keywords:[...m,...p],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"}},yr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,w,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:U,contains:[Ze,...Y,{begin:/:/,end:/\{/,keywords:U,contains:[{scope:"title.class.inherited",match:O},...Y],relevance:0}]};for(const nt of Ee.variants){const Yn=nt.contains.find(hn=>hn.label==="interpol");Yn.keywords=U;const Cn=[...Y,...z,...F,J,Ee,...Xt];Yn.contains=[...Cn,{begin:/\(/,end:/\)/,contains:["self",...Cn]}]}return{name:"Swift",keywords:U,contains:[...q,Kt,Ct,zn,cn,yr,Wt,ut,{beginKeywords:"import",end:/$/,contains:[...q],relevance:0},st,...Y,...z,...F,J,Ee,...Xt,...It,ue,Fe]}}return Zh=H,Zh}var Qh,pv;function GD(){if(pv)return Qh;pv=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]|$)/}]},o={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,o]},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},E=[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=[...E];return k.pop(),k.push(h),_.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:E}}return Qh=e,Qh}var Wh,mv;function VD(){if(mv)return Wh;mv=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"],o=["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(o,a,s);function h(p){const m=p.regex,y=(W,{after:ee})=>{const ce="",end:""},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,ee)=>{const ce=W[0].length+W.index,fe=W.input[ce];if(fe==="<"||fe===","){ee.ignoreMatch();return}fe===">"&&(y(W,{after:ce})||ee.ignoreMatch());let be;const Ee=W.input.substring(ce);if(be=Ee.match(/^\s*=/)){ee.ignoreMatch();return}if((be=Ee.match(/^\s+extends\s+/))&&be.index===0){ee.ignoreMatch();return}}},E={$pattern:e,keyword:t,literal:i,built_in:d,"variable.language":c},k="[0-9](_?[0-9])*",w=`\\.(${k})`,O="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",B={className:"number",variants:[{begin:`(\\b(${O})((${w})|\\.)?|(${w}))[eE][+-]?(${k})\\b`},{begin:`\\b(${O})\\b((${w})\\b|\\.)?|(${w})\\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:E,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"css"}},K={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,R]},X={className:"comment",variants:[p.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}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},G=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,I,K,L,{match:/\$\d+/},B];R.contains=G.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(G)});const C=[].concat(X,R.contains),j=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:E,contains:["self"].concat(C)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:j},U={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"}}]},Y={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]}},Z={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:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function V(W){return m.concat("(?!",W.join("|"),")")}const D={match:m.concat(/\b/,V([...o,"super","import"].map(W=>`${W}\\s*\\(`)),x,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:m.concat(/\./,m.lookahead(m.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,H,I,K,L,X,{match:/\$\d+/},B,Y,{scope:"attr",match:x+m.lookahead(":"),relevance:0},J,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[X,p.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:j}]}]},{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)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,p.inherit(p.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},D,z,U,$,{match:/\$[(.]/}]}}function f(p){const m=p.regex,y=h(p),x=e,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],N={begin:[/namespace/,/\s+/,p.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]},E={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},k=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],w={$pattern:e,keyword:t.concat(k),literal:i,built_in:d.concat(_),"variable.language":c},O={className:"meta",begin:"@"+x},B=(K,L,q)=>{const X=K.contains.findIndex(G=>G.label===L);if(X===-1)throw new Error("can not find mode to replace");K.contains.splice(X,1,q)};Object.assign(y.keywords,w),y.exports.PARAMS_CONTAINS.push(O);const R=y.contains.find(K=>K.scope==="attr"),H=Object.assign({},R,{match:m.concat(x,m.lookahead(/\s*\?:/))});y.exports.PARAMS_CONTAINS.push([y.exports.CLASS_REFERENCE,R,H]),y.contains=y.contains.concat([O,N,S,H]),B(y,"shebang",p.SHEBANG()),B(y,"use_strict",E);const I=y.contains.find(K=>K.label==="func.def");return I.relevance=0,Object.assign(y,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),y}return Wh=f,Wh}var Jh,gv;function YD(){if(gv)return Jh;gv=1;function e(t){const i=t.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\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,o),/ *#/)},{begin:i.concat(/# */,h,/ *#/)},{begin:i.concat(/# */,d,/ *#/)},{begin:i.concat(/# */,i.either(c,o),/ +/,i.either(d,h),/ *#/)}]},p={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])|[%&])?/}]},m={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,p,m,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 Jh=e,Jh}var ep,bv;function XD(){if(bv)return ep;bv=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"],o={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"},p={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,o,t.QUOTE_STRING_MODE,f,p,h]}}return ep=e,ep}var tp,xv;function KD(){if(xv)return tp;xv=1;var e=fD();return e.registerLanguage("xml",hD()),e.registerLanguage("bash",pD()),e.registerLanguage("c",mD()),e.registerLanguage("cpp",gD()),e.registerLanguage("csharp",bD()),e.registerLanguage("css",xD()),e.registerLanguage("markdown",yD()),e.registerLanguage("diff",vD()),e.registerLanguage("ruby",_D()),e.registerLanguage("go",ED()),e.registerLanguage("graphql",wD()),e.registerLanguage("ini",ND()),e.registerLanguage("java",SD()),e.registerLanguage("javascript",kD()),e.registerLanguage("json",TD()),e.registerLanguage("kotlin",AD()),e.registerLanguage("less",CD()),e.registerLanguage("lua",MD()),e.registerLanguage("makefile",OD()),e.registerLanguage("perl",RD()),e.registerLanguage("objectivec",DD()),e.registerLanguage("php",LD()),e.registerLanguage("php-template",zD()),e.registerLanguage("plaintext",jD()),e.registerLanguage("python",ID()),e.registerLanguage("python-repl",BD()),e.registerLanguage("r",UD()),e.registerLanguage("rust",HD()),e.registerLanguage("scss",$D()),e.registerLanguage("shell",qD()),e.registerLanguage("sql",PD()),e.registerLanguage("swift",FD()),e.registerLanguage("yaml",GD()),e.registerLanguage("typescript",VD()),e.registerLanguage("vbnet",YD()),e.registerLanguage("wasm",XD()),e.HighlightJS=e,e.default=e,tp=e,tp}var ZD=KD();const Fn=ho(ZD);function QD(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}}]}},o=[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:o}},{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:o}},e.inherit(s,{relevance:0})]}}function WD(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 JD(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 e4(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:"{rm(o),s(!0),setTimeout(()=>s(!1),2e3)};return b.jsxs("div",{className:"group/code relative rounded-md border border-[#2a2a2a] my-4 text-[#ddd] overflow-hidden",children:[x?b.jsxs("div",{className:"flex items-stretch",children:[b.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:[x,b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.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?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}):b.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?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})}),b.jsx("div",{className:"overflow-auto max-h-[400px]",children:b.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:b.jsx("tbody",{children:N.map((w,O)=>b.jsxs("tr",{children:[b.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}),b.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:w||` -`}})]},O))})})})]})}function Am(){return e=>{const t=i=>{var a;if(i.type==="element"&&i.tagName==="pre"&&i.children){const s=i.children.find(o=>o.type==="element"&&o.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 Cm={code:LE,pre:({children:e})=>b.jsx(b.Fragment,{children:e})};function na({title:e,content:t,action:i}){return b.jsxs("section",{children:[(e||i)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e?b.jsx("h2",{className:"text-xl font-semibold text-white",children:e}):b.jsx("span",{}),i]}),b.jsx("div",{className:"prose-markdown",children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:t})})]})}class n4{diff(t,i,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const o=this.castInput(t,a),c=this.castInput(i,a),d=this.removeEmpty(this.tokenize(o,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,h,a,s)}diffWithOptionsObj(t,i,a,s){var o;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,p=d+h;a.maxEditLength!=null&&(p=Math.min(p,a.maxEditLength));const m=(o=a.timeout)!==null&&o!==void 0?o:1/0,y=Date.now()+m,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 E=()=>{for(let k=Math.max(N,-f);k<=Math.min(S,f);k+=2){let w;const O=x[k-1],B=x[k+1];O&&(x[k-1]=void 0);let R=!1;if(B){const I=B.oldPos-k;R=B&&0<=I&&I=h&&_+1>=d)return c(this.buildValues(w.lastComponent,i,t))||!0;x[k]=w,w.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>p||Date.now()>y)return s(void 0);E()||k()},0)})();else for(;f<=p&&Date.now()<=y;){const k=E();if(k)return k}}addToPath(t,i,a,s,o){const c=t.lastComponent;return c&&!o.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,o){const c=i.length,d=a.length;let h=t.oldPos,f=h-s,p=0;for(;f+1y.length?_:y}),p.value=this.join(m)}else p.value=this.join(i.slice(h,h+p.count));h+=p.count,p.added||(f+=p.count)}}return s}}class i4 extends n4{constructor(){super(...arguments),this.tokenize=s4}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 r4=new i4;function a4(e,t,i){return r4.diff(e,t,i)}function s4(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 E=S===""?` -`:f!=="text"?l4(S,f):S.replace(/&/g,"&").replace(//g,">");let k="",w="";return N.removed?k=String(m++):(N.added||(k=String(m++)),w=String(y++)),{highlighted:E,added:!!N.added,removed:!!N.removed,leftNo:k,rightNo:w}})),_=()=>{rm(s),d(!0),setTimeout(()=>d(!1),2e3),o==null||o()};return b.jsxs("div",{className:"rounded-md border border-[#2a2a2a] overflow-hidden",children:[b.jsxs("div",{className:"flex items-stretch",children:[b.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,b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.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?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}),b.jsx("div",{className:"overflow-auto max-h-[400px]",children:b.jsx("table",{className:"w-full border-collapse font-mono text-[12px] leading-[22px] [font-variant-ligatures:none]",children:b.jsx("tbody",{children:x.map((N,S)=>b.jsxs("tr",{className:N.added?"bg-blue-500/[0.12]":N.removed?"bg-red-500/[0.12]":"",children:[b.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}),b.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}),b.jsx("td",{className:"pl-4 pr-4 whitespace-pre",dangerouslySetInnerHTML:{__html:N.highlighted}})]},S))})})})]})}function c4({description:e,scriptCode:t,onCopy:i}){const[a,s]=re.useState(!1);if(!e&&!t)return null;const o=()=>{t&&(rm(t),s(!0),setTimeout(()=>s(!1),2e3),i==null||i())};return b.jsxs("section",{children:[b.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Proof of Concept"}),b.jsxs("div",{className:"space-y-4",children:[e&&b.jsx("div",{className:"prose-markdown",children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:e})}),t&&b.jsxs("div",{className:"group/poc relative rounded-md border border-[#2a2a2a] overflow-hidden",children:[b.jsxs("div",{className:"flex items-stretch",children:[b.jsxs("span",{className:"relative flex items-center text-[13px] text-[#999] font-mono px-4 py-2 border-r border-[#2a2a2a]",children:["PoC Script",b.jsx("span",{className:"absolute top-0 inset-x-0 h-0.5 bg-white/60 rounded-full"})]}),b.jsx("div",{className:"flex-1 border-b border-[#2a2a2a]"}),b.jsx("button",{onClick:o,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?b.jsx(Ds,{className:"w-3.5 h-3.5 text-emerald-400"}):b.jsx(eo,{className:"w-3.5 h-3.5"})})]}),b.jsx("div",{className:"overflow-auto max-h-[400px] px-4 py-3",children:b.jsx("pre",{className:"font-mono text-[12px] leading-[22px] whitespace-pre [font-variant-ligatures:none]",children:b.jsx("code",{dangerouslySetInnerHTML:{__html:Fn.highlight(t,{language:"python"}).value}})})})]})]})]})}function u4(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 d4({className:e}){return b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:b.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 f4({provider:e,className:t}){const i=t??"w-4 h-4";return e==="gitlab"?b.jsx(G2,{className:`${i} text-orange-400`}):e==="bitbucket"?b.jsx(d4,{className:`${i} text-blue-400`}):b.jsx(P2,{className:`${i} text-white`})}const h4={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"}},p4={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"}},m4={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]"},g4=[{label:"Exploitability",keys:["attack_vector","attack_complexity","privileges_required","user_interaction"]},{label:"Impact",keys:["scope","confidentiality","integrity","availability"]}];function b4(e,t,i,a,s){const o=e.replace(/\.git$/,"").replace(/\/+$/,""),c=a.split("/").map(encodeURIComponent).join("/"),d=i.split("/").map(encodeURIComponent).join("/");return t==="github"?`${o}/blob/${d}/${c}#L${s}`:t==="gitlab"?`${o}/-/blob/${d}/${c}#L${s}`:null}function x4({vulnerability:e,statusSlot:t,slackThreadUrl:i}){var R;const{severity:a,cvss:s,cve:o,cwe:c,fix_effort:d,created_at:h,target:f,endpoint:p,method:m,code_locations:y,cvss_breakdown:x,location_meta:_}=e,[N,S]=re.useState(!0),E=y==null?void 0:y.filter(H=>H.fix_before&&H.fix_after),k=E&&E.length>0,w=f?u4(f):null,O=!!(f||p||m||k),B=x&&Object.values(x).some(H=>H!=null);return b.jsxs("aside",{className:"lg:sticky lg:top-6 lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto",children:[b.jsx("div",{className:"pb-4",children:b.jsxs("div",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Severity"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${im(a)}`,"aria-hidden":"true"}),b.jsx("span",{className:"text-sm font-medium capitalize text-white",children:a})]})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CVSS Score"}),b.jsx("span",{className:"text-sm font-semibold tabular-nums text-white",children:s!==null?s:"N/A"})]}),o&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CVE"}),b.jsx("span",{className:"text-sm text-white font-mono",children:o})]}),c&&c.length>0&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"CWE"}),b.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[80%] text-right",title:c.join(" · "),children:c.join(" · ")})]}),d&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Fix Effort"}),b.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${((R=GT[d])==null?void 0:R.color)??"text-[#666]"}`,children:d.charAt(0).toUpperCase()+d.slice(1)})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Discovered"}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(a_,{className:"w-3 h-3 text-[#444]","aria-hidden":"true"}),b.jsx("span",{className:"text-sm text-white",children:Ep(h)})]})]}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Status"}),t]})]})}),O&&b.jsxs("div",{className:"border-t border-[#191919] pt-4 pb-4",children:[b.jsx("p",{className:"text-xs font-medium text-[#aaa] mb-2.5",children:"Asset"}),b.jsxs("div",{className:"space-y-2.5",children:[f&&w&&b.jsxs("div",{className:"flex items-center gap-1.5",children:[w.provider?b.jsx("span",{className:"flex-shrink-0 [&_svg]:w-3.5 [&_svg]:h-3.5","aria-hidden":"true",children:b.jsx(f4,{provider:w.provider})}):b.jsx(em,{className:"w-3.5 h-3.5 text-[#555] flex-shrink-0","aria-hidden":"true"}),w.href?b.jsx("a",{href:w.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white hover:text-[#ccc] break-words min-w-0 transition-colors",children:w.display}):b.jsx("span",{className:"text-sm text-white break-words min-w-0",children:w.display})]}),p&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Endpoint"}),b.jsx("span",{className:"text-xs text-white font-mono truncate max-w-[75%] text-right",children:p})]}),m&&b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("span",{className:"text-xs text-[#aaa]",children:"Method"}),b.jsx("span",{className:"text-xs text-white font-mono",children:m})]}),k&&b.jsxs("div",{children:[b.jsx("span",{className:"text-xs text-[#aaa] mb-1.5 block",children:"Locations"}),b.jsx("div",{className:"space-y-0.5",children:E.map((H,I)=>{const K=`${H.file}:${H.start_line}`,L=_?b4(_.repo_url,_.provider,_.branch,H.file,H.start_line):null;return L?b.jsx("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"text-[13px] text-[#888] hover:text-white font-mono break-all transition-colors block",children:K},`loc-${I}`):b.jsx("span",{className:"text-[13px] text-[#888] font-mono break-all block",children:K},`loc-${I}`)})})]})]})]}),B&&b.jsxs("div",{className:"border-t border-[#191919] pt-4",children:[b.jsxs("button",{onClick:()=>S(!N),className:"flex items-center justify-between w-full mb-2.5 group","aria-expanded":N,children:[b.jsx("span",{className:"text-xs font-medium text-[#aaa]",children:"Risk Assessment"}),b.jsx(n_,{className:`w-3.5 h-3.5 text-[#555] group-hover:text-white transition-transform ${N?"":"-rotate-90"}`,"aria-hidden":"true"})]}),b.jsx("div",{className:`space-y-3 ${N?"":"hidden"}`,children:g4.map(H=>{const I=H.keys.filter(K=>x[K]!=null);return I.length===0?null:b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[b.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium",children:H.label}),b.jsx("p",{className:"text-[10px] uppercase tracking-wider text-[#444] font-medium mr-2",children:"Risk"})]}),b.jsx("div",{className:"space-y-1",children:I.map(K=>{var G,C;const L=x[K],q=L?((G=p4[K])==null?void 0:G[L])??"low":"low",X=L?((C=h4[K])==null?void 0:C[L])??L:"N/A";return b.jsxs("div",{className:"flex items-center justify-between py-0.5",children:[b.jsx("span",{className:"text-[12px] text-[#aaa]",children:X}),b.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded border ${m4[q]}`,children:q})]},K)})})]},H.label)})})]})]})}function yv(e){return e?Math.floor((Date.now()-new Date(e).getTime())/1e3)<604800?` ${Ep(e)}`:` on ${Ep(e)}`:""}const y4={open:null,in_progress:{icon:a_,label:"Marked as In Progress",iconColor:"text-blue-400"},snoozed:{icon:r2,label:"Snoozed",iconColor:"text-purple-400"},fixed:{icon:v2,label:"Marked as Fixed",iconColor:"text-emerald-400"},ignored:{icon:e_,label:"Marked as Ignored",iconColor:"text-[#888]"}};function v4({vulnerability:e}){const t=FT[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),[o,c]=re.useState("fix"),h=[{id:"fix",label:"Fix",show:!!a},{id:"reproduction",label:"Reproduction",show:s}].filter(f=>f.show);return b.jsxs("div",{className:"space-y-6",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"mb-2",children:[e.display_number&&b.jsx("span",{className:"text-xs font-mono text-[#555] block mb-1",children:PA(e.display_number)}),b.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.title})]}),b.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[b.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}),b.jsxs("div",{className:`inline-flex items-center gap-1.5 px-3 py-1 text-sm font-semibold rounded-full border ${h_[e.severity]}`,title:zc(e)?`Adjusted from ${e.original_severity}`:void 0,children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${im(e.severity)}`}),b.jsxs("span",{className:"capitalize",children:[e.severity,!zc(e)&&e.cvss?` ${e.cvss}`:""]}),zc(e)&&b.jsx(Ls,{className:"w-3 h-3 opacity-70","aria-hidden":"true"})]}),e.cve&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[#333]",children:"·"}),b.jsx("span",{className:"text-sm text-[#666] font-mono",children:e.cve})]})]})]}),e.status!=="open"&&(()=>{const f=y4[e.status];if(!f)return null;const p=f.icon;return b.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[b.jsx(p,{className:`w-5 h-5 flex-shrink-0 mt-0.5 ${f.iconColor}`,"aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0",children:[b.jsxs("p",{className:"text-sm font-semibold text-white",children:[f.label,yv(e.status_changed_at)]}),e.status_note&&b.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.status_note,"”"]})]})]})})(),zc(e)&&b.jsxs("div",{className:"rounded-lg px-4 py-3.5 flex gap-3",style:{border:"1px solid rgba(255,255,255,0.08)"},children:[b.jsx(Ls,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-orange-400","aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0",children:[b.jsxs("p",{className:"text-sm font-semibold text-white",children:["Severity changed manually from"," ",b.jsx("span",{className:"capitalize",children:e.original_severity}),e.cvss!=null?` (${e.cvss})`:""," to"," ",b.jsx("span",{className:"capitalize",children:e.severity}),yv(e.severity_changed_at)]}),e.severity_override_reason&&b.jsxs("p",{className:"text-sm text-[#666] italic mt-1",children:["“",e.severity_override_reason,"”"]})]})]}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_340px] gap-8",children:[b.jsxs("div",{className:"min-w-0",children:[b.jsxs("div",{className:"space-y-8",children:[b.jsx(na,{title:"TL;DR",content:e.description}),e.impact&&b.jsx(na,{title:"Impact",content:e.impact}),e.technical_analysis&&b.jsx(na,{title:"Technical Details",content:e.technical_analysis})]}),h.length>0&&b.jsxs("div",{className:"mt-10",children:[b.jsx("div",{className:"border-b border-[#2a2a2a]",children:b.jsx("nav",{className:"flex gap-6","aria-label":"Tabs",children:h.map(f=>b.jsxs("button",{onClick:()=>c(f.id),className:`relative min-w-[80px] text-center pb-3 text-[16px] font-semibold transition-colors ${o===f.id?"text-white":"text-[#666] hover:text-white"}`,"aria-current":o===f.id?"page":void 0,children:[f.label,o===f.id&&b.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]},f.id))})}),a&&b.jsxs("div",{className:`pt-6 space-y-6 ${o==="fix"?"animate-tab-in":"hidden"}`,children:[e.remediation_steps&&b.jsx(na,{title:"How do I fix it?",content:e.remediation_steps}),i&&e.code_locations.filter(f=>f.fix_before&&f.fix_after).map((f,p)=>b.jsx(o4,{file:f.file,startLine:f.start_line,endLine:f.end_line,before:f.fix_before,after:f.fix_after},`fix-${p}`))]}),s&&b.jsxs("div",{className:`pt-6 space-y-8 ${o==="reproduction"?"animate-tab-in":"hidden"}`,children:[e.assumptions&&b.jsx(na,{title:"Assumptions",content:e.assumptions}),e.evidence&&b.jsx(na,{title:"Evidence",content:e.evidence}),b.jsx(c4,{description:e.poc_description,scriptCode:e.poc_script_code})]})]})]}),b.jsx("div",{className:"lg:border-l lg:border-[#2a2a2a] lg:pl-6",children:b.jsx(x4,{vulnerability:e,statusSlot:b.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:[b.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.dotColor}`}),t.label]})})})]}),b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Ship the fix with your team"}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Take this finding into your team's workflow."}),b.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[b.jsx(Ms,{label:"Auto-fix & open a PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:su}),b.jsx(Ms,{label:"Sync to Jira / Linear",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:H2}),b.jsx(Ms,{label:"Catch this in PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp})]})]})]})}const vv=[{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 _4({findings:e,className:t,unit:i="issues",trailing:a}){return e.total<=0?null:b.jsxs("div",{className:Bc("space-y-3",t),children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-x-8 gap-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-2xl font-semibold text-white tabular-nums",children:e.total}),b.jsx("span",{className:"text-sm text-[#666]",children:i})]}),b.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:vv.map(({key:s,label:o,dotClass:c,textClass:d})=>{const h=e[s];return h<=0?null:b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("div",{className:Bc("w-2 h-2 rounded-full",c),"aria-hidden":"true"}),b.jsx("span",{className:Bc("text-sm tabular-nums",d),children:h}),b.jsx("span",{className:"text-xs text-[#555]",children:o})]},s)})}),a?b.jsx("div",{className:"flex items-center gap-2",children:a}):null]}),b.jsx("div",{className:"h-1.5 rounded-full bg-[#222] overflow-hidden flex",children:vv.map(({key:s,dotClass:o})=>{const c=e[s];return c<=0?null:b.jsx("div",{className:Bc("h-full",o),style:{width:`${c/e.total*100}%`}},s)})})]})}function ln(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i{}};function Ou(){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}})}tu.prototype=Ou.prototype={constructor:tu,on:function(e,t){var i=this._,a=w4(e+"",i),s,o=-1,c=a.length;if(arguments.length<2){for(;++o0)for(var i=new Array(s),a=0,s,o;a=0&&(t=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Ev.hasOwnProperty(t)?{space:Ev[t],local:e}:e}function S4(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===Lp&&t.documentElement.namespaceURI===Lp?t.createElement(e):t.createElementNS(i,e)}}function k4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function zE(e){var t=Ru(e);return(t.local?k4:S4)(t)}function T4(){}function Mm(e){return e==null?T4:function(){return this.querySelector(e)}}function A4(e){typeof e!="function"&&(e=Mm(e));for(var t=this._groups,i=t.length,a=new Array(i),s=0;s=w&&(w=k+1);!(B=S[w])&&++w<_;);O._next=B||null}}return c=new ri(c,a),c._enter=d,c._exit=h,c}function X4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K4(){return new ri(this._exit||this._groups.map(UE),this._parents)}function Z4(e,t,i){var a=this.enter(),s=this,o=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?o.remove():i(o),a&&s?a.merge(s).order():s}function Q4(e){for(var t=e.selection?e.selection():e,i=this._groups,a=t._groups,s=i.length,o=a.length,c=Math.min(s,o),d=new Array(s),h=0;h=0;)(c=a[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function J4(e){e||(e=eL);function t(m,y){return m&&y?e(m.__data__,y.__data__):!m-!y}for(var i=this._groups,a=i.length,s=new Array(a),o=0;ot?1:e>=t?0:NaN}function tL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function nL(){return Array.from(this)}function iL(){for(var e=this._groups,t=0,i=e.length;t1?this.each((t==null?pL:typeof t=="function"?gL:mL)(e,t,i??"")):js(this.node(),e)}function js(e,t){return e.style.getPropertyValue(t)||HE(e).getComputedStyle(e,null).getPropertyValue(t)}function xL(e){return function(){delete this[e]}}function yL(e,t){return function(){this[e]=t}}function vL(e,t){return function(){var i=t.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function _L(e,t){return arguments.length>1?this.each((t==null?xL:typeof t=="function"?vL:yL)(e,t)):this.node()[e]}function $E(e){return e.trim().split(/^|\s+/)}function Om(e){return e.classList||new qE(e)}function qE(e){this._node=e,this._names=$E(e.getAttribute("class")||"")}qE.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 PE(e,t){for(var i=Om(e),a=-1,s=t.length;++a=0&&(i=t.slice(a+1),t=t.slice(0,a)),{type:t,name:i}})}function KL(e){return function(){var t=this.__on;if(t){for(var i=0,a=-1,s=t.length,o;i()=>e;function zp(e,{sourceEvent:t,subject:i,target:a,identifier:s,active:o,x:c,y:d,dx:h,dy:f,dispatch:p}){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:o,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:p}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function az(e){return!e.ctrlKey&&!e.button}function sz(){return this.parentNode}function lz(e,t){return t??{x:e.x,y:e.y}}function oz(){return navigator.maxTouchPoints||"ontouchstart"in this}function KE(){var e=az,t=sz,i=lz,a=oz,s={},o=Ou("start","drag","end"),c=0,d,h,f,p,m=0;function y(O){O.on("mousedown.drag",x).filter(a).on("touchstart.drag",S).on("touchmove.drag",E,rz).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(O,B){if(!(p||!e.call(this,O,B))){var R=w(this,t.call(this,O,B),O,B,"mouse");R&&(ni(O.view).on("mousemove.drag",_,io).on("mouseup.drag",N,io),YE(O.view),np(O),f=!1,d=O.clientX,h=O.clientY,R("start",O))}}function _(O){if(Os(O),!f){var B=O.clientX-d,R=O.clientY-h;f=B*B+R*R>m}s.mouse("drag",O)}function N(O){ni(O.view).on("mousemove.drag mouseup.drag",null),XE(O.view,f),Os(O),s.mouse("end",O)}function S(O,B){if(e.call(this,O,B)){var R=O.changedTouches,H=t.call(this,O,B),I=R.length,K,L;for(K=0;K>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):i===8?Fc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):i===4?Fc(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=uz.exec(e))?new Pn(t[1],t[2],t[3],1):(t=dz.exec(e))?new Pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fz.exec(e))?Fc(t[1],t[2],t[3],t[4]):(t=hz.exec(e))?Fc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pz.exec(e))?Cv(t[1],t[2]/100,t[3]/100,1):(t=mz.exec(e))?Cv(t[1],t[2]/100,t[3]/100,t[4]):wv.hasOwnProperty(e)?kv(wv[e]):e==="transparent"?new Pn(NaN,NaN,NaN,0):null}function kv(e){return new Pn(e>>16&255,e>>8&255,e&255,1)}function Fc(e,t,i,a){return a<=0&&(e=t=i=NaN),new Pn(e,t,i,a)}function xz(e){return e instanceof yo||(e=ja(e)),e?(e=e.rgb(),new Pn(e.r,e.g,e.b,e.opacity)):new Pn}function jp(e,t,i,a){return arguments.length===1?xz(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}Rm(Pn,jp,ZE(yo,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ro:Math.pow(ro,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Da(this.r),Da(this.g),Da(this.b),pu(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:Tv,formatHex:Tv,formatHex8:yz,formatRgb:Av,toString:Av}));function Tv(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}`}function yz(){return`#${Oa(this.r)}${Oa(this.g)}${Oa(this.b)}${Oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function Av(){const e=pu(this.opacity);return`${e===1?"rgb(":"rgba("}${Da(this.r)}, ${Da(this.g)}, ${Da(this.b)}${e===1?")":`, ${e})`}`}function pu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Da(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oa(e){return e=Da(e),(e<16?"0":"")+e.toString(16)}function Cv(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new ki(e,t,i,a)}function QE(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof yo||(e=ja(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var t=e.r/255,i=e.g/255,a=e.b/255,s=Math.min(t,i,a),o=Math.max(t,i,a),c=NaN,d=o-s,h=(o+s)/2;return d?(t===o?c=(i-a)/d+(i0&&h<1?0:c,new ki(c,d,h,e.opacity)}function vz(e,t,i,a){return arguments.length===1?QE(e):new ki(e,t,i,a??1)}function ki(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}Rm(ki,vz,ZE(yo,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ro:Math.pow(ro,e),new ki(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(ip(e>=240?e-240:e+120,s,a),ip(e,s,a),ip(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new ki(Mv(this.h),Gc(this.s),Gc(this.l),pu(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=pu(this.opacity);return`${e===1?"hsl(":"hsla("}${Mv(this.h)}, ${Gc(this.s)*100}%, ${Gc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Mv(e){return e=(e||0)%360,e<0?e+360:e}function Gc(e){return Math.max(0,Math.min(1,e||0))}function ip(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 Dm=e=>()=>e;function _z(e,t){return function(i){return e+i*t}}function Ez(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 wz(e){return(e=+e)==1?WE:function(t,i){return i-t?Ez(t,i,e):Dm(isNaN(t)?i:t)}}function WE(e,t){var i=t-e;return i?_z(e,i):Dm(isNaN(e)?t:e)}const mu=(function e(t){var i=wz(t);function a(s,o){var c=i((s=jp(s)).r,(o=jp(o)).r),d=i(s.g,o.g),h=i(s.b,o.b),f=WE(s.opacity,o.opacity);return function(p){return s.r=c(p),s.g=d(p),s.b=h(p),s.opacity=f(p),s+""}}return a.gamma=e,a})(1);function Nz(e,t){t||(t=[]);var i=e?Math.min(t.length,e.length):0,a=t.slice(),s;return function(o){for(s=0;si&&(o=t.slice(i,o),d[c]?d[c]+=o:d[++c]=o),(a=a[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:$i(a,s)})),i=rp.lastIndex;return i180?p+=360:p-f>180&&(f+=360),y.push({i:m.push(s(m)+"rotate(",null,a)-2,x:$i(f,p)})):p&&m.push(s(m)+"rotate("+p+a)}function d(f,p,m,y){f!==p?y.push({i:m.push(s(m)+"skewX(",null,a)-2,x:$i(f,p)}):p&&m.push(s(m)+"skewX("+p+a)}function h(f,p,m,y,x,_){if(f!==m||p!==y){var N=x.push(s(x)+"scale(",null,",",null,")");_.push({i:N-4,x:$i(f,m)},{i:N-2,x:$i(p,y)})}else(m!==1||y!==1)&&x.push(s(x)+"scale("+m+","+y+")")}return function(f,p){var m=[],y=[];return f=e(f),p=e(p),o(f.translateX,f.translateY,p.translateX,p.translateY,m,y),c(f.rotate,p.rotate,m,y),d(f.skewX,p.skewX,m,y),h(f.scaleX,f.scaleY,p.scaleX,p.scaleY,m,y),f=p=null,function(x){for(var _=-1,N=y.length,S;++_=0&&e._call.call(void 0,t),e=e._next;--Is}function Dv(){Ia=(bu=so.now())+Du,Is=Yl=0;try{Uz()}finally{Is=0,$z(),Ia=0}}function Hz(){var e=so.now(),t=e-bu;t>nw&&(Du-=t,bu=e)}function $z(){for(var e,t=gu,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:gu=i);Xl=e,Up(a)}function Up(e){if(!Is){Yl&&(Yl=clearTimeout(Yl));var t=e-Ia;t>24?(e<1/0&&(Yl=setTimeout(Dv,e-so.now()-Du)),Pl&&(Pl=clearInterval(Pl))):(Pl||(bu=so.now(),Pl=setInterval(Hz,nw)),Is=1,iw(Dv))}}function Lv(e,t,i){var a=new xu;return t=t==null?0:+t,a.restart(s=>{a.stop(),e(s+t)},t,i),a}var qz=Ou("start","end","cancel","interrupt"),Pz=[],aw=0,zv=1,Hp=2,iu=3,jv=4,$p=5,ru=6;function Lu(e,t,i,a,s,o){var c=e.__transition;if(!c)e.__transition={};else if(i in c)return;Fz(e,i,{name:t,index:a,group:s,on:qz,tween:Pz,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:aw})}function zm(e,t){var i=Ri(e,t);if(i.state>aw)throw new Error("too late; already scheduled");return i}function Vi(e,t){var i=Ri(e,t);if(i.state>iu)throw new Error("too late; already running");return i}function Ri(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function Fz(e,t,i){var a=e.__transition,s;a[t]=i,i.timer=rw(o,0,i.time);function o(f){i.state=zv,i.timer.restart(c,i.delay,i.time),i.delay<=f&&c(f-i.delay)}function c(f){var p,m,y,x;if(i.state!==zv)return h();for(p in a)if(x=a[p],x.name===i.name){if(x.state===iu)return Lv(c);x.state===jv?(x.state=ru,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete a[p]):+pHp&&a.state<$p,a.state=ru,a.timer.stop(),a.on.call(s?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete i[c]}o&&delete e.__transition}}function Gz(e){return this.each(function(){au(this,e)})}function Vz(e,t){var i,a;return function(){var s=Vi(this,e),o=s.tween;if(o!==i){a=i=o;for(var c=0,d=a.length;c=0&&(t=t.slice(0,i)),!t||t==="start"})}function vj(e,t,i){var a,s,o=yj(t)?zm:Vi;return function(){var c=o(this,e),d=c.on;d!==a&&(s=(a=d).copy()).on(t,i),c.on=s}}function _j(e,t){var i=this._id;return arguments.length<2?Ri(this.node(),i).on.on(e):this.each(vj(i,e,t))}function Ej(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}function wj(){return this.on("end.remove",Ej(this._id))}function Nj(e){var t=this._name,i=this._id;typeof e!="function"&&(e=Mm(e));for(var a=this._groups,s=a.length,o=new Array(s),c=0;c()=>e;function Kj(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 mr(e,t,i){this.k=e,this.x=t,this.y=i}mr.prototype={constructor:mr,scale:function(e){return e===1?this:new mr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new mr(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 zu=new mr(1,0,0);cw.prototype=mr.prototype;function cw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return zu;return e.__zoom}function ap(e){e.stopImmediatePropagation()}function Fl(e){e.preventDefault(),e.stopImmediatePropagation()}function Zj(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Qj(){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 Iv(){return this.__zoom||zu}function Wj(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Jj(){return navigator.maxTouchPoints||"ontouchstart"in this}function eI(e,t,i){var a=e.invertX(t[0][0])-i[0][0],s=e.invertX(t[1][0])-i[1][0],o=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>o?(o+c)/2:Math.min(0,o)||Math.max(0,c))}function uw(){var e=Zj,t=Qj,i=eI,a=Wj,s=Jj,o=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=nu,f=Ou("start","zoom","end"),p,m,y,x=500,_=150,N=0,S=10;function E(C){C.property("__zoom",Iv).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",L).filter(s).on("touchstart.zoom",q).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(C,j,M,U){var Y=C.selection?C.selection():C;Y.property("__zoom",Iv),C!==Y?B(C,j,M,U):Y.interrupt().each(function(){R(this,arguments).event(U).start().zoom(null,typeof j=="function"?j.apply(this,arguments):j).end()})},E.scaleBy=function(C,j,M,U){E.scaleTo(C,function(){var Y=this.__zoom.k,Z=typeof j=="function"?j.apply(this,arguments):j;return Y*Z},M,U)},E.scaleTo=function(C,j,M,U){E.transform(C,function(){var Y=t.apply(this,arguments),Z=this.__zoom,A=M==null?O(Y):typeof M=="function"?M.apply(this,arguments):M,z=Z.invert(A),V=typeof j=="function"?j.apply(this,arguments):j;return i(w(k(Z,V),A,z),Y,c)},M,U)},E.translateBy=function(C,j,M,U){E.transform(C,function(){return i(this.__zoom.translate(typeof j=="function"?j.apply(this,arguments):j,typeof M=="function"?M.apply(this,arguments):M),t.apply(this,arguments),c)},null,U)},E.translateTo=function(C,j,M,U,Y){E.transform(C,function(){var Z=t.apply(this,arguments),A=this.__zoom,z=U==null?O(Z):typeof U=="function"?U.apply(this,arguments):U;return i(zu.translate(z[0],z[1]).scale(A.k).translate(typeof j=="function"?-j.apply(this,arguments):-j,typeof M=="function"?-M.apply(this,arguments):-M),Z,c)},U,Y)};function k(C,j){return j=Math.max(o[0],Math.min(o[1],j)),j===C.k?C:new mr(j,C.x,C.y)}function w(C,j,M){var U=j[0]-M[0]*C.k,Y=j[1]-M[1]*C.k;return U===C.x&&Y===C.y?C:new mr(C.k,U,Y)}function O(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function B(C,j,M,U){C.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,Z=arguments,A=R(Y,Z).event(U),z=t.apply(Y,Z),V=M==null?O(z):typeof M=="function"?M.apply(Y,Z):M,D=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),F=Y.__zoom,$=typeof j=="function"?j.apply(Y,Z):j,Q=h(F.invert(V).concat(D/F.k),$.invert(V).concat(D/$.k));return function(J){if(J===1)J=$;else{var W=Q(J),ee=D/W[2];J=new mr(ee,V[0]-W[0]*ee,V[1]-W[1]*ee)}A.zoom(null,J)}})}function R(C,j,M){return!M&&C.__zooming||new H(C,j)}function H(C,j){this.that=C,this.args=j,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,j),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,j){return this.mouse&&C!=="mouse"&&(this.mouse[1]=j.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=j.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=j.invert(this.touch1[0])),this.that.__zoom=j,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var j=ni(this.that).datum();f.call(C,this.that,new Kj(C,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:f}),j)}};function I(C,...j){if(!e.apply(this,arguments))return;var M=R(this,j).event(C),U=this.__zoom,Y=Math.max(o[0],Math.min(o[1],U.k*Math.pow(2,a.apply(this,arguments)))),Z=Si(C);if(M.wheel)(M.mouse[0][0]!==Z[0]||M.mouse[0][1]!==Z[1])&&(M.mouse[1]=U.invert(M.mouse[0]=Z)),clearTimeout(M.wheel);else{if(U.k===Y)return;M.mouse=[Z,U.invert(Z)],au(this),M.start()}Fl(C),M.wheel=setTimeout(A,_),M.zoom("mouse",i(w(k(U,Y),M.mouse[0],M.mouse[1]),M.extent,c));function A(){M.wheel=null,M.end()}}function K(C,...j){if(y||!e.apply(this,arguments))return;var M=C.currentTarget,U=R(this,j,!0).event(C),Y=ni(C.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",D,!0),Z=Si(C,M),A=C.clientX,z=C.clientY;YE(C.view),ap(C),U.mouse=[Z,this.__zoom.invert(Z)],au(this),U.start();function V(F){if(Fl(F),!U.moved){var $=F.clientX-A,Q=F.clientY-z;U.moved=$*$+Q*Q>N}U.event(F).zoom("mouse",i(w(U.that.__zoom,U.mouse[0]=Si(F,M),U.mouse[1]),U.extent,c))}function D(F){Y.on("mousemove.zoom mouseup.zoom",null),XE(F.view,U.moved),Fl(F),U.event(F).end()}}function L(C,...j){if(e.apply(this,arguments)){var M=this.__zoom,U=Si(C.changedTouches?C.changedTouches[0]:C,this),Y=M.invert(U),Z=M.k*(C.shiftKey?.5:2),A=i(w(k(M,Z),U,Y),t.apply(this,j),c);Fl(C),d>0?ni(this).transition().duration(d).call(B,A,U,C):ni(this).call(E.transform,A,U,C)}}function q(C,...j){if(e.apply(this,arguments)){var M=C.touches,U=M.length,Y=R(this,j,C.changedTouches.length===U).event(C),Z,A,z,V;for(ap(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.`},lo=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],dw=["Enter"," ","Escape"],fw={"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 Bs;(function(e){e.Strict="strict",e.Loose="loose"})(Bs||(Bs={}));var La;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(La||(La={}));var oo;(function(e){e.Partial="partial",e.Full="full"})(oo||(oo={}));const hw={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var ia;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(ia||(ia={}));var yu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(yu||(yu={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const Bv={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function pw(e){return e===null?null:e?"valid":"invalid"}const mw=e=>!!e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e,tI=e=>!!e&&typeof e=="object"&&"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Im=e=>!!e&&typeof e=="object"&&"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),vo=(e,t=[0,0])=>{const{width:i,height:a}=Yi(e),s=e.origin??t,o=i*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},nI=(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 o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Im(s)?s:t.nodeLookup.get(s.id));const d=c?vu(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return ju(a,d)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Iu(i)},_o=(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=ju(i,vu(s)),a=!0)}),a?Iu(i):{x:0,y:0,width:0,height:0}},Bm=(e,t,[i,a,s]=[0,0,1],o=!1,c=!1)=>{const d=(t.x-i)/s,h=(t.y-a)/s,f=t.width/s,p=t.height/s,m=[];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,E=x.height??y.height??y.initialHeight??0,{x:k,y:w}=y.internals.positionAbsolute,O=yw(d,h,f,p,k,w,S,E),B=S*E,R=o&&O>0;(!y.internals.handleBounds||R||O>=B||y.dragging)&&m.push(y)}return m},iI=(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 rI(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 o;if(t!=null&&t.includeHiddenNodes){const{width:c,height:d}=Yi(s);o=c>0&&d>0}else o=!!(s.measured.width&&s.measured.height&&!s.hidden);o&&(!a||a.has(s.id))&&i.set(s.id,s)}),i}async function aI({nodes:e,width:t,height:i,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return!0;const d=rI(e,c),h=_o(d),f=Hm(h,t,i,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(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 gw({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){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},p=c.origin??a;let m=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!d)o==null||o("005",Mi.error005());else{const x=d.measured.width,_=d.measured.height;x&&_&&(m=[[h,f],[h+x,f+_]])}else d&&Ua(c.extent)&&(m=[[c.extent[0][0]+h,c.extent[0][1]+f],[c.extent[1][0]+h,c.extent[1][1]+f]]);const y=Ua(m)?Ba(t,m,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Mi.error015())),{position:{x:y.x-h+(c.measured.width??0)*p[0],y:y.y-f+(c.measured.height??0)*p[1]},positionAbsolute:y}}async function sI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:s}){const o=new Set(e.map(y=>y.id)),c=[];for(const y of i){if(y.deletable===!1)continue;const x=o.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),p=iI(c,h);for(const y of h)d.has(y.id)&&!p.find(_=>_.id===y.id)&&p.push(y);if(!s)return{edges:p,nodes:c};const m=await s({nodes:c,edges:p});return typeof m=="boolean"?m?{edges:p,nodes:c}:{edges:[],nodes:[]}:m}const Us=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),Ba=(e={x:0,y:0},t,i)=>({x:Us(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:Us(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function bw(e,t,i){const{width:a,height:s}=Yi(i),{x:o,y:c}=i.internals.positionAbsolute;return Ba(e,[[o,c],[o+a,c+s]],t)}const Uv=(e,t,i)=>ei?-Us(Math.abs(e-i),1,t)/t:0,Um=(e,t,i=15,a=40)=>{const s=Uv(e.x,a,t.width-a)*i,o=Uv(e.y,a,t.height-a)*i;return[s,o]},ju=(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)}),qp=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),Iu=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),co=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Im(e)?e.internals.positionAbsolute:vo(e,t);return{x:i,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},vu=(e,t=[0,0])=>{var s,o;const{x:i,y:a}=Im(e)?e.internals.positionAbsolute:vo(e,t);return{x:i,y:a,x2:i+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},xw=(e,t)=>Iu(ju(qp(e),qp(t))),yw=(e,t,i,a,s,o,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,o+d)-Math.max(t,o));return Math.ceil(h*f)},_u=(e,t)=>yw(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),Hv=e=>Ti(e.width)&&Ti(e.height)&&Ti(e.x)&&Ti(e.y),Ti=e=>!isNaN(e)&&isFinite(e),vw=(e,t)=>(i,a)=>{},Eo=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),wo=({x:e,y:t},[i,a,s],o=!1,c=[1,1])=>{const d={x:(e-i)/s,y:(t-a)/s};return o?Eo(d,c):d},Hs=({x:e,y:t},[i,a,s])=>({x:e*s+i,y:t*s+a});function Ns(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 lI(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=Ns(e,i),s=Ns(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=Ns(e.top??e.y??0,i),s=Ns(e.bottom??e.y??0,i),o=Ns(e.left??e.x??0,t),c=Ns(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function oI(e,t,i,a,s,o){const{x:c,y:d}=Hs(e,[t,i,a]),{x:h,y:f}=Hs({x:e.x+e.width,y:e.y+e.height},[t,i,a]),p=s-h,m=o-f;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(p),bottom:Math.floor(m)}}const Hm=(e,t,i,a,s,o)=>{const c=lI(o,t,i),d=(t-c.x)/e.width,h=(i-c.y)/e.height,f=Math.min(d,h),p=Us(f,a,s),m=e.x+e.width/2,y=e.y+e.height/2,x=t/2-m*p,_=i/2-y*p,N=oI(e,x,_,p,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:p}},uo=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ua(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 _w(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 Ew(e,t={width:0,height:0},i,a,s){const o={...e},c=a.get(i);if(c){const d=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*d[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*d[1]}return o}function $v(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function cI(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function uI(e){return{...fw,...e||{}}}function Jl(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:s}){const{x:o,y:c}=Ai(e),d=wo({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:h,y:f}=i?Eo(d,t):d;return{xSnapped:h,ySnapped:f,...d}}const $m=e=>({width:e.offsetWidth,height:e.offsetHeight}),ww=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},dI=["INPUT","SELECT","TEXTAREA"];function Nw(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:dI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const Sw=e=>"clientX"in e,Ai=(e,t)=>{var o,c;const i=Sw(e),a=i?e.clientX:(o=e.touches)==null?void 0:o[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)}},qv=(e,t,i,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).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,...$m(c)}})};function kw({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:d}){const h=e*.125+s*.375+c*.375+i*.125,f=t*.125+o*.375+d*.375+a*.125,p=Math.abs(h-e),m=Math.abs(f-t);return[h,f,p,m]}function Xc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Pv({pos:e,x1:t,y1:i,x2:a,y2:s,c:o}){switch(e){case je.Left:return[t-Xc(t-a,o),i];case je.Right:return[t+Xc(a-t,o),i];case je.Top:return[t,i-Xc(i-s,o)];case je.Bottom:return[t,i+Xc(s-i,o)]}}function Tw({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top,curvature:c=.25}){const[d,h]=Pv({pos:i,x1:e,y1:t,x2:a,y2:s,c}),[f,p]=Pv({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[m,y,x,_]=kw({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:d,sourceControlY:h,targetControlX:f,targetControlY:p});return[`M${e},${t} C${d},${h} ${f},${p} ${a},${s}`,m,y,x,_]}function Aw({sourceX:e,sourceY:t,targetX:i,targetY:a}){const s=Math.abs(i-e)/2,o=i0}const pI=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,mI=(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)),gI=(e,t,i={})=>{var o;if(!e.source||!e.target)return(o=i.onError)==null||o.call(i,"006",Mi.error006()),t;const a=i.getEdgeId||pI;let s;return mw(e)?s={...e}:s={...e,id:a(e)},mI(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function Cw({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[s,o,c,d]=Aw({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,s,o,c,d]}const Fv={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},bI=({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 xI({source:e,sourcePosition:t=je.Bottom,target:i,targetPosition:a=je.Top,center:s,offset:o,stepPosition:c}){const d=Fv[t],h=Fv[a],f={x:e.x+d.x*o,y:e.y+d.y*o},p={x:i.x+h.x*o,y:i.y+h.y*o},m=bI({source:f,sourcePosition:t,target:p}),y=m.x!==0?"x":"y",x=m[y];let _=[],N,S;const E={x:0,y:0},k={x:0,y:0},[,,w,O]=Aw({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+(p.x-f.x)*c,S=s.y??(f.y+p.y)/2):(N=s.x??(f.x+p.x)/2,S=s.y??f.y+(p.y-f.y)*c);const I=[{x:N,y:f.y},{x:N,y:p.y}],K=[{x:f.x,y:S},{x:p.x,y:S}];d[y]===x?_=y==="x"?I:K:_=y==="x"?K:I}else{const I=[{x:f.x,y:p.y}],K=[{x:p.x,y:f.y}];if(y==="x"?_=d.x===x?K:I:_=d.y===x?I:K,t===a){const C=Math.abs(e[y]-i[y]);if(C<=o){const j=Math.min(o-1,o-C);d[y]===x?E[y]=(f[y]>e[y]?-1:1)*j:k[y]=(p[y]>i[y]?-1:1)*j}}if(t!==a){const C=y==="x"?"y":"x",j=d[y]===h[C],M=f[C]>p[C],U=f[C]=G?(N=(L.x+q.x)/2,S=_[0].y):(N=_[0].x,S=(L.y+q.y)/2)}const B={x:f.x+E.x,y:f.y+E.y},R={x:p.x+k.x,y:p.y+k.y};return[[e,...B.x!==_[0].x||B.y!==_[0].y?[B]:[],..._,...R.x!==_[_.length-1].x||R.y!==_[_.length-1].y?[R]:[],i],N,S,w,O]}function yI(e,t,i,a){const s=Math.min(Gv(e,t)/2,Gv(t,i)/2,a),{x:o,y:c}=t;if(e.x===o&&o===i.x||e.y===c&&c===i.y)return`L${o} ${c}`;if(e.y===c){const f=e.xi.id===t):e[0])||null}function Fp(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function _I(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,d)=>([d.markerStart||a,d.markerEnd||s].forEach(h=>{if(h&&typeof h=="object"){const f=Fp(h,t);o.has(f)||(c.push({id:f,color:h.color||i,...h}),o.add(f))}}),c),[]).sort((c,d)=>c.id.localeCompare(d.id))}const Mw=1e3,EI=10,qm={nodeOrigin:[0,0],nodeExtent:lo,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},wI={...qm,checkEquality:!0};function Pm(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function NI(e,t,i){const a=Pm(qm,i);for(const s of e.values())if(s.parentId)Gm(s,e,t,a);else{const o=vo(s,a.nodeOrigin),c=Ua(s.extent)?s.extent:a.nodeExtent,d=Ba(o,c,Yi(s));s.internals.positionAbsolute=d}}function SI(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 o={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(o):s.type==="target"&&a.push(o)}return{source:i,target:a}}function Fm(e){return e==="manual"}function Gp(e,t,i,a={}){var p,m;const s=Pm(wI,a),o={i:0},c=new Map(t),d=s!=null&&s.elevateNodesOnSelect&&!Fm(s.zIndexMode)?Mw: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 _=vo(y,s.nodeOrigin),N=Ua(y.extent)?y.extent:s.nodeExtent,S=Ba(_,N,Yi(y));x={...s.defaults,...y,measured:{width:(p=y.measured)==null?void 0:p.width,height:(m=y.measured)==null?void 0:m.height},internals:{positionAbsolute:S,handleBounds:SI(y,x),z:Ow(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&&Gm(x,t,i,a,o),f||(f=y.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:f}}function kI(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 Gm(e,t,i,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:d,zIndexMode:h}=Pm(qm,a),f=e.parentId,p=t.get(f);if(!p){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}kI(e,i),s&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++s.i,p.internals.z=p.internals.z+s.i*EI),s&&p.internals.rootParentIndex!==void 0&&(s.i=p.internals.rootParentIndex);const m=o&&!Fm(h)?Mw:0,{x:y,y:x,z:_}=TI(e,p,c,d,m,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 Ow(e,t,i){const a=Ti(e.zIndex)?e.zIndex:0;return Fm(i)?a:a+(e.selected?t:0)}function TI(e,t,i,a,s,o){const{x:c,y:d}=t.internals.positionAbsolute,h=Yi(e),f=vo(e,i),p=Ua(e.extent)?Ba(f,e.extent,h):f;let m=Ba({x:c+p.x,y:d+p.y},a,h);e.extent==="parent"&&(m=bw(m,h,t));const y=Ow(e,s,o),x=t.internals.z??0;return{x:m.x,y:m.y,z:x>=y?x+1:y}}function Vm(e,t,i,a=[0,0]){var c;const s=[],o=new Map;for(const d of e){const h=t.get(d.parentId);if(!h)continue;const f=((c=o.get(d.parentId))==null?void 0:c.expandedRect)??co(h),p=xw(f,d.rect);o.set(d.parentId,{expandedRect:p,parent:h})}return o.size>0&&o.forEach(({expandedRect:d,parent:h},f)=>{var w;const p=h.internals.positionAbsolute,m=Yi(h),y=h.origin??a,x=d.x0||_>0||E||k)&&(s.push({id:f,type:"position",position:{x:h.position.x-x+E,y:h.position.y-_+k}}),(w=i.get(f))==null||w.forEach(O=>{e.some(B=>B.id===O.id)||s.push({id:O.id,type:"position",position:{x:O.position.x+x,y:O.position.y+_}})})),(m.width0){const x=Vm(y,t,i,s);f.push(...x)}return{changes:f,updatedInternals:h}}async function CI({delta:e,panZoom:t,transform:i,translateExtent:a,width:s,height:o}){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,o]],a);return!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2])}function Kv(e,t,i,a,s,o){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)),o){c=`${s}-${e}-${o}`;const f=a.get(c)||new Map;a.set(c,f.set(i,t))}}function Rw(e,t,i){e.clear(),t.clear();for(const a of i){const{source:s,target:o,sourceHandle:c=null,targetHandle:d=null}=a,h={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:d},f=`${s}-${c}--${o}-${d}`,p=`${o}-${d}--${s}-${c}`;Kv("source",h,p,e,s,c),Kv("target",h,f,e,o,d),t.set(a.id,a)}}function Dw(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:Dw(i,t):!1}function Zv(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 MI(e,t,i,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!Dw(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const d=e.get(o);d&&s.set(o,{id:o,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 sp({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,d,h;const s=[];for(const[f,p]of t){const m=(c=i.get(f))==null?void 0:c.internals.userNode;m&&s.push({...m,position:p.position,dragging:a})}if(!e)return[s[0],s];const o=(d=i.get(e))==null?void 0:d.internals.userNode;return[o?{...o,position:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:s[0],s]}function OI({dragItems:e,snapGrid:t,x:i,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:i-s.distance.x,y:a-s.distance.y},c=Eo(o,t);return{x:c.x-o.x,y:c.y-o.y}}function RI({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,d=new Map,h=!1,f={x:0,y:0},p=null,m=!1,y=null,x=!1,_=!1,N=null;function S({noDragClassName:k,handleSelector:w,domNode:O,isSelectable:B,nodeId:R,nodeClickDistance:H=0}){y=ni(O);function I({x:X,y:G}){const{nodeLookup:C,nodeExtent:j,snapGrid:M,snapToGrid:U,nodeOrigin:Y,onNodeDrag:Z,onSelectionDrag:A,onError:z,updateNodePositions:V}=t();o={x:X,y:G};let D=!1;const F=d.size>1,$=F&&j?qp(_o(d)):null,Q=F&&U?OI({dragItems:d,snapGrid:M,x:X,y:G}):null;for(const[J,W]of d){if(!C.has(J))continue;let ee={x:X-W.distance.x,y:G-W.distance.y};U&&(ee=Q?{x:Math.round(ee.x+Q.x),y:Math.round(ee.y+Q.y)}:Eo(ee,M));let ce=null;if(F&&j&&!W.extent&&$){const{positionAbsolute:Ee}=W.internals,Ne=Ee.x-$.x+j[0][0],Le=Ee.x+W.measured.width-$.x2+j[1][0],$e=Ee.y-$.y+j[0][1],st=Ee.y+W.measured.height-$.y2+j[1][1];ce=[[Ne,$e],[Le,st]]}const{position:fe,positionAbsolute:be}=gw({nodeId:J,nextPosition:ee,nodeLookup:C,nodeExtent:ce||j,nodeOrigin:Y,onError:z});D=D||W.position.x!==fe.x||W.position.y!==fe.y,W.position=fe,W.internals.positionAbsolute=be}if(_=_||D,!!D&&(V(d,!0),N&&(a||Z||!R&&A))){const[J,W]=sp({nodeId:R,dragItems:d,nodeLookup:C});a==null||a(N,d,J,W),Z==null||Z(N,J,W),R||A==null||A(N,W)}}async function K(){if(!p)return;const{transform:X,panBy:G,autoPanSpeed:C,autoPanOnNodeDrag:j}=t();if(!j){h=!1,cancelAnimationFrame(c);return}const[M,U]=Um(f,p,C);(M!==0||U!==0)&&(o.x=(o.x??0)-M/X[2],o.y=(o.y??0)-U/X[2],await G({x:M,y:U})&&I(o)),c=requestAnimationFrame(K)}function L(X){var F;const{nodeLookup:G,multiSelectionActive:C,nodesDraggable:j,transform:M,snapGrid:U,snapToGrid:Y,selectNodesOnDrag:Z,onNodeDragStart:A,onSelectionDragStart:z,unselectNodesAndEdges:V}=t();m=!0,(!Z||!B)&&!C&&R&&((F=G.get(R))!=null&&F.selected||V()),B&&Z&&R&&(e==null||e(R));const D=Jl(X.sourceEvent,{transform:M,snapGrid:U,snapToGrid:Y,containerBounds:p});if(o=D,d=MI(G,j,D,R),d.size>0&&(i||A||!R&&z)){const[$,Q]=sp({nodeId:R,dragItems:d,nodeLookup:G});i==null||i(X.sourceEvent,d,$,Q),A==null||A(X.sourceEvent,$,Q),R||z==null||z(X.sourceEvent,Q)}}const q=KE().clickDistance(H).on("start",X=>{const{domNode:G,nodeDragThreshold:C,transform:j,snapGrid:M,snapToGrid:U}=t();p=(G==null?void 0:G.getBoundingClientRect())||null,x=!1,_=!1,N=X.sourceEvent,C===0&&L(X),o=Jl(X.sourceEvent,{transform:j,snapGrid:M,snapToGrid:U,containerBounds:p}),f=Ai(X.sourceEvent,p)}).on("drag",X=>{const{autoPanOnNodeDrag:G,transform:C,snapGrid:j,snapToGrid:M,nodeDragThreshold:U,nodeLookup:Y}=t(),Z=Jl(X.sourceEvent,{transform:C,snapGrid:j,snapToGrid:M,containerBounds:p});if(N=X.sourceEvent,(X.sourceEvent.type==="touchmove"&&X.sourceEvent.touches.length>1||R&&!Y.has(R))&&(x=!0),!x){if(!h&&G&&m&&(h=!0,K()),!m){const A=Ai(X.sourceEvent,p),z=A.x-f.x,V=A.y-f.y;Math.sqrt(z*z+V*V)>U&&L(X)}(o.x!==Z.xSnapped||o.y!==Z.ySnapped)&&d&&m&&(f=Ai(X.sourceEvent,p),I(Z))}}).on("end",X=>{if(!m||x){x&&d.size>0&&t().updateNodePositions(d,!1);return}if(h=!1,m=!1,cancelAnimationFrame(c),d.size>0){const{nodeLookup:G,updateNodePositions:C,onNodeDragStop:j,onSelectionDragStop:M}=t();if(_&&(C(d,!1),_=!1),s||j||!R&&M){const[U,Y]=sp({nodeId:R,dragItems:d,nodeLookup:G,dragging:!1});s==null||s(X.sourceEvent,d,U,Y),j==null||j(X.sourceEvent,U,Y),R||M==null||M(X.sourceEvent,Y)}}}).filter(X=>{const G=X.target;return!X.button&&(!k||!Zv(G,`.${k}`,O))&&(!w||Zv(G,w,O))});y.call(q)}function E(){y==null||y.on(".drag",null)}return{update:S,destroy:E}}function DI(e,t,i){const a=[],s={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const o of t.values())_u(s,co(o))>0&&a.push(o);return a}const LI=250;function zI(e,t,i,a){var d,h;let s=[],o=1/0;const c=DI(e,i,t+LI);for(const f of c){const p=[...((d=f.internals.handleBounds)==null?void 0:d.source)??[],...((h=f.internals.handleBounds)==null?void 0:h.target)??[]];for(const m of p){if(a.nodeId===m.nodeId&&a.type===m.type&&a.id===m.id)continue;const{x:y,y:x}=Ha(f,m,m.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(p=>p.type===f)??s[0]}return s[0]}function Lw(e,t,i,a,s,o=!1){var f,p,m;const c=a.get(e);if(!c)return null;const d=s==="strict"?(f=c.internals.handleBounds)==null?void 0:f[t]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((m=c.internals.handleBounds)==null?void 0:m.target)??[]],h=(i?d==null?void 0:d.find(y=>y.id===i):d==null?void 0:d[0])??null;return h&&o?{...h,...Ha(c,h,h.position,!0)}:h}function zw(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function jI(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const jw=()=>!0;function II(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:d,nodeLookup:h,lib:f,autoPanOnConnect:p,flowId:m,panBy:y,cancelConnection:x,onConnectStart:_,onConnect:N,onConnectEnd:S,isValidConnection:E=jw,onReconnectEnd:k,updateConnection:w,getTransform:O,getFromHandle:B,autoPanSpeed:R,dragThreshold:H=1,handleDomNode:I}){const K=ww(e.target);let L=0,q;const{x:X,y:G}=Ai(e),C=zw(o,I),j=d==null?void 0:d.getBoundingClientRect();let M=!1;if(!j||!C)return;const U=Lw(s,C,a,h,t);if(!U)return;let Y=Ai(e,j),Z=!1,A=null,z=!1,V=null;function D(){if(!p||!j)return;const[fe,be]=Um(Y,j,R);y({x:fe,y:be}),L=requestAnimationFrame(D)}const F={...U,nodeId:s,type:C,position:U.position},$=h.get(s);let J={inProgress:!0,isValid:null,from:Ha($,F,je.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:$,to:Y,toHandle:null,toPosition:Bv[F.position],toNode:null,pointer:Y};function W(){M=!0,w(J),_==null||_(e,{nodeId:s,handleId:a,handleType:C})}H===0&&W();function ee(fe){if(!M){const{x:st,y:Rt}=Ai(fe),Yt=st-X,Pt=Rt-G;if(!(Yt*Yt+Pt*Pt>H*H))return;W()}if(!B()||!F){ce(fe);return}const be=O();Y=Ai(fe,j),q=zI(wo(Y,be,!1,[1,1]),i,h,F),Z||(D(),Z=!0);const Ee=Iw(fe,{handle:q,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:E,doc:K,lib:f,flowId:m,nodeLookup:h});V=Ee.handleDomNode,A=Ee.connection,z=jI(!!q,Ee.isValid);const Ne=h.get(s),Le=Ne?Ha(Ne,F,je.Left,!0):J.from,$e={...J,from:Le,isValid:z,to:Ee.toHandle&&z?Hs({x:Ee.toHandle.x,y:Ee.toHandle.y},be):Y,toHandle:Ee.toHandle,toPosition:z&&Ee.toHandle?Ee.toHandle.position:Bv[F.position],toNode:Ee.toHandle?h.get(Ee.toHandle.nodeId):null,pointer:Y};w($e),J=$e}function ce(fe){if(!("touches"in fe&&fe.touches.length>0)){if(M){(q||V)&&A&&z&&(N==null||N(A));const{inProgress:be,...Ee}=J,Ne={...Ee,toPosition:J.toHandle?J.toPosition:null};S==null||S(fe,Ne),o&&(k==null||k(fe,Ne))}x(),cancelAnimationFrame(L),Z=!1,z=!1,A=null,V=null,K.removeEventListener("mousemove",ee),K.removeEventListener("mouseup",ce),K.removeEventListener("touchmove",ee),K.removeEventListener("touchend",ce)}}K.addEventListener("mousemove",ee),K.addEventListener("mouseup",ce),K.addEventListener("touchmove",ee),K.addEventListener("touchend",ce)}function Iw(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:d,flowId:h,isValidConnection:f=jw,nodeLookup:p}){const m=o==="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:_}=Ai(e),N=c.elementFromPoint(x,_),S=N!=null&&N.classList.contains(`${d}-flow__handle`)?N:y,E={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){const k=zw(void 0,S),w=S.getAttribute("data-nodeid"),O=S.getAttribute("data-handleid"),B=S.classList.contains("connectable"),R=S.classList.contains("connectableend");if(!w||!k)return E;const H={source:m?w:a,sourceHandle:m?O:s,target:m?a:w,targetHandle:m?s:O};E.connection=H;const K=B&&R&&(i===Bs.Strict?m&&k==="source"||!m&&k==="target":w!==a||O!==s);E.isValid=K&&f(H),E.toHandle=Lw(w,k,O,p,i,!0)}return E}const Vp={onPointerDown:II,isValid:Iw};function BI({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const s=ni(e);function o({translateExtent:d,width:h,height:f,zoomStep:p=1,pannable:m=!0,zoomable:y=!0,inversePan:x=!1}){const _=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const O=i(),B=w.sourceEvent.ctrlKey&&uo()?10:1,R=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*p,H=O[2]*Math.pow(2,R*B);t.scaleTo(H)};let N=[0,0];const S=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(N=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},E=w=>{const O=i();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const B=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],R=[B[0]-N[0],B[1]-N[1]];N=B;const H=a()*Math.max(O[2],Math.log(O[2]))*(x?-1:1),I={x:O[0]-R[0]*H,y:O[1]-R[1]*H},K=[[0,0],[h,f]];t.setViewportConstrained({x:I.x,y:I.y,zoom:O[2]},K,d)},k=uw().on("start",S).on("zoom",m?E:null).on("zoom.wheel",y?_:null);s.call(k,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Si}}const Bu=e=>({x:e.x,y:e.y,zoom:e.k}),lp=({x:e,y:t,zoom:i})=>zu.translate(e,t).scale(i),Ts=(e,t)=>e.target.closest(`.${t}`),Bw=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),UI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,op=(e,t=0,i=UI,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(i).on("end",a):e},Uw=e=>{const t=e.ctrlKey&&uo()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function HI({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:d,onPanZoom:h,onPanZoomEnd:f}){return p=>{if(Ts(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=i.property("__zoom").k||1;if(p.ctrlKey&&c){const S=Si(p),E=Uw(p),k=m*Math.pow(2,E);a.scaleTo(i,k,S,p);return}const y=p.deltaMode===1?20:1;let x=s===La.Vertical?0:p.deltaX*y,_=s===La.Horizontal?0:p.deltaY*y;!uo()&&p.shiftKey&&s!==La.Vertical&&(x=p.deltaY*y,_=0),a.translateBy(i,-(x/m)*o,-(_/m)*o,{internal:!0});const N=Bu(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?h==null||h(p,N):(e.isPanScrolling=!0,d==null||d(p,N)),e.panScrollTimeout=setTimeout(()=>{f==null||f(p,N),e.isPanScrolling=!1},150)}}function $I({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,d=Ts(a,e);if(a.ctrlKey&&o&&d&&a.preventDefault(),c||d)return null;a.preventDefault(),i.call(this,a,s)}}function qI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var o,c,d;if((o=a.sourceEvent)!=null&&o.internal)return;const s=Bu(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 PI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:s}){return o=>{var c,d;e.usedRightMouseButton=!!(i&&Bw(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((d=o.sourceEvent)!=null&&d.internal)&&(s==null||s(o.sourceEvent,Bu(o.transform)))}}function FI({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var d;if(!((d=c.sourceEvent)!=null&&d.internal)&&(e.isZoomingOrPanning=!1,o&&Bw(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const h=Bu(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,h)},i?150:0)}}}function GI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:d,noPanClassName:h,lib:f,connectionInProgress:p}){return m=>{var S;const y=e||t,x=i&&m.ctrlKey,_=m.type==="wheel";if(m.button===1&&m.type==="mousedown"&&(Ts(m,`${f}-flow__node`)||Ts(m,`${f}-flow__edge`)))return!0;if(!a&&!y&&!s&&!o&&!i||c||p&&!_||Ts(m,d)&&_||Ts(m,h)&&(!_||s&&_&&!e)||!i&&m.ctrlKey&&_)return!1;if(!i&&m.type==="touchstart"&&((S=m.touches)==null?void 0:S.length)>1)return m.preventDefault(),!1;if(!y&&!s&&!x&&_||!a&&(m.type==="mousedown"||m.type==="touchstart")||Array.isArray(a)&&!a.includes(m.button)&&m.type==="mousedown")return!1;const N=Array.isArray(a)&&a.includes(m.button)||!m.button||m.button<=1;return(!m.ctrlKey||_)&&N}}function VI({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:d,onDraggingChange:h}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect();let m=[[0,0],[p.width,p.height]];const y=typeof ResizeObserver<"u"?new ResizeObserver(G=>{const C=G[0];C&&(m=[[0,0],[C.contentRect.width,C.contentRect.height]])}):null;y==null||y.observe(e);const x=uw().extent(()=>m).scaleExtent([t,i]).translateExtent(a),_=ni(e).call(x);O({x:s.x,y:s.y,zoom:Us(s.zoom,t,i)},[[0,0],[p.width,p.height]],a);const N=_.on("wheel.zoom"),S=_.on("dblclick.zoom");x.wheelDelta(Uw);async function E(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).transform(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}function k({noWheelClassName:G,noPanClassName:C,onPaneContextMenu:j,userSelectionActive:M,panOnScroll:U,panOnDrag:Y,panOnScrollMode:Z,panOnScrollSpeed:A,preventScrolling:z,zoomOnPinch:V,zoomOnScroll:D,zoomOnDoubleClick:F,zoomActivationKeyPressed:$,lib:Q,onTransformChange:J,connectionInProgress:W,paneClickDistance:ee,selectionOnDrag:ce}){M&&!f.isZoomingOrPanning&&w();const fe=U&&!$&&!M;x.clickDistance(ce?1/0:!Ti(ee)||ee<0?0:ee);const be=fe?HI({zoomPanValues:f,noWheelClassName:G,d3Selection:_,d3Zoom:x,panOnScrollMode:Z,panOnScrollSpeed:A,zoomOnPinch:V,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:d}):$I({noWheelClassName:G,preventScrolling:z,d3ZoomHandler:N});_.on("wheel.zoom",be,{passive:!1});const Ee=qI({zoomPanValues:f,onDraggingChange:h,onPanZoomStart:c});x.on("start",Ee);const Ne=PI({zoomPanValues:f,panOnDrag:Y,onPaneContextMenu:!!j,onPanZoom:o,onTransformChange:J});x.on("zoom",Ne);const Le=FI({zoomPanValues:f,panOnDrag:Y,panOnScroll:U,onPaneContextMenu:j,onPanZoomEnd:d,onDraggingChange:h});x.on("end",Le);const $e=GI({zoomActivationKeyPressed:$,panOnDrag:Y,zoomOnScroll:D,panOnScroll:U,zoomOnDoubleClick:F,zoomOnPinch:V,userSelectionActive:M,noPanClassName:C,noWheelClassName:G,lib:Q,connectionInProgress:W});x.filter($e),F?_.on("dblclick.zoom",S):_.on("dblclick.zoom",null)}function w(){x.on("zoom",null)}async function O(G,C,j){const M=lp(G),U=x==null?void 0:x.constrain()(M,C,j);return U&&await E(U),U}async function B(G,C){const j=lp(G);return await E(j,C),j}function R(G){if(_){const C=lp(G),j=_.property("__zoom");(j.k!==G.zoom||j.x!==G.x||j.y!==G.y)&&(x==null||x.transform(_,C,null,{sync:!0}))}}function H(){const G=_?cw(_.node()):{x:0,y:0,k:1};return{x:G.x,y:G.y,zoom:G.k}}async function I(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).scaleTo(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}async function K(G,C){return _?new Promise(j=>{x==null||x.interpolate((C==null?void 0:C.interpolate)==="linear"?Wl:nu).scaleBy(op(_,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>j(!0)),G)}):!1}function L(G){x==null||x.scaleExtent(G)}function q(G){x==null||x.translateExtent(G)}function X(G){const C=!Ti(G)||G<0?0:G;x==null||x.clickDistance(C)}return{update:k,destroy:w,setViewport:B,setViewportConstrained:O,getViewport:H,scaleTo:I,scaleBy:K,setScaleExtent:L,setTranslateExtent:q,syncViewport:R,setClickDistance:X}}var $s;(function(e){e.Line="line",e.Handle="handle"})($s||($s={}));function YI({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:s,affectsY:o}){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&&o&&(h[1]=h[1]*-1),h}function Qv(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 ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function Kc(e,t,i){return Math.max(0,t-e,e-i)}function Wv(e,t){return e?!t:t}function XI(e,t,i,a,s,o,c,d){let{affectsX:h,affectsY:f}=t;const{isHorizontal:p,isVertical:m}=t,y=p&&m,{xSnapped:x,ySnapped:_}=i,{minWidth:N,maxWidth:S,minHeight:E,maxHeight:k}=a,{x:w,y:O,width:B,height:R,aspectRatio:H}=e;let I=Math.floor(p?x-e.pointerX:0),K=Math.floor(m?_-e.pointerY:0);const L=B+(h?-I:I),q=R+(f?-K:K),X=-o[0]*B,G=-o[1]*R;let C=Kc(L,N,S),j=Kc(q,E,k);if(c){let Y=0,Z=0;h&&I<0?Y=ea(w+I+X,c[0][0]):!h&&I>0&&(Y=ta(w+L+X,c[1][0])),f&&K<0?Z=ea(O+K+G,c[0][1]):!f&&K>0&&(Z=ta(O+q+G,c[1][1])),C=Math.max(C,Y),j=Math.max(j,Z)}if(d){let Y=0,Z=0;h&&I>0?Y=ta(w+I,d[0][0]):!h&&I<0&&(Y=ea(w+L,d[1][0])),f&&K>0?Z=ta(O+K,d[0][1]):!f&&K<0&&(Z=ea(O+q,d[1][1])),C=Math.max(C,Y),j=Math.max(j,Z)}if(s){if(p){const Y=Kc(L/H,E,k)*H;if(C=Math.max(C,Y),c){let Z=0;!h&&!f||h&&!f&&y?Z=ta(O+G+L/H,c[1][1])*H:Z=ea(O+G+(h?I:-I)/H,c[0][1])*H,C=Math.max(C,Z)}if(d){let Z=0;!h&&!f||h&&!f&&y?Z=ea(O+L/H,d[1][1])*H:Z=ta(O+(h?I:-I)/H,d[0][1])*H,C=Math.max(C,Z)}}if(m){const Y=Kc(q*H,N,S)/H;if(j=Math.max(j,Y),c){let Z=0;!h&&!f||f&&!h&&y?Z=ta(w+q*H+X,c[1][0])/H:Z=ea(w+(f?K:-K)*H+X,c[0][0])/H,j=Math.max(j,Z)}if(d){let Z=0;!h&&!f||f&&!h&&y?Z=ea(w+q*H,d[1][0])/H:Z=ta(w+(f?K:-K)*H,d[0][0])/H,j=Math.max(j,Z)}}}K=K+(K<0?j:-j),I=I+(I<0?C:-C),s&&(y?L>q*H?K=(Wv(h,f)?-I:I)/H:I=(Wv(h,f)?-K:K)*H:p?(K=I/H,f=h):(I=K*H,h=f));const M=h?w+I:w,U=f?O+K:O;return{width:B+(h?-I:I),height:R+(f?-K:K),x:o[0]*I*(h?-1:1)+M,y:o[1]*K*(f?-1:1)+U}}const Hw={width:0,height:0,x:0,y:0},KI={...Hw,pointerX:0,pointerY:0,aspectRatio:1};function ZI(e,t,i){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,d=i[0]*o,h=i[1]*c;return[[a-d,s-h],[a+o-d,s+c-h]]}function QI({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:s}){const o=ni(e);let c={controlDirection:Qv("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:p,keepAspectRatio:m,resizeDirection:y,onResizeStart:x,onResize:_,onResizeEnd:N,shouldResize:S}){let E={...Hw},k={...KI};c={boundaries:p,resizeDirection:y,keepAspectRatio:m,controlDirection:Qv(f)};let w,O=null,B=[],R,H,I,K=!1;const L=KE().on("start",q=>{const{nodeLookup:X,transform:G,snapGrid:C,snapToGrid:j,nodeOrigin:M,paneDomNode:U}=i();if(w=X.get(t),!w)return;O=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:Y,ySnapped:Z}=Jl(q.sourceEvent,{transform:G,snapGrid:C,snapToGrid:j,containerBounds:O});E={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},k={...E,pointerX:Y,pointerY:Z,aspectRatio:E.width/E.height},R=void 0,H=Ua(w.extent)?w.extent:void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(R=X.get(w.parentId)),R&&w.extent==="parent"&&(H=[[0,0],[R.measured.width,R.measured.height]]),B=[],I=void 0;for(const[A,z]of X)if(z.parentId===t&&(B.push({id:A,position:{...z.position},extent:z.extent}),z.extent==="parent"||z.expandParent)){const V=ZI(z,w,z.origin??M);I?I=[[Math.min(V[0][0],I[0][0]),Math.min(V[0][1],I[0][1])],[Math.max(V[1][0],I[1][0]),Math.max(V[1][1],I[1][1])]]:I=V}x==null||x(q,{...E})}).on("drag",q=>{const{transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j}=i(),M=Jl(q.sourceEvent,{transform:X,snapGrid:G,snapToGrid:C,containerBounds:O}),U=[];if(!w)return;const{x:Y,y:Z,width:A,height:z}=E,V={},D=w.origin??j,{width:F,height:$,x:Q,y:J}=XI(k,c.controlDirection,M,c.boundaries,c.keepAspectRatio,D,H,I),W=F!==A,ee=$!==z,ce=Q!==Y&&W,fe=J!==Z&ⅇif(!ce&&!fe&&!W&&!ee)return;if((ce||fe||D[0]===1||D[1]===1)&&(V.x=ce?Q:E.x,V.y=fe?J:E.y,E.x=V.x,E.y=V.y,B.length>0)){const Le=Q-Y,$e=J-Z;for(const st of B)st.position={x:st.position.x-Le+D[0]*(F-A),y:st.position.y-$e+D[1]*($-z)},U.push(st)}if((W||ee)&&(V.width=W&&(!c.resizeDirection||c.resizeDirection==="horizontal")?F:E.width,V.height=ee&&(!c.resizeDirection||c.resizeDirection==="vertical")?$:E.height,E.width=V.width,E.height=V.height),R&&w.expandParent){const Le=D[0]*(V.width??0);V.x&&V.x{K&&(N==null||N(q,{...E}),s==null||s({...E}),K=!1)});o.call(L)}function h(){o.on(".drag",null)}return{update:d,destroy:h}}var cp={exports:{}},up={},dp={exports:{}},fp={};/** - * @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 Jv;function WI(){if(Jv)return fp;Jv=1;var e=po();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function d(m,y){var x=y(),_=a({inst:{value:x,getSnapshot:y}}),N=_[0].inst,S=_[1];return o(function(){N.value=x,N.getSnapshot=y,h(N)&&S({inst:N})},[m,x,y]),s(function(){return h(N)&&S({inst:N}),m(function(){h(N)&&S({inst:N})})},[m]),c(x),x}function h(m){var y=m.getSnapshot;m=m.value;try{var x=y();return!i(m,x)}catch{return!0}}function f(m,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return fp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,fp}var e1;function JI(){return e1||(e1=1,dp.exports=WI()),dp.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 t1;function e6(){if(t1)return up;t1=1;var e=po(),t=JI();function i(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var a=typeof Object.is=="function"?Object.is:i,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,d=e.useMemo,h=e.useDebugValue;return up.useSyncExternalStoreWithSelector=function(f,p,m,y,x){var _=o(null);if(_.current===null){var N={hasValue:!1,value:null};_.current=N}else N=_.current;_=d(function(){function E(R){if(!k){if(k=!0,w=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(w,R))return H;var I=y(R);return x!==void 0&&x(H,I)?(w=R,H):(w=R,O=I)}var k=!1,w,O,B=m===void 0?null:m;return[function(){return E(p())},B===null?void 0:function(){return E(B())}]},[p,m,y,x]);var S=s(f,_[0],_[1]);return c(function(){N.hasValue=!0,N.value=S},[S]),h(S),S},up}var n1;function t6(){return n1||(n1=1,cp.exports=e6()),cp.exports}var n6=t6();const i6=ho(n6),r6={},i1=e=>{let t;const i=new Set,a=(p,m)=>{const y=typeof p=="function"?p(t):p;if(!Object.is(y,t)){const x=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),i.forEach(_=>_(t,x))}},s=()=>t,h={setState:a,getState:s,getInitialState:()=>f,subscribe:p=>(i.add(p),()=>i.delete(p)),destroy:()=>{(r6?"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},a6=e=>e?i1(e):i1,{useDebugValue:s6}=$k,{useSyncExternalStoreWithSelector:l6}=i6,o6=e=>e;function $w(e,t=o6,i){const a=l6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return s6(a),a}const r1=(e,t)=>{const i=a6(e),a=(s,o=t)=>$w(i,s,o);return Object.assign(a,i),a},c6=(e,t)=>e?r1(e,t):r1;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}W1();const Uu=re.createContext(null),u6=Uu.Provider,qw=Mi.error001("react");function dt(e,t){const i=re.useContext(Uu);if(i===null)throw new Error(qw);return $w(i,e,t)}function zt(){const e=re.useContext(Uu);if(e===null)throw new Error(qw);return re.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const a1={display:"none"},d6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Pw="react-flow__node-desc",Fw="react-flow__edge-desc",f6="react-flow__aria-live",h6=e=>e.ariaLiveMessage,p6=e=>e.ariaLabelConfig;function m6({rfId:e}){const t=dt(h6);return b.jsx("div",{id:`${f6}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:d6,children:t})}function g6({rfId:e,disableKeyboardA11y:t}){const i=dt(p6);return b.jsxs(b.Fragment,{children:[b.jsx("div",{id:`${Pw}-${e}`,style:a1,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),b.jsx("div",{id:`${Fw}-${e}`,style:a1,children:i["edge.a11yDescription.default"]}),!t&&b.jsx(m6,{rfId:e})]})}const Hu=re.forwardRef(({position:e="top-left",children:t,className:i,style:a,...s},o)=>{const c=`${e}`.split("-");return b.jsx("div",{className:ln(["react-flow__panel",i,...c]),style:a,ref:o,...s,children:t})});Hu.displayName="Panel";const s1="https://reactflow.dev?utm_source=attribution";function b6({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:b.jsx(Hu,{position:t,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${s1}`,children:b.jsx("a",{href:s1,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const x6=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}},Zc=e=>e.id;function y6(e,t){return qt(e.selectedNodes.map(Zc),t.selectedNodes.map(Zc))&&qt(e.selectedEdges.map(Zc),t.selectedEdges.map(Zc))}function v6({onSelectionChange:e}){const t=zt(),{selectedNodes:i,selectedEdges:a}=dt(x6,y6);return re.useEffect(()=>{const s={nodes:i,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[i,a,e]),null}const _6=e=>!!e.onSelectionChangeHandlers;function E6({onSelectionChange:e}){const t=dt(_6);return e||t?b.jsx(v6,{onSelectionChange:e}):null}const Gw=[0,0],w6={x:0,y:0,zoom:1},N6=["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"],l1=[...N6,"rfId"],S6=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}),o1={translateExtent:lo,nodeOrigin:Gw,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function k6(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:d,setDefaultNodesAndEdges:h}=dt(S6,qt),f=zt();re.useEffect(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=o1,d()}),[]);const p=re.useRef(o1);return re.useEffect(()=>{for(const m of l1){const y=e[m],x=p.current[m];y!==x&&(typeof e[m]>"u"||(m==="nodes"?t(y):m==="edges"?i(y):m==="minZoom"?a(y):m==="maxZoom"?s(y):m==="translateExtent"?o(y):m==="nodeExtent"?c(y):m==="ariaLabelConfig"?f.setState({ariaLabelConfig:uI(y)}):m==="fitView"?f.setState({fitViewQueued:y}):m==="fitViewOptions"?f.setState({fitViewOptions:y}):f.setState({[m]:y})))}p.current=e},l1.map(m=>e[m])),null}function c1(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function T6(e){var a;const[t,i]=re.useState(e==="system"?null:e);return re.useEffect(()=>{if(e!=="system"){i(e);return}const s=c1(),o=()=>i(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=c1())!=null&&a.matches?"dark":"light"}const u1=typeof document<"u"?document:null;function fo(e=null,t={target:u1,actInsideInputWithModifier:!0}){const[i,a]=re.useState(!1),s=re.useRef(!1),o=re.useRef(new Set([])),[c,d]=re.useMemo(()=>{if(e!==null){const f=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",` -`).replace(` - -`,` -+`).split(` -`)),p=f.reduce((m,y)=>m.concat(...y),[]);return[f,p]}return[[],[]]},[e]);return re.useEffect(()=>{const h=(t==null?void 0:t.target)??u1,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const p=x=>{var S,E;if(s.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!s.current||s.current&&!f)&&Nw(x))return!1;const N=f1(x.code,d);if(o.current.add(x[N]),d1(c,o.current,!1)){const k=((E=(S=x.composedPath)==null?void 0:S.call(x))==null?void 0:E[0])||x.target,w=(k==null?void 0:k.nodeName)==="BUTTON"||(k==null?void 0:k.nodeName)==="A";t.preventDefault!==!1&&(s.current||!w)&&x.preventDefault(),a(!0)}},m=x=>{const _=f1(x.code,d);d1(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(x[_]),x.key==="Meta"&&o.current.clear(),s.current=!1},y=()=>{o.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",p),h==null||h.addEventListener("keyup",m),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{h==null||h.removeEventListener("keydown",p),h==null||h.removeEventListener("keyup",m),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,a]),i}function d1(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function f1(e,t){return t.includes(e)?"code":"key"}const A6=()=>{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,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},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:o,maxZoom:c,panZoom:d}=e.getState(),h=Hm(t,a,s,o,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:o,domNode:c}=e.getState();if(!c)return t;const{x:d,y:h}=c.getBoundingClientRect(),f={x:t.x-d,y:t.y-h},p=i.snapGrid??s,m=i.snapToGrid??o;return wo(f,a,m,p)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=Hs(t,i);return{x:c.x+s,y:c.y+o}}}),[])};function Vw(e,t){const i=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){i.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const d={...o};for(const h of c)C6(h,d);i.push(d)}return s.length&&s.forEach(o=>{o.index!==void 0?i.splice(o.index,0,{...o.item}):i.push({...o.item})}),i}function C6(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 Yw(e,t){return Vw(e,t)}function Xw(e,t){return Vw(e,t)}function Ma(e,t){return{id:e,type:"select",selected:t}}function As(e,t=new Set,i=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(i&&(o.selected=c),a.push(Ma(o.id,c)))}return a}function h1({items:e=[],lookup:t}){var s;const i=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,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:o})}for(const[o]of t)a.get(o)===void 0&&i.push({id:o,type:"remove"});return i}function p1(e){return{id:e.id,type:"remove"}}const M6=vw();function O6(e,t,i={}){return gI(e,t,{...i,onError:i.onError??M6})}const m1=e=>tI(e),R6=e=>mw(e);function Kw(e){return re.forwardRef(e)}const Zw=typeof window<"u"?re.useLayoutEffect:re.useEffect;function g1(e){const[t,i]=re.useState(BigInt(0)),[a]=re.useState(()=>D6(()=>i(s=>s+BigInt(1))));return Zw(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function D6(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const Qw=re.createContext(null);function L6({children:e}){const t=zt(),i=re.useCallback(d=>{const{nodes:h=[],setNodes:f,hasDefaultNodes:p,onNodesChange:m,nodeLookup:y,fitViewQueued:x,onNodesChangeMiddlewareMap:_}=t.getState();let N=h;for(const E of d)N=typeof E=="function"?E(N):E;let S=h1({items:N,lookup:y});for(const E of _.values())S=E(S);p&&f(N),S.length>0?m==null||m(S):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:k,setNodes:w}=t.getState();E&&w(k)})},[]),a=g1(i),s=re.useCallback(d=>{const{edges:h=[],setEdges:f,hasDefaultEdges:p,onEdgesChange:m,edgeLookup:y}=t.getState();let x=h;for(const _ of d)x=typeof _=="function"?_(x):_;p?f(x):m&&m(h1({items:x,lookup:y}))},[]),o=g1(s),c=re.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return b.jsx(Qw.Provider,{value:c,children:e})}function z6(){const e=re.useContext(Qw);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const j6=e=>!!e.panZoom;function No(){const e=A6(),t=zt(),i=z6(),a=dt(j6),s=re.useMemo(()=>{const o=m=>t.getState().nodeLookup.get(m),c=m=>{i.nodeQueue.push(m)},d=m=>{i.edgeQueue.push(m)},h=m=>{var E,k;const{nodeLookup:y,nodeOrigin:x}=t.getState(),_=m1(m)?m:y.get(m.id),N=_.parentId?Ew(_.position,_.measured,_.parentId,y,x):_.position,S={..._,position:N,width:((E=_.measured)==null?void 0:E.width)??_.width,height:((k=_.measured)==null?void 0:k.height)??_.height};return co(S)},f=(m,y,x={replace:!1})=>{c(_=>_.map(N=>{if(N.id===m){const S=typeof y=="function"?y(N):y;return x.replace&&m1(S)?S:{...N,...S}}return N}))},p=(m,y,x={replace:!1})=>{d(_=>_.map(N=>{if(N.id===m){const S=typeof y=="function"?y(N):y;return x.replace&&R6(S)?S:{...N,...S}}return N}))};return{getNodes:()=>t.getState().nodes.map(m=>({...m})),getNode:m=>{var y;return(y=o(m))==null?void 0:y.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:m=[]}=t.getState();return m.map(y=>({...y}))},getEdge:m=>t.getState().edgeLookup.get(m),setNodes:c,setEdges:d,addNodes:m=>{const y=Array.isArray(m)?m:[m];i.nodeQueue.push(x=>[...x,...y])},addEdges:m=>{const y=Array.isArray(m)?m:[m];i.edgeQueue.push(x=>[...x,...y])},toObject:()=>{const{nodes:m=[],edges:y=[],transform:x}=t.getState(),[_,N,S]=x;return{nodes:m.map(E=>({...E})),edges:y.map(E=>({...E})),viewport:{x:_,y:N,zoom:S}}},deleteElements:async({nodes:m=[],edges:y=[]})=>{const{nodes:x,edges:_,onNodesDelete:N,onEdgesDelete:S,triggerNodeChanges:E,triggerEdgeChanges:k,onDelete:w,onBeforeDelete:O}=t.getState(),{nodes:B,edges:R}=await sI({nodesToRemove:m,edgesToRemove:y,nodes:x,edges:_,onBeforeDelete:O}),H=R.length>0,I=B.length>0;if(H){const K=R.map(p1);S==null||S(R),k(K)}if(I){const K=B.map(p1);N==null||N(B),E(K)}return(I||H)&&(w==null||w({nodes:B,edges:R})),{deletedNodes:B,deletedEdges:R}},getIntersectingNodes:(m,y=!0,x)=>{const _=Hv(m),N=_?m:h(m),S=x!==void 0;return N?(x||t.getState().nodes).filter(E=>{const k=t.getState().nodeLookup.get(E.id);if(k&&!_&&(E.id===m.id||!k.internals.positionAbsolute))return!1;const w=co(S?E:k),O=_u(w,N);return y&&O>0||O>=w.width*w.height||O>=N.width*N.height}):[]},isNodeIntersecting:(m,y,x=!0)=>{const N=Hv(m)?m:h(m);if(!N)return!1;const S=_u(N,y);return x&&S>0||S>=y.width*y.height||S>=N.width*N.height},updateNode:f,updateNodeData:(m,y,x={replace:!1})=>{f(m,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},updateEdge:p,updateEdgeData:(m,y,x={replace:!1})=>{p(m,_=>{const N=typeof y=="function"?y(_):y;return x.replace?{..._,data:N}:{..._,data:{..._.data,...N}}},x)},getNodesBounds:m=>{const{nodeLookup:y,nodeOrigin:x}=t.getState();return nI(m,{nodeLookup:y,nodeOrigin:x})},getHandleConnections:({type:m,id:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}-${m}${y?`-${y}`:""}`))==null?void 0:_.values())??[])},getNodeConnections:({type:m,handleId:y,nodeId:x})=>{var _;return Array.from(((_=t.getState().connectionLookup.get(`${x}${m?y?`-${m}-${y}`:`-${m}`:""}`))==null?void 0:_.values())??[])},fitView:async m=>{const y=t.getState().fitViewResolver??cI();return t.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:y}),i.nodeQueue.push(x=>[...x]),y.promise}}},[]);return re.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const b1=e=>e.selected,I6=typeof window<"u"?window:void 0;function B6({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=zt(),{deleteElements:a}=No(),s=fo(e,{actInsideInputWithModifier:!1}),o=fo(t,{target:I6});re.useEffect(()=>{if(s){const{edges:c,nodes:d}=i.getState();a({nodes:d.filter(b1),edges:c.filter(b1)}),i.setState({nodesSelectionActive:!1})}},[s]),re.useEffect(()=>{i.setState({multiSelectionActive:o})},[o])}function U6(e){const t=zt();re.useEffect(()=>{const i=()=>{var s,o,c,d;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=$m(e.current);(a.height===0||a.width===0)&&((d=(c=t.getState()).onError)==null||d.call(c,"004",Mi.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 $u={position:"absolute",width:"100%",height:"100%",top:0,left:0},H6=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function $6({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=La.Free,zoomOnDoubleClick:c=!0,panOnDrag:d=!0,defaultViewport:h,translateExtent:f,minZoom:p,maxZoom:m,zoomActivationKeyCode:y,preventScrolling:x=!0,children:_,noWheelClassName:N,noPanClassName:S,onViewportChange:E,isControlledViewport:k,paneClickDistance:w,selectionOnDrag:O}){const B=zt(),R=re.useRef(null),{userSelectionActive:H,lib:I,connectionInProgress:K}=dt(H6,qt),L=fo(y),q=re.useRef();U6(R);const X=re.useCallback(G=>{E==null||E({x:G[0],y:G[1],zoom:G[2]}),k||B.setState({transform:G})},[E,k]);return re.useEffect(()=>{if(R.current){q.current=VI({domNode:R.current,minZoom:p,maxZoom:m,translateExtent:f,viewport:h,onDraggingChange:M=>B.setState(U=>U.paneDragging===M?U:{paneDragging:M}),onPanZoomStart:(M,U)=>{const{onViewportChangeStart:Y,onMoveStart:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)},onPanZoom:(M,U)=>{const{onViewportChange:Y,onMove:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)},onPanZoomEnd:(M,U)=>{const{onViewportChangeEnd:Y,onMoveEnd:Z}=B.getState();Z==null||Z(M,U),Y==null||Y(U)}});const{x:G,y:C,zoom:j}=q.current.getViewport();return B.setState({panZoom:q.current,transform:[G,C,j],domNode:R.current.closest(".react-flow")}),()=>{var M;(M=q.current)==null||M.destroy()}}},[]),re.useEffect(()=>{var G;(G=q.current)==null||G.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:d,zoomActivationKeyPressed:L,preventScrolling:x,noPanClassName:S,userSelectionActive:H,noWheelClassName:N,lib:I,onTransformChange:X,connectionInProgress:K,selectionOnDrag:O,paneClickDistance:w})},[e,t,i,a,s,o,c,d,L,x,S,H,N,I,X,K,O,w]),b.jsx("div",{className:"react-flow__renderer",ref:R,style:$u,children:_})}const q6=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function P6(){const{userSelectionActive:e,userSelectionRect:t}=dt(q6,qt);return e&&t?b.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 hp=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},F6=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function G6({isSelecting:e,selectionKeyPressed:t,selectionMode:i=oo.Full,panOnDrag:a,autoPanOnSelection:s,paneClickDistance:o,selectionOnDrag:c,onSelectionStart:d,onSelectionEnd:h,onPaneClick:f,onPaneContextMenu:p,onPaneScroll:m,onPaneMouseEnter:y,onPaneMouseMove:x,onPaneMouseLeave:_,children:N}){const S=re.useRef(0),E=zt(),{userSelectionActive:k,elementsSelectable:w,dragging:O,panBy:B,autoPanSpeed:R}=dt(F6,qt),H=w&&(e||k),I=re.useRef(null),K=re.useRef(),L=re.useRef(new Set),q=re.useRef(new Set),X=re.useRef(!1),G=re.useRef(!1),C=re.useRef({x:0,y:0}),j=re.useRef(!1),M=W=>{if(G.current||X.current||E.getState().connection.inProgress){G.current=!1,X.current=!1;return}f==null||f(W),E.getState().resetSelectedElements(),E.setState({nodesSelectionActive:!1})},U=W=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){W.preventDefault();return}p==null||p(W)},Y=m?W=>m(W):void 0,Z=W=>{G.current&&(W.stopPropagation(),G.current=!1)},A=W=>{var st,Rt;const{domNode:ee,transform:ce}=E.getState();if(K.current=ee==null?void 0:ee.getBoundingClientRect(),!K.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),G.current=!1;const{x:Ne,y:Le}=Ai(W.nativeEvent,K.current),$e=wo({x:Ne,y:Le},ce);E.setState({userSelectionRect:{width:0,height:0,startX:$e.x,startY:$e.y,x:Ne,y:Le}}),fe||(W.stopPropagation(),W.preventDefault())};function z(W,ee){const{userSelectionRect:ce}=E.getState();if(!ce)return;const{transform:fe,nodeLookup:be,edgeLookup:Ee,connectionLookup:Ne,triggerNodeChanges:Le,triggerEdgeChanges:$e,defaultEdgeOptions:st}=E.getState(),Rt={x:ce.startX,y:ce.startY},{x:Yt,y:Pt}=Hs(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 L.current){const ue=Ne.get(It);if(ue)for(const{edgeId:xe}of ue.values()){const Oe=Ee.get(xe);Oe&&(Oe.selectable??ct)&&q.current.add(xe)}}if(!$v(Vn,L.current)){const It=As(be,L.current,!0);Le(It)}if(!$v(En,q.current)){const It=As(Ee,q.current);$e(It)}E.setState({userSelectionRect:Xt,userSelectionActive:!0,nodesSelectionActive:!1})}function V(){if(!s||!K.current)return;const[W,ee]=Um(C.current,K.current,R);B({x:W,y:ee}).then(ce=>{if(!G.current||!ce){S.current=requestAnimationFrame(V);return}const{x:fe,y:be}=C.current;z(fe,be),S.current=requestAnimationFrame(V)})}const D=()=>{cancelAnimationFrame(S.current),S.current=0,j.current=!1};re.useEffect(()=>()=>D(),[]);const F=W=>{const{userSelectionRect:ee,transform:ce,resetSelectedElements:fe}=E.getState();if(!K.current||!ee)return;const{x:be,y:Ee}=Ai(W.nativeEvent,K.current);C.current={x:be,y:Ee};const Ne=Hs({x:ee.startX,y:ee.startY},ce);if(!G.current){const Le=t?0:o;if(Math.hypot(be-Ne.x,Ee-Ne.y)<=Le)return;fe(),d==null||d(W)}G.current=!0,j.current||(V(),j.current=!0),z(be,Ee)},$=W=>{var ee,ce;if(!H){W.target===I.current&&E.getState().connection.inProgress&&(X.current=!0);return}W.button===0&&((ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),!k&&W.target===I.current&&E.getState().userSelectionRect&&(M==null||M(W)),E.setState({userSelectionActive:!1,userSelectionRect:null}),G.current&&(h==null||h(W),E.setState({nodesSelectionActive:L.current.size>0})),D())},Q=W=>{var ee,ce;(ce=(ee=W.target)==null?void 0:ee.releasePointerCapture)==null||ce.call(ee,W.pointerId),D()},J=a===!0||Array.isArray(a)&&a.includes(0);return b.jsxs("div",{className:ln(["react-flow__pane",{draggable:J,dragging:O,selection:e}]),onClick:H?void 0:hp(M,I),onContextMenu:hp(U,I),onWheel:hp(Y,I),onPointerEnter:H?void 0:y,onPointerMove:H?F:x,onPointerUp:$,onPointerCancel:H?Q:void 0,onPointerDownCapture:H?A:void 0,onClickCapture:H?Z:void 0,onPointerLeave:_,ref:I,style:$u,children:[N,b.jsx(P6,{})]})}function Yp({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:d,onError:h}=t.getState(),f=d.get(e);if(!f){h==null||h("012",Mi.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(i||f.selected&&c)&&(o({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):s([e])}function Ww({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const d=zt(),[h,f]=re.useState(!1),p=re.useRef();return re.useEffect(()=>{if(!t)return p.current=RI({getStoreItems:()=>d.getState(),onNodeMouseDown:m=>{Yp({id:m,store:d,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}}),()=>{var m;(m=p.current)==null||m.destroy(),p.current=void 0}},[t,d,e]),re.useEffect(()=>{t||!e.current||!p.current||p.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c})},[i,a,t,o,e,s,c]),h}const V6=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function Jw(){const e=zt();return re.useCallback(i=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:d,updateNodePositions:h,nodeLookup:f,nodeOrigin:p}=e.getState(),m=new Map,y=V6(c),x=s?o[0]:5,_=s?o[1]:5,N=i.direction.x*x*i.factor,S=i.direction.y*_*i.factor;for(const[,E]of f){if(!y(E))continue;let k={x:E.internals.positionAbsolute.x+N,y:E.internals.positionAbsolute.y+S};s&&(k=Eo(k,o));const{position:w,positionAbsolute:O}=gw({nodeId:E.id,nextPosition:k,nodeLookup:f,nodeExtent:a,nodeOrigin:p,onError:d});E.position=w,E.internals.positionAbsolute=O,m.set(E.id,E)}h(m)},[])}const Ym=re.createContext(null),Y6=Ym.Provider;Ym.Consumer;const eN=()=>re.useContext(Ym),X6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),tN=re.createContext(null);function K6({children:e}){const t=dt(X6,qt);return b.jsx(tN.Provider,{value:t,children:e})}function Z6(){const e=re.useContext(tN);if(!e)throw new Error("useHandleConfig must be used within a HandleConfigProvider");return e}const Q6={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},W6=(e,t,i)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:d,toHandle:h,isValid:f}=c;if(!d&&!s)return Q6;const p=(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:p,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===i,isPossibleEndHandle:o===Bs.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:p&&f}};function J6({type:e="source",position:t=je.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:d,children:h,className:f,onMouseDown:p,onTouchStart:m,...y},x){var j,M;const _=c||null,N=e==="target",S=zt(),E=eN(),{connectOnClick:k,noPanClassName:w,rfId:O}=Z6(),{connectingFrom:B,connectingTo:R,clickConnecting:H,isPossibleEndHandle:I,connectionInProcess:K,clickConnectionInProcess:L,valid:q}=dt(W6(E,_,e),qt);E||(M=(j=S.getState()).onError)==null||M.call(j,"010",Mi.error010());const X=U=>{const{defaultEdgeOptions:Y,onConnect:Z,hasDefaultEdges:A}=S.getState(),z={...Y,...U};if(A){const{edges:V,setEdges:D,onError:F}=S.getState();D(O6(z,V,{onError:F}))}Z==null||Z(z),d==null||d(z)},G=U=>{if(!E)return;const Y=Sw(U.nativeEvent);if(s&&(Y&&U.button===0||!Y)){const Z=S.getState();Vp.onPointerDown(U.nativeEvent,{handleDomNode:U.currentTarget,autoPanOnConnect:Z.autoPanOnConnect,connectionMode:Z.connectionMode,connectionRadius:Z.connectionRadius,domNode:Z.domNode,nodeLookup:Z.nodeLookup,lib:Z.lib,isTarget:N,handleId:_,nodeId:E,flowId:Z.rfId,panBy:Z.panBy,cancelConnection:Z.cancelConnection,onConnectStart:Z.onConnectStart,onConnectEnd:(...A)=>{var z,V;return(V=(z=S.getState()).onConnectEnd)==null?void 0:V.call(z,...A)},updateConnection:Z.updateConnection,onConnect:X,isValidConnection:i||((...A)=>{var z,V;return((V=(z=S.getState()).isValidConnection)==null?void 0:V.call(z,...A))??!0}),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:Z.autoPanSpeed,dragThreshold:Z.connectionDragThreshold})}Y?p==null||p(U):m==null||m(U)},C=U=>{const{onClickConnectStart:Y,onClickConnectEnd:Z,connectionClickStartHandle:A,connectionMode:z,isValidConnection:V,lib:D,rfId:F,nodeLookup:$,connection:Q}=S.getState();if(!E||!A&&!s)return;if(!A){Y==null||Y(U.nativeEvent,{nodeId:E,handleId:_,handleType:e}),S.setState({connectionClickStartHandle:{nodeId:E,type:e,id:_}});return}const J=ww(U.target),W=i||V,{connection:ee,isValid:ce}=Vp.isValid(U.nativeEvent,{handle:{nodeId:E,id:_,type:e},connectionMode:z,fromNodeId:A.nodeId,fromHandleId:A.id||null,fromType:A.type,isValidConnection:W,flowId:F,doc:J,lib:D,nodeLookup:$});ce&&ee&&X(ee);const fe=structuredClone(Q);delete fe.inProgress,fe.toPosition=fe.toHandle?fe.toHandle.position:null,Z==null||Z(U,fe),S.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":_,"data-nodeid":E,"data-handlepos":t,"data-id":`${O}-${E}-${_}-${e}`,className:ln(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",w,f,{source:!N,target:N,connectable:a,connectablestart:s,connectableend:o,clickconnecting:H,connectingfrom:B,connectingto:R,valid:q,connectionindicator:a&&(!K||I)&&(K||L?o:s)}]),onMouseDown:G,onTouchStart:G,onClick:k?C:void 0,ref:x,...y,children:h})}const qs=re.memo(Kw(J6));function e8({data:e,isConnectable:t,sourcePosition:i=je.Bottom}){return b.jsxs(b.Fragment,{children:[e==null?void 0:e.label,b.jsx(qs,{type:"source",position:i,isConnectable:t})]})}function t8({data:e,isConnectable:t,targetPosition:i=je.Top,sourcePosition:a=je.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(qs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,b.jsx(qs,{type:"source",position:a,isConnectable:t})]})}function n8(){return null}function i8({data:e,isConnectable:t,targetPosition:i=je.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(qs,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const Eu={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},x1={input:e8,default:t8,output:i8,group:n8};function r8(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 a8=e=>{const{width:t,height:i,x:a,y:s}=_o(e.nodeLookup,{filter:o=>!!o.selected});return{width:Ti(t)?t:null,height:Ti(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 s8({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=zt(),{width:s,height:o,transformString:c,userSelectionActive:d}=dt(a8,qt),h=Jw(),f=re.useRef(null);re.useEffect(()=>{var x;i||(x=f.current)==null||x.focus({preventScroll:!0})},[i]);const p=!d&&s!==null&&o!==null;if(Ww({nodeRef:f,disabled:!p}),!p)return null;const m=e?x=>{const _=a.getState().nodes.filter(N=>N.selected);e(x,_)}:void 0,y=x=>{Object.prototype.hasOwnProperty.call(Eu,x.key)&&(x.preventDefault(),h({direction:Eu[x.key],factor:x.shiftKey?4:1}))};return b.jsx("div",{className:ln(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:b.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:m,tabIndex:i?void 0:-1,onKeyDown:i?void 0:y,style:{width:s,height:o}})})}const y1=typeof window<"u"?window:void 0,l8=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function nN({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:d,deleteKeyCode:h,selectionKeyCode:f,selectionOnDrag:p,selectionMode:m,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:_,panActivationKeyCode:N,zoomActivationKeyCode:S,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:O,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:I,autoPanOnSelection:K,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:G,preventScrolling:C,onSelectionContextMenu:j,noWheelClassName:M,noPanClassName:U,disableKeyboardA11y:Y,onViewportChange:Z,isControlledViewport:A}){const{nodesSelectionActive:z,userSelectionActive:V}=dt(l8,qt),D=fo(f,{target:y1}),F=fo(N,{target:y1}),$=F||I,Q=F||O,J=p&&$!==!0,W=D||V||J;return B6({deleteKeyCode:h,multiSelectionKeyCode:_}),b.jsx($6,{onPaneContextMenu:o,elementsSelectable:E,zoomOnScroll:k,zoomOnPinch:w,panOnScroll:Q,panOnScrollSpeed:B,panOnScrollMode:R,zoomOnDoubleClick:H,panOnDrag:!D&&$,defaultViewport:L,translateExtent:q,minZoom:X,maxZoom:G,zoomActivationKeyCode:S,preventScrolling:C,noWheelClassName:M,noPanClassName:U,onViewportChange:Z,isControlledViewport:A,paneClickDistance:d,selectionOnDrag:J,children:b.jsxs(G6,{onSelectionStart:y,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:$,autoPanOnSelection:K,isSelecting:!!W,selectionMode:m,selectionKeyPressed:D,paneClickDistance:d,selectionOnDrag:J,children:[e,z&&b.jsx(s8,{onSelectionContextMenu:j,noPanClassName:U,disableKeyboardA11y:Y})]})})}nN.displayName="FlowRenderer";const o8=re.memo(nN),c8=e=>t=>e?Bm(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 u8(e){return dt(re.useCallback(c8(e),[e]),qt)}const d8=e=>e.updateNodeInternals;function f8(){const e=dt(d8),[t]=re.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return re.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function h8({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const s=zt(),o=re.useRef(null),c=re.useRef(null),d=re.useRef(e.sourcePosition),h=re.useRef(e.targetPosition),f=re.useRef(t),p=i&&!!e.internals.handleBounds;return re.useEffect(()=>{o.current&&!e.hidden&&(!p||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[p,e.hidden]),re.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),re.useEffect(()=>{if(o.current){const m=f.current!==t,y=d.current!==e.sourcePosition,x=h.current!==e.targetPosition;(m||y||x)&&(f.current=t,d.current=e.sourcePosition,h.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function p8({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:d,elementsSelectable:h,nodesConnectable:f,nodesFocusable:p,resizeObserver:m,noDragClassName:y,noPanClassName:x,disableKeyboardA11y:_,rfId:N,nodeTypes:S,nodeClickDistance:E,onError:k}){const{node:w,internals:O,isParent:B}=dt(W=>{const ee=W.nodeLookup.get(e),ce=W.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:ce}},qt);let R=w.type||"default",H=(S==null?void 0:S[R])||x1[R];H===void 0&&(k==null||k("003",Mi.error003(R)),R="default",H=(S==null?void 0:S.default)||x1.default);const I=!!(w.draggable||d&&typeof w.draggable>"u"),K=!!(w.selectable||h&&typeof w.selectable>"u"),L=!!(w.connectable||f&&typeof w.connectable>"u"),q=!!(w.focusable||p&&typeof w.focusable>"u"),X=zt(),G=_w(w),C=h8({node:w,nodeType:R,hasDimensions:G,resizeObserver:m}),j=Ww({nodeRef:C,disabled:w.hidden||!I,noDragClassName:y,handleSelector:w.dragHandle,nodeId:e,isSelectable:K,nodeClickDistance:E}),M=Jw();if(w.hidden)return null;const U=Yi(w),Y=r8(w),Z=K||I||t||i||a||s,A=i?W=>i(W,{...O.userNode}):void 0,z=a?W=>a(W,{...O.userNode}):void 0,V=s?W=>s(W,{...O.userNode}):void 0,D=o?W=>o(W,{...O.userNode}):void 0,F=c?W=>c(W,{...O.userNode}):void 0,$=W=>{const{selectNodesOnDrag:ee,nodeDragThreshold:ce}=X.getState();K&&(!ee||!I||ce>0)&&Yp({id:e,store:X,nodeRef:C}),t&&t(W,{...O.userNode})},Q=W=>{if(!(Nw(W.nativeEvent)||_)){if(dw.includes(W.key)&&K){const ee=W.key==="Escape";Yp({id:e,store:X,unselect:ee,nodeRef:C})}else if(I&&w.selected&&Object.prototype.hasOwnProperty.call(Eu,W.key)){W.preventDefault();const{ariaLabelConfig:ee}=X.getState();X.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:W.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),M({direction:Eu[W.key],factor:W.shiftKey?4:1})}}},J=()=>{var Ne;if(_||!((Ne=C.current)!=null&&Ne.matches(":focus-visible")))return;const{transform:W,width:ee,height:ce,autoPanOnNodeFocus:fe,setCenter:be}=X.getState();if(!fe)return;Bm(new Map([[e,w]]),{x:0,y:0,width:ee,height:ce},W,!0).length>0||be(w.position.x+U.width/2,w.position.y+U.height/2,{zoom:W[2]})};return b.jsx("div",{className:ln(["react-flow__node",`react-flow__node-${R}`,{[x]:I},w.className,{selected:w.selected,selectable:K,parent:B,draggable:I,dragging:j}]),ref:C,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:Z?"all":"none",visibility:G?"visible":"hidden",...w.style,...Y},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:A,onMouseMove:z,onMouseLeave:V,onContextMenu:D,onClick:$,onDoubleClick:F,onKeyDown:q?Q:void 0,tabIndex:q?0:void 0,onFocus:q?J:void 0,role:w.ariaRole??(q?"group":void 0),"aria-roledescription":"node","aria-describedby":_?void 0:`${Pw}-${N}`,"aria-label":w.ariaLabel,...w.domAttributes,children:b.jsx(Y6,{value:e,children:b.jsx(H,{id:e,data:w.data,type:R,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:w.selected??!1,selectable:K,draggable:I,deletable:w.deletable??!0,isConnectable:L,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:j,dragHandle:w.dragHandle,zIndex:O.z,parentId:w.parentId,...U})})})}var m8=re.memo(p8);const g8=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function iN(e){const{nodesConnectable:t,nodesFocusable:i,elementsSelectable:a,onError:s}=dt(g8,qt),o=u8(e.onlyRenderVisibleElements),c=f8();return b.jsx("div",{className:"react-flow__nodes",style:$u,children:o.map(d=>b.jsx(m8,{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))})}iN.displayName="NodeRenderer";const b8=re.memo(iN);function x8(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 o=i.nodeLookup.get(s.source),c=i.nodeLookup.get(s.target);o&&c&&hI({sourceNode:o,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(s.id)}return a},[e]),qt)}const y8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return b.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},v8=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return b.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},v1={[yu.Arrow]:y8,[yu.ArrowClosed]:v8};function _8(e){const t=zt();return re.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(v1,e)?v1[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Mi.error009(e)),null)},[e])}const E8=({id:e,type:t,color:i,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:d="auto-start-reverse"})=>{const h=_8(t);return h?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:d,refX:"0",refY:"0",children:b.jsx(h,{color:i,strokeWidth:c})}):null},rN=({defaultColor:e,rfId:t})=>{const i=dt(o=>o.edges),a=dt(o=>o.defaultEdgeOptions),s=re.useMemo(()=>_I(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?b.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:b.jsx("defs",{children:s.map(o=>b.jsx(E8,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};rN.displayName="MarkerDefinitions";var w8=re.memo(rN);function aN({x:e,y:t,label:i,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:d=2,children:h,className:f,...p}){const[m,y]=re.useState({x:1,y:0,width:0,height:0}),x=ln(["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?b.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:x,visibility:m.width?"visible":"hidden",...p,children:[s&&b.jsx("rect",{width:m.width+2*c[0],x:-c[0],y:-c[1],height:m.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:d,ry:d}),b.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:_,style:a,children:i}),h]}):null}aN.displayName="EdgeText";const N8=re.memo(aN);function qu({path:e,labelX:t,labelY:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h,interactionWidth:f=20,...p}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...p,d:e,fill:"none",className:ln(["react-flow__edge-path",p.className])}),f?b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,a&&Ti(t)&&Ti(i)?b.jsx(N8,{x:t,y:i,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function _1({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 sN({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top}){const[c,d]=_1({pos:i,x1:e,y1:t,x2:a,y2:s}),[h,f]=_1({pos:o,x1:a,y1:s,x2:e,y2:t}),[p,m,y,x]=kw({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}`,p,m,y,x]}function lN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:d,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:E})=>{const[k,w,O]=sN({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d}),B=e.isInternal?void 0:t;return b.jsx(qu,{id:B,path:k,labelX:w,labelY:O,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:E})})}const S8=lN({isInternal:!1}),oN=lN({isInternal:!0});S8.displayName="SimpleBezierEdge";oN.displayName="SimpleBezierEdgeInternal";function cN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,sourcePosition:x=je.Bottom,targetPosition:_=je.Top,markerEnd:N,markerStart:S,pathOptions:E,interactionWidth:k})=>{const[w,O,B]=Pp({sourceX:i,sourceY:a,sourcePosition:x,targetX:s,targetY:o,targetPosition:_,borderRadius:E==null?void 0:E.borderRadius,offset:E==null?void 0:E.offset,stepPosition:E==null?void 0:E.stepPosition}),R=e.isInternal?void 0:t;return b.jsx(qu,{id:R,path:w,labelX:O,labelY:B,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:N,markerStart:S,interactionWidth:k})})}const uN=cN({isInternal:!1}),dN=cN({isInternal:!0});uN.displayName="SmoothStepEdge";dN.displayName="SmoothStepEdgeInternal";function fN(e){return re.memo(({id:t,...i})=>{var s;const a=e.isInternal?void 0:t;return b.jsx(uN,{...i,id:a,pathOptions:re.useMemo(()=>{var o;return{borderRadius:0,offset:(o=i.pathOptions)==null?void 0:o.offset}},[(s=i.pathOptions)==null?void 0:s.offset])})})}const k8=fN({isInternal:!1}),hN=fN({isInternal:!0});k8.displayName="StepEdge";hN.displayName="StepEdgeInternal";function pN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:x,markerStart:_,interactionWidth:N})=>{const[S,E,k]=Cw({sourceX:i,sourceY:a,targetX:s,targetY:o}),w=e.isInternal?void 0:t;return b.jsx(qu,{id:w,path:S,labelX:E,labelY:k,label:c,labelStyle:d,labelShowBg:h,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:y,markerEnd:x,markerStart:_,interactionWidth:N})})}const T8=pN({isInternal:!1}),mN=pN({isInternal:!0});T8.displayName="StraightEdge";mN.displayName="StraightEdgeInternal";function gN(e){return re.memo(({id:t,sourceX:i,sourceY:a,targetX:s,targetY:o,sourcePosition:c=je.Bottom,targetPosition:d=je.Top,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,pathOptions:E,interactionWidth:k})=>{const[w,O,B]=Tw({sourceX:i,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:d,curvature:E==null?void 0:E.curvature}),R=e.isInternal?void 0:t;return b.jsx(qu,{id:R,path:w,labelX:O,labelY:B,label:h,labelStyle:f,labelShowBg:p,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:x,style:_,markerEnd:N,markerStart:S,interactionWidth:k})})}const A8=gN({isInternal:!1}),bN=gN({isInternal:!0});A8.displayName="BezierEdge";bN.displayName="BezierEdgeInternal";const E1={default:bN,straight:mN,step:hN,smoothstep:dN,simplebezier:oN},w1={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},C8=(e,t,i)=>i===je.Left?e-t:i===je.Right?e+t:e,M8=(e,t,i)=>i===je.Top?e-t:i===je.Bottom?e+t:e,N1="react-flow__edgeupdater";function S1({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:d}){return b.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:ln([N1,`${N1}-${d}`]),cx:C8(t,a,e),cy:M8(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function O8({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:d,targetPosition:h,onReconnect:f,onReconnectStart:p,onReconnectEnd:m,setReconnecting:y,setUpdateHover:x}){const _=zt(),N=(O,B)=>{if(O.button!==0)return;const{autoPanOnConnect:R,domNode:H,connectionMode:I,connectionRadius:K,lib:L,onConnectStart:q,cancelConnection:X,nodeLookup:G,rfId:C,panBy:j,updateConnection:M}=_.getState(),U=B.type==="target",Y=(z,V)=>{y(!1),m==null||m(z,i,B.type,V)},Z=z=>f==null?void 0:f(i,z),A=(z,V)=>{y(!0),p==null||p(O,i,B.type),q==null||q(z,V)};Vp.onPointerDown(O.nativeEvent,{autoPanOnConnect:R,connectionMode:I,connectionRadius:K,domNode:H,handleId:B.id,nodeId:B.nodeId,nodeLookup:G,isTarget:U,edgeUpdaterType:B.type,lib:L,flowId:C,cancelConnection:X,panBy:j,isValidConnection:(...z)=>{var V,D;return((D=(V=_.getState()).isValidConnection)==null?void 0:D.call(V,...z))??!0},onConnect:Z,onConnectStart:A,onConnectEnd:(...z)=>{var V,D;return(D=(V=_.getState()).onConnectEnd)==null?void 0:D.call(V,...z)},onReconnectEnd:Y,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"}),E=O=>N(O,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),k=()=>x(!0),w=()=>x(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(S1,{position:d,centerX:a,centerY:s,radius:t,onMouseDown:S,onMouseEnter:k,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&b.jsx(S1,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:E,onMouseEnter:k,onMouseOut:w,type:"target"})]})}function R8({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:x,rfId:_,edgeTypes:N,noPanClassName:S,onError:E,disableKeyboardA11y:k}){let w=dt(be=>be.edgeLookup.get(e));const O=dt(be=>be.defaultEdgeOptions);w=O?{...O,...w}:w;let B=w.type||"default",R=(N==null?void 0:N[B])||E1[B];R===void 0&&(E==null||E("011",Mi.error011(B)),B="default",R=(N==null?void 0:N.default)||E1.default);const H=!!(w.focusable||t&&typeof w.focusable>"u"),I=typeof m<"u"&&(w.reconnectable||i&&typeof w.reconnectable>"u"),K=!!(w.selectable||a&&typeof w.selectable>"u"),L=re.useRef(null),[q,X]=re.useState(!1),[G,C]=re.useState(!1),j=zt(),{zIndex:M=w.zIndex,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V}=dt(re.useCallback(be=>{const Ee=be.nodeLookup.get(w.source),Ne=be.nodeLookup.get(w.target);if(!Ee||!Ne)return w1;const Le=vI({id:e,sourceNode:Ee,targetNode:Ne,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:be.connectionMode,onError:E}),$e=fI({selected:w.selected,zIndex:w.zIndex,sourceNode:Ee,targetNode:Ne,elevateOnSelect:be.elevateEdgesOnSelect,zIndexMode:be.zIndexMode});return{...Le||w1,zIndex:$e}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),qt),D=re.useMemo(()=>w.markerStart?`url('#${Fp(w.markerStart,_)}')`:void 0,[w.markerStart,_]),F=re.useMemo(()=>w.markerEnd?`url('#${Fp(w.markerEnd,_)}')`:void 0,[w.markerEnd,_]);if(w.hidden||U===null||Y===null||Z===null||A===null)return null;const $=be=>{var $e;const{addSelectedEdges:Ee,unselectNodesAndEdges:Ne,multiSelectionActive:Le}=j.getState();K&&(j.setState({nodesSelectionActive:!1}),w.selected&&Le?(Ne({nodes:[],edges:[w]}),($e=L.current)==null||$e.blur()):Ee([e])),s&&s(be,w)},Q=o?be=>{o(be,{...w})}:void 0,J=c?be=>{c(be,{...w})}:void 0,W=d?be=>{d(be,{...w})}:void 0,ee=h?be=>{h(be,{...w})}:void 0,ce=f?be=>{f(be,{...w})}:void 0,fe=be=>{var Ee;if(!k&&dw.includes(be.key)&&K){const{unselectNodesAndEdges:Ne,addSelectedEdges:Le}=j.getState();be.key==="Escape"?((Ee=L.current)==null||Ee.blur(),Ne({edges:[w]})):Le([e])}};return b.jsx("svg",{style:{zIndex:M},children:b.jsxs("g",{className:ln(["react-flow__edge",`react-flow__edge-${B}`,w.className,S,{selected:w.selected,animated:w.animated,inactive:!K&&!s,updating:q,selectable:K}]),onClick:$,onDoubleClick:Q,onContextMenu:J,onMouseEnter:W,onMouseMove:ee,onMouseLeave:ce,onKeyDown:H?fe:void 0,tabIndex:H?0:void 0,role:w.ariaRole??(H?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":H?`${Fw}-${_}`:void 0,ref:L,...w.domAttributes,children:[!G&&b.jsx(R,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:K,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:D,markerEnd:F,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),I&&b.jsx(O8,{edge:w,isReconnectable:I,reconnectRadius:p,onReconnect:m,onReconnectStart:y,onReconnectEnd:x,sourceX:U,sourceY:Y,targetX:Z,targetY:A,sourcePosition:z,targetPosition:V,setUpdateHover:X,setReconnecting:C})]})})}var D8=re.memo(R8);const L8=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function xN({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:d,onEdgeMouseMove:h,onEdgeMouseLeave:f,onEdgeClick:p,reconnectRadius:m,onEdgeDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,disableKeyboardA11y:N}){const{edgesFocusable:S,edgesReconnectable:E,elementsSelectable:k,onError:w}=dt(L8,qt),O=x8(t);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(w8,{defaultColor:e,rfId:i}),O.map(B=>b.jsx(D8,{id:B,edgesFocusable:S,edgesReconnectable:E,elementsSelectable:k,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:d,onMouseMove:h,onMouseLeave:f,onClick:p,reconnectRadius:m,onDoubleClick:y,onReconnectStart:x,onReconnectEnd:_,rfId:i,onError:w,edgeTypes:a,disableKeyboardA11y:N},B))]})}xN.displayName="EdgeRenderer";const z8=re.memo(xN),k1=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function j8({children:e}){const t=zt(),i=re.useRef(null),[a]=re.useState(()=>t.getState().transform);return Zw(()=>{let s=null;const o=()=>{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=k1(c)))};return o(),t.subscribe(o)},[t]),b.jsx("div",{ref:i,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:k1(a)},children:e})}function I8(e){const t=No(),i=re.useRef(!1);re.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const B8=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function U8(e){const t=dt(B8),i=zt();return re.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function H8(e){return e.connection.inProgress?{...e.connection,to:wo(e.connection.to,e.transform)}:{...e.connection}}function $8(e){return H8}function q8(e){const t=$8();return dt(t,qt)}const P8=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function F8({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:d,inProgress:h}=dt(P8,qt);return!(o&&s&&h)?null:b.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:ln(["react-flow__connection",pw(d)]),children:b.jsx(yN,{style:t,type:i,CustomComponent:a,isValid:d})})})}const yN=({style:e,type:t=ia.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:d,fromPosition:h,to:f,toNode:p,toHandle:m,toPosition:y,pointer:x}=q8();if(!s)return;if(i)return b.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:d,fromX:o.x,fromY:o.y,toX:f.x,toY:f.y,fromPosition:h,toPosition:y,connectionStatus:pw(a),toNode:p,toHandle:m,pointer:x});let _="";const N={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:f.x,targetY:f.y,targetPosition:y};switch(t){case ia.Bezier:[_]=Tw(N);break;case ia.SimpleBezier:[_]=sN(N);break;case ia.Step:[_]=Pp({...N,borderRadius:0});break;case ia.SmoothStep:[_]=Pp(N);break;default:[_]=Cw(N)}return b.jsx("path",{d:_,fill:"none",className:"react-flow__connection-path",style:e})};yN.displayName="ConnectionLine";const G8={};function T1(e=G8){re.useRef(e),zt(),re.useEffect(()=>{},[e])}function V8(){zt(),re.useRef(!1),re.useEffect(()=>{},[])}function vN({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:y,onSelectionEnd:x,connectionLineType:_,connectionLineStyle:N,connectionLineComponent:S,connectionLineContainerStyle:E,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,deleteKeyCode:I,onlyRenderVisibleElements:K,elementsSelectable:L,defaultViewport:q,translateExtent:X,minZoom:G,maxZoom:C,preventScrolling:j,defaultMarkerColor:M,zoomOnScroll:U,zoomOnPinch:Y,panOnScroll:Z,panOnScrollSpeed:A,panOnScrollMode:z,zoomOnDoubleClick:V,panOnDrag:D,autoPanOnSelection:F,onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneScroll:ee,onPaneContextMenu:ce,paneClickDistance:fe,nodeClickDistance:be,onEdgeContextMenu:Ee,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,viewport:xe,onViewportChange:Oe,nodesDraggable:Fe}){return T1(e),T1(t),V8(),I8(i),U8(xe),b.jsx(o8,{onPaneClick:$,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:W,onPaneContextMenu:ce,onPaneScroll:ee,paneClickDistance:fe,deleteKeyCode:I,selectionKeyCode:k,selectionOnDrag:w,selectionMode:O,onSelectionStart:y,onSelectionEnd:x,multiSelectionKeyCode:B,panActivationKeyCode:R,zoomActivationKeyCode:H,elementsSelectable:L,zoomOnScroll:U,zoomOnPinch:Y,zoomOnDoubleClick:V,panOnScroll:Z,panOnScrollSpeed:A,panOnScrollMode:z,panOnDrag:D,autoPanOnSelection:F,defaultViewport:q,translateExtent:X,minZoom:G,maxZoom:C,onSelectionContextMenu:m,preventScrolling:j,noDragClassName:Xt,noWheelClassName:Vn,noPanClassName:En,disableKeyboardA11y:ct,onViewportChange:Oe,isControlledViewport:!!xe,children:b.jsxs(j8,{children:[b.jsx(z8,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Rt,onReconnectStart:Yt,onReconnectEnd:Pt,onlyRenderVisibleElements:K,onEdgeContextMenu:Ee,onEdgeMouseEnter:Ne,onEdgeMouseMove:Le,onEdgeMouseLeave:$e,reconnectRadius:st,defaultMarkerColor:M,noPanClassName:En,disableKeyboardA11y:ct,rfId:ue}),b.jsx(F8,{style:N,type:_,component:S,containerStyle:E}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(b8,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:d,onNodeMouseMove:h,onNodeMouseLeave:f,onNodeContextMenu:p,nodeClickDistance:be,onlyRenderVisibleElements:K,noPanClassName:En,noDragClassName:Xt,disableKeyboardA11y:ct,nodeExtent:It,rfId:ue,nodesDraggable:Fe}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}vN.displayName="GraphView";const Y8=re.memo(vN),X8=vw(),A1=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h=.5,maxZoom:f=2,nodeOrigin:p,nodeExtent:m,zIndexMode:y="basic"}={})=>{const x=new Map,_=new Map,N=new Map,S=new Map,E=a??t??[],k=i??e??[],w=p??[0,0],O=m??lo;Rw(N,S,E);const{nodesInitialized:B}=Gp(k,x,_,{nodeOrigin:w,nodeExtent:O,zIndexMode:y});let R=[0,0,1];if(c&&s&&o){const H=_o(x,{filter:q=>!!((q.width||q.initialWidth)&&(q.height||q.initialHeight))}),{x:I,y:K,zoom:L}=Hm(H,s,o,h,f,(d==null?void 0:d.padding)??.1);R=[I,K,L]}return{rfId:"1",width:s??0,height:o??0,transform:R,nodes:k,nodesInitialized:B,nodeLookup:x,parentLookup:_,edges:E,edgeLookup:S,connectionLookup:N,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:f,translateExtent:lo,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Bs.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:w,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:{...hw},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:X8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:fw,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},K8=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:m,zIndexMode:y})=>c6((x,_)=>{async function N(){const{nodeLookup:S,panZoom:E,fitViewOptions:k,fitViewResolver:w,width:O,height:B,minZoom:R,maxZoom:H}=_();E&&(await aI({nodes:S,width:O,height:B,panZoom:E,minZoom:R,maxZoom:H},k),w==null||w.resolve(!0),x({fitViewResolver:null}))}return{...A1({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:d,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:m,defaultNodes:i,defaultEdges:a,zIndexMode:y}),setNodes:S=>{const{nodeLookup:E,parentLookup:k,nodeOrigin:w,elevateNodesOnSelect:O,fitViewQueued:B,zIndexMode:R,nodesSelectionActive:H}=_(),{nodesInitialized:I,hasSelectedNodes:K}=Gp(S,E,k,{nodeOrigin:w,nodeExtent:m,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:R}),L=H&&K;B&&I?(N(),x({nodes:S,nodesInitialized:I,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:L})):x({nodes:S,nodesInitialized:I,nodesSelectionActive:L})},setEdges:S=>{const{connectionLookup:E,edgeLookup:k}=_();Rw(E,k,S),x({edges:S})},setDefaultNodesAndEdges:(S,E)=>{if(S){const{setNodes:k}=_();k(S),x({hasDefaultNodes:!0})}if(E){const{setEdges:k}=_();k(E),x({hasDefaultEdges:!0})}},updateNodeInternals:S=>{const{triggerNodeChanges:E,nodeLookup:k,parentLookup:w,domNode:O,nodeOrigin:B,nodeExtent:R,debug:H,fitViewQueued:I,zIndexMode:K}=_(),{changes:L,updatedInternals:q}=AI(S,k,w,O,B,R,K);q&&(NI(k,w,{nodeOrigin:B,nodeExtent:R,zIndexMode:K}),I?(N(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),(L==null?void 0:L.length)>0&&(H&&console.log("React Flow: trigger node changes",L),E==null||E(L)))},updateNodePositions:(S,E=!1)=>{const k=[];let w=[];const{nodeLookup:O,triggerNodeChanges:B,connection:R,updateConnection:H,onNodesChangeMiddlewareMap:I}=_();for(const[K,L]of S){const q=O.get(K),X=!!(q!=null&&q.expandParent&&(q!=null&&q.parentId)&&(L!=null&&L.position)),G={id:K,type:"position",position:X?{x:Math.max(0,L.position.x),y:Math.max(0,L.position.y)}:L.position,dragging:E};if(q&&R.inProgress&&R.fromNode.id===q.id){const C=Ha(q,R.fromHandle,je.Left,!0);H({...R,from:C})}X&&q.parentId&&k.push({id:K,parentId:q.parentId,rect:{...L.internals.positionAbsolute,width:L.measured.width??0,height:L.measured.height??0}}),w.push(G)}if(k.length>0){const{parentLookup:K,nodeOrigin:L}=_(),q=Vm(k,O,K,L);w.push(...q)}for(const K of I.values())w=K(w);B(w)},triggerNodeChanges:S=>{const{onNodesChange:E,setNodes:k,nodes:w,hasDefaultNodes:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=Yw(S,w);k(R)}B&&console.log("React Flow: trigger node changes",S),E==null||E(S)}},triggerEdgeChanges:S=>{const{onEdgesChange:E,setEdges:k,edges:w,hasDefaultEdges:O,debug:B}=_();if(S!=null&&S.length){if(O){const R=Xw(S,w);k(R)}B&&console.log("React Flow: trigger edge changes",S),E==null||E(S)}},addSelectedNodes:S=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(E){const R=S.map(H=>Ma(H,!0));O(R);return}O(As(w,new Set([...S]),!0)),B(As(k))},addSelectedEdges:S=>{const{multiSelectionActive:E,edgeLookup:k,nodeLookup:w,triggerNodeChanges:O,triggerEdgeChanges:B}=_();if(E){const R=S.map(H=>Ma(H,!0));B(R);return}B(As(k,new Set([...S]))),O(As(w,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:E}={})=>{const{edges:k,nodes:w,nodeLookup:O,triggerNodeChanges:B,triggerEdgeChanges:R}=_(),H=S||w,I=E||k,K=[];for(const q of H){if(!q.selected)continue;const X=O.get(q.id);X&&(X.selected=!1),K.push(Ma(q.id,!1))}const L=[];for(const q of I)q.selected&&L.push(Ma(q.id,!1));B(K),R(L)},setMinZoom:S=>{const{panZoom:E,maxZoom:k}=_();E==null||E.setScaleExtent([S,k]),x({minZoom:S})},setMaxZoom:S=>{const{panZoom:E,minZoom:k}=_();E==null||E.setScaleExtent([k,S]),x({maxZoom:S})},setTranslateExtent:S=>{var E;(E=_().panZoom)==null||E.setTranslateExtent(S),x({translateExtent:S})},resetSelectedElements:()=>{const{edges:S,nodes:E,triggerNodeChanges:k,triggerEdgeChanges:w,elementsSelectable:O}=_();if(!O)return;const B=E.reduce((H,I)=>I.selected?[...H,Ma(I.id,!1)]:H,[]),R=S.reduce((H,I)=>I.selected?[...H,Ma(I.id,!1)]:H,[]);k(B),w(R)},setNodeExtent:S=>{const{nodes:E,nodeLookup:k,parentLookup:w,nodeOrigin:O,elevateNodesOnSelect:B,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]||(Gp(E,k,w,{nodeOrigin:O,nodeExtent:S,elevateNodesOnSelect:B,checkEquality:!1,zIndexMode:H}),x({nodeExtent:S}))},panBy:S=>{const{transform:E,width:k,height:w,panZoom:O,translateExtent:B}=_();return CI({delta:S,panZoom:O,transform:E,translateExtent:B,width:k,height:w})},setCenter:async(S,E,k)=>{const{width:w,height:O,maxZoom:B,panZoom:R}=_();if(!R)return!1;const H=typeof(k==null?void 0:k.zoom)<"u"?k.zoom:B;return await R.setViewport({x:w/2-S*H,y:O/2-E*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:{...hw}})},updateConnection:S=>{x({connection:S})},reset:()=>x({...A1()})}},Object.is);function Z8({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:d,initialFitViewOptions:h,fitView:f,nodeOrigin:p,nodeExtent:m,zIndexMode:y,children:x}){const[_]=re.useState(()=>K8({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:s,height:o,fitView:f,minZoom:c,maxZoom:d,fitViewOptions:h,nodeOrigin:p,nodeExtent:m,zIndexMode:y}));return b.jsx(u6,{value:_,children:b.jsx(L6,{children:b.jsx(K6,{children:x})})})}function Q8({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:d,fitViewOptions:h,minZoom:f,maxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:x}){return re.useContext(Uu)?b.jsx(b.Fragment,{children:e}):b.jsx(Z8,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:d,initialFitViewOptions:h,initialMinZoom:f,initialMaxZoom:p,nodeOrigin:m,nodeExtent:y,zIndexMode:x,children:e})}const W8={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function J8({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:d,onEdgeClick:h,onInit:f,onMove:p,onMoveStart:m,onMoveEnd:y,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:E,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:B,onNodeDoubleClick:R,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:K,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onSelectionChange:G,onSelectionDragStart:C,onSelectionDrag:j,onSelectionDragStop:M,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:Z,onBeforeDelete:A,connectionMode:z,connectionLineType:V=ia.Bezier,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,deleteKeyCode:Q="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:W=!1,selectionMode:ee=oo.Full,panActivationKeyCode:ce="Space",multiSelectionKeyCode:fe=uo()?"Meta":"Control",zoomActivationKeyCode:be=uo()?"Meta":"Control",snapToGrid:Ee,snapGrid:Ne,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:$e,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,nodeOrigin:Xt=Gw,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct=!0,defaultViewport:It=w6,minZoom:ue=.5,maxZoom:xe=2,translateExtent:Oe=lo,preventScrolling:Fe=!0,nodeExtent:Ze,defaultMarkerColor:on="#b1b1b7",zoomOnScroll:wn=!0,zoomOnPinch:Kt=!0,panOnScroll:Ct=!1,panOnScrollSpeed:Wt=.5,panOnScrollMode:ut=La.Free,zoomOnDoubleClick:zn=!0,panOnDrag:cn=!0,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe=1,nodeClickDistance:we=0,children:Pe,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:vr=10,onNodesChange:_r,onEdgesChange:ai,noDragClassName:Ut="nodrag",noWheelClassName:pn="nowheel",noPanClassName:bi="nopan",fitView:Er,fitViewOptions:la,connectOnClick:wr,attributionPosition:Pa,proOptions:Xi,defaultEdgeOptions:oa,elevateNodesOnSelect:bn=!0,elevateEdgesOnSelect:xi=!1,disableKeyboardA11y:yi=!1,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanOnSelection:Fa=!0,autoPanSpeed:Ki,connectionRadius:vi,isValidConnection:ye,onError:ze,style:Qe,id:ft,nodeDragThreshold:Ht,connectionDragThreshold:mn,viewport:Mn,onViewportChange:Nn,width:_t,height:On,colorMode:Ga="light",debug:Nr,onScroll:Li,ariaLabelConfig:Sr,zIndexMode:Va="basic",...Sn},ca){const _i=ft||"1",kr=T6(Ga),un=re.useCallback(ua=>{ua.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Li==null||Li(ua)},[Li]);return b.jsx("div",{"data-testid":"rf__wrapper",...Sn,onScroll:un,style:{...Qe,...W8},ref:ca,className:ln(["react-flow",s,kr]),id:ft,role:"application",children:b.jsxs(Q8,{nodes:e,edges:t,width:_t,height:On,fitView:Er,fitViewOptions:la,minZoom:ue,maxZoom:xe,nodeOrigin:Xt,nodeExtent:Ze,zIndexMode:Va,children:[b.jsx(k6,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:x,onConnectStart:_,onConnectEnd:N,onClickConnectStart:S,onClickConnectEnd:E,nodesDraggable:st,autoPanOnNodeFocus:Rt,nodesConnectable:Yt,nodesFocusable:Pt,edgesFocusable:Vn,edgesReconnectable:En,elementsSelectable:ct,elevateNodesOnSelect:bn,elevateEdgesOnSelect:xi,minZoom:ue,maxZoom:xe,nodeExtent:Ze,onNodesChange:_r,onEdgesChange:ai,snapToGrid:Ee,snapGrid:Ne,connectionMode:z,translateExtent:Oe,connectOnClick:wr,defaultEdgeOptions:oa,fitView:Er,fitViewOptions:la,onNodesDelete:L,onEdgesDelete:q,onDelete:X,onNodeDragStart:H,onNodeDrag:I,onNodeDragStop:K,onSelectionDrag:j,onSelectionDragStart:C,onSelectionDragStop:M,onMove:p,onMoveStart:m,onMoveEnd:y,noPanClassName:bi,nodeOrigin:Xt,rfId:_i,autoPanOnConnect:Di,autoPanOnNodeDrag:Ft,autoPanSpeed:Ki,onError:ze,connectionRadius:vi,isValidConnection:ye,selectNodesOnDrag:$e,nodeDragThreshold:Ht,connectionDragThreshold:mn,onBeforeDelete:A,debug:Nr,ariaLabelConfig:Sr,zIndexMode:Va}),b.jsx(Y8,{onInit:f,onNodeClick:d,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:w,onNodeMouseLeave:O,onNodeContextMenu:B,onNodeDoubleClick:R,nodeTypes:o,edgeTypes:c,connectionLineType:V,connectionLineStyle:D,connectionLineComponent:F,connectionLineContainerStyle:$,selectionKeyCode:J,selectionOnDrag:W,selectionMode:ee,deleteKeyCode:Q,multiSelectionKeyCode:fe,panActivationKeyCode:ce,zoomActivationKeyCode:be,onlyRenderVisibleElements:Le,defaultViewport:It,translateExtent:Oe,minZoom:ue,maxZoom:xe,preventScrolling:Fe,zoomOnScroll:wn,zoomOnPinch:Kt,zoomOnDoubleClick:zn,panOnScroll:Ct,panOnScrollSpeed:Wt,panOnScrollMode:ut,panOnDrag:cn,autoPanOnSelection:Fa,onPaneClick:yr,onPaneMouseEnter:nt,onPaneMouseMove:Yn,onPaneMouseLeave:Cn,onPaneScroll:hn,onPaneContextMenu:ne,paneClickDistance:pe,nodeClickDistance:we,onSelectionContextMenu:U,onSelectionStart:Y,onSelectionEnd:Z,onReconnect:St,onReconnectStart:gt,onReconnectEnd:Ce,onEdgeContextMenu:Se,onEdgeDoubleClick:Ue,onEdgeMouseEnter:Bt,onEdgeMouseMove:Mt,onEdgeMouseLeave:gi,reconnectRadius:vr,defaultMarkerColor:on,noDragClassName:Ut,noWheelClassName:pn,noPanClassName:bi,rfId:_i,disableKeyboardA11y:yi,nodeExtent:Ze,viewport:Mn,onViewportChange:Nn,nodesDraggable:st}),b.jsx(E6,{onSelectionChange:G}),Pe,b.jsx(b6,{proOptions:Xi,position:Pa}),b.jsx(g6,{rfId:_i,disableKeyboardA11y:yi})]})})}var eB=Kw(J8);function tB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>Yw(s,o)),[]);return[t,i,a]}function nB(e){const[t,i]=re.useState(e),a=re.useCallback(s=>i(o=>Xw(s,o)),[]);return[t,i,a]}function iB({dimensions:e,lineWidth:t,variant:i,className:a}){return b.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:ln(["react-flow__background-pattern",i,a])})}function rB({radius:e,className:t}){return b.jsx("circle",{cx:e,cy:e,r:e,className:ln(["react-flow__background-pattern","dots",t])})}var ra;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ra||(ra={}));const aB={[ra.Dots]:1,[ra.Lines]:1,[ra.Cross]:6},sB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function _N({id:e,variant:t=ra.Dots,gap:i=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:d,style:h,className:f,patternClassName:p}){const m=re.useRef(null),{transform:y,patternId:x}=dt(sB,qt),_=a||aB[t],N=t===ra.Dots,S=t===ra.Cross,E=Array.isArray(i)?i:[i,i],k=[E[0]*y[2]||1,E[1]*y[2]||1],w=_*y[2],O=Array.isArray(o)?o:[o,o],B=S?[w,w]:k,R=[O[0]*y[2]||1+B[0]/2,O[1]*y[2]||1+B[1]/2],H=`${x}${e||""}`;return b.jsxs("svg",{className:ln(["react-flow__background",f]),style:{...h,...$u,"--xy-background-color-props":d,"--xy-background-pattern-color-props":c},ref:m,"data-testid":"rf__background",children:[b.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?b.jsx(rB,{radius:w/2,className:p}):b.jsx(iB,{dimensions:B,lineWidth:s,variant:t,className:p})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${H})`})]})}_N.displayName="Background";const lB=re.memo(_N);function oB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function cB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function uB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.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 dB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 fB(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 Qc({children:e,className:t,...i}){return b.jsx("button",{type:"button",className:ln(["react-flow__controls-button",t]),...i,children:e})}const hB=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function EN({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:d,onInteractiveChange:h,className:f,children:p,position:m="bottom-left",orientation:y="vertical","aria-label":x}){const _=zt(),{isInteractive:N,minZoomReached:S,maxZoomReached:E,ariaLabelConfig:k}=dt(hB,qt),{zoomIn:w,zoomOut:O,fitView:B}=No(),R=()=>{w(),o==null||o()},H=()=>{O(),c==null||c()},I=()=>{B(s),d==null||d()},K=()=>{_.setState({nodesDraggable:!N,nodesConnectable:!N,elementsSelectable:!N}),h==null||h(!N)},L=y==="horizontal"?"horizontal":"vertical";return b.jsxs(Hu,{className:ln(["react-flow__controls",L,f]),position:m,style:e,"data-testid":"rf__controls","aria-label":x??k["controls.ariaLabel"],children:[t&&b.jsxs(b.Fragment,{children:[b.jsx(Qc,{onClick:R,className:"react-flow__controls-zoomin",title:k["controls.zoomIn.ariaLabel"],"aria-label":k["controls.zoomIn.ariaLabel"],disabled:E,children:b.jsx(oB,{})}),b.jsx(Qc,{onClick:H,className:"react-flow__controls-zoomout",title:k["controls.zoomOut.ariaLabel"],"aria-label":k["controls.zoomOut.ariaLabel"],disabled:S,children:b.jsx(cB,{})})]}),i&&b.jsx(Qc,{className:"react-flow__controls-fitview",onClick:I,title:k["controls.fitView.ariaLabel"],"aria-label":k["controls.fitView.ariaLabel"],children:b.jsx(uB,{})}),a&&b.jsx(Qc,{className:"react-flow__controls-interactive",onClick:K,title:k["controls.interactive.ariaLabel"],"aria-label":k["controls.interactive.ariaLabel"],children:N?b.jsx(fB,{}):b.jsx(dB,{})}),p]})}EN.displayName="Controls";const pB=re.memo(EN);function mB({id:e,x:t,y:i,width:a,height:s,style:o,color:c,strokeColor:d,strokeWidth:h,className:f,borderRadius:p,shapeRendering:m,selected:y,onClick:x}){const{background:_,backgroundColor:N}=o||{},S=c||_||N;return b.jsx("rect",{className:ln(["react-flow__minimap-node",{selected:y},f]),x:t,y:i,rx:p,ry:p,width:a,height:s,style:{fill:S,stroke:d,strokeWidth:h},shapeRendering:m,onClick:x?E=>x(E,e):void 0})}const gB=re.memo(mB),bB=e=>e.nodes.map(t=>t.id),pp=e=>e instanceof Function?e:()=>e;function xB({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=gB,onClick:c}){const d=dt(bB,qt),h=pp(t),f=pp(e),p=pp(i),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:d.map(y=>b.jsx(vB,{id:y,nodeColorFunc:h,nodeStrokeColorFunc:f,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:m},y))})}function yB({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:d,onClick:h}){const{node:f,x:p,y:m,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:E,y:k}=N.internals.positionAbsolute,{width:w,height:O}=Yi(S);return{node:S,x:E,y:k,width:w,height:O}},qt);return!f||f.hidden||!_w(f)?null:b.jsx(d,{x:p,y:m,width:y,height:x,style:f.style,selected:!!f.selected,className:a(f),color:t(f),borderRadius:s,strokeColor:i(f),strokeWidth:o,shapeRendering:c,onClick:h,id:f.id})}const vB=re.memo(yB);var _B=re.memo(xB);const EB=200,wB=150,NB=e=>!e.hidden,SB=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?xw(_o(e.nodeLookup,{filter:NB}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},C1=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,kB=(e,t)=>C1(e.viewBB,t.viewBB)&&C1(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,TB="react-flow__minimap-desc";function wN({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:d,bgColor:h,maskColor:f,maskStrokeColor:p,maskStrokeWidth:m,position:y="bottom-right",onClick:x,onNodeClick:_,pannable:N=!1,zoomable:S=!1,ariaLabel:E,inversePan:k,zoomStep:w=1,offsetScale:O=5}){const B=zt(),R=re.useRef(null),{boundingRect:H,viewBB:I,rfId:K,panZoom:L,translateExtent:q,flowWidth:X,flowHeight:G,ariaLabelConfig:C}=dt(SB,kB),j=(e==null?void 0:e.width)??EB,M=(e==null?void 0:e.height)??wB,U=H.width/j,Y=H.height/M,Z=Math.max(U,Y),A=Z*j,z=Z*M,V=O*Z,D=H.x-(A-H.width)/2-V,F=H.y-(z-H.height)/2-V,$=A+V*2,Q=z+V*2,J=`${TB}-${K}`,W=re.useRef(0),ee=re.useRef();W.current=Z,re.useEffect(()=>{if(R.current&&L)return ee.current=BI({domNode:R.current,panZoom:L,getTransform:()=>B.getState().transform,getViewScale:()=>W.current}),()=>{var Ee;(Ee=ee.current)==null||Ee.destroy()}},[L]),re.useEffect(()=>{var Ee;(Ee=ee.current)==null||Ee.update({translateExtent:q,width:X,height:G,inversePan:k,pannable:N,zoomStep:w,zoomable:S})},[N,S,k,w,q,X,G]);const ce=x?Ee=>{var $e;const[Ne,Le]=(($e=ee.current)==null?void 0:$e.pointer(Ee))||[0,0];x(Ee,{x:Ne,y:Le})}:void 0,fe=_?re.useCallback((Ee,Ne)=>{const Le=B.getState().nodeLookup.get(Ne).internals.userNode;_(Ee,Le)},[]):void 0,be=E??C["minimap.ariaLabel"];return b.jsx(Hu,{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 p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*Z: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:ln(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:j,height:M,viewBox:`${D} ${F} ${$} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ce,children:[be&&b.jsx("title",{id:J,children:be}),b.jsx(_B,{onClick:fe,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:d}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${D-V},${F-V}h${$+V*2}v${Q+V*2}h${-$-V*2}z - M${I.x},${I.y}h${I.width}v${I.height}h${-I.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}wN.displayName="MiniMap";const AB=re.memo(wN),CB=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,MB={[$s.Line]:"right",[$s.Handle]:"bottom-right"};function OB({nodeId:e,position:t,variant:i=$s.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:d=10,minHeight:h=10,maxWidth:f=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:m=!1,resizeDirection:y,autoScale:x=!0,shouldResize:_,onResizeStart:N,onResize:S,onResizeEnd:E}){const k=eN(),w=typeof e=="string"?e:k,O=zt(),B=re.useRef(null),R=i===$s.Handle,H=dt(re.useCallback(CB(R&&x),[R,x]),qt),I=re.useRef(null),K=t??MB[i];re.useEffect(()=>{if(!(!B.current||!w))return I.current||(I.current=QI({domNode:B.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:q,transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j,domNode:M}=O.getState();return{nodeLookup:q,transform:X,snapGrid:G,snapToGrid:C,nodeOrigin:j,paneDomNode:M}},onChange:(q,X)=>{const{triggerNodeChanges:G,nodeLookup:C,parentLookup:j,nodeOrigin:M}=O.getState(),U=[],Y={x:q.x,y:q.y},Z=C.get(w);if(Z&&Z.expandParent&&Z.parentId){const A=Z.origin??M,z=q.width??Z.measured.width??0,V=q.height??Z.measured.height??0,D={id:Z.id,parentId:Z.parentId,rect:{width:z,height:V,...Ew({x:q.x??Z.position.x,y:q.y??Z.position.y},{width:z,height:V},Z.parentId,C,A)}},F=Vm([D],C,j,M);U.push(...F),Y.x=q.x?Math.max(A[0]*z,q.x):void 0,Y.y=q.y?Math.max(A[1]*V,q.y):void 0}if(Y.x!==void 0&&Y.y!==void 0){const A={id:w,type:"position",position:{...Y}};U.push(A)}if(q.width!==void 0&&q.height!==void 0){const z={id:w,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:q.width,height:q.height}};U.push(z)}for(const A of X){const z={...A,type:"position"};U.push(z)}G(U)},onEnd:({width:q,height:X})=>{const G={id:w,type:"dimensions",resizing:!1,dimensions:{width:q,height:X}};O.getState().triggerNodeChanges([G])}})),I.current.update({controlPosition:K,boundaries:{minWidth:d,minHeight:h,maxWidth:f,maxHeight:p},keepAspectRatio:m,resizeDirection:y,onResizeStart:N,onResize:S,onResizeEnd:E,shouldResize:_}),()=>{var q;(q=I.current)==null||q.destroy()}},[K,d,h,f,p,m,N,S,E,_]);const L=K.split("-");return b.jsx("div",{className:ln(["react-flow__resize-control","nodrag",...L,i,a]),ref:B,style:{...s,scale:H,...c&&{[R?"backgroundColor":"borderColor"]:c}},children:o})}re.memo(OB);var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oi=vt((e,t)=>{var i=Object.defineProperty,a=(G,C,j)=>C in G?i(G,C,{enumerable:!0,configurable:!0,writable:!0,value:j}):G[C]=j,s=(G,C)=>()=>(C||G((C={exports:{}}).exports,C),C.exports),o=(G,C,j)=>a(G,typeof C!="symbol"?C+"":C,j),c=s((G,C)=>{var j="\0",M="\0",U="",Y=class{constructor(F){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(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[M]={})}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($=>Object.keys(F._in[$]).length===0)}sinks(){var F=this;return this.nodes().filter($=>Object.keys(F._out[$]).length===0)}setNodes(F,$){var Q=arguments,J=this;return F.forEach(function(W){Q.length>1?J.setNode(W,$):J.setNode(W)}),this}setNode(F,$){return Object.hasOwn(this._nodes,F)?(arguments.length>1&&(this._nodes[F]=$),this):(this._nodes[F]=arguments.length>1?$:this._defaultNodeLabelFn(F),this._isCompound&&(this._parent[F]=M,this._children[F]={},this._children[M][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 $=this;if(Object.hasOwn(this._nodes,F)){var Q=J=>$.removeEdge($._edgeObjs[J]);delete this._nodes[F],this._isCompound&&(this._removeFromParentsChildList(F),delete this._parent[F],this.children(F).forEach(function(J){$.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,$){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($===void 0)$=M;else{$+="";for(var Q=$;Q!==void 0;Q=this.parent(Q))if(Q===F)throw new Error("Setting "+$+" as parent of "+F+" would create a cycle");this.setNode($)}return this.setNode(F),this._removeFromParentsChildList(F),this._parent[F]=$,this._children[$][F]=!0,this}_removeFromParentsChildList(F){delete this._children[this._parent[F]][F]}parent(F){if(this._isCompound){var $=this._parent[F];if($!==M)return $}}children(F=M){if(this._isCompound){var $=this._children[F];if($)return Object.keys($)}else{if(F===M)return this.nodes();if(this.hasNode(F))return[]}}predecessors(F){var $=this._preds[F];if($)return Object.keys($)}successors(F){var $=this._sucs[F];if($)return Object.keys($)}neighbors(F){var $=this.predecessors(F);if($){let J=new Set($);for(var Q of this.successors(F))J.add(Q);return Array.from(J.values())}}isLeaf(F){var $;return this.isDirected()?$=this.successors(F):$=this.neighbors(F),$.length===0}filterNodes(F){var $=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});$.setGraph(this.graph());var Q=this;Object.entries(this._nodes).forEach(function([ee,ce]){F(ee)&&$.setNode(ee,ce)}),Object.values(this._edgeObjs).forEach(function(ee){$.hasNode(ee.v)&&$.hasNode(ee.w)&&$.setEdge(ee,Q.edge(ee))});var J={};function W(ee){var ce=Q.parent(ee);return ce===void 0||$.hasNode(ce)?(J[ee]=ce,ce):ce in J?J[ce]:W(ce)}return this._isCompound&&$.nodes().forEach(ee=>$.setParent(ee,W(ee))),$}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,$){var Q=this,J=arguments;return F.reduce(function(W,ee){return J.length>1?Q.setEdge(W,ee,$):Q.setEdge(W,ee),ee}),this}setEdge(){var F,$,Q,J,W=!1,ee=arguments[0];typeof ee=="object"&&ee!==null&&"v"in ee?(F=ee.v,$=ee.w,Q=ee.name,arguments.length===2&&(J=arguments[1],W=!0)):(F=ee,$=arguments[1],Q=arguments[3],arguments.length>2&&(J=arguments[2],W=!0)),F=""+F,$=""+$,Q!==void 0&&(Q=""+Q);var ce=z(this._isDirected,F,$,Q);if(Object.hasOwn(this._edgeLabels,ce))return W&&(this._edgeLabels[ce]=J),this;if(Q!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(F),this.setNode($),this._edgeLabels[ce]=W?J:this._defaultEdgeLabelFn(F,$,Q);var fe=V(this._isDirected,F,$,Q);return F=fe.v,$=fe.w,Object.freeze(fe),this._edgeObjs[ce]=fe,Z(this._preds[$],F),Z(this._sucs[F],$),this._in[$][ce]=fe,this._out[F][ce]=fe,this._edgeCount++,this}edge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q);return this._edgeLabels[J]}edgeAsObj(){let F=this.edge(...arguments);return typeof F!="object"?{label:F}:F}hasEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q);return Object.hasOwn(this._edgeLabels,J)}removeEdge(F,$,Q){var J=arguments.length===1?D(this._isDirected,arguments[0]):z(this._isDirected,F,$,Q),W=this._edgeObjs[J];return W&&(F=W.v,$=W.w,delete this._edgeLabels[J],delete this._edgeObjs[J],A(this._preds[$],F),A(this._sucs[F],$),delete this._in[$][J],delete this._out[F][J],this._edgeCount--),this}inEdges(F,$){return this.isDirected()?this.filterEdges(this._in[F],F,$):this.nodeEdges(F,$)}outEdges(F,$){return this.isDirected()?this.filterEdges(this._out[F],F,$):this.nodeEdges(F,$)}nodeEdges(F,$){if(F in this._nodes)return this.filterEdges({...this._in[F],...this._out[F]},F,$)}filterEdges(F,$,Q){if(F){var J=Object.values(F);return Q?J.filter(function(W){return W.v===$&&W.w===Q||W.v===Q&&W.w===$}):J}}};function Z(F,$){F[$]?F[$]++:F[$]=1}function A(F,$){--F[$]||delete F[$]}function z(F,$,Q,J){var W=""+$,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}return W+U+ee+U+(J===void 0?j:J)}function V(F,$,Q,J){var W=""+$,ee=""+Q;if(!F&&W>ee){var ce=W;W=ee,ee=ce}var fe={v:W,w:ee};return J&&(fe.name=J),fe}function D(F,$){return z(F,$.v,$.w,$.name)}C.exports=Y}),d=s((G,C)=>{C.exports="3.0.2"}),h=s((G,C)=>{C.exports={Graph:c(),version:d()}}),f=s((G,C)=>{var j=c();C.exports={write:M,read:Z};function M(A){var z={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:U(A),edges:Y(A)};return A.graph()!==void 0&&(z.value=structuredClone(A.graph())),z}function U(A){return A.nodes().map(function(z){var V=A.node(z),D=A.parent(z),F={v:z};return V!==void 0&&(F.value=V),D!==void 0&&(F.parent=D),F})}function Y(A){return A.edges().map(function(z){var V=A.edge(z),D={v:z.v,w:z.w};return z.name!==void 0&&(D.name=z.name),V!==void 0&&(D.value=V),D})}function Z(A){var z=new j(A.options).setGraph(A.value);return A.nodes.forEach(function(V){z.setNode(V.v,V.value),V.parent&&z.setParent(V.v,V.parent)}),A.edges.forEach(function(V){z.setEdge({v:V.v,w:V.w,name:V.name},V.value)}),z}}),p=s((G,C)=>{C.exports=M;var j=()=>1;function M(Y,Z,A,z){return U(Y,String(Z),A||j,z||function(V){return Y.outEdges(V)})}function U(Y,Z,A,z){var V={},D=!0,F=0,$=Y.nodes(),Q=function(ce){var fe=A(ce);V[ce.v].distance+fe{C.exports=j;function j(M){var U={},Y=[],Z;function A(z){Object.hasOwn(U,z)||(U[z]=!0,Z.push(z),M.successors(z).forEach(A),M.predecessors(z).forEach(A))}return M.nodes().forEach(function(z){Z=[],A(z),Z.length&&Y.push(Z)}),Y}}),y=s((G,C)=>{var j=class{constructor(){o(this,"_arr",[]),o(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 U=this._keyIndices[M];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(M,U){var Y=this._keyIndices;if(M=String(M),!Object.hasOwn(Y,M)){var Z=this._arr,A=Z.length;return Y[M]=A,Z.push({key:M,priority:U}),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,U){var Y=this._keyIndices[M];if(U>this._arr[Y].priority)throw new Error("New priority is greater than current priority. Key: "+M+" Old: "+this._arr[Y].priority+" New: "+U);this._arr[Y].priority=U,this._decrease(Y)}_heapify(M){var U=this._arr,Y=2*M,Z=Y+1,A=M;Y>1,!(U[Z].priority{var j=y();C.exports=U;var M=()=>1;function U(Z,A,z,V){var D=function(F){return Z.outEdges(F)};return Y(Z,String(A),z||M,V||D)}function Y(Z,A,z,V){var D={},F=new j,$,Q,J=function(W){var ee=W.v!==$?W.v:W.w,ce=D[ee],fe=z(W),be=Q.distance+fe;if(fe<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+W+" Weight: "+fe);be0&&($=F.removeMin(),Q=D[$],Q.distance!==Number.POSITIVE_INFINITY);)V($).forEach(J);return D}}),_=s((G,C)=>{var j=x();C.exports=M;function M(U,Y,Z){return U.nodes().reduce(function(A,z){return A[z]=j(U,z,Y,Z),A},{})}}),N=s((G,C)=>{C.exports=j;function j(U,Y,Z){if(U[Y].predecessor!==void 0)throw new Error("Invalid source vertex");if(U[Z].predecessor===void 0&&Z!==Y)throw new Error("Invalid destination vertex");return{weight:U[Z].distance,path:M(U,Y,Z)}}function M(U,Y,Z){for(var A=[],z=Z;z!==Y;)A.push(z),z=U[z].predecessor;return A.push(Y),A.reverse()}}),S=s((G,C)=>{C.exports=j;function j(M){var U=0,Y=[],Z={},A=[];function z(V){var D=Z[V]={onStack:!0,lowlink:U,index:U++};if(Y.push(V),M.successors(V).forEach(function(Q){Object.hasOwn(Z,Q)?Z[Q].onStack&&(D.lowlink=Math.min(D.lowlink,Z[Q].index)):(z(Q),D.lowlink=Math.min(D.lowlink,Z[Q].lowlink))}),D.lowlink===D.index){var F=[],$;do $=Y.pop(),Z[$].onStack=!1,F.push($);while(V!==$);A.push(F)}}return M.nodes().forEach(function(V){Object.hasOwn(Z,V)||z(V)}),A}}),E=s((G,C)=>{var j=S();C.exports=M;function M(U){return j(U).filter(function(Y){return Y.length>1||Y.length===1&&U.hasEdge(Y[0],Y[0])})}}),k=s((G,C)=>{C.exports=M;var j=()=>1;function M(Y,Z,A){return U(Y,Z||j,A||function(z){return Y.outEdges(z)})}function U(Y,Z,A){var z={},V=Y.nodes();return V.forEach(function(D){z[D]={},z[D][D]={distance:0},V.forEach(function(F){D!==F&&(z[D][F]={distance:Number.POSITIVE_INFINITY})}),A(D).forEach(function(F){var $=F.v===D?F.w:F.v,Q=Z(F);z[D][$]={distance:Q,predecessor:D}})}),V.forEach(function(D){var F=z[D];V.forEach(function($){var Q=z[$];V.forEach(function(J){var W=Q[D],ee=F[J],ce=Q[J],fe=W.distance+ee.distance;fe{function j(U){var Y={},Z={},A=[];function z(V){if(Object.hasOwn(Z,V))throw new M;Object.hasOwn(Y,V)||(Z[V]=!0,Y[V]=!0,U.predecessors(V).forEach(z),delete Z[V],A.push(V))}if(U.sinks().forEach(z),Object.keys(Y).length!==U.nodeCount())throw new M;return A}var M=class extends Error{constructor(){super(...arguments)}};C.exports=j,j.CycleException=M}),O=s((G,C)=>{var j=w();C.exports=M;function M(U){try{j(U)}catch(Y){if(Y instanceof j.CycleException)return!1;throw Y}return!0}}),B=s((G,C)=>{C.exports=j;function j(U,Y,Z,A,z){Array.isArray(Y)||(Y=[Y]);var V=(U.isDirected()?U.successors:U.neighbors).bind(U),D={};return Y.forEach(function(F){if(!U.hasNode(F))throw new Error("Graph does not have node: "+F);z=M(U,F,Z==="post",D,V,A,z)}),z}function M(U,Y,Z,A,z,V,D){return Object.hasOwn(A,Y)||(A[Y]=!0,Z||(D=V(D,Y)),z(Y).forEach(function(F){D=M(U,F,Z,A,z,V,D)}),Z&&(D=V(D,Y))),D}}),R=s((G,C)=>{var j=B();C.exports=M;function M(U,Y,Z){return j(U,Y,Z,function(A,z){return A.push(z),A},[])}}),H=s((G,C)=>{var j=R();C.exports=M;function M(U,Y){return j(U,Y,"post")}}),I=s((G,C)=>{var j=R();C.exports=M;function M(U,Y){return j(U,Y,"pre")}}),K=s((G,C)=>{var j=c(),M=y();C.exports=U;function U(Y,Z){var A=new j,z={},V=new M,D;function F(Q){var J=Q.v===D?Q.w:Q.v,W=V.priority(J);if(W!==void 0){var ee=Z(Q);ee0;){if(D=V.removeMin(),Object.hasOwn(z,D))A.setEdge(D,z[D]);else{if($)throw new Error("Input graph is not connected: "+Y);$=!0}Y.nodeEdges(D).forEach(F)}return A}}),L=s((G,C)=>{var j=x(),M=p();C.exports=U;function U(Z,A,z,V){return Y(Z,A,z,V||function(D){return Z.outEdges(D)})}function Y(Z,A,z,V){if(z===void 0)return j(Z,A,z,V);for(var D=!1,F=Z.nodes(),$=0;${C.exports={bellmanFord:p(),components:m(),dijkstra:x(),dijkstraAll:_(),extractPath:N(),findCycles:E(),floydWarshall:k(),isAcyclic:O(),postorder:H(),preorder:I(),prim:K(),shortestPaths:L(),reduce:B(),tarjan:S(),topsort:w()}}),X=h();t.exports={Graph:X.Graph,json:f(),alg:q(),version:X.version}}),RB=vt((e,t)=>{var i=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,c=o._prev;if(c!==o)return a(c),c}enqueue(o){let c=this._sentinel;o._prev&&o._next&&a(o),o._next=c._next,c._next._prev=o,c._next=o,o._prev=c}toString(){let o=[],c=this._sentinel,d=c._prev;for(;d!==c;)o.push(JSON.stringify(d,s)),d=d._prev;return"["+o.join(", ")+"]"}};function a(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function s(o,c){if(o!=="_next"&&o!=="_prev")return c}t.exports=i}),DB=vt((e,t)=>{var i=Oi().Graph,a=RB();t.exports=o;var s=()=>1;function o(m,y){if(m.nodeCount()<=1)return[];let x=h(m,y||s);return c(x.graph,x.buckets,x.zeroIdx).flatMap(_=>m.outEdges(_.v,_.w))}function c(m,y,x){let _=[],N=y[y.length-1],S=y[0],E;for(;m.nodeCount();){for(;E=S.dequeue();)d(m,y,x,E);for(;E=N.dequeue();)d(m,y,x,E);if(m.nodeCount()){for(let k=y.length-2;k>0;--k)if(E=y[k].dequeue(),E){_=_.concat(d(m,y,x,E,!0));break}}}return _}function d(m,y,x,_,N){let S=N?[]:void 0;return m.inEdges(_.v).forEach(E=>{let k=m.edge(E),w=m.node(E.v);N&&S.push({v:E.v,w:E.w}),w.out-=k,f(y,x,w)}),m.outEdges(_.v).forEach(E=>{let k=m.edge(E),w=E.w,O=m.node(w);O.in-=k,f(y,x,O)}),m.removeNode(_.v),S}function h(m,y){let x=new i,_=0,N=0;m.nodes().forEach(k=>{x.setNode(k,{v:k,in:0,out:0})}),m.edges().forEach(k=>{let w=x.edge(k.v,k.w)||0,O=y(k),B=w+O;x.setEdge(k.v,k.w,B),N=Math.max(N,x.node(k.v).out+=O),_=Math.max(_,x.node(k.w).in+=O)});let S=p(N+_+3).map(()=>new a),E=_+1;return x.nodes().forEach(k=>{f(S,E,x.node(k))}),{graph:x,buckets:S,zeroIdx:E}}function f(m,y,x){x.out?x.in?m[x.out-x.in+y].enqueue(x):m[m.length-1].enqueue(x):m[0].enqueue(x)}function p(m){let y=[];for(let x=0;x{var i=Oi().Graph;t.exports={addBorderNode:y,addDummyNode:a,applyWithChunking:N,asNonCompoundGraph:o,buildLayerMatrix:f,intersectRect:h,mapValues:I,maxRank:S,normalizeRanks:p,notime:w,partition:E,pick:H,predecessorWeights:d,range:R,removeEmptyRanks:m,simplify:s,successorWeights:c,time:k,uniqueId:B,zipObject:K};function a(L,q,X,G){for(var C=G;L.hasNode(C);)C=B(G);return X.dummy=q,L.setNode(C,X),C}function s(L){let q=new i().setGraph(L.graph());return L.nodes().forEach(X=>q.setNode(X,L.node(X))),L.edges().forEach(X=>{let G=q.edge(X.v,X.w)||{weight:0,minlen:1},C=L.edge(X);q.setEdge(X.v,X.w,{weight:G.weight+C.weight,minlen:Math.max(G.minlen,C.minlen)})}),q}function o(L){let q=new i({multigraph:L.isMultigraph()}).setGraph(L.graph());return L.nodes().forEach(X=>{L.children(X).length||q.setNode(X,L.node(X))}),L.edges().forEach(X=>{q.setEdge(X,L.edge(X))}),q}function c(L){let q=L.nodes().map(X=>{let G={};return L.outEdges(X).forEach(C=>{G[C.w]=(G[C.w]||0)+L.edge(C).weight}),G});return K(L.nodes(),q)}function d(L){let q=L.nodes().map(X=>{let G={};return L.inEdges(X).forEach(C=>{G[C.v]=(G[C.v]||0)+L.edge(C).weight}),G});return K(L.nodes(),q)}function h(L,q){let X=L.x,G=L.y,C=q.x-X,j=q.y-G,M=L.width/2,U=L.height/2;if(!C&&!j)throw new Error("Not possible to find intersection inside of the rectangle");let Y,Z;return Math.abs(j)*M>Math.abs(C)*U?(j<0&&(U=-U),Y=U*C/j,Z=U):(C<0&&(M=-M),Y=M,Z=M*j/C),{x:X+Y,y:G+Z}}function f(L){let q=R(S(L)+1).map(()=>[]);return L.nodes().forEach(X=>{let G=L.node(X),C=G.rank;C!==void 0&&(q[C][G.order]=X)}),q}function p(L){let q=L.nodes().map(G=>{let C=L.node(G).rank;return C===void 0?Number.MAX_VALUE:C}),X=N(Math.min,q);L.nodes().forEach(G=>{let C=L.node(G);Object.hasOwn(C,"rank")&&(C.rank-=X)})}function m(L){let q=L.nodes().map(M=>L.node(M).rank).filter(M=>M!==void 0),X=N(Math.min,q),G=[];L.nodes().forEach(M=>{let U=L.node(M).rank-X;G[U]||(G[U]=[]),G[U].push(M)});let C=0,j=L.graph().nodeRankFactor;Array.from(G).forEach((M,U)=>{M===void 0&&U%j!==0?--C:M!==void 0&&C&&M.forEach(Y=>L.node(Y).rank+=C)})}function y(L,q,X,G){let C={width:0,height:0};return arguments.length>=4&&(C.rank=X,C.order=G),a(L,"border",C,q)}function x(L,q=_){let X=[];for(let G=0;G_){let X=x(q);return L.apply(null,X.map(G=>L.apply(null,G)))}else return L.apply(null,q)}function S(L){let q=L.nodes().map(X=>{let G=L.node(X).rank;return G===void 0?Number.MIN_VALUE:G});return N(Math.max,q)}function E(L,q){let X={lhs:[],rhs:[]};return L.forEach(G=>{q(G)?X.lhs.push(G):X.rhs.push(G)}),X}function k(L,q){let X=Date.now();try{return q()}finally{console.log(L+" time: "+(Date.now()-X)+"ms")}}function w(L,q){return q()}var O=0;function B(L){var q=++O;return L+(""+q)}function R(L,q,X=1){q==null&&(q=L,L=0);let G=j=>jqG[q]),Object.entries(L).reduce((G,[C,j])=>(G[C]=X(j,C),G),{})}function K(L,q){return L.reduce((X,G,C)=>(X[G]=q[C],X),{})}}),LB=vt((e,t)=>{var i=DB(),a=sn().uniqueId;t.exports={run:s,undo:c};function s(d){(d.graph().acyclicer==="greedy"?i(d,h(d)):o(d)).forEach(f=>{let p=d.edge(f);d.removeEdge(f),p.forwardName=f.name,p.reversed=!0,d.setEdge(f.w,f.v,p,a("rev"))});function h(f){return p=>f.edge(p).weight}}function o(d){let h=[],f={},p={};function m(y){Object.hasOwn(p,y)||(p[y]=!0,f[y]=!0,d.outEdges(y).forEach(x=>{Object.hasOwn(f,x.w)?h.push(x):m(x.w)}),delete f[y])}return d.nodes().forEach(m),h}function c(d){d.edges().forEach(h=>{let f=d.edge(h);if(f.reversed){d.removeEdge(h);let p=f.forwardName;delete f.reversed,delete f.forwardName,d.setEdge(h.w,h.v,f,p)}})}}),zB=vt((e,t)=>{var i=sn();t.exports={run:a,undo:o};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,p=d.w,m=c.node(p).rank,y=d.name,x=c.edge(d),_=x.labelRank;if(m===f+1)return;c.removeEdge(d);let N,S,E;for(E=0,++f;f{let h=c.node(d),f=h.edgeLabel,p;for(c.setEdge(h.edgeObj,f);h.dummy;)p=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=p,h=c.node(d)})}}),wu=vt((e,t)=>{var{applyWithChunking:i}=sn();t.exports={longestPath:a,slack:s};function a(o){var c={};function d(h){var f=o.node(h);if(Object.hasOwn(c,h))return f.rank;c[h]=!0;let p=o.outEdges(h).map(y=>y==null?Number.POSITIVE_INFINITY:d(y.w)-o.edge(y).minlen);var m=i(Math.min,p);return m===Number.POSITIVE_INFINITY&&(m=0),f.rank=m}o.sources().forEach(d)}function s(o,c){return o.node(c.w).rank-o.node(c.v).rank-o.edge(c).minlen}}),NN=vt((e,t)=>{var i=Oi().Graph,a=wu().slack;t.exports=s;function s(h){var f=new i({directed:!1}),p=h.nodes()[0],m=h.nodeCount();f.setNode(p,{});for(var y,x;o(f,h){var x=y.v,_=m===x?y.w:x;!h.hasNode(_)&&!a(f,y)&&(h.setNode(_,{}),h.setEdge(m,_,{}),p(_))})}return h.nodes().forEach(p),h.nodeCount()}function c(h,f){return f.edges().reduce((p,m)=>{let y=Number.POSITIVE_INFINITY;return h.hasNode(m.v)!==h.hasNode(m.w)&&(y=a(f,m)),yf.node(m).rank+=p)}}),jB=vt((e,t)=>{var i=NN(),a=wu().slack,s=wu().longestPath,o=Oi().alg.preorder,c=Oi().alg.postorder,d=sn().simplify;t.exports=h,h.initLowLimValues=y,h.initCutValues=f,h.calcCutValue=m,h.leaveEdge=_,h.enterEdge=N,h.exchangeEdges=S;function h(O){O=d(O),s(O);var B=i(O);y(B),f(B,O);for(var R,H;R=_(B);)H=N(B,O,R),S(B,O,R,H)}function f(O,B){var R=c(O,O.nodes());R=R.slice(0,R.length-1),R.forEach(H=>p(O,B,H))}function p(O,B,R){var H=O.node(R),I=H.parent;O.edge(R,I).cutvalue=m(O,B,R)}function m(O,B,R){var H=O.node(R),I=H.parent,K=!0,L=B.edge(R,I),q=0;return L||(K=!1,L=B.edge(I,R)),q=L.weight,B.nodeEdges(R).forEach(X=>{var G=X.v===R,C=G?X.w:X.v;if(C!==I){var j=G===K,M=B.edge(X).weight;if(q+=j?M:-M,k(O,R,C)){var U=O.edge(R,C).cutvalue;q+=j?-U:U}}}),q}function y(O,B){arguments.length<2&&(B=O.nodes()[0]),x(O,{},1,B)}function x(O,B,R,H,I){var K=R,L=O.node(H);return B[H]=!0,O.neighbors(H).forEach(q=>{Object.hasOwn(B,q)||(R=x(O,B,R,q,H))}),L.low=K,L.lim=R++,I?L.parent=I:delete L.parent,R}function _(O){return O.edges().find(B=>O.edge(B).cutvalue<0)}function N(O,B,R){var H=R.v,I=R.w;B.hasEdge(H,I)||(H=R.w,I=R.v);var K=O.node(H),L=O.node(I),q=K,X=!1;K.lim>L.lim&&(q=L,X=!0);var G=B.edges().filter(C=>X===w(O,O.node(C.v),q)&&X!==w(O,O.node(C.w),q));return G.reduce((C,j)=>a(B,j)!B.node(I).parent),H=o(O,R);H=H.slice(1),H.forEach(I=>{var K=O.node(I).parent,L=B.edge(I,K),q=!1;L||(L=B.edge(K,I),q=!0),B.node(I).rank=B.node(K).rank+(q?L.minlen:-L.minlen)})}function k(O,B,R){return O.hasEdge(B,R)}function w(O,B,R){return R.low<=B.lim&&B.lim<=R.lim}}),IB=vt((e,t)=>{var i=wu(),a=i.longestPath,s=NN(),o=jB();t.exports=c;function c(p){var m=p.graph().ranker;if(m instanceof Function)return m(p);switch(p.graph().ranker){case"network-simplex":f(p);break;case"tight-tree":h(p);break;case"longest-path":d(p);break;case"none":break;default:f(p)}}var d=a;function h(p){a(p),s(p)}function f(p){o(p)}}),BB=vt((e,t)=>{t.exports=i;function i(o){let c=s(o);o.graph().dummyChains.forEach(d=>{let h=o.node(d),f=h.edgeObj,p=a(o,c,f.v,f.w),m=p.path,y=p.lca,x=0,_=m[x],N=!0;for(;d!==f.w;){if(h=o.node(d),N){for(;(_=m[x])!==y&&o.node(_).maxRankm||y>c[x].lim));for(_=x,x=h;(x=o.parent(x))!==_;)p.push(x);return{path:f.concat(p.reverse()),lca:_}}function s(o){let c={},d=0;function h(f){let p=d;o.children(f).forEach(h),c[f]={low:p,lim:d++}}return o.children().forEach(h),c}}),UB=vt((e,t)=>{var i=sn();t.exports={run:a,cleanup:d};function a(h){let f=i.addDummyNode(h,"root",{},"_root"),p=o(h),m=Object.values(p),y=i.applyWithChunking(Math.max,m)-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,p,N)),h.graph().nodeRankFactor=x}function s(h,f,p,m,y,x,_){let N=h.children(_);if(!N.length){_!==f&&h.setEdge(f,_,{weight:0,minlen:p});return}let S=i.addBorderNode(h,"_bt"),E=i.addBorderNode(h,"_bb"),k=h.node(_);h.setParent(S,_),k.borderTop=S,h.setParent(E,_),k.borderBottom=E,N.forEach(w=>{s(h,f,p,m,y,x,w);let O=h.node(w),B=O.borderTop?O.borderTop:w,R=O.borderBottom?O.borderBottom:w,H=O.borderTop?m:2*m,I=B!==R?1:y-x[_]+1;h.setEdge(S,B,{weight:H,minlen:I,nestingEdge:!0}),h.setEdge(R,E,{weight:H,minlen:I,nestingEdge:!0})}),h.parent(_)||h.setEdge(f,S,{weight:0,minlen:y+x[_]})}function o(h){var f={};function p(m,y){var x=h.children(m);x&&x.length&&x.forEach(_=>p(_,y+1)),f[m]=y}return h.children().forEach(m=>p(m,1)),f}function c(h){return h.edges().reduce((f,p)=>f+h.edge(p).weight,0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,h.edges().forEach(p=>{var m=h.edge(p);m.nestingEdge&&h.removeEdge(p)})}}),HB=vt((e,t)=>{var i=sn();t.exports=a;function a(o){function c(d){let h=o.children(d),f=o.node(d);if(h.length&&h.forEach(c),Object.hasOwn(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(let p=f.minRank,m=f.maxRank+1;p{t.exports={adjust:i,undo:a};function i(p){let m=p.graph().rankdir.toLowerCase();(m==="lr"||m==="rl")&&s(p)}function a(p){let m=p.graph().rankdir.toLowerCase();(m==="bt"||m==="rl")&&c(p),(m==="lr"||m==="rl")&&(h(p),s(p))}function s(p){p.nodes().forEach(m=>o(p.node(m))),p.edges().forEach(m=>o(p.edge(m)))}function o(p){let m=p.width;p.width=p.height,p.height=m}function c(p){p.nodes().forEach(m=>d(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(d),Object.hasOwn(y,"y")&&d(y)})}function d(p){p.y=-p.y}function h(p){p.nodes().forEach(m=>f(p.node(m))),p.edges().forEach(m=>{let y=p.edge(m);y.points.forEach(f),Object.hasOwn(y,"x")&&f(y)})}function f(p){let m=p.x;p.x=p.y,p.y=m}}),qB=vt((e,t)=>{var i=sn();t.exports=a;function a(s){let o={},c=s.nodes().filter(m=>!s.children(m).length),d=c.map(m=>s.node(m).rank),h=i.applyWithChunking(Math.max,d),f=i.range(h+1).map(()=>[]);function p(m){if(o[m])return;o[m]=!0;let y=s.node(m);f[y.rank].push(m),s.successors(m).forEach(p)}return c.sort((m,y)=>s.node(m).rank-s.node(y).rank).forEach(p),f}}),PB=vt((e,t)=>{var i=sn().zipObject;t.exports=a;function a(o,c){let d=0;for(let h=1;hN)),f=c.flatMap(_=>o.outEdges(_).map(N=>({pos:h[N.w],weight:o.edge(N).weight})).sort((N,S)=>N.pos-S.pos)),p=1;for(;p{let N=_.pos+p;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}}),FB=vt((e,t)=>{t.exports=i;function i(a,s=[]){return s.map(o=>{let c=a.inEdges(o);if(c.length){let d=c.reduce((h,f)=>{let p=a.edge(f),m=a.node(f.v);return{sum:h.sum+p.weight*m.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:o,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:o}})}}),GB=vt((e,t)=>{var i=sn();t.exports=a;function a(c,d){let h={};c.forEach((p,m)=>{let y=h[p.v]={indegree:0,in:[],out:[],vs:[p.v],i:m};p.barycenter!==void 0&&(y.barycenter=p.barycenter,y.weight=p.weight)}),d.edges().forEach(p=>{let m=h[p.v],y=h[p.w];m!==void 0&&y!==void 0&&(y.indegree++,m.out.push(h[p.w]))});let f=Object.values(h).filter(p=>!p.indegree);return s(f)}function s(c){let d=[];function h(p){return m=>{m.merged||(m.barycenter===void 0||p.barycenter===void 0||m.barycenter>=p.barycenter)&&o(p,m)}}function f(p){return m=>{m.in.push(p),--m.indegree===0&&c.push(m)}}for(;c.length;){let p=c.pop();d.push(p),p.in.reverse().forEach(h(p)),p.out.forEach(f(p))}return d.filter(p=>!p.merged).map(p=>i.pick(p,["vs","i","barycenter","weight"]))}function o(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}}),VB=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,p=h.rhs.sort((S,E)=>E.i-S.i),m=[],y=0,x=0,_=0;f.sort(o(!!d)),_=s(m,p,_),f.forEach(S=>{_+=S.vs.length,m.push(S.vs),y+=S.barycenter*S.weight,x+=S.weight,_=s(m,p,_)});let N={vs:m.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 o(c){return(d,h)=>d.barycenterh.barycenter?1:c?h.i-d.i:d.i-h.i}}),YB=vt((e,t)=>{var i=FB(),a=GB(),s=VB();t.exports=o;function o(h,f,p,m){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 E=i(h,y);E.forEach(O=>{if(h.children(O.v).length){let B=o(h,O.v,p,m);S[O.v]=B,Object.hasOwn(B,"barycenter")&&d(O,B)}});let k=a(E,p);c(k,S);let w=s(k,m);if(_&&(w.vs=[_,w.vs,N].flat(!0),h.predecessors(_).length)){let O=h.node(h.predecessors(_)[0]),B=h.node(h.predecessors(N)[0]);Object.hasOwn(w,"barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+O.order+B.order)/(w.weight+2),w.weight+=2}return w}function c(h,f){h.forEach(p=>{p.vs=p.vs.flatMap(m=>f[m]?f[m].vs:m)})}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)}}),XB=vt((e,t)=>{var i=Oi().Graph,a=sn();t.exports=s;function s(c,d,h,f){f||(f=c.nodes());let p=o(c),m=new i({compound:!0}).setGraph({root:p}).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)&&(m.setNode(y),m.setParent(y,_||p),c[h](y).forEach(N=>{let S=N.v===y?N.w:N.v,E=m.edge(S,y),k=E!==void 0?E.weight:0;m.setEdge(S,y,{weight:c.edge(N).weight+k})}),Object.hasOwn(x,"minRank")&&m.setNode(y,{borderLeft:x.borderLeft[d],borderRight:x.borderRight[d]}))}),m}function o(c){for(var d;c.hasNode(d=a.uniqueId("_root")););return d}}),KB=vt((e,t)=>{t.exports=i;function i(a,s,o){let c={},d;o.forEach(h=>{let f=a.parent(h),p,m;for(;f;){if(p=a.parent(f),p?(m=c[p],c[p]=f):(m=d,d=f),m&&m!==f){s.setEdge(m,f);return}f=p}})}}),ZB=vt((e,t)=>{var i=qB(),a=PB(),s=YB(),o=XB(),c=KB(),d=Oi().Graph,h=sn();t.exports=f;function f(x,_={}){if(typeof _.customOrder=="function"){_.customOrder(x,f);return}let N=h.maxRank(x),S=p(x,h.range(1,N+1),"inEdges"),E=p(x,h.range(N-1,-1,-1),"outEdges"),k=i(x);if(y(x,k),_.disableOptimalOrderHeuristic)return;let w=Number.POSITIVE_INFINITY,O,B=_.constraints||[];for(let R=0,H=0;H<4;++R,++H){m(R%2?S:E,R%4>=2,B),k=h.buildLayerMatrix(x);let I=a(x,k);I{S.has(k)||S.set(k,[]),S.get(k).push(w)};for(let k of x.nodes()){let w=x.node(k);if(typeof w.rank=="number"&&E(w.rank,k),typeof w.minRank=="number"&&typeof w.maxRank=="number")for(let O=w.minRank;O<=w.maxRank;O++)O!==w.rank&&E(O,k)}return _.map(function(k){return o(x,k,N,S.get(k)||[])})}function m(x,_,N){let S=new d;x.forEach(function(E){N.forEach(O=>S.setEdge(O.left,O.right));let k=E.graph().root,w=s(E,k,S,_);w.vs.forEach((O,B)=>E.node(O).order=B),c(E,S,w.vs)})}function y(x,_){Object.values(_).forEach(N=>N.forEach((S,E)=>x.node(S).order=E))}}),QB=vt((e,t)=>{var i=Oi().Graph,a=sn();t.exports={positionX:N,findType1Conflicts:s,findType2Conflicts:o,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:x,findSmallestWidthAlignment:y,balance:_};function s(k,w){let O={};function B(R,H){let I=0,K=0,L=R.length,q=H[H.length-1];return H.forEach((X,G)=>{let C=c(k,X),j=C?k.node(C).order:L;(C||X===q)&&(H.slice(K,G+1).forEach(M=>{k.predecessors(M).forEach(U=>{let Y=k.node(U),Z=Y.order;(Z{X=H[G],k.node(X).dummy&&k.predecessors(X).forEach(C=>{let j=k.node(C);j.dummy&&(j.orderq)&&d(O,C,X)})})}function R(H,I){let K=-1,L,q=0;return I.forEach((X,G)=>{if(k.node(X).dummy==="border"){let C=k.predecessors(X);C.length&&(L=k.node(C[0]).order,B(I,q,G,K,L),q=G,K=L)}B(I,q,I.length,L,H.length)}),I}return w.length&&w.reduce(R),O}function c(k,w){if(k.node(w).dummy)return k.predecessors(w).find(O=>k.node(O).dummy)}function d(k,w,O){if(w>O){let R=w;w=O,O=R}let B=k[w];B||(k[w]=B={}),B[O]=!0}function h(k,w,O){if(w>O){let B=w;w=O,O=B}return!!k[w]&&Object.hasOwn(k[w],O)}function f(k,w,O,B){let R={},H={},I={};return w.forEach(K=>{K.forEach((L,q)=>{R[L]=L,H[L]=L,I[L]=q})}),w.forEach(K=>{let L=-1;K.forEach(q=>{let X=B(q);if(X.length){X=X.sort((C,j)=>I[C]-I[j]);let G=(X.length-1)/2;for(let C=Math.floor(G),j=Math.ceil(G);C<=j;++C){let M=X[C];H[q]===q&&LMath.max(C,H[j.v]+I.edge(j)),0)}function X(G){let C=I.outEdges(G).reduce((M,U)=>Math.min(M,H[U.w]-I.edge(U)),Number.POSITIVE_INFINITY),j=k.node(G);C!==Number.POSITIVE_INFINITY&&j.borderType!==K&&(H[G]=Math.max(H[G],C))}return L(q,I.predecessors.bind(I)),L(X,I.successors.bind(I)),Object.keys(B).forEach(G=>H[G]=H[O[G]]),H}function m(k,w,O,B){let R=new i,H=k.graph(),I=S(H.nodesep,H.edgesep,B);return w.forEach(K=>{let L;K.forEach(q=>{let X=O[q];if(R.setNode(X),L){var G=O[L],C=R.edge(G,X);R.setEdge(G,X,Math.max(I(k,q,L),C||0))}L=q})}),R}function y(k,w){return Object.values(w).reduce((O,B)=>{let R=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY;Object.entries(B).forEach(([K,L])=>{let q=E(k,K)/2;R=Math.max(L+q,R),H=Math.min(L-q,H)});let I=R-H;return I{["l","r"].forEach(I=>{let K=H+I,L=k[K];if(L===w)return;let q=Object.values(L),X=B-a.applyWithChunking(Math.min,q);I!=="l"&&(X=R-a.applyWithChunking(Math.max,q)),X&&(k[K]=a.mapValues(L,G=>G+X))})})}function _(k,w){return a.mapValues(k.ul,(O,B)=>{if(w)return k[w.toLowerCase()][B];{let R=Object.values(k).map(H=>H[B]).sort((H,I)=>H-I);return(R[1]+R[2])/2}})}function N(k){let w=a.buildLayerMatrix(k),O=Object.assign(s(k,w),o(k,w)),B={},R;["u","d"].forEach(I=>{R=I==="u"?w:Object.values(w).reverse(),["l","r"].forEach(K=>{K==="r"&&(R=R.map(G=>Object.values(G).reverse()));let L=(I==="u"?k.predecessors:k.successors).bind(k),q=f(k,R,O,L),X=p(k,R,q.root,q.align,K==="r");K==="r"&&(X=a.mapValues(X,G=>-G)),B[I+K]=X})});let H=y(k,B);return x(B,H),_(B,k.graph().align)}function S(k,w,O){return(B,R,H)=>{let I=B.node(R),K=B.node(H),L=0,q;if(L+=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&&(L+=O?q:-q),q=0,L+=(I.dummy?w:k)/2,L+=(K.dummy?w:k)/2,L+=K.width/2,Object.hasOwn(K,"labelpos"))switch(K.labelpos.toLowerCase()){case"l":q=K.width/2;break;case"r":q=-K.width/2;break}return q&&(L+=O?q:-q),q=0,L}}function E(k,w){return k.node(w).width}}),WB=vt((e,t)=>{var i=sn(),a=QB().positionX;t.exports=s;function s(c){c=i.asNonCompoundGraph(c),o(c),Object.entries(a(c)).forEach(([d,h])=>c.node(d).x=h)}function o(c){let d=i.buildLayerMatrix(c),h=c.graph().ranksep,f=c.graph().rankalign,p=0;d.forEach(m=>{let y=m.reduce((x,_)=>{let N=c.node(_).height;return x>N?x:N},0);m.forEach(x=>{let _=c.node(x);f==="top"?_.y=p+_.height/2:f==="bottom"?_.y=p+y-_.height/2:_.y=p+y/2}),p+=y+h})}}),JB=vt((e,t)=>{var i=LB(),a=zB(),s=IB(),o=sn().normalizeRanks,c=BB(),d=sn().removeEmptyRanks,h=UB(),f=HB(),p=$B(),m=ZB(),y=WB(),x=sn(),_=Oi().Graph;t.exports=N;function N($,Q={}){let J=Q.debugTiming?x.time:x.notime;return J("layout",()=>{let W=J(" buildLayoutGraph",()=>L($));return J(" runLayout",()=>S(W,J,Q)),J(" updateInputGraph",()=>E($,W)),W})}function S($,Q,J){Q(" makeSpaceForEdgeLabels",()=>q($)),Q(" removeSelfEdges",()=>A($)),Q(" acyclic",()=>i.run($)),Q(" nestingGraph.run",()=>h.run($)),Q(" rank",()=>s(x.asNonCompoundGraph($))),Q(" injectEdgeLabelProxies",()=>X($)),Q(" removeEmptyRanks",()=>d($)),Q(" nestingGraph.cleanup",()=>h.cleanup($)),Q(" normalizeRanks",()=>o($)),Q(" assignRankMinMax",()=>G($)),Q(" removeEdgeLabelProxies",()=>C($)),Q(" normalize.run",()=>a.run($)),Q(" parentDummyChains",()=>c($)),Q(" addBorderSegments",()=>f($)),Q(" order",()=>m($,J)),Q(" insertSelfEdges",()=>z($)),Q(" adjustCoordinateSystem",()=>p.adjust($)),Q(" position",()=>y($)),Q(" positionSelfEdges",()=>V($)),Q(" removeBorderNodes",()=>Z($)),Q(" normalize.undo",()=>a.undo($)),Q(" fixupEdgeLabelCoords",()=>U($)),Q(" undoCoordinateSystem",()=>p.undo($)),Q(" translateGraph",()=>j($)),Q(" assignNodeIntersects",()=>M($)),Q(" reversePoints",()=>Y($)),Q(" acyclic.undo",()=>i.undo($))}function E($,Q){$.nodes().forEach(J=>{let W=$.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))}),$.edges().forEach(J=>{let W=$.edge(J),ee=Q.edge(J);W.points=ee.points,Object.hasOwn(ee,"x")&&(W.x=ee.x,W.y=ee.y)}),$.graph().width=Q.graph().width,$.graph().height=Q.graph().height}var k=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},O=["acyclicer","ranker","rankdir","align","rankalign"],B=["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"},K=["labelpos"];function L($){let Q=new _({multigraph:!0,compound:!0}),J=F($.graph());return Q.setGraph(Object.assign({},w,D(J,k),x.pick(J,O))),$.nodes().forEach(W=>{let ee=F($.node(W)),ce=D(ee,B);Object.keys(R).forEach(fe=>{ce[fe]===void 0&&(ce[fe]=R[fe])}),Q.setNode(W,ce),Q.setParent(W,$.parent(W))}),$.edges().forEach(W=>{let ee=F($.edge(W));Q.setEdge(W,Object.assign({},I,D(ee,H),x.pick(ee,K)))}),Q}function q($){let Q=$.graph();Q.ranksep/=2,$.edges().forEach(J=>{let W=$.edge(J);W.minlen*=2,W.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?W.width+=W.labeloffset:W.height+=W.labeloffset)})}function X($){$.edges().forEach(Q=>{let J=$.edge(Q);if(J.width&&J.height){let W=$.node(Q.v),ee={rank:($.node(Q.w).rank-W.rank)/2+W.rank,e:Q};x.addDummyNode($,"edge-proxy",ee,"_ep")}})}function G($){let Q=0;$.nodes().forEach(J=>{let W=$.node(J);W.borderTop&&(W.minRank=$.node(W.borderTop).rank,W.maxRank=$.node(W.borderBottom).rank,Q=Math.max(Q,W.maxRank))}),$.graph().maxRank=Q}function C($){$.nodes().forEach(Q=>{let J=$.node(Q);J.dummy==="edge-proxy"&&($.edge(J.e).labelRank=J.rank,$.removeNode(Q))})}function j($){let Q=Number.POSITIVE_INFINITY,J=0,W=Number.POSITIVE_INFINITY,ee=0,ce=$.graph(),fe=ce.marginx||0,be=ce.marginy||0;function Ee(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)}$.nodes().forEach(Ne=>Ee($.node(Ne))),$.edges().forEach(Ne=>{let Le=$.edge(Ne);Object.hasOwn(Le,"x")&&Ee(Le)}),Q-=fe,W-=be,$.nodes().forEach(Ne=>{let Le=$.node(Ne);Le.x-=Q,Le.y-=W}),$.edges().forEach(Ne=>{let Le=$.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)}),ce.width=J-Q+fe,ce.height=ee-W+be}function M($){$.edges().forEach(Q=>{let J=$.edge(Q),W=$.node(Q.v),ee=$.node(Q.w),ce,fe;J.points?(ce=J.points[0],fe=J.points[J.points.length-1]):(J.points=[],ce=ee,fe=W),J.points.unshift(x.intersectRect(W,ce)),J.points.push(x.intersectRect(ee,fe))})}function U($){$.edges().forEach(Q=>{let J=$.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($){$.edges().forEach(Q=>{let J=$.edge(Q);J.reversed&&J.points.reverse()})}function Z($){$.nodes().forEach(Q=>{if($.children(Q).length){let J=$.node(Q),W=$.node(J.borderTop),ee=$.node(J.borderBottom),ce=$.node(J.borderLeft[J.borderLeft.length-1]),fe=$.node(J.borderRight[J.borderRight.length-1]);J.width=Math.abs(fe.x-ce.x),J.height=Math.abs(ee.y-W.y),J.x=ce.x+J.width/2,J.y=W.y+J.height/2}}),$.nodes().forEach(Q=>{$.node(Q).dummy==="border"&&$.removeNode(Q)})}function A($){$.edges().forEach(Q=>{if(Q.v===Q.w){var J=$.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:$.edge(Q)}),$.removeEdge(Q)}})}function z($){var Q=x.buildLayerMatrix($);Q.forEach(J=>{var W=0;J.forEach((ee,ce)=>{var fe=$.node(ee);fe.order=ce+W,(fe.selfEdges||[]).forEach(be=>{x.addDummyNode($,"selfedge",{width:be.label.width,height:be.label.height,rank:fe.rank,order:ce+ ++W,e:be.e,label:be.label},"_se")}),delete fe.selfEdges})})}function V($){$.nodes().forEach(Q=>{var J=$.node(Q);if(J.dummy==="selfedge"){var W=$.node(J.e.v),ee=W.x+W.width/2,ce=W.y,fe=J.x-ee,be=W.height/2;$.setEdge(J.e,J.label),$.removeNode(Q),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($,Q){return x.mapValues(x.pick($,Q),Number)}function F($){var Q={};return $&&Object.entries($).forEach(([J,W])=>{typeof J=="string"&&(J=J.toLowerCase()),Q[J]=W}),Q}}),e9=vt((e,t)=>{var i=sn(),a=Oi().Graph;t.exports={debugOrdering:s};function s(o){let c=i.buildLayerMatrix(o),d=new a({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(h=>{d.setNode(h,{label:h}),d.setParent(h,"layer"+o.node(h).rank)}),o.edges().forEach(h=>d.setEdge(h.v,h.w,{},h.name)),c.forEach((h,f)=>{let p="layer"+f;d.setNode(p,{rank:"same"}),h.reduce((m,y)=>(d.setEdge(m,y,{style:"invis"}),y))}),d}}),t9=vt((e,t)=>{t.exports="2.0.4"}),n9=vt((e,t)=>{t.exports={graphlib:Oi(),layout:JB(),debug:e9(),util:{time:sn().time,notime:sn().notime},version:t9()}});const M1=n9();/*! For license information please see dagre.esm.js.LEGAL.txt */const O1={running:"bg-blue-500",completed:"bg-emerald-500",failed:"bg-red-500",error:"bg-red-500"};function i9({data:e,selected:t}){const i=e;return b.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:[b.jsx(qs,{type:"target",position:je.Top,isConnectable:!1,className:`!w-1.5 !h-1.5 !border-0 ${i.parentId?"!bg-[#444]":"!bg-transparent"}`}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[b.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-75 ${O1[i.status]??"bg-gray-500"} ${i.status==="running"?"animate-ping":""}`}),b.jsx("span",{className:`relative inline-flex h-2 w-2 rounded-full ${O1[i.status]??"bg-gray-500"}`})]}),b.jsx("span",{className:"text-sm font-semibold text-white leading-snug line-clamp-3",children:i.name})]}),b.jsx(qs,{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 r9=re.memo(i9);function Gl({w:e=24}){return b.jsxs("div",{className:"w-[180px] h-[72px] rounded-lg border border-[#222] bg-[#0a0a0a] px-3 py-2 shrink-0",children:[b.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[b.jsx("div",{className:"w-2 h-2 rounded-full bg-[#2a2a2a]"}),b.jsx("div",{className:"h-3 rounded bg-[#252525]",style:{width:`${e*4}px`}})]}),b.jsx("div",{className:"h-2 w-28 rounded bg-[#1e1e1e] mb-1.5"}),b.jsxs("div",{className:"flex gap-3",children:[b.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"}),b.jsx("div",{className:"h-2 w-8 rounded bg-[#1e1e1e]"})]})]})}function Ss(){return b.jsx("div",{className:"w-px h-6 bg-[#2a2a2a]"})}function R1({count:e}){return b.jsx("div",{className:"relative flex justify-center",children:b.jsx("div",{className:"absolute top-0 h-px bg-[#2a2a2a]",style:{width:`${(e-1)*220}px`}})})}function a9(){return b.jsx("div",{className:"h-full bg-black overflow-hidden",children:b.jsxs("div",{className:"flex flex-col items-center pt-10 animate-pulse",children:[b.jsx(Gl,{w:20}),b.jsx(Ss,{}),b.jsx(R1,{count:3}),b.jsx("div",{className:"flex gap-10",children:[18,22,16].map((e,t)=>b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:e})]},t))}),b.jsxs("div",{className:"flex gap-10 w-full justify-center",children:[b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(R1,{count:2}),b.jsx("div",{className:"flex gap-10",children:[14,20].map((e,t)=>b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:e})]},t))})]}),b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx(Ss,{}),b.jsx(Gl,{w:18}),b.jsx(Ss,{}),b.jsx(Gl,{w:12})]}),b.jsx("div",{className:"w-[180px]"})]})]})})}const Xp=260,Kp=80,s9={agentNode:r9};function l9(e,t){const i=new M1.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:"TB",nodesep:60,ranksep:80});const a=[],s=[];for(const[o,c]of e)if(i.setNode(o,{width:Xp,height:Kp}),a.push({id:o,type:"agentNode",position:{x:0,y:0},data:{...c,isSelected:o===t}}),c.parentId&&e.has(c.parentId)){const d=`${c.parentId}->${o}`;i.setEdge(c.parentId,o),s.push({id:d,source:c.parentId,target:o,style:{stroke:"#2a2a2a",strokeWidth:1.5}})}M1.layout(i);for(const o of a){const c=i.node(o.id);c&&(o.position={x:c.x-Xp/2,y:c.y-Kp/2})}return{nodes:a,edges:s}}const mp=300;function o9({nodes:e}){const{setCenter:t}=No(),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 o=s.position.x+Xp/2,c=s.position.y+Kp/2;setTimeout(()=>t(o,c,{zoom:.85,duration:400}),60)}},[e,t]),null}function c9(){const{zoomIn:e,zoomOut:t,fitView:i}=No();return b.jsx(pB,{position:"bottom-right",showZoom:!1,showFitView:!1,showInteractive:!1,className:"!bg-transparent !border-none !shadow-none",children:b.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-[#222]",children:[b.jsx("button",{onClick:()=>e({duration:mp}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Zoom in",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M12 5v14M5 12h14"})})}),b.jsx("button",{onClick:()=>t({duration:mp}),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:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M5 12h14"})})}),b.jsx("button",{onClick:()=>i({padding:.3,duration:mp}),className:"flex items-center justify-center w-7 h-7 bg-[#111] text-white hover:bg-[#2a2a2a] transition-colors",title:"Fit view",children:b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,className:"w-3.5 h-3.5",children:b.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})})})]})})}function u9({agents:e,selectedAgentId:t,onSelectAgent:i,eventsLoaded:a,eventsEmpty:s,scanCompleted:o}){const[c,d,h]=tB([]),[f,p,m]=nB([]);re.useEffect(()=>{if(e.size===0)return;const{nodes:S,edges:E}=l9(e,t);d(S),p(E)},[e.size,d,p]),re.useEffect(()=>{e.size!==0&&d(S=>S.map(E=>{const k=e.get(E.id);return k?{...E,data:{...k,isSelected:E.id===t}}:E}))},[e,t,d]);const y=re.useRef(!1),x=re.useCallback((S,E)=>{y.current=!0,i(E.id)},[i]),_=re.useCallback(()=>{if(y.current){y.current=!1;return}i(null)},[i]);if(e.size===0&&a&&s)return b.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[b.jsx("div",{className:"w-10 h-10 mb-3 rounded-full bg-[#111] flex items-center justify-center",children:o?b.jsx("svg",{className:"w-5 h-5 text-[#444]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:b.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"})}):b.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})}),b.jsx("p",{className:"text-sm text-[#555]",children:o?"Agent trace data is not available for this pentest":"Waiting for agent data…"})]});const N=e.size>0;return b.jsxs("div",{className:"relative h-full",children:[b.jsx("div",{className:`absolute inset-0 z-10 transition-opacity duration-500 ${N?"opacity-0 pointer-events-none":"opacity-100"}`,children:b.jsx(a9,{})}),b.jsx("div",{className:`h-full transition-opacity duration-500 ${N?"opacity-100":"opacity-0"}`,children:b.jsxs(eB,{nodes:c,edges:f,onNodesChange:h,onEdgesChange:m,onNodeClick:x,onPaneClick:_,nodeTypes:s9,nodesConnectable:!1,edgesFocusable:!1,edgesReconnectable:!1,minZoom:.15,maxZoom:1.5,proOptions:{hideAttribution:!0},className:"bg-black",children:[b.jsx(lB,{color:"#111",gap:20}),b.jsx(o9,{nodes:c}),b.jsx(c9,{}),b.jsx(AB,{position:"bottom-left",nodeColor:S=>{var k;const E=(k=S.data)==null?void 0:k.status;return E==="running"?"#3b82f6":E==="completed"?"#10b981":E==="failed"||E==="error"?"#ef4444":"#555"},maskColor:"rgba(0,0,0,0.8)",style:{width:80,height:50},className:"!bg-[#0a0a0a] !border-[#222]"})]})})]})}function Cs({text:e,className:t=""}){return b.jsx("div",{className:`prose-markdown ${t}`,children:b.jsx(wm,{remarkPlugins:[Tm],rehypePlugins:[Am],components:Cm,children:e})})}const D1=6,L1=20;function Ln({text:e,maxLines:t=20}){const[i,a]=re.useState(!1),o=e.trimEnd().split(` -`).length>t;return b.jsxs("div",{children:[b.jsx("div",{className:i&&o?"max-h-[1200px] overflow-auto":"",style:!i&&o?{display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0,children:b.jsx(Cs,{text:e})}),o&&b.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-1",children:i?"Show less":"Show more"})]})}function br({children:e,className:t=""}){const[i,a]=re.useState(!1),o=typeof e=="string"?e.trimEnd().split(` -`):null,c=o!==null&&o.length>D1,d=c&&!i?o.slice(0,D1).join(` -`):e;return b.jsxs("div",{children:[b.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&&b.jsx("button",{onClick:()=>a(!i),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:i?"Show less":"Show more"})]})}function Xm({code:e,language:t,className:i="",collapsible:a=!1}){const[s,o]=re.useState(!1),c=e.trimEnd().split(` -`),d=a&&c.length>L1,h=d&&!s?c.slice(0,L1).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 b.jsxs("div",{children:[b.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:b.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),d&&b.jsx("button",{onClick:()=>o(!s),className:"text-xs text-[#555] hover:text-[#888] mt-0.5",children:s?"Show less":"Show more"})]})}const d9=50,z1=200,j1=25,I1=24,f9=[/\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],h9=/^Chunk ID: [0-9a-f]+\s*$/,p9=[/^Wall time: [\d.]+ seconds\s*$/,/^Process exited with code -?\d+\s*$/,/^Process running with session ID \d+\s*$/,/^Original token count: \d+\s*$/];function m9(e){const t=[];for(let i=0;is.test(e[a]));)a++;az1?e.slice(0,z1-3)+"...":e}function b9(e,t=""){let i=e.replace(/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,"").replace(/\r/g,"");for(const a of f9)i=i.replace(a,"");if(i.trim()){const a=m9(i.split(` -`)),s=[];for(const o of a)s.length===0&&!o.trim()||/^\[STRIX_\d+\]\$\s*/.test(o)||t&&o.trim()===t.trim()||t&&new RegExp(`^[\\$#>]\\s*${g9(t.trim())}\\s*$`).test(o)||s.push(o);for(;s.length>0&&/^\[STRIX_\d+\]\$\s*/.test(s[s.length-1]);)s.pop();i=s.join(` -`)}return i.trim()}function x9(e){const t=e.split(` -`);if(t.length<=d9)return t.map(gp).join(` -`);const i=t.length-j1-I1;return[...t.slice(0,j1).map(gp),`... ${i} lines truncated ...`,...t.slice(-I1).map(gp)].join(` -`)}function y9({toolName:e,args:t,result:i}){const a=e==="write_stdin",s=a?t.chars??t.input??"":t.command??t.cmd??"",o=i;let c=null,d=null,h=null;if(o&&typeof o=="object"){c=typeof o.content=="string"?o.content:null,d=typeof o.error=="string"?o.error:null,h=typeof o.exit_code=="number"?o.exit_code:null;const p=typeof o.status=="string"?o.status:"";(p==="running"||p==="command still running")&&(c=null)}else typeof o=="string"&&(c=o);const f=c?x9(b9(c,s)):null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:a?"Terminal input":"Terminal"}),s&&b.jsx(Xm,{code:s,language:"bash",collapsible:!0}),d&&b.jsx(br,{className:"text-red-400/70",children:d}),f&&b.jsx(br,{className:"text-[#666]",children:f}),h!=null&&h!==0&&b.jsxs("div",{className:"font-mono text-[13px] text-red-400/70 mt-0.5",children:["exit code ",h]})]})}const B1={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"},U1={click:"clicking",double_click:"double clicking",hover:"hovering"};function bp({prefix:e,url:t,suffix:i}){return b.jsxs("span",{className:"text-[#888] text-[13px]",children:[e,t&&b.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400/80 hover:underline",children:t}),i]})}function v9(e){const t=e.action??"",i=e.url??void 0;if(t in B1)return B1[t];if(t==="launch")return i?b.jsx(bp,{prefix:"launching ",url:i}):"launching";if(t==="goto"||t==="navigate")return b.jsx(bp,{prefix:"navigating to ",url:i});if(t==="new_tab")return b.jsx(bp,{prefix:"opening tab ",url:i});if(t in U1)return U1[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 _9({args:e}){const i=(e.action??"")==="execute_js"?e.js_code??e.code??"":"",a=v9(e);return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[b.jsx("span",{className:"text-blue-400/80 font-semibold text-sm shrink-0",children:"Browser"}),b.jsx("span",{className:"min-w-0 truncate text-[#888] text-[13px]",children:a})]}),i&&b.jsx(Xm,{code:i,language:"javascript",collapsible:!0})]})}function Km(e){return e.length>60?"..."+e.slice(-57):e}const Wc=30;function E9({toolName:e,args:t}){const i=t.path??t.file_path??"",a=t.command??"",s=t.old_str??"",o=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?Km(i):"",f=c?` /${c}/`:"",p=s?s.split(` -`):[],m=o?o.split(` -`):[],y=p.length+m.length,x=y>Wc,_=x?Math.round(Wc*(p.length/y)):p.length,N=x?Wc-_:m.length;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:d}),h&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:h})]}),f&&b.jsx("div",{className:"text-purple-400/60 font-mono text-[13px] break-all mt-0.5",children:f}),(s||o)&&b.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[p.slice(0,_).map((S,E)=>b.jsxs("div",{className:"text-red-400/60",children:[b.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),S]},`o${E}`)),m.slice(0,N).map((S,E)=>b.jsxs("div",{className:"text-emerald-400/60",children:[b.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),S]},`n${E}`)),x&&b.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",y-Wc," more lines"]})]})]})}const Jc=30,w9="*** Begin Patch",N9="*** End Patch",H1="*** Add File: ",$1="*** Update File: ",q1="*** Delete File: ",S9={add:"create",update:"edit",delete:"delete"};function k9(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 T9(e){const t=[];let i=null;const a=()=>{i&&t.push(i),i=null};for(const s of e.split(` -`))if(!(s===w9||s===N9))if(s.startsWith(H1))a(),i={kind:"add",path:s.slice(H1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith($1))a(),i={kind:"update",path:s.slice($1.length).trim(),oldLines:[],newLines:[]};else if(s.startsWith(q1))a(),i={kind:"delete",path:s.slice(q1.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 A9({op:e}){const t=S9[e.kind]??"file",i=e.oldLines.length+e.newLines.length,a=i>Jc,s=a&&i>0?Math.round(Jc*(e.oldLines.length/i)):e.oldLines.length,o=a?Jc-s:e.newLines.length;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:t}),e.path&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Km(e.path)})]}),(e.oldLines.length>0||e.newLines.length>0)&&b.jsxs("div",{className:"font-mono text-[13px] leading-relaxed mt-1.5",children:[e.oldLines.slice(0,s).map((c,d)=>b.jsxs("div",{className:"text-red-400/60",children:[b.jsx("span",{className:"select-none text-red-400/30 mr-1",children:"-"}),c]},`o${d}`)),e.newLines.slice(0,o).map((c,d)=>b.jsxs("div",{className:"text-emerald-400/60",children:[b.jsx("span",{className:"select-none text-emerald-400/30 mr-1",children:"+"}),c]},`n${d}`)),a&&b.jsxs("div",{className:"text-[#444] mt-0.5",children:["... ",i-Jc," more lines"]})]})]})}function C9({args:e,result:t,status:i}){const a=T9(k9(e));return a.length===0?b.jsxs("div",{children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm",children:"patch"}),i==="failed"&&typeof t=="string"&&t.trim()&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:t.trim()})]}):b.jsxs("div",{className:"space-y-2",children:[a.map((s,o)=>b.jsx(A9,{op:s},o)),i==="failed"&&typeof t=="string"&&t.trim()&&b.jsx("div",{className:"text-red-400/70 text-[13px]",children:t.trim()})]})}function M9({args:e,result:t}){const i=(e.path??"").trim(),a=t;let s=null;if(typeof a=="string"){const o=a.trim();o&&!o.toLowerCase().startsWith("data:image/")&&!o.startsWith("{")&&(s=o)}return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-baseline gap-2",children:[b.jsx("span",{className:"text-sky-400/80 font-semibold text-sm shrink-0",children:"view image"}),i&&b.jsx("span",{className:"text-[#888] font-mono text-[13px] break-all",children:Km(i)})]}),s&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1",children:s})]})}const O9={critical:"text-red-400",high:"text-orange-400",medium:"text-yellow-400",low:"text-blue-400",info:"text-cyan-400"};function R9({args:e,result:t}){const i=e.title??"",a=e.description??"",s=e.impact??"",o=e.target??"",c=e.endpoint??"",d=e.method??"",h=e.technical_analysis??"",f=e.poc_description??"",p=e.poc_script_code??"",m=e.remediation_steps??"",y=e.cve??"",x=e.cwe??"",_=t,N=(_&&typeof _=="object"?_.severity:null)??e.severity??"medium",S=String(N).toLowerCase(),E=(_&&typeof _=="object"?_.cvss_score:null)??e.cvss??null,k=O9[S]??"text-yellow-400";return b.jsxs("div",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx("span",{className:`font-semibold text-sm ${k}`,children:S.toUpperCase()}),E!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["CVSS ",E]}),y&&b.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:y}),x&&b.jsx("span",{className:"text-[#888] font-mono text-[13px]",children:x})]}),i&&b.jsx("div",{className:"text-[15px] text-white/80 font-semibold",children:i}),(o||c)&&b.jsxs("div",{className:"text-[13px] text-[#888] font-mono",children:[o,c?` ${d} ${c}`:""]}),a&&b.jsx(Ln,{text:a,maxLines:20}),s&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Impact"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:s,maxLines:15})})]}),h&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:h,maxLines:20})})]}),(f||p)&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Proof of Concept"}),f&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:f})}),p&&b.jsx(LE,{children:p})]}),m&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Remediation"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:m,maxLines:15})})]})]})}const SN=200,kN={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 Zm(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 Zp(e,t=150){return Fi(e.replace(/\n/g," ").replace(/\r/g,"").replace(/\t/g," "),t)}function Qp(e,t){const i=e.split(` -`),a=i.slice(0,t).map(s=>Fi(s,SN-5)).join(` -`);return i.length>t?a+` -...`:a}function D9({args:e,result:t}){const i=e.httpql_filter??"",a=t,s=a?a.requests:null,o=Array.isArray(s)?s:[];return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing requests"}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,150)})]}),o.length>0&&b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[o.slice(0,20).map((c,d)=>{const h=(c.method??"GET").toUpperCase(),f=c.host??"",p=c.path??"",m=c.response,y=(m==null?void 0:m.statusCode)??null;return b.jsxs("div",{className:"flex gap-2",children:[b.jsx("span",{className:`w-10 shrink-0 font-bold ${kN[h]??"text-[#888]"}`,children:h}),b.jsx("span",{className:"text-[#777] truncate",children:Fi(f+p,180)}),y!=null&&b.jsx("span",{className:`ml-auto shrink-0 ${Zm(y)}`,children:y})]},d)}),o.length>20&&b.jsxs("div",{className:"text-[#555]",children:["... +",o.length-20," more"]})]})]})}function L9({args:e,result:t}){const i=e.request_id,a=e.part??"request",s=e.search_pattern??"",o=t,c=o?o.matches:null,d=Array.isArray(c)?c:[],h=o?o.content??null:null,f=o?!!o.has_more:!1;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[s?"searching":"viewing"," ",a]}),i!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]}),s&&b.jsxs("span",{className:"text-[#666] font-mono text-[13px]",children:["/",Fi(s,100),"/"]})]}),d.length>0&&b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-1",children:[d.slice(0,5).map((p,m)=>{const y=(p.before??"").replace(/\n/g," ").replace(/\r/g,"").slice(-100),x=(p.after??"").replace(/\n/g," ").replace(/\r/g,"").slice(0,100);return b.jsxs("div",{children:[y&&b.jsxs("span",{className:"text-[#555]",children:["...",y]}),b.jsx("span",{className:"text-amber-400/80 font-bold",children:p.match}),x&&b.jsxs("span",{className:"text-[#555]",children:[x,"..."]})]},m)}),d.length>5&&b.jsxs("div",{className:"text-[#555]",children:["... +",d.length-5," more matches"]})]}),h&&!d.length&&(()=>{const p=h.split(` -`),m=p.slice(0,15).map(x=>Fi(x,SN)).join(` -`),y=f||p.length>15;return b.jsx(br,{className:"text-[#666]",children:m+(y?` -... more content available`:"")})})()]})}function z9({args:e,result:t}){const i=(e.method??"GET").toUpperCase(),a=e.url??"",s=e.headers,o=e.body,c=typeof o=="string"?o:"",d=t,h=d?d.error??null:null,f=d?d.status_code??null:null,p=d?d.response_time_ms??null:null,m=d?d.body:null,y=typeof m=="string"?m:null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"request"}),b.jsxs("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:[b.jsxs("div",{children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:">>"}),b.jsx("span",{className:`font-bold ${kN[i]??"text-[#888]"}`,children:i}),b.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,_])=>b.jsxs("div",{className:"text-[#555] pl-5",children:[x,": ",Zp(String(_),150)]},x))]}),c&&b.jsx(br,{className:"text-[#888]",children:Qp(c,4)}),h&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:Zp(h,150)}),f!=null&&b.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),b.jsx("span",{className:`font-bold ${Zm(f)}`,children:f}),p!=null&&b.jsxs("span",{className:"text-[#555] ml-2",children:[p,"ms"]})]}),y&&b.jsx(br,{className:"text-[#666]",children:Qp(y,6)})]})}function j9({args:e,result:t}){const i=e.request_id,a=e.modifications,s=t,o=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 b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"repeating request"}),i!=null&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",i]})]}),a&&typeof a=="object"&&Object.keys(a).length>0&&b.jsx("div",{className:"mt-1.5 font-mono text-[13px] space-y-0.5",children:Object.entries(a).slice(0,5).map(([f,p])=>b.jsxs("div",{children:[b.jsxs("span",{className:"text-orange-400/60",children:[f,":"]})," ",b.jsx("span",{className:"text-[#777]",children:Zp(typeof p=="string"?p:JSON.stringify(p),150)})]},f))}),o!=null&&b.jsxs("div",{className:"font-mono text-[13px] mt-1.5",children:[b.jsx("span",{className:"text-[#555] select-none mr-1",children:"<<"}),b.jsx("span",{className:`font-bold ${Zm(o)}`,children:o}),c!=null&&b.jsxs("span",{className:"text-[#555] ml-2",children:[c,"ms"]})]}),h&&b.jsx(br,{className:"text-[#666]",children:Qp(h,5)})]})}const I9={get:"getting",list:"listing",create:"creating",update:"updating",delete:"deleting"};function B9({args:e}){const t=e.action??"",i=e.scope_name??"",a=I9[t]??(t||"managing");return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("span",{className:"text-purple-400/80 font-semibold text-sm",children:[a," proxy scope"]}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:Fi(i,50)})]})}function U9({args:e}){const t=e.parent_id;return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"listing sitemap"}),t&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["under #",Fi(String(t),20)]})]})}function H9({args:e}){const t=e.entry_id;return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"viewing sitemap entry"}),t&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["#",Fi(String(t),20)]})]})}function $9(e){switch(e.toolName){case"list_requests":return b.jsx(D9,{...e});case"view_request":return b.jsx(L9,{...e});case"send_request":return b.jsx(z9,{...e});case"repeat_request":return b.jsx(j9,{...e});case"scope_rules":return b.jsx(B9,{...e});case"list_sitemap":return b.jsx(U9,{...e});case"view_sitemap_entry":return b.jsx(H9,{...e});default:return b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:e.toolName.replace(/_/g," ")})}}function q9({args:e}){const t=e.thought??e.content??"";return t?b.jsxs("div",{children:[b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:"Agent is thinking"}),b.jsx("div",{className:"mt-1.5 italic text-[#888]",children:b.jsx(Ln,{text:t,maxLines:20})})]}):null}function P9({toolName:e,args:t}){if(e==="create_agent"){const i=t.name??t.agent_name??"",a=t.task??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"spawning"}),i&&b.jsx("span",{className:"text-cyan-400 font-semibold text-sm",children:i})]}),a&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:a,maxLines:15})})]})}if(e==="agent_finish"){const i=t.result_summary??"",a=t.success,s=t.findings,o=Array.isArray(s)?s:void 0;return b.jsxs("div",{children:[b.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&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:20})}),o&&o.length>0&&b.jsx("div",{className:"mt-1.5 space-y-0.5",children:o.map((c,d)=>b.jsxs("div",{className:"text-[13px] text-[#888]",children:[b.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 b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"message"}),a&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["to ",a.slice(0,16)]})]}),i&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:20})})]})}if(e==="wait_for_message"){const i=t.reason??"";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"waiting"}),i&&b.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 b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx("span",{className:"text-red-400/80 font-semibold text-sm",children:"stopping"}),i&&b.jsx("span",{className:"text-[#888] text-[13px]",children:i.slice(0,16)}),a&&b.jsx("span",{className:"text-[#555] text-[13px] italic",children:"+ descendants"})]}),s&&b.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:s})]})}return e==="view_agent_graph"?b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:"viewing agents graph"}):b.jsx("span",{className:"text-cyan-400/80 font-semibold text-sm",children:e.replace(/_/g," ")})}function F9({args:e,result:t}){const i=e.query??e.search_query??"",a=t,s=a?a.content??null:null,o=a&&!a.success?a.message??null:null;return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"Searching the web"}),i&&b.jsx("div",{className:"text-[#888] text-[13px] mt-0.5",children:i}),o&&b.jsx("div",{className:"text-red-400/70 text-[13px] mt-1.5",children:o}),s&&b.jsx("div",{className:"mt-2",children:b.jsx(Ln,{text:s,maxLines:15})})]})}const G9=50,P1=200,F1=25,G1=24,V9=/\x1b(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*\x07)/g,Y9=/\.\.\. \[(stdout|stderr|result|output|error) truncated at \d+k? chars\]/g;function X9(e){return e.replace(V9,"")}function xp(e){const t=X9(e);return t.length>P1?t.slice(0,P1-3)+"...":t}function K9(e){return e.replace(Y9,"").trim()}function Z9(e){const t=e.split(` -`);if(t.length<=G9)return t.map(xp).join(` -`);const i=t.length-F1-G1;return[...t.slice(0,F1).map(xp),`... ${i} lines truncated ...`,...t.slice(-G1).map(xp)].join(` -`)}function Q9({args:e,result:t}){const i=e.action??"",a=e.code??e.script??"",s=t;let o=null;s&&typeof s=="object"?o=typeof s.stdout=="string"?s.stdout:null:typeof s=="string"&&(o=s);const c=i==="new_session"?"new session":i==="close"?"close session":i==="list_sessions"?"list sessions":null,d=o?Z9(K9(o)):null;return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-yellow-400/80 font-semibold text-sm",children:"Python"}),c&&b.jsx("span",{className:"text-[#888] text-[13px]",children:c})]}),a&&b.jsx(Xm,{code:a,language:"python",collapsible:!0}),d&&b.jsx(br,{className:"text-[#666]",children:d})]})}function W9({args:e}){const t=e.targets,a=(Array.isArray(t)?t:[]).map(s=>typeof s=="object"&&s?s.original??null:null).filter(Boolean);return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Starting penetration test"}),a.length===1&&b.jsxs("span",{className:"text-[#888] text-[13px]",children:["on ",a[0]]})]}),a.length>1&&b.jsx("div",{className:"mt-1.5 space-y-0.5",children:a.map((s,o)=>b.jsxs("div",{className:"text-[13px] text-[#888]",children:[b.jsx("span",{className:"text-[#555] mr-1",children:"•"}),s]},o))})]})}function J9({args:e}){const t=e.name??"Unknown Agent",i=e.task??"";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-[#888] text-[13px]",children:"subagent"}),b.jsx("span",{className:"text-purple-400 font-semibold text-sm",children:t})]}),i&&b.jsx("div",{className:"mt-1.5",children:b.jsx(Ln,{text:i,maxLines:15})})]})}function eU(e){return e.toolName==="subagent_start_info"?b.jsx(J9,{...e}):b.jsx(W9,{...e})}function tU({args:e}){const t=e.executive_summary??"",i=e.methodology??"",a=e.technical_analysis??"",s=e.recommendations??"";return b.jsxs("div",{className:"space-y-3",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Penetration test completed"}),t&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Executive Summary"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:t,maxLines:25})})]}),i&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Methodology"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:i,maxLines:25})})]}),a&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Technical Analysis"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:a,maxLines:25})})]}),s&&b.jsxs("div",{children:[b.jsx("span",{className:"text-emerald-400/60 text-sm font-semibold",children:"Recommendations"}),b.jsx("div",{className:"mt-1",children:b.jsx(Ln,{text:s,maxLines:25})})]}),!t&&!i&&!a&&!s&&b.jsx("div",{className:"text-[#555] text-xs",children:"Generating final report..."})]})}function nU({toolName:e,args:t,result:i}){if(e==="create_note"){const a=t.title??"",s=t.content??"",o=t.category??"general";return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"}),b.jsxs("span",{className:"text-[#555] text-[13px]",children:["(",o,")"]})]}),a&&b.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s})})]})}if(e==="delete_note")return b.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 b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note updated"}),a&&b.jsx("div",{className:"mt-1.5 text-[#999] text-[13px]",children:a}),s&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s})})]})}if(e==="get_note"){const a=i,s=a&&typeof a=="object"&&a.success?a.note:void 0;return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note read"}),s&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-1.5 text-[#999] text-[13px]",children:[s.title??"(untitled)",b.jsxs("span",{className:"text-[#555] ml-1",children:["(",s.category??"general",")"]})]}),s.content&&b.jsx("div",{className:"mt-1",children:b.jsx(Cs,{text:s.content})})]})]})}if(e==="list_notes"){const a=i;let s=[];if(a&&typeof a=="object"&&a.success){const o=a.notes;s=Array.isArray(o)?o:[]}return b.jsxs("div",{children:[b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"notes"}),s.length>0?b.jsx("div",{className:"mt-1.5 space-y-0.5",children:s.map((o,c)=>b.jsxs("div",{className:"text-[13px]",children:[b.jsx("span",{className:"text-[#555] mr-1",children:"-"}),b.jsx("span",{className:"text-[#999]",children:o.title??"(untitled)"}),b.jsxs("span",{className:"text-[#555] ml-1",children:["(",o.category??"general",")"]}),o.content&&b.jsx("div",{className:"ml-3",children:b.jsx(Cs,{text:o.content})})]},c))}):b.jsx("div",{className:"mt-1 text-[#555] text-xs",children:"No notes"})]})}return b.jsx("span",{className:"text-amber-400/80 font-semibold text-sm",children:"note"})}const iU={create_todo:{label:"Task added",Icon:gT},list_todos:{label:"Plan",Icon:f2},update_todo:{label:"Task updated",Icon:pT},mark_todo_done:{label:"Task completed",Icon:r_},mark_todo_pending:{label:"Task reopened",Icon:TT},delete_todo:{label:"Task removed",Icon:jT}};function rU({status:e}){return e==="done"?b.jsx(r_,{className:"w-3.5 h-3.5 text-emerald-400/70 shrink-0"}):e==="in_progress"?b.jsx(E2,{className:"w-3.5 h-3.5 text-purple-400/70 shrink-0 animate-pulse"}):b.jsx(N2,{className:"w-3.5 h-3.5 text-[#444] shrink-0"})}function aU({todos:e,highlightId:t}){return b.jsx("div",{className:"space-y-0",children:e.map((i,a)=>{const s=i.status??"pending",o=t&&i.id===t;return b.jsxs("div",{className:`flex items-start gap-2.5 py-1.5 px-2 -mx-2 rounded-md transition-colors ${o?"bg-purple-500/[0.08]":""}`,children:[b.jsx("div",{className:"mt-[1px]",children:b.jsx(rU,{status:s})}),b.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 sU({toolName:e,args:t,result:i}){const a=iU[e]??{label:"Plan",Icon:wT},s=a.Icon,o=i;if(typeof o=="string"&&o.trim())return b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),b.jsx("div",{className:"mt-1.5 text-[#888] text-[13px]",children:o.trim()})]});let c=[],d=null,h;if(o&&typeof o=="object"){if(d=o.error??null,o.success){const p=o.todos;c=Array.isArray(p)?p:[]}h=o.id??t.todo_id??void 0}const f=e!=="list_todos"?h:void 0;return c.length===0&&!d?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}):b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[b.jsx(s,{className:"w-3.5 h-3.5 text-purple-400/60"}),b.jsx("span",{className:"text-purple-400/80 font-semibold text-sm",children:a.label})]}),d&&b.jsx("div",{className:"text-red-400/70 text-[13px] mb-2",children:d}),c.length>0&&b.jsx("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.015] px-3 py-2",children:b.jsx(aU,{todos:c,highlightId:f})})]})}function V1(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 TN({toolName:e,args:t,result:i}){const a=V1(t),s=V1(i);return b.jsxs("div",{children:[b.jsx("span",{className:"text-[#888] font-semibold text-sm",children:e.replace(/_/g," ")}),a&&b.jsx(br,{className:"text-[#777]",children:a}),s&&b.jsx(br,{className:"text-[#666]",children:s})]})}function lU({args:e}){const i=(e.skills??"").split(",").map(a=>a.trim()).filter(Boolean);return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-emerald-400/80 font-semibold text-sm",children:"Loading skill"}),i.length>0&&b.jsx("span",{className:"text-[#888] text-[13px]",children:i.join(", ")})]})}const Pu={terminal:{renderer:y9,icon:u_,color:"text-emerald-400"},python:{renderer:Q9,icon:T2,color:"text-yellow-400"},browser:{renderer:_9,icon:em,color:"text-blue-400"},filesystem:{renderer:E9,icon:s_,color:"text-sky-400"},proxy:{renderer:$9,icon:Su,color:"text-purple-400",match:/request|sitemap|scope/},reporting:{renderer:R9,icon:MT,color:"text-red-400"},thinking:{renderer:q9,icon:t_,color:"text-purple-400"},agents:{renderer:P9,icon:Wp,color:"text-cyan-400",match:/agent/},search:{renderer:F9,icon:c_,color:"text-amber-400"},lifecycle:{renderer:eU,icon:l_,color:"text-emerald-400"},notes:{renderer:nU,icon:DT,color:"text-amber-400",match:/note/},skills:{renderer:lU,icon:su,color:"text-emerald-400"},todos:{renderer:sU,icon:tT,color:"text-purple-400",match:/todo/},telemetry:{renderer:TN,icon:su,color:"text-[#555]"}},oU={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"]},cU=Object.fromEntries(Object.entries(oU).flatMap(([e,t])=>t.map(i=>[i,e]))),uU={finish_scan:tU,apply_patch:C9,view_image:M9},dU={agent_finish:{icon:l_,color:"text-cyan-400"},send_message_to_agent:{icon:Bx,color:"text-cyan-400"},wait_for_message:{icon:Bx,color:"text-cyan-400"},view_agent_graph:{icon:L2,color:"text-cyan-400"},stop_agent:{icon:e_,color:"text-red-400"},scan_start_info:{icon:M2,color:"text-emerald-400"},subagent_start_info:{icon:Wp,color:"text-purple-400"},view_image:{icon:K2,color:"text-sky-400"}},fU=Pu.telemetry;function AN(e){var i;const t=cU[e];if(t)return t;for(const[a,s]of Object.entries(Pu))if((i=s.match)!=null&&i.test(e))return a;return null}function hU(e){const t=uU[e];if(t)return t;const i=AN(e);return i?Pu[i].renderer:TN}function pU(e){const t=dU[e];if(t)return t;const i=AN(e),a=i?Pu[i]:fU;return{icon:a.icon,color:a.color}}const mU=30;function gU({role:e,content:t}){const i=e==="user"||e==="human";return b.jsxs("div",{children:[b.jsx("span",{className:`font-semibold text-sm ${i?"text-blue-400/80":"text-purple-400/80"}`,children:i?"User":"Thinking"}),b.jsx("div",{className:"mt-1.5 italic text-[#888]",children:b.jsx(Ln,{text:t,maxLines:mU})})]})}class bU extends re.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?b.jsx("span",{className:"text-[#555] font-semibold text-sm",children:this.props.toolName.replace(/_/g," ")}):this.props.children}}function xU(e){const t=hU(e.toolName);return b.jsx(bU,{toolName:e.toolName,children:b.jsx(t,{...e})})}function CN(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 MN(e){const t=CN(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:t==null?{}:{__raw:typeof t=="string"?t:JSON.stringify(t)}}function Y1(e){const t=/(\d+)$/.exec(e);return t?parseInt(t[1],10):0}function ON(e){var i;const t=(i=e.data)==null?void 0:i.role;return e.type==="chat"&&(t==="user"||t==="human")}const yU={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 vU(e){return e==="completed"?"completed":e==="running"?"running":e==="failed"||e==="crashed"?"failed":e}function _U(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,o=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=MN(h.data.args),p=f.name??f.agent_name??"",m=f.task??"";p&&m&&o.set(p,m)}}else ON(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:o.get(h.name)??"",status:vU(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 EU({agent:e,events:t,showHeader:i=!0}){const a=re.useMemo(()=>t.filter(c=>c.agent_id===e.id&&!ON(c)).sort((c,d)=>Y1(c.id)-Y1(d.id)),[t,e.id]),s=a.filter(c=>c.type==="tool").length,o=a.length-s;return b.jsxs("div",{children:[i&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[b.jsx("span",{className:"text-base font-semibold text-white truncate",children:e.name}),b.jsx("span",{className:`flex-shrink-0 text-xs font-medium capitalize px-2 py-0.5 rounded-full border ${yU[e.status]??"text-[#aaa] border-[#333] bg-[#1a1a1a]"}`,children:e.status}),b.jsx("span",{className:"font-mono text-xs text-[#555]",children:e.id})]}),b.jsxs("p",{className:"text-xs text-[#666] mb-4",children:[o," message",o===1?"":"s"," · ",s," tool call",s===1?"":"s"]})]}),a.length===0?b.jsx("p",{className:"text-sm text-[#666]",children:"No recorded activity for this agent."}):b.jsx("div",{className:"py-1",children:a.map((c,d)=>{var N,S,E,k,w,O;const h=d===a.length-1,f=c.type==="tool",p=f?String(((N=c.data)==null?void 0:N.tool_name)??"tool"):"",m=f?"":String(((S=c.data)==null?void 0:S.role)??"assistant");let y,x;if(f){const B=pU(p);y=B.icon,x=B.color}else{const B=m==="user"||m==="human";y=B?Wp:t_,x=B?"text-blue-400":"text-purple-400"}const _=f?String(((E=c.data)==null?void 0:E.status)??"completed"):"completed";return b.jsxs("div",{className:"flex gap-3",children:[b.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[b.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:b.jsx(y,{className:`w-3.5 h-3.5 ${x}`})}),!h&&b.jsx("div",{className:"w-px flex-1 bg-[#1a1a1a] mt-1"})]}),b.jsx("div",{className:"flex-1 min-w-0 pt-[5px] pb-6",children:f?b.jsx(xU,{toolName:p,args:MN((k=c.data)==null?void 0:k.args),result:CN((w=c.data)==null?void 0:w.result)??null,status:_}):b.jsx(gU,{role:m,content:String(((O=c.data)==null?void 0:O.content)??"")})})]},c.id)})})]})}const wU={completed:"bg-emerald-400",running:"bg-blue-400",waiting:"bg-yellow-400",stopped:"bg-[#888]",crashed:"bg-red-400",failed:"bg-red-400"},NU=80;function SU({agent:e,events:t,onClose:i}){const a=re.useRef(null),s=re.useRef(!1),o=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]),b.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:b.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:[b.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#222] px-5 py-3.5",children:[b.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[b.jsx("span",{className:`h-2 w-2 flex-shrink-0 rounded-full ${wU[e.status]??"bg-[#888]"}`}),b.jsx("span",{className:"truncate text-sm font-semibold text-white",children:e.name}),b.jsx("span",{className:"flex-shrink-0 font-mono text-xs text-[#555]",children:e.id})]}),b.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:b.jsx(f_,{className:"h-4 w-4"})})]}),b.jsx("div",{ref:a,onScroll:o,className:"flex-1 overflow-y-auto p-5",children:b.jsx(EU,{agent:e,events:t,showHeader:!1})}),b.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 border-t border-[#222] px-5 py-3",children:[b.jsx("span",{className:"text-xs text-[#888]",children:"Steer agents live from your terminal."}),b.jsx("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("steer_agent"),className:"text-xs font-medium text-[#60a5fa] hover:underline",children:"Upgrade to Pro to steer agents from the web →"})]})]})})}class Nu extends Error{constructor(t){super(t),this.name="RunParseError"}}const kU=["critical","high","medium","low"];function TU(e){const t=String(e??"").toLowerCase().trim();return kU.includes(t)?t:"low"}function AU(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 CU(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function RN(e,t){try{return JSON.parse(e)}catch{throw new Nu(`${t} isn't valid JSON. Make sure you selected a Strix run directory.`)}}function MU(e){const t=RN(e,"run.json");if(!t||typeof t!="object"||Array.isArray(t))throw new Nu("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 o=Ot(i.start_time),c=Ot(i.end_time);let d=null;if(o&&c){const x=new Date(o).getTime(),_=new Date(c).getTime();!Number.isNaN(x)&&!Number.isNaN(_)&&_>=x&&(d=Math.round((_-x)/1e3))}let h=null,f=null,p=null,m=null;const y=i.scan_results;if(y&&typeof y=="object"){const x=y;h=Ot(x.executive_summary),f=Ot(x.technical_analysis),p=Ot(x.methodology),m=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:o,endTime:c,durationSeconds:d,executiveSummary:h,technicalAnalysis:f,methodology:p,recommendations:m}}function OU(){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 RU(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{...OU(),id:Ot(e.id)??`vuln-${t+1}`,scan_id:i,title:Ot(e.title)??"Untitled finding",description:Ot(e.description)??"",severity:TU(e.severity),status:"open",created_at:AU(e.timestamp),cve:Ot(e.cve),cvss:CU(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 DU(e,t=null){const i=RN(e,"vulnerabilities.json");if(!Array.isArray(i))throw new Nu("vulnerabilities.json is not a JSON array.");return i.map((a,s)=>{if(!a||typeof a!="object")throw new Nu(`vulnerabilities.json entry #${s+1} is not an object.`);return RU(a,s,t)})}function LU(e){const t={critical:0,high:0,medium:0,low:0};for(const i of e)t[i.severity]+=1;return t}async function Vs(e){const t=await fetch(e,{cache:"no-store"});if(!t.ok)throw new Error(`${e} responded ${t.status}`);return t.json()}function Fu(e){return e?`?run=${encodeURIComponent(e)}`:""}async function DN(e){const t=await Vs("/api/run"+Fu(e)),i=MU(JSON.stringify(t)),a=t.finished===!0;return{summary:i,raw:t,finished:a}}async function LN(e,t){const i=await Vs("/api/vulnerabilities"+Fu(t));return DU(JSON.stringify(i),e)}async function zU(e){const t=await Vs("/api/report"+Fu(e));return(t==null?void 0:t.markdown)??null}async function zN(e){const t=await Vs("/api/transcript"+Fu(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 X1(e){const{summary:t,raw:i,finished:a}=await DN(e),[s,o,c]=await Promise.all([LN(t.runId,e).catch(()=>[]),zU(e).catch(()=>null),zN(e).catch(()=>({agents:[],events:[]}))]);return{summary:t,raw:i,finished:a,vulnerabilities:s,reportMarkdown:o,transcript:c}}async function Gu(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 jU(){const e=await Vs("/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 IU(){const e=await Vs("/api/auth/status");return{verified:(e==null?void 0:e.verified)===!0,email:(e==null?void 0:e.email)??null}}async function BU(e){const{ok:t,data:i}=await Gu("/api/auth/otp/start",{email:e});return t&&i.ok===!0?{ok:!0}:{ok:!1,error:String(i.error??"unavailable")}}async function UU(e,t){const{ok:i,data:a}=await Gu("/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 HU(){await Gu("/api/auth/forget",{})}async function $U(e){const{ok:t,data:i}=await Gu("/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 qU=[{title:"PR Reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp},{title:"Repositories",desc:"Connect your org's repositories.",slug:"repositories",icon:Q2},{title:"Domains",desc:"Add the domains your team owns.",slug:"domains",icon:em},{title:"Integrations",desc:"Two-way sync findings to Jira, Linear, and Slack.",slug:"integrations",icon:xT},{title:"Members",desc:"Invite your team and set roles.",slug:"members",icon:HT},{title:"Pentests",desc:"Launch deeper pentests on managed infra.",slug:"pentests",icon:c_},{title:"Dashboard",desc:"See every project and finding in one place.",slug:"dashboard",icon:J2},{title:"Issues",desc:"Track and triage findings across your org.",slug:"platform_issues",icon:BT},{title:"Chat",desc:"Ask the agents about any finding.",slug:"chat",icon:uT},{title:"Networks",desc:"Map and monitor your network exposure.",slug:"networks",icon:fT},{title:"Knowledge",desc:"Give agents context about your systems.",slug:"knowledge",icon:R2}];function PU({view:e,onSelectView:t,issuesCount:i,agentCount:a,runCount:s,verified:o,email:c,onOpenEmail:d,onOpenHistory:h,onForget:f}){return b.jsx("aside",{className:"hidden w-72 flex-shrink-0 border-r border-[#222] lg:block",children:b.jsxs("div",{className:"sticky top-0 flex h-screen flex-col overflow-y-auto px-3 py-4",children:[b.jsxs("div",{className:"px-1.5",children:[b.jsxs("a",{href:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("logo"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100",title:"Open Strix Cloud",children:[b.jsx("img",{src:"./logo.png",alt:"Strix",className:"h-8 w-10 object-cover"}),b.jsx("span",{className:"text-base font-medium tracking-tight text-white",children:"Strix"})]}),b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("sidebar_start_free"),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:["Start free",b.jsx(Su,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),o&&c&&b.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:[b.jsx(nm,{className:"h-3.5 w-3.5 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-[11px] text-[#666]",children:"Signed in as"}),b.jsx("p",{className:"truncate text-xs text-[#aaa]",title:c,children:c})]}),b.jsx("button",{onClick:f,title:"Forget this email on this machine",className:"flex-shrink-0 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Forget",children:b.jsx(sT,{className:"h-3.5 w-3.5"})})]})]}),b.jsxs(K1,{label:"This run",children:[b.jsx(Vl,{icon:s_,label:"Overview",active:e==="overview",onClick:()=>t("overview")}),b.jsx(Vl,{icon:o2,label:"Issues",count:i>0?i:void 0,active:e==="issues",onClick:()=>t("issues")}),a>0&&b.jsx(Vl,{icon:d_,label:"Agents",count:a,active:e==="agents",onClick:()=>t("agents")})]}),b.jsxs(K1,{label:"Your runs",children:[b.jsx(Vl,{icon:Ls,label:"Past runs",count:s>0?s:void 0,active:e==="history",onClick:h}),b.jsx(Vl,{icon:tm,label:"Email report",onClick:d})]}),b.jsxs("div",{className:"mt-6",children:[b.jsx("p",{className:"px-2.5 pb-1 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:"Platform"}),b.jsx("p",{className:"px-2.5 pb-2 text-[11px] leading-snug text-[#666]",children:"Get the most out of Strix for your team."}),b.jsx("div",{className:"space-y-0.5",children:qU.map(p=>b.jsx(KT,{item:p},p.slug))})]})]})})}function K1({label:e,children:t}){return b.jsxs("div",{className:"mt-6",children:[b.jsx("p",{className:"px-2.5 pb-1.5 text-[11px] font-semibold uppercase tracking-wide text-[#555]",children:e}),b.jsx("div",{className:"space-y-0.5",children:t})]})}function Vl({icon:e,label:t,count:i,active:a,onClick:s}){return b.jsxs("button",{onClick:s,className:`flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm transition-colors ${a?"text-white":"text-[#888] hover:bg-[rgba(255,255,255,0.06)] hover:text-white"}`,style:a?{background:"rgba(255,255,255,0.12)"}:void 0,children:[b.jsx(e,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),b.jsx("span",{className:"flex-1 text-left",children:t}),i!=null&&b.jsx("span",{className:"text-xs text-[#666] tabular-nums",children:i})]})}const FU=[{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 GU({counts:e}){const t=FU.filter(i=>e[i.key]>0);return t.length===0?b.jsx("span",{className:"text-xs text-[#555]",children:"No findings"}):b.jsx("div",{className:"flex items-center gap-3",children:t.map(i=>b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:`h-2 w-2 rounded-full ${i.dot}`,"aria-hidden":"true"}),b.jsx("span",{className:`text-xs tabular-nums ${i.text}`,children:e[i.key]})]},i.key))})}function Z1(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 VU({runs:e,activeRun:t,onSelectRun:i,onVerifyClick:a}){const s=(e==null?void 0:e.count)??0;return!e||e.locked?b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-8 text-center",children:[b.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:b.jsx(Ls,{className:"h-5 w-5 text-[#888]","aria-hidden":"true"})}),b.jsx("h2",{className:"text-base font-semibold text-white",children:"Browse every run on this machine"}),b.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. Verify your email to browse them here."]}),b.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:"Verify email to unlock"}),b.jsxs("p",{className:"mt-4 flex items-center justify-center gap-1.5 text-xs text-[#555]",children:[b.jsx(u_,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Or open one from the CLI with"," ",b.jsx("code",{className:"font-mono text-[#888]",children:"strix view "})]})]}):e.runs.length===0?b.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."}):b.jsx("div",{className:"space-y-2",children:e.runs.map(o=>{const c=o.name===t,d=Z1(o.start_time)??Z1(o.end_time);return b.jsxs("button",{onClick:()=>i(o.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:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"truncate text-sm font-medium text-white",children:o.name}),c&&b.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"})]}),b.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-[#666]",children:[o.target&&b.jsx("span",{className:"truncate font-mono text-[#888]",children:o.target}),o.target&&(o.scan_mode||d||o.status)&&b.jsx("span",{className:"text-[#333]",children:"·"}),o.scan_mode&&b.jsx("span",{className:"capitalize",children:o.scan_mode}),d&&b.jsx("span",{className:"text-[#333]",children:"·"}),d&&b.jsx("span",{children:d}),o.status&&b.jsx("span",{className:"text-[#333]",children:"·"}),o.status&&b.jsx("span",{className:"capitalize",children:o.status})]})]}),b.jsx(GU,{counts:o.severity_counts}),b.jsx(g2,{className:"h-4 w-4 flex-shrink-0 text-[#555] transition-colors group-hover:text-[#aaa]","aria-hidden":"true"})]},o.name)})})}const YU={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."},XU={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."};function KU({open:e,onClose:t,activeRun:i,auth:a,onVerified:s}){const o=(a==null?void 0:a.verified)===!0,[c,d]=re.useState("disclosure"),[h,f]=re.useState(""),[p,m]=re.useState(""),[y,x]=re.useState(!1),[_,N]=re.useState(null),[S,E]=re.useState(null),[k,w]=re.useState(""),[O,B]=re.useState(""),[R,H]=re.useState(!1),I=re.useRef("");if(re.useEffect(()=>{e&&(d("disclosure"),m(""),x(!1),N(null),E(null),w(""),B(""),H(!1),f((a==null?void 0:a.email)??""))},[e,a==null?void 0:a.email]),re.useEffect(()=>{if(!e)return;const j=M=>{M.key==="Escape"&&c!=="password"&&t()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[e,c,t]),!e)return null;const K=async()=>{d("sending"),N(null);const j=await $U(i);if(j.ok){w(j.password),B(j.filename),d("password");return}if(j.error==="reverify"||j.error==="unverified"){E("Your verification expired. Enter your email to verify again."),d("email");return}N(XU[j.error]??"Could not send the report. Try again."),d("disclosure")},L=()=>{N(null),E(null),o?K():d("email")},q=async()=>{const j=h.trim();if(!j){N("Enter your email to continue.");return}x(!0),N(null);const M=await BU(j);x(!1),M.ok?(E(`We sent a 6-digit code to ${j}.`),d("code")):N(YU[M.error]??"Could not send a code. Try again.")},X=async()=>{const j=p.trim();if(j.length<4){N("Enter the 6-digit code from your email.");return}x(!0),N(null);const M=await UU(h.trim(),j);x(!1),M.verified?(I.current=M.email,s(),K()):N("That code did not match. Check it and try again.")},G=async()=>{try{await navigator.clipboard.writeText(k),H(!0),setTimeout(()=>H(!1),1500)}catch{}},C=I.current||(a==null?void 0:a.email)||h.trim();return b.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":"Email an encrypted report",children:[b.jsx("div",{className:"absolute inset-0 bg-black/70",onClick:()=>c!=="password"&&t()}),b.jsxs("div",{className:"relative z-10 w-full max-w-md rounded-2xl bg-[#0a0a0a] p-6 shadow-2xl",style:{border:"1px solid #2a2a2a"},children:[b.jsx("button",{onClick:t,className:"absolute right-4 top-4 cursor-pointer text-[#666] transition-colors hover:text-white","aria-label":"Close",children:b.jsx(f_,{className:"h-5 w-5"})}),b.jsxs("div",{className:"mb-4 flex items-center gap-2.5",children:[b.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{border:"1px solid #2a2a2a",background:"rgba(255,255,255,0.04)"},children:b.jsx(tm,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-base font-semibold text-white",children:"Email an encrypted PDF report of this run"}),b.jsx("p",{className:"text-xs text-[#666]",children:"Verified by a one-time code sent to your email"})]})]}),_&&b.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:[b.jsx(i_,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400","aria-hidden":"true"}),b.jsx("p",{className:"text-xs text-red-300",children:_})]}),S&&!_&&c!=="password"&&b.jsx("p",{className:"mb-4 text-xs text-[#888]",children:S}),c==="disclosure"&&b.jsxs("div",{className:"space-y-4",children:[b.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:[b.jsxs("div",{className:"flex items-start gap-2.5",children:[b.jsx(nm,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.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 ",b.jsx("span",{className:"text-white",children:"encrypted PDF"}),"."]})]}),b.jsxs("div",{className:"flex items-start gap-2.5",children:[b.jsx(rT,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-[#888]","aria-hidden":"true"}),b.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."})]})]}),b.jsx("button",{onClick:L,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:o?"Email me the encrypted PDF":"Continue with your email"}),o&&(a==null?void 0:a.email)&&b.jsxs("p",{className:"text-center text-xs text-[#666]",children:["Sending to ",a.email]})]}),c==="email"&&b.jsxs("form",{className:"space-y-4",onSubmit:j=>{j.preventDefault(),q()},children:[b.jsxs("label",{className:"block",children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your email"}),b.jsx("input",{type:"email",autoFocus:!0,value:h,onChange:j=>f(j.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"}})]}),b.jsxs("button",{type:"submit",disabled:y,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:[y&&b.jsx(Jf,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Send me a code"]})]}),c==="code"&&b.jsxs("form",{className:"space-y-4",onSubmit:j=>{j.preventDefault(),X()},children:[b.jsxs("label",{className:"block",children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"6-digit code"}),b.jsx("input",{inputMode:"numeric",autoFocus:!0,value:p,onChange:j=>m(j.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"}})]}),b.jsxs("button",{type:"submit",disabled:y,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:[y&&b.jsx(Jf,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Verify and send"]}),b.jsx("button",{type:"button",onClick:()=>{d("email"),N(null),E(null)},className:"w-full cursor-pointer text-center text-xs text-[#666] transition-colors hover:text-[#aaa]",children:"Use a different email"})]}),c==="sending"&&b.jsxs("div",{className:"flex flex-col items-center gap-3 py-8",children:[b.jsx(Jf,{className:"h-6 w-6 animate-spin text-white","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-[#aaa]",children:"Generating and encrypting locally..."})]}),c==="password"&&b.jsxs("div",{className:"space-y-4",children:[b.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:[b.jsx(Ds,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-400","aria-hidden":"true"}),b.jsxs("p",{className:"text-xs text-emerald-200",children:["Sent to ",C,". Open the attached PDF with this password."]})]}),b.jsxs("div",{children:[b.jsx("span",{className:"mb-1.5 block text-xs text-[#888]",children:"Your one-time password"}),b.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-black p-3",style:{border:"1px solid #2a2a2a"},children:[b.jsx("code",{className:"flex-1 break-all font-mono text-base text-white",children:k}),b.jsxs("button",{onClick:G,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:[R?b.jsx(Ds,{className:"h-3.5 w-3.5"}):b.jsx(eo,{className:"h-3.5 w-3.5"}),R?"Copied":"Copy"]})]}),b.jsxs("p",{className:"mt-2 text-xs text-[#666]",children:["Save this now. Strix never stores it, so we cannot show it again. File:"," ",b.jsx("span",{className:"font-mono text-[#888]",children:O})]})]}),b.jsx("button",{onClick:t,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 ZU="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.",Q1=["critical","high","medium","low"],QU=500,WU=[{title:"One-click autofix + open a fix PR",desc:"Fix it for you and open a PR, retested.",slug:"autofix",icon:su},{title:"Export SOC 2 / ISO 27001 report",desc:"Share an auditor-ready report with your team.",slug:"compliance",icon:j2}],JU=[{title:"Scheduled pentesting",desc:"Continuous coverage for your whole org.",slug:"scheduled",icon:u2},{title:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:o_},{title:"PR reviews",desc:"Pentest every pull request your team opens.",slug:"pr_reviews",icon:Jp}];function eH(){const[e,t]=re.useState(null),[i,a]=re.useState(null),[s,o]=re.useState(null),[c,d]=re.useState(null),[h,f]=re.useState("overview"),[p,m]=re.useState(null),[y,x]=re.useState(null),[_,N]=re.useState(!1),S=re.useCallback(async()=>{try{m(await IU())}catch{}},[]),E=re.useCallback(async()=>{try{x(await jU())}catch{}},[]);re.useEffect(()=>{S(),E()},[S,E]);const k=re.useRef(!1);re.useEffect(()=>{let q=!1,X;k.current=!1;const G=()=>{X=setTimeout(C,QU)},C=async()=>{if(!q)try{const{summary:j,raw:M,finished:U}=await DN(e);if(q)return;if(U&&!k.current){k.current=!0;const A=await X1(e);q||a(A);return}const[Y,Z]=await Promise.all([zN(e).catch(()=>({agents:[],events:[]})),LN(j.runId,e).catch(()=>[])]);if(q)return;a(A=>({summary:j,raw:M,finished:U,transcript:Y,vulnerabilities:Z,reportMarkdown:(A==null?void 0:A.reportMarkdown)??null})),G()}catch(j){if(q)return;o(j instanceof Error?j.message:"Could not load run data."),G()}};return(async()=>{try{const j=await X1(e);if(q)return;a(j),j.finished?k.current=!0:G()}catch(j){if(q)return;o(j instanceof Error?j.message:"Could not load run data."),G()}})(),()=>{q=!0,X&&clearTimeout(X)}},[e]);const w=re.useMemo(()=>i?LU(i.vulnerabilities):null,[i]),O=(i==null?void 0:i.vulnerabilities.find(q=>q.id===c))??null,B=(i==null?void 0:i.transcript.agents.length)??0,R=(p==null?void 0:p.verified)===!0,H=re.useCallback(q=>{t(q),d(null),a(null),o(null),f("overview")},[]),I=re.useCallback(()=>{qi("email_report"),N(!0)},[]),K=re.useCallback(()=>{qi("history_unlock"),E(),f("history")},[E]),L=re.useCallback(async()=>{await HU(),await S(),await E()},[S,E]);return b.jsxs("div",{className:"min-h-screen bg-black text-white flex",children:[b.jsx(PU,{view:h,onSelectView:q=>{q==="history"?K():f(q)},issuesCount:(i==null?void 0:i.vulnerabilities.length)??0,agentCount:B,runCount:(y==null?void 0:y.count)??0,verified:R,email:(p==null?void 0:p.email)??null,onOpenEmail:I,onOpenHistory:K,onForget:()=>void L()}),b.jsxs("div",{className:"flex-1 min-w-0",children:[b.jsx("div",{className:"border-b border-[#222]",children:b.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-4 flex items-center gap-1.5",children:[b.jsxs("a",{href:"https://app.strix.ai",target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("logo"),className:"flex items-center gap-1.5 opacity-90 transition-opacity hover:opacity-100 lg:hidden",title:"Open Strix Cloud",children:[b.jsx("img",{src:"./logo.png",alt:"Strix",className:"w-10 h-8 object-cover"}),b.jsx("div",{className:"text-base text-white font-medium tracking-tight",children:"Strix"})]}),b.jsx("span",{className:"text-xs text-[#666]",children:"Local results"}),i&&b.jsx(nH,{finished:i.finished}),b.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[R&&y&&!y.locked&&y.runs.length>0&&b.jsx(tH,{runs:y,activeRun:e,launchedName:(i==null?void 0:i.summary.runName)??(i==null?void 0:i.summary.runId)??"Current run",onSelect:H}),b.jsxs("a",{href:Ps,target:"_blank",rel:"noopener noreferrer",onClick:()=>qi("run_in_cloud"),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",b.jsx(Su,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})}),b.jsxs("div",{className:"max-w-[72rem] mx-auto px-6 py-8 space-y-6",children:[b.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:[b.jsx(nm,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-emerald-400","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-[#aaa] leading-relaxed",children:ZU})]}),s&&!i&&h!=="history"&&b.jsxs("div",{className:"rounded-lg px-4 py-3 flex gap-3 items-start border border-red-500/30 bg-red-500/5",children:[b.jsx(i_,{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-red-400","aria-hidden":"true"}),b.jsx("p",{className:"text-sm text-red-300",children:s})]}),h==="history"?b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ls,{className:"w-5 h-5 text-[#888]","aria-hidden":"true"}),b.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Past runs"})]}),b.jsx(VU,{runs:y,activeRun:e,onSelectRun:H,onVerifyClick:I})]}):!i&&!s?b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-10 text-center",children:[b.jsx("div",{className:"w-6 h-6 mx-auto mb-3 rounded-full border-2 border-[#333] border-t-white animate-spin"}),b.jsx("p",{className:"text-sm text-[#888]",children:"Loading run data…"})]}):i&&w?b.jsxs(b.Fragment,{children:[b.jsx(rH,{summary:i.summary}),b.jsxs("div",{className:"flex gap-5 border-b border-[#2a2a2a] lg:hidden",children:[b.jsx(vp,{active:h==="overview",onClick:()=>f("overview"),children:"Overview"}),b.jsxs(vp,{active:h==="issues",onClick:()=>f("issues"),children:["Issues",i.vulnerabilities.length>0?` (${i.vulnerabilities.length})`:""]}),B>0&&b.jsxs(vp,{active:h==="agents",onClick:()=>f("agents"),children:["Agents (",B,")"]})]}),h==="overview"?b.jsx(cH,{summary:i.summary,counts:w,total:i.vulnerabilities.length,reportMarkdown:i.reportMarkdown,onOpenEmail:I}):h==="agents"&&B>0?b.jsx(uH,{run:i}):O?b.jsxs("div",{className:"space-y-4",children:[b.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:[b.jsx(e2,{className:"w-4 h-4"})," Back to all findings"]}),b.jsx(v4,{vulnerability:O})]}):b.jsx(aH,{vulnerabilities:i.vulnerabilities,finished:i.finished,onSelect:q=>d(q)})]}):null]})]}),b.jsx(KU,{open:_,onClose:()=>N(!1),activeRun:e,auth:p,onVerified:()=>{S(),E()}})]})}function tH({runs:e,activeRun:t,launchedName:i,onSelect:a}){const[s,o]=re.useState(!1),c=t??i;return b.jsxs("div",{className:"relative",children:[b.jsxs("button",{onClick:()=>o(d=>!d),onBlur:()=>setTimeout(()=>o(!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:[b.jsx(Ls,{className:"w-3.5 h-3.5","aria-hidden":"true"}),b.jsx("span",{className:"max-w-[160px] truncate",children:c}),b.jsx(n_,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),s&&b.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 b.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:[b.jsxs("span",{className:"min-w-0 flex-1",children:[b.jsx("span",{className:"block truncate",children:d.name}),d.target&&b.jsx("span",{className:"block truncate font-mono text-[#666]",children:d.target})]}),h&&b.jsx("span",{className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-emerald-400"})]},d.name)})})]})}function nH({finished:e}){return e?b.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-[#888]",children:[b.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#555]"}),"Complete"]}):b.jsxs("span",{className:"ml-3 inline-flex items-center gap-1.5 text-xs text-emerald-400",children:[b.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[b.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping"}),b.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Live"]})}function iH(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 rH({summary:e}){const t=iH(e.durationSeconds);return b.jsxs("div",{children:[b.jsx("h1",{className:"text-2xl font-semibold text-white",children:e.runName??e.runId??"Scan results"}),b.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&&b.jsx("span",{className:"font-mono text-[#aaa]",children:e.targets.join(", ")}),e.scanMode&&b.jsx(yp,{label:e.scanMode}),t&&b.jsx(yp,{label:t}),e.status&&b.jsx(yp,{label:e.status})]})]})}function yp({label:e}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[#333]",children:"·"}),b.jsx("span",{className:"capitalize",children:e})]})}function aH({vulnerabilities:e,finished:t,onSelect:i}){const a=[...e].sort((s,o)=>Q1.indexOf(s.severity)-Q1.indexOf(o.severity));return a.length===0?b.jsxs("div",{className:"space-y-4",children:[b.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&&b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-medium text-white",children:"Stay ahead of new exposures"}),b.jsx("p",{className:"mt-0.5 mb-3 text-xs text-[#666]",children:"Attack surface monitoring catches new exposures for your org over time."}),b.jsx(Ms,{label:"Attack surface monitoring",desc:"Continuous coverage for your whole org.",slug:"asm",icon:o_})]})]}):b.jsx("div",{className:"space-y-2",children:a.map(s=>b.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:[b.jsx("span",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${im(s.severity)}`,"aria-hidden":"true"}),b.jsxs("span",{className:"flex-1 min-w-0",children:[b.jsx("span",{className:"block text-sm font-medium text-white truncate",children:s.title}),s.target&&b.jsx("span",{className:"block text-xs text-[#666] font-mono truncate",children:s.target})]}),b.jsx("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full border capitalize ${h_[s.severity]}`,children:s.severity})]},s.id))})}function sH(e){return e.replace(/^\s*#{1,6}[ \t]+.*(?:\r?\n)+/,"").trimStart()}function lH(e){const t=[];let i=null;for(const a of e.split(` -`)){const s=a.match(/^#{1,6}\s+(.*)$/);if(s){const o=s[1].trim().toLowerCase();if(o===i)continue;i=o}else a.trim()!==""&&(i=null);t.push(a)}return t.join(` -`)}function oH({onOpenEmail:e}){return b.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:b.jsxs("div",{className:"flex items-center gap-3",children:[b.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:b.jsx(tm,{className:"h-4 w-4 text-emerald-400","aria-hidden":"true"})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Email an encrypted PDF report of this run"}),b.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."})]}),b.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 o=[["Executive Summary",e.executiveSummary],["Technical Analysis",e.technicalAnalysis],["Methodology",e.methodology],["Recommendations",e.recommendations]].filter(([,c])=>!!c).map(([c,d])=>({title:c,content:sH(d)}));return b.jsxs("div",{className:"space-y-6",children:[i>0&&b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:b.jsx(_4,{findings:{total:i,...t}})}),b.jsx(oH,{onOpenEmail:s}),o.length>0?b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5 space-y-8",children:o.map(c=>b.jsx(na,{title:c.title,content:c.content},c.title))}):a?b.jsx("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:b.jsx(na,{content:lH(a)})}):i===0&&b.jsx("p",{className:"text-sm text-[#888]",children:"No summary available for this run yet."}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:WU.map(c=>b.jsx(Ux,{item:c},c.slug))}),b.jsxs("div",{children:[b.jsx("p",{className:"mb-2 text-sm font-semibold text-white",children:"Continuous coverage for your org"}),b.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:JU.map(c=>b.jsx(Ux,{item:c},c.slug))})]})]})}function vp({active:e,onClick:t,children:i}){return b.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&&b.jsx("span",{className:"absolute bottom-0 inset-x-0 h-0.5 bg-white rounded-full"})]})}function uH({run:e}){const{agents:t,events:i}=e.transcript,a=re.useMemo(()=>_U(t,i),[t,i]),[s,o]=re.useState(null),c=s?t.find(d=>d.id===s)??null:null;return b.jsxs("div",{className:"space-y-5",children:[b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(d_,{className:"w-4 h-4 text-[#888]","aria-hidden":"true"}),b.jsx("h2",{className:"text-sm font-semibold text-white",children:"Agent graph"}),b.jsxs("span",{className:"text-xs text-[#666]",children:[t.length," agent",t.length===1?"":"s"]})]}),b.jsx("p",{className:"mt-1 mb-4 text-xs text-[#666]",children:"Click an agent to open its full transcript."}),b.jsx("div",{className:"h-[480px] rounded-lg border border-[#1a1a1a] overflow-hidden",children:b.jsx(u9,{agents:a,selectedAgentId:s,onSelectAgent:d=>o(d),eventsLoaded:!0,eventsEmpty:a.size===0,scanCompleted:e.finished})})]}),b.jsxs("div",{className:"rounded-xl border border-[#222] bg-[rgba(255,255,255,0.02)] p-5",children:[b.jsx("p",{className:"text-sm font-semibold text-white",children:"Drive the agents live"}),b.jsx("p",{className:"mt-0.5 text-xs text-[#666]",children:"Steer and re-run this scan from the web."}),b.jsxs("div",{className:"mt-3 flex flex-wrap gap-2.5",children:[b.jsx(Ms,{label:"Steer agents from the web",desc:"Guide the agents live while they scan.",slug:"live_scan_prompt",icon:_T}),b.jsx(Ms,{label:"Re-run in Strix Cloud with more depth",desc:"Run this scan on managed infra with more depth.",slug:"live_scan",icon:ST})]})]}),c&&b.jsx(SU,{agent:c,events:i,onClose:()=>o(null)})]})}Yk.createRoot(document.getElementById("root")).render(b.jsx(re.StrictMode,{children:b.jsx(eH,{})})); diff --git a/strix/viewer/viewer_dist/index.html b/strix/viewer/viewer_dist/index.html index 3cf2eee2..71647b06 100644 --- a/strix/viewer/viewer_dist/index.html +++ b/strix/viewer/viewer_dist/index.html @@ -6,8 +6,8 @@ Strix Results - - + +