From 3ae1d484f8780b421d6ebb068917fc8e67a0112f Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:33:09 +0300 Subject: [PATCH] deploy editor --- ...{index-C24E8BwX.css => index-DHRqwGsS.css} | 2 +- .../{index-DyBxLpnk.js => index-mkblAxjD.js} | 60 +++++++++--------- ...js => workbox-window.prod.es5-B9K5rw8f.js} | 4 +- .../editor/bin/Bootsharp.FileSystem.wasm | Bin 10005 -> 12053 bytes .../editor/bin/Naninovel.Editor.WASM.wasm | Bin 471829 -> 480533 bytes docs/public/editor/bin/Naninovel.Editor.wasm | Bin 292629 -> 292629 bytes docs/public/editor/bin/dotnet.native.wasm | Bin 10272189 -> 10336314 bytes docs/public/editor/index.html | 4 +- docs/public/editor/sw.js | 2 +- ...orkbox-7cfec069.js => workbox-e3490c72.js} | 2 +- 10 files changed, 37 insertions(+), 37 deletions(-) rename docs/public/editor/assets/{index-C24E8BwX.css => index-DHRqwGsS.css} (88%) rename docs/public/editor/assets/{index-DyBxLpnk.js => index-mkblAxjD.js} (64%) rename docs/public/editor/assets/{workbox-window.prod.es5-D5gOYdM7.js => workbox-window.prod.es5-B9K5rw8f.js} (97%) rename docs/public/editor/{workbox-7cfec069.js => workbox-e3490c72.js} (98%) diff --git a/docs/public/editor/assets/index-C24E8BwX.css b/docs/public/editor/assets/index-DHRqwGsS.css similarity index 88% rename from docs/public/editor/assets/index-C24E8BwX.css rename to docs/public/editor/assets/index-DHRqwGsS.css index f10ab5ad8..ee38efebd 100644 --- a/docs/public/editor/assets/index-C24E8BwX.css +++ b/docs/public/editor/assets/index-DHRqwGsS.css @@ -1 +1 @@ -._lazy-list_1owqy_1{will-change:transform}._sortable-overlay_1owqy_5{pointer-events:none}[role=sortable-node]:active,[role=sortable-combined]:active{z-index:999;position:relative}[role=sortable-handle],[role=sortable-combined]{touch-action:none;cursor:grab}[role=sortable-handle]:active,[role=sortable-combined]:active{cursor:grabbing}._scrollable_1owqy_26{height:100%}._underlay-blur_1owqy_30{--blur-amount: 10px;--blur-saturate: 1.8;--blur-brightness: .55;--blur-border-radius: 0;--blur-disabled-opacity: .75;--blur-transition: none}._underlay-blur-enabled_1owqy_39:after{content:"";position:absolute;inset:0;z-index:-1;opacity:0;overflow:hidden;transition:var(--blur-transition) opacity;border-radius:var(--blur-border-radius);backdrop-filter:blur(var(--blur-amount)) brightness(var(--blur-brightness)) saturate(var(--blur-saturate))}._underlay-blur-disabled_1owqy_41:after{content:"";position:absolute;inset:0;z-index:-1;overflow:hidden;opacity:0;border-radius:var(--blur-border-radius);transition:var(--blur-transition) opacity;background:var(--dim-bg-color)}._underlay-blur-show_1owqy_43._underlay-blur-enabled_1owqy_39:after{opacity:1}._underlay-blur-show_1owqy_43._underlay-blur-disabled_1owqy_41:after{opacity:var(--blur-disabled-opacity)}.os-scrollbar{--os-size: .8rem !important;--os-padding-perpendicular: 0rem !important;--os-padding-axis: 0rem !important;--os-track-border-radius: 0 !important;--os-track-bg: rgba(180, 180, 180, 0) !important;--os-track-bg-hover: rgba(180, 180, 180, .1) !important;--os-track-bg-active: rgba(180, 180, 180, .1) !important;--os-track-border: none !important;--os-track-border-hover: none !important;--os-track-border-active: none !important;--os-handle-border-radius: 0 !important;--os-handle-bg: rgba(180, 180, 180, .2) !important;--os-handle-bg-hover: rgba(180, 180, 180, .4) !important;--os-handle-bg-active: rgba(180, 180, 180, .4) !important;--os-handle-border: none !important;--os-handle-border-hover: none !important;--os-handle-border-active: none !important;--os-handle-min-size: 3.3rem !important;--os-handle-max-size: none !important;--os-handle-perpendicular-size: 100% !important;--os-handle-perpendicular-size-hover: 100% !important;--os-handle-perpendicular-size-active: 100% !important;--os-handle-interactive-area-offset: .25rem !important}._markdown_kljlj_1{padding:0 1rem}._markdown_kljlj_1>:first-child{margin-top:0}._markdown_kljlj_1>:last-child{margin-bottom:0}._markdown_kljlj_1 p,._markdown_kljlj_1 pre{margin:1rem 1.5rem}._markdown_kljlj_1 h1{font-size:var(--giant-font-size);font-weight:var(--bold-base-weight);margin:1.5rem 1.5rem 1rem}._markdown_kljlj_1 code{font-family:var(--code-font)}._markdown_kljlj_1 code:not(pre code){background-color:var(--base-bg-color);color:var(--bright-font-color);border-radius:var(--base-border-radius);padding:0 .3rem}._markdown_kljlj_1 table{border-collapse:collapse;border-style:hidden;margin:1rem 1.5rem}._markdown_kljlj_1 table td{border:.1rem solid var(--base-button-color);padding:.4rem .8rem}.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;inset:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) )}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;inset:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}._tooltip_1ak1z_1{z-index:var(--max-z-index);position:absolute;border-radius:var(--base-border-radius);pointer-events:none}._tooltip_1ak1z_1._tooltip-doc_1ak1z_8{border-radius:var(--major-border-radius)}._content_1ak1z_12{opacity:0;transition:var(--fast-transition) opacity;border:solid .1rem var(--bright-button-color);border-radius:var(--base-border-radius);pointer-events:none}._content_1ak1z_12._visible_1ak1z_20{opacity:1;pointer-events:auto}._tooltip-doc_1ak1z_8 ._content_1ak1z_12{user-select:text;border-radius:var(--major-border-radius)}._tooltip-active_1ak1z_30 ._content_1ak1z_12{opacity:1}._scrollable-content_1ak1z_34{max-width:55.5rem;max-height:30rem;padding:.5rem .8rem}._tooltip-doc_1ak1z_8 ._scrollable-content_1ak1z_34{padding:0}.szh-menu{margin:0;padding:0;list-style:none;box-sizing:border-box;width:max-content;z-index:100;border:1px solid rgba(0,0,0,.1);background-color:#fff}.szh-menu:focus{outline:none}.szh-menu__arrow{box-sizing:border-box;width:.75rem;height:.75rem;background-color:#fff;border:1px solid transparent;border-left-color:#0000001a;border-top-color:#0000001a;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translate(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translate(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{cursor:default;background-color:inherit}.szh-menu__item--disabled{cursor:default;color:#aaa}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{margin:0;padding:0;list-style:none}.szh-menu__divider{height:1px;margin:.5rem 0;background-color:#0000001f}.szh-menu-button{box-sizing:border-box}._disabled-menu_1j4o5_3{display:none}._disabled-button_1j4o5_7{opacity:.5}._items-container_1j4o5_19{border-radius:var(--base-border-radius)}._item-container_1j4o5_23{display:inline-block;width:100%}._item-icon_1j4o5_28{display:inline-block;margin-left:-.9rem;min-width:3rem;text-align:center}._item-label_1j4o5_35{margin-right:.6rem}._item-hotkey_1j4o5_39{float:right;margin-left:3.5rem;color:var(--dim-font-color)}.szh-menu{padding:.4rem 0;border:solid .1rem var(--bright-button-color);background-color:transparent;border-radius:var(--base-border-radius)}.szh-menu__submenu .szh-menu--dir-right{top:-.5rem!important;border-radius:0 var(--base-border-radius) var(--base-border-radius) 0}.szh-menu__submenu .szh-menu--dir-left{border-radius:var(--base-border-radius) 0 0 var(--base-border-radius)}.szh-menu__submenu .szh-menu--dir-right ._items-container_1j4o5_19{border-radius:0 var(--base-border-radius) var(--base-border-radius) 0}.szh-menu__submenu .szh-menu--dir-left ._items-container_1j4o5_19{border-radius:var(--base-border-radius) 0 0 var(--base-border-radius)}.szh-menu-button{color:var(--base-font-color);font-family:var(--base-font);font-size:var(--base-font-size);background-color:var(--base-button-color);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);padding:0 .6rem;transition:var(--fast-transition) all}.szh-menu-button:not(._disabled-button_1j4o5_7):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--dim-bg-color)}.szh-menu-button:not(._disabled-button_1j4o5_7):focus,.szh-menu-button--open:not(._disabled-button_1j4o5_7),.szh-menu-button--open:not(._disabled-button_1j4o5_7):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--base-accent-color)}.szh-menu__item{padding:.4rem 1rem;cursor:default}.szh-menu__item--disabled{color:var(--dark-font-color)}.szh-menu__item--hover{color:var(--bright-font-color);background-color:var(--base-button-color)}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__divider{margin:.4rem 0;background-color:var(--base-button-color)}._dropdown_1p8r5_1{min-height:1.6rem;line-height:1.6rem;padding:0 .2rem 0 .3rem;color:var(--light-font-color);background-color:var(--base-button-color);border:solid .1rem var(--base-shadow-color);border-color:var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);transition:var(--fast-transition) all}._searchable-dropdown_1p8r5_15:focus-within{background-color:var(--dim-bg-color)!important}._dropdown_1p8r5_1:hover{background-color:var(--light-button-color);border-color:var(--dim-bg-color)}._dropdown_1p8r5_1:focus-within{border-color:var(--base-accent-color)}._dropdown-group_1p8r5_28{display:flex;align-items:center;height:3rem;border-bottom:solid .1rem var(--bright-button-color)}._dropdown-group_1p8r5_28:hover{background-color:var(--base-button-color)}._dropdown-group-name_1p8r5_39{flex-grow:.8;text-align:center;font-weight:var(--bold-base-weight)}._dropdown-group-arrow_1p8r5_45{margin-left:.8rem;color:var(--dim-font-color)}._dropdown-option_1p8r5_50{display:flex}._dropdown-option-icon_1p8r5_58{margin-left:-1rem;margin-right:1rem;width:1.4rem;text-align:center}._dropdown-option-label-description_1p8r5_73{color:var(--dim-font-color);font-weight:var(--light-base-weight);font-size:var(--tiny-font-size)}._dropdown-option-group-arrow_1p8r5_79{position:relative;left:1.2rem;margin-left:auto;color:var(--dim-font-color)}._dropdown_1p8r5_1 .react-select__control{width:100%;min-height:inherit;background-color:unset;border:unset;border-radius:unset;box-shadow:unset}._dropdown_1p8r5_1 .react-select__value-container{padding:unset}._dropdown_1p8r5_1 .react-select__indicators{margin:0 .4rem}._dropdown_1p8r5_1 .react-select__indicator-separator{display:none}._dropdown_1p8r5_1 .react-select__single-value{color:inherit;margin:unset}._dropdown_1p8r5_1 .react-select__input-container{margin:unset;padding:unset;color:inherit}._dropdown_1p8r5_1 .react-select__menu{background-color:transparent;border:solid .1rem var(--bright-button-color);left:0;width:auto;max-width:100%;border-radius:var(--base-border-radius);box-shadow:unset;margin-top:.2rem;margin-bottom:unset}._expand-menu_1p8r5_130 .react-select__menu{min-width:100%}._dropdown_1p8r5_1 .react-select__menu-list{max-height:unset;padding:0}._menu-list-blur-underlay_1p8r5_139{border-radius:var(--base-border-radius)}._menu-list_1p8r5_139{max-height:30rem}._dropdown_1p8r5_1 .react-select__option{padding:.4rem 2rem;color:inherit}._dropdown_1p8r5_1 .react-select__option--is-focused,._dropdown_1p8r5_1 .react-select__option:active{color:var(--bright-font-color);background-color:var(--base-button-color)}._dropdown_1p8r5_1 .react-select__option--is-focused ._dropdown-option-label-description_1p8r5_73{color:var(--light-font-color)}._dropdown_1p8r5_1 .react-select__option--is-selected{color:unset;background-color:unset}._dropdown_1p8r5_1 .react-select__option--is-selected.react-select__option--is-focused{color:var(--bright-font-color);background-color:var(--base-button-color)}._dropdown_1p8r5_1 .react-select__menu-notice{padding:.4rem 2rem;color:inherit}._dropdown_1p8r5_1 .react-select__placeholder{color:inherit;display:none}._value-container_y2mvn_5{overflow-x:clip}._value_y2mvn_5{min-height:1.6rem;line-height:1.6rem;padding:0 .2rem;color:var(--light-font-color);background-color:var(--dim-bg-color);border:solid .1rem var(--base-shadow-color);border-top-color:var(--dark-shadow-color);border-radius:var(--base-border-radius);transition:var(--fast-transition) all}._value_y2mvn_5:hover{border-color:var(--bright-button-color)}._value_y2mvn_5:focus-within{border-color:var(--base-accent-color)}._readonly-value_y2mvn_29{opacity:.5;cursor:not-allowed}._readonly-value_y2mvn_29 *{pointer-events:none}._unassigned-value_y2mvn_38{opacity:.5}._unassigned-value_y2mvn_38:hover,._unassigned-value_y2mvn_38:focus-within,._unassigned-value_y2mvn_38:active{opacity:1}._labeled-container_y2mvn_46{display:flex;margin:.2rem 0;transition:var(--fast-transition) all}._label_y2mvn_46{line-height:1.6rem;display:flex;font-weight:var(--light-base-weight);align-items:center;flex-basis:40%;flex-shrink:0;overflow:clip;white-space:nowrap}._label-with-tooltip_y2mvn_63{cursor:help}._labeled-container_y2mvn_46>._value-container_y2mvn_5{flex-grow:1;max-width:60%}._labeled-container_y2mvn_46:focus-within>._label_y2mvn_46{color:var(--bright-accent-color)}._modal_y2mvn_1:focus-within ._value_y2mvn_5,._labeled-container_y2mvn_46:focus-within ._value_y2mvn_5{border-color:var(--base-accent-color)}._multiline_y2mvn_81._labeled-container_y2mvn_46{display:block}._multiline_y2mvn_81._labeled-container_y2mvn_46>._label_y2mvn_46{padding:.2rem 0}._text-editor_y2mvn_89{display:flex;align-items:center;cursor:text;min-width:1rem;overflow:scroll;white-space:nowrap}._text-editor_y2mvn_89::-webkit-scrollbar{display:none}._multiline_y2mvn_81 ._text-editor_y2mvn_89{display:block;min-height:4.8rem;max-height:16rem;width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-x:hidden}._multiline_y2mvn_81 ._text-editor_y2mvn_89::-webkit-scrollbar{display:unset}._toggle_y2mvn_116{display:flex;flex-basis:unset!important;align-items:center;justify-content:center;width:1.2rem}._named_y2mvn_124{display:flex}._named-name_y2mvn_128{flex-basis:50%;overflow-x:clip;padding-right:.2rem}._named-value_y2mvn_134{flex-basis:50%;overflow-x:clip}._expression_y2mvn_143{font-family:var(--code-font);color:var(--expression-color)}._expression_y2mvn_143:before{content:"{";margin-right:.2rem}._expression_y2mvn_143:after{content:"}";margin-left:.2rem}._expression_y2mvn_143:before,._expression_y2mvn_143:after{font-weight:var(--light-code-weight);opacity:.5;transition:var(--fast-transition) all}._expression_y2mvn_143:hover:before,._expression_y2mvn_143:hover:after{opacity:1;font-weight:var(--regular-code-weight)}._text-id_y2mvn_169{color:var(--dim-font-color);font-family:var(--code-font);font-weight:var(--light-code-weight);opacity:.5;transition:var(--fast-transition) all}._text-id_y2mvn_169:hover{opacity:1;font-weight:var(--regular-code-weight)}._text-id_y2mvn_169:before{content:"|#";margin-right:.2rem}._text-id_y2mvn_169:after{content:"|";margin-left:.2rem}._vector_y2mvn_192{display:flex;flex-wrap:wrap;row-gap:.2rem;column-gap:.5rem}._vector-component_y2mvn_199{flex-grow:1;flex-shrink:0;flex-basis:0;margin-top:0;margin-bottom:0}._vector-component-label_y2mvn_207{flex-basis:fit-content;margin-left:.1rem;margin-right:.6rem}._list-header_1pldn_5:hover{background-color:var(--dim-button-color)}._list-collapse_1pldn_13{width:.8rem;padding-left:.2rem;padding-right:.4rem;color:var(--dark-font-color)}._list-label_1pldn_20{flex-grow:1}._list-size_1pldn_29{margin-left:auto;min-width:4.8rem}._list-items_1pldn_34{padding-top:.2rem;padding-bottom:.3rem;border:.1rem solid var(--light-shadow-color);background-color:var(--bright-bg-color);border-radius:var(--base-border-radius)}._list-item_1pldn_34{display:flex;align-items:center;padding:.1rem .6rem .1rem 0}._list-item-selected_1pldn_49{background-color:var(--base-button-color)}._list-item-selected_1pldn_49:focus{background-color:var(--dark-accent-color)}._list-item-drag-handle_1pldn_58{padding-left:.75rem;padding-right:1rem;color:var(--dark-font-color)}._list-item-drag-handle_1pldn_58:hover,._list-item-drag-handle_1pldn_58:active{color:var(--light-font-color)}._list-item-label_1pldn_69{flex-basis:30%;font-weight:var(--light-base-weight)}._list-item-editor_1pldn_74{flex-basis:70%}._list-item-editor_1pldn_74 *{margin:0}._list-empty-item_1pldn_82{padding-left:1rem;line-height:2rem;font-weight:var(--light-base-weight)}._list-add-remove-panel_1pldn_88{width:5.6rem;height:1.9rem;color:var(--light-font-color);background-color:var(--bright-bg-color);border-radius:0 0 var(--base-border-radius) var(--base-border-radius);border:.1rem solid var(--light-shadow-color);border-top:none;margin-left:auto;margin-right:1rem;margin-top:-.1rem}._list-add-remove-button_1pldn_101{display:inline-block;width:50%;height:100%;text-align:center;border-radius:0 0 var(--base-border-radius) var(--base-border-radius)}._list-add-remove-button_1pldn_101:hover{color:var(--bright-font-color);background-color:var(--base-button-color)}._list-add-remove-button_1pldn_101>*{display:inline-block;vertical-align:bottom}._fields_1dubz_5{display:flex}._hex-field-container_1dubz_9{flex-grow:1}._hex-field_1dubz_9{border-top-right-radius:0;border-bottom-right-radius:0}._color-field_1dubz_18{flex-basis:4.6rem;border:solid .1rem var(--base-shadow-color);border-radius:0 var(--base-border-radius) var(--base-border-radius) 0;overflow:hidden}._color-field_1dubz_18:hover{border-color:var(--bright-button-color)}._color-field-open_1dubz_29,._color-field-open_1dubz_29:hover{border-color:var(--base-accent-color)}._color-field-rgb_1dubz_38{height:1.3rem}._color-field-alpha_1dubz_42{background:#000;height:.3rem}._color-field-alpha-fill_1dubz_47{background:#fff;height:.3rem}._color-picker_1dubz_52{z-index:1;position:absolute;right:.4rem;width:calc(100% - .2rem);max-width:20rem;border:solid .1rem var(--base-accent-color);border-radius:var(--base-border-radius);overflow:hidden}._color-picker_1dubz_52 .react-colorful{width:100%}._color-picker_1dubz_52 .react-colorful__saturation,._color-picker_1dubz_52 .react-colorful__alpha{border-radius:0}._color-picker_1dubz_52 .react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1)}._color-picker_1dubz_52 .react-colorful__pointer-fill{box-shadow:inset 0 0 .4rem #0005}._color-picker_1dubz_52 .react-colorful__saturation-pointer{width:2.2rem;height:2.2rem;border-radius:100%}._color-picker_1dubz_52 .react-colorful__hue-pointer,._color-picker_1dubz_52 .react-colorful__alpha-pointer{border-radius:0;width:1rem;height:100%}._search-field_1j83z_1{padding:.2rem .3rem}._field_1j83z_5{min-height:1.4rem;line-height:1.4rem;padding-left:1.8rem}._search-icon_1j83z_11{pointer-events:none;position:absolute;color:var(--dim-font-color);padding-left:.4rem}._search-icon_1j83z_11>svg{transform:translateY(5%);scale:80%}._clear-button_1j83z_23{position:absolute;right:.2rem;float:right;color:var(--dim-font-color)}._match_1j83z_30{background-color:var(--dark-accent-color)}._settings-editor_1xqhl_1{height:100%;overflow:hidden}._header_1xqhl_6{height:2rem;width:100%;background-color:var(--light-bg-color);border-bottom:.1rem solid var(--dark-bg-color)}._content_1xqhl_13{display:flex;height:calc(100% - 2rem)}._type-list_1xqhl_18{flex:.25;border-right:.1rem solid var(--dark-bg-color)}._scope-separator_1xqhl_23{padding-left:1rem;margin-top:.4rem;margin-bottom:.2rem;font-weight:var(--bold-base-weight);color:var(--light-font-color);cursor:help}._scope-separator-empty_1xqhl_32{display:none}._type-list-item_1xqhl_36{padding-left:1.7rem}._type-list-item-selected_1xqhl_40{background-color:var(--dark-accent-color);color:var(--bright-font-color)}._type-view_1xqhl_46{flex:.75;padding-top:.2rem;padding-left:.8rem;padding-right:.4rem}._view-header_1xqhl_53{font-size:var(--giant-font-size);font-weight:var(--bold-base-weight);color:var(--light-font-color);margin-bottom:1rem}._view-content_1xqhl_60{margin-bottom:1rem}._view-group_1xqhl_64{margin-top:.8rem;font-weight:var(--bold-base-weight);color:var(--light-font-color)}._view-property-label-modified_1xqhl_74{text-decoration:underline dotted var(--dim-font-color)}._modal_xk5tk_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0;z-index:var(--max-z-index)}._modal-hidden_xk5tk_13{pointer-events:none}._window_xk5tk_17{padding:1.25rem 1.75rem;width:30rem;background-color:var(--base-bg-color);border:solid .1rem var(--bright-button-color);border-radius:var(--major-border-radius);animation:_fade-in_xk5tk_1 .33s ease}@keyframes _fade-in_xk5tk_1{0%{opacity:0;transform:translateY(-50%) scale(1.5)}to{opacity:1}}._title_xk5tk_31{margin-bottom:1.25rem;color:var(--light-font-color);font-weight:var(--bold-base-weight)}._progress-info_xk5tk_37{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._progress-bar_xk5tk_43{margin-top:.9rem;margin-bottom:.2rem;height:.3rem;border-radius:var(--base-border-radius);background:var(--dark-font-color)}._progress-bar-fill_xk5tk_51{height:.3rem;border-radius:var(--base-border-radius);background:repeating-linear-gradient(to right,var(--base-accent-color),var(--bright-accent-color),var(--base-accent-color));background-size:200% auto;background-position:0 100%;animation:_progress-bar-gradient_xk5tk_1 2s infinite;animation-fill-mode:forwards;animation-timing-function:linear}@keyframes _progress-bar-gradient_xk5tk_1{0%{background-position:0 0}to{background-position:-200% 0}}._confirmation-content_xk5tk_67{margin-bottom:1.4rem}._confirmation-buttons_xk5tk_71{float:right}._confirmation-button-confirm_xk5tk_75{width:7rem;height:2.2rem;justify-content:center}._confirmation-button-deny_xk5tk_81{width:7rem;height:2.2rem;margin-left:1.2rem;justify-content:center}._login-window_1msvh_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0}._window_1msvh_12{padding:1.25rem 1.75rem;width:30rem;background-color:var(--base-bg-color);border:solid .1rem var(--bright-button-color);border-radius:var(--major-border-radius)}._title_1msvh_20{color:var(--light-font-color);font-weight:var(--bold-base-weight);margin-bottom:.85rem}._info_1msvh_26{font-weight:var(--light-base-weight);margin-bottom:1.2rem}._button_1msvh_31{height:2.2rem;padding:0 1rem}._button_1msvh_31+._button_1msvh_31{margin-left:1.2rem}._control-panel_1mw5g_1{z-index:1;display:flex;align-items:center;position:fixed;left:0;top:0;width:100%;height:2.6rem;background-color:var(--dark-bg-color);--border-margin: .6rem;--button-margin: .4rem}@media (display-mode: window-controls-overlay){._control-panel_1mw5g_1{left:env(titlebar-area-x,0);top:env(titlebar-area-y,0);width:env(titlebar-area-width,100%);height:env(titlebar-area-height,2.6rem);app-region:drag}}._control-panel_1mw5g_1>._left_1mw5g_28 *,._control-panel_1mw5g_1>._right_1mw5g_29 *{app-region:no-drag}._left_1mw5g_28{display:inline-flex;flex:.5;margin-left:var(--border-margin)}._right_1mw5g_29{display:inline-flex;flex:.5;justify-content:flex-end;margin-right:var(--border-margin)}._button_1mw5g_46{height:2rem;font-weight:var(--light-base-weight);background-color:var(--dark-button-color);border-color:var(--dim-shadow-color);border-bottom-color:var(--dark-shadow-color)}._bridging_1mw5g_66{margin-left:var(--button-margin)}._bridging_1mw5g_66 ._button_1mw5g_46{border-top-right-radius:0;border-bottom-right-radius:0;width:2.6rem}._metadata_1mw5g_76 ._button_1mw5g_46{border-radius:0;border-left:none;width:2.6rem;display:flex;justify-content:center;align-items:center}._metadata_1mw5g_76 ._button_1mw5g_46:active:not(._button-disabled_1mw5g_58),._metadata_1mw5g_76 ._button-open_1mw5g_54{border-left:solid .1rem var(--base-accent-color)}span._project-title-field_1mw5g_93{height:1.8rem;padding-left:.5rem;padding-right:.7rem;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;background-color:var(--dark-button-color);border-color:var(--dim-shadow-color);border-bottom-color:var(--dark-shadow-color);transition:var(--fast-transition) all,padding-left}span._project-title-field_1mw5g_93:hover{color:var(--bright-font-color);border-color:var(--dim-shadow-color);background-color:var(--light-button-color)}span._project-title-field_1mw5g_93[contenteditable=true]{padding-left:.4rem;border-left:solid .1rem var(--base-accent-color);color:var(--bright-font-color);background-color:var(--dim-bg-color);transition:var(--fast-transition) all,padding-left,border-left-width}span._project-title-field_1mw5g_93[contenteditable=true]:hover{border-color:var(--base-accent-color)}._undo_1mw5g_124{margin-right:var(--button-margin)}._undo-list_1mw5g_128{white-space:nowrap}._undo-item-undone_1mw5g_136{opacity:.55;font-weight:var(--light-base-weight)}._undo-icon-add_1mw5g_141{color:var(--bright-accent-color)}._undo-icon-modify_1mw5g_145{color:var(--yellow-accent-color)}._undo-icon-delete_1mw5g_149{color:var(--red-accent-color)}._save_1mw5g_153{margin-right:var(--button-margin)}._layout-name_1mw5g_161{margin-right:.6rem}._layout-delete-button_1mw5g_169{float:right}._about-window_1mw5g_173{display:flex;flex-direction:column}._about-window-logo_1mw5g_178 svg{display:block!important;height:18rem!important;margin:0 auto}._about-window-version_1mw5g_184{font-weight:var(--light-base-weight);user-select:text;text-align:center;margin-top:-.4rem}._about-window-update_1mw5g_191{font-size:var(--tiny-font-size);font-weight:var(--light-base-weight);font-style:italic;text-align:center}._about-window-title_1mw5g_198{margin-top:1.4rem;padding:0 .3rem}._about-window-info_1mw5g_203{margin-top:.4rem;font-weight:var(--light-base-weight);padding:0 .3rem}._about-window-button-group_1mw5g_209{display:flex;justify-content:stretch}._about-window-button_1mw5g_209{margin-top:.4rem;height:2rem;justify-content:center;flex-grow:1}.flexlayout__layout{--color-text: black;--color-background: white;--color-base: white;--color-1: #f7f7f7;--color-2: #f0f0f0;--color-3: #e9e9e9;--color-4: #e2e2e2;--color-5: #dbdbdb;--color-6: #d4d4d4;--color-drag1: rgb(95, 134, 196);--color-drag2: rgb(119, 166, 119);--color-drag1-background: rgba(95, 134, 196, .1);--color-drag2-background: rgba(119, 166, 119, .075);--font-size: medium;--font-family: Roboto, Arial, sans-serif;--color-overflow: gray;--color-icon: gray;--color-tabset-background: var(--color-background);--color-tabset-background-selected: var(--color-1);--color-tabset-background-maximized: var(--color-6);--color-tabset-divider-line: var(--color-4);--color-tabset-header-background: var(--color-background);--color-tabset-header: var(--color-text);--color-border-tab-content: var(--color-background);--color-border-background: var(--color-background);--color-border-divider-line: var(--color-4);--color-tab-content: var(--color-background);--color-tab-selected: var(--color-text);--color-tab-selected-background: var(--color-4);--color-tab-unselected: gray;--color-tab-unselected-background: transparent;--color-tab-textbox: var(--color-text);--color-tab-textbox-background: var(--color-3);--color-border-tab-selected: var(--color-text);--color-border-tab-selected-background: var(--color-4);--color-border-tab-unselected: gray;--color-border-tab-unselected-background: var(--color-2);--color-splitter: var(--color-1);--color-splitter-hover: var(--color-4);--color-splitter-drag: var(--color-4);--color-drag-rect-border: #ccc;--color-drag-rect-background: var(--color-5);--color-drag-rect: var(--color-text);--color-popup-border: var(--color-6);--color-popup-unselected: var(--color-text);--color-popup-unselected-background: white;--color-popup-selected: var(--color-text);--color-popup-selected-background: var(--color-3);--color-edge-marker: #aaa;--color-edge-icon: #555}.flexlayout__layout{inset:0;position:absolute;display:flex}.flexlayout__layout_overlay{inset:0;position:absolute;z-index:1000}.flexlayout__layout_tab_stamps{position:absolute;top:-10000px;z-index:100;display:flex;flex-direction:column;align-items:start}.flexlayout__layout_moveables{visibility:hidden;position:absolute;width:100px;height:100px;top:-20000px}.flexlayout__layout_main{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1;position:relative}.flexlayout__layout_border_container,.flexlayout__layout_border_container_inner{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1}.flexlayout__splitter{display:flex;align-items:center;justify-content:center;background-color:var(--color-splitter);touch-action:none;z-index:10}@media (hover: hover){.flexlayout__splitter:hover{background-color:var(--color-splitter-hover);transition:background-color ease-in .1s;transition-delay:.05s}}.flexlayout__splitter_drag{position:absolute;display:flex;align-items:center;justify-content:center;z-index:1000;background-color:var(--color-splitter-drag)}.flexlayout__splitter_handle{background-color:#ccc;border-radius:3px}.flexlayout__splitter_handle_horz{width:3px;height:30px}.flexlayout__splitter_handle_vert{width:30px;height:3px}.flexlayout__splitter_extra{touch-action:none;background-color:transparent}.flexlayout__outline_rect{position:absolute;pointer-events:none;box-sizing:border-box;border:2px solid var(--color-drag1);background:var(--color-drag1-background);border-radius:5px;z-index:1000}.flexlayout__outline_rect_edge{pointer-events:none;border:2px solid var(--color-drag2);background:var(--color-drag2-background);border-radius:5px;z-index:1000;box-sizing:border-box}.flexlayout__edge_rect{position:absolute;z-index:1000;background-color:var(--color-edge-marker);pointer-events:none;display:flex;align-items:center;justify-content:center}.flexlayout__drag_rect{color:var(--color-drag-rect);background-color:var(--color-drag-rect-background);border:2px solid var(--color-drag-rect-border);border-radius:5px;box-sizing:border-box;display:flex;justify-content:center;flex-direction:column;overflow:hidden;padding:.3em .8em;word-wrap:break-word;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__row{display:flex;flex-basis:0px;min-width:0;min-height:0;position:relative;box-sizing:border-box;overflow:hidden}.flexlayout__tabset{display:flex;flex-direction:column;position:relative;background-color:var(--color-tabset-background);box-sizing:border-box;font-family:var(--font-family);overflow:hidden;flex-grow:1}.flexlayout__tabset_container{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-direction:column;overflow:hidden;flex-grow:1}.flexlayout__tabset_tab_divider{width:4px}.flexlayout__tabset_content{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1;box-sizing:border-box;position:relative}.flexlayout__tabset_header{display:flex;align-items:center;padding:3px 3px 3px 5px;box-sizing:border-box;border-bottom:1px solid var(--color-tabset-divider-line);color:var(--color-tabset-header);background-color:var(--color-tabset-header-background);font-size:var(--font-size)}.flexlayout__tabset_header_content{flex-grow:1}.flexlayout__tabset_tabbar_outer{box-sizing:border-box;background-color:var(--color-tabset-background);overflow:hidden;display:flex;font-size:var(--font-size)}.flexlayout__tabset_tabbar_outer_top{padding:0 2px;border-bottom:1px solid var(--color-tabset-divider-line)}.flexlayout__tabset_tabbar_outer_bottom{padding:0 2px;border-top:1px solid var(--color-tabset-divider-line)}.flexlayout__tabset_tabbar_inner{position:relative;box-sizing:border-box;display:flex;flex-grow:1;overflow:hidden}.flexlayout__tabset_tabbar_inner_tab_container{position:relative;display:flex;padding-left:4px;padding-right:4px;box-sizing:border-box;white-space:nowrap}.flexlayout__tabset_tabbar_inner_tab_container_top{border-top:2px solid transparent}.flexlayout__tabset_tabbar_inner_tab_container_bottom{border-bottom:2px solid transparent}.flexlayout__tabset-selected{background-color:var(--color-tabset-background-selected)}.flexlayout__tabset-maximized{background-color:var(--color-tabset-background-maximized)}.flexlayout__tab_button_stamp{display:inline-flex;align-items:center;gap:.3em;white-space:nowrap;box-sizing:border-box}.flexlayout__tab{overflow:hidden;box-sizing:border-box;background-color:var(--color-tab-content);color:var(--color-text);position:relative}.flexlayout__tab_moveable{position:relative;height:100%;min-width:1px;min-height:1px;overflow:auto;box-sizing:border-box}.flexlayout__tab_overlay{z-index:20;position:absolute;inset:0;background-color:#0000003d}.flexlayout__tab_button{display:flex;gap:.3em;align-items:center;box-sizing:border-box;padding:3px .5em;cursor:pointer}.flexlayout__tab_button_stretch{background-color:transparent;color:var(--color-tab-selected);width:100%;padding:3px 0;text-wrap:nowrap;display:flex;gap:.3em;align-items:center;box-sizing:border-box;cursor:pointer}@media (hover: hover){.flexlayout__tab_button_stretch:hover{color:var(--color-tab-selected)}}.flexlayout__tab_button--selected{background-color:var(--color-tab-selected-background);color:var(--color-tab-selected)}@media (hover: hover){.flexlayout__tab_button:hover{background-color:var(--color-tab-selected-background);color:var(--color-tab-selected)}}.flexlayout__tab_button--unselected{background-color:var(--color-tab-unselected-background);color:var(--color-tab-unselected);color:gray}.flexlayout__tab_button_leading{display:flex}.flexlayout__tab_button_content{display:flex;text-wrap:nowrap}.flexlayout__tab_button_textbox{border:none;font-family:var(--font-family);font-size:var(--font-size);color:var(--color-tab-textbox);background-color:var(--color-tab-textbox-background);border:1px inset var(--color-1);border-radius:3px;width:10em}.flexlayout__tab_button_textbox:focus{outline:none}.flexlayout__tab_button_trailing{display:flex;visibility:hidden;border-radius:4px}.flexlayout__tab_button_trailing:hover{background-color:var(--color-3)}@media (hover: hover){.flexlayout__tab_button:hover .flexlayout__tab_button_trailing{visibility:visible}}.flexlayout__tab_button--selected .flexlayout__tab_button_trailing{visibility:visible}.flexlayout__tab_button_overflow{display:flex;align-items:center;border:none;color:var(--color-overflow);font-size:inherit;background-color:transparent}.flexlayout__tab_toolbar{display:flex;align-items:center;gap:.3em;padding-left:.5em;padding-right:.3em}.flexlayout__tab_toolbar_icon{border:none;outline:none;font-size:inherit;margin:0;background-color:transparent;padding:1px}.flexlayout__tab_toolbar_button{border:none;outline:none;font-size:inherit;margin:0;background-color:transparent;border-radius:4px;padding:1px}@media (hover: hover){.flexlayout__tab_toolbar_button:hover{background-color:var(--color-2)}}.flexlayout__tab_toolbar_sticky_buttons_container{display:flex;gap:.3em;padding-left:5px;align-items:center}.flexlayout__tab_floating{overflow:auto;position:absolute;box-sizing:border-box;color:var(--color-text);background-color:var(--color-background);display:flex;justify-content:center;align-items:center}.flexlayout__tab_floating_inner{overflow:auto;display:flex;flex-direction:column;justify-content:center;align-items:center}.flexlayout__tab_floating_inner div{margin-bottom:5px;text-align:center}.flexlayout__tab_floating_inner div a{color:#4169e1}.flexlayout__border{box-sizing:border-box;overflow:hidden;display:flex;font-size:var(--font-size);font-family:var(--font-family);color:var(--color-border);background-color:var(--color-border-background)}.flexlayout__border_tab_contents{box-sizing:border-box;overflow:hidden;background-color:var(--color-border-tab-content)}.flexlayout__border_top{border-bottom:1px solid var(--color-border-divider-line);align-items:center}.flexlayout__border_bottom{border-top:1px solid var(--color-border-divider-line);align-items:center}.flexlayout__border_left{border-right:1px solid var(--color-border-divider-line);align-content:center;flex-direction:column}.flexlayout__border_right{border-left:1px solid var(--color-border-divider-line);align-content:center;flex-direction:column}.flexlayout__border_inner{position:relative;box-sizing:border-box;display:flex;overflow:hidden;flex-grow:1}.flexlayout__border_inner_tab_container{white-space:nowrap;display:flex;padding-left:2px;padding-right:2px;box-sizing:border-box;position:absolute;width:10000px}.flexlayout__border_inner_tab_container_right{transform-origin:top left;transform:rotate(90deg)}.flexlayout__border_inner_tab_container_left{flex-direction:row-reverse;transform-origin:top right;transform:rotate(-90deg)}.flexlayout__border_tab_divider{width:4px}.flexlayout__border_button{display:flex;gap:.3em;align-items:center;cursor:pointer;padding:3px .5em;margin:2px 0;box-sizing:border-box;white-space:nowrap}.flexlayout__border_button--selected{background-color:var(--color-border-tab-selected-background);color:var(--color-border-tab-selected)}@media (hover: hover){.flexlayout__border_button:hover{background-color:var(--color-border-tab-selected-background);color:var(--color-border-tab-selected)}}.flexlayout__border_button--unselected{background-color:var(--color-border-tab-unselected-background);color:var(--color-border-tab-unselected)}.flexlayout__border_button_leading,.flexlayout__border_button_content{display:flex}.flexlayout__border_button_trailing{display:flex;border-radius:4px;visibility:hidden}.flexlayout__border_button_trailing:hover{background-color:var(--color-3)}@media (hover: hover){.flexlayout__border_button:hover .flexlayout__border_button_trailing{visibility:visible}}.flexlayout__border_button--selected .flexlayout__border_button_trailing{visibility:visible}.flexlayout__border_toolbar{display:flex;gap:.3em;align-items:center}.flexlayout__border_toolbar_left,.flexlayout__border_toolbar_right{flex-direction:column;padding-top:.5em;padding-bottom:.3em}.flexlayout__border_toolbar_top,.flexlayout__border_toolbar_bottom{padding-left:.5em;padding-right:.3em}.flexlayout__border_toolbar_button{border:none;outline:none;font-size:inherit;background-color:transparent;border-radius:4px;padding:1px}@media (hover: hover){.flexlayout__border_toolbar_button:hover{background-color:var(--color-2)}}.flexlayout__border_toolbar_button_overflow{display:flex;align-items:center;border:none;color:var(--color-overflow);font-size:inherit;background-color:transparent}.flexlayout__popup_menu{font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__popup_menu_item{padding:2px .5em;white-space:nowrap;cursor:pointer;border-radius:2px}@media (hover: hover){.flexlayout__popup_menu_item:hover{background-color:var(--color-6)}}.flexlayout__popup_menu_container{box-shadow:inset 0 0 5px #00000026;border:1px solid var(--color-popup-border);color:var(--color-popup-unselected);background:var(--color-popup-unselected-background);border-radius:3px;position:absolute;z-index:1000;max-height:50%;min-width:100px;overflow:auto;padding:2px}.flexlayout__floating_window _body{height:100%}.flexlayout__floating_window_content{inset:0;position:absolute}.flexlayout__error_boundary_container{inset:0;position:absolute;display:flex;justify-content:center}.flexlayout__error_boundary_content{display:flex;align-items:center}.flexlayout__tabset_sizer{padding-top:5px;padding-bottom:3px;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__tabset_header_sizer{padding-top:3px;padding-bottom:3px;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__border_sizer{position:absolute;top:-30000px;padding-top:6px;padding-bottom:5px;font-size:var(--font-size);font-family:var(--font-family)}._tab-icon_pixf3_5{padding-right:.2rem}.flexlayout__layout{margin-top:env(titlebar-area-height,2.6rem);background-color:var(--dark-bg-color);--font-family: var(--base-font);--font-size: var(--base-font-size);--color-text: var(--base-font-color);--color-background: var(--base-bg-color);--color-icon: var(--base-font-color);--color-splitter: var(--dark-bg-color);--color-splitter-hover: var(--dark-bg-color);--color-splitter-drag: var(--dark-bg-color);--color-tabset-divider-line: var(--light-bg-color);--color-tabset-background: var(--dim-bg-color);--color-tabset-background-selected: var(--dim-bg-color);--color-tabset-background-maximized: var(--dim-bg-color);--color-tab-selected-background: var(--light-bg-color);--color-drag-rect: var(--base-font-color);--color-drag-rect-background: var(--dim-bg-color);--color-drag-rect-border: var(--bright-accent-color);--color-edge-marker: var(--bright-accent-color);--color-overflow: var(--base-font-color);--color-popup-unselected: var(--base-font-color);--color-popup-selected: var(--base-font-color);--color-popup-unselected-background: var(--dim-bg-color);--color-popup-selected-background: var(--light-bg-color);--color-popup-border: var(--base-accent-color)}.flexlayout__splitter{z-index:unset}.flexlayout__tabset{border-radius:.25rem .25rem 0 0}.flexlayout__tabset_tabbar_outer_top{border:none;padding:0}.flexlayout__tab_button{border-radius:.25rem .25rem 0 0;padding-left:.75rem;padding-right:1.25rem;padding-top:.1rem;border-top:.2rem solid transparent;cursor:default}.flexlayout__tab_button:active{color:var(--base-font-color);background-color:var(--light-bg-color)}.flexlayout__tabset-selected .flexlayout__tab_button--selected{border-top:.2rem solid var(--base-accent-color)}.flexlayout__tabset_tabbar_inner_tab_container_top{border-top:0;padding-left:0}.flexlayout__tab_toolbar_button path{stroke:none}.flexlayout__tab_toolbar_button:hover{background-color:var(--base-button-color)}.flexlayout__popup_menu_item{cursor:default}.flexlayout__popup_menu_item:hover{background-color:var(--base-button-color)}.flexlayout__tab_button_trailing{opacity:.6;margin-right:-.5rem;padding-top:.1rem}.flexlayout__tab_button_trailing:hover{opacity:1;background-color:var(--light-button-color)}.flexlayout__tab_button:active .flexlayout__tab_button_trailing{visibility:visible}._asset-browser_35v3d_1{padding:.1rem 0}._item_35v3d_5{white-space:nowrap}._item-title_35v3d_9{padding:.1rem 0;display:inline-block;width:100%}._item_35v3d_5:focus>._item-title_35v3d_9{color:var(--bright-font-color);background-color:var(--base-button-color)}._folder-toggle_35v3d_24{display:inline-block;width:.7rem;padding:0 .6rem;color:var(--dark-font-color)}._folder-icon_35v3d_31{display:inline-block;width:1.3rem}._folder-name_35v3d_36{padding-left:.4rem}._folder-content_35v3d_40{padding-left:1.5rem}._file-icon_35v3d_48{display:inline-block;text-align:center;width:1.3rem;padding-left:1.9rem}._file-name_35v3d_55{padding-left:.4rem}._groups-container_ruuv8_1{width:100%;height:100%}._group_ruuv8_1{position:absolute!important;inset:0;background:var(--graph-background);opacity:0;z-index:0!important;transition:opacity var(--slow-transition)}._group-active_ruuv8_18{opacity:1;z-index:1!important}._bg-pattern-1_ruuv8_23 path{stroke:var(--base-bg-color)}._bg-pattern-2_ruuv8_27 path{stroke:var(--light-bg-color)}._edge_ruuv8_31{cursor:default!important;transform:translateY(.05rem)}._edge_ruuv8_31 .react-flow__edge-path{stroke:var(--dim-font-color)!important}._edge_ruuv8_31.selected .react-flow__edge-path{stroke:var(--light-accent-color)!important}._edge-conditional_ruuv8_44 .react-flow__edge-path{stroke-dasharray:5}._story-node_ruuv8_48{color:var(--base-font-color)!important;font-family:var(--font-family)!important;font-size:var(--base-font-size)!important;background-color:color-mix(in srgb,var(--light-bg-color) 70%,transparent)!important;border:solid .1rem var(--dark-font-color)!important;border-radius:var(--base-border-radius)!important;max-width:22rem}.selected ._story-node_ruuv8_48{border-color:var(--light-accent-color)!important}._expandable-node_ruuv8_62{border-style:dashed!important}._node-title_ruuv8_70{color:var(--bright-font-color);overflow:hidden;border-radius:var(--base-border-radius) var(--base-border-radius) 0 0;padding:1rem}._node-with-ports_ruuv8_66 ._node-title_ruuv8_70{border-bottom:solid var(--dark-font-color) .1rem;margin-bottom:1rem}._node-title-with-tooltip_ruuv8_82{cursor:help;text-decoration:underline dotted var(--dark-font-color);text-underline-position:from-font}._node-title-icon_ruuv8_88{margin-right:.5rem}._script-node_ruuv8_92 ._node-title-icon_ruuv8_88{color:var(--bright-accent-color)}._portal-node_ruuv8_96 ._node-title-icon_ruuv8_88{color:var(--yellow-accent-color)}._enter-node_ruuv8_100 ._node-title-icon_ruuv8_88,._exit-node_ruuv8_101 ._node-title-icon_ruuv8_88{color:var(--green-accent-color)}._node-synopsis_ruuv8_105{padding-top:.25rem;font-size:var(--small-font-size);font-weight:var(--light-base-weight);color:var(--dim-font-color)}._node-ports_ruuv8_112{border-radius:0 0 var(--base-border-radius) var(--base-border-radius);padding-bottom:1rem}._node-port_ruuv8_112{position:relative}._node-port_ruuv8_112+._node-port_ruuv8_112{margin-top:.5rem}._node-port-in_ruuv8_125{margin-right:2rem}._node-port-out_ruuv8_129{text-align:right;margin-left:2rem}._node-port-icon_ruuv8_134{margin-right:.3rem;color:var(--bright-accent-color)}._script-node_ruuv8_92 ._node-port-out_ruuv8_129 ._node-port-icon_ruuv8_134{color:var(--yellow-accent-color)}._script-node_ruuv8_92 ._node-port-in_ruuv8_125 ._node-port-icon_ruuv8_134{color:var(--green-accent-color)}._node-port-title_ruuv8_147{position:absolute;display:inline-block}._node-port-in_ruuv8_125._node-port-title_ruuv8_147{left:0}._node-port-out_ruuv8_129._node-port-title_ruuv8_147{right:0}._node-handle_ruuv8_160{border-color:var(--dim-font-color)!important;background-color:var(--dim-bg-color)!important;min-width:unset!important;min-height:unset!important;width:.7rem!important;height:.7rem!important;cursor:default!important}.react-flow__handle-right{right:-.5rem!important}.react-flow__handle-left{left:-.5rem!important}.selected ._node-handle_ruuv8_160{border-color:var(--light-accent-color)!important}._node-port-label_ruuv8_182{padding:0 1rem;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._node-port-with-tooltip_ruuv8_194 ._node-port-label_ruuv8_182{cursor:help;text-decoration:underline dotted var(--dark-font-color);text-underline-position:from-font}._node-port-tooltip_ruuv8_200{font-family:var(--code-font);font-size:var(--tiny-font-size);color:var(--dim-font-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 1rem}._path_ruuv8_210{display:flex;border:solid .1rem var(--dim-shadow-color);border-radius:var(--base-border-radius)}._path-item_ruuv8_216{display:inline-block;white-space:nowrap;color:var(--light-font-color);background-color:var(--base-button-color);transition:var(--fast-transition) all;padding:.5rem 1rem;transform-origin:left;border-right:solid .1rem var(--dim-shadow-color)}._path-item_ruuv8_216:first-child{border-bottom-left-radius:var(--base-border-radius);border-top-left-radius:var(--base-border-radius)}._path-item_ruuv8_216:last-child{cursor:help;text-decoration:underline dotted var(--dim-font-color);text-underline-position:from-font;border-right:none;border-bottom-right-radius:var(--base-border-radius);border-top-right-radius:var(--base-border-radius)}._path-item_ruuv8_216:not(:last-child){opacity:.5}._path-item_ruuv8_216:not(:last-child):hover{opacity:1;color:var(--bright-font-color);background-color:var(--light-button-color)}._controls_ruuv8_251{display:flex;flex-direction:column}._control-button_ruuv8_256{border:solid .1rem var(--dim-shadow-color)!important;border-radius:unset!important;border-top-width:0!important;padding:.5rem .7rem!important}._control-button_ruuv8_256:first-of-type{border-top-width:.1rem!important;border-top-left-radius:var(--base-border-radius)!important;border-top-right-radius:var(--base-border-radius)!important}._control-button_ruuv8_256:last-of-type{border-bottom-left-radius:var(--base-border-radius)!important;border-bottom-right-radius:var(--base-border-radius)!important}.selection{cursor:default!important}.react-flow__minimap{background-color:var(--dim-bg-color)!important;border:solid .1rem var(--dim-shadow-color)!important;border-radius:var(--base-border-radius);opacity:.85}.react-flow__minimap>svg{border-radius:var(--base-border-radius);margin-bottom:-3px}.react-flow__minimap-mask{fill:var(--dim-shadow-color)!important;opacity:.5!important}.react-flow__minimap-node{fill:var(--dim-font-color)!important;shape-rendering:geometricPrecision!important;opacity:.75}.react-flow__minimap-node.selected{fill:var(--light-accent-color)!important}._button_2zgq4_1{display:inline-flex;align-items:center;color:var(--light-font-color);font-family:var(--base-font);font-size:var(--base-font-size);background-color:var(--base-button-color);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);padding:0 .6rem;transition:var(--fast-transition) all;overflow:hidden}._disabled_2zgq4_16{opacity:.5}._button_2zgq4_1:not(._disabled_2zgq4_16):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--dim-bg-color)}._button_2zgq4_1:not(._disabled_2zgq4_16):active{color:var(--bright-font-color);background-color:var(--bright-button-color)}._button_2zgq4_1:not(._disabled_2zgq4_16):focus{border-color:var(--base-accent-color)}._label_2zgq4_35{overflow:hidden;text-overflow:ellipsis;line-height:1.6rem}._icon_2zgq4_41+._label_2zgq4_35{margin-left:.5rem}._primary_2zgq4_45{background-color:var(--dark-accent-color)}._primary_2zgq4_45:not(._disabled_2zgq4_16):hover{background-color:var(--dim-accent-color)}._primary_2zgq4_45:not(._disabled_2zgq4_16):active{background-color:var(--base-accent-color)}._minimal_2zgq4_57,._minimal_2zgq4_57:hover,._minimal_2zgq4_57:active{border:unset;border-radius:unset;background:unset}._minimal_2zgq4_57:focus{color:var(--bright-font-color)}._inspector_6gclz_1{overflow-x:clip}._header_6gclz_5{background-color:var(--light-bg-color);display:flex;padding:.8rem .4rem;border-bottom:.1rem solid var(--dark-bg-color)}._component_6gclz_12{border-top:.1rem solid var(--dark-bg-color);background:var(--base-bg-color)}._component_6gclz_12:first-child{border-top:none}._component-header_6gclz_29{display:flex;align-items:center;height:2rem;background-color:var(--dark-button-color);border-bottom:solid .1rem var(--bright-shadow-color)}._component-header_6gclz_29:hover{background-color:var(--dim-button-color)}._component-header-collapsed_6gclz_41{border-bottom:none}._component_6gclz_12:last-of-type ._component-header-collapsed_6gclz_41{border-bottom:.1rem solid var(--dark-bg-color)!important}._component-collapse_6gclz_53{margin-left:.6rem;width:.8rem;color:var(--dark-font-color)}._component-icon_6gclz_59{margin-left:.6rem;width:1.4rem;text-align:center}._component-title_6gclz_65{font-weight:var(--bold-base-weight);color:var(--light-font-color);margin-left:.6rem}._component-title-with-tooltip_6gclz_71{cursor:help}._component-drag-area_6gclz_76{height:100%;flex-grow:1}._component-context-menu_6gclz_81{margin-left:auto;margin-right:.5rem}._component-content_6gclz_87{margin:.4rem .4rem .8rem 2rem}._header_1jvjl_1{display:flex;align-items:stretch;width:100%;gap:.2rem}._header-inspection-button_1jvjl_8{flex:1}._header-inspection-label_1jvjl_12{display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end}._header-line-type_1jvjl_19{flex:1}._icon-label_1jvjl_31{color:var(--green-accent-color)}._icon-command_1jvjl_35{color:var(--yellow-accent-color)}._icon-generic-author_1jvjl_39{color:var(--aqua-accent-color)}._icon-generic-text_1jvjl_43{color:var(--bright-accent-color)}._unassigned_1jvjl_51{opacity:.5}._unassigned_1jvjl_51:hover,._unassigned_1jvjl_51:focus-within{opacity:1}._inline-menu_1jvjl_59{margin-top:.8rem;display:flex;justify-content:center;min-height:2.4rem}._inline-menu-button_1jvjl_66{justify-content:center;flex-basis:22.8rem;max-width:21.6rem}._inline-menu-dropdown_1jvjl_72{flex-basis:23rem;min-height:2.4rem}._header_18prq_1{display:flex;align-items:stretch;width:100%;gap:.2rem}._header-inspection-button_18prq_8{flex:1}._header-inspection-label_18prq_12{display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end}._icon-synopsis_18prq_19{color:var(--aqua-accent-color)}._icon-outline_18prq_23{color:var(--yellow-accent-color)}._icon-mutations_18prq_27{color:var(--purple-accent-color)}._outline-container_18prq_31{background-color:var(--dim-button-color);border-radius:var(--base-border-radius);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color)}._outline-item_18prq_38{display:block;padding:0;border-bottom:.1rem solid var(--dark-button-color)}._outline-item_18prq_38:hover,._outline-item_18prq_38:focus{background-color:var(--base-button-color);border-bottom:.1rem solid var(--dark-button-color)}._outline-item_18prq_38:last-child{border-bottom:none}._outline-item-icon_18prq_53{display:inline-block;width:1.1rem;padding-left:.5rem;text-align:center;font-size:var(--small-font-size)}._outline-item-label_18prq_61{display:inline-block;padding:.2rem 0 .2rem .4rem;font-family:var(--code-font);background-color:var(--base-button-color);width:calc(100% - 2.5rem)}._outline-item_18prq_38:active,._outline-item_18prq_38:active ._outline-item-label_18prq_61{background-color:var(--bright-button-color)!important}._outline-item_18prq_38:first-child{border-top-left-radius:var(--base-border-radius);border-top-right-radius:var(--base-border-radius)}._outline-item_18prq_38:last-child{border-bottom-left-radius:var(--base-border-radius);border-bottom-right-radius:var(--base-border-radius)}._outline-item_18prq_38:first-child ._outline-item-label_18prq_61{border-top-right-radius:var(--base-border-radius)}._outline-item_18prq_38:last-child ._outline-item-label_18prq_61{border-bottom-right-radius:var(--base-border-radius)}._outline-item_18prq_38:hover ._outline-item-label_18prq_61,._outline-item_18prq_38:focus ._outline-item-label_18prq_61{background-color:var(--light-button-color)}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.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 .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation: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:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.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:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;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:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.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.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@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}.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-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.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:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.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{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.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:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform: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:#3367d9;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%}._script-view_q1fzl_1{height:100%;background:var(--visual-editor-background)}._script-line_q1fzl_6{display:flex;border-bottom:solid .1rem color-mix(in srgb,var(--dim-shadow-color) 30%,transparent);background-color:color-mix(in srgb,var(--light-bg-color) 70%,transparent);min-height:2rem;white-space:nowrap;overflow:hidden;animation:_fadein_q1fzl_1 ease-in .15s}@keyframes _fadein_q1fzl_1{0%{opacity:0}to{opacity:1}}._script-line_q1fzl_6:hover,._script-line-inspected_q1fzl_25{box-shadow:inset 0 0 0 .1rem var(--base-accent-color)}._line-indent_q1fzl_30{width:1rem;background-color:color-mix(in srgb,var(--dim-bg-color) 30%,transparent);border-right:solid .1rem color-mix(in srgb,var(--base-font-color) 30%,transparent)}._line-icon_q1fzl_36{display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;flex-shrink:0;padding:0 .35rem;font-size:var(--small-font-size);background-color:color-mix(in srgb,var(--dim-bg-color) 30%,transparent)}._line-content_q1fzl_47{align-self:center;margin-left:.5rem;font-family:var(--code-font);font-weight:var(--regular-code-weight)}._insert-preview-line_q1fzl_70{border:dashed .1rem var(--dark-font-color);transition:var(--fast-transition) all}._insert-preview-line_q1fzl_70:hover{box-shadow:unset;border-color:var(--dim-font-color);background-color:var(--dark-button-color)}._insert-preview-line_q1fzl_70 ._line-content_q1fzl_47{display:inline-block;width:100%;text-align:center;color:var(--dim-font-color);transition:var(--fast-transition) all}._insert-preview-line_q1fzl_70:hover ._line-content_q1fzl_47{color:var(--base-font-color)}._text-editor_n47gw_1{font-family:var(--code-font)}@font-face{font-family:"Default";font-style:normal;font-weight:100 900;font-display:swap;src:url(/editor/fonts/inter.woff2) format("woff2")}@font-face{font-family:"Default";font-style:italic;font-weight:100 900;font-display:swap;src:url(/editor/fonts/inter-italic.woff2) format("woff2")}@font-face{font-family:"Default Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(/editor/fonts/jb.ttf) format("truetype")}@font-face{font-family:"Default Mono";font-style:italic;font-weight:100 900;font-display:swap;src:url(/editor/fonts/jb-italic.ttf) format("truetype")}:root{--max-z-index: 999999;--base-font: "Default", sans-serif;--code-font: "Default Mono", monospace;--tiny-font-size: 1rem;--small-font-size: 1.05rem;--base-font-size: 1.2rem;--giant-font-size: 2rem;--light-code-weight: 100;--regular-code-weight: 200;--light-base-weight: 300;--regular-base-weight: 400;--bold-base-weight: 500;--red-accent-color: #f88d84;--green-accent-color: #a9e17e;--blue-accent-color: #93b6f8;--purple-accent-color: #be93f3;--yellow-accent-color: #e2be7f;--aqua-accent-color: #9dd6de;--dark-accent-color: #2c5785;--dim-accent-color: #32669e;--base-accent-color: #3a79bb;--light-accent-color: #5897db;--bright-accent-color: var(--blue-accent-color);--dark-font-color: #7c7c7c;--dim-font-color: #a6a6a6;--base-font-color: #cccccc;--light-font-color: #d3d3d3;--bright-font-color: #eeeeee;--expression-color: #6ac9d4;--dark-bg-color: #191919;--dim-bg-color: #282828;--base-bg-color: #383838;--light-bg-color: #3c3c3c;--bright-bg-color: #414141;--dark-shadow-color: #0d0d0d;--dim-shadow-color: #141414;--base-shadow-color: #202020;--light-shadow-color: #242424;--bright-shadow-color: #303030;--dark-button-color: #3e3e3e;--dim-button-color: #474747;--base-button-color: #515151;--light-button-color: #585858;--bright-button-color: #656565;--base-border-radius: .3rem;--major-border-radius: .6rem;--fast-transition: .1s ease-out;--base-transition: .33s ease;--slow-transition: .66s ease;--font-ligatures: none;--graph-background: var(--dim-bg-color);--visual-editor-background: var(--dim-bg-color);font-size:62.5%;font-optical-sizing:auto;color:var(--base-font-color);background-color:var(--dim-bg-color);font-family:var(--base-font);font-variant-ligatures:var(--font-ligatures);user-select:none;overflow:clip}body{font-family:var(--base-font);font-size:var(--base-font-size);margin:0}*{outline:none;box-shadow:none;border:none}a{color:var(--bright-accent-color)}.icon{display:inline-block;height:1em;vertical-align:-.125em;fill:currentColor} +._lazy-list_1owqy_1{will-change:transform}._sortable-overlay_1owqy_5{pointer-events:none}[role=sortable-node]:active,[role=sortable-combined]:active{z-index:999;position:relative}[role=sortable-handle],[role=sortable-combined]{touch-action:none;cursor:grab}[role=sortable-handle]:active,[role=sortable-combined]:active{cursor:grabbing}._scrollable_1owqy_26{height:100%}._underlay-blur_1owqy_30{--blur-amount: 10px;--blur-saturate: 1.8;--blur-brightness: .55;--blur-border-radius: 0;--blur-disabled-opacity: .75;--blur-transition: none}._underlay-blur-enabled_1owqy_39:after{content:"";position:absolute;inset:0;z-index:-1;opacity:0;overflow:hidden;transition:var(--blur-transition) opacity;border-radius:var(--blur-border-radius);backdrop-filter:blur(var(--blur-amount)) brightness(var(--blur-brightness)) saturate(var(--blur-saturate))}._underlay-blur-disabled_1owqy_41:after{content:"";position:absolute;inset:0;z-index:-1;overflow:hidden;opacity:0;border-radius:var(--blur-border-radius);transition:var(--blur-transition) opacity;background:var(--dim-bg-color)}._underlay-blur-show_1owqy_43._underlay-blur-enabled_1owqy_39:after{opacity:1}._underlay-blur-show_1owqy_43._underlay-blur-disabled_1owqy_41:after{opacity:var(--blur-disabled-opacity)}.os-scrollbar{--os-size: .8rem !important;--os-padding-perpendicular: 0rem !important;--os-padding-axis: 0rem !important;--os-track-border-radius: 0 !important;--os-track-bg: rgba(180, 180, 180, 0) !important;--os-track-bg-hover: rgba(180, 180, 180, .1) !important;--os-track-bg-active: rgba(180, 180, 180, .1) !important;--os-track-border: none !important;--os-track-border-hover: none !important;--os-track-border-active: none !important;--os-handle-border-radius: 0 !important;--os-handle-bg: rgba(180, 180, 180, .2) !important;--os-handle-bg-hover: rgba(180, 180, 180, .4) !important;--os-handle-bg-active: rgba(180, 180, 180, .4) !important;--os-handle-border: none !important;--os-handle-border-hover: none !important;--os-handle-border-active: none !important;--os-handle-min-size: 3.3rem !important;--os-handle-max-size: none !important;--os-handle-perpendicular-size: 100% !important;--os-handle-perpendicular-size-hover: 100% !important;--os-handle-perpendicular-size-active: 100% !important;--os-handle-interactive-area-offset: .25rem !important}._markdown_kljlj_1{padding:0 1rem}._markdown_kljlj_1>:first-child{margin-top:0}._markdown_kljlj_1>:last-child{margin-bottom:0}._markdown_kljlj_1 p,._markdown_kljlj_1 pre{margin:1rem 1.5rem}._markdown_kljlj_1 h1{font-size:var(--giant-font-size);font-weight:var(--bold-base-weight);margin:1.5rem 1.5rem 1rem}._markdown_kljlj_1 code{font-family:var(--code-font)}._markdown_kljlj_1 code:not(pre code){background-color:var(--base-bg-color);color:var(--bright-font-color);border-radius:var(--base-border-radius);padding:0 .3rem}._markdown_kljlj_1 table{border-collapse:collapse;border-style:hidden;margin:1rem 1.5rem}._markdown_kljlj_1 table td{border:.1rem solid var(--base-button-color);padding:.4rem .8rem}.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;inset:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) )}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;inset:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}._tooltip_1ak1z_1{z-index:var(--max-z-index);position:absolute;border-radius:var(--base-border-radius);pointer-events:none}._tooltip_1ak1z_1._tooltip-doc_1ak1z_8{border-radius:var(--major-border-radius)}._content_1ak1z_12{opacity:0;transition:var(--fast-transition) opacity;border:solid .1rem var(--bright-button-color);border-radius:var(--base-border-radius);pointer-events:none}._content_1ak1z_12._visible_1ak1z_20{opacity:1;pointer-events:auto}._tooltip-doc_1ak1z_8 ._content_1ak1z_12{user-select:text;border-radius:var(--major-border-radius)}._tooltip-active_1ak1z_30 ._content_1ak1z_12{opacity:1}._scrollable-content_1ak1z_34{max-width:55.5rem;max-height:30rem;padding:.5rem .8rem}._tooltip-doc_1ak1z_8 ._scrollable-content_1ak1z_34{padding:0}.szh-menu{margin:0;padding:0;list-style:none;box-sizing:border-box;width:max-content;z-index:100;border:1px solid rgba(0,0,0,.1);background-color:#fff}.szh-menu:focus{outline:none}.szh-menu__arrow{box-sizing:border-box;width:.75rem;height:.75rem;background-color:#fff;border:1px solid transparent;border-left-color:#0000001a;border-top-color:#0000001a;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translate(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translate(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{cursor:default;background-color:inherit}.szh-menu__item--disabled{cursor:default;color:#aaa}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{margin:0;padding:0;list-style:none}.szh-menu__divider{height:1px;margin:.5rem 0;background-color:#0000001f}.szh-menu-button{box-sizing:border-box}._disabled-menu_1j4o5_3{display:none}._disabled-button_1j4o5_7{opacity:.5}._items-container_1j4o5_19{border-radius:var(--base-border-radius)}._item-container_1j4o5_23{display:inline-block;width:100%}._item-icon_1j4o5_28{display:inline-block;margin-left:-.9rem;min-width:3rem;text-align:center}._item-label_1j4o5_35{margin-right:.6rem}._item-hotkey_1j4o5_39{float:right;margin-left:3.5rem;color:var(--dim-font-color)}.szh-menu{padding:.4rem 0;border:solid .1rem var(--bright-button-color);background-color:transparent;border-radius:var(--base-border-radius)}.szh-menu__submenu .szh-menu--dir-right{top:-.5rem!important;border-radius:0 var(--base-border-radius) var(--base-border-radius) 0}.szh-menu__submenu .szh-menu--dir-left{border-radius:var(--base-border-radius) 0 0 var(--base-border-radius)}.szh-menu__submenu .szh-menu--dir-right ._items-container_1j4o5_19{border-radius:0 var(--base-border-radius) var(--base-border-radius) 0}.szh-menu__submenu .szh-menu--dir-left ._items-container_1j4o5_19{border-radius:var(--base-border-radius) 0 0 var(--base-border-radius)}.szh-menu-button{color:var(--base-font-color);font-family:var(--base-font);font-size:var(--base-font-size);background-color:var(--base-button-color);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);padding:0 .6rem;transition:var(--fast-transition) all}.szh-menu-button:not(._disabled-button_1j4o5_7):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--dim-bg-color)}.szh-menu-button:not(._disabled-button_1j4o5_7):focus,.szh-menu-button--open:not(._disabled-button_1j4o5_7),.szh-menu-button--open:not(._disabled-button_1j4o5_7):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--base-accent-color)}.szh-menu__item{padding:.4rem 1rem;cursor:default}.szh-menu__item--disabled{color:var(--dark-font-color)}.szh-menu__item--hover{color:var(--bright-font-color);background-color:var(--base-button-color)}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__divider{margin:.4rem 0;background-color:var(--base-button-color)}._dropdown_1p8r5_1{min-height:1.6rem;line-height:1.6rem;padding:0 .2rem 0 .3rem;color:var(--light-font-color);background-color:var(--base-button-color);border:solid .1rem var(--base-shadow-color);border-color:var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);transition:var(--fast-transition) all}._searchable-dropdown_1p8r5_15:focus-within{background-color:var(--dim-bg-color)!important}._dropdown_1p8r5_1:hover{background-color:var(--light-button-color);border-color:var(--dim-bg-color)}._dropdown_1p8r5_1:focus-within{border-color:var(--base-accent-color)}._dropdown-group_1p8r5_28{display:flex;align-items:center;height:3rem;border-bottom:solid .1rem var(--bright-button-color)}._dropdown-group_1p8r5_28:hover{background-color:var(--base-button-color)}._dropdown-group-name_1p8r5_39{flex-grow:.8;text-align:center;font-weight:var(--bold-base-weight)}._dropdown-group-arrow_1p8r5_45{margin-left:.8rem;color:var(--dim-font-color)}._dropdown-option_1p8r5_50{display:flex}._dropdown-option-icon_1p8r5_58{margin-left:-1rem;margin-right:1rem;width:1.4rem;text-align:center}._dropdown-option-label-description_1p8r5_73{color:var(--dim-font-color);font-weight:var(--light-base-weight);font-size:var(--tiny-font-size)}._dropdown-option-group-arrow_1p8r5_79{position:relative;left:1.2rem;margin-left:auto;color:var(--dim-font-color)}._dropdown_1p8r5_1 .react-select__control{width:100%;min-height:inherit;background-color:unset;border:unset;border-radius:unset;box-shadow:unset}._dropdown_1p8r5_1 .react-select__value-container{padding:unset}._dropdown_1p8r5_1 .react-select__indicators{margin:0 .4rem}._dropdown_1p8r5_1 .react-select__indicator-separator{display:none}._dropdown_1p8r5_1 .react-select__single-value{color:inherit;margin:unset}._dropdown_1p8r5_1 .react-select__input-container{margin:unset;padding:unset;color:inherit}._dropdown_1p8r5_1 .react-select__menu{background-color:transparent;border:solid .1rem var(--bright-button-color);left:0;width:auto;max-width:100%;border-radius:var(--base-border-radius);box-shadow:unset;margin-top:.2rem;margin-bottom:unset}._expand-menu_1p8r5_130 .react-select__menu{min-width:100%}._dropdown_1p8r5_1 .react-select__menu-list{max-height:unset;padding:0}._menu-list-blur-underlay_1p8r5_139{border-radius:var(--base-border-radius)}._menu-list_1p8r5_139{max-height:30rem}._dropdown_1p8r5_1 .react-select__option{padding:.4rem 2rem;color:inherit}._dropdown_1p8r5_1 .react-select__option--is-focused,._dropdown_1p8r5_1 .react-select__option:active{color:var(--bright-font-color);background-color:var(--base-button-color)}._dropdown_1p8r5_1 .react-select__option--is-focused ._dropdown-option-label-description_1p8r5_73{color:var(--light-font-color)}._dropdown_1p8r5_1 .react-select__option--is-selected{color:unset;background-color:unset}._dropdown_1p8r5_1 .react-select__option--is-selected.react-select__option--is-focused{color:var(--bright-font-color);background-color:var(--base-button-color)}._dropdown_1p8r5_1 .react-select__menu-notice{padding:.4rem 2rem;color:inherit}._dropdown_1p8r5_1 .react-select__placeholder{color:inherit;display:none}._value-container_y2mvn_5{overflow-x:clip}._value_y2mvn_5{min-height:1.6rem;line-height:1.6rem;padding:0 .2rem;color:var(--light-font-color);background-color:var(--dim-bg-color);border:solid .1rem var(--base-shadow-color);border-top-color:var(--dark-shadow-color);border-radius:var(--base-border-radius);transition:var(--fast-transition) all}._value_y2mvn_5:hover{border-color:var(--bright-button-color)}._value_y2mvn_5:focus-within{border-color:var(--base-accent-color)}._readonly-value_y2mvn_29{opacity:.5;cursor:not-allowed}._readonly-value_y2mvn_29 *{pointer-events:none}._unassigned-value_y2mvn_38{opacity:.5}._unassigned-value_y2mvn_38:hover,._unassigned-value_y2mvn_38:focus-within,._unassigned-value_y2mvn_38:active{opacity:1}._labeled-container_y2mvn_46{display:flex;margin:.2rem 0;transition:var(--fast-transition) all}._label_y2mvn_46{line-height:1.6rem;display:flex;font-weight:var(--light-base-weight);align-items:center;flex-basis:40%;flex-shrink:0;overflow:clip;white-space:nowrap}._label-with-tooltip_y2mvn_63{cursor:help}._labeled-container_y2mvn_46>._value-container_y2mvn_5{flex-grow:1;max-width:60%}._labeled-container_y2mvn_46:focus-within>._label_y2mvn_46{color:var(--bright-accent-color)}._modal_y2mvn_1:focus-within ._value_y2mvn_5,._labeled-container_y2mvn_46:focus-within ._value_y2mvn_5{border-color:var(--base-accent-color)}._multiline_y2mvn_81._labeled-container_y2mvn_46{display:block}._multiline_y2mvn_81._labeled-container_y2mvn_46>._label_y2mvn_46{padding:.2rem 0}._text-editor_y2mvn_89{display:flex;align-items:center;cursor:text;min-width:1rem;overflow:scroll;white-space:nowrap}._text-editor_y2mvn_89::-webkit-scrollbar{display:none}._multiline_y2mvn_81 ._text-editor_y2mvn_89{display:block;min-height:4.8rem;max-height:16rem;width:100%;box-sizing:border-box;white-space:pre-wrap;overflow-x:hidden}._multiline_y2mvn_81 ._text-editor_y2mvn_89::-webkit-scrollbar{display:unset}._toggle_y2mvn_116{display:flex;flex-basis:unset!important;align-items:center;justify-content:center;width:1.2rem}._named_y2mvn_124{display:flex}._named-name_y2mvn_128{flex-basis:50%;overflow-x:clip;padding-right:.2rem}._named-value_y2mvn_134{flex-basis:50%;overflow-x:clip}._expression_y2mvn_143{font-family:var(--code-font);color:var(--expression-color)}._expression_y2mvn_143:before{content:"{";margin-right:.2rem}._expression_y2mvn_143:after{content:"}";margin-left:.2rem}._expression_y2mvn_143:before,._expression_y2mvn_143:after{font-weight:var(--light-code-weight);opacity:.5;transition:var(--fast-transition) all}._expression_y2mvn_143:hover:before,._expression_y2mvn_143:hover:after{opacity:1;font-weight:var(--regular-code-weight)}._text-id_y2mvn_169{color:var(--dim-font-color);font-family:var(--code-font);font-weight:var(--light-code-weight);opacity:.5;transition:var(--fast-transition) all}._text-id_y2mvn_169:hover{opacity:1;font-weight:var(--regular-code-weight)}._text-id_y2mvn_169:before{content:"|#";margin-right:.2rem}._text-id_y2mvn_169:after{content:"|";margin-left:.2rem}._vector_y2mvn_192{display:flex;flex-wrap:wrap;row-gap:.2rem;column-gap:.5rem}._vector-component_y2mvn_199{flex-grow:1;flex-shrink:0;flex-basis:0;margin-top:0;margin-bottom:0}._vector-component-label_y2mvn_207{flex-basis:fit-content;margin-left:.1rem;margin-right:.6rem}._list-header_1pldn_5:hover{background-color:var(--dim-button-color)}._list-collapse_1pldn_13{width:.8rem;padding-left:.2rem;padding-right:.4rem;color:var(--dark-font-color)}._list-label_1pldn_20{flex-grow:1}._list-size_1pldn_29{margin-left:auto;min-width:4.8rem}._list-items_1pldn_34{padding-top:.2rem;padding-bottom:.3rem;border:.1rem solid var(--light-shadow-color);background-color:var(--bright-bg-color);border-radius:var(--base-border-radius)}._list-item_1pldn_34{display:flex;align-items:center;padding:.1rem .6rem .1rem 0}._list-item-selected_1pldn_49{background-color:var(--base-button-color)}._list-item-selected_1pldn_49:focus{background-color:var(--dark-accent-color)}._list-item-drag-handle_1pldn_58{padding-left:.75rem;padding-right:1rem;color:var(--dark-font-color)}._list-item-drag-handle_1pldn_58:hover,._list-item-drag-handle_1pldn_58:active{color:var(--light-font-color)}._list-item-label_1pldn_69{flex-basis:30%;font-weight:var(--light-base-weight)}._list-item-editor_1pldn_74{flex-basis:70%}._list-item-editor_1pldn_74 *{margin:0}._list-empty-item_1pldn_82{padding-left:1rem;line-height:2rem;font-weight:var(--light-base-weight)}._list-add-remove-panel_1pldn_88{width:5.6rem;height:1.9rem;color:var(--light-font-color);background-color:var(--bright-bg-color);border-radius:0 0 var(--base-border-radius) var(--base-border-radius);border:.1rem solid var(--light-shadow-color);border-top:none;margin-left:auto;margin-right:1rem;margin-top:-.1rem}._list-add-remove-button_1pldn_101{display:inline-block;width:50%;height:100%;text-align:center;border-radius:0 0 var(--base-border-radius) var(--base-border-radius)}._list-add-remove-button_1pldn_101:hover{color:var(--bright-font-color);background-color:var(--base-button-color)}._list-add-remove-button_1pldn_101>*{display:inline-block;vertical-align:bottom}._fields_1dubz_5{display:flex}._hex-field-container_1dubz_9{flex-grow:1}._hex-field_1dubz_9{border-top-right-radius:0;border-bottom-right-radius:0}._color-field_1dubz_18{flex-basis:4.6rem;border:solid .1rem var(--base-shadow-color);border-radius:0 var(--base-border-radius) var(--base-border-radius) 0;overflow:hidden}._color-field_1dubz_18:hover{border-color:var(--bright-button-color)}._color-field-open_1dubz_29,._color-field-open_1dubz_29:hover{border-color:var(--base-accent-color)}._color-field-rgb_1dubz_38{height:1.3rem}._color-field-alpha_1dubz_42{background:#000;height:.3rem}._color-field-alpha-fill_1dubz_47{background:#fff;height:.3rem}._color-picker_1dubz_52{z-index:1;position:absolute;right:.4rem;width:calc(100% - .2rem);max-width:20rem;border:solid .1rem var(--base-accent-color);border-radius:var(--base-border-radius);overflow:hidden}._color-picker_1dubz_52 .react-colorful{width:100%}._color-picker_1dubz_52 .react-colorful__saturation,._color-picker_1dubz_52 .react-colorful__alpha{border-radius:0}._color-picker_1dubz_52 .react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1)}._color-picker_1dubz_52 .react-colorful__pointer-fill{box-shadow:inset 0 0 .4rem #0005}._color-picker_1dubz_52 .react-colorful__saturation-pointer{width:2.2rem;height:2.2rem;border-radius:100%}._color-picker_1dubz_52 .react-colorful__hue-pointer,._color-picker_1dubz_52 .react-colorful__alpha-pointer{border-radius:0;width:1rem;height:100%}._search-field_1j83z_1{padding:.2rem .3rem}._field_1j83z_5{min-height:1.4rem;line-height:1.4rem;padding-left:1.8rem}._search-icon_1j83z_11{pointer-events:none;position:absolute;color:var(--dim-font-color);padding-left:.4rem}._search-icon_1j83z_11>svg{transform:translateY(5%);scale:80%}._clear-button_1j83z_23{position:absolute;right:.2rem;float:right;color:var(--dim-font-color)}._match_1j83z_30{background-color:var(--dark-accent-color)}._settings-editor_1xqhl_1{height:100%;overflow:hidden}._header_1xqhl_6{height:2rem;width:100%;background-color:var(--light-bg-color);border-bottom:.1rem solid var(--dark-bg-color)}._content_1xqhl_13{display:flex;height:calc(100% - 2rem)}._type-list_1xqhl_18{flex:.25;border-right:.1rem solid var(--dark-bg-color)}._scope-separator_1xqhl_23{padding-left:1rem;margin-top:.4rem;margin-bottom:.2rem;font-weight:var(--bold-base-weight);color:var(--light-font-color);cursor:help}._scope-separator-empty_1xqhl_32{display:none}._type-list-item_1xqhl_36{padding-left:1.7rem}._type-list-item-selected_1xqhl_40{background-color:var(--dark-accent-color);color:var(--bright-font-color)}._type-view_1xqhl_46{flex:.75;padding-top:.2rem;padding-left:.8rem;padding-right:.4rem}._view-header_1xqhl_53{font-size:var(--giant-font-size);font-weight:var(--bold-base-weight);color:var(--light-font-color);margin-bottom:1rem}._view-content_1xqhl_60{margin-bottom:1rem}._view-group_1xqhl_64{margin-top:.8rem;font-weight:var(--bold-base-weight);color:var(--light-font-color)}._view-property-label-modified_1xqhl_74{text-decoration:underline dotted var(--dim-font-color)}._modal_xk5tk_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0;z-index:var(--max-z-index)}._modal-hidden_xk5tk_13{pointer-events:none}._window_xk5tk_17{padding:1.25rem 1.75rem;width:30rem;background-color:var(--base-bg-color);border:solid .1rem var(--bright-button-color);border-radius:var(--major-border-radius);animation:_fade-in_xk5tk_1 .33s ease}@keyframes _fade-in_xk5tk_1{0%{opacity:0;transform:translateY(-50%) scale(1.5)}to{opacity:1}}._title_xk5tk_31{margin-bottom:1.25rem;color:var(--light-font-color);font-weight:var(--bold-base-weight)}._progress-info_xk5tk_37{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._progress-bar_xk5tk_43{margin-top:.9rem;margin-bottom:.2rem;height:.3rem;border-radius:var(--base-border-radius);background:var(--dark-font-color)}._progress-bar-fill_xk5tk_51{height:.3rem;border-radius:var(--base-border-radius);background:repeating-linear-gradient(to right,var(--base-accent-color),var(--bright-accent-color),var(--base-accent-color));background-size:200% auto;background-position:0 100%;animation:_progress-bar-gradient_xk5tk_1 2s infinite;animation-fill-mode:forwards;animation-timing-function:linear}@keyframes _progress-bar-gradient_xk5tk_1{0%{background-position:0 0}to{background-position:-200% 0}}._confirmation-content_xk5tk_67{margin-bottom:1.4rem}._confirmation-buttons_xk5tk_71{float:right}._confirmation-button-confirm_xk5tk_75{width:7rem;height:2.2rem;justify-content:center}._confirmation-button-deny_xk5tk_81{width:7rem;height:2.2rem;margin-left:1.2rem;justify-content:center}._login-window_1msvh_1{display:flex;justify-content:center;align-items:center;position:fixed;inset:0}._window_1msvh_12{padding:1.25rem 1.75rem;width:30rem;background-color:var(--base-bg-color);border:solid .1rem var(--bright-button-color);border-radius:var(--major-border-radius)}._title_1msvh_20{color:var(--light-font-color);font-weight:var(--bold-base-weight);margin-bottom:.85rem}._info_1msvh_26{font-weight:var(--light-base-weight);margin-bottom:1.2rem}._button_1msvh_31{height:2.2rem;padding:0 1rem}._button_1msvh_31+._button_1msvh_31{margin-left:1.2rem}._control-panel_1mw5g_1{z-index:1;display:flex;align-items:center;position:fixed;left:0;top:0;width:100%;height:2.6rem;background-color:var(--dark-bg-color);--border-margin: .6rem;--button-margin: .4rem}@media (display-mode: window-controls-overlay){._control-panel_1mw5g_1{left:env(titlebar-area-x,0);top:env(titlebar-area-y,0);width:env(titlebar-area-width,100%);height:env(titlebar-area-height,2.6rem);app-region:drag}}._control-panel_1mw5g_1>._left_1mw5g_28 *,._control-panel_1mw5g_1>._right_1mw5g_29 *{app-region:no-drag}._left_1mw5g_28{display:inline-flex;flex:.5;margin-left:var(--border-margin)}._right_1mw5g_29{display:inline-flex;flex:.5;justify-content:flex-end;margin-right:var(--border-margin)}._button_1mw5g_46{height:2rem;font-weight:var(--light-base-weight);background-color:var(--dark-button-color);border-color:var(--dim-shadow-color);border-bottom-color:var(--dark-shadow-color)}._bridging_1mw5g_66{margin-left:var(--button-margin)}._bridging_1mw5g_66 ._button_1mw5g_46{border-top-right-radius:0;border-bottom-right-radius:0;width:2.6rem}._metadata_1mw5g_76 ._button_1mw5g_46{border-radius:0;border-left:none;width:2.6rem;display:flex;justify-content:center;align-items:center}._metadata_1mw5g_76 ._button_1mw5g_46:active:not(._button-disabled_1mw5g_58),._metadata_1mw5g_76 ._button-open_1mw5g_54{border-left:solid .1rem var(--base-accent-color)}span._project-title-field_1mw5g_93{height:1.8rem;padding-left:.5rem;padding-right:.7rem;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;background-color:var(--dark-button-color);border-color:var(--dim-shadow-color);border-bottom-color:var(--dark-shadow-color);transition:var(--fast-transition) all,padding-left}span._project-title-field_1mw5g_93:hover{color:var(--bright-font-color);border-color:var(--dim-shadow-color);background-color:var(--light-button-color)}span._project-title-field_1mw5g_93[contenteditable=true]{padding-left:.4rem;border-left:solid .1rem var(--base-accent-color);color:var(--bright-font-color);background-color:var(--dim-bg-color);transition:var(--fast-transition) all,padding-left,border-left-width}span._project-title-field_1mw5g_93[contenteditable=true]:hover{border-color:var(--base-accent-color)}._undo_1mw5g_124{margin-right:var(--button-margin)}._undo-list_1mw5g_128{white-space:nowrap}._undo-item-undone_1mw5g_136{opacity:.55;font-weight:var(--light-base-weight)}._undo-icon-add_1mw5g_141{color:var(--bright-accent-color)}._undo-icon-modify_1mw5g_145{color:var(--yellow-accent-color)}._undo-icon-delete_1mw5g_149{color:var(--red-accent-color)}._save_1mw5g_153{margin-right:var(--button-margin)}._layout-name_1mw5g_161{margin-right:.6rem}._layout-delete-button_1mw5g_169{float:right}._about-window_1mw5g_173{display:flex;flex-direction:column}._about-window-logo_1mw5g_178 svg{display:block!important;height:18rem!important;margin:0 auto}._about-window-version_1mw5g_184{font-weight:var(--light-base-weight);user-select:text;text-align:center;margin-top:-.4rem}._about-window-update_1mw5g_191{font-size:var(--tiny-font-size);font-weight:var(--light-base-weight);font-style:italic;text-align:center}._about-window-title_1mw5g_198{margin-top:1.4rem;padding:0 .3rem}._about-window-info_1mw5g_203{margin-top:.4rem;font-weight:var(--light-base-weight);padding:0 .3rem}._about-window-button-group_1mw5g_209{display:flex;justify-content:stretch}._about-window-button_1mw5g_209{margin-top:.4rem;height:2rem;justify-content:center;flex-grow:1}.flexlayout__layout{--color-text: black;--color-background: white;--color-base: white;--color-1: #f7f7f7;--color-2: #f0f0f0;--color-3: #e9e9e9;--color-4: #e2e2e2;--color-5: #dbdbdb;--color-6: #d4d4d4;--color-drag1: rgb(95, 134, 196);--color-drag2: rgb(119, 166, 119);--color-drag1-background: rgba(95, 134, 196, .1);--color-drag2-background: rgba(119, 166, 119, .075);--font-size: medium;--font-family: Roboto, Arial, sans-serif;--color-overflow: gray;--color-icon: gray;--color-tabset-background: var(--color-background);--color-tabset-background-selected: var(--color-1);--color-tabset-background-maximized: var(--color-6);--color-tabset-divider-line: var(--color-4);--color-tabset-header-background: var(--color-background);--color-tabset-header: var(--color-text);--color-border-tab-content: var(--color-background);--color-border-background: var(--color-background);--color-border-divider-line: var(--color-4);--color-tab-content: var(--color-background);--color-tab-selected: var(--color-text);--color-tab-selected-background: var(--color-4);--color-tab-unselected: gray;--color-tab-unselected-background: transparent;--color-tab-textbox: var(--color-text);--color-tab-textbox-background: var(--color-3);--color-border-tab-selected: var(--color-text);--color-border-tab-selected-background: var(--color-4);--color-border-tab-unselected: gray;--color-border-tab-unselected-background: var(--color-2);--color-splitter: var(--color-1);--color-splitter-hover: var(--color-4);--color-splitter-drag: var(--color-4);--color-drag-rect-border: #ccc;--color-drag-rect-background: var(--color-5);--color-drag-rect: var(--color-text);--color-popup-border: var(--color-6);--color-popup-unselected: var(--color-text);--color-popup-unselected-background: white;--color-popup-selected: var(--color-text);--color-popup-selected-background: var(--color-3);--color-edge-marker: #aaa;--color-edge-icon: #555}.flexlayout__layout{inset:0;position:absolute;display:flex}.flexlayout__layout_overlay{inset:0;position:absolute;z-index:1000}.flexlayout__layout_tab_stamps{position:absolute;top:-10000px;z-index:100;display:flex;flex-direction:column;align-items:start}.flexlayout__layout_moveables{visibility:hidden;position:absolute;width:100px;height:100px;top:-20000px}.flexlayout__layout_main{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1;position:relative}.flexlayout__layout_border_container,.flexlayout__layout_border_container_inner{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1}.flexlayout__splitter{display:flex;align-items:center;justify-content:center;background-color:var(--color-splitter);touch-action:none;z-index:10}@media (hover: hover){.flexlayout__splitter:hover{background-color:var(--color-splitter-hover);transition:background-color ease-in .1s;transition-delay:.05s}}.flexlayout__splitter_drag{position:absolute;display:flex;align-items:center;justify-content:center;z-index:1000;background-color:var(--color-splitter-drag)}.flexlayout__splitter_handle{background-color:#ccc;border-radius:3px}.flexlayout__splitter_handle_horz{width:3px;height:30px}.flexlayout__splitter_handle_vert{width:30px;height:3px}.flexlayout__splitter_extra{touch-action:none;background-color:transparent}.flexlayout__outline_rect{position:absolute;pointer-events:none;box-sizing:border-box;border:2px solid var(--color-drag1);background:var(--color-drag1-background);border-radius:5px;z-index:1000}.flexlayout__outline_rect_edge{pointer-events:none;border:2px solid var(--color-drag2);background:var(--color-drag2-background);border-radius:5px;z-index:1000;box-sizing:border-box}.flexlayout__edge_rect{position:absolute;z-index:1000;background-color:var(--color-edge-marker);pointer-events:none;display:flex;align-items:center;justify-content:center}.flexlayout__drag_rect{color:var(--color-drag-rect);background-color:var(--color-drag-rect-background);border:2px solid var(--color-drag-rect-border);border-radius:5px;box-sizing:border-box;display:flex;justify-content:center;flex-direction:column;overflow:hidden;padding:.3em .8em;word-wrap:break-word;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__row{display:flex;flex-basis:0px;min-width:0;min-height:0;position:relative;box-sizing:border-box;overflow:hidden}.flexlayout__tabset{display:flex;flex-direction:column;position:relative;background-color:var(--color-tabset-background);box-sizing:border-box;font-family:var(--font-family);overflow:hidden;flex-grow:1}.flexlayout__tabset_container{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-direction:column;overflow:hidden;flex-grow:1}.flexlayout__tabset_tab_divider{width:4px}.flexlayout__tabset_content{display:flex;flex-basis:0px;min-width:0;min-height:0;flex-grow:1;box-sizing:border-box;position:relative}.flexlayout__tabset_header{display:flex;align-items:center;padding:3px 3px 3px 5px;box-sizing:border-box;border-bottom:1px solid var(--color-tabset-divider-line);color:var(--color-tabset-header);background-color:var(--color-tabset-header-background);font-size:var(--font-size)}.flexlayout__tabset_header_content{flex-grow:1}.flexlayout__tabset_tabbar_outer{box-sizing:border-box;background-color:var(--color-tabset-background);overflow:hidden;display:flex;font-size:var(--font-size)}.flexlayout__tabset_tabbar_outer_top{padding:0 2px;border-bottom:1px solid var(--color-tabset-divider-line)}.flexlayout__tabset_tabbar_outer_bottom{padding:0 2px;border-top:1px solid var(--color-tabset-divider-line)}.flexlayout__tabset_tabbar_inner{position:relative;box-sizing:border-box;display:flex;flex-grow:1;overflow:hidden}.flexlayout__tabset_tabbar_inner_tab_container{position:relative;display:flex;padding-left:4px;padding-right:4px;box-sizing:border-box;white-space:nowrap}.flexlayout__tabset_tabbar_inner_tab_container_top{border-top:2px solid transparent}.flexlayout__tabset_tabbar_inner_tab_container_bottom{border-bottom:2px solid transparent}.flexlayout__tabset-selected{background-color:var(--color-tabset-background-selected)}.flexlayout__tabset-maximized{background-color:var(--color-tabset-background-maximized)}.flexlayout__tab_button_stamp{display:inline-flex;align-items:center;gap:.3em;white-space:nowrap;box-sizing:border-box}.flexlayout__tab{overflow:hidden;box-sizing:border-box;background-color:var(--color-tab-content);color:var(--color-text);position:relative}.flexlayout__tab_moveable{position:relative;height:100%;min-width:1px;min-height:1px;overflow:auto;box-sizing:border-box}.flexlayout__tab_overlay{z-index:20;position:absolute;inset:0;background-color:#0000003d}.flexlayout__tab_button{display:flex;gap:.3em;align-items:center;box-sizing:border-box;padding:3px .5em;cursor:pointer}.flexlayout__tab_button_stretch{background-color:transparent;color:var(--color-tab-selected);width:100%;padding:3px 0;text-wrap:nowrap;display:flex;gap:.3em;align-items:center;box-sizing:border-box;cursor:pointer}@media (hover: hover){.flexlayout__tab_button_stretch:hover{color:var(--color-tab-selected)}}.flexlayout__tab_button--selected{background-color:var(--color-tab-selected-background);color:var(--color-tab-selected)}@media (hover: hover){.flexlayout__tab_button:hover{background-color:var(--color-tab-selected-background);color:var(--color-tab-selected)}}.flexlayout__tab_button--unselected{background-color:var(--color-tab-unselected-background);color:var(--color-tab-unselected);color:gray}.flexlayout__tab_button_leading{display:flex}.flexlayout__tab_button_content{display:flex;text-wrap:nowrap}.flexlayout__tab_button_textbox{border:none;font-family:var(--font-family);font-size:var(--font-size);color:var(--color-tab-textbox);background-color:var(--color-tab-textbox-background);border:1px inset var(--color-1);border-radius:3px;width:10em}.flexlayout__tab_button_textbox:focus{outline:none}.flexlayout__tab_button_trailing{display:flex;visibility:hidden;border-radius:4px}.flexlayout__tab_button_trailing:hover{background-color:var(--color-3)}@media (hover: hover){.flexlayout__tab_button:hover .flexlayout__tab_button_trailing{visibility:visible}}.flexlayout__tab_button--selected .flexlayout__tab_button_trailing{visibility:visible}.flexlayout__tab_button_overflow{display:flex;align-items:center;border:none;color:var(--color-overflow);font-size:inherit;background-color:transparent}.flexlayout__tab_toolbar{display:flex;align-items:center;gap:.3em;padding-left:.5em;padding-right:.3em}.flexlayout__tab_toolbar_icon{border:none;outline:none;font-size:inherit;margin:0;background-color:transparent;padding:1px}.flexlayout__tab_toolbar_button{border:none;outline:none;font-size:inherit;margin:0;background-color:transparent;border-radius:4px;padding:1px}@media (hover: hover){.flexlayout__tab_toolbar_button:hover{background-color:var(--color-2)}}.flexlayout__tab_toolbar_sticky_buttons_container{display:flex;gap:.3em;padding-left:5px;align-items:center}.flexlayout__tab_floating{overflow:auto;position:absolute;box-sizing:border-box;color:var(--color-text);background-color:var(--color-background);display:flex;justify-content:center;align-items:center}.flexlayout__tab_floating_inner{overflow:auto;display:flex;flex-direction:column;justify-content:center;align-items:center}.flexlayout__tab_floating_inner div{margin-bottom:5px;text-align:center}.flexlayout__tab_floating_inner div a{color:#4169e1}.flexlayout__border{box-sizing:border-box;overflow:hidden;display:flex;font-size:var(--font-size);font-family:var(--font-family);color:var(--color-border);background-color:var(--color-border-background)}.flexlayout__border_tab_contents{box-sizing:border-box;overflow:hidden;background-color:var(--color-border-tab-content)}.flexlayout__border_top{border-bottom:1px solid var(--color-border-divider-line);align-items:center}.flexlayout__border_bottom{border-top:1px solid var(--color-border-divider-line);align-items:center}.flexlayout__border_left{border-right:1px solid var(--color-border-divider-line);align-content:center;flex-direction:column}.flexlayout__border_right{border-left:1px solid var(--color-border-divider-line);align-content:center;flex-direction:column}.flexlayout__border_inner{position:relative;box-sizing:border-box;display:flex;overflow:hidden;flex-grow:1}.flexlayout__border_inner_tab_container{white-space:nowrap;display:flex;padding-left:2px;padding-right:2px;box-sizing:border-box;position:absolute;width:10000px}.flexlayout__border_inner_tab_container_right{transform-origin:top left;transform:rotate(90deg)}.flexlayout__border_inner_tab_container_left{flex-direction:row-reverse;transform-origin:top right;transform:rotate(-90deg)}.flexlayout__border_tab_divider{width:4px}.flexlayout__border_button{display:flex;gap:.3em;align-items:center;cursor:pointer;padding:3px .5em;margin:2px 0;box-sizing:border-box;white-space:nowrap}.flexlayout__border_button--selected{background-color:var(--color-border-tab-selected-background);color:var(--color-border-tab-selected)}@media (hover: hover){.flexlayout__border_button:hover{background-color:var(--color-border-tab-selected-background);color:var(--color-border-tab-selected)}}.flexlayout__border_button--unselected{background-color:var(--color-border-tab-unselected-background);color:var(--color-border-tab-unselected)}.flexlayout__border_button_leading,.flexlayout__border_button_content{display:flex}.flexlayout__border_button_trailing{display:flex;border-radius:4px;visibility:hidden}.flexlayout__border_button_trailing:hover{background-color:var(--color-3)}@media (hover: hover){.flexlayout__border_button:hover .flexlayout__border_button_trailing{visibility:visible}}.flexlayout__border_button--selected .flexlayout__border_button_trailing{visibility:visible}.flexlayout__border_toolbar{display:flex;gap:.3em;align-items:center}.flexlayout__border_toolbar_left,.flexlayout__border_toolbar_right{flex-direction:column;padding-top:.5em;padding-bottom:.3em}.flexlayout__border_toolbar_top,.flexlayout__border_toolbar_bottom{padding-left:.5em;padding-right:.3em}.flexlayout__border_toolbar_button{border:none;outline:none;font-size:inherit;background-color:transparent;border-radius:4px;padding:1px}@media (hover: hover){.flexlayout__border_toolbar_button:hover{background-color:var(--color-2)}}.flexlayout__border_toolbar_button_overflow{display:flex;align-items:center;border:none;color:var(--color-overflow);font-size:inherit;background-color:transparent}.flexlayout__popup_menu{font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__popup_menu_item{padding:2px .5em;white-space:nowrap;cursor:pointer;border-radius:2px}@media (hover: hover){.flexlayout__popup_menu_item:hover{background-color:var(--color-6)}}.flexlayout__popup_menu_container{box-shadow:inset 0 0 5px #00000026;border:1px solid var(--color-popup-border);color:var(--color-popup-unselected);background:var(--color-popup-unselected-background);border-radius:3px;position:absolute;z-index:1000;max-height:50%;min-width:100px;overflow:auto;padding:2px}.flexlayout__floating_window _body{height:100%}.flexlayout__floating_window_content{inset:0;position:absolute}.flexlayout__error_boundary_container{inset:0;position:absolute;display:flex;justify-content:center}.flexlayout__error_boundary_content{display:flex;align-items:center}.flexlayout__tabset_sizer{padding-top:5px;padding-bottom:3px;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__tabset_header_sizer{padding-top:3px;padding-bottom:3px;font-size:var(--font-size);font-family:var(--font-family)}.flexlayout__border_sizer{position:absolute;top:-30000px;padding-top:6px;padding-bottom:5px;font-size:var(--font-size);font-family:var(--font-family)}._tab-icon_pixf3_5{padding-right:.2rem}.flexlayout__layout{margin-top:env(titlebar-area-height,2.6rem);background-color:var(--dark-bg-color);--font-family: var(--base-font);--font-size: var(--base-font-size);--color-text: var(--base-font-color);--color-background: var(--base-bg-color);--color-icon: var(--base-font-color);--color-splitter: var(--dark-bg-color);--color-splitter-hover: var(--dark-bg-color);--color-splitter-drag: var(--dark-bg-color);--color-tabset-divider-line: var(--light-bg-color);--color-tabset-background: var(--dim-bg-color);--color-tabset-background-selected: var(--dim-bg-color);--color-tabset-background-maximized: var(--dim-bg-color);--color-tab-selected-background: var(--light-bg-color);--color-drag-rect: var(--base-font-color);--color-drag-rect-background: var(--dim-bg-color);--color-drag-rect-border: var(--bright-accent-color);--color-edge-marker: var(--bright-accent-color);--color-overflow: var(--base-font-color);--color-popup-unselected: var(--base-font-color);--color-popup-selected: var(--base-font-color);--color-popup-unselected-background: var(--dim-bg-color);--color-popup-selected-background: var(--light-bg-color);--color-popup-border: var(--base-accent-color)}.flexlayout__splitter{z-index:unset}.flexlayout__tabset{border-radius:.25rem .25rem 0 0}.flexlayout__tabset_tabbar_outer_top{border:none;padding:0}.flexlayout__tab_button{border-radius:.25rem .25rem 0 0;padding-left:.75rem;padding-right:1.25rem;padding-top:.1rem;border-top:.2rem solid transparent;cursor:default}.flexlayout__tab_button:active{color:var(--base-font-color);background-color:var(--light-bg-color)}.flexlayout__tabset-selected .flexlayout__tab_button--selected{border-top:.2rem solid var(--base-accent-color)}.flexlayout__tabset_tabbar_inner_tab_container_top{border-top:0;padding-left:0}.flexlayout__tab_toolbar_button path{stroke:none}.flexlayout__tab_toolbar_button:hover{background-color:var(--base-button-color)}.flexlayout__popup_menu_item{cursor:default}.flexlayout__popup_menu_item:hover{background-color:var(--base-button-color)}.flexlayout__tab_button_trailing{opacity:.6;margin-right:-.5rem;padding-top:.1rem}.flexlayout__tab_button_trailing:hover{opacity:1;background-color:var(--light-button-color)}.flexlayout__tab_button:active .flexlayout__tab_button_trailing{visibility:visible}._asset-browser_35v3d_1{padding:.1rem 0}._item_35v3d_5{white-space:nowrap}._item-title_35v3d_9{padding:.1rem 0;display:inline-block;width:100%}._item_35v3d_5:focus>._item-title_35v3d_9{color:var(--bright-font-color);background-color:var(--base-button-color)}._folder-toggle_35v3d_24{display:inline-block;width:.7rem;padding:0 .6rem;color:var(--dark-font-color)}._folder-icon_35v3d_31{display:inline-block;width:1.3rem}._folder-name_35v3d_36{padding-left:.4rem}._folder-content_35v3d_40{padding-left:1.5rem}._file-icon_35v3d_48{display:inline-block;text-align:center;width:1.3rem;padding-left:1.9rem}._file-name_35v3d_55{padding-left:.4rem}._button_2zgq4_1{display:inline-flex;align-items:center;color:var(--light-font-color);font-family:var(--base-font);font-size:var(--base-font-size);background-color:var(--base-button-color);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color);border-radius:var(--base-border-radius);padding:0 .6rem;transition:var(--fast-transition) all;overflow:hidden}._disabled_2zgq4_16{opacity:.5}._button_2zgq4_1:not(._disabled_2zgq4_16):hover{color:var(--bright-font-color);background-color:var(--light-button-color);border-color:var(--dim-bg-color)}._button_2zgq4_1:not(._disabled_2zgq4_16):active{color:var(--bright-font-color);background-color:var(--bright-button-color)}._button_2zgq4_1:not(._disabled_2zgq4_16):focus{border-color:var(--base-accent-color)}._label_2zgq4_35{overflow:hidden;text-overflow:ellipsis;line-height:1.6rem}._icon_2zgq4_41+._label_2zgq4_35{margin-left:.5rem}._primary_2zgq4_45{background-color:var(--dark-accent-color)}._primary_2zgq4_45:not(._disabled_2zgq4_16):hover{background-color:var(--dim-accent-color)}._primary_2zgq4_45:not(._disabled_2zgq4_16):active{background-color:var(--base-accent-color)}._minimal_2zgq4_57,._minimal_2zgq4_57:hover,._minimal_2zgq4_57:active{border:unset;border-radius:unset;background:unset}._minimal_2zgq4_57:focus{color:var(--bright-font-color)}._inspector_6gclz_1{overflow-x:clip}._header_6gclz_5{background-color:var(--light-bg-color);display:flex;padding:.8rem .4rem;border-bottom:.1rem solid var(--dark-bg-color)}._component_6gclz_12{border-top:.1rem solid var(--dark-bg-color);background:var(--base-bg-color)}._component_6gclz_12:first-child{border-top:none}._component-header_6gclz_29{display:flex;align-items:center;height:2rem;background-color:var(--dark-button-color);border-bottom:solid .1rem var(--bright-shadow-color)}._component-header_6gclz_29:hover{background-color:var(--dim-button-color)}._component-header-collapsed_6gclz_41{border-bottom:none}._component_6gclz_12:last-of-type ._component-header-collapsed_6gclz_41{border-bottom:.1rem solid var(--dark-bg-color)!important}._component-collapse_6gclz_53{margin-left:.6rem;width:.8rem;color:var(--dark-font-color)}._component-icon_6gclz_59{margin-left:.6rem;width:1.4rem;text-align:center}._component-title_6gclz_65{font-weight:var(--bold-base-weight);color:var(--light-font-color);margin-left:.6rem}._component-title-with-tooltip_6gclz_71{cursor:help}._component-drag-area_6gclz_76{height:100%;flex-grow:1}._component-context-menu_6gclz_81{margin-left:auto;margin-right:.5rem}._component-content_6gclz_87{margin:.4rem .4rem .8rem 2rem}._groups-container_ruuv8_1{width:100%;height:100%}._group_ruuv8_1{position:absolute!important;inset:0;background:var(--graph-background);opacity:0;z-index:0!important;transition:opacity var(--slow-transition)}._group-active_ruuv8_18{opacity:1;z-index:1!important}._bg-pattern-1_ruuv8_23 path{stroke:var(--base-bg-color)}._bg-pattern-2_ruuv8_27 path{stroke:var(--light-bg-color)}._edge_ruuv8_31{cursor:default!important;transform:translateY(.05rem)}._edge_ruuv8_31 .react-flow__edge-path{stroke:var(--dim-font-color)!important}._edge_ruuv8_31.selected .react-flow__edge-path{stroke:var(--light-accent-color)!important}._edge-conditional_ruuv8_44 .react-flow__edge-path{stroke-dasharray:5}._story-node_ruuv8_48{color:var(--base-font-color)!important;font-family:var(--font-family)!important;font-size:var(--base-font-size)!important;background-color:color-mix(in srgb,var(--light-bg-color) 70%,transparent)!important;border:solid .1rem var(--dark-font-color)!important;border-radius:var(--base-border-radius)!important;max-width:22rem}.selected ._story-node_ruuv8_48{border-color:var(--light-accent-color)!important}._expandable-node_ruuv8_62{border-style:dashed!important}._node-title_ruuv8_70{color:var(--bright-font-color);overflow:hidden;border-radius:var(--base-border-radius) var(--base-border-radius) 0 0;padding:1rem}._node-with-ports_ruuv8_66 ._node-title_ruuv8_70{border-bottom:solid var(--dark-font-color) .1rem;margin-bottom:1rem}._node-title-with-tooltip_ruuv8_82{cursor:help;text-decoration:underline dotted var(--dark-font-color);text-underline-position:from-font}._node-title-icon_ruuv8_88{margin-right:.5rem}._script-node_ruuv8_92 ._node-title-icon_ruuv8_88{color:var(--bright-accent-color)}._portal-node_ruuv8_96 ._node-title-icon_ruuv8_88{color:var(--yellow-accent-color)}._enter-node_ruuv8_100 ._node-title-icon_ruuv8_88,._exit-node_ruuv8_101 ._node-title-icon_ruuv8_88{color:var(--green-accent-color)}._node-synopsis_ruuv8_105{padding-top:.25rem;font-size:var(--small-font-size);font-weight:var(--light-base-weight);color:var(--dim-font-color)}._node-ports_ruuv8_112{border-radius:0 0 var(--base-border-radius) var(--base-border-radius);padding-bottom:1rem}._node-port_ruuv8_112{position:relative}._node-port_ruuv8_112+._node-port_ruuv8_112{margin-top:.5rem}._node-port-in_ruuv8_125{margin-right:2rem}._node-port-out_ruuv8_129{text-align:right;margin-left:2rem}._node-port-icon_ruuv8_134{margin-right:.3rem;color:var(--bright-accent-color)}._script-node_ruuv8_92 ._node-port-out_ruuv8_129 ._node-port-icon_ruuv8_134{color:var(--yellow-accent-color)}._script-node_ruuv8_92 ._node-port-in_ruuv8_125 ._node-port-icon_ruuv8_134{color:var(--green-accent-color)}._node-port-title_ruuv8_147{position:absolute;display:inline-block}._node-port-in_ruuv8_125._node-port-title_ruuv8_147{left:0}._node-port-out_ruuv8_129._node-port-title_ruuv8_147{right:0}._node-handle_ruuv8_160{border-color:var(--dim-font-color)!important;background-color:var(--dim-bg-color)!important;min-width:unset!important;min-height:unset!important;width:.7rem!important;height:.7rem!important;cursor:default!important}.react-flow__handle-right{right:-.5rem!important}.react-flow__handle-left{left:-.5rem!important}.selected ._node-handle_ruuv8_160{border-color:var(--light-accent-color)!important}._node-port-label_ruuv8_182{padding:0 1rem;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._node-port-with-tooltip_ruuv8_194 ._node-port-label_ruuv8_182{cursor:help;text-decoration:underline dotted var(--dark-font-color);text-underline-position:from-font}._node-port-tooltip_ruuv8_200{font-family:var(--code-font);font-size:var(--tiny-font-size);color:var(--dim-font-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 1rem}._path_ruuv8_210{display:flex;border:solid .1rem var(--dim-shadow-color);border-radius:var(--base-border-radius)}._path-item_ruuv8_216{display:inline-block;white-space:nowrap;color:var(--light-font-color);background-color:var(--base-button-color);transition:var(--fast-transition) all;padding:.5rem 1rem;transform-origin:left;border-right:solid .1rem var(--dim-shadow-color)}._path-item_ruuv8_216:first-child{border-bottom-left-radius:var(--base-border-radius);border-top-left-radius:var(--base-border-radius)}._path-item_ruuv8_216:last-child{cursor:help;text-decoration:underline dotted var(--dim-font-color);text-underline-position:from-font;border-right:none;border-bottom-right-radius:var(--base-border-radius);border-top-right-radius:var(--base-border-radius)}._path-item_ruuv8_216:not(:last-child){opacity:.5}._path-item_ruuv8_216:not(:last-child):hover{opacity:1;color:var(--bright-font-color);background-color:var(--light-button-color)}._controls_ruuv8_251{display:flex;flex-direction:column}._control-button_ruuv8_256{border:solid .1rem var(--dim-shadow-color)!important;border-radius:unset!important;border-top-width:0!important;padding:.5rem .7rem!important}._control-button_ruuv8_256:first-of-type{border-top-width:.1rem!important;border-top-left-radius:var(--base-border-radius)!important;border-top-right-radius:var(--base-border-radius)!important}._control-button_ruuv8_256:last-of-type{border-bottom-left-radius:var(--base-border-radius)!important;border-bottom-right-radius:var(--base-border-radius)!important}.selection{cursor:default!important}.react-flow__minimap{background-color:var(--dim-bg-color)!important;border:solid .1rem var(--dim-shadow-color)!important;border-radius:var(--base-border-radius);opacity:.85}.react-flow__minimap>svg{border-radius:var(--base-border-radius);margin-bottom:-3px}.react-flow__minimap-mask{fill:var(--dim-shadow-color)!important;opacity:.5!important}.react-flow__minimap-node{fill:var(--dim-font-color)!important;shape-rendering:geometricPrecision!important;opacity:.75}.react-flow__minimap-node.selected{fill:var(--light-accent-color)!important}._header_1jvjl_1{display:flex;align-items:stretch;width:100%;gap:.2rem}._header-inspection-button_1jvjl_8{flex:1}._header-inspection-label_1jvjl_12{display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end}._header-line-type_1jvjl_19{flex:1}._icon-label_1jvjl_31{color:var(--green-accent-color)}._icon-command_1jvjl_35{color:var(--yellow-accent-color)}._icon-generic-author_1jvjl_39{color:var(--aqua-accent-color)}._icon-generic-text_1jvjl_43{color:var(--bright-accent-color)}._unassigned_1jvjl_51{opacity:.5}._unassigned_1jvjl_51:hover,._unassigned_1jvjl_51:focus-within{opacity:1}._inline-menu_1jvjl_59{margin-top:.8rem;display:flex;justify-content:center;min-height:2.4rem}._inline-menu-button_1jvjl_66{justify-content:center;flex-basis:22.8rem;max-width:21.6rem}._inline-menu-dropdown_1jvjl_72{flex-basis:23rem;min-height:2.4rem}._header_18prq_1{display:flex;align-items:stretch;width:100%;gap:.2rem}._header-inspection-button_18prq_8{flex:1}._header-inspection-label_18prq_12{display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end}._icon-synopsis_18prq_19{color:var(--aqua-accent-color)}._icon-outline_18prq_23{color:var(--yellow-accent-color)}._icon-mutations_18prq_27{color:var(--purple-accent-color)}._outline-container_18prq_31{background-color:var(--dim-button-color);border-radius:var(--base-border-radius);border:solid .1rem var(--bright-shadow-color);border-bottom-color:var(--light-shadow-color)}._outline-item_18prq_38{display:block;padding:0;border-bottom:.1rem solid var(--dark-button-color)}._outline-item_18prq_38:hover,._outline-item_18prq_38:focus{background-color:var(--base-button-color);border-bottom:.1rem solid var(--dark-button-color)}._outline-item_18prq_38:last-child{border-bottom:none}._outline-item-icon_18prq_53{display:inline-block;width:1.1rem;padding-left:.5rem;text-align:center;font-size:var(--small-font-size)}._outline-item-label_18prq_61{display:inline-block;padding:.2rem 0 .2rem .4rem;font-family:var(--code-font);background-color:var(--base-button-color);width:calc(100% - 2.5rem)}._outline-item_18prq_38:active,._outline-item_18prq_38:active ._outline-item-label_18prq_61{background-color:var(--bright-button-color)!important}._outline-item_18prq_38:first-child{border-top-left-radius:var(--base-border-radius);border-top-right-radius:var(--base-border-radius)}._outline-item_18prq_38:last-child{border-bottom-left-radius:var(--base-border-radius);border-bottom-right-radius:var(--base-border-radius)}._outline-item_18prq_38:first-child ._outline-item-label_18prq_61{border-top-right-radius:var(--base-border-radius)}._outline-item_18prq_38:last-child ._outline-item-label_18prq_61{border-bottom-right-radius:var(--base-border-radius)}._outline-item_18prq_38:hover ._outline-item-label_18prq_61,._outline-item_18prq_38:focus ._outline-item-label_18prq_61{background-color:var(--light-button-color)}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.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 .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation: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:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.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:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;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:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.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.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@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}.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-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.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:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.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{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.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:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform: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:#3367d9;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%}._script-view_q1fzl_1{height:100%;background:var(--visual-editor-background)}._script-line_q1fzl_6{display:flex;border-bottom:solid .1rem color-mix(in srgb,var(--dim-shadow-color) 30%,transparent);background-color:color-mix(in srgb,var(--light-bg-color) 70%,transparent);min-height:2rem;white-space:nowrap;overflow:hidden;animation:_fadein_q1fzl_1 ease-in .15s}@keyframes _fadein_q1fzl_1{0%{opacity:0}to{opacity:1}}._script-line_q1fzl_6:hover,._script-line-inspected_q1fzl_25{box-shadow:inset 0 0 0 .1rem var(--base-accent-color)}._line-indent_q1fzl_30{width:1rem;background-color:color-mix(in srgb,var(--dim-bg-color) 30%,transparent);border-right:solid .1rem color-mix(in srgb,var(--base-font-color) 30%,transparent)}._line-icon_q1fzl_36{display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;flex-shrink:0;padding:0 .35rem;font-size:var(--small-font-size);background-color:color-mix(in srgb,var(--dim-bg-color) 30%,transparent)}._line-content_q1fzl_47{align-self:center;margin-left:.5rem;font-family:var(--code-font);font-weight:var(--regular-code-weight)}._insert-preview-line_q1fzl_70{border:dashed .1rem var(--dark-font-color);transition:var(--fast-transition) all}._insert-preview-line_q1fzl_70:hover{box-shadow:unset;border-color:var(--dim-font-color);background-color:var(--dark-button-color)}._insert-preview-line_q1fzl_70 ._line-content_q1fzl_47{display:inline-block;width:100%;text-align:center;color:var(--dim-font-color);transition:var(--fast-transition) all}._insert-preview-line_q1fzl_70:hover ._line-content_q1fzl_47{color:var(--base-font-color)}._text-editor_n47gw_1{font-family:var(--code-font)}@font-face{font-family:"Default";font-style:normal;font-weight:100 900;font-display:swap;src:url(/editor/fonts/inter.woff2) format("woff2")}@font-face{font-family:"Default";font-style:italic;font-weight:100 900;font-display:swap;src:url(/editor/fonts/inter-italic.woff2) format("woff2")}@font-face{font-family:"Default Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url(/editor/fonts/jb.ttf) format("truetype")}@font-face{font-family:"Default Mono";font-style:italic;font-weight:100 900;font-display:swap;src:url(/editor/fonts/jb-italic.ttf) format("truetype")}:root{--max-z-index: 999999;--base-font: "Default", sans-serif;--code-font: "Default Mono", monospace;--tiny-font-size: 1rem;--small-font-size: 1.05rem;--base-font-size: 1.2rem;--giant-font-size: 2rem;--light-code-weight: 100;--regular-code-weight: 200;--light-base-weight: 300;--regular-base-weight: 400;--bold-base-weight: 500;--red-accent-color: #f88d84;--green-accent-color: #a9e17e;--blue-accent-color: #93b6f8;--purple-accent-color: #be93f3;--yellow-accent-color: #e2be7f;--aqua-accent-color: #9dd6de;--dark-accent-color: #2c5785;--dim-accent-color: #32669e;--base-accent-color: #3a79bb;--light-accent-color: #5897db;--bright-accent-color: var(--blue-accent-color);--dark-font-color: #7c7c7c;--dim-font-color: #a6a6a6;--base-font-color: #cccccc;--light-font-color: #d3d3d3;--bright-font-color: #eeeeee;--expression-color: #6ac9d4;--dark-bg-color: #191919;--dim-bg-color: #282828;--base-bg-color: #383838;--light-bg-color: #3c3c3c;--bright-bg-color: #414141;--dark-shadow-color: #0d0d0d;--dim-shadow-color: #141414;--base-shadow-color: #202020;--light-shadow-color: #242424;--bright-shadow-color: #303030;--dark-button-color: #3e3e3e;--dim-button-color: #474747;--base-button-color: #515151;--light-button-color: #585858;--bright-button-color: #656565;--base-border-radius: .3rem;--major-border-radius: .6rem;--fast-transition: .1s ease-out;--base-transition: .33s ease;--slow-transition: .66s ease;--font-ligatures: none;--graph-background: var(--dim-bg-color);--visual-editor-background: var(--dim-bg-color);font-size:62.5%;font-optical-sizing:auto;color:var(--base-font-color);background-color:var(--dim-bg-color);font-family:var(--base-font);font-variant-ligatures:var(--font-ligatures);user-select:none;overflow:clip}body{font-family:var(--base-font);font-size:var(--base-font-size);margin:0}*{outline:none;box-shadow:none;border:none}a{color:var(--bright-accent-color)}.icon{display:inline-block;height:1em;vertical-align:-.125em;fill:currentColor} diff --git a/docs/public/editor/assets/index-DyBxLpnk.js b/docs/public/editor/assets/index-mkblAxjD.js similarity index 64% rename from docs/public/editor/assets/index-DyBxLpnk.js rename to docs/public/editor/assets/index-mkblAxjD.js index 28e51a1c8..54e440594 100644 --- a/docs/public/editor/assets/index-DyBxLpnk.js +++ b/docs/public/editor/assets/index-mkblAxjD.js @@ -1,4 +1,4 @@ -function qI(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const YI="modulepreload",XI=function(e){return"/editor/"+e},ib={},f0=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");r=Promise.allSettled(n.map(l=>{if(l=XI(l),l in ib)return;ib[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":YI,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return r.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};async function W3(e){return e==null?await Promise.resolve().then(function(){return P7}):await f0(()=>import(`${e}/dotnet.js`),[])}async function L7(e){return e==null?await Promise.resolve().then(function(){return gN}):await f0(()=>import(`${e}/dotnet.native.js`),[])}async function I7(e){return e==null?await Promise.resolve().then(function(){return bN}):await f0(()=>import(`${e}/dotnet.runtime.js`),[])}var ZI={wasm:{name:"dotnet.native.wasm",content:void 0},assemblies:[{name:"aot-instances.wasm",content:void 0},{name:"Bootsharp.Common.wasm",content:void 0},{name:"Bootsharp.FileSystem.wasm",content:void 0},{name:"Bootsharp.Inject.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.Abstractions.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.wasm",content:void 0},{name:"Naninovel.Common.Bindings.wasm",content:void 0},{name:"Naninovel.Common.Modern.wasm",content:void 0},{name:"Naninovel.Common.wasm",content:void 0},{name:"Naninovel.Editor.wasm",content:void 0},{name:"Naninovel.Editor.WASM.wasm",content:void 0},{name:"System.Collections.Concurrent.wasm",content:void 0},{name:"System.Collections.wasm",content:void 0},{name:"System.ComponentModel.wasm",content:void 0},{name:"System.Linq.wasm",content:void 0},{name:"System.Memory.wasm",content:void 0},{name:"System.Net.Http.wasm",content:void 0},{name:"System.Net.WebSockets.Client.wasm",content:void 0},{name:"System.Net.WebSockets.wasm",content:void 0},{name:"System.Private.CoreLib.wasm",content:void 0},{name:"System.Private.Uri.wasm",content:void 0},{name:"System.Runtime.InteropServices.JavaScript.wasm",content:void 0},{name:"System.Text.Encodings.Web.wasm",content:void 0},{name:"System.Text.Json.wasm",content:void 0},{name:"System.Text.RegularExpressions.wasm",content:void 0}],entryAssemblyName:"Naninovel.Editor.WASM.dll"};const N7=ZI,Si=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]);function JI(e){if(typeof window=="object")return Uint8Array.from(window.atob(e),l=>l.charCodeAt(0));if(typeof Buffer=="function")return Buffer.from(e,"base64");const t=e.length,n=e[t-2]==="="?2:e[t-1]==="="?1:0,o=t-n&4294967292;let r,i=0,s=0;const a=[];for(;i>16&255,a[s++]=r>>8&255,a[s++]=r&255;return n===1&&(r=Si[e.charCodeAt(i)]<<10|Si[e.charCodeAt(i+1)]<<4|Si[e.charCodeAt(i+2)]>>2,a[s++]=r>>8&255,a[s++]=r&255),n===2&&(r=Si[e.charCodeAt(i)]<<2|Si[e.charCodeAt(i+1)]>>4,a[s++]=r&255),new Uint8Array(a)}async function R7(e,t){const n=t==null,o=n?await W3():void 0,r=n?await L7():void 0,i=n?await I7():void 0,s=!n&&(await Promise.resolve().then(function(){return P7})).mt;return{mainAssemblyName:e.entryAssemblyName,assets:[a({name:"dotnet.js"},"js-module-dotnet",o,!1),a({name:"dotnet.native.js"},"js-module-native",r,!1),a({name:"dotnet.runtime.js"},"js-module-runtime",i,!1),a({name:"dotnet.native.worker.js"},"js-module-threads",void 0,!0),a(e.wasm,"dotnetwasm",void 0,!1),...e.assemblies.map(l=>a(l,"assembly"))]};function a(l,c,d,f){const p=`${t}/${l.name}`;return{name:!s||l.content||c==="assembly"?l.name:p,resolvedUrl:l.content||!t?void 0:p,buffer:typeof l.content=="string"?JI(l.content):l.content,moduleExports:d,isOptional:f,behavior:c}}}let A1;async function KI(e,t){A1=(await e.getAssemblyExports(t)).Bootsharp?.Generated.Interop}let nt=class{handlers=new Map;warn;lastArgs;constructor(t){this.warn=t?.warn??console.warn}broadcast(...t){this.lastArgs=t;for(const n of this.handlers.values())n(...this.lastArgs)}subscribe(t){const n=this.getOrDefineId(t);return this.subscribeById(n,t),n}unsubscribe(t){if(t==null)return;const n=this.getOrDefineId(t);this.unsubscribeById(n)}subscribeById(t,n){this.handlers.has(t)?this.warn(`Failed to subscribe event handler with ID '${t}': handler is already subscribed.`):this.handlers.set(t,n)}unsubscribeById(t){this.handlers.has(t)?this.handlers.delete(t):this.warn(`Failed to unsubscribe event handler with ID '${t}': handler is not subscribed.`)}get last(){return this.lastArgs}getOrDefineId(t){const n="bootsharpEventHandlerId";if(t.hasOwnProperty(n))return t[n];const o=crypto.randomUUID();return Object.defineProperty(t,n,{value:o,enumerable:!1,writable:!1}),o}};const QI=new FinalizationRegistry(oN),j3=new Map,x2=new Array;let eN=-2147483648;function tN(e){const t=x2.length>0?x2.shift():eN++;return j3.set(t,e),t}function ss(e){return j3.get(e)}function nN(e){j3.delete(e),x2.push(e)}function M7(e,t){QI.register(e,t)}function oN(e){A1.DisposeExportedInstance(e)}function re(){if(A1==null)throw Error("Boot the runtime before invoking C# APIs.");return A1}function lt(e){return JSON.stringify(e)}function St(e){const t=JSON.parse(e);if(t!==null)return t}class rN{constructor(t){this._id=t,M7(this,t)}handleFileChanges(t){return A7.handleFileChanges(this._id,t)}}const ol={onChanged:new nt,onChangedSerialized:e=>ol.onChanged.broadcast(St(e)),openFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFolder(e),closeFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_CloseFolder(e),openFile:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFile(e)},iN={connectToServerInLoop:e=>re().Naninovel_Bindings_Bridging_ConnectToServerInLoop(e),breakConnectionLoop:()=>re().Naninovel_Bindings_Bridging_BreakConnectionLoop(),requestGoto:(e,t)=>re().Naninovel_Bindings_Bridging_RequestGoto(e,t),get onMetadataUpdated(){return this.onMetadataUpdatedHandler},set onMetadataUpdated(e){this.onMetadataUpdatedHandler=e,this.onMetadataUpdatedSerializedHandler=t=>this.onMetadataUpdatedHandler(St(t))},get onMetadataUpdatedSerialized(){if(typeof this.onMetadataUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onMetadataUpdated' from C#. Make sure to assign function in JavaScript.");return this.onMetadataUpdatedSerializedHandler},get onPlaybackStatusUpdated(){return this.onPlaybackStatusUpdatedHandler},set onPlaybackStatusUpdated(e){this.onPlaybackStatusUpdatedHandler=e,this.onPlaybackStatusUpdatedSerializedHandler=t=>this.onPlaybackStatusUpdatedHandler(St(t))},get onPlaybackStatusUpdatedSerialized(){if(typeof this.onPlaybackStatusUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onPlaybackStatusUpdated' from C#. Make sure to assign function in JavaScript.");return this.onPlaybackStatusUpdatedSerializedHandler}},Ve={onProjectTitleChanged:new nt,onProjectTitleChangedSerialized:e=>Ve.onProjectTitleChanged.broadcast(e),onRecentProjectsChanged:new nt,onRecentProjectsChangedSerialized:e=>Ve.onRecentProjectsChanged.broadcast(St(e)),onUserChanged:new nt,onUserChangedSerialized:e=>Ve.onUserChanged.broadcast(e),onUndoChanged:new nt,onUndoChangedSerialized:()=>Ve.onUndoChanged.broadcast(),onDirtyChanged:new nt,onDirtyChangedSerialized:e=>Ve.onDirtyChanged.broadcast(St(e)),onBridgingChanged:new nt,onBridgingChangedSerialized:e=>Ve.onBridgingChanged.broadcast(e),onMetadataChanged:new nt,onMetadataChangedSerialized:e=>Ve.onMetadataChanged.broadcast(e),openProject:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenProject(),openRecentProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenRecentProject(e),renameProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RenameProject(e),canUndo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanUndo(),canRedo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanRedo(),undo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Undo(),redo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Redo(),undoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_UndoAt(e),redoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RedoAt(e),getUndoLength:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_GetUndoLength(),viewUndo:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ViewUndo(e)),saveDirty:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveDirty(e),saveAllDirty:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveAllDirty(),findServers:async()=>St(await re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_FindServers()),connect:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Connect(e),disconnect:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Disconnect(),applyDefaultMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ApplyDefaultMetadata(),hasCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_HasCachedMetadata(),deleteCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_DeleteCachedMetadata()},xr={setDefaultMetadata:e=>re().Naninovel_Editor_WASM_Editor_SetDefaultMetadata(lt(e)),notifyWindowBlurred:()=>re().Naninovel_Editor_WASM_Editor_NotifyWindowBlurred(),hasUnsavedAssets:()=>re().Naninovel_Editor_WASM_Editor_HasUnsavedAssets(),UndoContext:{0:"Modify",1:"Add",2:"Delete",Modify:0,Add:1,Delete:2},ConfigurationScope:{0:"User",1:"Project",User:0,Project:1}},O7={get pickRoot(){return this.pickRootHandler},set pickRoot(e){this.pickRootHandler=e,this.pickRootSerializedHandler=async t=>await this.pickRootHandler(St(t))},get pickRootSerialized(){if(typeof this.pickRootHandler!="function")throw Error("Failed to invoke 'FileMounter.pickRoot' from C#. Make sure to assign function in JavaScript.");return this.pickRootSerializedHandler},get mount(){return this.mountHandler},set mount(e){this.mountHandler=e,this.mountSerializedHandler=async(t,n,o)=>tN(await this.mountHandler(t,new rN(n),St(o)))},get mountSerialized(){if(typeof this.mountHandler!="function")throw Error("Failed to invoke 'FileMounter.mount' from C#. Make sure to assign function in JavaScript.");return this.mountSerializedHandler},get unmount(){return this.unmountHandler},set unmount(e){this.unmountHandler=e,this.unmountSerializedHandler=t=>this.unmountHandler(t)},get unmountSerialized(){if(typeof this.unmountHandler!="function")throw Error("Failed to invoke 'FileMounter.unmount' from C#. Make sure to assign function in JavaScript.");return this.unmountSerializedHandler}},sN={createDirectorySerialized:(e,t)=>ss(e).createDirectory(t),removeDirectorySerialized:(e,t)=>ss(e).removeDirectory(t),moveDirectorySerialized:(e,t,n)=>ss(e).moveDirectory(t,n),writeFileSerialized:(e,t,n)=>ss(e).writeFile(t,n),deleteFileSerialized:(e,t)=>ss(e).deleteFile(t),openFileSerialized:(e,t)=>ss(e).openFile(t),getOpenFileContentSerialized:(e,t)=>ss(e).getOpenFileContent(t),getFileInfoSerialized:async(e,t)=>lt(await ss(e).getFileInfo(t)),PermissionMode:{0:"Read",1:"ReadWrite",Read:0,ReadWrite:1},FileChangeType:{0:"FileAdded",1:"FileRemoved",2:"FileModified",3:"DirectoryAdded",4:"DirectoryRemoved",FileAdded:0,FileRemoved:1,FileModified:2,DirectoryAdded:3,DirectoryRemoved:4}},A7={handleFileChanges:async(e,t)=>await re().Bootsharp_Generated_Exports_Bootsharp_FileSystem_JSFileWatcher_HandleFileChanges(e,lt(t))},D7={get logInfo(){return this.logInfoHandler},set logInfo(e){this.logInfoHandler=e,this.logInfoSerializedHandler=t=>this.logInfoHandler(t)},get logInfoSerialized(){if(typeof this.logInfoHandler!="function")throw Error("Failed to invoke 'JSLogger.logInfo' from C#. Make sure to assign function in JavaScript.");return this.logInfoSerializedHandler},get logWarning(){return this.logWarningHandler},set logWarning(e){this.logWarningHandler=e,this.logWarningSerializedHandler=t=>this.logWarningHandler(t)},get logWarningSerialized(){if(typeof this.logWarningHandler!="function")throw Error("Failed to invoke 'JSLogger.logWarning' from C#. Make sure to assign function in JavaScript.");return this.logWarningSerializedHandler},get logError(){return this.logErrorHandler},set logError(e){this.logErrorHandler=e,this.logErrorSerializedHandler=t=>this.logErrorHandler(t)},get logErrorSerialized(){if(typeof this.logErrorHandler!="function")throw Error("Failed to invoke 'JSLogger.logError' from C#. Make sure to assign function in JavaScript.");return this.logErrorSerializedHandler}},xs={onUserAuthorized:new nt,onUserAuthorizedSerialized:e=>xs.onUserAuthorized.broadcast(e),getLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_GetLastUser(),authorizeUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeUser(),authorizeLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeLastUser(),logout:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_Logout()},Ii={BranchTraits:{1:"Endpoint",2:"Nest",4:"Interactive",8:"Return",16:"Switch",Endpoint:1,Nest:2,Interactive:4,Return:8,Switch:16},ValueContainerType:{0:"Single",1:"List",2:"Named",3:"NamedList",Single:0,List:1,Named:2,NamedList:3},ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",String:0,Integer:1,Decimal:2,Boolean:3},ValueContextType:{0:"Expression",1:"Constant",2:"Resource",3:"Endpoint",4:"Actor",5:"Appearance",6:"Color",7:"Vector",Expression:0,Constant:1,Resource:2,Endpoint:3,Actor:4,Appearance:5,Color:6,Vector:7}},z7={get mergeMetadata(){return this.mergeMetadataHandler},set mergeMetadata(e){this.mergeMetadataHandler=e,this.mergeMetadataSerializedHandler=t=>lt(this.mergeMetadataHandler(St(t)))},get mergeMetadataSerialized(){if(typeof this.mergeMetadataHandler!="function")throw Error("Failed to invoke 'MetadataMerger.mergeMetadata' from C#. Make sure to assign function in JavaScript.");return this.mergeMetadataSerializedHandler}},Vi={LineType:{0:"Comment",1:"Label",2:"Command",3:"Generic",Comment:0,Label:1,Command:2,Generic:3}},Sa={onProgressChanged:new nt,onProgressChangedSerialized:e=>Sa.onProgressChanged.broadcast(St(e)),onProgressCleared:new nt,onProgressClearedSerialized:e=>Sa.onProgressCleared.broadcast(e)},Ue={onScriptChanged:new nt,onScriptChangedSerialized:e=>Ue.onScriptChanged.broadcast(e),onLineFocused:new nt,onLineFocusedSerialized:(e,t)=>Ue.onLineFocused.broadcast(e,t),onCommandOptionsChanged:new nt,onCommandOptionsChangedSerialized:e=>Ue.onCommandOptionsChanged.broadcast(St(e)),isScriptTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptTab(e),getScriptIdFromTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetScriptIdFromTab(e),buildTabIdFromScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_BuildTabIdFromScript(e),goto:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_Goto(e,t),viewScript:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewScript(e)),getLineType:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetLineType(e,t)),previewLine:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_PreviewLine(e,t)),viewComment:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewComment(e,t)),viewLabel:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewLabel(e,t)),viewCommand:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewCommand(e,t)),viewGeneric:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewGeneric(e,t)),insertLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InsertLine(e,lt(t)),duplicateLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_DuplicateLine(e,lt(t)),removeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveLine(e,lt(t)),moveLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveLine(e,lt(t)),indentLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IndentLine(e,lt(t)),unIndentLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_UnIndentLine(e,lt(t)),moveContent:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveContent(e,lt(t)),changeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ChangeLine(e,lt(t)),editComment:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditComment(e,lt(t)),editLabel:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditLabel(e,lt(t)),editParameter:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditParameter(e,lt(t)),inlineCommand:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InlineCommand(e,lt(t)),removeInlined:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveInlined(e,lt(t)),editText:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditText(e,lt(t)),editAuthor:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAuthor(e,lt(t)),editAppearance:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAppearance(e,lt(t)),saveEdits:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_SaveEdits(e)},qf={get read(){return this.readHandler},set read(e){this.readHandler=e,this.readSerializedHandler=t=>this.readHandler(t)},get readSerialized(){if(typeof this.readHandler!="function")throw Error("Failed to invoke 'SessionStorage.read' from C#. Make sure to assign function in JavaScript.");return this.readSerializedHandler},get write(){return this.writeHandler},set write(e){this.writeHandler=e,this.writeSerializedHandler=(t,n)=>this.writeHandler(t,n)},get writeSerialized(){if(typeof this.writeHandler!="function")throw Error("Failed to invoke 'SessionStorage.write' from C#. Make sure to assign function in JavaScript.");return this.writeSerializedHandler},get remove(){return this.removeHandler},set remove(e){this.removeHandler=e,this.removeSerializedHandler=t=>this.removeHandler(t)},get removeSerialized(){if(typeof this.removeHandler!="function")throw Error("Failed to invoke 'SessionStorage.remove' from C#. Make sure to assign function in JavaScript.");return this.removeSerializedHandler}},ae={onChanged:new nt,onChangedSerialized:e=>ae.onChanged.broadcast(e),openEditor:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_OpenEditor(),viewCategories:()=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewCategories()),viewProperty:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewProperty(lt(e))),getValueJson:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_GetValueJson(lt(e)),edit:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Edit(lt(e),t),reset:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Reset(lt(e)),saveModified:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_SaveModified(),registerExternal:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_RegisterExternal(lt(e)),ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",4:"Other",String:0,Integer:1,Decimal:2,Boolean:3,Other:4},ContainerType:{0:"Single",1:"Array",Single:0,Array:1}},ot={onPathChanged:new nt,onPathChangedSerialized:e=>ot.onPathChanged.broadcast(St(e)),onGroupsChanged:new nt,onGroupsChangedSerialized:e=>ot.onGroupsChanged.broadcast(St(e)),get getViewport(){return this.getViewportHandler},set getViewport(e){this.getViewportHandler=e,this.getViewportSerializedHandler=()=>lt(this.getViewportHandler())},get getViewportSerialized(){if(typeof this.getViewportHandler!="function")throw Error("Failed to invoke 'StoryGraph.getViewport' from C#. Make sure to assign function in JavaScript.");return this.getViewportSerializedHandler},viewGroup:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_ViewGroup(e)),createGroup:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_CreateGroup(e,t),renameGroup:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RenameGroup(e,t),removeGroup:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RemoveGroup(e),relocateNodes:async(e,t)=>await re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RelocateNodes(lt(e),t),positionNodes:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_PositionNodes(lt(e)),enterGroup:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_EnterGroup(e),enterNode:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_EnterNode(e),saveEdits:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_SaveEdits(),PortType:{0:"In",1:"Out",In:0,Out:1},NodeType:{0:"Script",1:"Portal",2:"EnterGroup",3:"ExitGroup",Script:0,Portal:1,EnterGroup:2,ExitGroup:3}},bt={onTabAdded:new nt,onTabAddedSerialized:(e,t)=>bt.onTabAdded.broadcast(St(e),t),onTabSelected:new nt,onTabSelectedSerialized:e=>bt.onTabSelected.broadcast(e),onTabRenamed:new nt,onTabRenamedSerialized:(e,t,n)=>bt.onTabRenamed.broadcast(e,t,n),onTabRemoved:new nt,onTabRemovedSerialized:e=>bt.onTabRemoved.broadcast(e),get getDefaultLayouts(){return this.getDefaultLayoutsHandler},set getDefaultLayouts(e){this.getDefaultLayoutsHandler=e,this.getDefaultLayoutsSerializedHandler=()=>lt(this.getDefaultLayoutsHandler())},get getDefaultLayoutsSerialized(){if(typeof this.getDefaultLayoutsHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultLayouts' from C#. Make sure to assign function in JavaScript.");return this.getDefaultLayoutsSerializedHandler},get getDefaultSetForTab(){return this.getDefaultSetForTabHandler},set getDefaultSetForTab(e){this.getDefaultSetForTabHandler=e,this.getDefaultSetForTabSerializedHandler=t=>this.getDefaultSetForTabHandler(t)},get getDefaultSetForTabSerialized(){if(typeof this.getDefaultSetForTabHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultSetForTab' from C#. Make sure to assign function in JavaScript.");return this.getDefaultSetForTabSerializedHandler},get getCurrentScheme(){return this.getCurrentSchemeHandler},set getCurrentScheme(e){this.getCurrentSchemeHandler=e,this.getCurrentSchemeSerializedHandler=()=>this.getCurrentSchemeHandler()},get getCurrentSchemeSerialized(){if(typeof this.getCurrentSchemeHandler!="function")throw Error("Failed to invoke 'Workspace.getCurrentScheme' from C#. Make sure to assign function in JavaScript.");return this.getCurrentSchemeSerializedHandler},onAvailableLayoutsChanged:new nt,onAvailableLayoutsChangedSerialized:e=>bt.onAvailableLayoutsChanged.broadcast(St(e)),onSelectedLayoutChanged:new nt,onSelectedLayoutChangedSerialized:e=>bt.onSelectedLayoutChanged.broadcast(e),onSchemeChanged:new nt,onSchemeChangedSerialized:e=>bt.onSchemeChanged.broadcast(e),onLayoutCleared:new nt,onLayoutClearedSerialized:()=>bt.onLayoutCleared.broadcast(),openTab:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_OpenTab(lt(e),lt(t)),editTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_EditTab(lt(e)),moveTab:(e,t,n)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_MoveTab(e,t,n),focusTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_FocusTab(e),closeTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_CloseTab(e),isTabOpen:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_IsTabOpen(e),getOpenTabs:()=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_GetOpenTabs()),saveCurrentLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_SaveCurrentLayout(e),applyLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_ApplyLayout(e),deleteLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_DeleteLayout(e),TabContext:{0:"User",1:"Project",User:0,Project:1}};var aN=Object.freeze({__proto__:null,AssetBrowser:ol,Bridging:iN,ControlPanel:Ve,Editor:xr,FileMounter:O7,FileSystem:sN,FileWatcher:A7,JSLogger:D7,LoginScreen:xs,Metadata:Ii,MetadataMerger:z7,Parsing:Vi,ProgressObserver:Sa,ScenarioEditor:Ue,SessionStorage:qf,Settings:ae,StoryGraph:ot,Workspace:bt});function lN(e){e.setModuleImports("Bootsharp",{...aN,disposeInstance:nN,disposeOnFinalize:M7})}var ui;(function(e){e[e.Standby=0]="Standby",e[e.Booting=1]="Booting",e[e.Booted=2]="Booted"})(ui||(ui={}));let aa=ui.Standby,_2;function cN(){return aa}async function uN(e){if(aa===ui.Booted)throw Error("Failed to boot .NET runtime: already booted.");if(aa===ui.Booting)throw Error("Failed to boot .NET runtime: already booting.");aa=ui.Booting,_2=await W3(e?.root);const t=e?.config??await R7(e?.resources??N7,e?.root),n=await e?.create?.(t)||await _2.dotnet.withConfig(t).create();return n.Module.runtimeKeepalivePush(),await e?.import?.(n)||lN(n),await e?.run?.(n)||await n.runMain(t.mainAssemblyName,[]),await e?.export?.(n)||await KI(n,t.mainAssemblyName),aa=ui.Booted,n}async function dN(e,t){if(aa!==ui.Booted)throw Error("Failed to exit .NET runtime: not booted.");_2.exit(e??0,t),aa=ui.Standby}var ka={boot:uN,exit:dN,getStatus:cN,BootStatus:ui,resources:N7,dotnet:{getMain:W3,getNative:L7,getRuntime:I7,buildConfig:R7}};const fN=!1,pN=!1;var P7=Object.freeze({__proto__:null,embedded:fN,mt:pN});const hN=!1,mN=!1;var gN=Object.freeze({__proto__:null,embedded:hN,mt:mN});const yN=!1,vN=!1;var bN=Object.freeze({__proto__:null,embedded:yN,mt:vN}),wN=Object.getOwnPropertyNames,xN=(e,t)=>function(){return t||(0,e[wN(e)[0]])((t={exports:{}}).exports,t),t.exports},_N=xN({"assets/default-metadata.json"(e,t){t.exports={actors:[],commands:[{id:"ParametrizeGeneric",alias:"<",localizable:!0,documentation:{examples:`; After printing following line waiting for input won't activate +function qI(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const YI="modulepreload",XI=function(e){return"/editor/"+e},ib={},f0=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");r=Promise.allSettled(n.map(l=>{if(l=XI(l),l in ib)return;ib[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":YI,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return r.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};async function V3(e){return e==null?await Promise.resolve().then(function(){return z7}):await f0(()=>import(`${e}/dotnet.js`),[])}async function k7(e){return e==null?await Promise.resolve().then(function(){return gN}):await f0(()=>import(`${e}/dotnet.native.js`),[])}async function L7(e){return e==null?await Promise.resolve().then(function(){return bN}):await f0(()=>import(`${e}/dotnet.runtime.js`),[])}var ZI={wasm:{name:"dotnet.native.wasm",content:void 0},assemblies:[{name:"aot-instances.wasm",content:void 0},{name:"Bootsharp.Common.wasm",content:void 0},{name:"Bootsharp.FileSystem.wasm",content:void 0},{name:"Bootsharp.Inject.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.Abstractions.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.wasm",content:void 0},{name:"Naninovel.Common.Bindings.wasm",content:void 0},{name:"Naninovel.Common.Modern.wasm",content:void 0},{name:"Naninovel.Common.wasm",content:void 0},{name:"Naninovel.Editor.wasm",content:void 0},{name:"Naninovel.Editor.WASM.wasm",content:void 0},{name:"System.Collections.Concurrent.wasm",content:void 0},{name:"System.Collections.wasm",content:void 0},{name:"System.ComponentModel.wasm",content:void 0},{name:"System.Linq.wasm",content:void 0},{name:"System.Memory.wasm",content:void 0},{name:"System.Net.Http.wasm",content:void 0},{name:"System.Net.WebSockets.Client.wasm",content:void 0},{name:"System.Net.WebSockets.wasm",content:void 0},{name:"System.Private.CoreLib.wasm",content:void 0},{name:"System.Private.Uri.wasm",content:void 0},{name:"System.Runtime.InteropServices.JavaScript.wasm",content:void 0},{name:"System.Text.Encodings.Web.wasm",content:void 0},{name:"System.Text.Json.wasm",content:void 0},{name:"System.Text.RegularExpressions.wasm",content:void 0}],entryAssemblyName:"Naninovel.Editor.WASM.dll"};const I7=ZI,ki=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]);function JI(e){if(typeof window=="object")return Uint8Array.from(window.atob(e),l=>l.charCodeAt(0));if(typeof Buffer=="function")return Buffer.from(e,"base64");const t=e.length,n=e[t-2]==="="?2:e[t-1]==="="?1:0,o=t-n&4294967292;let r,i=0,s=0;const a=[];for(;i>16&255,a[s++]=r>>8&255,a[s++]=r&255;return n===1&&(r=ki[e.charCodeAt(i)]<<10|ki[e.charCodeAt(i+1)]<<4|ki[e.charCodeAt(i+2)]>>2,a[s++]=r>>8&255,a[s++]=r&255),n===2&&(r=ki[e.charCodeAt(i)]<<2|ki[e.charCodeAt(i+1)]>>4,a[s++]=r&255),new Uint8Array(a)}async function N7(e,t){const n=t==null,o=n?await V3():void 0,r=n?await k7():void 0,i=n?await L7():void 0,s=!n&&(await Promise.resolve().then(function(){return z7})).mt;return{mainAssemblyName:e.entryAssemblyName,assets:[a({name:"dotnet.js"},"js-module-dotnet",o,!1),a({name:"dotnet.native.js"},"js-module-native",r,!1),a({name:"dotnet.runtime.js"},"js-module-runtime",i,!1),a({name:"dotnet.native.worker.js"},"js-module-threads",void 0,!0),a(e.wasm,"dotnetwasm",void 0,!1),...e.assemblies.map(l=>a(l,"assembly"))]};function a(l,c,d,f){const p=`${t}/${l.name}`;return{name:!s||l.content||c==="assembly"?l.name:p,resolvedUrl:l.content||!t?void 0:p,buffer:typeof l.content=="string"?JI(l.content):l.content,moduleExports:d,isOptional:f,behavior:c}}}let A1;async function KI(e,t){A1=(await e.getAssemblyExports(t)).Bootsharp?.Generated.Interop}let nt=class{handlers=new Map;warn;lastArgs;constructor(t){this.warn=t?.warn??console.warn}broadcast(...t){this.lastArgs=t;for(const n of this.handlers.values())n(...this.lastArgs)}subscribe(t){const n=this.getOrDefineId(t);return this.subscribeById(n,t),n}unsubscribe(t){if(t==null)return;const n=this.getOrDefineId(t);this.unsubscribeById(n)}subscribeById(t,n){this.handlers.has(t)?this.warn(`Failed to subscribe event handler with ID '${t}': handler is already subscribed.`):this.handlers.set(t,n)}unsubscribeById(t){this.handlers.has(t)?this.handlers.delete(t):this.warn(`Failed to unsubscribe event handler with ID '${t}': handler is not subscribed.`)}get last(){return this.lastArgs}getOrDefineId(t){const n="bootsharpEventHandlerId";if(t.hasOwnProperty(n))return t[n];const o=crypto.randomUUID();return Object.defineProperty(t,n,{value:o,enumerable:!1,writable:!1}),o}};const QI=new FinalizationRegistry(oN),W3=new Map,_2=new Array;let eN=-2147483648;function tN(e){const t=_2.length>0?_2.shift():eN++;return W3.set(t,e),t}function Li(e){return W3.get(e)}function nN(e){W3.delete(e),_2.push(e)}function R7(e,t){QI.register(e,t)}function oN(e){A1.DisposeExportedInstance(e)}function re(){if(A1==null)throw Error("Boot the runtime before invoking C# APIs.");return A1}function lt(e){return JSON.stringify(e)}function St(e){const t=JSON.parse(e);if(t!==null)return t}class rN{constructor(t){this._id=t,R7(this,t)}handleFileChanges(t){return O7.handleFileChanges(this._id,t)}}const rl={onChanged:new nt,onChangedSerialized:e=>rl.onChanged.broadcast(St(e)),openFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFolder(e),closeFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_CloseFolder(e),openFile:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFile(e)},iN={connectToServerInLoop:e=>re().Naninovel_Bindings_Bridging_ConnectToServerInLoop(e),breakConnectionLoop:()=>re().Naninovel_Bindings_Bridging_BreakConnectionLoop(),requestGoto:(e,t)=>re().Naninovel_Bindings_Bridging_RequestGoto(e,t),get onMetadataUpdated(){return this.onMetadataUpdatedHandler},set onMetadataUpdated(e){this.onMetadataUpdatedHandler=e,this.onMetadataUpdatedSerializedHandler=t=>this.onMetadataUpdatedHandler(St(t))},get onMetadataUpdatedSerialized(){if(typeof this.onMetadataUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onMetadataUpdated' from C#. Make sure to assign function in JavaScript.");return this.onMetadataUpdatedSerializedHandler},get onPlaybackStatusUpdated(){return this.onPlaybackStatusUpdatedHandler},set onPlaybackStatusUpdated(e){this.onPlaybackStatusUpdatedHandler=e,this.onPlaybackStatusUpdatedSerializedHandler=t=>this.onPlaybackStatusUpdatedHandler(St(t))},get onPlaybackStatusUpdatedSerialized(){if(typeof this.onPlaybackStatusUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onPlaybackStatusUpdated' from C#. Make sure to assign function in JavaScript.");return this.onPlaybackStatusUpdatedSerializedHandler}},Ve={onProjectTitleChanged:new nt,onProjectTitleChangedSerialized:e=>Ve.onProjectTitleChanged.broadcast(e),onRecentProjectsChanged:new nt,onRecentProjectsChangedSerialized:e=>Ve.onRecentProjectsChanged.broadcast(St(e)),onUserChanged:new nt,onUserChangedSerialized:e=>Ve.onUserChanged.broadcast(e),onUndoChanged:new nt,onUndoChangedSerialized:()=>Ve.onUndoChanged.broadcast(),onDirtyChanged:new nt,onDirtyChangedSerialized:e=>Ve.onDirtyChanged.broadcast(St(e)),onBridgingChanged:new nt,onBridgingChangedSerialized:e=>Ve.onBridgingChanged.broadcast(e),onMetadataChanged:new nt,onMetadataChangedSerialized:e=>Ve.onMetadataChanged.broadcast(e),openProject:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenProject(),openRecentProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenRecentProject(e),renameProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RenameProject(e),canUndo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanUndo(),canRedo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanRedo(),undo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Undo(),redo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Redo(),undoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_UndoAt(e),redoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RedoAt(e),getUndoLength:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_GetUndoLength(),viewUndo:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ViewUndo(e)),saveDirty:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveDirty(e),saveAllDirty:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveAllDirty(),findServers:async()=>St(await re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_FindServers()),connect:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Connect(e),disconnect:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Disconnect(),applyDefaultMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ApplyDefaultMetadata(),hasCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_HasCachedMetadata(),deleteCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_DeleteCachedMetadata()},xr={setDefaultMetadata:e=>re().Naninovel_Editor_WASM_Editor_SetDefaultMetadata(lt(e)),notifyWindowBlurred:()=>re().Naninovel_Editor_WASM_Editor_NotifyWindowBlurred(),hasUnsavedAssets:()=>re().Naninovel_Editor_WASM_Editor_HasUnsavedAssets(),UndoContext:{0:"Modify",1:"Add",2:"Delete",Modify:0,Add:1,Delete:2},ConfigurationScope:{0:"User",1:"Project",User:0,Project:1}},M7={get pickRoot(){return this.pickRootHandler},set pickRoot(e){this.pickRootHandler=e,this.pickRootSerializedHandler=async t=>await this.pickRootHandler(St(t))},get pickRootSerialized(){if(typeof this.pickRootHandler!="function")throw Error("Failed to invoke 'FileMounter.pickRoot' from C#. Make sure to assign function in JavaScript.");return this.pickRootSerializedHandler},get mount(){return this.mountHandler},set mount(e){this.mountHandler=e,this.mountSerializedHandler=async(t,n,o)=>tN(await this.mountHandler(t,new rN(n),St(o)))},get mountSerialized(){if(typeof this.mountHandler!="function")throw Error("Failed to invoke 'FileMounter.mount' from C#. Make sure to assign function in JavaScript.");return this.mountSerializedHandler},get unmount(){return this.unmountHandler},set unmount(e){this.unmountHandler=e,this.unmountSerializedHandler=t=>this.unmountHandler(t)},get unmountSerialized(){if(typeof this.unmountHandler!="function")throw Error("Failed to invoke 'FileMounter.unmount' from C#. Make sure to assign function in JavaScript.");return this.unmountSerializedHandler}},sN={createDirectorySerialized:(e,t)=>Li(e).createDirectory(t),removeDirectorySerialized:(e,t)=>Li(e).removeDirectory(t),moveDirectorySerialized:(e,t,n)=>Li(e).moveDirectory(t,n),writeFileSerialized:(e,t,n)=>Li(e).writeFile(t,n),deleteFileSerialized:(e,t)=>Li(e).deleteFile(t),moveFileSerialized:(e,t,n)=>Li(e).moveFile(t,n),openFileSerialized:(e,t)=>Li(e).openFile(t),getOpenFileContentSerialized:(e,t)=>Li(e).getOpenFileContent(t),getFileInfoSerialized:async(e,t)=>lt(await Li(e).getFileInfo(t)),PermissionMode:{0:"Read",1:"ReadWrite",Read:0,ReadWrite:1},ChangeType:{0:"Added",1:"Removed",2:"Moved",3:"Modified",Added:0,Removed:1,Moved:2,Modified:3},EntryType:{0:"File",1:"Directory",File:0,Directory:1}},O7={handleFileChanges:async(e,t)=>await re().Bootsharp_Generated_Exports_Bootsharp_FileSystem_JSFileWatcher_HandleFileChanges(e,lt(t))},A7={get logInfo(){return this.logInfoHandler},set logInfo(e){this.logInfoHandler=e,this.logInfoSerializedHandler=t=>this.logInfoHandler(t)},get logInfoSerialized(){if(typeof this.logInfoHandler!="function")throw Error("Failed to invoke 'JSLogger.logInfo' from C#. Make sure to assign function in JavaScript.");return this.logInfoSerializedHandler},get logWarning(){return this.logWarningHandler},set logWarning(e){this.logWarningHandler=e,this.logWarningSerializedHandler=t=>this.logWarningHandler(t)},get logWarningSerialized(){if(typeof this.logWarningHandler!="function")throw Error("Failed to invoke 'JSLogger.logWarning' from C#. Make sure to assign function in JavaScript.");return this.logWarningSerializedHandler},get logError(){return this.logErrorHandler},set logError(e){this.logErrorHandler=e,this.logErrorSerializedHandler=t=>this.logErrorHandler(t)},get logErrorSerialized(){if(typeof this.logErrorHandler!="function")throw Error("Failed to invoke 'JSLogger.logError' from C#. Make sure to assign function in JavaScript.");return this.logErrorSerializedHandler}},_s={onUserAuthorized:new nt,onUserAuthorizedSerialized:e=>_s.onUserAuthorized.broadcast(e),getLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_GetLastUser(),authorizeUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeUser(),authorizeLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeLastUser(),logout:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_Logout()},Ri={BranchTraits:{1:"Endpoint",2:"Nest",4:"Interactive",8:"Return",16:"Switch",Endpoint:1,Nest:2,Interactive:4,Return:8,Switch:16},ValueContainerType:{0:"Single",1:"List",2:"Named",3:"NamedList",Single:0,List:1,Named:2,NamedList:3},ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",String:0,Integer:1,Decimal:2,Boolean:3},ValueContextType:{0:"Expression",1:"Constant",2:"Resource",3:"Endpoint",4:"Actor",5:"Appearance",6:"Color",7:"Vector",Expression:0,Constant:1,Resource:2,Endpoint:3,Actor:4,Appearance:5,Color:6,Vector:7}},D7={get mergeMetadata(){return this.mergeMetadataHandler},set mergeMetadata(e){this.mergeMetadataHandler=e,this.mergeMetadataSerializedHandler=t=>lt(this.mergeMetadataHandler(St(t)))},get mergeMetadataSerialized(){if(typeof this.mergeMetadataHandler!="function")throw Error("Failed to invoke 'MetadataMerger.mergeMetadata' from C#. Make sure to assign function in JavaScript.");return this.mergeMetadataSerializedHandler}},ji={LineType:{0:"Comment",1:"Label",2:"Command",3:"Generic",Comment:0,Label:1,Command:2,Generic:3}},ka={onProgressChanged:new nt,onProgressChangedSerialized:e=>ka.onProgressChanged.broadcast(St(e)),onProgressCleared:new nt,onProgressClearedSerialized:e=>ka.onProgressCleared.broadcast(e)},Ue={onScriptChanged:new nt,onScriptChangedSerialized:e=>Ue.onScriptChanged.broadcast(e),onLineFocused:new nt,onLineFocusedSerialized:(e,t)=>Ue.onLineFocused.broadcast(e,t),onCommandOptionsChanged:new nt,onCommandOptionsChangedSerialized:e=>Ue.onCommandOptionsChanged.broadcast(St(e)),isScriptTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptTab(e),getScriptIdFromTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetScriptIdFromTab(e),buildTabIdFromScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_BuildTabIdFromScript(e),goto:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_Goto(e,t),viewScript:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewScript(e)),getLineType:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetLineType(e,t)),previewLine:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_PreviewLine(e,t)),viewComment:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewComment(e,t)),viewLabel:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewLabel(e,t)),viewCommand:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewCommand(e,t)),viewGeneric:(e,t)=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewGeneric(e,t)),insertLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InsertLine(e,lt(t)),duplicateLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_DuplicateLine(e,lt(t)),removeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveLine(e,lt(t)),moveLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveLine(e,lt(t)),indentLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IndentLine(e,lt(t)),unIndentLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_UnIndentLine(e,lt(t)),moveContent:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveContent(e,lt(t)),changeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ChangeLine(e,lt(t)),editComment:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditComment(e,lt(t)),editLabel:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditLabel(e,lt(t)),editParameter:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditParameter(e,lt(t)),inlineCommand:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InlineCommand(e,lt(t)),removeInlined:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveInlined(e,lt(t)),editText:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditText(e,lt(t)),editAuthor:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAuthor(e,lt(t)),editAppearance:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAppearance(e,lt(t)),saveEdits:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_SaveEdits(e)},qf={get read(){return this.readHandler},set read(e){this.readHandler=e,this.readSerializedHandler=t=>this.readHandler(t)},get readSerialized(){if(typeof this.readHandler!="function")throw Error("Failed to invoke 'SessionStorage.read' from C#. Make sure to assign function in JavaScript.");return this.readSerializedHandler},get write(){return this.writeHandler},set write(e){this.writeHandler=e,this.writeSerializedHandler=(t,n)=>this.writeHandler(t,n)},get writeSerialized(){if(typeof this.writeHandler!="function")throw Error("Failed to invoke 'SessionStorage.write' from C#. Make sure to assign function in JavaScript.");return this.writeSerializedHandler},get remove(){return this.removeHandler},set remove(e){this.removeHandler=e,this.removeSerializedHandler=t=>this.removeHandler(t)},get removeSerialized(){if(typeof this.removeHandler!="function")throw Error("Failed to invoke 'SessionStorage.remove' from C#. Make sure to assign function in JavaScript.");return this.removeSerializedHandler}},le={onChanged:new nt,onChangedSerialized:e=>le.onChanged.broadcast(e),openEditor:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_OpenEditor(),viewCategories:()=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewCategories()),viewProperty:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewProperty(lt(e))),getValueJson:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_GetValueJson(lt(e)),edit:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Edit(lt(e),t),reset:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Reset(lt(e)),saveModified:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_SaveModified(),registerExternal:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_RegisterExternal(lt(e)),ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",4:"Other",String:0,Integer:1,Decimal:2,Boolean:3,Other:4},ContainerType:{0:"Single",1:"Array",Single:0,Array:1}},ot={onPathChanged:new nt,onPathChangedSerialized:e=>ot.onPathChanged.broadcast(St(e)),onGroupsChanged:new nt,onGroupsChangedSerialized:e=>ot.onGroupsChanged.broadcast(St(e)),get getViewport(){return this.getViewportHandler},set getViewport(e){this.getViewportHandler=e,this.getViewportSerializedHandler=()=>lt(this.getViewportHandler())},get getViewportSerialized(){if(typeof this.getViewportHandler!="function")throw Error("Failed to invoke 'StoryGraph.getViewport' from C#. Make sure to assign function in JavaScript.");return this.getViewportSerializedHandler},viewGroup:e=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_ViewGroup(e)),createGroup:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_CreateGroup(e,t),renameGroup:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RenameGroup(e,t),removeGroup:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RemoveGroup(e),relocateNodes:async(e,t)=>await re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_RelocateNodes(lt(e),t),positionNodes:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_PositionNodes(lt(e)),enterGroup:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_EnterGroup(e),enterNode:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_EnterNode(e),saveEdits:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_StoryGraph_JSStoryGraph_SaveEdits(),PortType:{0:"In",1:"Out",In:0,Out:1},NodeType:{0:"Script",1:"Portal",2:"EnterGroup",3:"ExitGroup",Script:0,Portal:1,EnterGroup:2,ExitGroup:3}},bt={onTabAdded:new nt,onTabAddedSerialized:(e,t)=>bt.onTabAdded.broadcast(St(e),t),onTabSelected:new nt,onTabSelectedSerialized:e=>bt.onTabSelected.broadcast(e),onTabRenamed:new nt,onTabRenamedSerialized:(e,t,n)=>bt.onTabRenamed.broadcast(e,t,n),onTabRemoved:new nt,onTabRemovedSerialized:e=>bt.onTabRemoved.broadcast(e),get getDefaultLayouts(){return this.getDefaultLayoutsHandler},set getDefaultLayouts(e){this.getDefaultLayoutsHandler=e,this.getDefaultLayoutsSerializedHandler=()=>lt(this.getDefaultLayoutsHandler())},get getDefaultLayoutsSerialized(){if(typeof this.getDefaultLayoutsHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultLayouts' from C#. Make sure to assign function in JavaScript.");return this.getDefaultLayoutsSerializedHandler},get getDefaultSetForTab(){return this.getDefaultSetForTabHandler},set getDefaultSetForTab(e){this.getDefaultSetForTabHandler=e,this.getDefaultSetForTabSerializedHandler=t=>this.getDefaultSetForTabHandler(t)},get getDefaultSetForTabSerialized(){if(typeof this.getDefaultSetForTabHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultSetForTab' from C#. Make sure to assign function in JavaScript.");return this.getDefaultSetForTabSerializedHandler},get getCurrentScheme(){return this.getCurrentSchemeHandler},set getCurrentScheme(e){this.getCurrentSchemeHandler=e,this.getCurrentSchemeSerializedHandler=()=>this.getCurrentSchemeHandler()},get getCurrentSchemeSerialized(){if(typeof this.getCurrentSchemeHandler!="function")throw Error("Failed to invoke 'Workspace.getCurrentScheme' from C#. Make sure to assign function in JavaScript.");return this.getCurrentSchemeSerializedHandler},onAvailableLayoutsChanged:new nt,onAvailableLayoutsChangedSerialized:e=>bt.onAvailableLayoutsChanged.broadcast(St(e)),onSelectedLayoutChanged:new nt,onSelectedLayoutChangedSerialized:e=>bt.onSelectedLayoutChanged.broadcast(e),onSchemeChanged:new nt,onSchemeChangedSerialized:e=>bt.onSchemeChanged.broadcast(e),onLayoutCleared:new nt,onLayoutClearedSerialized:()=>bt.onLayoutCleared.broadcast(),openTab:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_OpenTab(lt(e),lt(t)),editTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_EditTab(lt(e)),moveTab:(e,t,n)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_MoveTab(e,t,n),focusTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_FocusTab(e),closeTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_CloseTab(e),isTabOpen:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_IsTabOpen(e),getOpenTabs:()=>St(re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_GetOpenTabs()),saveCurrentLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_SaveCurrentLayout(e),applyLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_ApplyLayout(e),deleteLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_DeleteLayout(e),TabContext:{0:"User",1:"Project",User:0,Project:1}};var aN=Object.freeze({__proto__:null,AssetBrowser:rl,Bridging:iN,ControlPanel:Ve,Editor:xr,FileMounter:M7,FileSystem:sN,FileWatcher:O7,JSLogger:A7,LoginScreen:_s,Metadata:Ri,MetadataMerger:D7,Parsing:ji,ProgressObserver:ka,ScenarioEditor:Ue,SessionStorage:qf,Settings:le,StoryGraph:ot,Workspace:bt});function lN(e){e.setModuleImports("Bootsharp",{...aN,disposeInstance:nN,disposeOnFinalize:R7})}var di;(function(e){e[e.Standby=0]="Standby",e[e.Booting=1]="Booting",e[e.Booted=2]="Booted"})(di||(di={}));let la=di.Standby,E2;function cN(){return la}async function uN(e){if(la===di.Booted)throw Error("Failed to boot .NET runtime: already booted.");if(la===di.Booting)throw Error("Failed to boot .NET runtime: already booting.");la=di.Booting,E2=await V3(e?.root);const t=e?.config??await N7(e?.resources??I7,e?.root),n=await e?.create?.(t)||await E2.dotnet.withConfig(t).create();return n.Module.runtimeKeepalivePush(),await e?.import?.(n)||lN(n),await e?.run?.(n)||await n.runMain(t.mainAssemblyName,[]),await e?.export?.(n)||await KI(n,t.mainAssemblyName),la=di.Booted,n}async function dN(e,t){if(la!==di.Booted)throw Error("Failed to exit .NET runtime: not booted.");E2.exit(e??0,t),la=di.Standby}var La={boot:uN,exit:dN,getStatus:cN,BootStatus:di,resources:I7,dotnet:{getMain:V3,getNative:k7,getRuntime:L7,buildConfig:N7}};const fN=!1,pN=!1;var z7=Object.freeze({__proto__:null,embedded:fN,mt:pN});const hN=!1,mN=!1;var gN=Object.freeze({__proto__:null,embedded:hN,mt:mN});const yN=!1,vN=!1;var bN=Object.freeze({__proto__:null,embedded:yN,mt:vN}),wN=Object.getOwnPropertyNames,xN=(e,t)=>function(){return t||(0,e[wN(e)[0]])((t={exports:{}}).exports,t),t.exports},_N=xN({"assets/default-metadata.json"(e,t){t.exports={actors:[],commands:[{id:"ParametrizeGeneric",alias:"<",localizable:!0,documentation:{examples:`; After printing following line waiting for input won't activate ; (player won't have to confirm prompt to continue reading). Lorem ipsum dolor sit amet.[< skip!] @@ -572,21 +572,21 @@ Jeez, what a disgusting Noise. Shut it down![wait i5][< skip!] @else if:answer>number Wrong, too high. @else - Correct!`},parameters:[{id:"Expression",alias:"",nameless:!0,required:!0,localizable:!1,valueContainerType:0,valueType:0,valueContext:[{type:0,subType:"Condition"},{type:0,subType:"Condition"}],documentation:{summary:"A [script expression](https://naninovel.com/guide/script-expressions), which should return a boolean value determining whether the associated nested block should continue executing in loop."},label:"expression",typeLabel:"string"}],label:"while"}],resources:[],constants:[{name:"CustomVariableValueType",values:["String","Numeric","Boolean"]},{name:"TransitionType",values:["Crossfade","BandedSwirl","Blinds","CircleReveal","CircleStretch","CloudReveal","Crumble","Dissolve","DropFade","LineReveal","Pixelate","RadialBlur","RadialWiggle","RandomCircleReveal","Ripple","RotateCrumble","Saturate","Shrink","SlideIn","SwirlGrid","Swirl","Water","Waterfall","Wave","Custom"]},{name:"EasingType",values:["Linear","SmoothStep","Spring","EaseInQuad","EaseOutQuad","EaseInOutQuad","EaseInCubic","EaseOutCubic","EaseInOutCubic","EaseInQuart","EaseOutQuart","EaseInOutQuart","EaseInQuint","EaseOutQuint","EaseInOutQuint","EaseInSine","EaseOutSine","EaseInOutSine","EaseInExpo","EaseOutExpo","EaseInOutExpo","EaseInCirc","EaseOutCirc","EaseInOutCirc","EaseInBounce","EaseOutBounce","EaseInOutBounce","EaseInBack","EaseOutBack","EaseInOutBack","EaseInElastic","EaseOutElastic","EaseInOutElastic"]},{name:"CharacterLookDirection",values:["Center","Left","Right"]}],variables:[],functions:[{name:"random",documentation:{summary:"Return a random integer number between min [inclusive] and max [inclusive].",examples:"random(0, 100)"},parameters:[{name:"min",type:1,variadic:!1},{name:"max",type:1,variadic:!1}]},{name:"random",documentation:{summary:"Return a random double number between min [inclusive] and max [inclusive].",examples:"random(0.5, 1.5)"},parameters:[{name:"min",type:2,variadic:!1},{name:"max",type:2,variadic:!1}]},{name:"random",documentation:{summary:"Return a string chosen from one of the specified strings.",examples:'random("foo", "bar", "baz")'},parameters:[{name:"args",type:0,variadic:!0}]},{name:"calculateProgress",documentation:{summary:"Returns scenario completion ratio, in 0.0 to 1.0 range, where 1.0 means all the script lines were executed at least once.",examples:"calculateProgress()"},parameters:[]},{name:"isUnlocked",documentation:{summary:"Checks whether an unlockable item with the specified ID is currently unlocked.",examples:'isUnlocked("Tips/MyTip")'},parameters:[{name:"id",type:0,context:{type:2,subType:"Unlockables"},variadic:!1}]},{name:"hasPlayed",documentation:{summary:"Checks whether currently played command has ever been played before.",examples:"hasPlayed()"},parameters:[]},{name:"hasPlayed",documentation:{summary:"Checks whether script with the specified path has ever been played before.",examples:'hasPlayed("MyScript")'},parameters:[{name:"scriptPath",type:0,context:{type:2,subType:"Scripts"},variadic:!1}]},{name:"getName",documentation:{summary:"Returns author name of a character actor with the specified ID.",examples:'getName("Kohaku")'},parameters:[{name:"characterId",type:0,context:{type:4,subType:"Characters"},variadic:!1}]},{name:"pow",documentation:{summary:"Returns num raised to power.",examples:"pow(2, 3)"},parameters:[{name:"num",type:2,variadic:!1},{name:"pow",type:2,variadic:!1}]},{name:"sqrt",documentation:{summary:"Returns square root of num.",examples:"sqrt(2)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"cos",documentation:{summary:"Returns the cosine of angle.",examples:"cos(180)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"sin",documentation:{summary:"Returns the sine of angle.",examples:"sin(90)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"log",documentation:{summary:"Returns the natural (base e) logarithm of a specified number.",examples:"log(0.5)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"abs",documentation:{summary:"Returns the absolute value of f.",examples:"abs(0.5)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"max",documentation:{summary:"Returns largest of two or more values.",examples:"max(1, 10, -9)"},parameters:[{name:"nums",type:2,variadic:!0}]},{name:"min",documentation:{summary:"Returns the smallest of two or more values.",examples:"min(1, 10, -9)"},parameters:[{name:"nums",type:2,variadic:!0}]},{name:"round",documentation:{summary:"Returns num rounded to the nearest integer.",examples:"round(0.9)"},parameters:[{name:"num",type:2,variadic:!1}]},{name:"approx",documentation:{summary:"Compares two floating point values and returns true if they are similar.",examples:"approx(0.15, 0.15)"},parameters:[{name:"a",type:2,variadic:!1},{name:"b",type:2,variadic:!1}]}],syntax:{commentLine:";",labelLine:"#",commandLine:"@",authorAssign:": ",authorAppearance:".",parametrizeGeneric:"<",expressionOpen:"{",expressionClose:"}",inlinedOpen:"[",inlinedClose:"]",parameterAssign:":",listDelimiter:",",namedDelimiter:".",textIdOpen:"|#",textIdClose:"|",booleanFlag:"!",true:"true",false:"false"}}}});function EN(e,t,n,o){e.logInfo=t,e.logWarning=n??t,e.logError=o??t}function CN(){const e=_N();return typeof e=="string"?JSON.parse(e):e}function TN(...e){const t={};for(const n of e)B7(SN(n),t);return t}function SN(e){return JSON.parse(JSON.stringify(e))}function B7(e,t){for(const n in e)e.hasOwnProperty(n)&&kN(n,e[n],t)}function kN(e,t,n){n.hasOwnProperty(e)?Array.isArray(t)?e==="commands"?n[e]=LN(t,n[e]):e==="constants"?n[e]=IN(t,n[e]):n[e]=n[e].concat(t):typeof t=="object"?B7(t,n[e]):n[e]=t:n[e]=t}function LN(e,t){const n=[];for(const o of t){const r=e.find(i=>i.id===o.id||i.alias!=null&&i.alias===o.alias);r==null?n.push(o):n.push(NN(r,o))}return n.concat(e.filter(o=>!n.includes(o)))}function IN(e,t){const n=[];for(const o of t){const r=e.find(i=>i.name===o.name);r==null?n.push(o):n.push(r)}return n.concat(e.filter(o=>!n.includes(o)))}function NN(e,t){return e.documentation??={},(e.documentation.summary==null||e.documentation.summary.length===0)&&(e.documentation.summary=t.documentation?.summary),(e.documentation.remarks==null||e.documentation.remarks.length===0)&&(e.documentation.remarks=t.documentation?.remarks),(e.documentation.examples==null||e.documentation.examples.length===0)&&(e.documentation.examples=t.documentation?.examples),e.parameters=RN(e.parameters,t.parameters),e}function RN(e,t){const n=e.length-t.length;for(let o=n;o{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function qN(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const o=U3(n);return(r,i)=>o.then(s=>i(s.transaction(t,r).objectStore(t)))}let Uh;function W7(){return Uh||(Uh=qN("keyval-store","keyval")),Uh}function YN(e,t=W7()){return t("readonly",n=>U3(n.get(e)))}function XN(e,t,n=W7()){return n("readwrite",o=>(o.put(t,e),U3(o.transaction)))}const sb="file-system",j7="naninovel-file-system-roots",D1=new Map;async function ZN(){GN(O7),jh.onSetHandle(tR),jh.onGetHandle(e=>Promise.resolve(eR(e))),jh.onMountProgress(JN),await QN()}function JN(e,t){if(e===0)return Sa.onProgressCleared.broadcast(sb);const n="Opening Project",o=KN(t);return Sa.onProgressChanged.broadcast({id:sb,title:n,info:o,progress:e})}function KN(e){return e.length-40<=0?e:"…"+e.slice(e.length-40,e.length)}async function QN(){const e=await YN(j7);if(e!=null)for(const[t,n]of e)D1.set(t,n)}function eR(e){return D1.get(e)}async function tR(e,t){D1.set(e,t),await XN(j7,D1)}async function nR(){qf.read=e=>localStorage.getItem(e)??null,qf.write=(e,t)=>localStorage.setItem(e,t),qf.remove=e=>localStorage.removeItem(e)}const Cd=new nt;async function oR(){EN(D7,console.log,console.warn,console.error),await ZN(),await nR(),await ka.boot({root:"/editor/bin"}),z7.mergeMetadata=e=>TN(...e),xr.setDefaultMetadata(CN()),document.onvisibilitychange=()=>{document.visibilityState==="hidden"&&xr.notifyWindowBlurred()},addEventListener("beforeunload",e=>{xr.hasUnsavedAssets()&&e.preventDefault()}),Cd.broadcast(!0)}function p0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U7={exports:{}},Qe={};var Td=Symbol.for("react.element"),rR=Symbol.for("react.portal"),iR=Symbol.for("react.fragment"),sR=Symbol.for("react.strict_mode"),aR=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),cR=Symbol.for("react.context"),uR=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.memo"),pR=Symbol.for("react.lazy"),ab=Symbol.iterator;function hR(e){return e===null||typeof e!="object"?null:(e=ab&&e[ab]||e["@@iterator"],typeof e=="function"?e:null)}var G7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q7=Object.assign,Y7={};function rc(e,t,n){this.props=e,this.context=t,this.refs=Y7,this.updater=n||G7}rc.prototype.isReactComponent={};rc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function X7(){}X7.prototype=rc.prototype;function G3(e,t,n){this.props=e,this.context=t,this.refs=Y7,this.updater=n||G7}var q3=G3.prototype=new X7;q3.constructor=G3;q7(q3,rc.prototype);q3.isPureReactComponent=!0;var lb=Array.isArray,Z7=Object.prototype.hasOwnProperty,Y3={current:null},J7={key:!0,ref:!0,__self:!0,__source:!0};function K7(e,t,n){var o,r={},i=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Z7.call(t,o)&&!J7.hasOwnProperty(o)&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,H=D[P];if(0>>1;Pr(j,F))Gr(Y,j)?(D[P]=Y,D[G]=F,P=G):(D[P]=j,D[U]=F,P=U);else if(Gr(Y,F))D[P]=Y,D[G]=F,P=G;else break e}}return I}function r(D,I){var F=D.sortIndex-I.sortIndex;return F!==0?F:D.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(D){for(var I=n(c);I!==null;){if(I.callback===null)o(c);else if(I.startTime<=D)o(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function w(D){if(g=!1,x(D),!m)if(n(l)!==null)m=!0,R(_);else{var I=n(c);I!==null&&$(w,I.startTime-D)}}function _(D,I){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var F=p;try{for(x(I),f=n(l);f!==null&&(!(f.expirationTime>I)||D&&!A());){var P=f.callback;if(typeof P=="function"){f.callback=null,p=f.priorityLevel;var H=P(f.expirationTime<=I);I=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&o(l),x(I)}else o(l);f=n(l)}if(f!==null)var W=!0;else{var U=n(c);U!==null&&$(w,U.startTime-I),W=!1}return W}finally{f=null,p=F,h=!1}}var E=!1,C=null,k=-1,L=5,N=-1;function A(){return!(e.unstable_now()-ND||125P?(D.sortIndex=F,t(c,D),n(l)===null&&D===n(c)&&(g?(y(k),k=-1):g=!0,$(w,F-P))):(D.sortIndex=H,t(l,D),m||h||(m=!0,R(_))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var I=p;return function(){var F=p;p=I;try{return D.apply(this,arguments)}finally{p=F}}}})(n9);t9.exports=n9;var bR=t9.exports;var wR=u,or=bR;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T2=Object.prototype.hasOwnProperty,xR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,db={},fb={};function _R(e){return T2.call(fb,e)?!0:T2.call(db,e)?!1:xR.test(e)?fb[e]=!0:(db[e]=!0,!1)}function ER(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function CR(e,t,n,o){if(t===null||typeof t>"u"||ER(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ho(e,t,n,o,r,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pn[e]=new ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pn[t]=new ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pn[e]=new ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pn[e]=new ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pn[e]=new ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pn[e]=new ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pn[e]=new ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pn[e]=new ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pn[e]=new ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var Z3=/[\-:]([a-z])/g;function J3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pn[e]=new ho(e,1,!1,e.toLowerCase(),null,!1,!1)});Pn.xlinkHref=new ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pn[e]=new ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function K3(e,t,n,o){var r=Pn.hasOwnProperty(t)?Pn[t]:null;(r!==null?r.type!==0:o||!(2i.id===o.id||i.alias!=null&&i.alias===o.alias);r==null?n.push(o):n.push(NN(r,o))}return n.concat(e.filter(o=>!n.includes(o)))}function IN(e,t){const n=[];for(const o of t){const r=e.find(i=>i.name===o.name);r==null?n.push(o):n.push(r)}return n.concat(e.filter(o=>!n.includes(o)))}function NN(e,t){return e.documentation??={},(e.documentation.summary==null||e.documentation.summary.length===0)&&(e.documentation.summary=t.documentation?.summary),(e.documentation.remarks==null||e.documentation.remarks.length===0)&&(e.documentation.remarks=t.documentation?.remarks),(e.documentation.examples==null||e.documentation.examples.length===0)&&(e.documentation.examples=t.documentation?.examples),e.parameters=RN(e.parameters,t.parameters),e}function RN(e,t){const n=e.length-t.length;for(let o=n;o=0;i--){const s=n[i].split("/").pop();r=await r.getDirectoryHandle(s,{create:!0}),i===n.length-1&&(o={uri:n[i],dir:r})}return{created:o,parent:r}}},VN=class{fileByUri=new Map;dirByUri=new Map;descendantsByUri=new Map;hasFile(e){return this.fileByUri.has(e)}hasDirectory(e){return this.dirByUri.has(e)}getFile(e){if(!this.hasFile(e))throw Error(`File '${e}' is not registered.`);return this.fileByUri.get(e)}getDirectory(e){if(!this.hasDirectory(e))throw Error(`Directory '${e}' is not registered.`);return this.dirByUri.get(e)}getDescendants(e){if(!this.descendantsByUri.has(e))throw Error(`Directory '${e}' is not registered.`);return this.descendantsByUri.get(e)}registerFile(e,t){if(this.hasFile(e))throw Error(`File '${e}' is already registered.`);this.fileByUri.set(e,t),this.getDescendants(Es(e)).add(e)}unregisterFile(e){if(!this.hasFile(e))throw Error(`File '${e}' is not registered.`);this.fileByUri.delete(e),this.getDescendants(Es(e)).delete(e)}registerDirectory(e,t){if(this.hasDirectory(e))throw Error(`Directory '${e}' is already registered.`);this.dirByUri.set(e,t),this.descendantsByUri.set(e,new Set),this.getDescendants(Es(e)).add(e)}unregisterDirectory(e){if(!this.hasDirectory(e))throw Error(`Directory '${e}' is not registered.`);this.dirByUri.delete(e),this.descendantsByUri.delete(e),this.getDescendants(Es(e)).delete(e)}},WN=class{queue=new Array;enqueueFileAdded(e){this.queue.push({type:0,entry:{uri:e,type:0}})}enqueueFileRemoved(e){this.queue.push({type:1,entry:{uri:e,type:0}})}enqueueFileMoved(e,t){this.queue.push({type:2,entry:{uri:t,type:0},fromUri:e})}enqueueFileModified(e){this.queue.push({type:3,entry:{uri:e,type:0}})}enqueueDirectoryAdded(e){this.queue.push({type:0,entry:{uri:e,type:1}})}enqueueDirectoryRemoved(e){this.queue.push({type:1,entry:{uri:e,type:1}})}enqueueDirectoryMoved(e,t){this.queue.push({type:2,entry:{uri:t,type:1},fromUri:e})}enqueueDirectoryModified(e){this.queue.push({type:3,entry:{uri:e,type:1}})}getQueued(){return this.queue}},H7=100;function jN(e){H7=e}var UN=class{constructor(e,t,n,o){this.watcher=e,this.registry=t,this.root=n,this.ignore=o,this.observer=new FileSystemObserver(this.enqueue.bind(this))}observer;timeByModifiedUri=new Map;queue=Promise.resolve();async observe(){await this.handleEvents([ti("/","appeared",this.root)]),await this.observer.observe(this.root,{recursive:!0})}enqueue(e){return this.queue=this.queue.then(async()=>this.handleEvents(e))}[Symbol.dispose](){this.observer.disconnect()}async handleEvents(e){if(this.filterEvents(e))return;const t=new WN;for(const n of e)await this.handleEvent(n,t);await this.watcher.handleFileChanges(t.getQueued())}async handleEvent(e,t){const n=jh(e.relativePathComponents);if(this.ignore.has(n))return;const o=e.changedHandle,r=this.isFile(n,o);if(e.type==="appeared")r?this.handleFileAppeared(n,o,t):await this.handleDirectoryAppeared(n,o,t);else if(e.type==="disappeared")r?this.handleFileDisappeared(n,t):this.handleDirectoryDisappeared(n,t);else if(e.type==="modified")r?this.handleFileModified(n,t):this.handleDirectoryModified(n,t);else if(e.type==="moved"){const i=jh(e.relativePathMovedFrom);r?this.handleFileMoved(i,n,o,t):this.handleDirectoryMoved(i,n,o,t)}else console.warn(`Unhandled file change of type '${e.type}' for '${n}'.`)}filterEvents(e){const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n].type==="modified";if(!o&&e[n].type!=="appeared")continue;const r=jh(e[n].relativePathComponents);o&&t-this.timeByModifiedUri.get(r){e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function QN(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const o=U3(n);return(r,i)=>o.then(s=>i(s.transaction(t,r).objectStore(t)))}let Gh;function W7(){return Gh||(Gh=QN("keyval-store","keyval")),Gh}function eR(e,t=W7()){return t("readonly",n=>U3(n.get(e)))}function tR(e,t,n=W7()){return n("readwrite",o=>(o.put(t,e),U3(o.transaction)))}const sb="file-system",j7="naninovel-file-system-roots",D1=new Map;async function nR(){KN(M7,500),Uh.onSetHandle(aR),Uh.onGetHandle(e=>Promise.resolve(sR(e))),Uh.onMountProgress(oR),await iR()}function oR(e,t){if(e===0)return ka.onProgressCleared.broadcast(sb);const n="Opening Project",o=rR(t);return ka.onProgressChanged.broadcast({id:sb,title:n,info:o,progress:e})}function rR(e){return e.length-40<=0?e:"…"+e.slice(e.length-40,e.length)}async function iR(){const e=await eR(j7);if(e!=null)for(const[t,n]of e)D1.set(t,n)}function sR(e){return D1.get(e)}async function aR(e,t){D1.set(e,t),await tR(j7,D1)}async function lR(){qf.read=e=>localStorage.getItem(e)??null,qf.write=(e,t)=>localStorage.setItem(e,t),qf.remove=e=>localStorage.removeItem(e)}const Cd=new nt;async function cR(){EN(A7,console.log,console.warn,console.error),await nR(),await lR(),await La.boot({root:"/editor/bin"}),D7.mergeMetadata=e=>TN(...e),xr.setDefaultMetadata(CN()),document.onvisibilitychange=()=>{document.visibilityState==="hidden"&&xr.notifyWindowBlurred()},addEventListener("beforeunload",e=>{xr.hasUnsavedAssets()&&e.preventDefault()}),Cd.broadcast(!0)}function p0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U7={exports:{}},Qe={};var Td=Symbol.for("react.element"),uR=Symbol.for("react.portal"),dR=Symbol.for("react.fragment"),fR=Symbol.for("react.strict_mode"),pR=Symbol.for("react.profiler"),hR=Symbol.for("react.provider"),mR=Symbol.for("react.context"),gR=Symbol.for("react.forward_ref"),yR=Symbol.for("react.suspense"),vR=Symbol.for("react.memo"),bR=Symbol.for("react.lazy"),ab=Symbol.iterator;function wR(e){return e===null||typeof e!="object"?null:(e=ab&&e[ab]||e["@@iterator"],typeof e=="function"?e:null)}var G7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q7=Object.assign,Y7={};function ic(e,t,n){this.props=e,this.context=t,this.refs=Y7,this.updater=n||G7}ic.prototype.isReactComponent={};ic.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function X7(){}X7.prototype=ic.prototype;function G3(e,t,n){this.props=e,this.context=t,this.refs=Y7,this.updater=n||G7}var q3=G3.prototype=new X7;q3.constructor=G3;q7(q3,ic.prototype);q3.isPureReactComponent=!0;var lb=Array.isArray,Z7=Object.prototype.hasOwnProperty,Y3={current:null},J7={key:!0,ref:!0,__self:!0,__source:!0};function K7(e,t,n){var o,r={},i=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Z7.call(t,o)&&!J7.hasOwnProperty(o)&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,H=D[P];if(0>>1;Pr(j,F))Gr(Y,j)?(D[P]=Y,D[G]=F,P=G):(D[P]=j,D[U]=F,P=U);else if(Gr(Y,F))D[P]=Y,D[G]=F,P=G;else break e}}return I}function r(D,I){var F=D.sortIndex-I.sortIndex;return F!==0?F:D.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(D){for(var I=n(c);I!==null;){if(I.callback===null)o(c);else if(I.startTime<=D)o(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function w(D){if(g=!1,x(D),!m)if(n(l)!==null)m=!0,R(_);else{var I=n(c);I!==null&&$(w,I.startTime-D)}}function _(D,I){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var F=p;try{for(x(I),f=n(l);f!==null&&(!(f.expirationTime>I)||D&&!A());){var P=f.callback;if(typeof P=="function"){f.callback=null,p=f.priorityLevel;var H=P(f.expirationTime<=I);I=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&o(l),x(I)}else o(l);f=n(l)}if(f!==null)var W=!0;else{var U=n(c);U!==null&&$(w,U.startTime-I),W=!1}return W}finally{f=null,p=F,h=!1}}var E=!1,C=null,k=-1,L=5,N=-1;function A(){return!(e.unstable_now()-ND||125P?(D.sortIndex=F,t(c,D),n(l)===null&&D===n(c)&&(g?(y(k),k=-1):g=!0,$(w,F-P))):(D.sortIndex=H,t(l,D),m||h||(m=!0,R(_))),D},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(D){var I=p;return function(){var F=p;p=I;try{return D.apply(this,arguments)}finally{p=F}}}})(n9);t9.exports=n9;var TR=t9.exports;var SR=u,or=TR;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C2=Object.prototype.hasOwnProperty,kR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,db={},fb={};function LR(e){return C2.call(fb,e)?!0:C2.call(db,e)?!1:kR.test(e)?fb[e]=!0:(db[e]=!0,!1)}function IR(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NR(e,t,n,o){if(t===null||typeof t>"u"||IR(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ho(e,t,n,o,r,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pn[e]=new ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pn[t]=new ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pn[e]=new ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pn[e]=new ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pn[e]=new ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pn[e]=new ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pn[e]=new ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pn[e]=new ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pn[e]=new ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var Z3=/[\-:]([a-z])/g;function J3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Z3,J3);Pn[t]=new ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pn[e]=new ho(e,1,!1,e.toLowerCase(),null,!1,!1)});Pn.xlinkHref=new ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pn[e]=new ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function K3(e,t,n,o){var r=Pn.hasOwnProperty(t)?Pn[t]:null;(r!==null?r.type!==0:o||!(2a||r[s]!==i[a]){var l=` -`+r[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Yh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gc(e):""}function TR(e){switch(e.tag){case 5:return Gc(e.type);case 16:return Gc("Lazy");case 13:return Gc("Suspense");case 19:return Gc("SuspenseList");case 0:case 2:case 15:return e=Xh(e.type,!1),e;case 11:return e=Xh(e.type.render,!1),e;case 1:return e=Xh(e.type,!0),e;default:return""}}function I2(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case il:return"Fragment";case rl:return"Portal";case S2:return"Profiler";case Q3:return"StrictMode";case k2:return"Suspense";case L2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i9:return(e.displayName||"Context")+".Consumer";case r9:return(e._context.displayName||"Context")+".Provider";case ey:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ty:return t=e.displayName||null,t!==null?t:I2(e.type)||"Memo";case fs:t=e._payload,e=e._init;try{return I2(e(t))}catch{}}return null}function SR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I2(t);case 8:return t===Q3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kR(e){var t=a9(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qd(e){e._valueTracker||(e._valueTracker=kR(e))}function l9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=a9(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function z1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function N2(e,t){var n=t.checked;return Xt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hb(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Fs(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function c9(e,t){t=t.checked,t!=null&&K3(e,"checked",t,!1)}function R2(e,t){c9(e,t);var n=Fs(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?M2(e,t.type,n):t.hasOwnProperty("defaultValue")&&M2(e,t.type,Fs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function M2(e,t,n){(t!=="number"||z1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qc=Array.isArray;function vl(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=ef.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var au={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},LR=["Webkit","ms","Moz","O"];Object.keys(au).forEach(function(e){LR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),au[t]=au[e]})});function p9(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||au.hasOwnProperty(e)&&au[e]?(""+t).trim():t+"px"}function h9(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=p9(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var IR=Xt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function D2(e,t){if(t){if(IR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function z2(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P2=null;function ny(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B2=null,bl=null,wl=null;function vb(e){if(e=Ld(e)){if(typeof B2!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=v0(t),B2(e.stateNode,e.type,t))}}function m9(e){bl?wl?wl.push(e):wl=[e]:bl=e}function g9(){if(bl){var e=bl,t=wl;if(wl=bl=null,vb(e),t)for(e=0;e>>=0,e===0?32:31-($R(e)/HR|0)|0}var tf=64,nf=4194304;function Yc(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $1(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?o=Yc(a):(i&=s,i!==0&&(o=Yc(i)))}else s=n&~r,s!==0?o=Yc(s):i!==0&&(o=Yc(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Sd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fr(t),e[t]=n}function UR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=cu),kb=" ",Lb=!1;function z9(e,t){switch(e){case"keyup":return bM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P9(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function xM(e,t){switch(e){case"compositionend":return P9(t);case"keypress":return t.which!==32?null:(Lb=!0,kb);case"textInput":return e=t.data,e===kb&&Lb?null:e;default:return null}}function _M(e,t){if(sl)return e==="compositionend"||!uy&&z9(e,t)?(e=A9(),Kf=ay=_s=null,sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mb(n)}}function H9(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H9(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V9(){for(var e=window,t=z1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=z1(e.document)}return t}function dy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function RM(e){var t=V9(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H9(n.ownerDocument.documentElement,n)){if(o!==null&&dy(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=o.end===void 0?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Ob(n,i);var s=Ob(n,o);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,al=null,j2=null,du=null,U2=!1;function Ab(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;U2||al==null||al!==z1(o)||(o=al,"selectionStart"in o&&dy(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),du&&zu(du,o)||(du=o,o=W1(j2,"onSelect"),0ul||(e.current=J2[ul],J2[ul]=null,ul--)}function Mt(e,t){ul++,J2[ul]=e.current,e.current=t}var $s={},Kn=Gs($s),ko=Gs(!1),La=$s;function zl(e,t){var n=e.type.contextTypes;if(!n)return $s;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Lo(e){return e=e.childContextTypes,e!=null}function U1(){Dt(ko),Dt(Kn)}function Hb(e,t,n){if(Kn.current!==$s)throw Error(oe(168));Mt(Kn,t),Mt(ko,n)}function J9(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(oe(108,SR(e)||"Unknown",r));return Xt({},n,o)}function G1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,La=Kn.current,Mt(Kn,e),Mt(ko,ko.current),!0}function Vb(e,t,n){var o=e.stateNode;if(!o)throw Error(oe(169));n?(e=J9(e,t,La),o.__reactInternalMemoizedMergedChildContext=e,Dt(ko),Dt(Kn),Mt(Kn,e)):Dt(ko),Mt(ko,n)}var Oi=null,b0=!1,cm=!1;function K9(e){Oi===null?Oi=[e]:Oi.push(e)}function WM(e){b0=!0,K9(e)}function qs(){if(!cm&&Oi!==null){cm=!0;var e=0,t=xt;try{var n=Oi;for(xt=1;e>=s,r-=s,Bi=1<<32-Fr(t)+r|n<k?(L=C,C=null):L=C.sibling;var N=p(y,C,x[k],w);if(N===null){C===null&&(C=L);break}e&&C&&N.alternate===null&&t(y,C),v=i(N,v,k),E===null?_=N:E.sibling=N,E=N,C=L}if(k===x.length)return n(y,C),Ft&&ea(y,k),_;if(C===null){for(;kk?(L=C,C=null):L=C.sibling;var A=p(y,C,N.value,w);if(A===null){C===null&&(C=L);break}e&&C&&A.alternate===null&&t(y,C),v=i(A,v,k),E===null?_=A:E.sibling=A,E=A,C=L}if(N.done)return n(y,C),Ft&&ea(y,k),_;if(C===null){for(;!N.done;k++,N=x.next())N=f(y,N.value,w),N!==null&&(v=i(N,v,k),E===null?_=N:E.sibling=N,E=N);return Ft&&ea(y,k),_}for(C=o(y,C);!N.done;k++,N=x.next())N=h(C,y,k,N.value,w),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?k:N.key),v=i(N,v,k),E===null?_=N:E.sibling=N,E=N);return e&&C.forEach(function(M){return t(y,M)}),Ft&&ea(y,k),_}function b(y,v,x,w){if(typeof x=="object"&&x!==null&&x.type===il&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Kd:e:{for(var _=x.key,E=v;E!==null;){if(E.key===_){if(_=x.type,_===il){if(E.tag===7){n(y,E.sibling),v=r(E,x.props.children),v.return=y,y=v;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===fs&&Ub(_)===E.type){n(y,E.sibling),v=r(E,x.props),v.ref=Nc(y,E,x),v.return=y,y=v;break e}n(y,E);break}else t(y,E);E=E.sibling}x.type===il?(v=wa(x.props.children,y.mode,w,x.key),v.return=y,y=v):(w=s1(x.type,x.key,x.props,null,y.mode,w),w.ref=Nc(y,v,x),w.return=y,y=w)}return s(y);case rl:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),v=r(v,x.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=ym(x,y.mode,w),v.return=y,y=v}return s(y);case fs:return E=x._init,b(y,v,E(x._payload),w)}if(qc(x))return m(y,v,x,w);if(Tc(x))return g(y,v,x,w);uf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),v=r(v,x),v.return=y,y=v):(n(y,v),v=gm(x,y.mode,w),v.return=y,y=v),s(y)):n(y,v)}return b}var Bl=nx(!0),ox=nx(!1),X1=Gs(null),Z1=null,pl=null,my=null;function gy(){my=pl=Z1=null}function yy(e){var t=X1.current;Dt(X1),e._currentValue=t}function eg(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function _l(e,t){Z1=e,my=pl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Co=!0),e.firstContext=null)}function Er(e){var t=e._currentValue;if(my!==e)if(e={context:e,memoizedValue:t,next:null},pl===null){if(Z1===null)throw Error(oe(308));pl=e,Z1.dependencies={lanes:0,firstContext:e}}else pl=pl.next=e;return t}var ca=null;function vy(e){ca===null?ca=[e]:ca.push(e)}function rx(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,vy(t)):(n.next=r.next,r.next=n),t.interleaved=n,Yi(e,o)}function Yi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ps=!1;function by(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ix(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ms(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,st&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Yi(e,n)}return r=o.interleaved,r===null?(t.next=t,vy(o)):(t.next=r.next,r.next=t),o.interleaved=t,Yi(e,n)}function e1(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ry(e,n)}}function Gb(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function J1(e,t,n,o){var r=e.updateQueue;ps=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=r.baseState;s=0,d=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((o&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=Xt({},f,p);break e;case 2:ps=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=r.effects,p===null?r.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,s|=p;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;p=a,a=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);if(d===null&&(l=f),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else i===null&&(r.shared.lanes=0);Ra|=s,e.lanes=s,e.memoizedState=f}}function qb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=dm.transition;dm.transition={};try{e(!1),t()}finally{xt=n,dm.transition=o}}function _x(){return Cr().memoizedState}function qM(e,t,n){var o=As(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Ex(e))Cx(t,n);else if(n=rx(e,t,n,o),n!==null){var r=uo();$r(n,e,o,r),Tx(n,t,o)}}function YM(e,t,n){var o=As(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ex(e))Cx(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,Hr(a,s)){var l=t.interleaved;l===null?(r.next=r,vy(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=rx(e,t,r,o),n!==null&&(r=uo(),$r(n,e,o,r),Tx(n,t,o))}}function Ex(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function Cx(e,t){fu=Q1=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tx(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ry(e,n)}}var ep={readContext:Er,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},XM={readContext:Er,useCallback:function(e,t){return ii().memoizedState=[e,t===void 0?null:t],e},useContext:Er,useEffect:Xb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,n1(4194308,4,yx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return n1(4194308,4,e,t)},useInsertionEffect:function(e,t){return n1(4,2,e,t)},useMemo:function(e,t){var n=ii();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ii();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=qM.bind(null,Yt,e),[o.memoizedState,e]},useRef:function(e){var t=ii();return e={current:e},t.memoizedState=e},useState:Yb,useDebugValue:ky,useDeferredValue:function(e){return ii().memoizedState=e},useTransition:function(){var e=Yb(!1),t=e[0];return e=GM.bind(null,e[1]),ii().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Yt,r=ii();if(Ft){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),Cn===null)throw Error(oe(349));Na&30||cx(o,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,Xb(dx.bind(null,o,i,e),[e]),o.flags|=2048,ju(9,ux.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=ii(),t=Cn.identifierPrefix;if(Ft){var n=Fi,o=Bi;n=(o&~(1<<32-Fr(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vu++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Xh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gc(e):""}function RR(e){switch(e.tag){case 5:return Gc(e.type);case 16:return Gc("Lazy");case 13:return Gc("Suspense");case 19:return Gc("SuspenseList");case 0:case 2:case 15:return e=Zh(e.type,!1),e;case 11:return e=Zh(e.type.render,!1),e;case 1:return e=Zh(e.type,!0),e;default:return""}}function L2(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sl:return"Fragment";case il:return"Portal";case T2:return"Profiler";case Q3:return"StrictMode";case S2:return"Suspense";case k2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i9:return(e.displayName||"Context")+".Consumer";case r9:return(e._context.displayName||"Context")+".Provider";case ey:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ty:return t=e.displayName||null,t!==null?t:L2(e.type)||"Memo";case ps:t=e._payload,e=e._init;try{return L2(e(t))}catch{}}return null}function MR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L2(t);case 8:return t===Q3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OR(e){var t=a9(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qd(e){e._valueTracker||(e._valueTracker=OR(e))}function l9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=a9(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function z1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function I2(e,t){var n=t.checked;return Xt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hb(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Hs(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function c9(e,t){t=t.checked,t!=null&&K3(e,"checked",t,!1)}function N2(e,t){c9(e,t);var n=Hs(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?R2(e,t.type,n):t.hasOwnProperty("defaultValue")&&R2(e,t.type,Hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function R2(e,t,n){(t!=="number"||z1(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qc=Array.isArray;function bl(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=ef.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var au={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},AR=["Webkit","ms","Moz","O"];Object.keys(au).forEach(function(e){AR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),au[t]=au[e]})});function p9(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||au.hasOwnProperty(e)&&au[e]?(""+t).trim():t+"px"}function h9(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=p9(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var DR=Xt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function A2(e,t){if(t){if(DR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function D2(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var z2=null;function ny(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var P2=null,wl=null,xl=null;function vb(e){if(e=Ld(e)){if(typeof P2!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=v0(t),P2(e.stateNode,e.type,t))}}function m9(e){wl?xl?xl.push(e):xl=[e]:wl=e}function g9(){if(wl){var e=wl,t=xl;if(xl=wl=null,vb(e),t)for(e=0;e>>=0,e===0?32:31-(GR(e)/qR|0)|0}var tf=64,nf=4194304;function Yc(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $1(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?o=Yc(a):(i&=s,i!==0&&(o=Yc(i)))}else s=n&~r,s!==0?o=Yc(s):i!==0&&(o=Yc(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Sd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fr(t),e[t]=n}function JR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=cu),kb=" ",Lb=!1;function z9(e,t){switch(e){case"keyup":return TM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P9(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function kM(e,t){switch(e){case"compositionend":return P9(t);case"keypress":return t.which!==32?null:(Lb=!0,kb);case"textInput":return e=t.data,e===kb&&Lb?null:e;default:return null}}function LM(e,t){if(al)return e==="compositionend"||!uy&&z9(e,t)?(e=A9(),Kf=ay=Cs=null,al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mb(n)}}function H9(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H9(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V9(){for(var e=window,t=z1();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=z1(e.document)}return t}function dy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PM(e){var t=V9(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H9(n.ownerDocument.documentElement,n)){if(o!==null&&dy(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=o.end===void 0?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Ob(n,i);var s=Ob(n,o);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ll=null,W2=null,du=null,j2=!1;function Ab(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j2||ll==null||ll!==z1(o)||(o=ll,"selectionStart"in o&&dy(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),du&&zu(du,o)||(du=o,o=W1(W2,"onSelect"),0dl||(e.current=Z2[dl],Z2[dl]=null,dl--)}function Mt(e,t){dl++,Z2[dl]=e.current,e.current=t}var Vs={},Kn=Ys(Vs),ko=Ys(!1),Ia=Vs;function Pl(e,t){var n=e.type.contextTypes;if(!n)return Vs;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Lo(e){return e=e.childContextTypes,e!=null}function U1(){Dt(ko),Dt(Kn)}function Hb(e,t,n){if(Kn.current!==Vs)throw Error(oe(168));Mt(Kn,t),Mt(ko,n)}function J9(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(oe(108,MR(e)||"Unknown",r));return Xt({},n,o)}function G1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vs,Ia=Kn.current,Mt(Kn,e),Mt(ko,ko.current),!0}function Vb(e,t,n){var o=e.stateNode;if(!o)throw Error(oe(169));n?(e=J9(e,t,Ia),o.__reactInternalMemoizedMergedChildContext=e,Dt(ko),Dt(Kn),Mt(Kn,e)):Dt(ko),Mt(ko,n)}var Di=null,b0=!1,um=!1;function K9(e){Di===null?Di=[e]:Di.push(e)}function XM(e){b0=!0,K9(e)}function Xs(){if(!um&&Di!==null){um=!0;var e=0,t=xt;try{var n=Di;for(xt=1;e>=s,r-=s,$i=1<<32-Fr(t)+r|n<k?(L=C,C=null):L=C.sibling;var N=p(y,C,x[k],w);if(N===null){C===null&&(C=L);break}e&&C&&N.alternate===null&&t(y,C),v=i(N,v,k),E===null?_=N:E.sibling=N,E=N,C=L}if(k===x.length)return n(y,C),Ft&&ta(y,k),_;if(C===null){for(;kk?(L=C,C=null):L=C.sibling;var A=p(y,C,N.value,w);if(A===null){C===null&&(C=L);break}e&&C&&A.alternate===null&&t(y,C),v=i(A,v,k),E===null?_=A:E.sibling=A,E=A,C=L}if(N.done)return n(y,C),Ft&&ta(y,k),_;if(C===null){for(;!N.done;k++,N=x.next())N=f(y,N.value,w),N!==null&&(v=i(N,v,k),E===null?_=N:E.sibling=N,E=N);return Ft&&ta(y,k),_}for(C=o(y,C);!N.done;k++,N=x.next())N=h(C,y,k,N.value,w),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?k:N.key),v=i(N,v,k),E===null?_=N:E.sibling=N,E=N);return e&&C.forEach(function(M){return t(y,M)}),Ft&&ta(y,k),_}function b(y,v,x,w){if(typeof x=="object"&&x!==null&&x.type===sl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Kd:e:{for(var _=x.key,E=v;E!==null;){if(E.key===_){if(_=x.type,_===sl){if(E.tag===7){n(y,E.sibling),v=r(E,x.props.children),v.return=y,y=v;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ps&&Ub(_)===E.type){n(y,E.sibling),v=r(E,x.props),v.ref=Nc(y,E,x),v.return=y,y=v;break e}n(y,E);break}else t(y,E);E=E.sibling}x.type===sl?(v=xa(x.props.children,y.mode,w,x.key),v.return=y,y=v):(w=s1(x.type,x.key,x.props,null,y.mode,w),w.ref=Nc(y,v,x),w.return=y,y=w)}return s(y);case il:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),v=r(v,x.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=vm(x,y.mode,w),v.return=y,y=v}return s(y);case ps:return E=x._init,b(y,v,E(x._payload),w)}if(qc(x))return m(y,v,x,w);if(Tc(x))return g(y,v,x,w);uf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),v=r(v,x),v.return=y,y=v):(n(y,v),v=ym(x,y.mode,w),v.return=y,y=v),s(y)):n(y,v)}return b}var Fl=nx(!0),ox=nx(!1),X1=Ys(null),Z1=null,hl=null,my=null;function gy(){my=hl=Z1=null}function yy(e){var t=X1.current;Dt(X1),e._currentValue=t}function Q2(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function El(e,t){Z1=e,my=hl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Co=!0),e.firstContext=null)}function Er(e){var t=e._currentValue;if(my!==e)if(e={context:e,memoizedValue:t,next:null},hl===null){if(Z1===null)throw Error(oe(308));hl=e,Z1.dependencies={lanes:0,firstContext:e}}else hl=hl.next=e;return t}var ua=null;function vy(e){ua===null?ua=[e]:ua.push(e)}function rx(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,vy(t)):(n.next=r.next,r.next=n),t.interleaved=n,Zi(e,o)}function Zi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var hs=!1;function by(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ix(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function As(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,st&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Zi(e,n)}return r=o.interleaved,r===null?(t.next=t,vy(o)):(t.next=r.next,r.next=t),o.interleaved=t,Zi(e,n)}function e1(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ry(e,n)}}function Gb(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function J1(e,t,n,o){var r=e.updateQueue;hs=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=r.baseState;s=0,d=c=l=null,a=i;do{var p=a.lane,h=a.eventTime;if((o&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,g=a;switch(p=t,h=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(h,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,f,p):m,p==null)break e;f=Xt({},f,p);break e;case 2:hs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=r.effects,p===null?r.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,s|=p;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;p=a,a=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);if(d===null&&(l=f),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else i===null&&(r.shared.lanes=0);Ma|=s,e.lanes=s,e.memoizedState=f}}function qb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=fm.transition;fm.transition={};try{e(!1),t()}finally{xt=n,fm.transition=o}}function _x(){return Cr().memoizedState}function QM(e,t,n){var o=zs(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Ex(e))Cx(t,n);else if(n=rx(e,t,n,o),n!==null){var r=uo();$r(n,e,o,r),Tx(n,t,o)}}function eO(e,t,n){var o=zs(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ex(e))Cx(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,Hr(a,s)){var l=t.interleaved;l===null?(r.next=r,vy(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=rx(e,t,r,o),n!==null&&(r=uo(),$r(n,e,o,r),Tx(n,t,o))}}function Ex(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function Cx(e,t){fu=Q1=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tx(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ry(e,n)}}var ep={readContext:Er,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},tO={readContext:Er,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:Er,useEffect:Xb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,n1(4194308,4,yx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return n1(4194308,4,e,t)},useInsertionEffect:function(e,t){return n1(4,2,e,t)},useMemo:function(e,t){var n=si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=si();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=QM.bind(null,Yt,e),[o.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:Yb,useDebugValue:ky,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=Yb(!1),t=e[0];return e=KM.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Yt,r=si();if(Ft){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),Cn===null)throw Error(oe(349));Ra&30||cx(o,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,Xb(dx.bind(null,o,i,e),[e]),o.flags|=2048,ju(9,ux.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=si(),t=Cn.identifierPrefix;if(Ft){var n=Hi,o=$i;n=(o&~(1<<32-Fr(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),n==="select"&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[ci]=t,e[Fu]=o,Dx(e,t,!1,!1),t.stateNode=e;e:{switch(s=z2(n,o),n){case"dialog":Ot("cancel",e),Ot("close",e),r=o;break;case"iframe":case"object":case"embed":Ot("load",e),r=o;break;case"video":case"audio":for(r=0;rHl&&(t.flags|=128,o=!0,Rc(i,!1),t.lanes=4194304)}else{if(!o)if(e=K1(s),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ft)return Hn(t),null}else 2*nn()-i.renderingStartTime>Hl&&n!==1073741824&&(t.flags|=128,o=!0,Rc(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nn(),t.sibling=null,n=jt.current,Mt(jt,o?n&1|2:n&1),t):(Hn(t),null);case 22:case 23:return Oy(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Bo&1073741824&&(Hn(t),t.subtreeFlags&6&&(t.flags|=8192)):Hn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function oO(e,t){switch(py(t),t.tag){case 1:return Lo(t.type)&&U1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fl(),Dt(ko),Dt(Kn),_y(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xy(t),null;case 13:if(Dt(jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(jt),null;case 4:return Fl(),null;case 10:return yy(t.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var ff=!1,Yn=!1,rO=typeof WeakSet=="function"?WeakSet:Set,he=null;function hl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Jt(e,t,o)}else n.current=null}function cg(e,t,n){try{n()}catch(o){Jt(e,t,o)}}var s5=!1;function iO(e,t){if(G2=H1,e=V9(),dy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(a=s+r),f!==i||o!==0&&f.nodeType!==3||(l=s+o),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===r&&(a=s),p===i&&++d===o&&(l=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(q2={focusedElem:e,selectionRange:n},H1=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ir(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(w){Jt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return m=s5,s5=!1,m}function pu(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&cg(t,n,i)}r=r.next}while(r!==o)}}function _0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ug(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bx(e){var t=e.alternate;t!==null&&(e.alternate=null,Bx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[Fu],delete t[Z2],delete t[HM],delete t[VM])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fx(e){return e.tag===5||e.tag===3||e.tag===4}function a5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dg(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=j1));else if(o!==4&&(e=e.child,e!==null))for(dg(e,t,n),e=e.sibling;e!==null;)dg(e,t,n),e=e.sibling}function fg(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(fg(e,t,n),e=e.sibling;e!==null;)fg(e,t,n),e=e.sibling}var Rn=null,Nr=!1;function as(e,t,n){for(n=n.child;n!==null;)$x(e,t,n),n=n.sibling}function $x(e,t,n){if(pi&&typeof pi.onCommitFiberUnmount=="function")try{pi.onCommitFiberUnmount(h0,n)}catch{}switch(n.tag){case 5:Yn||hl(n,t);case 6:var o=Rn,r=Nr;Rn=null,as(e,t,n),Rn=o,Nr=r,Rn!==null&&(Nr?(e=Rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rn.removeChild(n.stateNode));break;case 18:Rn!==null&&(Nr?(e=Rn,n=n.stateNode,e.nodeType===8?lm(e.parentNode,n):e.nodeType===1&&lm(e,n),Au(e)):lm(Rn,n.stateNode));break;case 4:o=Rn,r=Nr,Rn=n.stateNode.containerInfo,Nr=!0,as(e,t,n),Rn=o,Nr=r;break;case 0:case 11:case 14:case 15:if(!Yn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&cg(n,t,s),r=r.next}while(r!==o)}as(e,t,n);break;case 1:if(!Yn&&(hl(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Jt(n,t,a)}as(e,t,n);break;case 21:as(e,t,n);break;case 22:n.mode&1?(Yn=(o=Yn)||n.memoizedState!==null,as(e,t,n),Yn=o):as(e,t,n);break;default:as(e,t,n)}}function l5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rO),t.forEach(function(o){var r=hO.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function Lr(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=s),o&=~i}if(o=r,o=nn()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*aO(o/1960))-o,10e?16:e,Es===null)var o=!1;else{if(e=Es,Es=null,op=0,st&6)throw Error(oe(331));var r=st;for(st|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lnn()-Ry?ba(e,0):Ny|=n),Io(e,t)}function Yx(e,t){t===0&&(e.mode&1?(t=nf,nf<<=1,!(nf&130023424)&&(nf=4194304)):t=1);var n=uo();e=Yi(e,t),e!==null&&(Sd(e,t,n),Io(e,n))}function pO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yx(e,n)}function hO(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(oe(314))}o!==null&&o.delete(t),Yx(e,n)}var Xx;Xx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)Co=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Co=!1,tO(e,t,n);Co=!!(e.flags&131072)}else Co=!1,Ft&&t.flags&1048576&&Q9(t,Y1,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;o1(e,t),e=t.pendingProps;var r=zl(t,Kn.current);_l(t,n),r=Cy(null,t,o,e,r,n);var i=Ty();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(o)?(i=!0,G1(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,by(t),r.updater=x0,t.stateNode=r,r._reactInternals=t,ng(t,o,e,n),t=ig(null,t,o,!0,i,n)):(t.tag=0,Ft&&i&&fy(t),io(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(o1(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=gO(o),e=Ir(o,e),r){case 0:t=rg(null,t,o,e,n);break e;case 1:t=o5(null,t,o,e,n);break e;case 11:t=t5(null,t,o,e,n);break e;case 14:t=n5(null,t,o,Ir(o.type,e),n);break e}throw Error(oe(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),rg(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),o5(e,t,o,r,n);case 3:e:{if(Mx(t),e===null)throw Error(oe(387));o=t.pendingProps,i=t.memoizedState,r=i.element,ix(e,t),J1(t,o,null,n);var s=t.memoizedState;if(o=s.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=$l(Error(oe(423)),t),t=r5(e,t,o,n,r);break e}else if(o!==r){r=$l(Error(oe(424)),t),t=r5(e,t,o,n,r);break e}else for(Xo=Rs(t.stateNode.containerInfo.firstChild),Zo=t,Ft=!0,Mr=null,n=ox(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pl(),o===r){t=Xi(e,t,n);break e}io(e,t,o,n)}t=t.child}return t;case 5:return sx(t),e===null&&Q2(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,s=r.children,Y2(o,r)?s=null:i!==null&&Y2(o,i)&&(t.flags|=32),Rx(e,t),io(e,t,s,n),t.child;case 6:return e===null&&Q2(t),null;case 13:return Ox(e,t,n);case 4:return wy(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Bl(t,null,o,n):io(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),t5(e,t,o,r,n);case 7:return io(e,t,t.pendingProps,n),t.child;case 8:return io(e,t,t.pendingProps.children,n),t.child;case 12:return io(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,i=t.memoizedProps,s=r.value,Mt(X1,o._currentValue),o._currentValue=s,i!==null)if(Hr(i.value,s)){if(i.children===r.children&&!ko.current){t=Xi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Wi(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),eg(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(oe(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),eg(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}io(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,_l(t,n),r=Er(r),o=o(r),t.flags|=1,io(e,t,o,n),t.child;case 14:return o=t.type,r=Ir(o,t.pendingProps),r=Ir(o.type,r),n5(e,t,o,r,n);case 15:return Ix(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),o1(e,t),t.tag=1,Lo(o)?(e=!0,G1(t)):e=!1,_l(t,n),Sx(t,o,r),ng(t,o,r,n),ig(null,t,o,!0,e,n);case 19:return Ax(e,t,n);case 22:return Nx(e,t,n)}throw Error(oe(156,t.tag))};function Zx(e,t){return E9(e,t)}function mO(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(e,t,n,o){return new mO(e,t,n,o)}function Dy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gO(e){if(typeof e=="function")return Dy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ey)return 11;if(e===ty)return 14}return 2}function Ds(e,t){var n=e.alternate;return n===null?(n=mr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function s1(e,t,n,o,r,i){var s=2;if(o=e,typeof e=="function")Dy(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case il:return wa(n.children,r,i,t);case Q3:s=8,r|=8;break;case S2:return e=mr(12,n,t,r|2),e.elementType=S2,e.lanes=i,e;case k2:return e=mr(13,n,t,r),e.elementType=k2,e.lanes=i,e;case L2:return e=mr(19,n,t,r),e.elementType=L2,e.lanes=i,e;case s9:return C0(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case r9:s=10;break e;case i9:s=9;break e;case ey:s=11;break e;case ty:s=14;break e;case fs:s=16,o=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=mr(s,n,t,r),t.elementType=e,t.type=o,t.lanes=i,t}function wa(e,t,n,o){return e=mr(7,e,o,t),e.lanes=n,e}function C0(e,t,n,o){return e=mr(22,e,o,t),e.elementType=s9,e.lanes=n,e.stateNode={isHidden:!1},e}function gm(e,t,n){return e=mr(6,e,null,t),e.lanes=n,e}function ym(e,t,n){return t=mr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yO(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jh(0),this.expirationTimes=Jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jh(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function zy(e,t,n,o,r,i,s,a,l){return e=new yO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},by(i),e}function vO(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e_)}catch(e){console.error(e)}}e_(),e9.exports=sr;var mn=e9.exports;const EO=p0(mn);var $y,g5=mn;$y=g5.createRoot,g5.hydrateRoot;var t_={exports:{}},I0={};var CO=u,TO=Symbol.for("react.element"),SO=Symbol.for("react.fragment"),kO=Object.prototype.hasOwnProperty,LO=CO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,IO={key:!0,ref:!0,__self:!0,__source:!0};function n_(e,t,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)kO.call(t,o)&&!IO.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:TO,type:e,key:i,ref:s,props:r,_owner:LO.current}}I0.Fragment=SO;I0.jsx=n_;I0.jsxs=n_;t_.exports=I0;var T=t_.exports;const sp=Math.min,xa=Math.max,ap=Math.round,mf=Math.floor,Hs=e=>({x:e,y:e}),NO={left:"right",right:"left",bottom:"top",top:"bottom"},RO={start:"end",end:"start"};function y5(e,t,n){return xa(e,sp(t,n))}function Hy(e,t){return typeof e=="function"?e(t):e}function Vl(e){return e.split("-")[0]}function Vy(e){return e.split("-")[1]}function o_(e){return e==="x"?"y":"x"}function r_(e){return e==="y"?"height":"width"}function Gu(e){return["top","bottom"].includes(Vl(e))?"y":"x"}function i_(e){return o_(Gu(e))}function MO(e,t,n){n===void 0&&(n=!1);const o=Vy(e),r=i_(e),i=r_(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=lp(s)),[s,lp(s)]}function OO(e){const t=lp(e);return[yg(e),t,yg(t)]}function yg(e){return e.replace(/start|end/g,t=>RO[t])}function AO(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function DO(e,t,n,o){const r=Vy(e);let i=AO(Vl(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(yg)))),i}function lp(e){return e.replace(/left|right|bottom|top/g,t=>NO[t])}function zO(e){return{top:0,right:0,bottom:0,left:0,...e}}function PO(e){return typeof e!="number"?zO(e):{top:e,right:e,bottom:e,left:e}}function cp(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function v5(e,t,n){let{reference:o,floating:r}=e;const i=Gu(t),s=i_(t),a=r_(s),l=Vl(t),c=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Vy(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const BO=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=v5(c,o,l),p=o,h={},m=0;for(let g=0;gS<=0)){var A,M;const S=(((A=i.flip)==null?void 0:A.index)||0)+1,O=C[S];if(O)return{data:{index:S,overflows:N},reset:{placement:O}};let R=(M=N.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:M.placement;if(!R)switch(h){case"bestFit":{var z;const $=(z=N.filter(D=>{if(E){const I=Gu(D.placement);return I===v||I==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((D,I)=>D[1]-I[1])[0])==null?void 0:z[0];$&&(R=$);break}case"initialPlacement":R=a;break}if(r!==R)return{reset:{placement:R}}}return{}}}},$O=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=Hy(e,t),c={x:n,y:o},d=await s_(t,l),f=Gu(Vl(r)),p=o_(f);let h=c[p],m=c[f];if(i){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=h+d[b],x=h-d[y];h=y5(v,h,x)}if(s){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=m+d[b],x=m-d[y];m=y5(v,m,x)}const g=a.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[f]:s}}}}}};function N0(){return typeof window<"u"}function ac(e){return a_(e)?(e.nodeName||"").toLowerCase():"#document"}function Jo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _i(e){var t;return(t=(a_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a_(e){return N0()?e instanceof Node||e instanceof Jo(e).Node:!1}function Vr(e){return N0()?e instanceof Element||e instanceof Jo(e).Element:!1}function vi(e){return N0()?e instanceof HTMLElement||e instanceof Jo(e).HTMLElement:!1}function b5(e){return!N0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot}function Nd(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function HO(e){return["table","td","th"].includes(ac(e))}function R0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wy(e){const t=jy(),n=Vr(e)?Wr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function VO(e){let t=Vs(e);for(;vi(t)&&!Wl(t);){if(Wy(t))return t;if(R0(t))return null;t=Vs(t)}return null}function jy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wl(e){return["html","body","#document"].includes(ac(e))}function Wr(e){return Jo(e).getComputedStyle(e)}function M0(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vs(e){if(ac(e)==="html")return e;const t=e.assignedSlot||e.parentNode||b5(e)&&e.host||_i(e);return b5(t)?t.host:t}function l_(e){const t=Vs(e);return Wl(t)?e.ownerDocument?e.ownerDocument.body:e.body:vi(t)&&Nd(t)?t:l_(t)}function qu(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=l_(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Jo(r);if(i){const a=vg(s);return t.concat(s,s.visualViewport||[],Nd(r)?r:[],a&&n?qu(a):[])}return t.concat(r,qu(r,[],n))}function vg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function c_(e){const t=Wr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=vi(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ap(n)!==i||ap(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Uy(e){return Vr(e)?e:e.contextElement}function Cl(e){const t=Uy(e);if(!vi(t))return Hs(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=c_(t);let s=(i?ap(n.width):n.width)/o,a=(i?ap(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const WO=Hs(0);function u_(e){const t=Jo(e);return!jy()||!t.visualViewport?WO:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jO(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Jo(e)?!1:t}function Oa(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Uy(e);let s=Hs(1);t&&(o?Vr(o)&&(s=Cl(o)):s=Cl(e));const a=jO(i,n,o)?u_(i):Hs(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const p=Jo(i),h=o&&Vr(o)?Jo(o):o;let m=p,g=vg(m);for(;g&&o&&h!==m;){const b=Cl(g),y=g.getBoundingClientRect(),v=Wr(g),x=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*b.x,w=y.top+(g.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=x,c+=w,m=Jo(g),g=vg(m)}}return cp({width:d,height:f,x:l,y:c})}function UO(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=_i(o),a=t?R0(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Hs(1);const d=Hs(0),f=vi(o);if((f||!f&&!i)&&((ac(o)!=="body"||Nd(s))&&(l=M0(o)),vi(o))){const p=Oa(o);c=Cl(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function GO(e){return Array.from(e.getClientRects())}function bg(e,t){const n=M0(e).scrollLeft;return t?t.left+n:Oa(_i(e)).left+n}function qO(e){const t=_i(e),n=M0(e),o=e.ownerDocument.body,r=xa(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=xa(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+bg(e);const a=-n.scrollTop;return Wr(o).direction==="rtl"&&(s+=xa(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function YO(e,t){const n=Jo(e),o=_i(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const c=jy();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}function XO(e,t){const n=Oa(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=vi(e)?Cl(e):Hs(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=o*i.y;return{width:s,height:a,x:l,y:c}}function w5(e,t,n){let o;if(t==="viewport")o=YO(e,n);else if(t==="document")o=qO(_i(e));else if(Vr(t))o=XO(t,n);else{const r=u_(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return cp(o)}function d_(e,t){const n=Vs(e);return n===t||!Vr(n)||Wl(n)?!1:Wr(n).position==="fixed"||d_(n,t)}function ZO(e,t){const n=t.get(e);if(n)return n;let o=qu(e,[],!1).filter(a=>Vr(a)&&ac(a)!=="body"),r=null;const i=Wr(e).position==="fixed";let s=i?Vs(e):e;for(;Vr(s)&&!Wl(s);){const a=Wr(s),l=Wy(s);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Nd(s)&&!l&&d_(e,s))?o=o.filter(d=>d!==s):r=a,s=Vs(s)}return t.set(e,o),o}function JO(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?R0(t)?[]:ZO(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,d)=>{const f=w5(t,d,r);return c.top=xa(f.top,c.top),c.right=sp(f.right,c.right),c.bottom=sp(f.bottom,c.bottom),c.left=xa(f.left,c.left),c},w5(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KO(e){const{width:t,height:n}=c_(e);return{width:t,height:n}}function QO(e,t,n){const o=vi(t),r=_i(t),i=n==="fixed",s=Oa(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Hs(0);if(o||!o&&!i)if((ac(t)!=="body"||Nd(r))&&(a=M0(t)),o){const h=Oa(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&(l.x=bg(r));let c=0,d=0;if(r&&!o&&!i){const h=r.getBoundingClientRect();d=h.top+a.scrollTop,c=h.left+a.scrollLeft-bg(r,h)}const f=s.left+a.scrollLeft-l.x-c,p=s.top+a.scrollTop-l.y-d;return{x:f,y:p,width:s.width,height:s.height}}function vm(e){return Wr(e).position==="static"}function x5(e,t){if(!vi(e)||Wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _i(e)===n&&(n=n.ownerDocument.body),n}function f_(e,t){const n=Jo(e);if(R0(e))return n;if(!vi(e)){let r=Vs(e);for(;r&&!Wl(r);){if(Vr(r)&&!vm(r))return r;r=Vs(r)}return n}let o=x5(e,t);for(;o&&HO(o)&&vm(o);)o=x5(o,t);return o&&Wl(o)&&vm(o)&&!Wy(o)?n:o||VO(e)||n}const eA=async function(e){const t=this.getOffsetParent||f_,n=this.getDimensions,o=await n(e.floating);return{reference:QO(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function tA(e){return Wr(e).direction==="rtl"}const nA={convertOffsetParentRelativeRectToViewportRelativeRect:UO,getDocumentElement:_i,getClippingRect:JO,getOffsetParent:f_,getElementRects:eA,getClientRects:GO,getDimensions:KO,getScale:Cl,isElement:Vr,isRTL:tA};function oA(e,t){let n=null,o;const r=_i(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const h=mf(d),m=mf(r.clientWidth-(c+f)),g=mf(r.clientHeight-(d+p)),b=mf(c),v={rootMargin:-h+"px "+-m+"px "+-g+"px "+-b+"px",threshold:xa(0,sp(1,l))||1};let x=!0;function w(_){const E=_[0].intersectionRatio;if(E!==l){if(!x)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,v)}n.observe(e)}return s(!0),i}function p_(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Uy(e),d=r||i?[...c?qu(c):[],...qu(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=c&&a?oA(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,g=l?Oa(e):null;l&&b();function b(){const y=Oa(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const rA=$O,iA=FO,sA=(e,t,n)=>{const o=new Map,r={platform:nA,...n},i={...r.platform,_c:o};return BO(e,t,{...r,platform:i})};function h_(){const[e,t]=u.useReducer(n=>n+1,0);return t}function aA(){return fo(Cd)}function Mo(e,t,n,o){u.useEffect(()=>(e.subscribe(t),()=>{e.unsubscribe(t)}),[e,t,o,...n??[]])}function fo(e,t){const n=e.last===void 0?t:i(e.last),[o,r]=u.useState(n);return Mo(e,(...s)=>r(i(s)),[]),o;function i(s){return s[0]===null?void 0:s[0]}}function lA(e,t){const n=u.useRef(null);return u.useEffect(()=>{e&&(typeof e=="function"?e(n.current):e.current=n.current)},[e]),n}function cA(){for(var e=arguments.length,t=new Array(e),n=0;no=>{t.forEach(r=>r(o))},t)}const O0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function lc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Gy(e){return"nodeType"in e}function mo(e){var t,n;return e?lc(e)?e:Gy(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qy(e){const{Document:t}=mo(e);return e instanceof t}function Rd(e){return lc(e)?!1:e instanceof mo(e).HTMLElement}function m_(e){return e instanceof mo(e).SVGElement}function cc(e){return e?lc(e)?e.document:Gy(e)?qy(e)?e:Rd(e)||m_(e)?e.ownerDocument:document:document:document}const Tr=O0?u.useLayoutEffect:u.useEffect;function A0(e){const t=u.useRef(e);return Tr(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r{e.current=setInterval(o,r)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Yu(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Tr(()=>{n.current!==e&&(n.current=e)},t),n}function Md(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function up(e){const t=A0(e),n=u.useRef(null),o=u.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function dp(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let bm={};function Od(e,t){return u.useMemo(()=>{if(t)return t;const n=bm[e]==null?0:bm[e]+1;return bm[e]=n,e+"-"+n},[e,t])}function g_(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{const a=Object.entries(s);for(const[l,c]of a){const d=i[l];d!=null&&(i[l]=d+e*c)}return i},{...t})}}const Tl=g_(1),fp=g_(-1);function dA(e){return"clientX"in e&&"clientY"in e}function D0(e){if(!e)return!1;const{KeyboardEvent:t}=mo(e.target);return t&&e instanceof t}function fA(e){if(!e)return!1;const{TouchEvent:t}=mo(e.target);return t&&e instanceof t}function pp(e){if(fA(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return dA(e)?{x:e.clientX,y:e.clientY}:null}const Zi=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Zi.Translate.toString(e),Zi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),_5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pA(e){return e.matches(_5)?e:e.querySelector(_5)}const hA={display:"none"};function mA(e){let{id:t,value:n}=e;return V.createElement("div",{id:t,style:hA},n)}function gA(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return V.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function yA(){const[e,t]=u.useState("");return{announce:u.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const y_=u.createContext(null);function vA(e){const t=u.useContext(y_);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function bA(){const[e]=u.useState(()=>new Set),t=u.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[u.useCallback(o=>{let{type:r,event:i}=o;e.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,i)})},[e]),t]}const wA={draggable:` +`+i.stack}return{value:e,source:t,stack:r,digest:null}}function mm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ng(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rO=typeof WeakMap=="function"?WeakMap:Map;function kx(e,t,n){n=Ui(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){np||(np=!0,fg=o),ng(e,t)},n}function Lx(e,t,n){n=Ui(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){ng(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ng(e,t),typeof o!="function"&&(Ds===null?Ds=new Set([this]):Ds.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Kb(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new rO;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=vO.bind(null,e,t,n),t.then(e,e))}function Qb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function e5(e,t,n,o,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ui(-1,1),t.tag=2,As(n,t,1))),n.lanes|=1),e)}var iO=rs.ReactCurrentOwner,Co=!1;function io(e,t,n,o){t.child=e===null?ox(t,null,n,o):Fl(t,e.child,n,o)}function t5(e,t,n,o,r){n=n.render;var i=t.ref;return El(t,r),o=Cy(e,t,n,o,i,r),n=Ty(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ji(e,t,r)):(Ft&&n&&fy(t),t.flags|=1,io(e,t,o,r),t.child)}function n5(e,t,n,o,r){if(e===null){var i=n.type;return typeof i=="function"&&!Dy(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ix(e,t,i,o,r)):(e=s1(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&r)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:zu,n(s,o)&&e.ref===t.ref)return Ji(e,t,r)}return t.flags|=1,e=Ps(i,o),e.ref=t.ref,e.return=t,t.child=e}function Ix(e,t,n,o,r){if(e!==null){var i=e.memoizedProps;if(zu(i,o)&&e.ref===t.ref)if(Co=!1,t.pendingProps=o=i,(e.lanes&r)!==0)e.flags&131072&&(Co=!0);else return t.lanes=e.lanes,Ji(e,t,r)}return og(e,t,n,o,r)}function Nx(e,t,n){var o=t.pendingProps,r=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(gl,Bo),Bo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mt(gl,Bo),Bo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:n,Mt(gl,Bo),Bo|=o}else i!==null?(o=i.baseLanes|n,t.memoizedState=null):o=n,Mt(gl,Bo),Bo|=o;return io(e,t,r,n),t.child}function Rx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function og(e,t,n,o,r){var i=Lo(n)?Ia:Kn.current;return i=Pl(t,i),El(t,r),n=Cy(e,t,n,o,i,r),o=Ty(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ji(e,t,r)):(Ft&&o&&fy(t),t.flags|=1,io(e,t,n,r),t.child)}function o5(e,t,n,o,r){if(Lo(n)){var i=!0;G1(t)}else i=!1;if(El(t,r),t.stateNode===null)o1(e,t),Sx(t,n,o),tg(t,n,o,r),o=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Er(c):(c=Lo(n)?Ia:Kn.current,c=Pl(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&Jb(t,s,o,c),hs=!1;var p=t.memoizedState;s.state=p,J1(t,o,s,r),l=t.memoizedState,a!==o||p!==l||ko.current||hs?(typeof d=="function"&&(eg(t,n,d,o),l=t.memoizedState),(a=hs||Zb(t,n,a,o,p,l,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,ix(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ir(t.type,a),s.props=c,f=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Er(l):(l=Lo(n)?Ia:Kn.current,l=Pl(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||p!==l)&&Jb(t,s,o,l),hs=!1,p=t.memoizedState,s.state=p,J1(t,o,s,r);var m=t.memoizedState;a!==f||p!==m||ko.current||hs?(typeof h=="function"&&(eg(t,n,h,o),m=t.memoizedState),(c=hs||Zb(t,n,c,o,p,m,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=m),s.props=o,s.state=m,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return rg(e,t,n,o,i,r)}function rg(e,t,n,o,r,i){Rx(e,t);var s=(t.flags&128)!==0;if(!o&&!s)return r&&Vb(t,n,!1),Ji(e,t,i);o=t.stateNode,iO.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&s?(t.child=Fl(t,e.child,null,i),t.child=Fl(t,null,a,i)):io(e,t,a,i),t.memoizedState=o.state,r&&Vb(t,n,!0),t.child}function Mx(e){var t=e.stateNode;t.pendingContext?Hb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hb(e,t.context,!1),wy(e,t.containerInfo)}function r5(e,t,n,o,r){return Bl(),hy(r),t.flags|=256,io(e,t,n,o),t.child}var ig={dehydrated:null,treeContext:null,retryLane:0};function sg(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ox(e,t,n){var o=t.pendingProps,r=jt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(r&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),Mt(jt,r&1),e===null)return K2(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=C0(s,o,0,null),e=xa(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=sg(n),t.memoizedState=ig,e):Ly(t,s));if(r=e.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return sO(e,t,s,o,a,r,n);if(i){i=o.fallback,s=t.mode,r=e.child,a=r.sibling;var l={mode:"hidden",children:o.children};return!(s&1)&&t.child!==r?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ps(r,l),o.subtreeFlags=r.subtreeFlags&14680064),a!==null?i=Ps(a,i):(i=xa(i,s,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=e.child.memoizedState,s=s===null?sg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=ig,o}return i=e.child,e=i.sibling,o=Ps(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ly(e,t){return t=C0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function df(e,t,n,o){return o!==null&&hy(o),Fl(t,e.child,null,n),e=Ly(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sO(e,t,n,o,r,i,s){if(n)return t.flags&256?(t.flags&=-257,o=mm(Error(oe(422))),df(e,t,s,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,r=t.mode,o=C0({mode:"visible",children:o.children},r,0,null),i=xa(i,r,s,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Fl(t,e.child,null,s),t.child.memoizedState=sg(s),t.memoizedState=ig,i);if(!(t.mode&1))return df(e,t,s,null);if(r.data==="$!"){if(o=r.nextSibling&&r.nextSibling.dataset,o)var a=o.dgst;return o=a,i=Error(oe(419)),o=mm(i,o,void 0),df(e,t,s,o)}if(a=(s&e.childLanes)!==0,Co||a){if(o=Cn,o!==null){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(o.suspendedLanes|s)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,Zi(e,r),$r(o,e,r,-1))}return Ay(),o=mm(Error(oe(421))),df(e,t,s,o)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=bO.bind(null,e),r._reactRetry=t,null):(e=i.treeContext,Xo=Os(r.nextSibling),Zo=t,Ft=!0,Mr=null,e!==null&&(fr[pr++]=$i,fr[pr++]=Hi,fr[pr++]=Na,$i=e.id,Hi=e.overflow,Na=t),t=Ly(t,o.children),t.flags|=4096,t)}function i5(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Q2(e.return,t,n)}function gm(e,t,n,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Ax(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(io(e,t,o.children,n),o=jt.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&i5(e,n,t);else if(e.tag===19)i5(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Mt(jt,o),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&K1(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),gm(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&K1(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}gm(t,!0,n,null,i);break;case"together":gm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function o1(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ji(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,n=Ps(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ps(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function aO(e,t,n){switch(t.tag){case 3:Mx(t),Bl();break;case 5:sx(t);break;case 1:Lo(t.type)&&G1(t);break;case 4:wy(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Mt(X1,o._currentValue),o._currentValue=r;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Mt(jt,jt.current&1),t.flags|=128,null):n&t.child.childLanes?Ox(e,t,n):(Mt(jt,jt.current&1),e=Ji(e,t,n),e!==null?e.sibling:null);Mt(jt,jt.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return Ax(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Mt(jt,jt.current),o)break;return null;case 22:case 23:return t.lanes=0,Nx(e,t,n)}return Ji(e,t,n)}var Dx,ag,zx,Px;Dx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ag=function(){};zx=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,da(mi.current);var i=null;switch(n){case"input":r=I2(e,r),o=I2(e,o),i=[];break;case"select":r=Xt({},r,{value:void 0}),o=Xt({},o,{value:void 0}),i=[];break;case"textarea":r=M2(e,r),o=M2(e,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=j1)}A2(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Iu.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r?.[c],o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Iu.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ot("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Px=function(e,t,n,o){n!==o&&(t.flags|=4)};function Rc(e,t){if(!Ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Hn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags&14680064,o|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function lO(e,t,n){var o=t.pendingProps;switch(py(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hn(t),null;case 1:return Lo(t.type)&&U1(),Hn(t),null;case 3:return o=t.stateNode,$l(),Dt(ko),Dt(Kn),_y(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(cf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mr!==null&&(mg(Mr),Mr=null))),ag(e,t),Hn(t),null;case 5:xy(t);var r=da(Hu.current);if(n=t.type,e!==null&&t.stateNode!=null)zx(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(oe(166));return Hn(t),null}if(e=da(mi.current),cf(t)){o=t.stateNode,n=t.type;var i=t.memoizedProps;switch(o[ui]=t,o[Fu]=i,e=(t.mode&1)!==0,n){case"dialog":Ot("cancel",o),Ot("close",o);break;case"iframe":case"object":case"embed":Ot("load",o);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),n==="select"&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[ui]=t,e[Fu]=o,Dx(e,t,!1,!1),t.stateNode=e;e:{switch(s=D2(n,o),n){case"dialog":Ot("cancel",e),Ot("close",e),r=o;break;case"iframe":case"object":case"embed":Ot("load",e),r=o;break;case"video":case"audio":for(r=0;rVl&&(t.flags|=128,o=!0,Rc(i,!1),t.lanes=4194304)}else{if(!o)if(e=K1(s),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ft)return Hn(t),null}else 2*nn()-i.renderingStartTime>Vl&&n!==1073741824&&(t.flags|=128,o=!0,Rc(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nn(),t.sibling=null,n=jt.current,Mt(jt,o?n&1|2:n&1),t):(Hn(t),null);case 22:case 23:return Oy(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Bo&1073741824&&(Hn(t),t.subtreeFlags&6&&(t.flags|=8192)):Hn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function cO(e,t){switch(py(t),t.tag){case 1:return Lo(t.type)&&U1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $l(),Dt(ko),Dt(Kn),_y(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xy(t),null;case 13:if(Dt(jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(jt),null;case 4:return $l(),null;case 10:return yy(t.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var ff=!1,Yn=!1,uO=typeof WeakSet=="function"?WeakSet:Set,he=null;function ml(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Jt(e,t,o)}else n.current=null}function lg(e,t,n){try{n()}catch(o){Jt(e,t,o)}}var s5=!1;function dO(e,t){if(U2=H1,e=V9(),dy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(a=s+r),f!==i||o!==0&&f.nodeType!==3||(l=s+o),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===r&&(a=s),p===i&&++d===o&&(l=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(G2={focusedElem:e,selectionRange:n},H1=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ir(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(w){Jt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return m=s5,s5=!1,m}function pu(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&lg(t,n,i)}r=r.next}while(r!==o)}}function _0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function cg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bx(e){var t=e.alternate;t!==null&&(e.alternate=null,Bx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ui],delete t[Fu],delete t[X2],delete t[qM],delete t[YM])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fx(e){return e.tag===5||e.tag===3||e.tag===4}function a5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ug(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=j1));else if(o!==4&&(e=e.child,e!==null))for(ug(e,t,n),e=e.sibling;e!==null;)ug(e,t,n),e=e.sibling}function dg(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(dg(e,t,n),e=e.sibling;e!==null;)dg(e,t,n),e=e.sibling}var Rn=null,Nr=!1;function ls(e,t,n){for(n=n.child;n!==null;)$x(e,t,n),n=n.sibling}function $x(e,t,n){if(hi&&typeof hi.onCommitFiberUnmount=="function")try{hi.onCommitFiberUnmount(h0,n)}catch{}switch(n.tag){case 5:Yn||ml(n,t);case 6:var o=Rn,r=Nr;Rn=null,ls(e,t,n),Rn=o,Nr=r,Rn!==null&&(Nr?(e=Rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rn.removeChild(n.stateNode));break;case 18:Rn!==null&&(Nr?(e=Rn,n=n.stateNode,e.nodeType===8?cm(e.parentNode,n):e.nodeType===1&&cm(e,n),Au(e)):cm(Rn,n.stateNode));break;case 4:o=Rn,r=Nr,Rn=n.stateNode.containerInfo,Nr=!0,ls(e,t,n),Rn=o,Nr=r;break;case 0:case 11:case 14:case 15:if(!Yn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&lg(n,t,s),r=r.next}while(r!==o)}ls(e,t,n);break;case 1:if(!Yn&&(ml(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Jt(n,t,a)}ls(e,t,n);break;case 21:ls(e,t,n);break;case 22:n.mode&1?(Yn=(o=Yn)||n.memoizedState!==null,ls(e,t,n),Yn=o):ls(e,t,n);break;default:ls(e,t,n)}}function l5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uO),t.forEach(function(o){var r=wO.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function Lr(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=s),o&=~i}if(o=r,o=nn()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*pO(o/1960))-o,10e?16:e,Ts===null)var o=!1;else{if(e=Ts,Ts=null,op=0,st&6)throw Error(oe(331));var r=st;for(st|=4,he=e.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lnn()-Ry?wa(e,0):Ny|=n),Io(e,t)}function Yx(e,t){t===0&&(e.mode&1?(t=nf,nf<<=1,!(nf&130023424)&&(nf=4194304)):t=1);var n=uo();e=Zi(e,t),e!==null&&(Sd(e,t,n),Io(e,n))}function bO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yx(e,n)}function wO(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(oe(314))}o!==null&&o.delete(t),Yx(e,n)}var Xx;Xx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)Co=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Co=!1,aO(e,t,n);Co=!!(e.flags&131072)}else Co=!1,Ft&&t.flags&1048576&&Q9(t,Y1,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;o1(e,t),e=t.pendingProps;var r=Pl(t,Kn.current);El(t,n),r=Cy(null,t,o,e,r,n);var i=Ty();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(o)?(i=!0,G1(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,by(t),r.updater=x0,t.stateNode=r,r._reactInternals=t,tg(t,o,e,n),t=rg(null,t,o,!0,i,n)):(t.tag=0,Ft&&i&&fy(t),io(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(o1(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=_O(o),e=Ir(o,e),r){case 0:t=og(null,t,o,e,n);break e;case 1:t=o5(null,t,o,e,n);break e;case 11:t=t5(null,t,o,e,n);break e;case 14:t=n5(null,t,o,Ir(o.type,e),n);break e}throw Error(oe(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),og(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),o5(e,t,o,r,n);case 3:e:{if(Mx(t),e===null)throw Error(oe(387));o=t.pendingProps,i=t.memoizedState,r=i.element,ix(e,t),J1(t,o,null,n);var s=t.memoizedState;if(o=s.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=Hl(Error(oe(423)),t),t=r5(e,t,o,n,r);break e}else if(o!==r){r=Hl(Error(oe(424)),t),t=r5(e,t,o,n,r);break e}else for(Xo=Os(t.stateNode.containerInfo.firstChild),Zo=t,Ft=!0,Mr=null,n=ox(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bl(),o===r){t=Ji(e,t,n);break e}io(e,t,o,n)}t=t.child}return t;case 5:return sx(t),e===null&&K2(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,s=r.children,q2(o,r)?s=null:i!==null&&q2(o,i)&&(t.flags|=32),Rx(e,t),io(e,t,s,n),t.child;case 6:return e===null&&K2(t),null;case 13:return Ox(e,t,n);case 4:return wy(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Fl(t,null,o,n):io(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),t5(e,t,o,r,n);case 7:return io(e,t,t.pendingProps,n),t.child;case 8:return io(e,t,t.pendingProps.children,n),t.child;case 12:return io(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,i=t.memoizedProps,s=r.value,Mt(X1,o._currentValue),o._currentValue=s,i!==null)if(Hr(i.value,s)){if(i.children===r.children&&!ko.current){t=Ji(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Ui(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Q2(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(oe(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Q2(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}io(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,El(t,n),r=Er(r),o=o(r),t.flags|=1,io(e,t,o,n),t.child;case 14:return o=t.type,r=Ir(o,t.pendingProps),r=Ir(o.type,r),n5(e,t,o,r,n);case 15:return Ix(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Ir(o,r),o1(e,t),t.tag=1,Lo(o)?(e=!0,G1(t)):e=!1,El(t,n),Sx(t,o,r),tg(t,o,r,n),rg(null,t,o,!0,e,n);case 19:return Ax(e,t,n);case 22:return Nx(e,t,n)}throw Error(oe(156,t.tag))};function Zx(e,t){return E9(e,t)}function xO(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(e,t,n,o){return new xO(e,t,n,o)}function Dy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _O(e){if(typeof e=="function")return Dy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ey)return 11;if(e===ty)return 14}return 2}function Ps(e,t){var n=e.alternate;return n===null?(n=mr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function s1(e,t,n,o,r,i){var s=2;if(o=e,typeof e=="function")Dy(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case sl:return xa(n.children,r,i,t);case Q3:s=8,r|=8;break;case T2:return e=mr(12,n,t,r|2),e.elementType=T2,e.lanes=i,e;case S2:return e=mr(13,n,t,r),e.elementType=S2,e.lanes=i,e;case k2:return e=mr(19,n,t,r),e.elementType=k2,e.lanes=i,e;case s9:return C0(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case r9:s=10;break e;case i9:s=9;break e;case ey:s=11;break e;case ty:s=14;break e;case ps:s=16,o=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=mr(s,n,t,r),t.elementType=e,t.type=o,t.lanes=i,t}function xa(e,t,n,o){return e=mr(7,e,o,t),e.lanes=n,e}function C0(e,t,n,o){return e=mr(22,e,o,t),e.elementType=s9,e.lanes=n,e.stateNode={isHidden:!1},e}function ym(e,t,n){return e=mr(6,e,null,t),e.lanes=n,e}function vm(e,t,n){return t=mr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function EO(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kh(0),this.expirationTimes=Kh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kh(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function zy(e,t,n,o,r,i,s,a,l){return e=new EO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},by(i),e}function CO(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e_)}catch(e){console.error(e)}}e_(),e9.exports=sr;var mn=e9.exports;const IO=p0(mn);var $y,g5=mn;$y=g5.createRoot,g5.hydrateRoot;var t_={exports:{}},I0={};var NO=u,RO=Symbol.for("react.element"),MO=Symbol.for("react.fragment"),OO=Object.prototype.hasOwnProperty,AO=NO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,DO={key:!0,ref:!0,__self:!0,__source:!0};function n_(e,t,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)OO.call(t,o)&&!DO.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:RO,type:e,key:i,ref:s,props:r,_owner:AO.current}}I0.Fragment=MO;I0.jsx=n_;I0.jsxs=n_;t_.exports=I0;var T=t_.exports;const sp=Math.min,_a=Math.max,ap=Math.round,mf=Math.floor,Ws=e=>({x:e,y:e}),zO={left:"right",right:"left",bottom:"top",top:"bottom"},PO={start:"end",end:"start"};function y5(e,t,n){return _a(e,sp(t,n))}function Hy(e,t){return typeof e=="function"?e(t):e}function Wl(e){return e.split("-")[0]}function Vy(e){return e.split("-")[1]}function o_(e){return e==="x"?"y":"x"}function r_(e){return e==="y"?"height":"width"}function Gu(e){return["top","bottom"].includes(Wl(e))?"y":"x"}function i_(e){return o_(Gu(e))}function BO(e,t,n){n===void 0&&(n=!1);const o=Vy(e),r=i_(e),i=r_(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=lp(s)),[s,lp(s)]}function FO(e){const t=lp(e);return[gg(e),t,gg(t)]}function gg(e){return e.replace(/start|end/g,t=>PO[t])}function $O(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function HO(e,t,n,o){const r=Vy(e);let i=$O(Wl(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(gg)))),i}function lp(e){return e.replace(/left|right|bottom|top/g,t=>zO[t])}function VO(e){return{top:0,right:0,bottom:0,left:0,...e}}function WO(e){return typeof e!="number"?VO(e):{top:e,right:e,bottom:e,left:e}}function cp(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function v5(e,t,n){let{reference:o,floating:r}=e;const i=Gu(t),s=i_(t),a=r_(s),l=Wl(t),c=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Vy(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const jO=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=v5(c,o,l),p=o,h={},m=0;for(let g=0;gS<=0)){var A,M;const S=(((A=i.flip)==null?void 0:A.index)||0)+1,O=C[S];if(O)return{data:{index:S,overflows:N},reset:{placement:O}};let R=(M=N.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:M.placement;if(!R)switch(h){case"bestFit":{var z;const $=(z=N.filter(D=>{if(E){const I=Gu(D.placement);return I===v||I==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((D,I)=>D[1]-I[1])[0])==null?void 0:z[0];$&&(R=$);break}case"initialPlacement":R=a;break}if(r!==R)return{reset:{placement:R}}}return{}}}},GO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=Hy(e,t),c={x:n,y:o},d=await s_(t,l),f=Gu(Wl(r)),p=o_(f);let h=c[p],m=c[f];if(i){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=h+d[b],x=h-d[y];h=y5(v,h,x)}if(s){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=m+d[b],x=m-d[y];m=y5(v,m,x)}const g=a.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[f]:s}}}}}};function N0(){return typeof window<"u"}function lc(e){return a_(e)?(e.nodeName||"").toLowerCase():"#document"}function Jo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ei(e){var t;return(t=(a_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a_(e){return N0()?e instanceof Node||e instanceof Jo(e).Node:!1}function Vr(e){return N0()?e instanceof Element||e instanceof Jo(e).Element:!1}function bi(e){return N0()?e instanceof HTMLElement||e instanceof Jo(e).HTMLElement:!1}function b5(e){return!N0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot}function Nd(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function qO(e){return["table","td","th"].includes(lc(e))}function R0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wy(e){const t=jy(),n=Vr(e)?Wr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function YO(e){let t=js(e);for(;bi(t)&&!jl(t);){if(Wy(t))return t;if(R0(t))return null;t=js(t)}return null}function jy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jl(e){return["html","body","#document"].includes(lc(e))}function Wr(e){return Jo(e).getComputedStyle(e)}function M0(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function js(e){if(lc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||b5(e)&&e.host||Ei(e);return b5(t)?t.host:t}function l_(e){const t=js(e);return jl(t)?e.ownerDocument?e.ownerDocument.body:e.body:bi(t)&&Nd(t)?t:l_(t)}function qu(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=l_(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Jo(r);if(i){const a=yg(s);return t.concat(s,s.visualViewport||[],Nd(r)?r:[],a&&n?qu(a):[])}return t.concat(r,qu(r,[],n))}function yg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function c_(e){const t=Wr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=bi(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=ap(n)!==i||ap(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Uy(e){return Vr(e)?e:e.contextElement}function Tl(e){const t=Uy(e);if(!bi(t))return Ws(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=c_(t);let s=(i?ap(n.width):n.width)/o,a=(i?ap(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const XO=Ws(0);function u_(e){const t=Jo(e);return!jy()||!t.visualViewport?XO:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZO(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Jo(e)?!1:t}function Aa(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Uy(e);let s=Ws(1);t&&(o?Vr(o)&&(s=Tl(o)):s=Tl(e));const a=ZO(i,n,o)?u_(i):Ws(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const p=Jo(i),h=o&&Vr(o)?Jo(o):o;let m=p,g=yg(m);for(;g&&o&&h!==m;){const b=Tl(g),y=g.getBoundingClientRect(),v=Wr(g),x=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*b.x,w=y.top+(g.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=x,c+=w,m=Jo(g),g=yg(m)}}return cp({width:d,height:f,x:l,y:c})}function JO(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Ei(o),a=t?R0(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ws(1);const d=Ws(0),f=bi(o);if((f||!f&&!i)&&((lc(o)!=="body"||Nd(s))&&(l=M0(o)),bi(o))){const p=Aa(o);c=Tl(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function KO(e){return Array.from(e.getClientRects())}function vg(e,t){const n=M0(e).scrollLeft;return t?t.left+n:Aa(Ei(e)).left+n}function QO(e){const t=Ei(e),n=M0(e),o=e.ownerDocument.body,r=_a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=_a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+vg(e);const a=-n.scrollTop;return Wr(o).direction==="rtl"&&(s+=_a(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function eA(e,t){const n=Jo(e),o=Ei(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const c=jy();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}function tA(e,t){const n=Aa(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=bi(e)?Tl(e):Ws(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=o*i.y;return{width:s,height:a,x:l,y:c}}function w5(e,t,n){let o;if(t==="viewport")o=eA(e,n);else if(t==="document")o=QO(Ei(e));else if(Vr(t))o=tA(t,n);else{const r=u_(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return cp(o)}function d_(e,t){const n=js(e);return n===t||!Vr(n)||jl(n)?!1:Wr(n).position==="fixed"||d_(n,t)}function nA(e,t){const n=t.get(e);if(n)return n;let o=qu(e,[],!1).filter(a=>Vr(a)&&lc(a)!=="body"),r=null;const i=Wr(e).position==="fixed";let s=i?js(e):e;for(;Vr(s)&&!jl(s);){const a=Wr(s),l=Wy(s);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Nd(s)&&!l&&d_(e,s))?o=o.filter(d=>d!==s):r=a,s=js(s)}return t.set(e,o),o}function oA(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?R0(t)?[]:nA(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,d)=>{const f=w5(t,d,r);return c.top=_a(f.top,c.top),c.right=sp(f.right,c.right),c.bottom=sp(f.bottom,c.bottom),c.left=_a(f.left,c.left),c},w5(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function rA(e){const{width:t,height:n}=c_(e);return{width:t,height:n}}function iA(e,t,n){const o=bi(t),r=Ei(t),i=n==="fixed",s=Aa(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ws(0);if(o||!o&&!i)if((lc(t)!=="body"||Nd(r))&&(a=M0(t)),o){const h=Aa(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&(l.x=vg(r));let c=0,d=0;if(r&&!o&&!i){const h=r.getBoundingClientRect();d=h.top+a.scrollTop,c=h.left+a.scrollLeft-vg(r,h)}const f=s.left+a.scrollLeft-l.x-c,p=s.top+a.scrollTop-l.y-d;return{x:f,y:p,width:s.width,height:s.height}}function bm(e){return Wr(e).position==="static"}function x5(e,t){if(!bi(e)||Wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ei(e)===n&&(n=n.ownerDocument.body),n}function f_(e,t){const n=Jo(e);if(R0(e))return n;if(!bi(e)){let r=js(e);for(;r&&!jl(r);){if(Vr(r)&&!bm(r))return r;r=js(r)}return n}let o=x5(e,t);for(;o&&qO(o)&&bm(o);)o=x5(o,t);return o&&jl(o)&&bm(o)&&!Wy(o)?n:o||YO(e)||n}const sA=async function(e){const t=this.getOffsetParent||f_,n=this.getDimensions,o=await n(e.floating);return{reference:iA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function aA(e){return Wr(e).direction==="rtl"}const lA={convertOffsetParentRelativeRectToViewportRelativeRect:JO,getDocumentElement:Ei,getClippingRect:oA,getOffsetParent:f_,getElementRects:sA,getClientRects:KO,getDimensions:rA,getScale:Tl,isElement:Vr,isRTL:aA};function cA(e,t){let n=null,o;const r=Ei(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const h=mf(d),m=mf(r.clientWidth-(c+f)),g=mf(r.clientHeight-(d+p)),b=mf(c),v={rootMargin:-h+"px "+-m+"px "+-g+"px "+-b+"px",threshold:_a(0,sp(1,l))||1};let x=!0;function w(_){const E=_[0].intersectionRatio;if(E!==l){if(!x)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,v)}n.observe(e)}return s(!0),i}function p_(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Uy(e),d=r||i?[...c?qu(c):[],...qu(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=c&&a?cA(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,g=l?Aa(e):null;l&&b();function b(){const y=Aa(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const uA=GO,dA=UO,fA=(e,t,n)=>{const o=new Map,r={platform:lA,...n},i={...r.platform,_c:o};return jO(e,t,{...r,platform:i})};function h_(){const[e,t]=u.useReducer(n=>n+1,0);return t}function pA(){return fo(Cd)}function Mo(e,t,n,o){u.useEffect(()=>(e.subscribe(t),()=>{e.unsubscribe(t)}),[e,t,o,...n??[]])}function fo(e,t){const n=e.last===void 0?t:i(e.last),[o,r]=u.useState(n);return Mo(e,(...s)=>r(i(s)),[]),o;function i(s){return s[0]===null?void 0:s[0]}}function hA(e,t){const n=u.useRef(null);return u.useEffect(()=>{e&&(typeof e=="function"?e(n.current):e.current=n.current)},[e]),n}function mA(){for(var e=arguments.length,t=new Array(e),n=0;no=>{t.forEach(r=>r(o))},t)}const O0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Gy(e){return"nodeType"in e}function mo(e){var t,n;return e?cc(e)?e:Gy(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qy(e){const{Document:t}=mo(e);return e instanceof t}function Rd(e){return cc(e)?!1:e instanceof mo(e).HTMLElement}function m_(e){return e instanceof mo(e).SVGElement}function uc(e){return e?cc(e)?e.document:Gy(e)?qy(e)?e:Rd(e)||m_(e)?e.ownerDocument:document:document:document}const Tr=O0?u.useLayoutEffect:u.useEffect;function A0(e){const t=u.useRef(e);return Tr(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r{e.current=setInterval(o,r)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Yu(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Tr(()=>{n.current!==e&&(n.current=e)},t),n}function Md(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function up(e){const t=A0(e),n=u.useRef(null),o=u.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function dp(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let wm={};function Od(e,t){return u.useMemo(()=>{if(t)return t;const n=wm[e]==null?0:wm[e]+1;return wm[e]=n,e+"-"+n},[e,t])}function g_(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{const a=Object.entries(s);for(const[l,c]of a){const d=i[l];d!=null&&(i[l]=d+e*c)}return i},{...t})}}const Sl=g_(1),fp=g_(-1);function yA(e){return"clientX"in e&&"clientY"in e}function D0(e){if(!e)return!1;const{KeyboardEvent:t}=mo(e.target);return t&&e instanceof t}function vA(e){if(!e)return!1;const{TouchEvent:t}=mo(e.target);return t&&e instanceof t}function pp(e){if(vA(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return yA(e)?{x:e.clientX,y:e.clientY}:null}const Ki=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ki.Translate.toString(e),Ki.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),_5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function bA(e){return e.matches(_5)?e:e.querySelector(_5)}const wA={display:"none"};function xA(e){let{id:t,value:n}=e;return V.createElement("div",{id:t,style:wA},n)}function _A(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return V.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function EA(){const[e,t]=u.useState("");return{announce:u.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const y_=u.createContext(null);function CA(e){const t=u.useContext(y_);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function TA(){const[e]=u.useState(()=>new Set),t=u.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[u.useCallback(o=>{let{type:r,event:i}=o;e.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,i)})},[e]),t]}const SA={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},xA={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _A(e){let{announcements:t=xA,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=wA}=e;const{announce:i,announcement:s}=yA(),a=Od("DndLiveRegion"),[l,c]=u.useState(!1);if(u.useEffect(()=>{c(!0)},[]),vA(u.useMemo(()=>({onDragStart(f){let{active:p}=f;i(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:h}=f;t.onDragMove&&i(t.onDragMove({active:p,over:h}))},onDragOver(f){let{active:p,over:h}=f;i(t.onDragOver({active:p,over:h}))},onDragEnd(f){let{active:p,over:h}=f;i(t.onDragEnd({active:p,over:h}))},onDragCancel(f){let{active:p,over:h}=f;i(t.onDragCancel({active:p,over:h}))}}),[i,t])),!l)return null;const d=V.createElement(V.Fragment,null,V.createElement(mA,{id:o,value:r.draggable}),V.createElement(gA,{id:a,announcement:s}));return n?mn.createPortal(d,n):d}var hn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(hn||(hn={}));function hp(){}function EA(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function CA(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(o=>o!=null),[...t])}const jr=Object.freeze({x:0,y:0});function TA(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function SA(e,t){const n=pp(e);if(!n)return"0 0";const o={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function kA(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function LA(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function IA(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function E5(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const NA=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=E5(t,t.left,t.top),i=[];for(const s of o){const{id:a}=s,l=n.get(a);if(l){const c=TA(E5(l),r);i.push({id:a,data:{droppableContainer:s,value:c}})}}return i.sort(kA)};function RA(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=r-o,a=i-n;if(o{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:s}=i,a=n.get(s);if(a){const l=RA(a,t);l>0&&r.push({id:s,data:{droppableContainer:i,value:l}})}}return r.sort(LA)};function OA(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function v_(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jr}function AA(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const DA=AA(1);function b_(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zA(e,t,n){const o=b_(t);if(!o)return e;const{scaleX:r,scaleY:i,x:s,y:a}=o,l=e.left-s-(1-r)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l}}const PA={ignoreTransform:!1};function uc(e,t){t===void 0&&(t=PA);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:d}=mo(e).getComputedStyle(e);c&&(n=zA(n,c,d))}const{top:o,left:r,width:i,height:s,bottom:a,right:l}=n;return{top:o,left:r,width:i,height:s,bottom:a,right:l}}function C5(e){return uc(e,{ignoreTransform:!0})}function BA(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function FA(e,t){return t===void 0&&(t=mo(e).getComputedStyle(e)),t.position==="fixed"}function $A(e,t){t===void 0&&(t=mo(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function Yy(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(qy(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Rd(r)||m_(r)||n.includes(r))return n;const i=mo(e).getComputedStyle(r);return r!==e&&$A(r,i)&&n.push(r),FA(r,i)?n:o(r.parentNode)}return e?o(e):n}function w_(e){const[t]=Yy(e,1);return t??null}function wm(e){return!O0||!e?null:lc(e)?e:Gy(e)?qy(e)||e===cc(e).scrollingElement?window:Rd(e)?e:null:null}function x_(e){return lc(e)?e.scrollX:e.scrollLeft}function __(e){return lc(e)?e.scrollY:e.scrollTop}function wg(e){return{x:x_(e),y:__(e)}}var xn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xn||(xn={}));function E_(e){return!O0||!e?!1:e===document.scrollingElement}function C_(e){const t={x:0,y:0},n=E_(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:r,isLeft:i,isBottom:s,isRight:a,maxScroll:o,minScroll:t}}const HA={x:.2,y:.2};function VA(e,t,n,o,r){let{top:i,left:s,right:a,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=HA);const{isTop:c,isBottom:d,isLeft:f,isRight:p}=C_(e),h={x:0,y:0},m={x:0,y:0},g={height:t.height*r.y,width:t.width*r.x};return!c&&i<=t.top+g.height?(h.y=xn.Backward,m.y=o*Math.abs((t.top+g.height-i)/g.height)):!d&&l>=t.bottom-g.height&&(h.y=xn.Forward,m.y=o*Math.abs((t.bottom-g.height-l)/g.height)),!p&&a>=t.right-g.width?(h.x=xn.Forward,m.x=o*Math.abs((t.right-g.width-a)/g.width)):!f&&s<=t.left+g.width&&(h.x=xn.Backward,m.x=o*Math.abs((t.left+g.width-s)/g.width)),{direction:h,speed:m}}function WA(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function T_(e){return e.reduce((t,n)=>Tl(t,wg(n)),jr)}function jA(e){return e.reduce((t,n)=>t+x_(n),0)}function UA(e){return e.reduce((t,n)=>t+__(n),0)}function S_(e,t){if(t===void 0&&(t=uc),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);w_(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const GA=[["x",["left","right"],jA],["y",["top","bottom"],UA]];let Xy=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Yy(n),r=T_(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,a]of GA)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(o),d=r[i]-c;return this.rect[l]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class gu{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function qA(e){const{EventTarget:t}=mo(e);return e instanceof t?e:cc(e)}function xm(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var dr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(dr||(dr={}));function T5(e){e.preventDefault()}function YA(e){e.stopPropagation()}var gt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(gt||(gt={}));const k_={start:[gt.Space,gt.Enter],cancel:[gt.Esc],end:[gt.Space,gt.Enter]},XA=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case gt.Right:return{...n,x:n.x+25};case gt.Left:return{...n,x:n.x-25};case gt.Down:return{...n,y:n.y+25};case gt.Up:return{...n,y:n.y-25}}};class L_{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new gu(cc(n)),this.windowListeners=new gu(mo(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(dr.Resize,this.handleCancel),this.windowListeners.add(dr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(dr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&S_(o),n(jr)}handleKeyDown(t){if(D0(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=k_,coordinateGetter:s=XA,scrollBehavior:a="smooth"}=r,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,d=c?{x:c.left,y:c.top}:jr;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:n,context:o.current,currentCoordinates:d});if(f){const p=fp(f,d),h={x:0,y:0},{scrollableAncestors:m}=o.current;for(const g of m){const b=t.code,{isTop:y,isRight:v,isLeft:x,isBottom:w,maxScroll:_,minScroll:E}=C_(g),C=WA(g),k={x:Math.min(b===gt.Right?C.right-C.width/2:C.right,Math.max(b===gt.Right?C.left:C.left+C.width/2,f.x)),y:Math.min(b===gt.Down?C.bottom-C.height/2:C.bottom,Math.max(b===gt.Down?C.top:C.top+C.height/2,f.y))},L=b===gt.Right&&!v||b===gt.Left&&!x,N=b===gt.Down&&!w||b===gt.Up&&!y;if(L&&k.x!==f.x){const A=g.scrollLeft+p.x,M=b===gt.Right&&A<=_.x||b===gt.Left&&A>=E.x;if(M&&!p.y){g.scrollTo({left:A,behavior:a});return}M?h.x=g.scrollLeft-A:h.x=b===gt.Right?g.scrollLeft-_.x:g.scrollLeft-E.x,h.x&&g.scrollBy({left:-h.x,behavior:a});break}else if(N&&k.y!==f.y){const A=g.scrollTop+p.y,M=b===gt.Down&&A<=_.y||b===gt.Up&&A>=E.y;if(M&&!p.x){g.scrollTo({top:A,behavior:a});return}M?h.y=g.scrollTop-A:h.y=b===gt.Down?g.scrollTop-_.y:g.scrollTop-E.y,h.y&&g.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,Tl(fp(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}L_.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=k_,onActivation:r}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(o.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function S5(e){return!!(e&&"distance"in e)}function k5(e){return!!(e&&"delay"in e)}class Zy{constructor(t,n,o){var r;o===void 0&&(o=qA(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=cc(s),this.documentListeners=new gu(this.document),this.listeners=new gu(o),this.windowListeners=new gu(mo(s)),this.initialCoordinates=(r=pp(i))!=null?r:jr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(dr.Resize,this.handleCancel),this.windowListeners.add(dr.DragStart,T5),this.windowListeners.add(dr.VisibilityChange,this.handleCancel),this.windowListeners.add(dr.ContextMenu,T5),this.documentListeners.add(dr.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(k5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(S5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(dr.Click,YA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(dr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const l=(n=pp(t))!=null?n:jr,c=fp(r,l);if(!o&&a){if(S5(a)){if(a.tolerance!=null&&xm(c,a.tolerance))return this.handleCancel();if(xm(c,a.distance))return this.handleStart()}return k5(a)&&xm(c,a.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===gt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const ZA={move:{name:"pointermove"},end:{name:"pointerup"}};class Jy extends Zy{constructor(t){const{event:n}=t,o=cc(n.target);super(t,ZA,o)}}Jy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];const JA={move:{name:"mousemove"},end:{name:"mouseup"}};var xg;(function(e){e[e.RightClick=2]="RightClick"})(xg||(xg={}));class KA extends Zy{constructor(t){super(t,JA,cc(t.event.target))}}KA.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===xg.RightClick?!1:(o?.({event:n}),!0)}}];const _m={move:{name:"touchmove"},end:{name:"touchend"}};class QA extends Zy{constructor(t){super(t,_m)}static setup(){return window.addEventListener(_m.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(_m.move.name,t)};function t(){}}}QA.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var yu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(yu||(yu={}));var mp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mp||(mp={}));function eD(e){let{acceleration:t,activator:n=yu.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:s=5,order:a=mp.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=nD({delta:f,disabled:!i}),[m,g]=uA(),b=u.useRef({x:0,y:0}),y=u.useRef({x:0,y:0}),v=u.useMemo(()=>{switch(n){case yu.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case yu.DraggableRect:return r}},[n,r,l]),x=u.useRef(null),w=u.useCallback(()=>{const E=x.current;if(!E)return;const C=b.current.x*y.current.x,k=b.current.y*y.current.y;E.scrollBy(C,k)},[]),_=u.useMemo(()=>a===mp.TreeOrder?[...c].reverse():c,[a,c]);u.useEffect(()=>{if(!i||!c.length||!v){g();return}for(const E of _){if(o?.(E)===!1)continue;const C=c.indexOf(E),k=d[C];if(!k)continue;const{direction:L,speed:N}=VA(E,k,v,t,p);for(const A of["x","y"])h[A][L[A]]||(N[A]=0,L[A]=0);if(N.x>0||N.y>0){g(),x.current=E,m(w,s),b.current=N,y.current=L;return}}b.current={x:0,y:0},y.current={x:0,y:0},g()},[t,w,o,g,i,s,JSON.stringify(v),JSON.stringify(h),m,c,_,d,JSON.stringify(p)])}const tD={x:{[xn.Backward]:!1,[xn.Forward]:!1},y:{[xn.Backward]:!1,[xn.Forward]:!1}};function nD(e){let{delta:t,disabled:n}=e;const o=dp(t);return Md(r=>{if(n||!o||!r)return tD;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[xn.Backward]:r.x[xn.Backward]||i.x===-1,[xn.Forward]:r.x[xn.Forward]||i.x===1},y:{[xn.Backward]:r.y[xn.Backward]||i.y===-1,[xn.Forward]:r.y[xn.Forward]||i.y===1}}},[n,t,o])}function oD(e,t){const n=t!==null?e.get(t):void 0,o=n?n.node.current:null;return Md(r=>{var i;return t===null?null:(i=o??r)!=null?i:null},[o,t])}function rD(e,t){return u.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,i=r.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,o)}));return[...n,...i]},[]),[e,t])}var Xu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Xu||(Xu={}));var _g;(function(e){e.Optimized="optimized"})(_g||(_g={}));const L5=new Map;function iD(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,s]=u.useState(null),{frequency:a,measure:l,strategy:c}=r,d=u.useRef(e),f=b(),p=Yu(f),h=u.useCallback(function(y){y===void 0&&(y=[]),!p.current&&s(v=>v===null?y:v.concat(y.filter(x=>!v.includes(x))))},[p]),m=u.useRef(null),g=Md(y=>{if(f&&!n)return L5;if(!y||y===L5||d.current!==e||i!=null){const v=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){v.set(x.id,x.rect.current);continue}const w=x.node.current,_=w?new Xy(l(w),w):null;x.rect.current=_,_&&v.set(x.id,_)}return v}return y},[e,i,n,f,l]);return u.useEffect(()=>{d.current=e},[e]),u.useEffect(()=>{f||h()},[n,f]),u.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),u.useEffect(()=>{f||typeof a!="number"||m.current!==null||(m.current=setTimeout(()=>{h(),m.current=null},a))},[a,f,h,...o]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function b(){switch(c){case Xu.Always:return!1;case Xu.BeforeDragging:return n;default:return!n}}}function Ky(e,t){return Md(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function sD(e,t){return Ky(e,t)}function aD(e){let{callback:t,disabled:n}=e;const o=A0(t),r=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(o)},[o,n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function z0(e){let{callback:t,disabled:n}=e;const o=A0(t),r=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(o)},[n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function lD(e){return new Xy(uc(e),e)}function I5(e,t,n){t===void 0&&(t=lD);const[o,r]=u.useReducer(a,null),i=aD({callback(l){if(e)for(const c of l){const{type:d,target:f}=c;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){r();break}}}}),s=z0({callback:r});return Tr(()=>{r(),e?(s?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),i?.disconnect())},[e]),o;function a(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const d=t(e);return JSON.stringify(l)===JSON.stringify(d)?l:d}}function cD(e){const t=Ky(e);return v_(e,t)}const N5=[];function uD(e){const t=u.useRef(e),n=Md(o=>e?o&&o!==N5&&e&&t.current&&e.parentNode===t.current.parentNode?o:Yy(e):N5,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function dD(e){const[t,n]=u.useState(null),o=u.useRef(e),r=u.useCallback(i=>{const s=wm(i.target);s&&n(a=>a?(a.set(s,wg(s)),new Map(a)):null)},[]);return u.useEffect(()=>{const i=o.current;if(e!==i){s(i);const a=e.map(l=>{const c=wm(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,wg(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),o.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(l=>{const c=wm(l);c?.removeEventListener("scroll",r)})}},[r,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Tl(i,s),jr):T_(e):jr,[e,t])}function R5(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==jr;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?fp(e,n.current):jr}function fD(e){u.useEffect(()=>{if(!O0)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function pD(e,t){return u.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:i}=o;return n[r]=s=>{i(s,t)},n},{}),[e,t])}function I_(e){return u.useMemo(()=>e?BA(e):null,[e])}const Em=[];function hD(e,t){t===void 0&&(t=uc);const[n]=e,o=I_(n?mo(n):null),[r,i]=u.useReducer(a,Em),s=z0({callback:i});return e.length>0&&r===Em&&i(),Tr(()=>{e.length?e.forEach(l=>s?.observe(l)):(s?.disconnect(),i())},[e]),r;function a(){return e.length?e.map(l=>E_(l)?o:new Xy(t(l),l)):Em}}function N_(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Rd(t)?t:e}function mD(e){let{measure:t}=e;const[n,o]=u.useState(null),r=u.useCallback(c=>{for(const{target:d}of c)if(Rd(d)){o(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),i=z0({callback:r}),s=u.useCallback(c=>{const d=N_(c);i?.disconnect(),d&&i?.observe(d),o(d?t(d):null)},[t,i]),[a,l]=up(s);return u.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const gD=[{sensor:Jy,options:{}},{sensor:L_,options:{}}],yD={current:{}},a1={draggable:{measure:C5},droppable:{measure:C5,strategy:Xu.WhileDragging,frequency:_g.Optimized},dragOverlay:{measure:uc}};class vu extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const vD={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new vu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:hp},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:a1,measureDroppableContainers:hp,windowRect:null,measuringScheduled:!1},R_={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:hp,draggableNodes:new Map,over:null,measureDroppableContainers:hp},Ad=u.createContext(R_),M_=u.createContext(vD);function bD(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new vu}}}function wD(e,t){switch(t.type){case hn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case hn.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case hn.DragEnd:case hn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case hn.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new vu(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case hn.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const s=new vu(e.droppable.containers);return s.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case hn.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new vu(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function xD(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=u.useContext(Ad),i=dp(o),s=dp(n?.id);return u.useEffect(()=>{if(!t&&!o&&i&&s!=null){if(!D0(i)||document.activeElement===i.target)return;const a=r.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const d of[l.current,c.current]){if(!d)continue;const f=pA(d);if(f){f.focus();break}}})}},[o,t,r,s,i]),null}function O_(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}function _D(e){return u.useMemo(()=>({draggable:{...a1.draggable,...e?.draggable},droppable:{...a1.droppable,...e?.droppable},dragOverlay:{...a1.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function ED(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=u.useRef(!1),{x:s,y:a}=typeof r=="boolean"?{x:r,y:r}:r;Tr(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!o)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const d=n(c),f=v_(d,o);if(s||(f.x=0),a||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=w_(c);p&&p.scrollBy({top:f.y,left:f.x})}},[t,s,a,o,n])}const P0=u.createContext({...jr,scaleX:1,scaleY:1});var hs;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(hs||(hs={}));const CD=u.memo(function(t){var n,o,r,i;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:d=gD,collisionDetection:f=MA,measuring:p,modifiers:h,...m}=t;const g=u.useReducer(wD,void 0,bD),[b,y]=g,[v,x]=bA(),[w,_]=u.useState(hs.Uninitialized),E=w===hs.Initialized,{draggable:{active:C,nodes:k,translate:L},droppable:{containers:N}}=b,A=C?k.get(C):null,M=u.useRef({initial:null,translated:null}),z=u.useMemo(()=>{var Be;return C!=null?{id:C,data:(Be=A?.data)!=null?Be:yD,rect:M}:null},[C,A]),S=u.useRef(null),[O,R]=u.useState(null),[$,D]=u.useState(null),I=Yu(m,Object.values(m)),F=Od("DndDescribedBy",s),P=u.useMemo(()=>N.getEnabled(),[N]),H=_D(p),{droppableRects:W,measureDroppableContainers:U,measuringScheduled:j}=iD(P,{dragging:E,dependencies:[L.x,L.y],config:H.droppable}),G=oD(k,C),Y=u.useMemo(()=>$?pp($):null,[$]),B=Me(),q=sD(G,H.draggable.measure);ED({activeNode:C?k.get(C):null,config:B.layoutShiftCompensation,initialRect:q,measure:H.draggable.measure});const X=I5(G,H.draggable.measure,q),de=I5(G?G.parentElement:null),ie=u.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fe=N.getNodeFor((n=ie.current.over)==null?void 0:n.id),ee=mD({measure:H.dragOverlay.measure}),ve=(o=ee.nodeRef.current)!=null?o:G,ze=E?(r=ee.rect)!=null?r:X:null,me=!!(ee.nodeRef.current&&ee.rect),te=cD(me?null:X),_e=I_(ve?mo(ve):null),Le=uD(E?fe??G:null),J=hD(Le),ce=O_(h,{transform:{x:L.x-te.x,y:L.y-te.y,scaleX:1,scaleY:1},activatorEvent:$,active:z,activeNodeRect:X,containerNodeRect:de,draggingNodeRect:ze,over:ie.current.over,overlayNodeRect:ee.rect,scrollableAncestors:Le,scrollableAncestorRects:J,windowRect:_e}),be=Y?Tl(Y,L):null,we=dD(Le),vt=R5(we),Qt=R5(we,[X]),zt=Tl(ce,vt),Vt=ze?DA(ze,ce):null,at=z&&Vt?f({active:z,collisionRect:Vt,droppableRects:W,droppableContainers:P,pointerCoordinates:be}):null,cn=IA(at,"id"),[it,Pt]=u.useState(null),un=me?ce:Tl(ce,Qt),Qn=OA(un,(i=it?.rect)!=null?i:null,X),Zt=u.useCallback((Be,ht)=>{let{sensor:tt,options:mt}=ht;if(S.current==null)return;const en=k.get(S.current);if(!en)return;const Nn=Be.nativeEvent,on=new tt({active:S.current,activeNode:en,event:Nn,options:mt,context:ie,onStart(rn){const to=S.current;if(to==null)return;const wo=k.get(to);if(!wo)return;const{onDragStart:Jr}=I.current,no={active:{id:to,data:wo.data,rect:M}};mn.unstable_batchedUpdates(()=>{Jr?.(no),_(hs.Initializing),y({type:hn.DragStart,initialCoordinates:rn,active:to}),v({type:"onDragStart",event:no})})},onMove(rn){y({type:hn.DragMove,coordinates:rn})},onEnd:eo(hn.DragEnd),onCancel:eo(hn.DragCancel)});mn.unstable_batchedUpdates(()=>{R(on),D(Be.nativeEvent)});function eo(rn){return async function(){const{active:wo,collisions:Jr,over:no,scrollAdjustedTranslate:is}=ie.current;let kr=null;if(wo&&is){const{cancelDrop:ur}=I.current;kr={activatorEvent:Nn,active:wo,collisions:Jr,delta:is,over:no},rn===hn.DragEnd&&typeof ur=="function"&&await Promise.resolve(ur(kr))&&(rn=hn.DragCancel)}S.current=null,mn.unstable_batchedUpdates(()=>{y({type:rn}),_(hs.Uninitialized),Pt(null),R(null),D(null);const ur=rn===hn.DragEnd?"onDragEnd":"onDragCancel";if(kr){const Ec=I.current[ur];Ec?.(kr),v({type:ur,event:kr})}})}}},[k]),dn=u.useCallback((Be,ht)=>(tt,mt)=>{const en=tt.nativeEvent,Nn=k.get(mt);if(S.current!==null||!Nn||en.dndKit||en.defaultPrevented)return;const on={active:Nn};Be(tt,ht.options,on)===!0&&(en.dndKit={capturedBy:ht.sensor},S.current=mt,Zt(tt,ht))},[k,Zt]),vn=rD(d,dn);fD(d),Tr(()=>{X&&w===hs.Initializing&&_(hs.Initialized)},[X,w]),u.useEffect(()=>{const{onDragMove:Be}=I.current,{active:ht,activatorEvent:tt,collisions:mt,over:en}=ie.current;if(!ht||!tt)return;const Nn={active:ht,activatorEvent:tt,collisions:mt,delta:{x:zt.x,y:zt.y},over:en};mn.unstable_batchedUpdates(()=>{Be?.(Nn),v({type:"onDragMove",event:Nn})})},[zt.x,zt.y]),u.useEffect(()=>{const{active:Be,activatorEvent:ht,collisions:tt,droppableContainers:mt,scrollAdjustedTranslate:en}=ie.current;if(!Be||S.current==null||!ht||!en)return;const{onDragOver:Nn}=I.current,on=mt.get(cn),eo=on&&on.rect.current?{id:on.id,rect:on.rect.current,data:on.data,disabled:on.disabled}:null,rn={active:Be,activatorEvent:ht,collisions:tt,delta:{x:en.x,y:en.y},over:eo};mn.unstable_batchedUpdates(()=>{Pt(eo),Nn?.(rn),v({type:"onDragOver",event:rn})})},[cn]),Tr(()=>{ie.current={activatorEvent:$,active:z,activeNode:G,collisionRect:Vt,collisions:at,droppableRects:W,draggableNodes:k,draggingNode:ve,draggingNodeRect:ze,droppableContainers:N,over:it,scrollableAncestors:Le,scrollAdjustedTranslate:zt},M.current={initial:ze,translated:Vt}},[z,G,at,Vt,k,ve,ze,W,N,it,Le,zt]),eD({...B,delta:L,draggingRect:Vt,pointerCoordinates:be,scrollableAncestors:Le,scrollableAncestorRects:J});const Ao=u.useMemo(()=>({active:z,activeNode:G,activeNodeRect:X,activatorEvent:$,collisions:at,containerNodeRect:de,dragOverlay:ee,draggableNodes:k,droppableContainers:N,droppableRects:W,over:it,measureDroppableContainers:U,scrollableAncestors:Le,scrollableAncestorRects:J,measuringConfiguration:H,measuringScheduled:j,windowRect:_e}),[z,G,X,$,at,de,ee,k,N,W,it,U,Le,J,H,j,_e]),In=u.useMemo(()=>({activatorEvent:$,activators:vn,active:z,activeNodeRect:X,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:k,over:it,measureDroppableContainers:U}),[$,vn,z,X,y,F,k,it,U]);return V.createElement(y_.Provider,{value:x},V.createElement(Ad.Provider,{value:In},V.createElement(M_.Provider,{value:Ao},V.createElement(P0.Provider,{value:Qn},c)),V.createElement(xD,{disabled:a?.restoreFocus===!1})),V.createElement(_A,{...a,hiddenTextDescribedById:F}));function Me(){const Be=O?.autoScrollEnabled===!1,ht=typeof l=="object"?l.enabled===!1:l===!1,tt=E&&!Be&&!ht;return typeof l=="object"?{...l,enabled:tt}:{enabled:tt}}}),TD=u.createContext(null),M5="button",SD="Droppable";function kD(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=Od(SD),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:d,draggableNodes:f,over:p}=u.useContext(Ad),{role:h=M5,roleDescription:m="draggable",tabIndex:g=0}=r??{},b=l?.id===t,y=u.useContext(b?P0:TD),[v,x]=up(),[w,_]=up(),E=pD(s,t),C=Yu(n);Tr(()=>(f.set(t,{id:t,key:i,node:v,activatorNode:w,data:C}),()=>{const L=f.get(t);L&&L.key===i&&f.delete(t)}),[f,t]);const k=u.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":o,"aria-pressed":b&&h===M5?!0:void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[o,h,g,b,m,d.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:k,isDragging:b,listeners:o?void 0:E,node:v,over:p,setNodeRef:x,setActivatorNodeRef:_,transform:y}}function A_(){return u.useContext(M_)}const LD="Droppable",ID={timeout:25};function ND(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=Od(LD),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=u.useContext(Ad),d=u.useRef({disabled:n}),f=u.useRef(!1),p=u.useRef(null),h=u.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:b}={...ID,...r},y=Yu(g??o),v=u.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),h.current=null},b)},[b]),x=z0({callback:v,disabled:m||!s}),w=u.useCallback((k,L)=>{x&&(L&&(x.unobserve(L),f.current=!1),k&&x.observe(k))},[x]),[_,E]=up(w),C=Yu(t);return u.useEffect(()=>{!x||!_.current||(x.disconnect(),f.current=!1,x.observe(_.current))},[_,x]),Tr(()=>(a({type:hn.RegisterDroppable,element:{id:o,key:i,disabled:n,node:_,rect:p,data:C}}),()=>a({type:hn.UnregisterDroppable,key:i,id:o})),[o]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:hn.SetDroppableDisabled,id:o,key:i,disabled:n}),d.current.disabled=n)},[o,i,n,a]),{active:s,rect:p,isOver:l?.id===o,node:_,over:l,setNodeRef:E}}function RD(e){let{animation:t,children:n}=e;const[o,r]=u.useState(null),[i,s]=u.useState(null),a=dp(n);return!n&&!o&&a&&r(a),Tr(()=>{if(!i)return;const l=o?.key,c=o?.props.id;if(l==null||c==null){r(null);return}Promise.resolve(t(c,i)).then(()=>{r(null)})},[t,o,i]),V.createElement(V.Fragment,null,n,o?u.cloneElement(o,{ref:s}):null)}const MD={x:0,y:0,scaleX:1,scaleY:1};function OD(e){let{children:t}=e;return V.createElement(Ad.Provider,{value:R_},V.createElement(P0.Provider,{value:MD},t))}const AD={position:"fixed",touchAction:"none"},DD=e=>D0(e)?"transform 250ms ease":void 0,zD=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:s,rect:a,style:l,transform:c,transition:d=DD}=e;if(!a)return null;const f=r?c:{...c,scaleX:1,scaleY:1},p={...AD,width:a.width,height:a.height,top:a.top,left:a.left,transform:Zi.Transform.toString(f),transformOrigin:r&&o?SA(o,a):void 0,transition:typeof d=="function"?d(o):d,...l};return V.createElement(n,{className:s,style:p,ref:t},i)}),PD=e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:s}=e;if(i!=null&&i.active)for(const[a,l]of Object.entries(i.active))l!==void 0&&(r[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,l));if(i!=null&&i.dragOverlay)for(const[a,l]of Object.entries(i.dragOverlay))l!==void 0&&o.node.style.setProperty(a,l);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&o.node.classList.add(s.dragOverlay),function(){for(const[l,c]of Object.entries(r))n.node.style.setProperty(l,c);s!=null&&s.active&&n.node.classList.remove(s.active)}},BD=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Zi.Transform.toString(t)},{transform:Zi.Transform.toString(n)}]},FD={duration:250,easing:"ease",keyframes:BD,sideEffects:PD({styles:{active:{opacity:"0"}}})};function $D(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:r}=e;return A0((i,s)=>{if(t===null)return;const a=n.get(i);if(!a)return;const l=a.node.current;if(!l)return;const c=N_(s);if(!c)return;const{transform:d}=mo(s).getComputedStyle(s),f=b_(d);if(!f)return;const p=typeof t=="function"?t:HD(t);return S_(l,r.draggable.measure),p({active:{id:i,data:a.data,node:l,rect:r.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:s,rect:r.dragOverlay.measure(c)},droppableContainers:o,measuringConfiguration:r,transform:f})})}function HD(e){const{duration:t,easing:n,sideEffects:o,keyframes:r}={...FD,...e};return i=>{let{active:s,dragOverlay:a,transform:l,...c}=i;if(!t)return;const d={x:a.rect.left-s.rect.left,y:a.rect.top-s.rect.top},f={scaleX:l.scaleX!==1?s.rect.width*l.scaleX/a.rect.width:1,scaleY:l.scaleY!==1?s.rect.height*l.scaleY/a.rect.height:1},p={x:l.x-d.x,y:l.y-d.y,...f},h=r({...c,active:s,dragOverlay:a,transform:{initial:l,final:p}}),[m]=h,g=h[h.length-1];if(JSON.stringify(m)===JSON.stringify(g))return;const b=o?.({active:s,dragOverlay:a,...c}),y=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(v=>{y.onfinish=()=>{b?.(),v()}})}}let O5=0;function VD(e){return u.useMemo(()=>{if(e!=null)return O5++,O5},[e])}const WD=V.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:s,wrapperElement:a="div",className:l,zIndex:c=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:m,droppableContainers:g,dragOverlay:b,over:y,measuringConfiguration:v,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:_}=A_(),E=u.useContext(P0),C=VD(f?.id),k=O_(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:E,windowRect:_}),L=Ky(p),N=$D({config:o,draggableNodes:m,droppableContainers:g,measuringConfiguration:v}),A=L?b.setRef:void 0;return V.createElement(OD,null,V.createElement(RD,{animation:N},f&&C?V.createElement(zD,{key:C,id:f.id,ref:A,as:a,activatorEvent:d,adjustScale:t,className:l,transition:i,rect:L,style:{zIndex:c,...r},transform:k},n):null))});function Qy(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function jD(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function gf(e){return e!==null&&e>=0}function UD(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=Qy(t,o,n),s=t[r],a=i[r];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},yf={scaleX:1,scaleY:1},qD=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:o;if(!a)return null;if(r===n){const c=i[s];return c?{x:0,y:nn&&r<=s?{x:0,y:-a.height-l,...yf}:r=s?{x:0,y:a.height+l,...yf}:{x:0,y:0,...yf}};function YD(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];return o?no.map(E=>typeof E=="object"&&"id"in E?E.id:E),[o]),m=s!=null,g=s?h.indexOf(s.id):-1,b=c?h.indexOf(c.id):-1,y=u.useRef(h),v=!UD(h,y.current),x=b!==-1&&g===-1||v,w=GD(i);Tr(()=>{v&&m&&d(h)},[v,h,m,d]),u.useEffect(()=>{y.current=h},[h]);const _=u.useMemo(()=>({activeIndex:g,containerId:f,disabled:w,disableTransforms:x,items:h,overIndex:b,useDragOverlay:p,sortedRects:jD(h,l),strategy:r}),[g,f,w.draggable,w.droppable,x,h,b,l,p,r]);return V.createElement(P_.Provider,{value:_},t)}const ZD=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return Qy(n,o,r).indexOf(t)},JD=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!o||a!==i&&r===s?!1:n?!0:s!==r&&t===l},KD={duration:200,easing:"ease"},B_="transform",QD=Zi.Transition.toString({property:B_,duration:0,easing:"linear"}),ez={roleDescription:"sortable"};function tz(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,s]=u.useState(null),a=u.useRef(n);return Tr(()=>{if(!t&&n!==a.current&&o.current){const l=r.current;if(l){const c=uc(o.current,{ignoreTransform:!0}),d={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(d.x||d.y)&&s(d)}}n!==a.current&&(a.current=n)},[t,n,o,r]),u.useEffect(()=>{i&&s(null)},[i]),i}function nz(e){let{animateLayoutChanges:t=JD,attributes:n,disabled:o,data:r,getNewIndex:i=ZD,id:s,strategy:a,resizeObserverConfig:l,transition:c=KD}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:m,sortedRects:g,overIndex:b,useDragOverlay:y,strategy:v}=u.useContext(P_),x=oz(o,h),w=d.indexOf(s),_=u.useMemo(()=>({sortable:{containerId:f,index:w,items:d},...r}),[f,r,w,d]),E=u.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:C,node:k,isOver:L,setNodeRef:N}=ND({id:s,data:_,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:A,activatorEvent:M,activeNodeRect:z,attributes:S,setNodeRef:O,listeners:R,isDragging:$,over:D,setActivatorNodeRef:I,transform:F}=kD({id:s,data:_,attributes:{...ez,...n},disabled:x.draggable}),P=cA(N,O),H=!!A,W=H&&!m&&gf(p)&&gf(b),U=!y&&$,j=U&&W?F:null,Y=W?j??(a??v)({rects:g,activeNodeRect:z,activeIndex:p,overIndex:b,index:w}):null,B=gf(p)&&gf(b)?i({id:s,items:d,activeIndex:p,overIndex:b}):w,q=A?.id,X=u.useRef({activeId:q,items:d,newIndex:B,containerId:f}),de=d!==X.current.items,ie=t({active:A,containerId:f,isDragging:$,isSorting:H,id:s,index:w,items:d,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:c,wasDragging:X.current.activeId!=null}),fe=tz({disabled:!ie,index:w,node:k,rect:C});return u.useEffect(()=>{H&&X.current.newIndex!==B&&(X.current.newIndex=B),f!==X.current.containerId&&(X.current.containerId=f),d!==X.current.items&&(X.current.items=d)},[H,B,f,d]),u.useEffect(()=>{if(q===X.current.activeId)return;if(q&&!X.current.activeId){X.current.activeId=q;return}const ve=setTimeout(()=>{X.current.activeId=q},50);return()=>clearTimeout(ve)},[q]),{active:A,activeIndex:p,attributes:S,data:_,rect:C,index:w,newIndex:B,items:d,isOver:L,isSorting:H,isDragging:$,listeners:R,node:k,overIndex:b,over:D,setNodeRef:P,setActivatorNodeRef:I,setDroppableNodeRef:N,setDraggableNodeRef:O,transform:fe??Y,transition:ee()};function ee(){if(fe||de&&X.current.newIndex===w)return QD;if(!(U&&!D0(M)||!c)&&(H||ie))return Zi.Transition.toString({...c,property:B_})}}function oz(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}gt.Down,gt.Right,gt.Up,gt.Left;var jl=(e=>(e[e.Ancestor=0]="Ancestor",e[e.Scrollable=1]="Scrollable",e))(jl||{});function e4(e,t){const{listeners:n,setNodeRef:o,setActivatorNodeRef:r,transform:i,transition:s,isDragging:a,isSorting:l}=nz({id:e.toString(),animateLayoutChanges:()=>!1,disabled:t?.disabled}),c={ref:o,style:{transform:t?.moveOnly?Zi.Translate.toString(i):Zi.Transform.toString(i),transition:s,opacity:t?.hidePreview&&a?0:1,pointerEvents:l?"none":void 0},role:t?.disabled?void 0:"sortable-node"},d={ref:r,role:t?.disabled?void 0:"sortable-handle",...n};return{node:c,handle:d,combined:{...c,...n,role:t?.disabled?void 0:"sortable-combined"}}}function rz(e){return new Promise(t=>setTimeout(t,e*1e3))}function yn(...e){return e.map(lz).filter(t=>t!=null).join(" ")}function iz(e){return e?.querySelector("div[data-overlayscrollbars-viewport]")??void 0}function sz(e,t,n){return Qy(e,t,n)}function az(e){let t=5381;for(let n=0;n>>0).toString(16)}`}function lz(e){return e==null||typeof e=="boolean"?null:typeof e=="string"?e:e[0]?e[1]:null}function Uo(e){return e=cz(e),e=e.replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),e=e.replace(/(\D)(\d)/g,"$1 $2").replace(/(\d)(\D)/g,"$1 $2").trim(),e=e.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),e}function cz(e){if(e.length<2)return e;const t="$1_$2";return e.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,t).replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,t)}const B0=0,Ys=1,dc=2,F_=4;function $_(e,t){return n=>e(t(n))}function uz(e,t){return t(e)}function H_(e,t){return n=>e(t,n)}function A5(e,t){return()=>e(t)}function F0(e,t){return t(e),e}function Ht(...e){return e}function dz(e){e()}function D5(e){return()=>e}function fz(...e){return()=>{e.map(dz)}}function t4(e){return e!==void 0}function fc(){}function wt(e,t){return e(Ys,t)}function Ge(e,t){e(B0,t)}function n4(e){e(dc)}function Jn(e){return e(F_)}function Ee(e,t){return wt(e,H_(t,B0))}function bi(e,t){const n=e(Ys,o=>{n(),t(o)});return n}function rt(){const e=[];return(t,n)=>{switch(t){case dc:e.splice(0,e.length);return;case Ys:return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)};case B0:e.slice().forEach(o=>{o(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function le(e){let t=e;const n=rt();return(o,r)=>{switch(o){case Ys:r(t);break;case B0:t=r;break;case F_:return t}return n(o,r)}}function pz(e){let t,n;const o=()=>t&&t();return function(r,i){switch(r){case Ys:return i?n===i?void 0:(o(),n=i,t=wt(e,i),t):(o(),fc);case dc:o(),n=null;return;default:throw new Error(`unrecognized action ${r}`)}}}function Ko(e){return F0(rt(),t=>Ee(e,t))}function co(e,t){return F0(le(t),n=>Ee(e,n))}function hz(...e){return t=>e.reduceRight(uz,t)}function ne(e,...t){const n=hz(...t);return(o,r)=>{switch(o){case Ys:return wt(e,n(r));case dc:n4(e);return}}}function V_(e,t){return e===t}function $t(e=V_){let t;return n=>o=>{e(t,o)||(t=o,n(o))}}function De(e){return t=>n=>{e(n)&&t(n)}}function ge(e){return t=>$_(t,e)}function si(e){return t=>()=>t(e)}function di(e,t){return n=>o=>n(t=e(t,o))}function Ul(e){return t=>n=>{e>0?e--:t(n)}}function Cs(e){let t=null,n;return o=>r=>{t=r,!n&&(n=setTimeout(()=>{n=void 0,o(t)},e))}}function z5(e){let t,n;return o=>r=>{t=r,n&&clearTimeout(n),n=setTimeout(()=>{o(t)},e)}}function Je(...e){const t=new Array(e.length);let n=0,o=null;const r=Math.pow(2,e.length)-1;return e.forEach((i,s)=>{const a=Math.pow(2,s);wt(i,l=>{const c=n;n=n|a,t[s]=l,c!==r&&n===r&&o&&(o(),o=null)})}),i=>s=>{const a=()=>i([s].concat(t));n===r?a():o=a}}function P5(...e){return function(t,n){switch(t){case Ys:return fz(...e.map(o=>wt(o,n)));case dc:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ae(e,t=V_){return ne(e,$t(t))}function _n(...e){const t=rt(),n=new Array(e.length);let o=0;const r=Math.pow(2,e.length)-1;return e.forEach((i,s)=>{const a=Math.pow(2,s);wt(i,l=>{n[s]=l,o=o|a,o===r&&Ge(t,n)})}),function(i,s){switch(i){case Ys:return o===r&&s(n),wt(t,s);case dc:return n4(t);default:throw new Error(`unrecognized action ${i}`)}}}function _t(e,t=[],{singleton:n}={singleton:!0}){return{id:mz(),constructor:e,dependencies:t,singleton:n}}const mz=()=>Symbol();function gz(e){const t=new Map,n=({id:o,constructor:r,dependencies:i,singleton:s})=>{if(s&&t.has(o))return t.get(o);const a=r(i.map(l=>n(l)));return s&&t.set(o,a),a};return n(e)}function yz(e,t){const n={},o={};let r=0;const i=e.length;for(;r(v[x]=w=>{const _=y[t.methods[x]];Ge(_,w)},v),{})}function d(y){return s.reduce((v,x)=>(v[x]=pz(y[t.events[x]]),v),{})}const f=V.forwardRef((y,v)=>{const{children:x,...w}=y,[_]=V.useState(()=>F0(gz(e),k=>l(k,w))),[E]=V.useState(A5(d,_));vf(()=>{for(const k of s)k in w&&wt(E[k],w[k]);return()=>{Object.values(E).map(n4)}},[w,E,_]),vf(()=>{l(_,w)}),V.useImperativeHandle(v,D5(c(_)));const C=n;return T.jsx(a.Provider,{value:_,children:n?T.jsx(C,{...yz([...o,...r,...s],w),children:x}):x})}),p=y=>V.useCallback(H_(Ge,V.useContext(a)[y]),[y]),h=y=>{const x=V.useContext(a)[y],w=V.useCallback(_=>wt(x,_),[x]);return V.useSyncExternalStore(w,()=>Jn(x),()=>Jn(x))},m=y=>{const x=V.useContext(a)[y],[w,_]=V.useState(A5(Jn,x));return vf(()=>wt(x,E=>{E!==w&&_(D5(E))}),[x,w]),w},g=V.version.startsWith("18")?h:m;return{Component:f,usePublisher:p,useEmitterValue:g,useEmitter:(y,v)=>{const w=V.useContext(a)[y];vf(()=>wt(w,v),[v,w])}}}const j_=typeof document<"u"?V.useLayoutEffect:V.useEffect;var Qo=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Qo||{});const vz={0:"debug",1:"log",2:"warn",3:"error"},bz=()=>typeof globalThis>"u"?window:globalThis,Xs=_t(()=>{const e=le(3);return{log:le((n,o,r=1)=>{var i;const s=(i=bz().VIRTUOSO_LOG_LEVEL)!=null?i:Jn(e);r>=s&&console[vz[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o)}),logLevel:e}},[],{singleton:!0});function o4(e,t,n){const o=V.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=V.useMemo(()=>new ResizeObserver(s=>{const a=()=>{const l=s[0].target;l.offsetParent!==null&&e(l)};n?a():requestAnimationFrame(a)}),[e]);r=s=>{s&&t?(i.observe(s),o.current=s):(o.current&&i.unobserve(o.current),o.current=null)}}return{ref:o,callbackRef:r}}function Ha(e,t,n){return o4(e,t,n).callbackRef}function wz(e,t,n,o,r,i,s,a,l){const c=V.useCallback(d=>{const f=xz(d.children,t,a?"offsetWidth":"offsetHeight",r);let p=d.parentElement;for(;!p.dataset.virtuosoScroller;)p=p.parentElement;const h=p.lastElementChild.dataset.viewportType==="window",m=s?a?s.scrollLeft:s.scrollTop:h?a?window.pageXOffset||document.documentElement.scrollLeft:window.pageYOffset||document.documentElement.scrollTop:a?p.scrollLeft:p.scrollTop,g=s?a?s.scrollWidth:s.scrollHeight:h?a?document.documentElement.scrollWidth:document.documentElement.scrollHeight:a?p.scrollWidth:p.scrollHeight,b=s?a?s.offsetWidth:s.offsetHeight:h?a?window.innerWidth:window.innerHeight:a?p.offsetWidth:p.offsetHeight;o({scrollTop:Math.max(m,0),scrollHeight:g,viewportHeight:b}),i?.(a?B5("column-gap",getComputedStyle(d).columnGap,r):B5("row-gap",getComputedStyle(d).rowGap,r)),f!==null&&e(f)},[e,t,r,i,s,o]);return o4(c,n,l)}function xz(e,t,n,o){const r=e.length;if(r===0)return null;const i=[];for(let s=0;s{const h=p.target,m=h===window||h===document,g=i?m?window.pageXOffset||document.documentElement.scrollLeft:h.scrollLeft:m?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,b=i?m?document.documentElement.scrollWidth:h.scrollWidth:m?document.documentElement.scrollHeight:h.scrollHeight,y=i?m?window.innerWidth:h.offsetWidth:m?window.innerHeight:h.offsetHeight,v=()=>{e({scrollTop:Math.max(g,0),scrollHeight:b,viewportHeight:y})};p.suppressFlushSync?v():EO.flushSync(v),a.current!==null&&(g===a.current||g<=0||g===b-y)&&(a.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);V.useEffect(()=>{const p=r||s.current;return o(r||s.current),c({target:p,suppressFlushSync:!0}),p.addEventListener("scroll",c,{passive:!0}),()=>{o(null),p.removeEventListener("scroll",c)}},[s,c,n,o,r]);function d(p){const h=s.current;if(!h||(i?"offsetWidth"in h&&h.offsetWidth===0:"offsetHeight"in h&&h.offsetHeight===0))return;const m=p.behavior==="smooth";let g,b,y;h===window?(b=Math.max(Ws(document.documentElement,i?"width":"height"),i?document.documentElement.scrollWidth:document.documentElement.scrollHeight),g=i?window.innerWidth:window.innerHeight,y=i?document.documentElement.scrollLeft:document.documentElement.scrollTop):(b=h[i?"scrollWidth":"scrollHeight"],g=Ws(h,i?"width":"height"),y=h[i?"scrollLeft":"scrollTop"]);const v=b-g;if(p.top=Math.ceil(Math.max(Math.min(v,p.top),0)),U_(g,b)||p.top===y){e({scrollTop:y,scrollHeight:b,viewportHeight:g}),m&&t(!0);return}m?(a.current=p.top,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,a.current=null,t(!0)},1e3)):a.current=null,i&&(p={left:p.top,behavior:p.behavior}),h.scrollTo(p)}function f(p){i&&(p={left:p.top,behavior:p.behavior}),s.current.scrollBy(p)}return{scrollerRef:s,scrollByCallback:f,scrollToCallback:d}}const go=_t(()=>{const e=rt(),t=rt(),n=le(0),o=rt(),r=le(0),i=rt(),s=rt(),a=le(0),l=le(0),c=le(0),d=le(0),f=rt(),p=rt(),h=le(!1),m=le(!1),g=le(!1);return Ee(ne(e,ge(({scrollTop:b})=>b)),t),Ee(ne(e,ge(({scrollHeight:b})=>b)),s),Ee(t,r),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:a,fixedHeaderHeight:l,fixedFooterHeight:c,footerHeight:d,scrollHeight:s,smoothScrollTargetReached:o,horizontalDirection:m,skipAnimationFrameInResizeObserver:g,scrollTo:f,scrollBy:p,statefulScrollTop:r,deviation:n,scrollingInProgress:h}},[],{singleton:!0}),Zu={lvl:0};function q_(e,t,n,o=Zu,r=Zu){return{k:e,v:t,lvl:n,l:o,r}}function kt(e){return e===Zu}function Sl(){return Zu}function Eg(e,t){if(kt(e))return Zu;const{k:n,l:o,r}=e;if(t===n){if(kt(o))return r;if(kt(r))return o;{const[i,s]=Y_(o);return l1(pn(e,{k:i,v:s,l:X_(o)}))}}else return tt&&(a=a.concat(Cg(i,t,n))),o>=t&&o<=n&&a.push({k:o,v:r}),o<=n&&(a=a.concat(Cg(s,t,n))),a}function da(e){return kt(e)?[]:[...da(e.l),{k:e.k,v:e.v},...da(e.r)]}function Y_(e){return kt(e.r)?[e.k,e.v]:Y_(e.r)}function X_(e){return kt(e.r)?e.l:l1(pn(e,{r:X_(e.r)}))}function pn(e,t){return q_(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function Cm(e){return kt(e)||e.lvl>e.r.lvl}function F5(e){return Tg(J_(e))}function l1(e){const{l:t,r:n,lvl:o}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(Cm(t))return J_(pn(e,{lvl:o-1}));if(!kt(t)&&!kt(t.r))return pn(t.r,{l:pn(t,{r:t.r.l}),r:pn(e,{l:t.r.r,lvl:o-1}),lvl:o});throw new Error("Unexpected empty nodes")}else{if(Cm(e))return Tg(pn(e,{lvl:o-1}));if(!kt(n)&&!kt(n.l)){const r=n.l,i=Cm(r)?n.lvl-1:n.lvl;return pn(r,{l:pn(e,{r:r.l,lvl:o-1}),r:Tg(pn(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}else throw new Error("Unexpected empty nodes")}}function $0(e,t,n){if(kt(e))return[];const o=Ur(e,t)[0];return _z(Cg(e,o,n))}function Z_(e,t){const n=e.length;if(n===0)return[];let{index:o,value:r}=t(e[0]);const i=[];for(let s=1;s({index:t,value:n}))}function Tg(e){const{r:t,lvl:n}=e;return!kt(t)&&!kt(t.r)&&t.lvl===n&&t.r.lvl===n?pn(t,{l:pn(e,{r:t.l}),lvl:n+1}):e}function J_(e){const{l:t}=e;return!kt(t)&&t.lvl===e.lvl?pn(t,{r:pn(e,{l:t.r})}):e}function gp(e,t,n,o=0){let r=e.length-1;for(;o<=r;){const i=Math.floor((o+r)/2),s=e[i],a=n(s,t);if(a===0)return i;if(a===-1){if(r-o<2)return i-1;r=i-1}else{if(r===o)return i;o=i+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function K_(e,t,n){return e[gp(e,t,n)]}function Ez(e,t,n,o){const r=gp(e,t,o),i=gp(e,n,o,r);return e.slice(r,i+1)}const r4=_t(()=>({recalcInProgress:le(!1)}),[],{singleton:!0});function Cz(e){const{size:t,startIndex:n,endIndex:o}=e;return r=>r.start===n&&(r.end===o||r.end===1/0)&&r.value===t}function $5(e,t){let n=0,o=0;for(;n=d||r===p)&&(e=Eg(e,d)):(c=p!==r,l=!0),f>s&&s>=d&&p!==r&&(e=Go(e,s+1,p));c&&(e=Go(e,i,r))}return[e,n]}function Sz(){return{offsetTree:[],sizeTree:Sl(),groupOffsetTree:Sl(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function i4({index:e},t){return t===e?0:t0&&(t=Math.max(t,K_(e,o,i4).offset)),Z_(Ez(e,t,n,kz),Lz)}function Sg(e,t,n,o){let r=e,i=0,s=0,a=0,l=0;if(t!==0){l=gp(r,t-1,i4),a=r[l].offset;const d=Ur(n,t-1);i=d[0],s=d[1],r.length&&r[l].size===Ur(n,t)[1]&&(l-=1),r=r.slice(0,l+1)}else r=[];for(const{start:c,value:d}of $0(n,t,1/0)){const f=c-i,p=f*s+a+f*o;r.push({offset:p,size:d,index:c}),i=c,a=p,s=d}return{offsetTree:r,lastIndex:i,lastOffset:a,lastSize:s}}function Nz(e,[t,n,o,r]){t.length>0&&o("received item sizes",t,Qo.DEBUG);const i=e.sizeTree;let s=i,a=0;if(n.length>0&&kt(i)&&t.length===2){const p=t[0].size,h=t[1].size;s=n.reduce((m,g)=>Go(Go(m,g,p),g+1,h),s)}else[s,a]=Tz(s,t);if(s===i)return e;const{offsetTree:l,lastIndex:c,lastSize:d,lastOffset:f}=Sg(e.offsetTree,a,s,r);return{sizeTree:s,offsetTree:l,lastIndex:c,lastOffset:f,lastSize:d,groupOffsetTree:n.reduce((p,h)=>Go(p,h,Ku(h,l,r)),Sl()),groupIndices:n}}function Ku(e,t,n){if(t.length===0)return 0;const{offset:o,index:r,size:i}=K_(t,e,i4),s=e-r,a=i*s+(s-1)*n+o;return a>0?a+n:a}function Rz(e){return typeof e.groupIndex<"u"}function Q_(e,t,n){if(Rz(e))return t.groupIndices[e.groupIndex]+1;{const o=e.index==="LAST"?n:e.index;let r=eE(o,t);return r=Math.max(0,r,Math.min(n,r)),r}}function eE(e,t){if(!H0(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function H0(e){return!kt(e.groupOffsetTree)}function Mz(e){return da(e).map(({k:t,v:n},o,r)=>{const i=r[o+1],s=i?i.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const Oz={offsetHeight:"height",offsetWidth:"width"},Ei=_t(([{log:e},{recalcInProgress:t}])=>{const n=rt(),o=rt(),r=co(o,0),i=rt(),s=rt(),a=le(0),l=le([]),c=le(void 0),d=le(void 0),f=le((_,E)=>Ws(_,Oz[E])),p=le(void 0),h=le(0),m=Sz(),g=co(ne(n,Je(l,e,h),di(Nz,m),$t()),m),b=co(ne(l,$t(),di((_,E)=>({prev:_.current,current:E}),{prev:[],current:[]}),ge(({prev:_})=>_)),[]);Ee(ne(l,De(_=>_.length>0),Je(g,h),ge(([_,E,C])=>{const k=_.reduce((L,N,A)=>Go(L,N,Ku(N,E.offsetTree,C)||A),Sl());return{...E,groupIndices:_,groupOffsetTree:k}})),g),Ee(ne(o,Je(g),De(([_,{lastIndex:E}])=>_[{startIndex:_,endIndex:E,size:C}])),n),Ee(c,d);const y=co(ne(c,ge(_=>_===void 0)),!0);Ee(ne(d,De(_=>_!==void 0&&kt(Jn(g).sizeTree)),ge(_=>[{startIndex:0,endIndex:0,size:_}])),n);const v=Ko(ne(n,Je(g),di(({sizes:_},[E,C])=>({changed:C!==_,sizes:C}),{changed:!1,sizes:m}),ge(_=>_.changed)));wt(ne(a,di((_,E)=>({diff:_.prev-E,prev:E}),{diff:0,prev:0}),ge(_=>_.diff)),_=>{const{groupIndices:E}=Jn(g);if(_>0)Ge(t,!0),Ge(i,_+$5(_,E));else if(_<0){const C=Jn(b);C.length>0&&(_-=$5(-_,C)),Ge(s,_)}}),wt(ne(a,Je(e)),([_,E])=>{_<0&&E("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Qo.ERROR)});const x=Ko(i);Ee(ne(i,Je(g),ge(([_,E])=>{const C=E.groupIndices.length>0,k=[],L=E.lastSize;if(C){const N=Ju(E.sizeTree,0);let A=0,M=0;for(;A<_;){const O=E.groupIndices[M],R=E.groupIndices.length===M+1?1/0:E.groupIndices[M+1]-O-1;k.push({startIndex:O,endIndex:O,size:N}),k.push({startIndex:O+1,endIndex:O+1+R-1,size:L}),M++,A+=R+1}const z=da(E.sizeTree);return A!==_&&z.shift(),z.reduce((O,{k:R,v:$})=>{let D=O.ranges;return O.prevSize!==0&&(D=[...O.ranges,{startIndex:O.prevIndex,endIndex:R+_-1,size:O.prevSize}]),{ranges:D,prevIndex:R+_,prevSize:$}},{ranges:k,prevIndex:_,prevSize:0}).ranges}return da(E.sizeTree).reduce((N,{k:A,v:M})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:A+_-1,size:N.prevSize}],prevIndex:A+_,prevSize:M}),{ranges:[],prevIndex:0,prevSize:L}).ranges})),n);const w=Ko(ne(s,Je(g,h),ge(([_,{offsetTree:E},C])=>{const k=-_;return Ku(k,E,C)})));return Ee(ne(s,Je(g,h),ge(([_,E,C])=>{if(E.groupIndices.length>0){if(kt(E.sizeTree))return E;let L=Sl();const N=Jn(b);let A=0,M=0,z=0;for(;A<-_;){z=N[M];const O=N[M+1]-z-1;M++,A+=O+1}if(L=da(E.sizeTree).reduce((O,{k:R,v:$})=>Go(O,Math.max(0,R+_),$),L),A!==-_){const O=Ju(E.sizeTree,z);L=Go(L,0,O);const R=Ur(E.sizeTree,-_+1)[1];L=Go(L,1,R)}return{...E,sizeTree:L,...Sg(E.offsetTree,0,L,C)}}else{const L=da(E.sizeTree).reduce((N,{k:A,v:M})=>Go(N,Math.max(0,A+_),M),Sl());return{...E,sizeTree:L,...Sg(E.offsetTree,0,L,C)}}})),g),{data:p,totalCount:o,sizeRanges:n,groupIndices:l,defaultItemSize:d,fixedItemSize:c,unshiftWith:i,shiftWith:s,shiftWithOffset:w,beforeUnshiftWith:x,firstItemIndex:a,gap:h,sizes:g,listRefresh:v,statefulTotalCount:r,trackItemSizes:y,itemSize:f}},Ht(Xs,r4),{singleton:!0}),Az=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function tE(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!Az)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Dd=_t(([{sizes:e,totalCount:t,listRefresh:n,gap:o},{scrollingInProgress:r,viewportHeight:i,scrollTo:s,smoothScrollTargetReached:a,headerHeight:l,footerHeight:c,fixedHeaderHeight:d,fixedFooterHeight:f},{log:p}])=>{const h=rt(),m=rt(),g=le(0);let b=null,y=null,v=null;function x(){b&&(b(),b=null),v&&(v(),v=null),y&&(clearTimeout(y),y=null),Ge(r,!1)}return Ee(ne(h,Je(e,i,t,g,l,c,p),Je(o,d,f),ge(([[w,_,E,C,k,L,N,A],M,z,S])=>{const O=tE(w),{align:R,behavior:$,offset:D}=O,I=C-1,F=Q_(O,_,I);let P=Ku(F,_.offsetTree,M)+L;R==="end"?(P+=z+Ur(_.sizeTree,F)[1]-E+S,F===I&&(P+=N)):R==="center"?P+=(z+Ur(_.sizeTree,F)[1]-E+S)/2:P-=k,D&&(P+=D);const H=W=>{x(),W?(A("retrying to scroll to",{location:w},Qo.DEBUG),Ge(h,w)):(Ge(m,!0),A("list did not change, scroll successful",{},Qo.DEBUG))};if(x(),$==="smooth"){let W=!1;v=wt(n,U=>{W=W||U}),b=bi(a,()=>{H(W)})}else b=bi(ne(n,Dz(150)),H);return y=setTimeout(()=>{x()},1200),Ge(r,!0),A("scrolling from index to",{index:F,top:P,behavior:$},Qo.DEBUG),{top:P,behavior:$}})),s),{scrollToIndex:h,scrollTargetReached:m,topListHeight:g}},Ht(Ei,go,Xs),{singleton:!0});function Dz(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return o=>{o&&(t(!0),clearTimeout(n))}}}const Qu="up",bu="down",zz="none",Pz={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},Bz=0,zd=_t(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:o,footerHeight:r,scrollBy:i}])=>{const s=le(!1),a=le(!0),l=rt(),c=rt(),d=le(4),f=le(Bz),p=co(ne(P5(ne(Ae(t),Ul(1),si(!0)),ne(Ae(t),Ul(1),si(!1),z5(100))),$t()),!1),h=co(ne(P5(ne(i,si(!0)),ne(i,si(!1),z5(200))),$t()),!1);Ee(ne(_n(Ae(t),Ae(f)),ge(([v,x])=>v<=x),$t()),a),Ee(ne(a,Cs(50)),c);const m=Ko(ne(_n(e,Ae(n),Ae(o),Ae(r),Ae(d)),di((v,[{scrollTop:x,scrollHeight:w},_,E,C,k])=>{const L=x+_-w>-k,N={viewportHeight:_,scrollTop:x,scrollHeight:w};if(L){let M,z;return x>v.state.scrollTop?(M="SCROLLED_DOWN",z=v.state.scrollTop-x):(M="SIZE_DECREASED",z=v.state.scrollTop-x||v.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:M,scrollTopDelta:z}}let A;return N.scrollHeight>v.state.scrollHeight?A="SIZE_INCREASED":_v&&v.atBottom===x.atBottom))),g=co(ne(e,di((v,{scrollTop:x,scrollHeight:w,viewportHeight:_})=>{if(U_(v.scrollHeight,w))return{scrollTop:x,scrollHeight:w,jump:0,changed:!1};{const E=w-(x+_)<1;return v.scrollTop!==x&&E?{scrollHeight:w,scrollTop:x,jump:v.scrollTop-x,changed:!0}:{scrollHeight:w,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),De(v=>v.changed),ge(v=>v.jump)),0);Ee(ne(m,ge(v=>v.atBottom)),s),Ee(ne(s,Cs(50)),l);const b=le(bu);Ee(ne(e,ge(({scrollTop:v})=>v),$t(),di((v,x)=>Jn(h)?{direction:v.direction,prevScrollTop:x}:{direction:xv.direction)),b),Ee(ne(e,Cs(50),si(zz)),b);const y=le(0);return Ee(ne(p,De(v=>!v),si(0)),y),Ee(ne(t,Cs(100),Je(p),De(([v,x])=>!!x),di(([v,x],[w])=>[x,w],[0,0]),ge(([v,x])=>x-v)),y),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:m,atTopStateChange:c,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:d,atTopThreshold:f,scrollVelocity:y,lastJumpDueToItemResize:g}},Ht(go)),Zs=_t(([{log:e}])=>{const t=le(!1),n=Ko(ne(t,De(o=>o),$t()));return wt(t,o=>{o&&Jn(e)("props updated",{},Qo.DEBUG)}),{propsReady:t,didMount:n}},Ht(Xs),{singleton:!0});function s4(e,t){e==0?t():requestAnimationFrame(()=>s4(e-1,t))}function a4(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Pd=_t(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:o},{scrollToIndex:r,scrollTargetReached:i},{didMount:s}])=>{const a=le(!0),l=le(0),c=le(!0);return Ee(ne(s,Je(l),De(([d,f])=>!!f),si(!1)),a),Ee(ne(s,Je(l),De(([d,f])=>!!f),si(!1)),c),wt(ne(_n(t,s),Je(a,e,n,c),De(([[,d],f,{sizeTree:p},h,m])=>d&&(!kt(p)||t4(h))&&!f&&!m),Je(l)),([,d])=>{bi(i,()=>{Ge(c,!0)}),s4(4,()=>{bi(o,()=>{Ge(a,!0)}),Ge(r,d)})}),{scrolledToInitialItem:a,initialTopMostItemIndex:l,initialItemFinalLocationReached:c}},Ht(Ei,go,Dd,Zs),{singleton:!0});function H5(e){return e?e==="smooth"?"smooth":"auto":!1}const Fz=(e,t)=>typeof e=="function"?H5(e(t)):t&&H5(e),$z=_t(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:o},{scrollToIndex:r},{scrolledToInitialItem:i},{propsReady:s,didMount:a},{log:l},{scrollingInProgress:c}])=>{const d=le(!1),f=rt();let p=null;function h(g){Ge(r,{index:"LAST",align:"end",behavior:g})}wt(ne(_n(ne(Ae(e),Ul(1)),a),Je(Ae(d),n,i,c),ge(([[g,b],y,v,x,w])=>{let _=b&&x,E="auto";return _&&(E=Fz(y,v||w),_=_&&!!E),{totalCount:g,shouldFollow:_,followOutputBehavior:E}}),De(({shouldFollow:g})=>g)),({totalCount:g,followOutputBehavior:b})=>{p&&(p(),p=null),p=bi(t,()=>{Jn(l)("following output to ",{totalCount:g},Qo.DEBUG),h(b),p=null})});function m(g){const b=bi(o,y=>{g&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Jn(l)("scrolling to bottom due to increased size",{},Qo.DEBUG),h("auto"))});setTimeout(b,100)}return wt(ne(_n(Ae(d),e,s),De(([g,,b])=>g&&b),di(({value:g},[,b])=>({refreshed:g===b,value:b}),{refreshed:!1,value:0}),De(({refreshed:g})=>g),Je(d,e)),([,g])=>{Jn(i)&&m(g!==!1)}),wt(f,()=>{m(Jn(d)!==!1)}),wt(_n(Ae(d),o),([g,b])=>{g&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&h("auto")}),{followOutput:d,autoscrollToBottom:f}},Ht(Ei,zd,Dd,Pd,Zs,Xs,go));function Hz(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const nE=_t(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:o,headerHeight:r}])=>{const i=rt(),s=rt(),a=Ko(ne(i,ge(Hz)));return Ee(ne(a,ge(l=>l.totalCount)),e),Ee(ne(a,ge(l=>l.groupIndices)),t),Ee(ne(_n(o,n,r),De(([l,c])=>H0(c)),ge(([l,c,d])=>Ur(c.groupOffsetTree,Math.max(l-d,0),"v")[0]),$t(),ge(l=>[l])),s),{groupCounts:i,topItemsIndexes:s}},Ht(Ei,go));function ed(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function oE(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const yp="top",vp="bottom",V5="none";function W5(e,t,n){return typeof e=="number"?n===Qu&&t===yp||n===bu&&t===vp?e:0:n===Qu?t===yp?e.main:e.reverse:t===vp?e.main:e.reverse}function j5(e,t){return typeof e=="number"?e:e[t]||0}const l4=_t(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:o,fixedHeaderHeight:r}])=>{const i=rt(),s=le(0),a=le(0),l=le(0),c=co(ne(_n(Ae(e),Ae(t),Ae(o),Ae(i,ed),Ae(l),Ae(s),Ae(r),Ae(n),Ae(a)),ge(([d,f,p,[h,m],g,b,y,v,x])=>{const w=d-v,_=b+y,E=Math.max(p-w,0);let C=V5;const k=j5(x,yp),L=j5(x,vp);return h-=v,h+=p+y,m+=p+y,m-=v,h>d+_-k&&(C=Qu),md!=null),$t(ed)),[0,0]);return{listBoundary:i,overscan:l,topListHeight:s,increaseViewportBy:a,visibleRange:c}},Ht(go),{singleton:!0});function Vz(e,t,n){if(H0(t)){const o=eE(e,t);return[{index:Ur(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Tm={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function U5(e,t,n){if(e.length===0)return[];if(!H0(t))return e.map(c=>({...c,index:c.index+n,originalIndex:c.index}));const o=e[0].index,r=e[e.length-1].index,i=[],s=$0(t.groupOffsetTree,o,r);let a,l=0;for(const c of e){(!a||a.end0){c=e[0].offset;const g=e[e.length-1];d=g.offset+g.size}const f=n-l,p=a+f*s+(f-1)*o,h=c,m=p-d;return{items:U5(e,r,i),topItems:U5(t,r,i),topListHeight:t.reduce((g,b)=>b.size+g,0),offsetTop:c,offsetBottom:m,top:h,bottom:d,totalCount:n,firstItemIndex:i}}function rE(e,t,n,o,r,i){let s=0;if(n.groupIndices.length>0)for(const d of n.groupIndices){if(d-s>=e)break;s++}const a=e+s,l=a4(t,a),c=Array.from({length:a}).map((d,f)=>({index:f+l,size:0,offset:0,data:i[f+l]}));return c1(c,[],a,r,n,o)}const Va=_t(([{sizes:e,totalCount:t,data:n,firstItemIndex:o,gap:r},i,{visibleRange:s,listBoundary:a,topListHeight:l},{scrolledToInitialItem:c,initialTopMostItemIndex:d},{topListHeight:f},p,{didMount:h},{recalcInProgress:m}])=>{const g=le([]),b=le(0),y=rt();Ee(i.topItemsIndexes,g);const v=co(ne(_n(h,m,Ae(s,ed),Ae(t),Ae(e),Ae(d),c,Ae(g),Ae(o),Ae(r),n),De(([E,C,,k,,,,,,,L])=>{const N=L&&L.length!==k;return E&&!C&&!N}),ge(([,,[E,C],k,L,N,A,M,z,S,O])=>{const R=L,{sizeTree:$,offsetTree:D}=R,I=Jn(b);if(k===0)return{...Tm,totalCount:k};if(E===0&&C===0)return I===0?{...Tm,totalCount:k}:rE(I,N,L,z,S,O||[]);if(kt($))return I>0?null:c1(Vz(a4(N,k),R,O),[],k,S,R,z);const F=[];if(M.length>0){const j=M[0],G=M[M.length-1];let Y=0;for(const B of $0($,j,G)){const q=B.value,X=Math.max(B.start,j),de=Math.min(B.end,G);for(let ie=X;ie<=de;ie++)F.push({index:ie,size:q,offset:Y,data:O&&O[ie]}),Y+=q}}if(!A)return c1([],F,k,S,R,z);const P=M.length>0?M[M.length-1]+1:0,H=Iz(D,E,C,P);if(H.length===0)return null;const W=k-1,U=F0([],j=>{for(const G of H){const Y=G.value;let B=Y.offset,q=G.start;const X=Y.size;if(Y.offset=C);ie++)j.push({index:ie,size:X,offset:B,data:O&&O[ie]}),B+=X+S}});return c1(U,F,k,S,R,z)}),De(E=>E!==null),$t()),Tm);Ee(ne(n,De(t4),ge(E=>E?.length)),t),Ee(ne(v,ge(E=>E.topListHeight)),f),Ee(f,l),Ee(ne(v,ge(E=>[E.top,E.bottom])),a),Ee(ne(v,ge(E=>E.items)),y);const x=Ko(ne(v,De(({items:E})=>E.length>0),Je(t,n),De(([{items:E},C])=>E[E.length-1].originalIndex===C-1),ge(([,E,C])=>[E-1,C]),$t(ed),ge(([E])=>E))),w=Ko(ne(v,Cs(200),De(({items:E,topItems:C})=>E.length>0&&E[0].originalIndex===C.length),ge(({items:E})=>E[0].index),$t())),_=Ko(ne(v,De(({items:E})=>E.length>0),ge(({items:E})=>{let C=0,k=E.length-1;for(;E[C].type==="group"&&CC;)k--;return{startIndex:E[C].index,endIndex:E[k].index}}),$t(oE)));return{listState:v,topItemsIndexes:g,endReached:x,startReached:w,rangeChanged:_,itemsRendered:y,initialItemCount:b,...p}},Ht(Ei,nE,l4,Pd,Dd,zd,Zs,r4),{singleton:!0}),Wz=_t(([{sizes:e,firstItemIndex:t,data:n,gap:o},{initialTopMostItemIndex:r},{initialItemCount:i,listState:s},{didMount:a}])=>(Ee(ne(a,Je(i),De(([,l])=>l!==0),Je(r,e,t,o,n),ge(([[,l],c,d,f,p,h=[]])=>rE(l,c,d,f,p,h))),s),{}),Ht(Ei,Pd,Va,Zs),{singleton:!0}),iE=_t(([{scrollVelocity:e}])=>{const t=le(!1),n=rt(),o=le(!1);return Ee(ne(e,Je(o,t,n),De(([r,i])=>!!i),ge(([r,i,s,a])=>{const{exit:l,enter:c}=i;if(s){if(l(r,a))return!1}else if(c(r,a))return!0;return s}),$t()),t),wt(ne(_n(t,e,n),Je(o)),([[r,i,s],a])=>r&&a&&a.change&&a.change(i,s)),{isSeeking:t,scrollSeekConfiguration:o,scrollVelocity:e,scrollSeekRangeChanged:n}},Ht(zd),{singleton:!0}),jz=_t(([{topItemsIndexes:e}])=>{const t=le(0);return Ee(ne(t,De(n=>n>0),ge(n=>Array.from({length:n}).map((o,r)=>r))),e),{topItemCount:t}},Ht(Va)),sE=_t(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:o},{listState:r}])=>{const i=rt(),s=co(ne(_n(e,o,t,n,r),ge(([a,l,c,d,f])=>a+l+c+d+f.offsetBottom+f.bottom)),0);return Ee(Ae(s),i),{totalListHeight:s,totalListHeightChanged:i}},Ht(go,Va),{singleton:!0});function aE(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const Uz=aE(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),Gz=_t(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:o},{isScrolling:r,isAtBottom:i,scrollDirection:s,lastJumpDueToItemResize:a},{listState:l},{beforeUnshiftWith:c,shiftWithOffset:d,sizes:f,gap:p},{log:h},{recalcInProgress:m}])=>{const g=Ko(ne(l,Je(a),di(([,y,v,x],[{items:w,totalCount:_,bottom:E,offsetBottom:C},k])=>{const L=E+C;let N=0;return v===_&&y.length>0&&w.length>0&&(w[0].originalIndex===0&&y[0].originalIndex===0||(N=L-x,N!==0&&(N+=k))),[N,w,_,L]},[0,[],0,0]),De(([y])=>y!==0),Je(t,s,o,i,h,m),De(([,y,v,x,,,w])=>!w&&!x&&y!==0&&v===Qu),ge(([[y],,,,,v])=>(v("Upward scrolling compensation",{amount:y},Qo.DEBUG),y))));function b(y){y>0?(Ge(e,{top:-y,behavior:"auto"}),Ge(n,0)):(Ge(n,0),Ge(e,{top:-y,behavior:"auto"}))}return wt(ne(g,Je(n,r)),([y,v,x])=>{x&&Uz()?Ge(n,v-y):b(-y)}),wt(ne(_n(co(r,!1),n,m),De(([y,v,x])=>!y&&!x&&v!==0),ge(([y,v])=>v),Cs(1)),b),Ee(ne(d,ge(y=>({top:-y}))),e),wt(ne(c,Je(f,p),ge(([y,{lastSize:v,groupIndices:x,sizeTree:w},_])=>{function E(C){return C*(v+_)}if(x.length===0)return E(y);{let C=0;const k=Ju(w,0);let L=0,N=0;for(;Ly&&(C-=k,A=y-L+1),L+=A,C+=E(A),N++}return C}})),y=>{Ge(n,y),requestAnimationFrame(()=>{Ge(e,{top:y}),requestAnimationFrame(()=>{Ge(n,0),Ge(m,!1)})})}),{deviation:n}},Ht(go,zd,Va,Ei,Xs,r4)),qz=_t(([{didMount:e},{scrollTo:t},{listState:n}])=>{const o=le(0);return wt(ne(e,Je(o),De(([,r])=>r!==0),ge(([,r])=>({top:r}))),r=>{bi(ne(n,Ul(1),De(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{Ge(t,r)})})}),{initialScrollTop:o}},Ht(Zs,go,Va),{singleton:!0}),Yz=_t(([{viewportHeight:e},{totalListHeight:t}])=>{const n=le(!1),o=co(ne(_n(n,e,t),De(([r])=>r),ge(([,r,i])=>Math.max(0,r-i)),Cs(0),$t()),0);return{alignToBottom:n,paddingTopAddition:o}},Ht(go,sE),{singleton:!0}),c4=_t(([{scrollTo:e,scrollContainerState:t}])=>{const n=rt(),o=rt(),r=rt(),i=le(!1),s=le(void 0);return Ee(ne(_n(n,o),ge(([{viewportHeight:a,scrollTop:l,scrollHeight:c},{offsetTop:d}])=>({scrollTop:Math.max(0,l-d),scrollHeight:c,viewportHeight:a}))),t),Ee(ne(e,Je(o),ge(([a,{offsetTop:l}])=>({...a,top:a.top+l}))),r),{useWindowScroll:i,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:o,windowScrollTo:r}},Ht(go)),Xz=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:o,locationParams:{behavior:r,align:i,...s}})=>eo?{...s,behavior:r,align:i??"end"}:null,Zz=_t(([{sizes:e,totalCount:t,gap:n},{scrollTop:o,viewportHeight:r,headerHeight:i,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:l},{scrollToIndex:c}])=>{const d=rt();return Ee(ne(d,Je(e,r,t,i,s,a,o),Je(n),ge(([[f,p,h,m,g,b,y,v],x])=>{const{done:w,behavior:_,align:E,calculateViewLocation:C=Xz,...k}=f,L=Q_(f,p,m-1),N=Ku(L,p.offsetTree,x)+g+b,A=N+Ur(p.sizeTree,L)[1],M=v+b,z=v+h-y,S=C({itemTop:N,itemBottom:A,viewportTop:M,viewportBottom:z,locationParams:{behavior:_,align:E,...k}});return S?w&&bi(ne(l,De(O=>O===!1),Ul(Jn(l)?1:2)),w):w&&w(),S}),De(f=>f!==null)),c),{scrollIntoView:d}},Ht(Ei,go,Dd,Va,Xs),{singleton:!0}),Jz=_t(([{sizes:e,sizeRanges:t},{scrollTop:n,headerHeight:o},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:s,windowScrollContainerState:a,windowViewportRect:l}])=>{const c=rt(),d=le(void 0),f=le(null),p=le(null);return Ee(a,f),Ee(l,p),wt(ne(c,Je(e,n,s,f,p,o)),([h,m,g,b,y,v,x])=>{const w=Mz(m.sizeTree);b&&y!==null&&v!==null&&(g=y.scrollTop-v.offsetTop),g-=x,h({ranges:w,scrollTop:g})}),Ee(ne(d,De(t4),ge(Kz)),r),Ee(ne(i,Je(d),De(([,h])=>h!==void 0),$t(),ge(([,h])=>h.ranges)),t),{getState:c,restoreStateFrom:d}},Ht(Ei,go,Pd,Zs,c4));function Kz(e){return{offset:e.scrollTop,index:0,align:"start"}}const Qz=_t(([e,t,n,o,r,i,s,a,l,c])=>({...e,...t,...n,...o,...r,...i,...s,...a,...l,...c}),Ht(l4,Wz,Zs,iE,sE,qz,Yz,c4,Zz,Xs)),eP=_t(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:o,trackItemSizes:r,itemSize:i,data:s,firstItemIndex:a,groupIndices:l,statefulTotalCount:c,gap:d,sizes:f},{initialTopMostItemIndex:p,scrolledToInitialItem:h,initialItemFinalLocationReached:m},g,b,y,{listState:v,topItemsIndexes:x,...w},{scrollToIndex:_},E,{topItemCount:C},{groupCounts:k},L])=>(Ee(w.rangeChanged,L.scrollSeekRangeChanged),Ee(ne(L.windowViewportRect,ge(N=>N.visibleHeight)),g.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:h,initialItemFinalLocationReached:m,topItemsIndexes:x,topItemCount:C,groupCounts:k,fixedItemHeight:n,defaultItemHeight:o,gap:d,...y,statefulTotalCount:c,listState:v,scrollToIndex:_,trackItemSizes:r,itemSize:i,groupIndices:l,...w,...L,...g,sizes:f,...b}),Ht(Ei,Pd,go,Jz,$z,Va,Dd,Gz,jz,nE,Qz)),Sm="-webkit-sticky",G5="sticky",lE=aE(()=>{if(typeof document>"u")return G5;const e=document.createElement("div");return e.style.position=Sm,e.style.position===Sm?Sm:G5});function cE(e,t,n){const o=V.useRef(null),r=V.useCallback(l=>{if(l===null||!l.offsetParent)return;const c=l.getBoundingClientRect(),d=c.width;let f,p;if(t){const h=t.getBoundingClientRect(),m=c.top-h.top;f=h.height-Math.max(0,m),p=m+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),p=c.top+window.pageYOffset;o.current={offsetTop:p,visibleHeight:f,visibleWidth:d},e(o.current)},[e,t]),{callbackRef:i,ref:s}=o4(r,!0,n),a=V.useCallback(()=>{r(s.current)},[r,s]);return V.useEffect(()=>{if(t){t.addEventListener("scroll",a);const l=new ResizeObserver(()=>{requestAnimationFrame(a)});return l.observe(t),()=>{t.removeEventListener("scroll",a),l.unobserve(t)}}else return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[a,t]),i}const uE=V.createContext(void 0),dE=V.createContext(void 0);function fE(e){return e}const tP=_t(()=>{const e=le(l=>`Item ${l}`),t=le(null),n=le(l=>`Group ${l}`),o=le({}),r=le(fE),i=le("div"),s=le(fc),a=(l,c=null)=>co(ne(o,ge(d=>d[l]),$t()),c);return{context:t,itemContent:e,groupContent:n,components:o,computeItemKey:r,HeaderFooterTag:i,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),nP=_t(([e,t])=>({...e,...t}),Ht(eP,tP)),oP=({height:e})=>T.jsx("div",{style:{height:e}}),rP={position:lE(),zIndex:1,overflowAnchor:"none"},pE={overflowAnchor:"none"},iP={...pE,display:"inline-block",height:"100%"},q5=V.memo(function({showTopList:t=!1}){const n=Fe("listState"),o=gr("sizeRanges"),r=Fe("useWindowScroll"),i=Fe("customScrollParent"),s=gr("windowScrollContainerState"),a=gr("scrollContainerState"),l=i||r?s:a,c=Fe("itemContent"),d=Fe("context"),f=Fe("groupContent"),p=Fe("trackItemSizes"),h=Fe("itemSize"),m=Fe("log"),g=gr("gap"),b=Fe("horizontalDirection"),{callbackRef:y}=wz(o,h,p,t?fc:l,m,g,i,b,Fe("skipAnimationFrameInResizeObserver")),[v,x]=V.useState(0);u4("deviation",O=>{v!==O&&x(O)});const w=Fe("EmptyPlaceholder"),_=Fe("ScrollSeekPlaceholder")||oP,E=Fe("ListComponent"),C=Fe("ItemComponent"),k=Fe("GroupComponent"),L=Fe("computeItemKey"),N=Fe("isSeeking"),A=Fe("groupIndices").length>0,M=Fe("alignToBottom"),z=Fe("initialItemFinalLocationReached"),S=t?{}:{boxSizing:"border-box",...b?{whiteSpace:"nowrap",display:"inline-block",height:"100%",paddingLeft:n.offsetTop,paddingRight:n.offsetBottom,marginLeft:v!==0?v:M?"auto":0}:{marginTop:v!==0?v:M?"auto":0,paddingTop:n.offsetTop,paddingBottom:n.offsetBottom},...z?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&w?T.jsx(w,{...ao(w,d)}):T.jsx(E,{...ao(E,d),ref:y,style:S,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list",children:(t?n.topItems:n.items).map(O=>{const R=O.originalIndex,$=L(R+n.firstItemIndex,O.data,d);return N?u.createElement(_,{...ao(_,d),key:$,index:O.index,height:O.size,type:O.type||"item",...O.type==="group"?{}:{groupIndex:O.groupIndex}}):O.type==="group"?u.createElement(k,{...ao(k,d),key:$,"data-index":R,"data-known-size":O.size,"data-item-index":O.index,style:rP},f(O.index,d)):u.createElement(C,{...ao(C,d),...cP(C,O.data),key:$,"data-index":R,"data-known-size":O.size,"data-item-index":O.index,"data-item-group-index":O.groupIndex,style:b?iP:pE},A?c(O.index,O.groupIndex,O.data,d):c(O.index,O.data,d))})})}),sP={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},aP={outline:"none",overflowX:"auto",position:"relative"},V0=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),lP={width:"100%",position:lE(),top:0,zIndex:1};function ao(e,t){if(typeof e!="string")return{context:t}}function cP(e,t){return{item:typeof e=="string"?void 0:t}}const uP=V.memo(function(){const t=Fe("HeaderComponent"),n=gr("headerHeight"),o=Fe("HeaderFooterTag"),r=Ha(V.useMemo(()=>s=>n(Ws(s,"height")),[n]),!0,Fe("skipAnimationFrameInResizeObserver")),i=Fe("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),dP=V.memo(function(){const t=Fe("FooterComponent"),n=gr("footerHeight"),o=Fe("HeaderFooterTag"),r=Ha(V.useMemo(()=>s=>n(Ws(s,"height")),[n]),!0,Fe("skipAnimationFrameInResizeObserver")),i=Fe("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null});function hE({usePublisher:e,useEmitter:t,useEmitterValue:n}){return V.memo(function({style:i,children:s,...a}){const l=e("scrollContainerState"),c=n("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=n("scrollerRef"),p=n("context"),h=n("horizontalDirection")||!1,{scrollerRef:m,scrollByCallback:g,scrollToCallback:b}=G_(l,d,c,f,void 0,h);t("scrollTo",b),t("scrollBy",g);const y=h?aP:sP;return T.jsx(c,{ref:m,style:{...y,...i},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...ao(c,p),children:s})})}function mE({usePublisher:e,useEmitter:t,useEmitterValue:n}){return V.memo(function({style:i,children:s,...a}){const l=e("windowScrollContainerState"),c=n("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=n("totalListHeight"),p=n("deviation"),h=n("customScrollParent"),m=n("context"),{scrollerRef:g,scrollByCallback:b,scrollToCallback:y}=G_(l,d,c,fc,h);return j_(()=>(g.current=h||window,()=>{g.current=null}),[g,h]),t("windowScrollTo",y),t("scrollBy",b),T.jsx(c,{style:{position:"relative",...i,...f!==0?{height:f+p}:{}},"data-virtuoso-scroller":!0,...a,...ao(c,m),children:s})})}const fP=({children:e})=>{const t=V.useContext(uE),n=gr("viewportHeight"),o=gr("fixedItemHeight"),r=Fe("alignToBottom"),i=Fe("horizontalDirection"),s=V.useMemo(()=>$_(n,l=>Ws(l,i?"width":"height")),[n,i]),a=Ha(s,!0,Fe("skipAnimationFrameInResizeObserver"));return V.useEffect(()=>{t&&(n(t.viewportHeight),o(t.itemHeight))},[t,n,o]),T.jsx("div",{style:V0(r),ref:a,"data-viewport-type":"element",children:e})},pP=({children:e})=>{const t=V.useContext(uE),n=gr("windowViewportRect"),o=gr("fixedItemHeight"),r=Fe("customScrollParent"),i=cE(n,r,Fe("skipAnimationFrameInResizeObserver")),s=Fe("alignToBottom");return V.useEffect(()=>{t&&(o(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,o]),T.jsx("div",{ref:i,style:V0(s),"data-viewport-type":"window",children:e})},hP=({children:e})=>{const t=Fe("TopItemListComponent")||"div",n=Fe("headerHeight"),o={...lP,marginTop:`${n}px`},r=Fe("context");return T.jsx(t,{style:o,...ao(t,r),children:e})},mP=V.memo(function(t){const n=Fe("useWindowScroll"),o=Fe("topItemsIndexes").length>0,r=Fe("customScrollParent"),i=r||n?vP:yP,s=r||n?pP:fP;return T.jsxs(i,{...t,children:[o&&T.jsx(hP,{children:T.jsx(q5,{showTopList:!0})}),T.jsxs(s,{children:[T.jsx(uP,{}),T.jsx(q5,{}),T.jsx(dP,{})]})]})}),{Component:gP,usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}=W_(nP,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},mP),yP=hE({usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}),vP=mE({usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}),bP=gP,Y5={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},wP={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:X5,ceil:Z5,floor:bp,min:km,max:wu}=Math;function xP(e){return{...wP,items:e}}function J5(e,t,n){return Array.from({length:t-e+1}).map((o,r)=>{const i=n===null?null:n[r+e];return{index:r+e,data:i}})}function _P(e,t){return e&&e.column===t.column&&e.row===t.row}function bf(e,t){return e&&e.width===t.width&&e.height===t.height}const EP=_t(([{overscan:e,visibleRange:t,listBoundary:n,increaseViewportBy:o},{scrollTop:r,viewportHeight:i,scrollBy:s,scrollTo:a,smoothScrollTargetReached:l,scrollContainerState:c,footerHeight:d,headerHeight:f},p,h,{propsReady:m,didMount:g},{windowViewportRect:b,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:x,windowScrollTo:w},_])=>{const E=le(0),C=le(0),k=le(Y5),L=le({height:0,width:0}),N=le({height:0,width:0}),A=rt(),M=rt(),z=le(0),S=le(null),O=le({row:0,column:0}),R=rt(),$=rt(),D=le(!1),I=le(0),F=le(!0),P=le(!1),H=le(!1);wt(ne(g,Je(I),De(([B,q])=>!!q)),()=>{Ge(F,!1)}),wt(ne(_n(g,F,N,L,I,P),De(([B,q,X,de,,ie])=>B&&!q&&X.height!==0&&de.height!==0&&!ie)),([,,,,B])=>{Ge(P,!0),s4(1,()=>{Ge(A,B)}),bi(ne(r),()=>{Ge(n,[0,0]),Ge(F,!0)})}),Ee(ne($,De(B=>B!=null&&B.scrollTop>0),si(0)),C),wt(ne(g,Je($),De(([,B])=>B!=null)),([,B])=>{B&&(Ge(L,B.viewport),Ge(N,B?.item),Ge(O,B.gap),B.scrollTop>0&&(Ge(D,!0),bi(ne(r,Ul(1)),q=>{Ge(D,!1)}),Ge(a,{top:B.scrollTop})))}),Ee(ne(L,ge(({height:B})=>B)),i),Ee(ne(_n(Ae(L,bf),Ae(N,bf),Ae(O,(B,q)=>B&&B.column===q.column&&B.row===q.row),Ae(r)),ge(([B,q,X,de])=>({viewport:B,item:q,gap:X,scrollTop:de}))),R),Ee(ne(_n(Ae(E),t,Ae(O,_P),Ae(N,bf),Ae(L,bf),Ae(S),Ae(C),Ae(D),Ae(F),Ae(I)),De(([,,,,,,,B])=>!B),ge(([B,[q,X],de,ie,fe,ee,ve,,ze,me])=>{const{row:te,column:_e}=de,{height:Le,width:J}=ie,{width:ce}=fe;if(ve===0&&(B===0||ce===0))return Y5;if(J===0){const Pt=a4(me,B),un=Math.max(Pt+ve-1,0);return xP(J5(Pt,un,ee))}const be=gE(ce,J,_e);let we,vt;ze?q===0&&X===0&&ve>0?(we=0,vt=ve-1):(we=be*bp((q+te)/(Le+te)),vt=be*Z5((X+te)/(Le+te))-1,vt=km(B-1,wu(vt,be-1)),we=km(vt,wu(0,we))):(we=0,vt=-1);const Qt=J5(we,vt,ee),{top:zt,bottom:Vt}=K5(fe,de,ie,Qt),at=Z5(B/be),it=at*Le+(at-1)*te-Vt;return{items:Qt,offsetTop:zt,offsetBottom:it,top:zt,bottom:Vt,itemHeight:Le,itemWidth:J}})),k),Ee(ne(S,De(B=>B!==null),ge(B=>B.length)),E),Ee(ne(_n(L,N,k,O),De(([B,q,{items:X}])=>X.length>0&&q.height!==0&&B.height!==0),ge(([B,q,{items:X},de])=>{const{top:ie,bottom:fe}=K5(B,de,q,X);return[ie,fe]}),$t(ed)),n);const W=le(!1);Ee(ne(r,Je(W),ge(([B,q])=>q||B!==0)),W);const U=Ko(ne(Ae(k),De(({items:B})=>B.length>0),Je(E,W),De(([{items:B},q,X])=>X&&B[B.length-1].index===q-1),ge(([,B])=>B-1),$t())),j=Ko(ne(Ae(k),De(({items:B})=>B.length>0&&B[0].index===0),si(0),$t())),G=Ko(ne(Ae(k),Je(D),De(([{items:B},q])=>B.length>0&&!q),ge(([{items:B}])=>({startIndex:B[0].index,endIndex:B[B.length-1].index})),$t(oE),Cs(0)));Ee(G,h.scrollSeekRangeChanged),Ee(ne(A,Je(L,N,E,O),ge(([B,q,X,de,ie])=>{const fe=tE(B),{align:ee,behavior:ve,offset:ze}=fe;let me=fe.index;me==="LAST"&&(me=de-1),me=wu(0,me,km(de-1,me));let te=kg(q,ie,X,me);return ee==="end"?te=X5(te-q.height+X.height):ee==="center"&&(te=X5(te-q.height/2+X.height/2)),ze&&(te+=ze),{top:te,behavior:ve}})),a);const Y=co(ne(k,ge(B=>B.offsetBottom+B.bottom)),0);return Ee(ne(b,ge(B=>({width:B.visibleWidth,height:B.visibleHeight}))),L),{data:S,totalCount:E,viewportDimensions:L,itemDimensions:N,scrollTop:r,scrollHeight:M,overscan:e,increaseViewportBy:o,scrollBy:s,scrollTo:a,scrollToIndex:A,smoothScrollTargetReached:l,windowViewportRect:b,windowScrollTo:w,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:x,deviation:z,scrollContainerState:c,footerHeight:d,headerHeight:f,initialItemCount:C,gap:O,restoreStateFrom:$,...h,initialTopMostItemIndex:I,horizontalDirection:H,gridState:k,totalListHeight:Y,...p,startReached:j,endReached:U,rangeChanged:G,stateChanged:R,propsReady:m,stateRestoreInProgress:D,..._}},Ht(l4,go,zd,iE,Zs,c4,Xs));function K5(e,t,n,o){const{height:r}=n;if(r===void 0||o.length===0)return{top:0,bottom:0};const i=kg(e,t,n,o[0].index),s=kg(e,t,n,o[o.length-1].index)+r;return{top:i,bottom:s}}function kg(e,t,n,o){const r=gE(e.width,n.width,t.column),i=bp(o/r),s=i*n.height+wu(0,i-1)*t.row;return s>0?s+t.row:s}function gE(e,t,n){return wu(1,bp((e+n)/(bp(t)+n)))}const CP=_t(()=>{const e=le(f=>`Item ${f}`),t=le({}),n=le(null),o=le("virtuoso-grid-item"),r=le("virtuoso-grid-list"),i=le(fE),s=le("div"),a=le(fc),l=(f,p=null)=>co(ne(t,ge(h=>h[f]),$t()),p),c=le(!1),d=le(!1);return Ee(Ae(d),c),{readyStateChanged:c,reportReadyState:d,context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:o,listClassName:r,headerFooterTag:s,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),TP=_t(([e,t])=>({...e,...t}),Ht(EP,CP)),SP=V.memo(function(){const t=Wt("gridState"),n=Wt("listClassName"),o=Wt("itemClassName"),r=Wt("itemContent"),i=Wt("computeItemKey"),s=Wt("isSeeking"),a=yr("scrollHeight"),l=Wt("ItemComponent"),c=Wt("ListComponent"),d=Wt("ScrollSeekPlaceholder"),f=Wt("context"),p=yr("itemDimensions"),h=yr("gap"),m=Wt("log"),g=Wt("stateRestoreInProgress"),b=yr("reportReadyState"),y=Ha(V.useMemo(()=>v=>{const x=v.parentElement.parentElement.scrollHeight;a(x);const w=v.firstChild;if(w){const{width:_,height:E}=w.getBoundingClientRect();p({width:_,height:E})}h({row:Q5("row-gap",getComputedStyle(v).rowGap,m),column:Q5("column-gap",getComputedStyle(v).columnGap,m)})},[a,p,h,m]),!0,!1);return j_(()=>{t.itemHeight>0&&t.itemWidth>0&&b(!0)},[t]),g?null:T.jsx(c,{ref:y,className:n,...ao(c,f),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list",children:t.items.map(v=>{const x=i(v.index,v.data,f);return s?T.jsx(d,{...ao(d,f),index:v.index,height:t.itemHeight,width:t.itemWidth},x):u.createElement(l,{...ao(l,f),className:o,"data-index":v.index,key:x},r(v.index,v.data,f))})})}),kP=V.memo(function(){const t=Wt("HeaderComponent"),n=yr("headerHeight"),o=Wt("headerFooterTag"),r=Ha(V.useMemo(()=>s=>n(Ws(s,"height")),[n]),!0,!1),i=Wt("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),LP=V.memo(function(){const t=Wt("FooterComponent"),n=yr("footerHeight"),o=Wt("headerFooterTag"),r=Ha(V.useMemo(()=>s=>n(Ws(s,"height")),[n]),!0,!1),i=Wt("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),IP=({children:e})=>{const t=V.useContext(dE),n=yr("itemDimensions"),o=yr("viewportDimensions"),r=Ha(V.useMemo(()=>i=>{o(i.getBoundingClientRect())},[o]),!0,!1);return V.useEffect(()=>{t&&(o({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,o,n]),T.jsx("div",{style:V0(!1),ref:r,children:e})},NP=({children:e})=>{const t=V.useContext(dE),n=yr("windowViewportRect"),o=yr("itemDimensions"),r=Wt("customScrollParent"),i=cE(n,r,!1);return V.useEffect(()=>{t&&(o({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,o]),T.jsx("div",{ref:i,style:V0(!1),children:e})},RP=V.memo(function({...t}){const n=Wt("useWindowScroll"),o=Wt("customScrollParent"),r=o||n?OP:MP,i=o||n?NP:IP;return T.jsx(r,{...t,children:T.jsxs(i,{children:[T.jsx(kP,{}),T.jsx(SP,{}),T.jsx(LP,{})]})})}),{Component:sfe,usePublisher:yr,useEmitterValue:Wt,useEmitter:yE}=W_(TP,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},RP),MP=hE({usePublisher:yr,useEmitterValue:Wt,useEmitter:yE}),OP=mE({usePublisher:yr,useEmitterValue:Wt,useEmitter:yE});function Q5(e,t,n){return t!=="normal"&&!t?.endsWith("px")&&n(`${e} was not resolved to pixel value correctly`,t,Qo.WARN),t==="normal"?0:parseInt(t??"0",10)}const AP="_lazy-list_1owqy_1",DP="_sortable-overlay_1owqy_5",zP="_scrollable_1owqy_26",PP="_underlay-blur_1owqy_30",BP="_underlay-blur-enabled_1owqy_39",FP="_underlay-blur-disabled_1owqy_41",$P="_underlay-blur-show_1owqy_43",fa={"lazy-list":"_lazy-list_1owqy_1",lazyList:AP,"sortable-overlay":"_sortable-overlay_1owqy_5",sortableOverlay:DP,scrollable:zP,"underlay-blur":"_underlay-blur_1owqy_30",underlayBlur:PP,"underlay-blur-enabled":"_underlay-blur-enabled_1owqy_39",underlayBlurEnabled:BP,"underlay-blur-disabled":"_underlay-blur-disabled_1owqy_41",underlayBlurDisabled:FP,"underlay-blur-show":"_underlay-blur-show_1owqy_43",underlayBlurShow:$P},vE=({className:e,handleRangeChanged:t,handleScrollDone:n,parent:o,renderItem:r,scrollTo:i,smoothScroll:s,totalCount:a})=>{const l=u.useRef(null),[c,d]=u.useState(),f=u.useCallback(p=>{t?.({firstIndex:p.startIndex,lastIndex:p.endIndex})},[t]);return u.useEffect(()=>{i!==void 0&&l.current?.scrollIntoView({index:i,behavior:s?"smooth":void 0,align:"center",done:n})},[i,n,s]),T.jsx(hc,{container:c,className:e,children:T.jsx(bP,{ref:l,scrollerRef:d,customScrollParent:o??void 0,className:fa.lazyList,totalCount:a,itemContent:r,rangeChanged:f})})};function HP(){return MN()&&jP()&&VP()}function VP(){return typeof document.body.checkVisibility=="function"}function WP(e){return e?.checkVisibility!=null&&e.checkVisibility()}function jP(){return typeof navigator.userActivation=="object"}const bE=({children:e,pull:t,select:n})=>{const o=u.useRef(null);return u.useEffect(()=>{if(o.current==null)return;let r,i;for(const c of o.current.querySelectorAll("[tabindex]"))s(c);return r===void 0&&document.addEventListener("keydown",e6),i===void 0&&(i=r),r?.addEventListener("keydown",a),i?.addEventListener("keydown",l),t&&(n&&r!==void 0?r.focus():o.current.focus()),()=>{r?.removeEventListener("keydown",a),i?.removeEventListener("keydown",l),document.removeEventListener("keydown",e6)};function s(c){WP(c)&&(r===void 0?r=c:i=c)}function a(c){c.key!=="Tab"||!c.shiftKey||(c.preventDefault(),i?.focus())}function l(c){c.key!=="Tab"||c.shiftKey||(c.preventDefault(),r?.focus())}},[e,t,n]),T.jsx("div",{ref:o,tabIndex:0,children:e})};function e6(e){e.key==="Tab"&&e.preventDefault()}function wE(e,t,n){const o={...e};return t.top+e.y<=n.top?o.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(o.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?o.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(o.x=n.left+n.width-t.right),o}const UP=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:o}=e;return!n||!t?o:wE(o,n,t)},GP=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:o}=e;const r=o[0];return!t||!r?n:wE(n,t,r)},qP=e=>{let{transform:t}=e;return{...t,x:0}},d4=({bound:e,children:t,handleSort:n,indexRange:o,renderOverlay:r})=>{const[i,s]=u.useState(),a=u.useCallback(g=>{document.body.style.setProperty("cursor","grabbing","important"),s(parseInt(g.active.id))},[]),l=u.useCallback(g=>{document.body.style.setProperty("cursor",""),s(void 0),g.over!=null&&g.active.id!==g.over.id&&n?.(parseInt(g.active.id),parseInt(g.over.id))},[n]),c=u.useCallback(()=>{const g=Array.isArray(t)?t.length:1;return Array.from({length:g},(b,y)=>y.toString())},[t]),d=u.useCallback(()=>{const g=o.firstIndex,y=o.lastIndex-g+1;return Array.from({length:y},(v,x)=>(g+x).toString())},[o]),f=o===void 0?c():d(),p=CA(EA(Jy,{activationConstraint:{distance:0}})),h=[qP];e===jl.Ancestor&&h.push(UP),e===jl.Scrollable&&h.push(GP);const m=u.useMemo(()=>r&&mn.createPortal(T.jsx(WD,{className:fa.sortableOverlay,dropAnimation:null,children:i===void 0?null:r(i)}),document.body),[i,r]);return T.jsxs(CD,{accessibility:{container:document.body},onDragStart:a,onDragEnd:l,sensors:p,collisionDetection:NA,modifiers:h,children:[T.jsx(XD,{items:f,strategy:qD,children:t}),m]})};function f4(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Wa=f4();function xE(e){Wa=e}const _E=/[&<>"']/,YP=new RegExp(_E.source,"g"),EE=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,XP=new RegExp(EE.source,"g"),ZP={"&":"&","<":"<",">":">",'"':""","'":"'"},t6=e=>ZP[e];function jo(e,t){if(t){if(_E.test(e))return e.replace(YP,t6)}else if(EE.test(e))return e.replace(XP,t6);return e}const JP=/(^|[^\[])\^/g;function Tt(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const o={replace:(r,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(JP,"$1"),n=n.replace(r,s),o},getRegex:()=>new RegExp(n,t)};return o}function n6(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const xu={exec:()=>null};function o6(e,t){const n=e.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),o=n.split(/ \|/);let r=0;if(o[0].trim()||o.shift(),o.length>0&&!o[o.length-1].trim()&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length{c(!0)},[]),CA(u.useMemo(()=>({onDragStart(f){let{active:p}=f;i(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:h}=f;t.onDragMove&&i(t.onDragMove({active:p,over:h}))},onDragOver(f){let{active:p,over:h}=f;i(t.onDragOver({active:p,over:h}))},onDragEnd(f){let{active:p,over:h}=f;i(t.onDragEnd({active:p,over:h}))},onDragCancel(f){let{active:p,over:h}=f;i(t.onDragCancel({active:p,over:h}))}}),[i,t])),!l)return null;const d=V.createElement(V.Fragment,null,V.createElement(xA,{id:o,value:r.draggable}),V.createElement(_A,{id:a,announcement:s}));return n?mn.createPortal(d,n):d}var hn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(hn||(hn={}));function hp(){}function IA(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function NA(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(o=>o!=null),[...t])}const jr=Object.freeze({x:0,y:0});function RA(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function MA(e,t){const n=pp(e);if(!n)return"0 0";const o={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function OA(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function AA(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function DA(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function E5(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const zA=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=E5(t,t.left,t.top),i=[];for(const s of o){const{id:a}=s,l=n.get(a);if(l){const c=RA(E5(l),r);i.push({id:a,data:{droppableContainer:s,value:c}})}}return i.sort(OA)};function PA(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=r-o,a=i-n;if(o{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:s}=i,a=n.get(s);if(a){const l=PA(a,t);l>0&&r.push({id:s,data:{droppableContainer:i,value:l}})}}return r.sort(AA)};function FA(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function v_(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jr}function $A(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const HA=$A(1);function b_(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function VA(e,t,n){const o=b_(t);if(!o)return e;const{scaleX:r,scaleY:i,x:s,y:a}=o,l=e.left-s-(1-r)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l}}const WA={ignoreTransform:!1};function dc(e,t){t===void 0&&(t=WA);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:d}=mo(e).getComputedStyle(e);c&&(n=VA(n,c,d))}const{top:o,left:r,width:i,height:s,bottom:a,right:l}=n;return{top:o,left:r,width:i,height:s,bottom:a,right:l}}function C5(e){return dc(e,{ignoreTransform:!0})}function jA(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function UA(e,t){return t===void 0&&(t=mo(e).getComputedStyle(e)),t.position==="fixed"}function GA(e,t){t===void 0&&(t=mo(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function Yy(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(qy(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Rd(r)||m_(r)||n.includes(r))return n;const i=mo(e).getComputedStyle(r);return r!==e&&GA(r,i)&&n.push(r),UA(r,i)?n:o(r.parentNode)}return e?o(e):n}function w_(e){const[t]=Yy(e,1);return t??null}function xm(e){return!O0||!e?null:cc(e)?e:Gy(e)?qy(e)||e===uc(e).scrollingElement?window:Rd(e)?e:null:null}function x_(e){return cc(e)?e.scrollX:e.scrollLeft}function __(e){return cc(e)?e.scrollY:e.scrollTop}function bg(e){return{x:x_(e),y:__(e)}}var xn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xn||(xn={}));function E_(e){return!O0||!e?!1:e===document.scrollingElement}function C_(e){const t={x:0,y:0},n=E_(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:r,isLeft:i,isBottom:s,isRight:a,maxScroll:o,minScroll:t}}const qA={x:.2,y:.2};function YA(e,t,n,o,r){let{top:i,left:s,right:a,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=qA);const{isTop:c,isBottom:d,isLeft:f,isRight:p}=C_(e),h={x:0,y:0},m={x:0,y:0},g={height:t.height*r.y,width:t.width*r.x};return!c&&i<=t.top+g.height?(h.y=xn.Backward,m.y=o*Math.abs((t.top+g.height-i)/g.height)):!d&&l>=t.bottom-g.height&&(h.y=xn.Forward,m.y=o*Math.abs((t.bottom-g.height-l)/g.height)),!p&&a>=t.right-g.width?(h.x=xn.Forward,m.x=o*Math.abs((t.right-g.width-a)/g.width)):!f&&s<=t.left+g.width&&(h.x=xn.Backward,m.x=o*Math.abs((t.left+g.width-s)/g.width)),{direction:h,speed:m}}function XA(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function T_(e){return e.reduce((t,n)=>Sl(t,bg(n)),jr)}function ZA(e){return e.reduce((t,n)=>t+x_(n),0)}function JA(e){return e.reduce((t,n)=>t+__(n),0)}function S_(e,t){if(t===void 0&&(t=dc),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);w_(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const KA=[["x",["left","right"],ZA],["y",["top","bottom"],JA]];let Xy=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Yy(n),r=T_(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,s,a]of KA)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(o),d=r[i]-c;return this.rect[l]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class gu{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function QA(e){const{EventTarget:t}=mo(e);return e instanceof t?e:uc(e)}function _m(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var dr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(dr||(dr={}));function T5(e){e.preventDefault()}function eD(e){e.stopPropagation()}var gt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(gt||(gt={}));const k_={start:[gt.Space,gt.Enter],cancel:[gt.Esc],end:[gt.Space,gt.Enter]},tD=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case gt.Right:return{...n,x:n.x+25};case gt.Left:return{...n,x:n.x-25};case gt.Down:return{...n,y:n.y+25};case gt.Up:return{...n,y:n.y-25}}};class L_{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new gu(uc(n)),this.windowListeners=new gu(mo(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(dr.Resize,this.handleCancel),this.windowListeners.add(dr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(dr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&S_(o),n(jr)}handleKeyDown(t){if(D0(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=k_,coordinateGetter:s=tD,scrollBehavior:a="smooth"}=r,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,d=c?{x:c.left,y:c.top}:jr;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(t,{active:n,context:o.current,currentCoordinates:d});if(f){const p=fp(f,d),h={x:0,y:0},{scrollableAncestors:m}=o.current;for(const g of m){const b=t.code,{isTop:y,isRight:v,isLeft:x,isBottom:w,maxScroll:_,minScroll:E}=C_(g),C=XA(g),k={x:Math.min(b===gt.Right?C.right-C.width/2:C.right,Math.max(b===gt.Right?C.left:C.left+C.width/2,f.x)),y:Math.min(b===gt.Down?C.bottom-C.height/2:C.bottom,Math.max(b===gt.Down?C.top:C.top+C.height/2,f.y))},L=b===gt.Right&&!v||b===gt.Left&&!x,N=b===gt.Down&&!w||b===gt.Up&&!y;if(L&&k.x!==f.x){const A=g.scrollLeft+p.x,M=b===gt.Right&&A<=_.x||b===gt.Left&&A>=E.x;if(M&&!p.y){g.scrollTo({left:A,behavior:a});return}M?h.x=g.scrollLeft-A:h.x=b===gt.Right?g.scrollLeft-_.x:g.scrollLeft-E.x,h.x&&g.scrollBy({left:-h.x,behavior:a});break}else if(N&&k.y!==f.y){const A=g.scrollTop+p.y,M=b===gt.Down&&A<=_.y||b===gt.Up&&A>=E.y;if(M&&!p.x){g.scrollTo({top:A,behavior:a});return}M?h.y=g.scrollTop-A:h.y=b===gt.Down?g.scrollTop-_.y:g.scrollTop-E.y,h.y&&g.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,Sl(fp(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}L_.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=k_,onActivation:r}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(o.start.includes(s)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function S5(e){return!!(e&&"distance"in e)}function k5(e){return!!(e&&"delay"in e)}class Zy{constructor(t,n,o){var r;o===void 0&&(o=QA(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=uc(s),this.documentListeners=new gu(this.document),this.listeners=new gu(o),this.windowListeners=new gu(mo(s)),this.initialCoordinates=(r=pp(i))!=null?r:jr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(dr.Resize,this.handleCancel),this.windowListeners.add(dr.DragStart,T5),this.windowListeners.add(dr.VisibilityChange,this.handleCancel),this.windowListeners.add(dr.ContextMenu,T5),this.documentListeners.add(dr.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(k5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(S5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(dr.Click,eD,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(dr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const l=(n=pp(t))!=null?n:jr,c=fp(r,l);if(!o&&a){if(S5(a)){if(a.tolerance!=null&&_m(c,a.tolerance))return this.handleCancel();if(_m(c,a.distance))return this.handleStart()}return k5(a)&&_m(c,a.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===gt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const nD={move:{name:"pointermove"},end:{name:"pointerup"}};class Jy extends Zy{constructor(t){const{event:n}=t,o=uc(n.target);super(t,nD,o)}}Jy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];const oD={move:{name:"mousemove"},end:{name:"mouseup"}};var wg;(function(e){e[e.RightClick=2]="RightClick"})(wg||(wg={}));class rD extends Zy{constructor(t){super(t,oD,uc(t.event.target))}}rD.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===wg.RightClick?!1:(o?.({event:n}),!0)}}];const Em={move:{name:"touchmove"},end:{name:"touchend"}};class iD extends Zy{constructor(t){super(t,Em)}static setup(){return window.addEventListener(Em.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Em.move.name,t)};function t(){}}}iD.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var yu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(yu||(yu={}));var mp;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mp||(mp={}));function sD(e){let{acceleration:t,activator:n=yu.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:s=5,order:a=mp.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=lD({delta:f,disabled:!i}),[m,g]=gA(),b=u.useRef({x:0,y:0}),y=u.useRef({x:0,y:0}),v=u.useMemo(()=>{switch(n){case yu.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case yu.DraggableRect:return r}},[n,r,l]),x=u.useRef(null),w=u.useCallback(()=>{const E=x.current;if(!E)return;const C=b.current.x*y.current.x,k=b.current.y*y.current.y;E.scrollBy(C,k)},[]),_=u.useMemo(()=>a===mp.TreeOrder?[...c].reverse():c,[a,c]);u.useEffect(()=>{if(!i||!c.length||!v){g();return}for(const E of _){if(o?.(E)===!1)continue;const C=c.indexOf(E),k=d[C];if(!k)continue;const{direction:L,speed:N}=YA(E,k,v,t,p);for(const A of["x","y"])h[A][L[A]]||(N[A]=0,L[A]=0);if(N.x>0||N.y>0){g(),x.current=E,m(w,s),b.current=N,y.current=L;return}}b.current={x:0,y:0},y.current={x:0,y:0},g()},[t,w,o,g,i,s,JSON.stringify(v),JSON.stringify(h),m,c,_,d,JSON.stringify(p)])}const aD={x:{[xn.Backward]:!1,[xn.Forward]:!1},y:{[xn.Backward]:!1,[xn.Forward]:!1}};function lD(e){let{delta:t,disabled:n}=e;const o=dp(t);return Md(r=>{if(n||!o||!r)return aD;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[xn.Backward]:r.x[xn.Backward]||i.x===-1,[xn.Forward]:r.x[xn.Forward]||i.x===1},y:{[xn.Backward]:r.y[xn.Backward]||i.y===-1,[xn.Forward]:r.y[xn.Forward]||i.y===1}}},[n,t,o])}function cD(e,t){const n=t!==null?e.get(t):void 0,o=n?n.node.current:null;return Md(r=>{var i;return t===null?null:(i=o??r)!=null?i:null},[o,t])}function uD(e,t){return u.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,i=r.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,o)}));return[...n,...i]},[]),[e,t])}var Xu;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Xu||(Xu={}));var xg;(function(e){e.Optimized="optimized"})(xg||(xg={}));const L5=new Map;function dD(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,s]=u.useState(null),{frequency:a,measure:l,strategy:c}=r,d=u.useRef(e),f=b(),p=Yu(f),h=u.useCallback(function(y){y===void 0&&(y=[]),!p.current&&s(v=>v===null?y:v.concat(y.filter(x=>!v.includes(x))))},[p]),m=u.useRef(null),g=Md(y=>{if(f&&!n)return L5;if(!y||y===L5||d.current!==e||i!=null){const v=new Map;for(let x of e){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){v.set(x.id,x.rect.current);continue}const w=x.node.current,_=w?new Xy(l(w),w):null;x.rect.current=_,_&&v.set(x.id,_)}return v}return y},[e,i,n,f,l]);return u.useEffect(()=>{d.current=e},[e]),u.useEffect(()=>{f||h()},[n,f]),u.useEffect(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),u.useEffect(()=>{f||typeof a!="number"||m.current!==null||(m.current=setTimeout(()=>{h(),m.current=null},a))},[a,f,h,...o]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function b(){switch(c){case Xu.Always:return!1;case Xu.BeforeDragging:return n;default:return!n}}}function Ky(e,t){return Md(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function fD(e,t){return Ky(e,t)}function pD(e){let{callback:t,disabled:n}=e;const o=A0(t),r=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(o)},[o,n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function z0(e){let{callback:t,disabled:n}=e;const o=A0(t),r=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(o)},[n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function hD(e){return new Xy(dc(e),e)}function I5(e,t,n){t===void 0&&(t=hD);const[o,r]=u.useReducer(a,null),i=pD({callback(l){if(e)for(const c of l){const{type:d,target:f}=c;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){r();break}}}}),s=z0({callback:r});return Tr(()=>{r(),e?(s?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),i?.disconnect())},[e]),o;function a(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const d=t(e);return JSON.stringify(l)===JSON.stringify(d)?l:d}}function mD(e){const t=Ky(e);return v_(e,t)}const N5=[];function gD(e){const t=u.useRef(e),n=Md(o=>e?o&&o!==N5&&e&&t.current&&e.parentNode===t.current.parentNode?o:Yy(e):N5,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function yD(e){const[t,n]=u.useState(null),o=u.useRef(e),r=u.useCallback(i=>{const s=xm(i.target);s&&n(a=>a?(a.set(s,bg(s)),new Map(a)):null)},[]);return u.useEffect(()=>{const i=o.current;if(e!==i){s(i);const a=e.map(l=>{const c=xm(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,bg(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),o.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(l=>{const c=xm(l);c?.removeEventListener("scroll",r)})}},[r,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Sl(i,s),jr):T_(e):jr,[e,t])}function R5(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==jr;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?fp(e,n.current):jr}function vD(e){u.useEffect(()=>{if(!O0)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function bD(e,t){return u.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:i}=o;return n[r]=s=>{i(s,t)},n},{}),[e,t])}function I_(e){return u.useMemo(()=>e?jA(e):null,[e])}const Cm=[];function wD(e,t){t===void 0&&(t=dc);const[n]=e,o=I_(n?mo(n):null),[r,i]=u.useReducer(a,Cm),s=z0({callback:i});return e.length>0&&r===Cm&&i(),Tr(()=>{e.length?e.forEach(l=>s?.observe(l)):(s?.disconnect(),i())},[e]),r;function a(){return e.length?e.map(l=>E_(l)?o:new Xy(t(l),l)):Cm}}function N_(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Rd(t)?t:e}function xD(e){let{measure:t}=e;const[n,o]=u.useState(null),r=u.useCallback(c=>{for(const{target:d}of c)if(Rd(d)){o(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),i=z0({callback:r}),s=u.useCallback(c=>{const d=N_(c);i?.disconnect(),d&&i?.observe(d),o(d?t(d):null)},[t,i]),[a,l]=up(s);return u.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const _D=[{sensor:Jy,options:{}},{sensor:L_,options:{}}],ED={current:{}},a1={draggable:{measure:C5},droppable:{measure:C5,strategy:Xu.WhileDragging,frequency:xg.Optimized},dragOverlay:{measure:dc}};class vu extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const CD={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new vu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:hp},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:a1,measureDroppableContainers:hp,windowRect:null,measuringScheduled:!1},R_={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:hp,draggableNodes:new Map,over:null,measureDroppableContainers:hp},Ad=u.createContext(R_),M_=u.createContext(CD);function TD(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new vu}}}function SD(e,t){switch(t.type){case hn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case hn.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case hn.DragEnd:case hn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case hn.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new vu(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case hn.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const s=new vu(e.droppable.containers);return s.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case hn.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new vu(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function kD(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=u.useContext(Ad),i=dp(o),s=dp(n?.id);return u.useEffect(()=>{if(!t&&!o&&i&&s!=null){if(!D0(i)||document.activeElement===i.target)return;const a=r.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const d of[l.current,c.current]){if(!d)continue;const f=bA(d);if(f){f.focus();break}}})}},[o,t,r,s,i]),null}function O_(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}function LD(e){return u.useMemo(()=>({draggable:{...a1.draggable,...e?.draggable},droppable:{...a1.droppable,...e?.droppable},dragOverlay:{...a1.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function ID(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=u.useRef(!1),{x:s,y:a}=typeof r=="boolean"?{x:r,y:r}:r;Tr(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!o)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const d=n(c),f=v_(d,o);if(s||(f.x=0),a||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=w_(c);p&&p.scrollBy({top:f.y,left:f.x})}},[t,s,a,o,n])}const P0=u.createContext({...jr,scaleX:1,scaleY:1});var ms;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ms||(ms={}));const ND=u.memo(function(t){var n,o,r,i;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:d=_D,collisionDetection:f=BA,measuring:p,modifiers:h,...m}=t;const g=u.useReducer(SD,void 0,TD),[b,y]=g,[v,x]=TA(),[w,_]=u.useState(ms.Uninitialized),E=w===ms.Initialized,{draggable:{active:C,nodes:k,translate:L},droppable:{containers:N}}=b,A=C?k.get(C):null,M=u.useRef({initial:null,translated:null}),z=u.useMemo(()=>{var Be;return C!=null?{id:C,data:(Be=A?.data)!=null?Be:ED,rect:M}:null},[C,A]),S=u.useRef(null),[O,R]=u.useState(null),[$,D]=u.useState(null),I=Yu(m,Object.values(m)),F=Od("DndDescribedBy",s),P=u.useMemo(()=>N.getEnabled(),[N]),H=LD(p),{droppableRects:W,measureDroppableContainers:U,measuringScheduled:j}=dD(P,{dragging:E,dependencies:[L.x,L.y],config:H.droppable}),G=cD(k,C),Y=u.useMemo(()=>$?pp($):null,[$]),B=Me(),q=fD(G,H.draggable.measure);ID({activeNode:C?k.get(C):null,config:B.layoutShiftCompensation,initialRect:q,measure:H.draggable.measure});const X=I5(G,H.draggable.measure,q),de=I5(G?G.parentElement:null),ie=u.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fe=N.getNodeFor((n=ie.current.over)==null?void 0:n.id),ee=xD({measure:H.dragOverlay.measure}),ve=(o=ee.nodeRef.current)!=null?o:G,ze=E?(r=ee.rect)!=null?r:X:null,me=!!(ee.nodeRef.current&&ee.rect),te=mD(me?null:X),xe=I_(ve?mo(ve):null),Le=gD(E?fe??G:null),J=wD(Le),se=O_(h,{transform:{x:L.x-te.x,y:L.y-te.y,scaleX:1,scaleY:1},activatorEvent:$,active:z,activeNodeRect:X,containerNodeRect:de,draggingNodeRect:ze,over:ie.current.over,overlayNodeRect:ee.rect,scrollableAncestors:Le,scrollableAncestorRects:J,windowRect:xe}),_e=Y?Sl(Y,L):null,be=yD(Le),vt=R5(be),Qt=R5(be,[X]),zt=Sl(se,vt),Vt=ze?HA(ze,se):null,at=z&&Vt?f({active:z,collisionRect:Vt,droppableRects:W,droppableContainers:P,pointerCoordinates:_e}):null,cn=DA(at,"id"),[it,Pt]=u.useState(null),un=me?se:Sl(se,Qt),Qn=FA(un,(i=it?.rect)!=null?i:null,X),Zt=u.useCallback((Be,ht)=>{let{sensor:tt,options:mt}=ht;if(S.current==null)return;const en=k.get(S.current);if(!en)return;const Nn=Be.nativeEvent,on=new tt({active:S.current,activeNode:en,event:Nn,options:mt,context:ie,onStart(rn){const to=S.current;if(to==null)return;const wo=k.get(to);if(!wo)return;const{onDragStart:Jr}=I.current,no={active:{id:to,data:wo.data,rect:M}};mn.unstable_batchedUpdates(()=>{Jr?.(no),_(ms.Initializing),y({type:hn.DragStart,initialCoordinates:rn,active:to}),v({type:"onDragStart",event:no})})},onMove(rn){y({type:hn.DragMove,coordinates:rn})},onEnd:eo(hn.DragEnd),onCancel:eo(hn.DragCancel)});mn.unstable_batchedUpdates(()=>{R(on),D(Be.nativeEvent)});function eo(rn){return async function(){const{active:wo,collisions:Jr,over:no,scrollAdjustedTranslate:as}=ie.current;let kr=null;if(wo&&as){const{cancelDrop:ur}=I.current;kr={activatorEvent:Nn,active:wo,collisions:Jr,delta:as,over:no},rn===hn.DragEnd&&typeof ur=="function"&&await Promise.resolve(ur(kr))&&(rn=hn.DragCancel)}S.current=null,mn.unstable_batchedUpdates(()=>{y({type:rn}),_(ms.Uninitialized),Pt(null),R(null),D(null);const ur=rn===hn.DragEnd?"onDragEnd":"onDragCancel";if(kr){const Cc=I.current[ur];Cc?.(kr),v({type:ur,event:kr})}})}}},[k]),dn=u.useCallback((Be,ht)=>(tt,mt)=>{const en=tt.nativeEvent,Nn=k.get(mt);if(S.current!==null||!Nn||en.dndKit||en.defaultPrevented)return;const on={active:Nn};Be(tt,ht.options,on)===!0&&(en.dndKit={capturedBy:ht.sensor},S.current=mt,Zt(tt,ht))},[k,Zt]),vn=uD(d,dn);vD(d),Tr(()=>{X&&w===ms.Initializing&&_(ms.Initialized)},[X,w]),u.useEffect(()=>{const{onDragMove:Be}=I.current,{active:ht,activatorEvent:tt,collisions:mt,over:en}=ie.current;if(!ht||!tt)return;const Nn={active:ht,activatorEvent:tt,collisions:mt,delta:{x:zt.x,y:zt.y},over:en};mn.unstable_batchedUpdates(()=>{Be?.(Nn),v({type:"onDragMove",event:Nn})})},[zt.x,zt.y]),u.useEffect(()=>{const{active:Be,activatorEvent:ht,collisions:tt,droppableContainers:mt,scrollAdjustedTranslate:en}=ie.current;if(!Be||S.current==null||!ht||!en)return;const{onDragOver:Nn}=I.current,on=mt.get(cn),eo=on&&on.rect.current?{id:on.id,rect:on.rect.current,data:on.data,disabled:on.disabled}:null,rn={active:Be,activatorEvent:ht,collisions:tt,delta:{x:en.x,y:en.y},over:eo};mn.unstable_batchedUpdates(()=>{Pt(eo),Nn?.(rn),v({type:"onDragOver",event:rn})})},[cn]),Tr(()=>{ie.current={activatorEvent:$,active:z,activeNode:G,collisionRect:Vt,collisions:at,droppableRects:W,draggableNodes:k,draggingNode:ve,draggingNodeRect:ze,droppableContainers:N,over:it,scrollableAncestors:Le,scrollAdjustedTranslate:zt},M.current={initial:ze,translated:Vt}},[z,G,at,Vt,k,ve,ze,W,N,it,Le,zt]),sD({...B,delta:L,draggingRect:Vt,pointerCoordinates:_e,scrollableAncestors:Le,scrollableAncestorRects:J});const Ao=u.useMemo(()=>({active:z,activeNode:G,activeNodeRect:X,activatorEvent:$,collisions:at,containerNodeRect:de,dragOverlay:ee,draggableNodes:k,droppableContainers:N,droppableRects:W,over:it,measureDroppableContainers:U,scrollableAncestors:Le,scrollableAncestorRects:J,measuringConfiguration:H,measuringScheduled:j,windowRect:xe}),[z,G,X,$,at,de,ee,k,N,W,it,U,Le,J,H,j,xe]),In=u.useMemo(()=>({activatorEvent:$,activators:vn,active:z,activeNodeRect:X,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:k,over:it,measureDroppableContainers:U}),[$,vn,z,X,y,F,k,it,U]);return V.createElement(y_.Provider,{value:x},V.createElement(Ad.Provider,{value:In},V.createElement(M_.Provider,{value:Ao},V.createElement(P0.Provider,{value:Qn},c)),V.createElement(kD,{disabled:a?.restoreFocus===!1})),V.createElement(LA,{...a,hiddenTextDescribedById:F}));function Me(){const Be=O?.autoScrollEnabled===!1,ht=typeof l=="object"?l.enabled===!1:l===!1,tt=E&&!Be&&!ht;return typeof l=="object"?{...l,enabled:tt}:{enabled:tt}}}),RD=u.createContext(null),M5="button",MD="Droppable";function OD(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=Od(MD),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:d,draggableNodes:f,over:p}=u.useContext(Ad),{role:h=M5,roleDescription:m="draggable",tabIndex:g=0}=r??{},b=l?.id===t,y=u.useContext(b?P0:RD),[v,x]=up(),[w,_]=up(),E=bD(s,t),C=Yu(n);Tr(()=>(f.set(t,{id:t,key:i,node:v,activatorNode:w,data:C}),()=>{const L=f.get(t);L&&L.key===i&&f.delete(t)}),[f,t]);const k=u.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":o,"aria-pressed":b&&h===M5?!0:void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[o,h,g,b,m,d.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:k,isDragging:b,listeners:o?void 0:E,node:v,over:p,setNodeRef:x,setActivatorNodeRef:_,transform:y}}function A_(){return u.useContext(M_)}const AD="Droppable",DD={timeout:25};function zD(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=Od(AD),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=u.useContext(Ad),d=u.useRef({disabled:n}),f=u.useRef(!1),p=u.useRef(null),h=u.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:b}={...DD,...r},y=Yu(g??o),v=u.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),h.current=null},b)},[b]),x=z0({callback:v,disabled:m||!s}),w=u.useCallback((k,L)=>{x&&(L&&(x.unobserve(L),f.current=!1),k&&x.observe(k))},[x]),[_,E]=up(w),C=Yu(t);return u.useEffect(()=>{!x||!_.current||(x.disconnect(),f.current=!1,x.observe(_.current))},[_,x]),Tr(()=>(a({type:hn.RegisterDroppable,element:{id:o,key:i,disabled:n,node:_,rect:p,data:C}}),()=>a({type:hn.UnregisterDroppable,key:i,id:o})),[o]),u.useEffect(()=>{n!==d.current.disabled&&(a({type:hn.SetDroppableDisabled,id:o,key:i,disabled:n}),d.current.disabled=n)},[o,i,n,a]),{active:s,rect:p,isOver:l?.id===o,node:_,over:l,setNodeRef:E}}function PD(e){let{animation:t,children:n}=e;const[o,r]=u.useState(null),[i,s]=u.useState(null),a=dp(n);return!n&&!o&&a&&r(a),Tr(()=>{if(!i)return;const l=o?.key,c=o?.props.id;if(l==null||c==null){r(null);return}Promise.resolve(t(c,i)).then(()=>{r(null)})},[t,o,i]),V.createElement(V.Fragment,null,n,o?u.cloneElement(o,{ref:s}):null)}const BD={x:0,y:0,scaleX:1,scaleY:1};function FD(e){let{children:t}=e;return V.createElement(Ad.Provider,{value:R_},V.createElement(P0.Provider,{value:BD},t))}const $D={position:"fixed",touchAction:"none"},HD=e=>D0(e)?"transform 250ms ease":void 0,VD=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:s,rect:a,style:l,transform:c,transition:d=HD}=e;if(!a)return null;const f=r?c:{...c,scaleX:1,scaleY:1},p={...$D,width:a.width,height:a.height,top:a.top,left:a.left,transform:Ki.Transform.toString(f),transformOrigin:r&&o?MA(o,a):void 0,transition:typeof d=="function"?d(o):d,...l};return V.createElement(n,{className:s,style:p,ref:t},i)}),WD=e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:s}=e;if(i!=null&&i.active)for(const[a,l]of Object.entries(i.active))l!==void 0&&(r[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,l));if(i!=null&&i.dragOverlay)for(const[a,l]of Object.entries(i.dragOverlay))l!==void 0&&o.node.style.setProperty(a,l);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&o.node.classList.add(s.dragOverlay),function(){for(const[l,c]of Object.entries(r))n.node.style.setProperty(l,c);s!=null&&s.active&&n.node.classList.remove(s.active)}},jD=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ki.Transform.toString(t)},{transform:Ki.Transform.toString(n)}]},UD={duration:250,easing:"ease",keyframes:jD,sideEffects:WD({styles:{active:{opacity:"0"}}})};function GD(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:r}=e;return A0((i,s)=>{if(t===null)return;const a=n.get(i);if(!a)return;const l=a.node.current;if(!l)return;const c=N_(s);if(!c)return;const{transform:d}=mo(s).getComputedStyle(s),f=b_(d);if(!f)return;const p=typeof t=="function"?t:qD(t);return S_(l,r.draggable.measure),p({active:{id:i,data:a.data,node:l,rect:r.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:s,rect:r.dragOverlay.measure(c)},droppableContainers:o,measuringConfiguration:r,transform:f})})}function qD(e){const{duration:t,easing:n,sideEffects:o,keyframes:r}={...UD,...e};return i=>{let{active:s,dragOverlay:a,transform:l,...c}=i;if(!t)return;const d={x:a.rect.left-s.rect.left,y:a.rect.top-s.rect.top},f={scaleX:l.scaleX!==1?s.rect.width*l.scaleX/a.rect.width:1,scaleY:l.scaleY!==1?s.rect.height*l.scaleY/a.rect.height:1},p={x:l.x-d.x,y:l.y-d.y,...f},h=r({...c,active:s,dragOverlay:a,transform:{initial:l,final:p}}),[m]=h,g=h[h.length-1];if(JSON.stringify(m)===JSON.stringify(g))return;const b=o?.({active:s,dragOverlay:a,...c}),y=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(v=>{y.onfinish=()=>{b?.(),v()}})}}let O5=0;function YD(e){return u.useMemo(()=>{if(e!=null)return O5++,O5},[e])}const XD=V.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:s,wrapperElement:a="div",className:l,zIndex:c=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:m,droppableContainers:g,dragOverlay:b,over:y,measuringConfiguration:v,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:_}=A_(),E=u.useContext(P0),C=YD(f?.id),k=O_(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:E,windowRect:_}),L=Ky(p),N=GD({config:o,draggableNodes:m,droppableContainers:g,measuringConfiguration:v}),A=L?b.setRef:void 0;return V.createElement(FD,null,V.createElement(PD,{animation:N},f&&C?V.createElement(VD,{key:C,id:f.id,ref:A,as:a,activatorEvent:d,adjustScale:t,className:l,transition:i,rect:L,style:{zIndex:c,...r},transform:k},n):null))});function Qy(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function ZD(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function gf(e){return e!==null&&e>=0}function JD(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=Qy(t,o,n),s=t[r],a=i[r];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},yf={scaleX:1,scaleY:1},QD=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:i,overIndex:s}=e;const a=(t=i[n])!=null?t:o;if(!a)return null;if(r===n){const c=i[s];return c?{x:0,y:nn&&r<=s?{x:0,y:-a.height-l,...yf}:r=s?{x:0,y:a.height+l,...yf}:{x:0,y:0,...yf}};function ez(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];return o?no.map(E=>typeof E=="object"&&"id"in E?E.id:E),[o]),m=s!=null,g=s?h.indexOf(s.id):-1,b=c?h.indexOf(c.id):-1,y=u.useRef(h),v=!JD(h,y.current),x=b!==-1&&g===-1||v,w=KD(i);Tr(()=>{v&&m&&d(h)},[v,h,m,d]),u.useEffect(()=>{y.current=h},[h]);const _=u.useMemo(()=>({activeIndex:g,containerId:f,disabled:w,disableTransforms:x,items:h,overIndex:b,useDragOverlay:p,sortedRects:ZD(h,l),strategy:r}),[g,f,w.draggable,w.droppable,x,h,b,l,p,r]);return V.createElement(P_.Provider,{value:_},t)}const nz=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return Qy(n,o,r).indexOf(t)},oz=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!o||a!==i&&r===s?!1:n?!0:s!==r&&t===l},rz={duration:200,easing:"ease"},B_="transform",iz=Ki.Transition.toString({property:B_,duration:0,easing:"linear"}),sz={roleDescription:"sortable"};function az(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,s]=u.useState(null),a=u.useRef(n);return Tr(()=>{if(!t&&n!==a.current&&o.current){const l=r.current;if(l){const c=dc(o.current,{ignoreTransform:!0}),d={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(d.x||d.y)&&s(d)}}n!==a.current&&(a.current=n)},[t,n,o,r]),u.useEffect(()=>{i&&s(null)},[i]),i}function lz(e){let{animateLayoutChanges:t=oz,attributes:n,disabled:o,data:r,getNewIndex:i=nz,id:s,strategy:a,resizeObserverConfig:l,transition:c=rz}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:m,sortedRects:g,overIndex:b,useDragOverlay:y,strategy:v}=u.useContext(P_),x=cz(o,h),w=d.indexOf(s),_=u.useMemo(()=>({sortable:{containerId:f,index:w,items:d},...r}),[f,r,w,d]),E=u.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:C,node:k,isOver:L,setNodeRef:N}=zD({id:s,data:_,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:A,activatorEvent:M,activeNodeRect:z,attributes:S,setNodeRef:O,listeners:R,isDragging:$,over:D,setActivatorNodeRef:I,transform:F}=OD({id:s,data:_,attributes:{...sz,...n},disabled:x.draggable}),P=mA(N,O),H=!!A,W=H&&!m&&gf(p)&&gf(b),U=!y&&$,j=U&&W?F:null,Y=W?j??(a??v)({rects:g,activeNodeRect:z,activeIndex:p,overIndex:b,index:w}):null,B=gf(p)&&gf(b)?i({id:s,items:d,activeIndex:p,overIndex:b}):w,q=A?.id,X=u.useRef({activeId:q,items:d,newIndex:B,containerId:f}),de=d!==X.current.items,ie=t({active:A,containerId:f,isDragging:$,isSorting:H,id:s,index:w,items:d,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:c,wasDragging:X.current.activeId!=null}),fe=az({disabled:!ie,index:w,node:k,rect:C});return u.useEffect(()=>{H&&X.current.newIndex!==B&&(X.current.newIndex=B),f!==X.current.containerId&&(X.current.containerId=f),d!==X.current.items&&(X.current.items=d)},[H,B,f,d]),u.useEffect(()=>{if(q===X.current.activeId)return;if(q&&!X.current.activeId){X.current.activeId=q;return}const ve=setTimeout(()=>{X.current.activeId=q},50);return()=>clearTimeout(ve)},[q]),{active:A,activeIndex:p,attributes:S,data:_,rect:C,index:w,newIndex:B,items:d,isOver:L,isSorting:H,isDragging:$,listeners:R,node:k,overIndex:b,over:D,setNodeRef:P,setActivatorNodeRef:I,setDroppableNodeRef:N,setDraggableNodeRef:O,transform:fe??Y,transition:ee()};function ee(){if(fe||de&&X.current.newIndex===w)return iz;if(!(U&&!D0(M)||!c)&&(H||ie))return Ki.Transition.toString({...c,property:B_})}}function cz(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}gt.Down,gt.Right,gt.Up,gt.Left;var Ul=(e=>(e[e.Ancestor=0]="Ancestor",e[e.Scrollable=1]="Scrollable",e))(Ul||{});function e4(e,t){const{listeners:n,setNodeRef:o,setActivatorNodeRef:r,transform:i,transition:s,isDragging:a,isSorting:l}=lz({id:e.toString(),animateLayoutChanges:()=>!1,disabled:t?.disabled}),c={ref:o,style:{transform:t?.moveOnly?Ki.Translate.toString(i):Ki.Transform.toString(i),transition:s,opacity:t?.hidePreview&&a?0:1,pointerEvents:l?"none":void 0},role:t?.disabled?void 0:"sortable-node"},d={ref:r,role:t?.disabled?void 0:"sortable-handle",...n};return{node:c,handle:d,combined:{...c,...n,role:t?.disabled?void 0:"sortable-combined"}}}function uz(e){return new Promise(t=>setTimeout(t,e*1e3))}function yn(...e){return e.map(hz).filter(t=>t!=null).join(" ")}function dz(e){return e?.querySelector("div[data-overlayscrollbars-viewport]")??void 0}function fz(e,t,n){return Qy(e,t,n)}function pz(e){let t=5381;for(let n=0;n>>0).toString(16)}`}function hz(e){return e==null||typeof e=="boolean"?null:typeof e=="string"?e:e[0]?e[1]:null}function Uo(e){return e=mz(e),e=e.replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),e=e.replace(/(\D)(\d)/g,"$1 $2").replace(/(\d)(\D)/g,"$1 $2").trim(),e=e.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),e}function mz(e){if(e.length<2)return e;const t="$1_$2";return e.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,t).replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,t)}const B0=0,Zs=1,fc=2,F_=4;function $_(e,t){return n=>e(t(n))}function gz(e,t){return t(e)}function H_(e,t){return n=>e(t,n)}function A5(e,t){return()=>e(t)}function F0(e,t){return t(e),e}function Ht(...e){return e}function yz(e){e()}function D5(e){return()=>e}function vz(...e){return()=>{e.map(yz)}}function t4(e){return e!==void 0}function pc(){}function wt(e,t){return e(Zs,t)}function Ge(e,t){e(B0,t)}function n4(e){e(fc)}function Jn(e){return e(F_)}function Ee(e,t){return wt(e,H_(t,B0))}function wi(e,t){const n=e(Zs,o=>{n(),t(o)});return n}function rt(){const e=[];return(t,n)=>{switch(t){case fc:e.splice(0,e.length);return;case Zs:return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)};case B0:e.slice().forEach(o=>{o(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function ce(e){let t=e;const n=rt();return(o,r)=>{switch(o){case Zs:r(t);break;case B0:t=r;break;case F_:return t}return n(o,r)}}function bz(e){let t,n;const o=()=>t&&t();return function(r,i){switch(r){case Zs:return i?n===i?void 0:(o(),n=i,t=wt(e,i),t):(o(),pc);case fc:o(),n=null;return;default:throw new Error(`unrecognized action ${r}`)}}}function Ko(e){return F0(rt(),t=>Ee(e,t))}function co(e,t){return F0(ce(t),n=>Ee(e,n))}function wz(...e){return t=>e.reduceRight(gz,t)}function ne(e,...t){const n=wz(...t);return(o,r)=>{switch(o){case Zs:return wt(e,n(r));case fc:n4(e);return}}}function V_(e,t){return e===t}function $t(e=V_){let t;return n=>o=>{e(t,o)||(t=o,n(o))}}function De(e){return t=>n=>{e(n)&&t(n)}}function ge(e){return t=>$_(t,e)}function ai(e){return t=>()=>t(e)}function fi(e,t){return n=>o=>n(t=e(t,o))}function Gl(e){return t=>n=>{e>0?e--:t(n)}}function Ss(e){let t=null,n;return o=>r=>{t=r,!n&&(n=setTimeout(()=>{n=void 0,o(t)},e))}}function z5(e){let t,n;return o=>r=>{t=r,n&&clearTimeout(n),n=setTimeout(()=>{o(t)},e)}}function Je(...e){const t=new Array(e.length);let n=0,o=null;const r=Math.pow(2,e.length)-1;return e.forEach((i,s)=>{const a=Math.pow(2,s);wt(i,l=>{const c=n;n=n|a,t[s]=l,c!==r&&n===r&&o&&(o(),o=null)})}),i=>s=>{const a=()=>i([s].concat(t));n===r?a():o=a}}function P5(...e){return function(t,n){switch(t){case Zs:return vz(...e.map(o=>wt(o,n)));case fc:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ae(e,t=V_){return ne(e,$t(t))}function _n(...e){const t=rt(),n=new Array(e.length);let o=0;const r=Math.pow(2,e.length)-1;return e.forEach((i,s)=>{const a=Math.pow(2,s);wt(i,l=>{n[s]=l,o=o|a,o===r&&Ge(t,n)})}),function(i,s){switch(i){case Zs:return o===r&&s(n),wt(t,s);case fc:return n4(t);default:throw new Error(`unrecognized action ${i}`)}}}function _t(e,t=[],{singleton:n}={singleton:!0}){return{id:xz(),constructor:e,dependencies:t,singleton:n}}const xz=()=>Symbol();function _z(e){const t=new Map,n=({id:o,constructor:r,dependencies:i,singleton:s})=>{if(s&&t.has(o))return t.get(o);const a=r(i.map(l=>n(l)));return s&&t.set(o,a),a};return n(e)}function Ez(e,t){const n={},o={};let r=0;const i=e.length;for(;r(v[x]=w=>{const _=y[t.methods[x]];Ge(_,w)},v),{})}function d(y){return s.reduce((v,x)=>(v[x]=bz(y[t.events[x]]),v),{})}const f=V.forwardRef((y,v)=>{const{children:x,...w}=y,[_]=V.useState(()=>F0(_z(e),k=>l(k,w))),[E]=V.useState(A5(d,_));vf(()=>{for(const k of s)k in w&&wt(E[k],w[k]);return()=>{Object.values(E).map(n4)}},[w,E,_]),vf(()=>{l(_,w)}),V.useImperativeHandle(v,D5(c(_)));const C=n;return T.jsx(a.Provider,{value:_,children:n?T.jsx(C,{...Ez([...o,...r,...s],w),children:x}):x})}),p=y=>V.useCallback(H_(Ge,V.useContext(a)[y]),[y]),h=y=>{const x=V.useContext(a)[y],w=V.useCallback(_=>wt(x,_),[x]);return V.useSyncExternalStore(w,()=>Jn(x),()=>Jn(x))},m=y=>{const x=V.useContext(a)[y],[w,_]=V.useState(A5(Jn,x));return vf(()=>wt(x,E=>{E!==w&&_(D5(E))}),[x,w]),w},g=V.version.startsWith("18")?h:m;return{Component:f,usePublisher:p,useEmitterValue:g,useEmitter:(y,v)=>{const w=V.useContext(a)[y];vf(()=>wt(w,v),[v,w])}}}const j_=typeof document<"u"?V.useLayoutEffect:V.useEffect;var Qo=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Qo||{});const Cz={0:"debug",1:"log",2:"warn",3:"error"},Tz=()=>typeof globalThis>"u"?window:globalThis,Js=_t(()=>{const e=ce(3);return{log:ce((n,o,r=1)=>{var i;const s=(i=Tz().VIRTUOSO_LOG_LEVEL)!=null?i:Jn(e);r>=s&&console[Cz[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o)}),logLevel:e}},[],{singleton:!0});function o4(e,t,n){const o=V.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=V.useMemo(()=>new ResizeObserver(s=>{const a=()=>{const l=s[0].target;l.offsetParent!==null&&e(l)};n?a():requestAnimationFrame(a)}),[e]);r=s=>{s&&t?(i.observe(s),o.current=s):(o.current&&i.unobserve(o.current),o.current=null)}}return{ref:o,callbackRef:r}}function Va(e,t,n){return o4(e,t,n).callbackRef}function Sz(e,t,n,o,r,i,s,a,l){const c=V.useCallback(d=>{const f=kz(d.children,t,a?"offsetWidth":"offsetHeight",r);let p=d.parentElement;for(;!p.dataset.virtuosoScroller;)p=p.parentElement;const h=p.lastElementChild.dataset.viewportType==="window",m=s?a?s.scrollLeft:s.scrollTop:h?a?window.pageXOffset||document.documentElement.scrollLeft:window.pageYOffset||document.documentElement.scrollTop:a?p.scrollLeft:p.scrollTop,g=s?a?s.scrollWidth:s.scrollHeight:h?a?document.documentElement.scrollWidth:document.documentElement.scrollHeight:a?p.scrollWidth:p.scrollHeight,b=s?a?s.offsetWidth:s.offsetHeight:h?a?window.innerWidth:window.innerHeight:a?p.offsetWidth:p.offsetHeight;o({scrollTop:Math.max(m,0),scrollHeight:g,viewportHeight:b}),i?.(a?B5("column-gap",getComputedStyle(d).columnGap,r):B5("row-gap",getComputedStyle(d).rowGap,r)),f!==null&&e(f)},[e,t,r,i,s,o]);return o4(c,n,l)}function kz(e,t,n,o){const r=e.length;if(r===0)return null;const i=[];for(let s=0;s{const h=p.target,m=h===window||h===document,g=i?m?window.pageXOffset||document.documentElement.scrollLeft:h.scrollLeft:m?window.pageYOffset||document.documentElement.scrollTop:h.scrollTop,b=i?m?document.documentElement.scrollWidth:h.scrollWidth:m?document.documentElement.scrollHeight:h.scrollHeight,y=i?m?window.innerWidth:h.offsetWidth:m?window.innerHeight:h.offsetHeight,v=()=>{e({scrollTop:Math.max(g,0),scrollHeight:b,viewportHeight:y})};p.suppressFlushSync?v():IO.flushSync(v),a.current!==null&&(g===a.current||g<=0||g===b-y)&&(a.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);V.useEffect(()=>{const p=r||s.current;return o(r||s.current),c({target:p,suppressFlushSync:!0}),p.addEventListener("scroll",c,{passive:!0}),()=>{o(null),p.removeEventListener("scroll",c)}},[s,c,n,o,r]);function d(p){const h=s.current;if(!h||(i?"offsetWidth"in h&&h.offsetWidth===0:"offsetHeight"in h&&h.offsetHeight===0))return;const m=p.behavior==="smooth";let g,b,y;h===window?(b=Math.max(Us(document.documentElement,i?"width":"height"),i?document.documentElement.scrollWidth:document.documentElement.scrollHeight),g=i?window.innerWidth:window.innerHeight,y=i?document.documentElement.scrollLeft:document.documentElement.scrollTop):(b=h[i?"scrollWidth":"scrollHeight"],g=Us(h,i?"width":"height"),y=h[i?"scrollLeft":"scrollTop"]);const v=b-g;if(p.top=Math.ceil(Math.max(Math.min(v,p.top),0)),U_(g,b)||p.top===y){e({scrollTop:y,scrollHeight:b,viewportHeight:g}),m&&t(!0);return}m?(a.current=p.top,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,a.current=null,t(!0)},1e3)):a.current=null,i&&(p={left:p.top,behavior:p.behavior}),h.scrollTo(p)}function f(p){i&&(p={left:p.top,behavior:p.behavior}),s.current.scrollBy(p)}return{scrollerRef:s,scrollByCallback:f,scrollToCallback:d}}const go=_t(()=>{const e=rt(),t=rt(),n=ce(0),o=rt(),r=ce(0),i=rt(),s=rt(),a=ce(0),l=ce(0),c=ce(0),d=ce(0),f=rt(),p=rt(),h=ce(!1),m=ce(!1),g=ce(!1);return Ee(ne(e,ge(({scrollTop:b})=>b)),t),Ee(ne(e,ge(({scrollHeight:b})=>b)),s),Ee(t,r),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:a,fixedHeaderHeight:l,fixedFooterHeight:c,footerHeight:d,scrollHeight:s,smoothScrollTargetReached:o,horizontalDirection:m,skipAnimationFrameInResizeObserver:g,scrollTo:f,scrollBy:p,statefulScrollTop:r,deviation:n,scrollingInProgress:h}},[],{singleton:!0}),Zu={lvl:0};function q_(e,t,n,o=Zu,r=Zu){return{k:e,v:t,lvl:n,l:o,r}}function kt(e){return e===Zu}function kl(){return Zu}function _g(e,t){if(kt(e))return Zu;const{k:n,l:o,r}=e;if(t===n){if(kt(o))return r;if(kt(r))return o;{const[i,s]=Y_(o);return l1(pn(e,{k:i,v:s,l:X_(o)}))}}else return tt&&(a=a.concat(Eg(i,t,n))),o>=t&&o<=n&&a.push({k:o,v:r}),o<=n&&(a=a.concat(Eg(s,t,n))),a}function fa(e){return kt(e)?[]:[...fa(e.l),{k:e.k,v:e.v},...fa(e.r)]}function Y_(e){return kt(e.r)?[e.k,e.v]:Y_(e.r)}function X_(e){return kt(e.r)?e.l:l1(pn(e,{r:X_(e.r)}))}function pn(e,t){return q_(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function Tm(e){return kt(e)||e.lvl>e.r.lvl}function F5(e){return Cg(J_(e))}function l1(e){const{l:t,r:n,lvl:o}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(Tm(t))return J_(pn(e,{lvl:o-1}));if(!kt(t)&&!kt(t.r))return pn(t.r,{l:pn(t,{r:t.r.l}),r:pn(e,{l:t.r.r,lvl:o-1}),lvl:o});throw new Error("Unexpected empty nodes")}else{if(Tm(e))return Cg(pn(e,{lvl:o-1}));if(!kt(n)&&!kt(n.l)){const r=n.l,i=Tm(r)?n.lvl-1:n.lvl;return pn(r,{l:pn(e,{r:r.l,lvl:o-1}),r:Cg(pn(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}else throw new Error("Unexpected empty nodes")}}function $0(e,t,n){if(kt(e))return[];const o=Ur(e,t)[0];return Lz(Eg(e,o,n))}function Z_(e,t){const n=e.length;if(n===0)return[];let{index:o,value:r}=t(e[0]);const i=[];for(let s=1;s({index:t,value:n}))}function Cg(e){const{r:t,lvl:n}=e;return!kt(t)&&!kt(t.r)&&t.lvl===n&&t.r.lvl===n?pn(t,{l:pn(e,{r:t.l}),lvl:n+1}):e}function J_(e){const{l:t}=e;return!kt(t)&&t.lvl===e.lvl?pn(t,{r:pn(e,{l:t.r})}):e}function gp(e,t,n,o=0){let r=e.length-1;for(;o<=r;){const i=Math.floor((o+r)/2),s=e[i],a=n(s,t);if(a===0)return i;if(a===-1){if(r-o<2)return i-1;r=i-1}else{if(r===o)return i;o=i+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function K_(e,t,n){return e[gp(e,t,n)]}function Iz(e,t,n,o){const r=gp(e,t,o),i=gp(e,n,o,r);return e.slice(r,i+1)}const r4=_t(()=>({recalcInProgress:ce(!1)}),[],{singleton:!0});function Nz(e){const{size:t,startIndex:n,endIndex:o}=e;return r=>r.start===n&&(r.end===o||r.end===1/0)&&r.value===t}function $5(e,t){let n=0,o=0;for(;n=d||r===p)&&(e=_g(e,d)):(c=p!==r,l=!0),f>s&&s>=d&&p!==r&&(e=Go(e,s+1,p));c&&(e=Go(e,i,r))}return[e,n]}function Mz(){return{offsetTree:[],sizeTree:kl(),groupOffsetTree:kl(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function i4({index:e},t){return t===e?0:t0&&(t=Math.max(t,K_(e,o,i4).offset)),Z_(Iz(e,t,n,Oz),Az)}function Tg(e,t,n,o){let r=e,i=0,s=0,a=0,l=0;if(t!==0){l=gp(r,t-1,i4),a=r[l].offset;const d=Ur(n,t-1);i=d[0],s=d[1],r.length&&r[l].size===Ur(n,t)[1]&&(l-=1),r=r.slice(0,l+1)}else r=[];for(const{start:c,value:d}of $0(n,t,1/0)){const f=c-i,p=f*s+a+f*o;r.push({offset:p,size:d,index:c}),i=c,a=p,s=d}return{offsetTree:r,lastIndex:i,lastOffset:a,lastSize:s}}function zz(e,[t,n,o,r]){t.length>0&&o("received item sizes",t,Qo.DEBUG);const i=e.sizeTree;let s=i,a=0;if(n.length>0&&kt(i)&&t.length===2){const p=t[0].size,h=t[1].size;s=n.reduce((m,g)=>Go(Go(m,g,p),g+1,h),s)}else[s,a]=Rz(s,t);if(s===i)return e;const{offsetTree:l,lastIndex:c,lastSize:d,lastOffset:f}=Tg(e.offsetTree,a,s,r);return{sizeTree:s,offsetTree:l,lastIndex:c,lastOffset:f,lastSize:d,groupOffsetTree:n.reduce((p,h)=>Go(p,h,Ku(h,l,r)),kl()),groupIndices:n}}function Ku(e,t,n){if(t.length===0)return 0;const{offset:o,index:r,size:i}=K_(t,e,i4),s=e-r,a=i*s+(s-1)*n+o;return a>0?a+n:a}function Pz(e){return typeof e.groupIndex<"u"}function Q_(e,t,n){if(Pz(e))return t.groupIndices[e.groupIndex]+1;{const o=e.index==="LAST"?n:e.index;let r=eE(o,t);return r=Math.max(0,r,Math.min(n,r)),r}}function eE(e,t){if(!H0(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function H0(e){return!kt(e.groupOffsetTree)}function Bz(e){return fa(e).map(({k:t,v:n},o,r)=>{const i=r[o+1],s=i?i.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const Fz={offsetHeight:"height",offsetWidth:"width"},Ci=_t(([{log:e},{recalcInProgress:t}])=>{const n=rt(),o=rt(),r=co(o,0),i=rt(),s=rt(),a=ce(0),l=ce([]),c=ce(void 0),d=ce(void 0),f=ce((_,E)=>Us(_,Fz[E])),p=ce(void 0),h=ce(0),m=Mz(),g=co(ne(n,Je(l,e,h),fi(zz,m),$t()),m),b=co(ne(l,$t(),fi((_,E)=>({prev:_.current,current:E}),{prev:[],current:[]}),ge(({prev:_})=>_)),[]);Ee(ne(l,De(_=>_.length>0),Je(g,h),ge(([_,E,C])=>{const k=_.reduce((L,N,A)=>Go(L,N,Ku(N,E.offsetTree,C)||A),kl());return{...E,groupIndices:_,groupOffsetTree:k}})),g),Ee(ne(o,Je(g),De(([_,{lastIndex:E}])=>_[{startIndex:_,endIndex:E,size:C}])),n),Ee(c,d);const y=co(ne(c,ge(_=>_===void 0)),!0);Ee(ne(d,De(_=>_!==void 0&&kt(Jn(g).sizeTree)),ge(_=>[{startIndex:0,endIndex:0,size:_}])),n);const v=Ko(ne(n,Je(g),fi(({sizes:_},[E,C])=>({changed:C!==_,sizes:C}),{changed:!1,sizes:m}),ge(_=>_.changed)));wt(ne(a,fi((_,E)=>({diff:_.prev-E,prev:E}),{diff:0,prev:0}),ge(_=>_.diff)),_=>{const{groupIndices:E}=Jn(g);if(_>0)Ge(t,!0),Ge(i,_+$5(_,E));else if(_<0){const C=Jn(b);C.length>0&&(_-=$5(-_,C)),Ge(s,_)}}),wt(ne(a,Je(e)),([_,E])=>{_<0&&E("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Qo.ERROR)});const x=Ko(i);Ee(ne(i,Je(g),ge(([_,E])=>{const C=E.groupIndices.length>0,k=[],L=E.lastSize;if(C){const N=Ju(E.sizeTree,0);let A=0,M=0;for(;A<_;){const O=E.groupIndices[M],R=E.groupIndices.length===M+1?1/0:E.groupIndices[M+1]-O-1;k.push({startIndex:O,endIndex:O,size:N}),k.push({startIndex:O+1,endIndex:O+1+R-1,size:L}),M++,A+=R+1}const z=fa(E.sizeTree);return A!==_&&z.shift(),z.reduce((O,{k:R,v:$})=>{let D=O.ranges;return O.prevSize!==0&&(D=[...O.ranges,{startIndex:O.prevIndex,endIndex:R+_-1,size:O.prevSize}]),{ranges:D,prevIndex:R+_,prevSize:$}},{ranges:k,prevIndex:_,prevSize:0}).ranges}return fa(E.sizeTree).reduce((N,{k:A,v:M})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:A+_-1,size:N.prevSize}],prevIndex:A+_,prevSize:M}),{ranges:[],prevIndex:0,prevSize:L}).ranges})),n);const w=Ko(ne(s,Je(g,h),ge(([_,{offsetTree:E},C])=>{const k=-_;return Ku(k,E,C)})));return Ee(ne(s,Je(g,h),ge(([_,E,C])=>{if(E.groupIndices.length>0){if(kt(E.sizeTree))return E;let L=kl();const N=Jn(b);let A=0,M=0,z=0;for(;A<-_;){z=N[M];const O=N[M+1]-z-1;M++,A+=O+1}if(L=fa(E.sizeTree).reduce((O,{k:R,v:$})=>Go(O,Math.max(0,R+_),$),L),A!==-_){const O=Ju(E.sizeTree,z);L=Go(L,0,O);const R=Ur(E.sizeTree,-_+1)[1];L=Go(L,1,R)}return{...E,sizeTree:L,...Tg(E.offsetTree,0,L,C)}}else{const L=fa(E.sizeTree).reduce((N,{k:A,v:M})=>Go(N,Math.max(0,A+_),M),kl());return{...E,sizeTree:L,...Tg(E.offsetTree,0,L,C)}}})),g),{data:p,totalCount:o,sizeRanges:n,groupIndices:l,defaultItemSize:d,fixedItemSize:c,unshiftWith:i,shiftWith:s,shiftWithOffset:w,beforeUnshiftWith:x,firstItemIndex:a,gap:h,sizes:g,listRefresh:v,statefulTotalCount:r,trackItemSizes:y,itemSize:f}},Ht(Js,r4),{singleton:!0}),$z=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function tE(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!$z)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Dd=_t(([{sizes:e,totalCount:t,listRefresh:n,gap:o},{scrollingInProgress:r,viewportHeight:i,scrollTo:s,smoothScrollTargetReached:a,headerHeight:l,footerHeight:c,fixedHeaderHeight:d,fixedFooterHeight:f},{log:p}])=>{const h=rt(),m=rt(),g=ce(0);let b=null,y=null,v=null;function x(){b&&(b(),b=null),v&&(v(),v=null),y&&(clearTimeout(y),y=null),Ge(r,!1)}return Ee(ne(h,Je(e,i,t,g,l,c,p),Je(o,d,f),ge(([[w,_,E,C,k,L,N,A],M,z,S])=>{const O=tE(w),{align:R,behavior:$,offset:D}=O,I=C-1,F=Q_(O,_,I);let P=Ku(F,_.offsetTree,M)+L;R==="end"?(P+=z+Ur(_.sizeTree,F)[1]-E+S,F===I&&(P+=N)):R==="center"?P+=(z+Ur(_.sizeTree,F)[1]-E+S)/2:P-=k,D&&(P+=D);const H=W=>{x(),W?(A("retrying to scroll to",{location:w},Qo.DEBUG),Ge(h,w)):(Ge(m,!0),A("list did not change, scroll successful",{},Qo.DEBUG))};if(x(),$==="smooth"){let W=!1;v=wt(n,U=>{W=W||U}),b=wi(a,()=>{H(W)})}else b=wi(ne(n,Hz(150)),H);return y=setTimeout(()=>{x()},1200),Ge(r,!0),A("scrolling from index to",{index:F,top:P,behavior:$},Qo.DEBUG),{top:P,behavior:$}})),s),{scrollToIndex:h,scrollTargetReached:m,topListHeight:g}},Ht(Ci,go,Js),{singleton:!0});function Hz(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return o=>{o&&(t(!0),clearTimeout(n))}}}const Qu="up",bu="down",Vz="none",Wz={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},jz=0,zd=_t(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:o,footerHeight:r,scrollBy:i}])=>{const s=ce(!1),a=ce(!0),l=rt(),c=rt(),d=ce(4),f=ce(jz),p=co(ne(P5(ne(Ae(t),Gl(1),ai(!0)),ne(Ae(t),Gl(1),ai(!1),z5(100))),$t()),!1),h=co(ne(P5(ne(i,ai(!0)),ne(i,ai(!1),z5(200))),$t()),!1);Ee(ne(_n(Ae(t),Ae(f)),ge(([v,x])=>v<=x),$t()),a),Ee(ne(a,Ss(50)),c);const m=Ko(ne(_n(e,Ae(n),Ae(o),Ae(r),Ae(d)),fi((v,[{scrollTop:x,scrollHeight:w},_,E,C,k])=>{const L=x+_-w>-k,N={viewportHeight:_,scrollTop:x,scrollHeight:w};if(L){let M,z;return x>v.state.scrollTop?(M="SCROLLED_DOWN",z=v.state.scrollTop-x):(M="SIZE_DECREASED",z=v.state.scrollTop-x||v.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:M,scrollTopDelta:z}}let A;return N.scrollHeight>v.state.scrollHeight?A="SIZE_INCREASED":_v&&v.atBottom===x.atBottom))),g=co(ne(e,fi((v,{scrollTop:x,scrollHeight:w,viewportHeight:_})=>{if(U_(v.scrollHeight,w))return{scrollTop:x,scrollHeight:w,jump:0,changed:!1};{const E=w-(x+_)<1;return v.scrollTop!==x&&E?{scrollHeight:w,scrollTop:x,jump:v.scrollTop-x,changed:!0}:{scrollHeight:w,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),De(v=>v.changed),ge(v=>v.jump)),0);Ee(ne(m,ge(v=>v.atBottom)),s),Ee(ne(s,Ss(50)),l);const b=ce(bu);Ee(ne(e,ge(({scrollTop:v})=>v),$t(),fi((v,x)=>Jn(h)?{direction:v.direction,prevScrollTop:x}:{direction:xv.direction)),b),Ee(ne(e,Ss(50),ai(Vz)),b);const y=ce(0);return Ee(ne(p,De(v=>!v),ai(0)),y),Ee(ne(t,Ss(100),Je(p),De(([v,x])=>!!x),fi(([v,x],[w])=>[x,w],[0,0]),ge(([v,x])=>x-v)),y),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:m,atTopStateChange:c,atBottomStateChange:l,scrollDirection:b,atBottomThreshold:d,atTopThreshold:f,scrollVelocity:y,lastJumpDueToItemResize:g}},Ht(go)),Ks=_t(([{log:e}])=>{const t=ce(!1),n=Ko(ne(t,De(o=>o),$t()));return wt(t,o=>{o&&Jn(e)("props updated",{},Qo.DEBUG)}),{propsReady:t,didMount:n}},Ht(Js),{singleton:!0});function s4(e,t){e==0?t():requestAnimationFrame(()=>s4(e-1,t))}function a4(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Pd=_t(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:o},{scrollToIndex:r,scrollTargetReached:i},{didMount:s}])=>{const a=ce(!0),l=ce(0),c=ce(!0);return Ee(ne(s,Je(l),De(([d,f])=>!!f),ai(!1)),a),Ee(ne(s,Je(l),De(([d,f])=>!!f),ai(!1)),c),wt(ne(_n(t,s),Je(a,e,n,c),De(([[,d],f,{sizeTree:p},h,m])=>d&&(!kt(p)||t4(h))&&!f&&!m),Je(l)),([,d])=>{wi(i,()=>{Ge(c,!0)}),s4(4,()=>{wi(o,()=>{Ge(a,!0)}),Ge(r,d)})}),{scrolledToInitialItem:a,initialTopMostItemIndex:l,initialItemFinalLocationReached:c}},Ht(Ci,go,Dd,Ks),{singleton:!0});function H5(e){return e?e==="smooth"?"smooth":"auto":!1}const Uz=(e,t)=>typeof e=="function"?H5(e(t)):t&&H5(e),Gz=_t(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:o},{scrollToIndex:r},{scrolledToInitialItem:i},{propsReady:s,didMount:a},{log:l},{scrollingInProgress:c}])=>{const d=ce(!1),f=rt();let p=null;function h(g){Ge(r,{index:"LAST",align:"end",behavior:g})}wt(ne(_n(ne(Ae(e),Gl(1)),a),Je(Ae(d),n,i,c),ge(([[g,b],y,v,x,w])=>{let _=b&&x,E="auto";return _&&(E=Uz(y,v||w),_=_&&!!E),{totalCount:g,shouldFollow:_,followOutputBehavior:E}}),De(({shouldFollow:g})=>g)),({totalCount:g,followOutputBehavior:b})=>{p&&(p(),p=null),p=wi(t,()=>{Jn(l)("following output to ",{totalCount:g},Qo.DEBUG),h(b),p=null})});function m(g){const b=wi(o,y=>{g&&!y.atBottom&&y.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Jn(l)("scrolling to bottom due to increased size",{},Qo.DEBUG),h("auto"))});setTimeout(b,100)}return wt(ne(_n(Ae(d),e,s),De(([g,,b])=>g&&b),fi(({value:g},[,b])=>({refreshed:g===b,value:b}),{refreshed:!1,value:0}),De(({refreshed:g})=>g),Je(d,e)),([,g])=>{Jn(i)&&m(g!==!1)}),wt(f,()=>{m(Jn(d)!==!1)}),wt(_n(Ae(d),o),([g,b])=>{g&&!b.atBottom&&b.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&h("auto")}),{followOutput:d,autoscrollToBottom:f}},Ht(Ci,zd,Dd,Pd,Ks,Js,go));function qz(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const nE=_t(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:o,headerHeight:r}])=>{const i=rt(),s=rt(),a=Ko(ne(i,ge(qz)));return Ee(ne(a,ge(l=>l.totalCount)),e),Ee(ne(a,ge(l=>l.groupIndices)),t),Ee(ne(_n(o,n,r),De(([l,c])=>H0(c)),ge(([l,c,d])=>Ur(c.groupOffsetTree,Math.max(l-d,0),"v")[0]),$t(),ge(l=>[l])),s),{groupCounts:i,topItemsIndexes:s}},Ht(Ci,go));function ed(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function oE(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const yp="top",vp="bottom",V5="none";function W5(e,t,n){return typeof e=="number"?n===Qu&&t===yp||n===bu&&t===vp?e:0:n===Qu?t===yp?e.main:e.reverse:t===vp?e.main:e.reverse}function j5(e,t){return typeof e=="number"?e:e[t]||0}const l4=_t(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:o,fixedHeaderHeight:r}])=>{const i=rt(),s=ce(0),a=ce(0),l=ce(0),c=co(ne(_n(Ae(e),Ae(t),Ae(o),Ae(i,ed),Ae(l),Ae(s),Ae(r),Ae(n),Ae(a)),ge(([d,f,p,[h,m],g,b,y,v,x])=>{const w=d-v,_=b+y,E=Math.max(p-w,0);let C=V5;const k=j5(x,yp),L=j5(x,vp);return h-=v,h+=p+y,m+=p+y,m-=v,h>d+_-k&&(C=Qu),md!=null),$t(ed)),[0,0]);return{listBoundary:i,overscan:l,topListHeight:s,increaseViewportBy:a,visibleRange:c}},Ht(go),{singleton:!0});function Yz(e,t,n){if(H0(t)){const o=eE(e,t);return[{index:Ur(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const Sm={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function U5(e,t,n){if(e.length===0)return[];if(!H0(t))return e.map(c=>({...c,index:c.index+n,originalIndex:c.index}));const o=e[0].index,r=e[e.length-1].index,i=[],s=$0(t.groupOffsetTree,o,r);let a,l=0;for(const c of e){(!a||a.end0){c=e[0].offset;const g=e[e.length-1];d=g.offset+g.size}const f=n-l,p=a+f*s+(f-1)*o,h=c,m=p-d;return{items:U5(e,r,i),topItems:U5(t,r,i),topListHeight:t.reduce((g,b)=>b.size+g,0),offsetTop:c,offsetBottom:m,top:h,bottom:d,totalCount:n,firstItemIndex:i}}function rE(e,t,n,o,r,i){let s=0;if(n.groupIndices.length>0)for(const d of n.groupIndices){if(d-s>=e)break;s++}const a=e+s,l=a4(t,a),c=Array.from({length:a}).map((d,f)=>({index:f+l,size:0,offset:0,data:i[f+l]}));return c1(c,[],a,r,n,o)}const Wa=_t(([{sizes:e,totalCount:t,data:n,firstItemIndex:o,gap:r},i,{visibleRange:s,listBoundary:a,topListHeight:l},{scrolledToInitialItem:c,initialTopMostItemIndex:d},{topListHeight:f},p,{didMount:h},{recalcInProgress:m}])=>{const g=ce([]),b=ce(0),y=rt();Ee(i.topItemsIndexes,g);const v=co(ne(_n(h,m,Ae(s,ed),Ae(t),Ae(e),Ae(d),c,Ae(g),Ae(o),Ae(r),n),De(([E,C,,k,,,,,,,L])=>{const N=L&&L.length!==k;return E&&!C&&!N}),ge(([,,[E,C],k,L,N,A,M,z,S,O])=>{const R=L,{sizeTree:$,offsetTree:D}=R,I=Jn(b);if(k===0)return{...Sm,totalCount:k};if(E===0&&C===0)return I===0?{...Sm,totalCount:k}:rE(I,N,L,z,S,O||[]);if(kt($))return I>0?null:c1(Yz(a4(N,k),R,O),[],k,S,R,z);const F=[];if(M.length>0){const j=M[0],G=M[M.length-1];let Y=0;for(const B of $0($,j,G)){const q=B.value,X=Math.max(B.start,j),de=Math.min(B.end,G);for(let ie=X;ie<=de;ie++)F.push({index:ie,size:q,offset:Y,data:O&&O[ie]}),Y+=q}}if(!A)return c1([],F,k,S,R,z);const P=M.length>0?M[M.length-1]+1:0,H=Dz(D,E,C,P);if(H.length===0)return null;const W=k-1,U=F0([],j=>{for(const G of H){const Y=G.value;let B=Y.offset,q=G.start;const X=Y.size;if(Y.offset=C);ie++)j.push({index:ie,size:X,offset:B,data:O&&O[ie]}),B+=X+S}});return c1(U,F,k,S,R,z)}),De(E=>E!==null),$t()),Sm);Ee(ne(n,De(t4),ge(E=>E?.length)),t),Ee(ne(v,ge(E=>E.topListHeight)),f),Ee(f,l),Ee(ne(v,ge(E=>[E.top,E.bottom])),a),Ee(ne(v,ge(E=>E.items)),y);const x=Ko(ne(v,De(({items:E})=>E.length>0),Je(t,n),De(([{items:E},C])=>E[E.length-1].originalIndex===C-1),ge(([,E,C])=>[E-1,C]),$t(ed),ge(([E])=>E))),w=Ko(ne(v,Ss(200),De(({items:E,topItems:C})=>E.length>0&&E[0].originalIndex===C.length),ge(({items:E})=>E[0].index),$t())),_=Ko(ne(v,De(({items:E})=>E.length>0),ge(({items:E})=>{let C=0,k=E.length-1;for(;E[C].type==="group"&&CC;)k--;return{startIndex:E[C].index,endIndex:E[k].index}}),$t(oE)));return{listState:v,topItemsIndexes:g,endReached:x,startReached:w,rangeChanged:_,itemsRendered:y,initialItemCount:b,...p}},Ht(Ci,nE,l4,Pd,Dd,zd,Ks,r4),{singleton:!0}),Xz=_t(([{sizes:e,firstItemIndex:t,data:n,gap:o},{initialTopMostItemIndex:r},{initialItemCount:i,listState:s},{didMount:a}])=>(Ee(ne(a,Je(i),De(([,l])=>l!==0),Je(r,e,t,o,n),ge(([[,l],c,d,f,p,h=[]])=>rE(l,c,d,f,p,h))),s),{}),Ht(Ci,Pd,Wa,Ks),{singleton:!0}),iE=_t(([{scrollVelocity:e}])=>{const t=ce(!1),n=rt(),o=ce(!1);return Ee(ne(e,Je(o,t,n),De(([r,i])=>!!i),ge(([r,i,s,a])=>{const{exit:l,enter:c}=i;if(s){if(l(r,a))return!1}else if(c(r,a))return!0;return s}),$t()),t),wt(ne(_n(t,e,n),Je(o)),([[r,i,s],a])=>r&&a&&a.change&&a.change(i,s)),{isSeeking:t,scrollSeekConfiguration:o,scrollVelocity:e,scrollSeekRangeChanged:n}},Ht(zd),{singleton:!0}),Zz=_t(([{topItemsIndexes:e}])=>{const t=ce(0);return Ee(ne(t,De(n=>n>0),ge(n=>Array.from({length:n}).map((o,r)=>r))),e),{topItemCount:t}},Ht(Wa)),sE=_t(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:o},{listState:r}])=>{const i=rt(),s=co(ne(_n(e,o,t,n,r),ge(([a,l,c,d,f])=>a+l+c+d+f.offsetBottom+f.bottom)),0);return Ee(Ae(s),i),{totalListHeight:s,totalListHeightChanged:i}},Ht(go,Wa),{singleton:!0});function aE(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const Jz=aE(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),Kz=_t(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:o},{isScrolling:r,isAtBottom:i,scrollDirection:s,lastJumpDueToItemResize:a},{listState:l},{beforeUnshiftWith:c,shiftWithOffset:d,sizes:f,gap:p},{log:h},{recalcInProgress:m}])=>{const g=Ko(ne(l,Je(a),fi(([,y,v,x],[{items:w,totalCount:_,bottom:E,offsetBottom:C},k])=>{const L=E+C;let N=0;return v===_&&y.length>0&&w.length>0&&(w[0].originalIndex===0&&y[0].originalIndex===0||(N=L-x,N!==0&&(N+=k))),[N,w,_,L]},[0,[],0,0]),De(([y])=>y!==0),Je(t,s,o,i,h,m),De(([,y,v,x,,,w])=>!w&&!x&&y!==0&&v===Qu),ge(([[y],,,,,v])=>(v("Upward scrolling compensation",{amount:y},Qo.DEBUG),y))));function b(y){y>0?(Ge(e,{top:-y,behavior:"auto"}),Ge(n,0)):(Ge(n,0),Ge(e,{top:-y,behavior:"auto"}))}return wt(ne(g,Je(n,r)),([y,v,x])=>{x&&Jz()?Ge(n,v-y):b(-y)}),wt(ne(_n(co(r,!1),n,m),De(([y,v,x])=>!y&&!x&&v!==0),ge(([y,v])=>v),Ss(1)),b),Ee(ne(d,ge(y=>({top:-y}))),e),wt(ne(c,Je(f,p),ge(([y,{lastSize:v,groupIndices:x,sizeTree:w},_])=>{function E(C){return C*(v+_)}if(x.length===0)return E(y);{let C=0;const k=Ju(w,0);let L=0,N=0;for(;Ly&&(C-=k,A=y-L+1),L+=A,C+=E(A),N++}return C}})),y=>{Ge(n,y),requestAnimationFrame(()=>{Ge(e,{top:y}),requestAnimationFrame(()=>{Ge(n,0),Ge(m,!1)})})}),{deviation:n}},Ht(go,zd,Wa,Ci,Js,r4)),Qz=_t(([{didMount:e},{scrollTo:t},{listState:n}])=>{const o=ce(0);return wt(ne(e,Je(o),De(([,r])=>r!==0),ge(([,r])=>({top:r}))),r=>{wi(ne(n,Gl(1),De(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{Ge(t,r)})})}),{initialScrollTop:o}},Ht(Ks,go,Wa),{singleton:!0}),eP=_t(([{viewportHeight:e},{totalListHeight:t}])=>{const n=ce(!1),o=co(ne(_n(n,e,t),De(([r])=>r),ge(([,r,i])=>Math.max(0,r-i)),Ss(0),$t()),0);return{alignToBottom:n,paddingTopAddition:o}},Ht(go,sE),{singleton:!0}),c4=_t(([{scrollTo:e,scrollContainerState:t}])=>{const n=rt(),o=rt(),r=rt(),i=ce(!1),s=ce(void 0);return Ee(ne(_n(n,o),ge(([{viewportHeight:a,scrollTop:l,scrollHeight:c},{offsetTop:d}])=>({scrollTop:Math.max(0,l-d),scrollHeight:c,viewportHeight:a}))),t),Ee(ne(e,Je(o),ge(([a,{offsetTop:l}])=>({...a,top:a.top+l}))),r),{useWindowScroll:i,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:o,windowScrollTo:r}},Ht(go)),tP=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:o,locationParams:{behavior:r,align:i,...s}})=>eo?{...s,behavior:r,align:i??"end"}:null,nP=_t(([{sizes:e,totalCount:t,gap:n},{scrollTop:o,viewportHeight:r,headerHeight:i,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:l},{scrollToIndex:c}])=>{const d=rt();return Ee(ne(d,Je(e,r,t,i,s,a,o),Je(n),ge(([[f,p,h,m,g,b,y,v],x])=>{const{done:w,behavior:_,align:E,calculateViewLocation:C=tP,...k}=f,L=Q_(f,p,m-1),N=Ku(L,p.offsetTree,x)+g+b,A=N+Ur(p.sizeTree,L)[1],M=v+b,z=v+h-y,S=C({itemTop:N,itemBottom:A,viewportTop:M,viewportBottom:z,locationParams:{behavior:_,align:E,...k}});return S?w&&wi(ne(l,De(O=>O===!1),Gl(Jn(l)?1:2)),w):w&&w(),S}),De(f=>f!==null)),c),{scrollIntoView:d}},Ht(Ci,go,Dd,Wa,Js),{singleton:!0}),oP=_t(([{sizes:e,sizeRanges:t},{scrollTop:n,headerHeight:o},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:s,windowScrollContainerState:a,windowViewportRect:l}])=>{const c=rt(),d=ce(void 0),f=ce(null),p=ce(null);return Ee(a,f),Ee(l,p),wt(ne(c,Je(e,n,s,f,p,o)),([h,m,g,b,y,v,x])=>{const w=Bz(m.sizeTree);b&&y!==null&&v!==null&&(g=y.scrollTop-v.offsetTop),g-=x,h({ranges:w,scrollTop:g})}),Ee(ne(d,De(t4),ge(rP)),r),Ee(ne(i,Je(d),De(([,h])=>h!==void 0),$t(),ge(([,h])=>h.ranges)),t),{getState:c,restoreStateFrom:d}},Ht(Ci,go,Pd,Ks,c4));function rP(e){return{offset:e.scrollTop,index:0,align:"start"}}const iP=_t(([e,t,n,o,r,i,s,a,l,c])=>({...e,...t,...n,...o,...r,...i,...s,...a,...l,...c}),Ht(l4,Xz,Ks,iE,sE,Qz,eP,c4,nP,Js)),sP=_t(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:o,trackItemSizes:r,itemSize:i,data:s,firstItemIndex:a,groupIndices:l,statefulTotalCount:c,gap:d,sizes:f},{initialTopMostItemIndex:p,scrolledToInitialItem:h,initialItemFinalLocationReached:m},g,b,y,{listState:v,topItemsIndexes:x,...w},{scrollToIndex:_},E,{topItemCount:C},{groupCounts:k},L])=>(Ee(w.rangeChanged,L.scrollSeekRangeChanged),Ee(ne(L.windowViewportRect,ge(N=>N.visibleHeight)),g.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:h,initialItemFinalLocationReached:m,topItemsIndexes:x,topItemCount:C,groupCounts:k,fixedItemHeight:n,defaultItemHeight:o,gap:d,...y,statefulTotalCount:c,listState:v,scrollToIndex:_,trackItemSizes:r,itemSize:i,groupIndices:l,...w,...L,...g,sizes:f,...b}),Ht(Ci,Pd,go,oP,Gz,Wa,Dd,Kz,Zz,nE,iP)),km="-webkit-sticky",G5="sticky",lE=aE(()=>{if(typeof document>"u")return G5;const e=document.createElement("div");return e.style.position=km,e.style.position===km?km:G5});function cE(e,t,n){const o=V.useRef(null),r=V.useCallback(l=>{if(l===null||!l.offsetParent)return;const c=l.getBoundingClientRect(),d=c.width;let f,p;if(t){const h=t.getBoundingClientRect(),m=c.top-h.top;f=h.height-Math.max(0,m),p=m+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),p=c.top+window.pageYOffset;o.current={offsetTop:p,visibleHeight:f,visibleWidth:d},e(o.current)},[e,t]),{callbackRef:i,ref:s}=o4(r,!0,n),a=V.useCallback(()=>{r(s.current)},[r,s]);return V.useEffect(()=>{if(t){t.addEventListener("scroll",a);const l=new ResizeObserver(()=>{requestAnimationFrame(a)});return l.observe(t),()=>{t.removeEventListener("scroll",a),l.unobserve(t)}}else return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[a,t]),i}const uE=V.createContext(void 0),dE=V.createContext(void 0);function fE(e){return e}const aP=_t(()=>{const e=ce(l=>`Item ${l}`),t=ce(null),n=ce(l=>`Group ${l}`),o=ce({}),r=ce(fE),i=ce("div"),s=ce(pc),a=(l,c=null)=>co(ne(o,ge(d=>d[l]),$t()),c);return{context:t,itemContent:e,groupContent:n,components:o,computeItemKey:r,HeaderFooterTag:i,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),lP=_t(([e,t])=>({...e,...t}),Ht(sP,aP)),cP=({height:e})=>T.jsx("div",{style:{height:e}}),uP={position:lE(),zIndex:1,overflowAnchor:"none"},pE={overflowAnchor:"none"},dP={...pE,display:"inline-block",height:"100%"},q5=V.memo(function({showTopList:t=!1}){const n=Fe("listState"),o=gr("sizeRanges"),r=Fe("useWindowScroll"),i=Fe("customScrollParent"),s=gr("windowScrollContainerState"),a=gr("scrollContainerState"),l=i||r?s:a,c=Fe("itemContent"),d=Fe("context"),f=Fe("groupContent"),p=Fe("trackItemSizes"),h=Fe("itemSize"),m=Fe("log"),g=gr("gap"),b=Fe("horizontalDirection"),{callbackRef:y}=Sz(o,h,p,t?pc:l,m,g,i,b,Fe("skipAnimationFrameInResizeObserver")),[v,x]=V.useState(0);u4("deviation",O=>{v!==O&&x(O)});const w=Fe("EmptyPlaceholder"),_=Fe("ScrollSeekPlaceholder")||cP,E=Fe("ListComponent"),C=Fe("ItemComponent"),k=Fe("GroupComponent"),L=Fe("computeItemKey"),N=Fe("isSeeking"),A=Fe("groupIndices").length>0,M=Fe("alignToBottom"),z=Fe("initialItemFinalLocationReached"),S=t?{}:{boxSizing:"border-box",...b?{whiteSpace:"nowrap",display:"inline-block",height:"100%",paddingLeft:n.offsetTop,paddingRight:n.offsetBottom,marginLeft:v!==0?v:M?"auto":0}:{marginTop:v!==0?v:M?"auto":0,paddingTop:n.offsetTop,paddingBottom:n.offsetBottom},...z?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&w?T.jsx(w,{...ao(w,d)}):T.jsx(E,{...ao(E,d),ref:y,style:S,"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list",children:(t?n.topItems:n.items).map(O=>{const R=O.originalIndex,$=L(R+n.firstItemIndex,O.data,d);return N?u.createElement(_,{...ao(_,d),key:$,index:O.index,height:O.size,type:O.type||"item",...O.type==="group"?{}:{groupIndex:O.groupIndex}}):O.type==="group"?u.createElement(k,{...ao(k,d),key:$,"data-index":R,"data-known-size":O.size,"data-item-index":O.index,style:uP},f(O.index,d)):u.createElement(C,{...ao(C,d),...mP(C,O.data),key:$,"data-index":R,"data-known-size":O.size,"data-item-index":O.index,"data-item-group-index":O.groupIndex,style:b?dP:pE},A?c(O.index,O.groupIndex,O.data,d):c(O.index,O.data,d))})})}),fP={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},pP={outline:"none",overflowX:"auto",position:"relative"},V0=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),hP={width:"100%",position:lE(),top:0,zIndex:1};function ao(e,t){if(typeof e!="string")return{context:t}}function mP(e,t){return{item:typeof e=="string"?void 0:t}}const gP=V.memo(function(){const t=Fe("HeaderComponent"),n=gr("headerHeight"),o=Fe("HeaderFooterTag"),r=Va(V.useMemo(()=>s=>n(Us(s,"height")),[n]),!0,Fe("skipAnimationFrameInResizeObserver")),i=Fe("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),yP=V.memo(function(){const t=Fe("FooterComponent"),n=gr("footerHeight"),o=Fe("HeaderFooterTag"),r=Va(V.useMemo(()=>s=>n(Us(s,"height")),[n]),!0,Fe("skipAnimationFrameInResizeObserver")),i=Fe("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null});function hE({usePublisher:e,useEmitter:t,useEmitterValue:n}){return V.memo(function({style:i,children:s,...a}){const l=e("scrollContainerState"),c=n("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=n("scrollerRef"),p=n("context"),h=n("horizontalDirection")||!1,{scrollerRef:m,scrollByCallback:g,scrollToCallback:b}=G_(l,d,c,f,void 0,h);t("scrollTo",b),t("scrollBy",g);const y=h?pP:fP;return T.jsx(c,{ref:m,style:{...y,...i},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...ao(c,p),children:s})})}function mE({usePublisher:e,useEmitter:t,useEmitterValue:n}){return V.memo(function({style:i,children:s,...a}){const l=e("windowScrollContainerState"),c=n("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=n("totalListHeight"),p=n("deviation"),h=n("customScrollParent"),m=n("context"),{scrollerRef:g,scrollByCallback:b,scrollToCallback:y}=G_(l,d,c,pc,h);return j_(()=>(g.current=h||window,()=>{g.current=null}),[g,h]),t("windowScrollTo",y),t("scrollBy",b),T.jsx(c,{style:{position:"relative",...i,...f!==0?{height:f+p}:{}},"data-virtuoso-scroller":!0,...a,...ao(c,m),children:s})})}const vP=({children:e})=>{const t=V.useContext(uE),n=gr("viewportHeight"),o=gr("fixedItemHeight"),r=Fe("alignToBottom"),i=Fe("horizontalDirection"),s=V.useMemo(()=>$_(n,l=>Us(l,i?"width":"height")),[n,i]),a=Va(s,!0,Fe("skipAnimationFrameInResizeObserver"));return V.useEffect(()=>{t&&(n(t.viewportHeight),o(t.itemHeight))},[t,n,o]),T.jsx("div",{style:V0(r),ref:a,"data-viewport-type":"element",children:e})},bP=({children:e})=>{const t=V.useContext(uE),n=gr("windowViewportRect"),o=gr("fixedItemHeight"),r=Fe("customScrollParent"),i=cE(n,r,Fe("skipAnimationFrameInResizeObserver")),s=Fe("alignToBottom");return V.useEffect(()=>{t&&(o(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,o]),T.jsx("div",{ref:i,style:V0(s),"data-viewport-type":"window",children:e})},wP=({children:e})=>{const t=Fe("TopItemListComponent")||"div",n=Fe("headerHeight"),o={...hP,marginTop:`${n}px`},r=Fe("context");return T.jsx(t,{style:o,...ao(t,r),children:e})},xP=V.memo(function(t){const n=Fe("useWindowScroll"),o=Fe("topItemsIndexes").length>0,r=Fe("customScrollParent"),i=r||n?CP:EP,s=r||n?bP:vP;return T.jsxs(i,{...t,children:[o&&T.jsx(wP,{children:T.jsx(q5,{showTopList:!0})}),T.jsxs(s,{children:[T.jsx(gP,{}),T.jsx(q5,{}),T.jsx(yP,{})]})]})}),{Component:_P,usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}=W_(lP,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},xP),EP=hE({usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}),CP=mE({usePublisher:gr,useEmitterValue:Fe,useEmitter:u4}),TP=_P,Y5={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},SP={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:X5,ceil:Z5,floor:bp,min:Lm,max:wu}=Math;function kP(e){return{...SP,items:e}}function J5(e,t,n){return Array.from({length:t-e+1}).map((o,r)=>{const i=n===null?null:n[r+e];return{index:r+e,data:i}})}function LP(e,t){return e&&e.column===t.column&&e.row===t.row}function bf(e,t){return e&&e.width===t.width&&e.height===t.height}const IP=_t(([{overscan:e,visibleRange:t,listBoundary:n,increaseViewportBy:o},{scrollTop:r,viewportHeight:i,scrollBy:s,scrollTo:a,smoothScrollTargetReached:l,scrollContainerState:c,footerHeight:d,headerHeight:f},p,h,{propsReady:m,didMount:g},{windowViewportRect:b,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:x,windowScrollTo:w},_])=>{const E=ce(0),C=ce(0),k=ce(Y5),L=ce({height:0,width:0}),N=ce({height:0,width:0}),A=rt(),M=rt(),z=ce(0),S=ce(null),O=ce({row:0,column:0}),R=rt(),$=rt(),D=ce(!1),I=ce(0),F=ce(!0),P=ce(!1),H=ce(!1);wt(ne(g,Je(I),De(([B,q])=>!!q)),()=>{Ge(F,!1)}),wt(ne(_n(g,F,N,L,I,P),De(([B,q,X,de,,ie])=>B&&!q&&X.height!==0&&de.height!==0&&!ie)),([,,,,B])=>{Ge(P,!0),s4(1,()=>{Ge(A,B)}),wi(ne(r),()=>{Ge(n,[0,0]),Ge(F,!0)})}),Ee(ne($,De(B=>B!=null&&B.scrollTop>0),ai(0)),C),wt(ne(g,Je($),De(([,B])=>B!=null)),([,B])=>{B&&(Ge(L,B.viewport),Ge(N,B?.item),Ge(O,B.gap),B.scrollTop>0&&(Ge(D,!0),wi(ne(r,Gl(1)),q=>{Ge(D,!1)}),Ge(a,{top:B.scrollTop})))}),Ee(ne(L,ge(({height:B})=>B)),i),Ee(ne(_n(Ae(L,bf),Ae(N,bf),Ae(O,(B,q)=>B&&B.column===q.column&&B.row===q.row),Ae(r)),ge(([B,q,X,de])=>({viewport:B,item:q,gap:X,scrollTop:de}))),R),Ee(ne(_n(Ae(E),t,Ae(O,LP),Ae(N,bf),Ae(L,bf),Ae(S),Ae(C),Ae(D),Ae(F),Ae(I)),De(([,,,,,,,B])=>!B),ge(([B,[q,X],de,ie,fe,ee,ve,,ze,me])=>{const{row:te,column:xe}=de,{height:Le,width:J}=ie,{width:se}=fe;if(ve===0&&(B===0||se===0))return Y5;if(J===0){const Pt=a4(me,B),un=Math.max(Pt+ve-1,0);return kP(J5(Pt,un,ee))}const _e=gE(se,J,xe);let be,vt;ze?q===0&&X===0&&ve>0?(be=0,vt=ve-1):(be=_e*bp((q+te)/(Le+te)),vt=_e*Z5((X+te)/(Le+te))-1,vt=Lm(B-1,wu(vt,_e-1)),be=Lm(vt,wu(0,be))):(be=0,vt=-1);const Qt=J5(be,vt,ee),{top:zt,bottom:Vt}=K5(fe,de,ie,Qt),at=Z5(B/_e),it=at*Le+(at-1)*te-Vt;return{items:Qt,offsetTop:zt,offsetBottom:it,top:zt,bottom:Vt,itemHeight:Le,itemWidth:J}})),k),Ee(ne(S,De(B=>B!==null),ge(B=>B.length)),E),Ee(ne(_n(L,N,k,O),De(([B,q,{items:X}])=>X.length>0&&q.height!==0&&B.height!==0),ge(([B,q,{items:X},de])=>{const{top:ie,bottom:fe}=K5(B,de,q,X);return[ie,fe]}),$t(ed)),n);const W=ce(!1);Ee(ne(r,Je(W),ge(([B,q])=>q||B!==0)),W);const U=Ko(ne(Ae(k),De(({items:B})=>B.length>0),Je(E,W),De(([{items:B},q,X])=>X&&B[B.length-1].index===q-1),ge(([,B])=>B-1),$t())),j=Ko(ne(Ae(k),De(({items:B})=>B.length>0&&B[0].index===0),ai(0),$t())),G=Ko(ne(Ae(k),Je(D),De(([{items:B},q])=>B.length>0&&!q),ge(([{items:B}])=>({startIndex:B[0].index,endIndex:B[B.length-1].index})),$t(oE),Ss(0)));Ee(G,h.scrollSeekRangeChanged),Ee(ne(A,Je(L,N,E,O),ge(([B,q,X,de,ie])=>{const fe=tE(B),{align:ee,behavior:ve,offset:ze}=fe;let me=fe.index;me==="LAST"&&(me=de-1),me=wu(0,me,Lm(de-1,me));let te=Sg(q,ie,X,me);return ee==="end"?te=X5(te-q.height+X.height):ee==="center"&&(te=X5(te-q.height/2+X.height/2)),ze&&(te+=ze),{top:te,behavior:ve}})),a);const Y=co(ne(k,ge(B=>B.offsetBottom+B.bottom)),0);return Ee(ne(b,ge(B=>({width:B.visibleWidth,height:B.visibleHeight}))),L),{data:S,totalCount:E,viewportDimensions:L,itemDimensions:N,scrollTop:r,scrollHeight:M,overscan:e,increaseViewportBy:o,scrollBy:s,scrollTo:a,scrollToIndex:A,smoothScrollTargetReached:l,windowViewportRect:b,windowScrollTo:w,useWindowScroll:y,customScrollParent:v,windowScrollContainerState:x,deviation:z,scrollContainerState:c,footerHeight:d,headerHeight:f,initialItemCount:C,gap:O,restoreStateFrom:$,...h,initialTopMostItemIndex:I,horizontalDirection:H,gridState:k,totalListHeight:Y,...p,startReached:j,endReached:U,rangeChanged:G,stateChanged:R,propsReady:m,stateRestoreInProgress:D,..._}},Ht(l4,go,zd,iE,Ks,c4,Js));function K5(e,t,n,o){const{height:r}=n;if(r===void 0||o.length===0)return{top:0,bottom:0};const i=Sg(e,t,n,o[0].index),s=Sg(e,t,n,o[o.length-1].index)+r;return{top:i,bottom:s}}function Sg(e,t,n,o){const r=gE(e.width,n.width,t.column),i=bp(o/r),s=i*n.height+wu(0,i-1)*t.row;return s>0?s+t.row:s}function gE(e,t,n){return wu(1,bp((e+n)/(bp(t)+n)))}const NP=_t(()=>{const e=ce(f=>`Item ${f}`),t=ce({}),n=ce(null),o=ce("virtuoso-grid-item"),r=ce("virtuoso-grid-list"),i=ce(fE),s=ce("div"),a=ce(pc),l=(f,p=null)=>co(ne(t,ge(h=>h[f]),$t()),p),c=ce(!1),d=ce(!1);return Ee(Ae(d),c),{readyStateChanged:c,reportReadyState:d,context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:o,listClassName:r,headerFooterTag:s,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),RP=_t(([e,t])=>({...e,...t}),Ht(IP,NP)),MP=V.memo(function(){const t=Wt("gridState"),n=Wt("listClassName"),o=Wt("itemClassName"),r=Wt("itemContent"),i=Wt("computeItemKey"),s=Wt("isSeeking"),a=yr("scrollHeight"),l=Wt("ItemComponent"),c=Wt("ListComponent"),d=Wt("ScrollSeekPlaceholder"),f=Wt("context"),p=yr("itemDimensions"),h=yr("gap"),m=Wt("log"),g=Wt("stateRestoreInProgress"),b=yr("reportReadyState"),y=Va(V.useMemo(()=>v=>{const x=v.parentElement.parentElement.scrollHeight;a(x);const w=v.firstChild;if(w){const{width:_,height:E}=w.getBoundingClientRect();p({width:_,height:E})}h({row:Q5("row-gap",getComputedStyle(v).rowGap,m),column:Q5("column-gap",getComputedStyle(v).columnGap,m)})},[a,p,h,m]),!0,!1);return j_(()=>{t.itemHeight>0&&t.itemWidth>0&&b(!0)},[t]),g?null:T.jsx(c,{ref:y,className:n,...ao(c,f),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-testid":"virtuoso-item-list",children:t.items.map(v=>{const x=i(v.index,v.data,f);return s?T.jsx(d,{...ao(d,f),index:v.index,height:t.itemHeight,width:t.itemWidth},x):u.createElement(l,{...ao(l,f),className:o,"data-index":v.index,key:x},r(v.index,v.data,f))})})}),OP=V.memo(function(){const t=Wt("HeaderComponent"),n=yr("headerHeight"),o=Wt("headerFooterTag"),r=Va(V.useMemo(()=>s=>n(Us(s,"height")),[n]),!0,!1),i=Wt("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),AP=V.memo(function(){const t=Wt("FooterComponent"),n=yr("footerHeight"),o=Wt("headerFooterTag"),r=Va(V.useMemo(()=>s=>n(Us(s,"height")),[n]),!0,!1),i=Wt("context");return t?T.jsx(o,{ref:r,children:T.jsx(t,{...ao(t,i)})}):null}),DP=({children:e})=>{const t=V.useContext(dE),n=yr("itemDimensions"),o=yr("viewportDimensions"),r=Va(V.useMemo(()=>i=>{o(i.getBoundingClientRect())},[o]),!0,!1);return V.useEffect(()=>{t&&(o({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,o,n]),T.jsx("div",{style:V0(!1),ref:r,children:e})},zP=({children:e})=>{const t=V.useContext(dE),n=yr("windowViewportRect"),o=yr("itemDimensions"),r=Wt("customScrollParent"),i=cE(n,r,!1);return V.useEffect(()=>{t&&(o({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,o]),T.jsx("div",{ref:i,style:V0(!1),children:e})},PP=V.memo(function({...t}){const n=Wt("useWindowScroll"),o=Wt("customScrollParent"),r=o||n?FP:BP,i=o||n?zP:DP;return T.jsx(r,{...t,children:T.jsxs(i,{children:[T.jsx(OP,{}),T.jsx(MP,{}),T.jsx(AP,{})]})})}),{Component:ffe,usePublisher:yr,useEmitterValue:Wt,useEmitter:yE}=W_(RP,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},PP),BP=hE({usePublisher:yr,useEmitterValue:Wt,useEmitter:yE}),FP=mE({usePublisher:yr,useEmitterValue:Wt,useEmitter:yE});function Q5(e,t,n){return t!=="normal"&&!t?.endsWith("px")&&n(`${e} was not resolved to pixel value correctly`,t,Qo.WARN),t==="normal"?0:parseInt(t??"0",10)}const $P="_lazy-list_1owqy_1",HP="_sortable-overlay_1owqy_5",VP="_scrollable_1owqy_26",WP="_underlay-blur_1owqy_30",jP="_underlay-blur-enabled_1owqy_39",UP="_underlay-blur-disabled_1owqy_41",GP="_underlay-blur-show_1owqy_43",pa={"lazy-list":"_lazy-list_1owqy_1",lazyList:$P,"sortable-overlay":"_sortable-overlay_1owqy_5",sortableOverlay:HP,scrollable:VP,"underlay-blur":"_underlay-blur_1owqy_30",underlayBlur:WP,"underlay-blur-enabled":"_underlay-blur-enabled_1owqy_39",underlayBlurEnabled:jP,"underlay-blur-disabled":"_underlay-blur-disabled_1owqy_41",underlayBlurDisabled:UP,"underlay-blur-show":"_underlay-blur-show_1owqy_43",underlayBlurShow:GP},vE=({className:e,handleRangeChanged:t,handleScrollDone:n,parent:o,renderItem:r,scrollTo:i,smoothScroll:s,totalCount:a})=>{const l=u.useRef(null),[c,d]=u.useState(),f=u.useCallback(p=>{t?.({firstIndex:p.startIndex,lastIndex:p.endIndex})},[t]);return u.useEffect(()=>{i!==void 0&&l.current?.scrollIntoView({index:i,behavior:s?"smooth":void 0,align:"center",done:n})},[i,n,s]),T.jsx(mc,{container:c,className:e,children:T.jsx(TP,{ref:l,scrollerRef:d,customScrollParent:o??void 0,className:pa.lazyList,totalCount:a,itemContent:r,rangeChanged:f})})};{const e=document.createElement("meta");e.httpEquiv="origin-trial",e.content="Aj8wbFhDTph5oHkGOmj6Si7BpsagLgYgm0Y+qUc3N9oPHkXmFoOPMGh5p6w/AML1TTSflO93pDkxBZ1AMMRNbgQAAABVeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjUxNzMiLCJmZWF0dXJlIjoiRmlsZVN5c3RlbU9ic2VydmVyIiwiZXhwaXJ5IjoxNzQ3MTgwNzk5fQ==",document.head.append(e);const t=document.createElement("meta");t.httpEquiv="origin-trial",t.content="AuAdhwL5Lfs+u9RxS+uWttgYxDn1e4CvBk3z3RVY4Q+DhusI/4eV8NYEgm//zloJbCU4O3tHLm+sB7wUvokINgEAAABseyJvcmlnaW4iOiJodHRwczovL25hbmlub3ZlbC5jb206NDQzIiwiZmVhdHVyZSI6IkZpbGVTeXN0ZW1PYnNlcnZlciIsImV4cGlyeSI6MTc0NzE4MDc5OSwiaXNTdWJkb21haW4iOnRydWV9",document.head.append(t)}function qP(){return MN()&&ZP()&&YP()}function YP(){return typeof document.body.checkVisibility=="function"}function XP(e){return e?.checkVisibility!=null&&e.checkVisibility()}function ZP(){return typeof navigator.userActivation=="object"}const bE=({children:e,pull:t,select:n})=>{const o=u.useRef(null);return u.useEffect(()=>{if(o.current==null)return;let r,i;for(const c of o.current.querySelectorAll("[tabindex]"))s(c);return r===void 0&&document.addEventListener("keydown",e6),i===void 0&&(i=r),r?.addEventListener("keydown",a),i?.addEventListener("keydown",l),t&&(n&&r!==void 0?r.focus():o.current.focus()),()=>{r?.removeEventListener("keydown",a),i?.removeEventListener("keydown",l),document.removeEventListener("keydown",e6)};function s(c){XP(c)&&(r===void 0?r=c:i=c)}function a(c){c.key!=="Tab"||!c.shiftKey||(c.preventDefault(),i?.focus())}function l(c){c.key!=="Tab"||c.shiftKey||(c.preventDefault(),r?.focus())}},[e,t,n]),T.jsx("div",{ref:o,tabIndex:0,children:e})};function e6(e){e.key==="Tab"&&e.preventDefault()}function wE(e,t,n){const o={...e};return t.top+e.y<=n.top?o.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(o.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?o.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(o.x=n.left+n.width-t.right),o}const JP=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:o}=e;return!n||!t?o:wE(o,n,t)},KP=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:o}=e;const r=o[0];return!t||!r?n:wE(n,t,r)},QP=e=>{let{transform:t}=e;return{...t,x:0}},d4=({bound:e,children:t,handleSort:n,indexRange:o,renderOverlay:r})=>{const[i,s]=u.useState(),a=u.useCallback(g=>{document.body.style.setProperty("cursor","grabbing","important"),s(parseInt(g.active.id))},[]),l=u.useCallback(g=>{document.body.style.setProperty("cursor",""),s(void 0),g.over!=null&&g.active.id!==g.over.id&&n?.(parseInt(g.active.id),parseInt(g.over.id))},[n]),c=u.useCallback(()=>{const g=Array.isArray(t)?t.length:1;return Array.from({length:g},(b,y)=>y.toString())},[t]),d=u.useCallback(()=>{const g=o.firstIndex,y=o.lastIndex-g+1;return Array.from({length:y},(v,x)=>(g+x).toString())},[o]),f=o===void 0?c():d(),p=NA(IA(Jy,{activationConstraint:{distance:0}})),h=[QP];e===Ul.Ancestor&&h.push(JP),e===Ul.Scrollable&&h.push(KP);const m=u.useMemo(()=>r&&mn.createPortal(T.jsx(XD,{className:pa.sortableOverlay,dropAnimation:null,children:i===void 0?null:r(i)}),document.body),[i,r]);return T.jsxs(ND,{accessibility:{container:document.body},onDragStart:a,onDragEnd:l,sensors:p,collisionDetection:zA,modifiers:h,children:[T.jsx(tz,{items:f,strategy:QD,children:t}),m]})};function f4(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ja=f4();function xE(e){ja=e}const _E=/[&<>"']/,eB=new RegExp(_E.source,"g"),EE=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tB=new RegExp(EE.source,"g"),nB={"&":"&","<":"<",">":">",'"':""","'":"'"},t6=e=>nB[e];function jo(e,t){if(t){if(_E.test(e))return e.replace(eB,t6)}else if(EE.test(e))return e.replace(tB,t6);return e}const oB=/(^|[^\[])\^/g;function Tt(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const o={replace:(r,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(oB,"$1"),n=n.replace(r,s),o},getRegex:()=>new RegExp(n,t)};return o}function n6(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const xu={exec:()=>null};function o6(e,t){const n=e.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),o=n.split(/ \|/);let r=0;if(o[0].trim()||o.shift(),o.length>0&&!o[o.length-1].trim()&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length{const i=r.match(/^\s+/);if(i===null)return r;const[s]=i;return s.length>=o.length?r.slice(o.length):r}).join(` -`)}class wp{options;rules;lexer;constructor(t){this.options=t||Wa}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const o=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Oc(o,` -`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const o=n[0],r=QP(o,n[3]||"");return{type:"code",raw:o,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let o=n[2].trim();if(/#$/.test(o)){const r=Oc(o,"#");(this.options.pedantic||!r||/ $/.test(r))&&(o=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Oc(n[0],` +`)}class wp{options;rules;lexer;constructor(t){this.options=t||ja}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const o=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Oc(o,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const o=n[0],r=iB(o,n[3]||"");return{type:"code",raw:o,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let o=n[2].trim();if(/#$/.test(o)){const r=Oc(o,"#");(this.options.pedantic||!r||/ $/.test(r))&&(o=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Oc(n[0],` `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let o=Oc(n[0],` `).split(` `),r="",i="";const s=[];for(;o.length>0;){let a=!1;const l=[];let c;for(c=0;c/.test(o[c]))l.push(o[c]),a=!0;else if(!a)l.push(o[c]);else break;o=o.slice(c);const d=l.join(` @@ -607,8 +607,8 @@ ${f}`:f;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block `+p}!h&&!p.trim()&&(h=!0),c+=E+` `,t=t.substring(E.length+1),f=C.slice(m)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(c)&&(a=!0));let g=null,b;this.options.gfm&&(g=/^\[[ xX]\] /.exec(d),g&&(b=g[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:c,task:!!g,checked:b,loose:!1,text:d,tokens:[]}),i.raw+=c}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;lf.type==="space"),d=c.length>0&&c.some(f=>/\n.*\n/.test(f.raw));i.loose=d}if(i.loose)for(let l=0;l$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:o,raw:n[0],href:r,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const o=o6(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` `):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(o.length===r.length){for(const a of r)/^ *-+: *$/.test(a)?s.align.push("right"):/^ *:-+: *$/.test(a)?s.align.push("center"):/^ *:-+ *$/.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const o=n[1].charAt(n[1].length-1)===` -`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:o,tokens:this.lexer.inline(o)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:jo(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const o=n[2].trim();if(!this.options.pedantic&&/^$/.test(o))return;const s=Oc(o.slice(0,-1),"\\");if((o.length-s.length)%2===0)return}else{const s=KP(n[2],"()");if(s>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let r=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return r=r.trim(),/^$/.test(o)?r=r.slice(1):r=r.slice(1,-1)),r6(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){const r=(o[2]||o[1]).replace(/\s+/g," "),i=n[r.toLowerCase()];if(!i){const s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return r6(o,i,o[0],this.lexer)}}emStrong(t,n,o=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&o.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const s=[...r[0]].length-1;let a,l,c=s,d=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+s);(r=f.exec(n))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const p=[...r[0]][0].length,h=t.slice(0,s+r.index+p+l);if(Math.min(s,l)%2){const g=h.slice(1,-1);return{type:"em",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}const m=h.slice(2,-2);return{type:"strong",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let o=n[2].replace(/\n/g," ");const r=/[^ ]/.test(o),i=/^ /.test(o)&&/ $/.test(o);return r&&i&&(o=o.substring(1,o.length-1)),o=jo(o,!0),{type:"codespan",raw:n[0],text:o}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let o,r;return n[2]==="@"?(o=jo(n[1]),r="mailto:"+o):(o=jo(n[1]),r=o),{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let o,r;if(n[2]==="@")o=jo(n[0]),r="mailto:"+o;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);o=jo(n[0]),n[1]==="www."?r="http://"+n[0]:r=n[0]}return{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=n[0]:o=jo(n[0]),{type:"text",raw:n[0],text:o}}}}const eB=/^(?:[ \t]*(?:\n|$))+/,tB=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nB=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,oB=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,CE=/(?:[*+-]|\d{1,9}[.)])/,TE=Tt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,CE).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),p4=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rB=/^[^\n]+/,h4=/(?!\s*\])(?:\\.|[^\[\]\\])+/,iB=Tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",h4).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sB=Tt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,CE).getRegex(),W0="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",m4=/|$))/,aB=Tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",m4).replace("tag",W0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),SE=Tt(p4).replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex(),lB=Tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",SE).getRegex(),g4={blockquote:lB,code:tB,def:iB,fences:nB,heading:oB,hr:Bd,html:aB,lheading:TE,list:sB,newline:eB,paragraph:SE,table:xu,text:rB},i6=Tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex(),cB={...g4,table:i6,paragraph:Tt(p4).replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",i6).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex()},uB={...g4,html:Tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",m4).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tt(p4).replace("hr",Bd).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",TE).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kE=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,LE=/^( {2,}|\\)\n(?!\s*$)/,fB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,mB=Tt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Fd).getRegex(),gB=Tt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Fd).getRegex(),yB=Tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Fd).getRegex(),vB=Tt(/\\([punct])/,"gu").replace(/punct/g,Fd).getRegex(),bB=Tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wB=Tt(m4).replace("(?:-->|$)","-->").getRegex(),xB=Tt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",wB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xp=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_B=Tt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",xp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),IE=Tt(/^!?\[(label)\]\[(ref)\]/).replace("label",xp).replace("ref",h4).getRegex(),NE=Tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",h4).getRegex(),EB=Tt("reflink|nolink(?!\\()","g").replace("reflink",IE).replace("nolink",NE).getRegex(),y4={_backpedal:xu,anyPunctuation:vB,autolink:bB,blockSkip:hB,br:LE,code:dB,del:xu,emStrongLDelim:mB,emStrongRDelimAst:gB,emStrongRDelimUnd:yB,escape:kE,link:_B,nolink:NE,punctuation:pB,reflink:IE,reflinkSearch:EB,tag:xB,text:fB,url:xu},CB={...y4,link:Tt(/^!?\[(label)\]\((.*?)\)/).replace("label",xp).getRegex(),reflink:Tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xp).getRegex()},Lg={...y4,escape:Tt(kE).replace("])","~|])").getRegex(),url:Tt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const o=n[2].trim();if(!this.options.pedantic&&/^$/.test(o))return;const s=Oc(o.slice(0,-1),"\\");if((o.length-s.length)%2===0)return}else{const s=rB(n[2],"()");if(s>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let r=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return r=r.trim(),/^$/.test(o)?r=r.slice(1):r=r.slice(1,-1)),r6(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){const r=(o[2]||o[1]).replace(/\s+/g," "),i=n[r.toLowerCase()];if(!i){const s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return r6(o,i,o[0],this.lexer)}}emStrong(t,n,o=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&o.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const s=[...r[0]].length-1;let a,l,c=s,d=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+s);(r=f.exec(n))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const p=[...r[0]][0].length,h=t.slice(0,s+r.index+p+l);if(Math.min(s,l)%2){const g=h.slice(1,-1);return{type:"em",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}const m=h.slice(2,-2);return{type:"strong",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let o=n[2].replace(/\n/g," ");const r=/[^ ]/.test(o),i=/^ /.test(o)&&/ $/.test(o);return r&&i&&(o=o.substring(1,o.length-1)),o=jo(o,!0),{type:"codespan",raw:n[0],text:o}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let o,r;return n[2]==="@"?(o=jo(n[1]),r="mailto:"+o):(o=jo(n[1]),r=o),{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let o,r;if(n[2]==="@")o=jo(n[0]),r="mailto:"+o;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);o=jo(n[0]),n[1]==="www."?r="http://"+n[0]:r=n[0]}return{type:"link",raw:n[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=n[0]:o=jo(n[0]),{type:"text",raw:n[0],text:o}}}}const sB=/^(?:[ \t]*(?:\n|$))+/,aB=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,lB=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cB=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,CE=/(?:[*+-]|\d{1,9}[.)])/,TE=Tt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,CE).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),p4=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uB=/^[^\n]+/,h4=/(?!\s*\])(?:\\.|[^\[\]\\])+/,dB=Tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",h4).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fB=Tt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,CE).getRegex(),W0="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",m4=/|$))/,pB=Tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",m4).replace("tag",W0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),SE=Tt(p4).replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex(),hB=Tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",SE).getRegex(),g4={blockquote:hB,code:aB,def:dB,fences:lB,heading:cB,hr:Bd,html:pB,lheading:TE,list:fB,newline:sB,paragraph:SE,table:xu,text:uB},i6=Tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex(),mB={...g4,table:i6,paragraph:Tt(p4).replace("hr",Bd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",i6).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",W0).getRegex()},gB={...g4,html:Tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",m4).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tt(p4).replace("hr",Bd).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",TE).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kE=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,LE=/^( {2,}|\\)\n(?!\s*$)/,vB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,xB=Tt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Fd).getRegex(),_B=Tt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Fd).getRegex(),EB=Tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Fd).getRegex(),CB=Tt(/\\([punct])/,"gu").replace(/punct/g,Fd).getRegex(),TB=Tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),SB=Tt(m4).replace("(?:-->|$)","-->").getRegex(),kB=Tt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",SB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xp=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,LB=Tt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",xp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),IE=Tt(/^!?\[(label)\]\[(ref)\]/).replace("label",xp).replace("ref",h4).getRegex(),NE=Tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",h4).getRegex(),IB=Tt("reflink|nolink(?!\\()","g").replace("reflink",IE).replace("nolink",NE).getRegex(),y4={_backpedal:xu,anyPunctuation:CB,autolink:TB,blockSkip:wB,br:LE,code:yB,del:xu,emStrongLDelim:xB,emStrongRDelimAst:_B,emStrongRDelimUnd:EB,escape:kE,link:LB,nolink:NE,punctuation:bB,reflink:IE,reflinkSearch:IB,tag:kB,text:vB,url:xu},NB={...y4,link:Tt(/^!?\[(label)\]\((.*?)\)/).replace("label",xp).getRegex(),reflink:Tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xp).getRegex()},kg={...y4,escape:Tt(kE).replace("])","~|])").getRegex(),url:Tt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(r=a.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` `+r.raw,i.text+=` @@ -618,7 +618,7 @@ ${f}`:f;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block `+r.raw,i.text+=` `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),o=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=` `+r.raw,i.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let o,r,i,s=t,a,l,c;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(o=d.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))){if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),r=n[n.length-1],r&&o.type==="text"&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length),r=n[n.length-1],r&&o.type==="text"&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(t,s,c)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),n.push(o);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const f=t.slice(1);let p;this.options.extensions.startInline.forEach(h=>{p=h.call({lexer:this},f),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(i=t.substring(0,d+1))}if(o=this.tokenizer.inlineText(i)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(c=o.raw.slice(-1)),l=!0,r=n[n.length-1],r&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class td{options;parser;constructor(t){this.options=t||Wa}space(t){return""}code({text:t,lang:n,escaped:o}){const r=(n||"").match(/^\S*/)?.[0],i=t.replace(/\n$/,"")+` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let o,r,i,s=t,a,l,c;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(o=d.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))){if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),r=n[n.length-1],r&&o.type==="text"&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length),r=n[n.length-1],r&&o.type==="text"&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(t,s,c)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),n.push(o);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const f=t.slice(1);let p;this.options.extensions.startInline.forEach(h=>{p=h.call({lexer:this},f),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(i=t.substring(0,d+1))}if(o=this.tokenizer.inlineText(i)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(c=o.raw.slice(-1)),l=!0,r=n[n.length-1],r&&r.type==="text"?(r.raw+=o.raw,r.text+=o.text):n.push(o);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class td{options;parser;constructor(t){this.options=t||ja}space(t){return""}code({text:t,lang:n,escaped:o}){const r=(n||"").match(/^\S*/)?.[0],i=t.replace(/\n$/,"")+` `;return r?'
'+(o?i:jo(i,!0))+`
`:"
"+(o?i:jo(i,!0))+`
`}blockquote({tokens:t}){return`
@@ -636,19 +636,19 @@ ${this.parser.parse(t)}
`}tablerow({text:t}){return` ${t} `}tablecell(t){const n=this.parser.parseInline(t.tokens),o=t.header?"th":"td";return(t.align?`<${o} align="${t.align}">`:`<${o}>`)+n+` -`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${t}`}br(t){return"
"}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:o}){const r=this.parser.parseInline(o),i=n6(t);if(i===null)return r;t=i;let s='
",s}image({href:t,title:n,text:o}){const r=n6(t);if(r===null)return o;t=r;let i=`${o}{const a=i[s].flat(1/0);o=o.concat(this.walkTokens(a,n))}):i.tokens&&(o=o.concat(this.walkTokens(i.tokens,n)))}}return o}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(o=>{const r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),r.extensions=n),o.renderer){const i=this.defaults.renderer||new td(this.defaults);for(const s in o.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const a=s,l=o.renderer[a],c=i[a];i[a]=(...d)=>{let f=l.apply(i,d);return f===!1&&(f=c.apply(i,d)),f||""}}r.renderer=i}if(o.tokenizer){const i=this.defaults.tokenizer||new wp(this.defaults);for(const s in o.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const a=s,l=o.tokenizer[a],c=i[a];i[a]=(...d)=>{let f=l.apply(i,d);return f===!1&&(f=c.apply(i,d)),f}}r.tokenizer=i}if(o.hooks){const i=this.defaults.hooks||new u1;for(const s in o.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const a=s,l=o.hooks[a],c=i[a];u1.passThroughHooks.has(s)?i[a]=d=>{if(this.defaults.async)return Promise.resolve(l.call(i,d)).then(p=>c.call(i,p));const f=l.call(i,d);return c.call(i,f)}:i[a]=(...d)=>{let f=l.apply(i,d);return f===!1&&(f=c.apply(i,d)),f}}r.hooks=i}if(o.walkTokens){const i=this.defaults.walkTokens,s=o.walkTokens;r.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return vr.lex(t,n??this.defaults)}parser(t,n){return br.parse(t,n??this.defaults)}parseMarkdown(t){return(o,r)=>{const i={...r},s={...this.defaults,...i},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof o>"u"||o===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof o!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(o)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=t);const l=s.hooks?s.hooks.provideLexer():t?vr.lex:vr.lexInline,c=s.hooks?s.hooks.provideParser():t?br.parse:br.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(o):o).then(d=>l(d,s)).then(d=>s.hooks?s.hooks.processAllTokens(d):d).then(d=>s.walkTokens?Promise.all(this.walkTokens(d,s.walkTokens)).then(()=>d):d).then(d=>c(d,s)).then(d=>s.hooks?s.hooks.postprocess(d):d).catch(a);try{s.hooks&&(o=s.hooks.preprocess(o));let d=l(o,s);s.hooks&&(d=s.hooks.processAllTokens(d)),s.walkTokens&&this.walkTokens(d,s.walkTokens);let f=c(d,s);return s.hooks&&(f=s.hooks.postprocess(f)),f}catch(d){return a(d)}}}onError(t,n){return o=>{if(o.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const r="

An error occurred:

"+jo(o.message+"",!0)+"
";return n?Promise.resolve(r):r}if(n)return Promise.reject(o);throw o}}}const Aa=new SB;function yt(e,t){return Aa.parse(e,t)}yt.options=yt.setOptions=function(e){return Aa.setOptions(e),yt.defaults=Aa.defaults,xE(yt.defaults),yt};yt.getDefaults=f4;yt.defaults=Wa;yt.use=function(...e){return Aa.use(...e),yt.defaults=Aa.defaults,xE(yt.defaults),yt};yt.walkTokens=function(e,t){return Aa.walkTokens(e,t)};yt.parseInline=Aa.parseInline;yt.Parser=br;yt.parser=br.parse;yt.Renderer=td;yt.TextRenderer=v4;yt.Lexer=vr;yt.lexer=vr.lex;yt.Tokenizer=wp;yt.Hooks=u1;yt.parse=yt;yt.options;yt.setOptions;yt.use;yt.walkTokens;yt.parseInline;br.parse;vr.lex;const kB="_markdown_kljlj_1",LB={markdown:kB},IB={renderer:{link({href:e,text:t}){return`
${t}`},table(e){return td.prototype.table.call(this,e).replace(/.*<\/thead>/s,"")}}};yt.use(IB);function NB(e){const t=yt.parse(e);return`${t}`}const Fo=(e,t)=>{const{o:n,i:o,u:r}=e;let i=n,s;const a=(d,f)=>{const p=i,h=d,m=f||(o?!o(p,h):p!==h);return(m||r)&&(i=h,s=p),[i,m,s]};return[t?d=>a(t(i,s),d):a,d=>[i,!!d,s]]},RB=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,To=RB?window:{},_p=Math.max,MB=Math.min,Ig=Math.round,Ep=Math.abs,s6=Math.sign,b4=To.cancelAnimationFrame,j0=To.requestAnimationFrame,Cp=To.setTimeout,Ng=To.clearTimeout,U0=e=>typeof To[e]<"u"?To[e]:void 0,OB=U0("MutationObserver"),a6=U0("IntersectionObserver"),Tp=U0("ResizeObserver"),d1=U0("ScrollTimeline"),w4=e=>e===void 0,G0=e=>e===null,mi=e=>typeof e=="number",$d=e=>typeof e=="string",x4=e=>typeof e=="boolean",rr=e=>typeof e=="function",wi=e=>Array.isArray(e),Sp=e=>typeof e=="object"&&!wi(e)&&!G0(e),_4=e=>{const t=!!e&&e.length,n=mi(t)&&t>-1&&t%1==0;return wi(e)||!rr(e)&&n?t>0&&Sp(e)?t-1 in e:!0:!1},kp=e=>!!e&&e.constructor===Object,Lp=e=>e instanceof HTMLElement,q0=e=>e instanceof Element,l6=()=>performance.now(),Lm=(e,t,n,o,r)=>{let i=0;const s=l6(),a=_p(0,n),l=c=>{const d=l6(),p=d-s>=a,h=c?1:1-(_p(0,s+a-d)/a||0),m=(t-e)*(rr(r)?r(h,h*a,0,1,a):h)+e,g=p||h===1;o&&o(m,h,g),i=g?0:j0(()=>l())};return l(),c=>{b4(i),c&&l(c)}};function Ct(e,t){if(_4(e))for(let n=0;nt(e[n],n,e));return e}const RE=(e,t)=>e.indexOf(t)>=0,nd=(e,t)=>e.concat(t),Gt=(e,t,n)=>(!$d(t)&&_4(t)?Array.prototype.push.apply(e,t):e.push(t),e),Js=e=>Array.from(e||[]),E4=e=>wi(e)?e:!$d(e)&&_4(e)?Js(e):[e],Rg=e=>!!e&&!e.length,Mg=e=>Js(new Set(e)),er=(e,t,n)=>{Ct(e,r=>r?r.apply(void 0,t||[]):!0),!n&&(e.length=0)},ME="paddingTop",OE="paddingRight",AE="paddingLeft",DE="paddingBottom",zE="marginLeft",PE="marginRight",BE="marginBottom",FE="overflowX",$E="overflowY",Y0="width",X0="height",bs="visible",pa="hidden",Gl="scroll",AB=e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""},Z0=(e,t,n,o)=>{if(e&&t){let r=!0;return Ct(n,i=>{const s=e[i],a=t[i];s!==a&&(r=!1)}),r}return!1},HE=(e,t)=>Z0(e,t,["w","h"]),f1=(e,t)=>Z0(e,t,["x","y"]),DB=(e,t)=>Z0(e,t,["t","r","b","l"]),zs=()=>{},Re=(e,...t)=>e.bind(0,...t),ha=e=>{let t;const n=e?Cp:j0,o=e?Ng:b4;return[r=>{o(t),t=n(()=>r(),rr(e)?e():e)},()=>o(t)]},Og=(e,t)=>{const{_:n,v:o,p:r,S:i}=t||{};let s,a,l,c,d=zs;const f=function(b){d(),Ng(s),c=s=a=void 0,d=zs,e.apply(this,b)},p=g=>i&&a?i(a,g):g,h=()=>{d!==zs&&f(p(l)||l)},m=function(){const b=Js(arguments),y=rr(n)?n():n;if(mi(y)&&y>=0){const x=rr(o)?o():o,w=mi(x)&&x>=0,_=y>0?Cp:j0,E=y>0?Ng:b4,k=p(b)||b,L=f.bind(0,k);let N;d(),r&&!c?(L(),c=!0,N=_(()=>c=void 0,y)):(N=_(L,y),w&&!s&&(s=Cp(h,x))),d=()=>E(N),a=l=k}else f(b)};return m.m=h,m},VE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Gr=e=>e?Object.keys(e):[],ut=(e,t,n,o,r,i,s)=>{const a=[t,n,o,r,i,s];return(typeof e!="object"||G0(e))&&!rr(e)&&(e={}),Ct(a,l=>{Ct(l,(c,d)=>{const f=l[d];if(e===f)return!0;const p=wi(f);if(f&&kp(f)){const h=e[d];let m=h;p&&!wi(h)?m=[]:!p&&!kp(h)&&(m={}),e[d]=ut(m,f)}else e[d]=p?f.slice():f})}),e},WE=(e,t)=>Ct(ut({},e),(n,o,r)=>{n===void 0?delete r[o]:n&&kp(n)&&(r[o]=WE(n))}),C4=e=>!Gr(e).length,jE=(e,t,n)=>_p(e,MB(t,n)),_a=e=>Mg((wi(e)?e:(e||"").split(" ")).filter(t=>t)),T4=(e,t)=>e&&e.getAttribute(t),c6=(e,t)=>e&&e.hasAttribute(t),Ri=(e,t,n)=>{Ct(_a(t),o=>{e&&e.setAttribute(o,String(n||""))})},ti=(e,t)=>{Ct(_a(t),n=>e&&e.removeAttribute(n))},J0=(e,t)=>{const n=_a(T4(e,t)),o=Re(Ri,e,t),r=(i,s)=>{const a=new Set(n);return Ct(_a(i),l=>{a[s](l)}),Js(a).join(" ")};return{O:i=>o(r(i,"delete")),$:i=>o(r(i,"add")),C:i=>{const s=_a(i);return s.reduce((a,l)=>a&&n.includes(l),s.length>0)}}},UE=(e,t,n)=>(J0(e,t).O(n),Re(S4,e,t,n)),S4=(e,t,n)=>(J0(e,t).$(n),Re(UE,e,t,n)),Ip=(e,t,n,o)=>(o?S4:UE)(e,t,n),k4=(e,t,n)=>J0(e,t).C(n),GE=e=>J0(e,"class"),qE=(e,t)=>{GE(e).O(t)},L4=(e,t)=>(GE(e).$(t),Re(qE,e,t)),YE=(e,t)=>{const n=t?q0(t)&&t:document;return n?Js(n.querySelectorAll(e)):[]},zB=(e,t)=>{const n=t?q0(t)&&t:document;return n&&n.querySelector(e)},Ag=(e,t)=>q0(e)&&e.matches(t),XE=e=>Ag(e,"body"),Dg=e=>e?Js(e.childNodes):[],od=e=>e&&e.parentElement,gl=(e,t)=>q0(e)&&e.closest(t),zg=e=>document.activeElement,PB=(e,t,n)=>{const o=gl(e,t),r=e&&zB(n,o),i=gl(r,t)===o;return o&&r?o===e||r===e||i&&gl(gl(e,n),t)!==o:!1},ql=e=>{Ct(E4(e),t=>{const n=od(t);t&&n&&n.removeChild(t)})},qo=(e,t)=>Re(ql,e&&t&&Ct(E4(t),n=>{n&&e.appendChild(n)})),kl=e=>{const t=document.createElement("div");return Ri(t,"class",e),t},ZE=e=>{const t=kl();return t.innerHTML=e.trim(),Ct(Dg(t),n=>ql(n))},u6=(e,t)=>e.getPropertyValue(t)||e[t]||"",JE=e=>{const t=e||0;return isFinite(t)?t:0},xf=e=>JE(parseFloat(e||"")),Pg=e=>Math.round(e*1e4)/1e4,KE=e=>`${Pg(JE(e))}px`;function rd(e,t){e&&t&&Ct(t,(n,o)=>{try{const r=e.style,i=G0(n)||x4(n)?"":mi(n)?KE(n):n;o.indexOf("--")===0?r.setProperty(o,i):r[o]=i}catch{}})}function Ji(e,t,n){const o=$d(t);let r=o?"":{};if(e){const i=To.getComputedStyle(e,n)||e.style;r=o?u6(i,t):Js(t).reduce((s,a)=>(s[a]=u6(i,a),s),r)}return r}const d6=(e,t,n)=>{const o=t?`${t}-`:"",r=n?`-${n}`:"",i=`${o}top${r}`,s=`${o}right${r}`,a=`${o}bottom${r}`,l=`${o}left${r}`,c=Ji(e,[i,s,a,l]);return{t:xf(c[i]),r:xf(c[s]),b:xf(c[a]),l:xf(c[l])}},BB=(e,t)=>`translate${Sp(e)?`(${e.x},${e.y})`:`Y(${e})`}`,FB=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),$B={w:0,h:0},K0=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:$B,HB=e=>K0("inner",e||To),Ll=Re(K0,"offset"),QE=Re(K0,"client"),Np=Re(K0,"scroll"),I4=e=>{const t=parseFloat(Ji(e,Y0))||0,n=parseFloat(Ji(e,X0))||0;return{w:t-Ig(t),h:n-Ig(n)}},Im=e=>e.getBoundingClientRect(),VB=e=>!!e&&FB(e),Bg=e=>!!(e&&(e[X0]||e[Y0])),eC=(e,t)=>{const n=Bg(e);return!Bg(t)&&n},f6=(e,t,n,o)=>{Ct(_a(t),r=>{e&&e.removeEventListener(r,n,o)})},Bt=(e,t,n,o)=>{var r;const i=(r=o&&o.H)!=null?r:!0,s=o&&o.I||!1,a=o&&o.A||!1,l={passive:i,capture:s};return Re(er,_a(t).map(c=>{const d=a?f=>{f6(e,c,d,s),n&&n(f)}:n;return e&&e.addEventListener(c,d,l),Re(f6,e,c,d,s)}))},tC=e=>e.stopPropagation(),Fg=e=>e.preventDefault(),nC=e=>tC(e)||Fg(e),fi=(e,t)=>{const{x:n,y:o}=mi(t)?{x:t,y:t}:t||{};mi(n)&&(e.scrollLeft=n),mi(o)&&(e.scrollTop=o)},Yo=e=>({x:e.scrollLeft,y:e.scrollTop}),oC=()=>({D:{x:0,y:0},M:{x:0,y:0}}),WB=(e,t)=>{const{D:n,M:o}=e,{w:r,h:i}=t,s=(f,p,h)=>{let m=s6(f)*h,g=s6(p)*h;if(m===g){const b=Ep(f),y=Ep(p);g=b>y?0:g,m=b{const n=(o,r)=>o===0&&o<=r;return{x:n(e.x,t.x),y:n(e.y,t.y)}},h6=({D:e,M:t},n)=>{const o=(r,i,s)=>jE(0,1,(r-s)/(r-i)||0);return{x:o(e.x,t.x,n.x),y:o(e.y,t.y,n.y)}},$g=e=>{e&&e.focus&&e.focus({preventScroll:!0})},m6=(e,t)=>{Ct(E4(t),e)},Hg=e=>{const t=new Map,n=(i,s)=>{if(i){const a=t.get(i);m6(l=>{a&&a[l?"delete":"clear"](l)},s)}else t.forEach(a=>{a.clear()}),t.clear()},o=(i,s)=>{if($d(i)){const c=t.get(i)||new Set;return t.set(i,c),m6(d=>{rr(d)&&c.add(d)},s),Re(n,i,s)}x4(s)&&s&&n();const a=Gr(i),l=[];return Ct(a,c=>{const d=i[c];d&&Gt(l,o(c,d))}),Re(er,l)},r=(i,s)=>{Ct(Js(t.get(i)),a=>{s&&!Rg(s)?a.apply(0,s):a()})};return o(e||{}),[o,n,r]},g6=e=>JSON.stringify(e,(t,n)=>{if(rr(n))throw 0;return n}),y6=(e,t)=>e?`${t}`.split(".").reduce((n,o)=>n&&VE(n,o)?n[o]:void 0,e):void 0,jB={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},rC=(e,t)=>{const n={},o=nd(Gr(t),Gr(e));return Ct(o,r=>{const i=e[r],s=t[r];if(Sp(i)&&Sp(s))ut(n[r]={},rC(i,s)),C4(n[r])&&delete n[r];else if(VE(t,r)&&s!==i){let a=!0;if(wi(i)||wi(s))try{g6(i)===g6(s)&&(a=!1)}catch{}a&&(n[r]=s)}}),n},v6=(e,t,n)=>o=>[y6(e,o),n||y6(t,o)!==void 0],pc="data-overlayscrollbars",p1="os-environment",_f=`${p1}-scrollbar-hidden`,Nm=`${pc}-initialize`,h1="noClipping",b6=`${pc}-body`,Ps=pc,UB="host",Mi=`${pc}-viewport`,GB=FE,qB=$E,YB="arrange",iC="measuring",XB="scrolling",sC="scrollbarHidden",ZB="noContent",Vg=`${pc}-padding`,w6=`${pc}-content`,N4="os-size-observer",JB=`${N4}-appear`,KB=`${N4}-listener`,QB="os-trinsic-observer",eF="os-theme-none",lr="os-scrollbar",tF=`${lr}-rtl`,nF=`${lr}-horizontal`,oF=`${lr}-vertical`,aC=`${lr}-track`,R4=`${lr}-handle`,rF=`${lr}-visible`,iF=`${lr}-cornerless`,x6=`${lr}-interaction`,_6=`${lr}-unusable`,Wg=`${lr}-auto-hide`,E6=`${Wg}-hidden`,C6=`${lr}-wheel`,sF=`${aC}-interactive`,aF=`${R4}-interactive`;let lC;const lF=()=>lC,cF=e=>{lC=e};let Rm;const uF=()=>{const e=(w,_,E)=>{qo(document.body,w),qo(document.body,w);const C=QE(w),k=Ll(w),L=I4(_);return E&&ql(w),{x:k.h-C.h+L.h,y:k.w-C.w+L.w}},t=w=>{let _=!1;const E=L4(w,_f);try{_=Ji(w,"scrollbar-width")==="none"||Ji(w,"display","::-webkit-scrollbar")==="none"}catch{}return E(),_},n=`.${p1}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${p1} div{width:200%;height:200%;margin:10px 0}.${_f}{scrollbar-width:none!important}.${_f}::-webkit-scrollbar,.${_f}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=ZE(`
`)[0],i=r.firstChild,s=r.lastChild,a=lF();a&&(s.nonce=a);const[l,,c]=Hg(),[d,f]=Fo({o:e(r,i),i:f1},Re(e,r,i,!0)),[p]=f(),h=t(r),m={x:p.x===0,y:p.y===0},g={elements:{host:null,padding:!h,viewport:w=>h&&XE(w)&&w,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},b=ut({},jB),y=Re(ut,{},b),v=Re(ut,{},g),x={T:p,k:m,R:h,V:!!d1,L:Re(l,"r"),U:v,P:w=>ut(g,w)&&v(),N:y,q:w=>ut(b,w)&&y(),B:ut({},g),F:ut({},b)};if(ti(r,"style"),ql(r),Bt(To,"resize",()=>{c("r",[])}),rr(To.matchMedia)&&!h&&(!m.x||!m.y)){const w=_=>{const E=To.matchMedia(`(resolution: ${To.devicePixelRatio}dppx)`);Bt(E,"change",()=>{_(),w(_)},{A:!0})};w(()=>{const[_,E]=d();ut(x.T,_),c("r",[E])})}return x},Ci=()=>(Rm||(Rm=uF()),Rm),cC=(e,t)=>rr(t)?t.apply(0,e):t,dF=(e,t,n,o)=>{const r=w4(o)?n:o;return cC(e,r)||t.apply(0,e)},uC=(e,t,n,o)=>{const r=w4(o)?n:o,i=cC(e,r);return!!i&&(Lp(i)?i:t.apply(0,e))},fF=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:o}=t||{},{k:r,R:i,U:s}=Ci(),{nativeScrollbarsOverlaid:a,body:l}=s().cancel,c=n??a,d=w4(o)?l:o,f=(r.x||r.y)&&c,p=e&&(G0(d)?!i:d);return!!f||!!p},M4=new WeakMap,pF=(e,t)=>{M4.set(e,t)},hF=e=>{M4.delete(e)},dC=e=>M4.get(e),mF=(e,t,n)=>{let o=!1;const r=n?new WeakMap:!1,i=()=>{o=!0},s=a=>{if(r&&n){const l=n.map(c=>{const[d,f]=c||[];return[f&&d?(a||YE)(d,e):[],f]});Ct(l,c=>Ct(c[0],d=>{const f=c[1],p=r.get(d)||[];if(e.contains(d)&&f){const m=Bt(d,f,g=>{o?(m(),r.delete(d)):t(g)});r.set(d,Gt(p,m))}else er(p),r.delete(d)}))}};return s(),[i,s]},T6=(e,t,n,o)=>{let r=!1;const{j:i,X:s,Y:a,W:l,J:c,G:d}=o||{},f=Og(()=>r&&n(!0),{_:33,v:99}),[p,h]=mF(e,f,a),m=i||[],g=s||[],b=nd(m,g),y=(x,w)=>{if(!Rg(w)){const _=c||zs,E=d||zs,C=[],k=[];let L=!1,N=!1;if(Ct(w,A=>{const{attributeName:M,target:z,type:S,oldValue:O,addedNodes:R,removedNodes:$}=A,D=S==="attributes",I=S==="childList",F=e===z,P=D&&M,H=P&&T4(z,M||""),W=$d(H)?H:null,U=P&&O!==W,j=RE(g,M)&&U;if(t&&(I||!F)){const G=D&&U,Y=G&&l&&Ag(z,l),q=(Y?!_(z,M,O,W):!D||G)&&!E(A,!!Y,e,o);Ct(R,X=>Gt(C,X)),Ct($,X=>Gt(C,X)),N=N||q}!t&&F&&U&&!_(z,M,O,W)&&(Gt(k,M),L=L||j)}),h(A=>Mg(C).reduce((M,z)=>(Gt(M,YE(A,z)),Ag(z,A)?Gt(M,z):M),[])),t)return!x&&N&&n(!1),[!1];if(!Rg(k)||L){const A=[Mg(k),L];return!x&&n.apply(0,A),A}}},v=new OB(Re(y,!1));return[()=>(v.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(p(),v.disconnect(),r=!1)}),()=>{if(r)return f.m(),y(!0,v.takeRecords())}]},fC={},pC={},gF=e=>{Ct(e,t=>Ct(t,(n,o)=>{fC[o]=t[o]}))},hC=(e,t,n)=>Gr(e).map(o=>{const{static:r,instance:i}=e[o],[s,a,l]=n||[],c=n?i:r;if(c){const d=n?c(s,a,t):c(t);return(l||pC)[o]=d}}),Hd=e=>pC[e],yF="__osOptionsValidationPlugin",vF="__osSizeObserverPlugin",bF=(e,t)=>{const{k:n}=t,[o,r]=e("showNativeOverlaidScrollbars");return[o&&n.x&&n.y,r]},Yl=e=>e.indexOf(bs)===0,wF=(e,t)=>{const n=(r,i,s,a)=>{const l=r===bs?pa:r.replace(`${bs}-`,""),c=Yl(r),d=Yl(s);return!i&&!a?pa:c&&d?bs:c?i&&a?l:i?bs:pa:i?l:d&&a?bs:pa},o={x:n(t.x,e.x,t.y,e.y),y:n(t.y,e.y,t.x,e.x)};return{K:o,Z:{x:o.x===Gl,y:o.y===Gl}}},mC="__osScrollbarsHidingPlugin",gC="__osClickScrollPlugin",xF={[gC]:{static:()=>(e,t,n,o)=>{let r=!1,i=zs;const s=133,a=222,[l,c]=ha(s),d=Math.sign(t),f=n*d,p=f/2,h=y=>1-(1-y)*(1-y),m=(y,v)=>Lm(y,v,a,e,h),g=(y,v)=>Lm(y,t-f,s*v,(x,w,_)=>{e(x),_&&(i=m(x,t))}),b=Lm(0,f,a,(y,v,x)=>{if(e(y),x&&(o(r),!r)){const w=t-y;Math.sign(w-p)===d&&l(()=>{const E=w-f;i=Math.sign(E)===d?g(y,Math.abs(E)/n):m(y,t)})}},h);return y=>{r=!0,y&&b(),c(),i()}}}},yC=(e,t,n)=>{const{dt:o}=n||{},r=Hd(vF),[i]=Fo({o:!1,u:!0});return()=>{const s=[],l=ZE(`
`)[0],c=l.firstChild,d=f=>{const p=f instanceof ResizeObserverEntry;let h=!1,m=!1;if(p){const[g,,b]=i(f.contentRect),y=Bg(g);m=eC(g,b),h=!m&&!y}else m=f===!0;h||t({ft:!0,dt:m})};if(Tp){const f=new Tp(p=>d(p.pop()));f.observe(c),Gt(s,()=>{f.disconnect()})}else if(r){const[f,p]=r(c,d,o);Gt(s,nd([L4(l,JB),Bt(l,"animationstart",f)],p))}else return zs;return Re(er,Gt(s,qo(e,l)))}},_F=(e,t)=>{let n;const o=l=>l.h===0||l.isIntersecting||l.intersectionRatio>0,r=kl(QB),[i]=Fo({o:!1}),s=(l,c)=>{if(l){const d=i(o(l)),[,f]=d;return f&&!c&&t(d)&&[d]}},a=(l,c)=>s(c.pop(),l);return[()=>{const l=[];if(a6)n=new a6(Re(a,!1),{root:e}),n.observe(r),Gt(l,()=>{n.disconnect()});else{const c=()=>{const d=Ll(r);s(d)};Gt(l,yC(r,c)()),c()}return Re(er,Gt(l,qo(e,r)))},()=>n&&a(!0,n.takeRecords())]},EF=(e,t,n,o)=>{let r,i,s,a,l,c;const d=`[${Ps}]`,f=`[${Mi}]`,p=["id","class","style","open","wrap","cols","rows"],{vt:h,ht:m,ot:g,gt:b,bt:y,nt:v,wt:x,yt:w,St:_,Ot:E}=e,C=j=>Ji(j,"direction")==="rtl",k={$t:!1,ct:C(h)},L=Ci(),N=Hd(mC),[A]=Fo({i:HE,o:{w:0,h:0}},()=>{const j=N&&N.tt(e,t,k,L,n).ut,Y=!(x&&v)&&k4(m,Ps,h1),B=!v&&w(YB),q=B&&Yo(b),X=q&&E(),de=_(iC,Y),ie=B&&j&&j()[0],fe=Np(g),ee=I4(g);return ie&&ie(),fi(b,q),X&&X(),Y&&de(),{w:fe.w+ee.w,h:fe.h+ee.h}}),M=Og(o,{_:()=>r,v:()=>i,S(j,G){const[Y]=j,[B]=G;return[nd(Gr(Y),Gr(B)).reduce((q,X)=>(q[X]=Y[X]||B[X],q),{})]}}),z=j=>{const G=C(h);ut(j,{Ct:c!==G}),ut(k,{ct:G}),c=G},S=(j,G)=>{const[Y,B]=j,q={xt:B};return ut(k,{$t:Y}),!G&&o(q),q},O=({ft:j,dt:G})=>{const B=!(j&&!G)&&L.R?M:o,q={ft:j||G,dt:G};z(q),B(q)},R=(j,G)=>{const[,Y]=A(),B={Ht:Y};return z(B),Y&&!G&&(j?o:M)(B),B},$=(j,G,Y)=>{const B={Et:G};return z(B),G&&!Y&&M(B),B},[D,I]=y?_F(m,S):[],F=!v&&yC(m,O,{dt:!0}),[P,H]=T6(m,!1,$,{X:p,j:p}),W=v&&Tp&&new Tp(j=>{const G=j[j.length-1].contentRect;O({ft:!0,dt:eC(G,l)}),l=G}),U=Og(()=>{const[,j]=A();o({Ht:j})},{_:222,p:!0});return[()=>{W&&W.observe(m);const j=F&&F(),G=D&&D(),Y=P(),B=L.L(q=>{q?M({zt:q}):U()});return()=>{W&&W.disconnect(),j&&j(),G&&G(),a&&a(),Y(),B()}},({It:j,At:G,Dt:Y})=>{const B={},[q]=j("update.ignoreMutation"),[X,de]=j("update.attributes"),[ie,fe]=j("update.elementEvents"),[ee,ve]=j("update.debounce"),ze=fe||de,me=G||Y,te=_e=>rr(q)&&q(_e);if(ze){s&&s(),a&&a();const[_e,Le]=T6(y||g,!0,R,{j:nd(p,X||[]),Y:ie,W:d,G:(J,ce)=>{const{target:be,attributeName:we}=J;return(!ce&&we&&!v?PB(be,d,f):!1)||!!gl(be,`.${lr}`)||!!te(J)}});a=_e(),s=Le}if(ve)if(M.m(),wi(ee)){const _e=ee[0],Le=ee[1];r=mi(_e)&&_e,i=mi(Le)&&Le}else mi(ee)?(r=ee,i=!1):(r=!1,i=!1);if(me){const _e=H(),Le=I&&I(),J=s&&s();_e&&ut(B,$(_e[0],_e[1],me)),Le&&ut(B,S(Le[0],me)),J&&ut(B,R(J[0],me))}return z(B),B},k]},CF=(e,t,n,o)=>{const r="--os-viewport-percent",i="--os-scroll-percent",s="--os-scroll-direction",{U:a}=Ci(),{scrollbars:l}=a(),{slot:c}=l,{vt:d,ht:f,ot:p,Mt:h,gt:m,wt:g,nt:b}=t,{scrollbars:y}=h?{}:e,{slot:v}=y||{},x=[],w=[],_=[],E=uC([d,f,p],()=>b&&g?d:f,c,v),C=P=>{if(d1){const H=new d1({source:m,axis:P});return{kt:U=>{const j=U.Tt.animate({clear:["left"],[i]:[0,1]},{timeline:H});return()=>j.cancel()}}}},k={x:C("x"),y:C("y")},L=()=>{const{Rt:P,Vt:H}=n,W=(U,j)=>jE(0,1,U/(U+j)||0);return{x:W(H.x,P.x),y:W(H.y,P.y)}},N=(P,H,W)=>{const U=W?L4:qE;Ct(P,j=>{U(j.Tt,H)})},A=(P,H)=>{Ct(P,W=>{const[U,j]=H(W);rd(U,j)})},M=(P,H,W)=>{const U=x4(W),j=U?W:!0,G=U?!W:!0;j&&N(w,P,H),G&&N(_,P,H)},z=()=>{const P=L(),H=W=>U=>[U.Tt,{[r]:Pg(W)+""}];A(w,H(P.x)),A(_,H(P.y))},S=()=>{if(!d1){const{Lt:P}=n,H=h6(P,Yo(m)),W=U=>j=>[j.Tt,{[i]:Pg(U)+""}];A(w,W(H.x)),A(_,W(H.y))}},O=()=>{const{Lt:P}=n,H=p6(P),W=U=>j=>[j.Tt,{[s]:U?"0":"1"}];A(w,W(H.x)),A(_,W(H.y))},R=()=>{if(b&&!g){const{Rt:P,Lt:H}=n,W=p6(H),U=h6(H,Yo(m)),j=G=>{const{Tt:Y}=G,B=od(Y)===p&&Y,q=(X,de,ie)=>{const fe=de*X;return KE(ie?fe:-fe)};return[B,B&&{transform:BB({x:q(U.x,P.x,W.x),y:q(U.y,P.y,W.y)})}]};A(w,j),A(_,j)}},$=P=>{const H=P?"x":"y",U=kl(`${lr} ${P?nF:oF}`),j=kl(aC),G=kl(R4),Y={Tt:U,Ut:j,Pt:G},B=k[H];return Gt(P?w:_,Y),Gt(x,[qo(U,j),qo(j,G),Re(ql,U),B&&B.kt(Y),o(Y,M,P)]),Y},D=Re($,!0),I=Re($,!1),F=()=>(qo(E,w[0].Tt),qo(E,_[0].Tt),Re(er,x));return D(),I(),[{Nt:z,qt:S,Bt:O,Ft:R,jt:M,Xt:{Yt:w,Wt:D,Jt:Re(A,w)},Gt:{Yt:_,Wt:I,Jt:Re(A,_)}},F]},TF=(e,t,n,o)=>(r,i,s)=>{const{ht:a,ot:l,nt:c,gt:d,Kt:f,Ot:p}=t,{Tt:h,Ut:m,Pt:g}=r,[b,y]=ha(333),[v,x]=ha(444),w=C=>{rr(d.scrollBy)&&d.scrollBy({behavior:"smooth",left:C.x,top:C.y})},_=()=>{const C="pointerup pointercancel lostpointercapture",k=`client${s?"X":"Y"}`,L=s?Y0:X0,N=s?"left":"top",A=s?"w":"h",M=s?"x":"y",z=(O,R)=>$=>{const{Rt:D}=n,I=Ll(m)[A]-Ll(g)[A],P=R*$/I*D[M];fi(d,{[M]:O+P})},S=[];return Bt(m,"pointerdown",O=>{const R=gl(O.target,`.${R4}`)===g,$=R?g:m,D=e.scrollbars,I=D[R?"dragScroll":"clickScroll"],{button:F,isPrimary:P,pointerType:H}=O,{pointers:W}=D;if(F===0&&P&&I&&(W||[]).includes(H)){er(S),x();const j=!R&&(O.shiftKey||I==="instant"),G=Re(Im,g),Y=Re(Im,m),B=(ce,be)=>(ce||G())[N]-(be||Y())[N],q=Ig(Im(d)[L])/Ll(d)[A]||1,X=z(Yo(d)[M],1/q),de=O[k],ie=G(),fe=Y(),ee=ie[L],ve=B(ie,fe)+ee/2,ze=de-fe[N],me=R?0:ze-ve,te=ce=>{er(J),$.releasePointerCapture(ce.pointerId)},_e=R||j,Le=p(),J=[Bt(f,C,te),Bt(f,"selectstart",ce=>Fg(ce),{H:!1}),Bt(m,C,te),_e&&Bt(m,"pointermove",ce=>X(me+(ce[k]-de))),_e&&(()=>{const ce=Yo(d);Le();const be=Yo(d),we={x:be.x-ce.x,y:be.y-ce.y};(Ep(we.x)>3||Ep(we.y)>3)&&(p(),fi(d,ce),w(we),v(Le))})];if($.setPointerCapture(O.pointerId),j)X(me);else if(!R){const ce=Hd(gC);if(ce){const be=ce(X,me,ee,we=>{we?Le():Gt(J,Le)});Gt(J,be),Gt(S,Re(be,!0))}}}})};let E=!0;return Re(er,[Bt(g,"pointermove pointerleave",o),Bt(h,"pointerenter",()=>{i(x6,!0)}),Bt(h,"pointerleave pointercancel",()=>{i(x6,!1)}),!c&&Bt(h,"mousedown",()=>{const C=zg();(c6(C,Mi)||c6(C,Ps)||C===document.body)&&Cp(Re($g,l),25)}),Bt(h,"wheel",C=>{const{deltaX:k,deltaY:L,deltaMode:N}=C;E&&N===0&&od(h)===a&&w({x:k,y:L}),E=!1,i(C6,!0),b(()=>{E=!0,i(C6)}),Fg(C)},{H:!1,I:!0}),Bt(h,"pointerdown",Re(Bt,f,"click",nC,{A:!0,I:!0,H:!1}),{I:!0}),_(),y,x])},SF=(e,t,n,o,r,i)=>{let s,a,l,c,d,f=zs,p=0;const h=P=>P.pointerType==="mouse",[m,g]=ha(),[b,y]=ha(100),[v,x]=ha(100),[w,_]=ha(()=>p),[E,C]=CF(e,r,o,TF(t,r,o,P=>h(P)&&$())),{ht:k,Qt:L,wt:N}=r,{jt:A,Nt:M,qt:z,Bt:S,Ft:O}=E,R=(P,H)=>{if(_(),P)A(E6);else{const W=Re(A,E6,!0);p>0&&!H?w(W):W()}},$=()=>{(l?!s:!c)&&(R(!0),b(()=>{R(!1)}))},D=P=>{A(Wg,P,!0),A(Wg,P,!1)},I=P=>{h(P)&&(s=l,l&&R(!0))},F=[_,y,x,g,()=>f(),Bt(k,"pointerover",I,{A:!0}),Bt(k,"pointerenter",I),Bt(k,"pointerleave",P=>{h(P)&&(s=!1,l&&R(!1))}),Bt(k,"pointermove",P=>{h(P)&&a&&$()}),Bt(L,"scroll",P=>{m(()=>{z(),$()}),i(P),O()})];return[()=>Re(er,Gt(F,C())),({It:P,Dt:H,Zt:W,tn:U})=>{const{nn:j,sn:G,en:Y,cn:B}=U||{},{Ct:q,dt:X}=W||{},{ct:de}=n,{k:ie}=Ci(),{K:fe,rn:ee}=o,[ve,ze]=P("showNativeOverlaidScrollbars"),[me,te]=P("scrollbars.theme"),[_e,Le]=P("scrollbars.visibility"),[J,ce]=P("scrollbars.autoHide"),[be,we]=P("scrollbars.autoHideSuspend"),[vt]=P("scrollbars.autoHideDelay"),[Qt,zt]=P("scrollbars.dragScroll"),[Vt,at]=P("scrollbars.clickScroll"),[cn,it]=P("overflow"),Pt=X&&!H,un=ee.x||ee.y,Qn=j||G||B||q||H,Zt=Y||Le||it,dn=ve&&ie.x&&ie.y,vn=(Ao,In,Me)=>{const Be=Ao.includes(Gl)&&(_e===bs||_e==="auto"&&In===Gl);return A(rF,Be,Me),Be};if(p=vt,Pt&&(be&&un?(D(!1),f(),v(()=>{f=Bt(L,"scroll",Re(D,!0),{A:!0})})):D(!0)),ze&&A(eF,dn),te&&(A(d),A(me,!0),d=me),we&&!be&&D(!0),ce&&(a=J==="move",l=J==="leave",c=J==="never",R(c,!0)),zt&&A(aF,Qt),at&&A(sF,!!Vt),Zt){const Ao=vn(cn.x,fe.x,!0),In=vn(cn.y,fe.y,!1);A(iF,!(Ao&&In))}Qn&&(z(),M(),O(),B&&S(),A(_6,!ee.x,!0),A(_6,!ee.y,!1),A(tF,de&&!N))},{},E]},kF=e=>{const t=Ci(),{U:n,R:o}=t,{elements:r}=n(),{padding:i,viewport:s,content:a}=r,l=Lp(e),c=l?{}:e,{elements:d}=c,{padding:f,viewport:p,content:h}=d||{},m=l?e:c.target,g=XE(m),b=m.ownerDocument,y=b.documentElement,v=()=>b.defaultView||To,x=Re(dF,[m]),w=Re(uC,[m]),_=Re(kl,""),E=Re(x,_,s),C=Re(w,_,a),k=ee=>{const ve=Ll(ee),ze=Np(ee),me=Ji(ee,FE),te=Ji(ee,$E);return ze.w-ve.w>0&&!Yl(me)||ze.h-ve.h>0&&!Yl(te)},L=E(p),N=L===m,A=N&&g,M=!N&&C(h),z=!N&&L===M,S=A?y:L,O=A?S:m,R=!N&&w(_,i,f),$=!z&&M,D=[$,S,R,O].map(ee=>Lp(ee)&&!od(ee)&&ee),I=ee=>ee&&RE(D,ee),F=!I(S)&&k(S)?S:m,P=A?y:S,W={vt:m,ht:O,ot:S,ln:R,bt:$,gt:P,Qt:A?b:S,an:g?y:F,Kt:b,wt:g,Mt:l,nt:N,un:v,yt:ee=>k4(S,Mi,ee),St:(ee,ve)=>Ip(S,Mi,ee,ve),Ot:()=>Ip(P,Mi,XB,!0)},{vt:U,ht:j,ln:G,ot:Y,bt:B}=W,q=[()=>{ti(j,[Ps,Nm]),ti(U,Nm),g&&ti(y,[Nm,Ps])}];let X=Dg([B,Y,G,j,U].find(ee=>ee&&!I(ee)));const de=A?U:B||Y,ie=Re(er,q);return[W,()=>{const ee=v(),ve=zg(),ze=J=>{qo(od(J),Dg(J)),ql(J)},me=J=>Bt(J,"focusin focusout focus blur",nC,{I:!0,H:!1}),te="tabindex",_e=T4(Y,te),Le=me(ve);return Ri(j,Ps,N?"":UB),Ri(G,Vg,""),Ri(Y,Mi,""),Ri(B,w6,""),N||(Ri(Y,te,_e||"-1"),g&&Ri(y,b6,"")),qo(de,X),qo(j,G),qo(G||j,!N&&Y),qo(Y,B),Gt(q,[Le,()=>{const J=zg(),ce=I(Y),be=ce&&J===Y?U:J,we=me(be);ti(G,Vg),ti(B,w6),ti(Y,Mi),g&&ti(y,b6),_e?Ri(Y,te,_e):ti(Y,te),I(B)&&ze(B),ce&&ze(Y),I(G)&&ze(G),$g(be),we()}]),o&&!N&&(S4(Y,Mi,sC),Gt(q,Re(ti,Y,Mi))),$g(!N&&g&&ve===U&&ee.top===ee?Y:ve),Le(),X=0,ie},ie]},LF=({bt:e})=>({Zt:t,_n:n,Dt:o})=>{const{xt:r}=t||{},{$t:i}=n;e&&(r||o)&&rd(e,{[X0]:i&&"100%"})},IF=({ht:e,ln:t,ot:n,nt:o},r)=>{const[i,s]=Fo({i:DB,o:d6()},Re(d6,e,"padding",""));return({It:a,Zt:l,_n:c,Dt:d})=>{let[f,p]=s(d);const{R:h}=Ci(),{ft:m,Ht:g,Ct:b}=l||{},{ct:y}=c,[v,x]=a("paddingAbsolute");(m||p||(d||g))&&([f,p]=i(d));const _=!o&&(x||b||p);if(_){const E=!v||!t&&!h,C=f.r+f.l,k=f.t+f.b,L={[PE]:E&&!y?-C:0,[BE]:E?-k:0,[zE]:E&&y?-C:0,top:E?-f.t:0,right:E?y?-f.r:"auto":0,left:E?y?"auto":-f.l:0,[Y0]:E&&`calc(100% + ${C}px)`},N={[ME]:E?f.t:0,[OE]:E?f.r:0,[DE]:E?f.b:0,[AE]:E?f.l:0};rd(t||n,L),rd(n,N),ut(r,{ln:f,dn:!E,rt:t?N:ut({},L,N)})}return{fn:_}}},NF=(e,t)=>{const n=Ci(),{ht:o,ln:r,ot:i,nt:s,Qt:a,gt:l,wt:c,St:d,un:f}=e,{R:p}=n,h=c&&s,m=Re(_p,0),g={display:()=>!1,direction:H=>H!=="ltr",flexDirection:H=>H.endsWith("-reverse"),writingMode:H=>H!=="horizontal-tb"},b=Gr(g),y={i:HE,o:{w:0,h:0}},v={i:f1,o:{}},x=H=>{d(iC,!h&&H)},w=H=>{if(!b.some(de=>{const ie=H[de];return ie&&g[de](ie)}))return{D:{x:0,y:0},M:{x:1,y:1}};x(!0);const U=Yo(l),j=d(ZB,!0),G=Bt(a,Gl,de=>{const ie=Yo(l);de.isTrusted&&ie.x===U.x&&ie.y===U.y&&tC(de)},{I:!0,A:!0});fi(l,{x:0,y:0}),j();const Y=Yo(l),B=Np(l);fi(l,{x:B.w,y:B.h});const q=Yo(l);fi(l,{x:q.x-Y.x<1&&-B.w,y:q.y-Y.y<1&&-B.h});const X=Yo(l);return fi(l,U),j0(()=>G()),{D:Y,M:X}},_=(H,W)=>{const U=To.devicePixelRatio%1!==0?1:0,j={w:m(H.w-W.w),h:m(H.h-W.h)};return{w:j.w>U?j.w:0,h:j.h>U?j.h:0}},[E,C]=Fo(y,Re(I4,i)),[k,L]=Fo(y,Re(Np,i)),[N,A]=Fo(y),[M]=Fo(v),[z,S]=Fo(y),[O]=Fo(v),[R]=Fo({i:(H,W)=>Z0(H,W,b),o:{}},()=>VB(i)?Ji(i,b):{}),[$,D]=Fo({i:(H,W)=>f1(H.D,W.D)&&f1(H.M,W.M),o:oC()}),I=Hd(mC),F=(H,W)=>`${W?GB:qB}${AB(H)}`,P=H=>{const W=j=>[bs,pa,Gl].map(G=>F(G,j)),U=W(!0).concat(W()).join(" ");d(U),d(Gr(H).map(j=>F(H[j],j==="x")).join(" "),!0)};return({It:H,Zt:W,_n:U,Dt:j},{fn:G})=>{const{ft:Y,Ht:B,Ct:q,dt:X,zt:de}=W||{},ie=I&&I.tt(e,t,U,n,H),{it:fe,ut:ee,_t:ve}=ie||{},[ze,me]=bF(H,n),[te,_e]=H("overflow"),Le=Yl(te.x),J=Yl(te.y),ce=!0;let be=C(j),we=L(j),vt=A(j),Qt=S(j);me&&p&&d(sC,!ze);{k4(o,Ps,h1)&&x(!0);const[on]=ee?ee():[],[eo]=be=E(j),[rn]=we=k(j),to=QE(i),wo=h&&HB(f()),Jr={w:m(rn.w+eo.w),h:m(rn.h+eo.h)},no={w:m((wo?wo.w:to.w+m(to.w-rn.w))+eo.w),h:m((wo?wo.h:to.h+m(to.h-rn.h))+eo.h)};on&&on(),Qt=z(no),vt=N(_(Jr,no),j)}const[zt,Vt]=Qt,[at,cn]=vt,[it,Pt]=we,[un,Qn]=be,[Zt,dn]=M({x:at.w>0,y:at.h>0}),vn=Le&&J&&(Zt.x||Zt.y)||Le&&Zt.x&&!Zt.y||J&&Zt.y&&!Zt.x,Ao=G||q||de||Qn||Pt||Vt||cn||_e||me||ce,In=wF(Zt,te),[Me,Be]=O(In.K),[ht,tt]=R(j),mt=q||X||tt||dn||j,[en,Nn]=mt?$(w(ht),j):D();return Ao&&(Be&&P(In.K),ve&&fe&&rd(i,ve(In,U,fe(In,it,un)))),x(!1),Ip(o,Ps,h1,vn),Ip(r,Vg,h1,vn),ut(t,{K:Me,Vt:{x:zt.w,y:zt.h},Rt:{x:at.w,y:at.h},rn:Zt,Lt:WB(en,at)}),{en:Be,nn:Vt,sn:cn,cn:Nn||cn,vn:mt}}},RF=e=>{const[t,n,o]=kF(e),r={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[PE]:0,[BE]:0,[zE]:0,[ME]:0,[OE]:0,[DE]:0,[AE]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:pa,y:pa},rn:{x:!1,y:!1},Lt:oC()},{vt:i,gt:s,nt:a,Ot:l}=t,{R:c,k:d}=Ci(),f=!c&&(d.x||d.y),p=[LF(t),IF(t,r),NF(t,r)];return[n,h=>{const m={},b=f&&Yo(s),y=b&&l();return Ct(p,v=>{ut(m,v(h,m)||{})}),fi(s,b),y&&y(),!a&&fi(i,0),m},r,t,o]},MF=(e,t,n,o,r)=>{let i=!1;const s=v6(t,{}),[a,l,c,d,f]=RF(e),[p,h,m]=EF(d,c,s,w=>{x({},w)}),[g,b,,y]=SF(e,t,m,c,d,r),v=w=>Gr(w).some(_=>!!w[_]),x=(w,_)=>{if(n())return!1;const{pn:E,Dt:C,At:k,hn:L}=w,N=E||{},A=!!C||!i,M={It:v6(t,N,A),pn:N,Dt:A};if(L)return b(M),!1;const z=_||h(ut({},M,{At:k})),S=l(ut({},M,{_n:m,Zt:z}));b(ut({},M,{Zt:z,tn:S}));const O=v(z),R=v(S),$=O||R||!C4(N)||A;return i=!0,$&&o(w,{Zt:z,tn:S}),$};return[()=>{const{an:w,gt:_,Ot:E}=d,C=Yo(w),k=[p(),a(),g()],L=E();return fi(_,C),L(),Re(er,k)},x,()=>({gn:m,bn:c}),{wn:d,yn:y},f]},Pr=(e,t,n)=>{const{N:o}=Ci(),r=Lp(e),i=r?e:e.target,s=dC(i);if(t&&!s){let a=!1;const l=[],c={},d=N=>{const A=WE(N),M=Hd(yF);return M?M(A,!0):A},f=ut({},o(),d(t)),[p,h,m]=Hg(),[g,b,y]=Hg(n),v=(N,A)=>{y(N,A),m(N,A)},[x,w,_,E,C]=MF(e,f,()=>a,({pn:N,Dt:A},{Zt:M,tn:z})=>{const{ft:S,Ct:O,xt:R,Ht:$,Et:D,dt:I}=M,{nn:F,sn:P,en:H,cn:W}=z;v("updated",[L,{updateHints:{sizeChanged:!!S,directionChanged:!!O,heightIntrinsicChanged:!!R,overflowEdgeChanged:!!F,overflowAmountChanged:!!P,overflowStyleChanged:!!H,scrollCoordinatesChanged:!!W,contentMutation:!!$,hostMutation:!!D,appear:!!I},changedOptions:N||{},force:!!A}])},N=>v("scroll",[L,N])),k=N=>{hF(i),er(l),a=!0,v("destroyed",[L,N]),h(),b()},L={options(N,A){if(N){const M=A?o():{},z=rC(f,ut(M,d(N)));C4(z)||(ut(f,z),w({pn:z}))}return ut({},f)},on:g,off:(N,A)=>{N&&A&&b(N,A)},state(){const{gn:N,bn:A}=_(),{ct:M}=N,{Vt:z,Rt:S,K:O,rn:R,ln:$,dn:D,Lt:I}=A;return ut({},{overflowEdge:z,overflowAmount:S,overflowStyle:O,hasOverflow:R,scrollCoordinates:{start:I.D,end:I.M},padding:$,paddingAbsolute:D,directionRTL:M,destroyed:a})},elements(){const{vt:N,ht:A,ln:M,ot:z,bt:S,gt:O,Qt:R}=E.wn,{Xt:$,Gt:D}=E.yn,I=P=>{const{Pt:H,Ut:W,Tt:U}=P;return{scrollbar:U,track:W,handle:H}},F=P=>{const{Yt:H,Wt:W}=P,U=I(H[0]);return ut({},U,{clone:()=>{const j=I(W());return w({hn:!0}),j}})};return ut({},{target:N,host:A,padding:M||z,viewport:z,content:S||z,scrollOffsetElement:O,scrollEventElement:R,scrollbarHorizontal:F($),scrollbarVertical:F(D)})},update:N=>w({Dt:N,At:!0}),destroy:Re(k,!1),plugin:N=>c[Gr(N)[0]]};return Gt(l,[C]),pF(i,L),hC(fC,Pr,[L,p,c]),fF(E.wn.wt,!r&&e.cancel)?(k(!0),L):(Gt(l,x()),v("initialized",[L]),L.update(),L)}return s};Pr.plugin=e=>{const t=wi(e),n=t?e:[e],o=n.map(r=>hC(r,Pr)[0]);return gF(n),t?o:o[0]};Pr.valid=e=>{const t=e&&e.elements,n=rr(t)&&t();return kp(n)&&!!dC(n.target)};Pr.env=()=>{const{T:e,k:t,R:n,V:o,B:r,F:i,U:s,P:a,N:l,q:c}=Ci();return ut({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:o,staticDefaultInitialization:r,staticDefaultOptions:i,getDefaultInitialization:s,setDefaultInitialization:a,getDefaultOptions:l,setDefaultOptions:c})};Pr.nonce=cF;const OF=()=>{if(typeof window>"u"){const c=()=>{};return[c,c]}let e,t;const n=window,o=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,i=n.cancelAnimationFrame,s=o?n.requestIdleCallback:r,a=o?n.cancelIdleCallback:i,l=()=>{a(e),i(t)};return[(c,d)=>{l(),e=s(o?()=>{l(),t=r(c)}:c,typeof d=="object"?d:{timeout:2233})},l]},vC=e=>{const{options:t,events:n,defer:o}=e||{},[r,i]=u.useMemo(OF,[]),s=u.useRef(null),a=u.useRef(o),l=u.useRef(t),c=u.useRef(n);return u.useEffect(()=>{a.current=o},[o]),u.useEffect(()=>{const{current:d}=s;l.current=t,Pr.valid(d)&&d.options(t||{},!0)},[t]),u.useEffect(()=>{const{current:d}=s;c.current=n,Pr.valid(d)&&d.on(n||{},!0)},[n]),u.useEffect(()=>()=>{var d;i(),(d=s.current)==null||d.destroy()},[]),u.useMemo(()=>[d=>{const f=s.current;if(Pr.valid(f))return;const p=a.current,h=l.current||{},m=c.current||{},g=()=>s.current=Pr(d,h,m);p?r(g,p):g()},()=>s.current],[])},AF=(e,t)=>{const{element:n="div",options:o,events:r,defer:i,children:s,...a}=e,l=n,c=u.useRef(null),d=u.useRef(null),[f,p]=vC({options:o,events:r,defer:i});return u.useEffect(()=>{const{current:h}=c,{current:m}=d;if(!h)return;const g=h;return f(n==="body"?{target:g,cancel:{body:null}}:{target:g,elements:{viewport:m,content:m}}),()=>{var b;return(b=p())==null?void 0:b.destroy()}},[f,n]),u.useImperativeHandle(t,()=>({osInstance:p,getElement:()=>c.current}),[]),V.createElement(l,{"data-overlayscrollbars-initialize":"",ref:c,...a},n==="body"?s:V.createElement("div",{"data-overlayscrollbars-contents":"",ref:d},s))};u.forwardRef(AF);Pr.plugin(xF);const hc=({children:e,className:t,container:n,scrollX:o,scrollY:r})=>{const i=u.useRef(null),[s,a]=vC({options:{overflow:{x:o==null||o?"scroll":"hidden",y:r==null||r?"scroll":"hidden"},scrollbars:{clickScroll:!0}},defer:!1});return u.useEffect(()=>(i.current!=null&&(n==null?s(i.current):s({target:i.current,elements:{viewport:n}})),()=>a()?.destroy()),[n,s,a]),T.jsx("div",{ref:i,children:e,className:yn(fa.scrollable,t),"data-overlayscrollbars":""})},mc=u.forwardRef((e,t)=>{const{show:n,blurAmount:o=e.blurAmount??10,brightness:r=e.brightness??.55,saturation:i=e.saturation??1.8,transition:s,...a}=e,l=lA(t),c=Mn(bn.BlurUnderlay),d=BF(e.transition),f=yn(fa.underlayBlur,c?fa.underlayBlurEnabled:fa.underlayBlurDisabled,e.show&&fa.underlayBlurShow,e.className);return u.useEffect(()=>{l.current&&(l.current.style.setProperty("--blur-amount",`${o}px`),l.current.style.setProperty("--blur-saturate",`${i}`),l.current.style.setProperty("--blur-brightness",`${r}`),l.current.style.setProperty("--blur-transition",d),l.current.style.setProperty("--blur-border-radius",getComputedStyle(l.current).borderRadius),l.current.style.setProperty("--blur-disabled-opacity",DF(o,r)))},[l,e.className,d,o,i,r]),T.jsx("div",{...a,ref:l,className:f})});function DF(e,t){return`${t+e/25}`}function zF(e){ka.getStatus()===ka.BootStatus.Booted?ae.registerExternal(e):Cd.subscribe(()=>ae.registerExternal(e))}function PF(e){ka.getStatus()===ka.BootStatus.Booted?ae.registerExternal(e()):Cd.subscribe(()=>ae.registerExternal(e()))}function bC(e,t,n){const[o,r]=u.useState(i());return Mo(ae.onChanged,s=>{s===e&&r(i())},[e,t,n]),o;function i(){if(ka.getStatus()!==ka.BootStatus.Booted)return;const s=ae.getValueJson({settingsId:e,propertyId:t});if(s!==null)return JSON.parse(s)}}var O4=(e=>(e.Fast="--fast-transition",e.Base="--base-transition",e.Slow="--slow-transition",e))(O4||{});const Il=new Map;Cd.subscribe(()=>{const e=getComputedStyle(document.body);Il.set("--fast-transition",e.getPropertyValue("--fast-transition")),Il.set("--base-transition",e.getPropertyValue("--base-transition")),Il.set("--slow-transition",e.getPropertyValue("--slow-transition"))});function BF(e){if(!Mn(bn.SmoothTransitions)||!e)return"none";if(!Il.has(e))throw Error("Failed to get transition: invoked before backend is initialized.");return Il.get(e)}var bn=(e=>(e.SmoothTransitions="SmoothTransitions",e.BlurUnderlay="BlurUnderlay",e.UndoListLength="UndoListLength",e.SmoothScroll="SmoothScroll",e.FadeScriptLines="FadeScriptLines",e.GraphControlsPosition="GraphControlsPosition",e.GraphMapPosition="GraphMapPosition",e.GraphPathPosition="GraphPathPosition",e.GraphMinZoom="GraphMinZoom",e.GraphMaxZoom="GraphMaxZoom",e.GraphSelectionMode="GraphSelectionMode",e.GraphEdgeType="GraphEdgeType",e.GraphShowGrid="GraphShowGrid",e.GraphSnapToGrid="GraphSnapToGrid",e.GraphShowSynopsis="GraphShowSynopsis",e.GraphShowCondition="GraphShowCondition",e.GraphAnimateTransition="GraphAnimateTransition",e))(bn||{});const Q0="Appearance",FF=()=>({id:Q0,scope:xr.ConfigurationScope.User,properties:[{id:"SmoothTransitions",label:Uo("SmoothTransitions"),defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to use smooth transitions throughout the editor UI. Disable to improve performance."},{id:"BlurUnderlay",label:Uo("BlurUnderlay"),defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to blur background for some windows, such as modals, context menus, tooltips, dropdown lists, etc. Disable to improve performance."},{id:"UndoListLength",label:Uo("UndoListLength"),defaultValueJson:JSON.stringify(10),valueType:ae.ValueType.Integer,containerType:ae.ContainerType.Single,summary:"Determines the maximum height of the undo history list before it starts scrolling."},...L6("Scenario Editor",[{id:"SmoothScroll",label:Uo("SmoothScroll"),defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to use smooth scroll when showing lines in visual scenario editor."},{id:"FadeScriptLines",label:Uo("FadeScriptLines"),defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to use fade-in animation when showing lines in visual scenario editor."}]),...L6("Story Graph",[{id:"GraphControlsPosition",label:"Controls Position",defaultValueJson:JSON.stringify("bottom-left"),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single,options:["top-left","top-right","bottom-left","bottom-right","hide"],summary:"Position of the control panel on graph pane; selecting 'Hide' will remove the panel."},{id:"GraphMapPosition",label:"Minimap Position",defaultValueJson:JSON.stringify("bottom-right"),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single,options:["top-left","top-right","bottom-left","bottom-right","hide"],summary:"Position of the minimap on graph pane; selecting 'Hide' will remove the map."},{id:"GraphPathPosition",label:"Breadcrumbs Position",defaultValueJson:JSON.stringify("top-center"),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single,options:["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","hide"],summary:"Position of the bar indicating currently expanded nodes hierarchy; select 'Hide' to remove the bar."},{id:"GraphMinZoom",label:"Minimum Zoom",defaultValueJson:JSON.stringify(.3),minValue:.01,maxValue:100,valueType:ae.ValueType.Decimal,containerType:ae.ContainerType.Single,summary:"How far story graph can be zoomed out."},{id:"GraphMaxZoom",label:"Maximum Zoom",defaultValueJson:JSON.stringify(2),minValue:.01,maxValue:100,valueType:ae.ValueType.Decimal,containerType:ae.ContainerType.Single,summary:"How close story graph can be zoomed in."},{id:"GraphSelectionMode",label:"Selection Mode",defaultValueJson:JSON.stringify("partial"),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single,options:["full","partial"],summary:"Whether partially covering nodes and edges with selection box should select them."},{id:"GraphEdgeType",label:"Edge Type",defaultValueJson:JSON.stringify("bezier"),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single,options:["bezier","straight","step","smoothstep"],summary:"Controls the way node edges (connections) are drawn."},{id:"GraphShowGrid",label:"Show Grid",defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to render grid under the node graph."},{id:"GraphSnapToGrid",label:"Snap To Grid",defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to snap nodes to the story graph background grid."},{id:"GraphShowSynopsis",label:"Show Synopsis",defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to show first script comment text inside script node; when disabled synopsis is still viewable as tooltip when hovering script node title."},{id:"GraphShowCondition",label:"Show Condition",defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to show navigation condition (eg, @goto if:condition) under graph node out ports; when disabled condition is still viewable as tooltip when hovering the ports."},{id:"GraphAnimateTransition",label:"Animate Transition",defaultValueJson:JSON.stringify(!0),valueType:ae.ValueType.Boolean,containerType:ae.ContainerType.Single,summary:"Whether to perform zoom in and out animations when entering (expanding) and exiting (collapsing) graph group nodes."}]),...Qr("Font Family",[Ne("BaseFont","--base-font","Font names to use in regular text."),Ne("CodeFont","--code-font","Font names to use in code and scripts text."),Ne("FontLigatures","--font-ligatures","Font ligature variants.")]),...Qr("Font Size",[Ne("TinyFontSize","--tiny-font-size","Minimum font size."),Ne("SmallFontSize","--small-font-size","Smaller font size."),Ne("BaseFontSize","--base-font-size","Normal font size."),Ne("GiantFontSize","--giant-font-size","Maximum font size.")]),...Qr("Font Weight",[Ne("LightCodeWeight","--light-code-weight","Minimum code font weight."),Ne("RegularCodeWeight","--regular-code-weight","Normal code font weight."),Ne("LightBaseWeight","--light-base-weight","Minimum regular font weight."),Ne("RegularBaseWeight","--regular-base-weight","Normal regular font weight."),Ne("BoldBaseWeight","--bold-base-weight","Maximum regular font weight.")]),...Qr("Font Color",[Ne("DarkFontColor","--dark-font-color","Minimum font color."),Ne("DimFontColor","--dim-font-color","Low font color."),Ne("BaseFontColor","--base-font-color","Normal font color."),Ne("LightFontColor","--light-font-color","High font color."),Ne("BrightFontColor","--bright-font-color","Maximum font color."),Ne("ExpressionColor","--expression-color","Font color of script expressions.")]),...Qr("Theme Accent",[Ne("DarkAccentColor","--dark-accent-color","Minimum accent color."),Ne("DimAccentColor","--dim-accent-color","Low accent color."),Ne("BaseAccentColor","--base-accent-color","Normal accent color."),Ne("LightAccentColor","--light-accent-color","High accent color."),Ne("BrightAccentColor","--bright-accent-color","Maximum accent color.")]),...Qr("Color Accent",[Ne("RedAccentColor","--red-accent-color","Red accent color."),Ne("GreenAccentColor","--green-accent-color","Green accent color."),Ne("BlueAccentColor","--blue-accent-color","Blue accent color."),Ne("PurpleAccentColor","--purple-accent-color","Purple accent color."),Ne("YellowAccentColor","--yellow-accent-color","Yellow accent color."),Ne("AquaAccentColor","--aqua-accent-color","Aqua accent color.")]),...Qr("Background",[Ne("DarkBackgroundColor","--dark-bg-color","Minimum background color."),Ne("DimBackgroundColor","--dim-bg-color","Low background color."),Ne("BaseBackgroundColor","--base-bg-color","Normal background color."),Ne("LightBackgroundColor","--light-bg-color","High background color."),Ne("BrightBackgroundColor","--bright-bg-color","Maximum background color.")]),...Qr("Shadow",[Ne("DarkShadowColor","--dark-shadow-color","Minimum shadow color."),Ne("DimShadowColor","--dim-shadow-color","Low shadow color."),Ne("BaseShadowColor","--base-shadow-color","Normal shadow color."),Ne("LightShadowColor","--light-shadow-color","High shadow color."),Ne("BrightShadowColor","--bright-shadow-color","Maximum Shadow color.")]),...Qr("Button",[Ne("DarkButtonColor","--dark-button-color","Minimum button color."),Ne("DimButtonColor","--dim-button-color","Low button color."),Ne("BaseButtonColor","--base-button-color","Normal button color."),Ne("LightButtonColor","--light-button-color","High button color."),Ne("BrightButtonColor","--bright-button-color","Maximum button color.")]),...Qr("Border Radius",[Ne("BaseBorderRadius","--base-border-radius","Default border radius."),Ne("MajorBorderRadius","--major-border-radius","Border radius for major elements, like windows.")]),Ne("GraphBackground","--graph-background",`Background of the story graph tab. ${S6}`,"Story Graph","Background"),Ne("VisualEditorBackground","--visual-editor-background",`Background of the visual scenario editor tab. ${S6}`,"Scenario Editor","Background")]}),wC=new Map,S6="Any value for [background](https://developer.mozilla.org/en-US/docs/Web/CSS/background) CSS property is supported; eg, you can assign an image url:\n```\ncenter / cover url(https://naninovel.com/miku.jpg)\n```\n";let Mm;function Mn(e){return bC(Q0,e)}function k6(e){const t=ae.getValueJson({settingsId:Q0,propertyId:e});return t==null||t.length===0?void 0:JSON.parse(t)}function Qr(e,t){return t.map(n=>({...n,group:e}))}function L6(e,t){return t.map(n=>({...n,category:e}))}function Ne(e,t,n,o,r){return wC.set(t,e),{id:e,label:r??Uo(e),summary:n,color:t.endsWith("-color"),category:o??"Appearance",defaultValueJson:JSON.stringify($F().getPropertyValue(t).trim()),valueType:ae.ValueType.String,containerType:ae.ContainerType.Single}}function $F(){return Mm||(Mm=getComputedStyle(document.querySelector(":root")))}function I6(e,t){document.body.style.setProperty(e,t)}ae.onChanged.subscribe(e=>{if(e!==Q0)return;for(const[n,o]of wC)I6(n,k6(o));const t=k6("SmoothTransitions");for(const[n,o]of Il)I6(n,t?o:"none")});PF(FF);const A4=new nt,N6=.3;let jg=0,Ug,_u,xC;function Tn(e,t){return e==null?{}:{"data-tooltip-anchor":!0,onMouseEnter:n=>WF(n,e,t),onMouseMove:jF,onMouseLeave:n=>UF(n,t?.doc)}}function HF(){return xC}function VF(e){xC=e,_u=e.anchor,A4.broadcast(!0)}function D4(){_u=void 0,A4.broadcast(!1)}async function WF(e,t,n){jg=Date.now();const o=_u=e.currentTarget;for(Ug={x:e.clientX,y:e.clientY};_u===o&&Date.now()-jg{const e=fo(A4)??!1,t=HF(),n=u.useRef(null);u.useEffect(()=>{if(!(!t||n.current==null))return p_(t.anchor,n.current,async()=>{const r=t.options?.doc?t.anchor:e$(t.cursor.x,t.cursor.y),i=await sA(r,n.current,{placement:"bottom-start",middleware:[rA(),iA()]});Object.assign(n.current.style,{left:`${i.x}px`,top:`${i.y}px`})})},[t,e]);const o=u.useCallback(r=>{(t?.anchor==null||r.relatedTarget!==t.anchor)&&D4()},[t?.anchor]);return T.jsx(mc,{ref:n,className:yn(Dc.tooltip,[t?.options?.doc,Dc.tooltipDoc]),show:e,"data-tooltip-window":!0,transition:O4.Fast,onMouseLeave:o,children:T.jsx(hc,{className:yn(Dc.content,[e,Dc.visible]),"data-tooltip-window":!0,children:T.jsx("div",{className:Dc.scrollableContent,"data-tooltip-window":!0,dangerouslySetInnerHTML:{__html:t?.html??""}})})})};function e$(e,t){return e+=10,{getBoundingClientRect:()=>({width:15,height:15,x:e,y:t,top:t,left:e,right:e,bottom:t})}}const z4=e=>!!e&&e[0]==="o",Gg=mn.unstable_batchedUpdates||(e=>e()),id=(e,t)=>e===!0||!!(e&&e[t]),No=(e,t)=>typeof e=="function"?e(t):e,EC="_szhsinMenu",t$=e=>e[EC],n$=(e,t)=>Object.defineProperty(t,EC,{value:e}),Vd=(e,t)=>(t&&Object.keys(t).forEach(n=>{const o=e[n],r=t[n];typeof r=="function"&&o?e[n]=(...i)=>{r(...i),o(...i)}:e[n]=r}),e),o$=e=>{if(typeof e!="string")return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],o=isNaN(t[1])?n:t[1];return{top:n,right:o,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?o:t[3]}},Om=e=>{for(;e;){if(e=e.parentNode,!e||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:o}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+o+n))return e}};function P4(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function R6(e,t){for(let n=0;nu.useMemo(()=>{const r=t?`${e}__${t}`:e;let i=r;n&&Object.keys(n).forEach(a=>{const l=n[a];l&&(i+=` ${r}--${l===!0?a:`${a}-${l}`}`)});let s=typeof o=="function"?o(n):o;return typeof s=="string"&&(s=s.trim(),s&&(i+=` ${s}`)),i},[e,t,n,o]),r$="szh-menu-container",Ea="szh-menu",i$="szh-menu-button",s$="arrow",CC="item",a$="divider",l$="submenu",TC=u.createContext(),B4=u.createContext({}),qg=u.createContext({}),SC=u.createContext({}),c$=u.createContext({}),eh=u.createContext({}),Xn=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),tn=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),sd=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Nl=Object.freeze({FIRST:"first",LAST:"last"}),u$=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Am="absolute",Rp="none",kC="menuitem",d$=n$("MenuButton",u.forwardRef(function({className:t,isOpen:n,disabled:o,children:r,...i},s){const a=u.useMemo(()=>({open:n}),[n]);return T.jsx("button",{"aria-haspopup":!0,"aria-expanded":n,"aria-disabled":o||void 0,type:"button",disabled:o,...i,ref:s,className:js({block:i$,modifiers:a,className:t}),children:r})})),f$=({className:e,containerRef:t,containerProps:n,children:o,isOpen:r,theming:i,transition:s,onClose:a})=>{const l=id(s,"item"),c=({key:f})=>{switch(f){case Xn.ESC:No(a,{key:f,reason:sd.CANCEL});break}},d=f=>{r&&!f.currentTarget.contains(f.relatedTarget)&&No(a,{reason:sd.BLUR})};return T.jsx("div",{...Vd({onKeyDown:c,onBlur:d},n),className:js({block:r$,modifiers:u.useMemo(()=>({theme:i,itemTransition:l}),[i,l]),className:e}),style:{position:"absolute",...n?.style},ref:t,children:o})},p$=()=>{let e,t=0;return{toggle:n=>{n?t++:t--,t=Math.max(t,0)},on:(n,o,r)=>{t?e||(e=setTimeout(()=>{e=0,o()},n)):r?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},h$=(e,t)=>{const[n,o]=u.useState(),i=u.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=u.useCallback((l,c)=>{const{items:d}=i;if(!l)i.items=[];else if(c)d.push(l);else{const f=d.indexOf(l);f>-1&&(d.splice(f,1),l.contains(document.activeElement)&&(t.current.focus(),o()))}i.hoverIndex=-1,i.sorted=!1},[i,t]),a=u.useCallback((l,c,d)=>{const{items:f,hoverIndex:p}=i,h=()=>{if(i.sorted)return;const b=e.current.querySelectorAll(".szh-menu__item");f.sort((y,v)=>R6(b,y)-R6(b,v)),i.sorted=!0};let m=-1,g;switch(l){case tn.RESET:break;case tn.SET:g=c;break;case tn.UNSET:g=b=>b===c?void 0:b;break;case tn.FIRST:h(),m=0,g=f[m];break;case tn.LAST:h(),m=f.length-1,g=f[m];break;case tn.SET_INDEX:h(),m=d,g=f[m];break;case tn.INCREASE:h(),m=p,m<0&&(m=f.indexOf(c)),m++,m>=f.length&&(m=0),g=f[m];break;case tn.DECREASE:h(),m=p,m<0&&(m=f.indexOf(c)),m--,m<0&&(m=f.length-1),g=f[m];break}g||(m=-1),o(g),i.hoverIndex=m},[e,i]);return{hoverItem:n,dispatch:a,updateItems:s}},M6=(e,t)=>Math.round(e)===t?e:t,m$=e=>{const t=e.getBoundingClientRect();return t.width=M6(t.width,e.offsetWidth),t.height=M6(t.height,e.offsetHeight),t},g$=(e,t,n,o)=>{const r=m$(t.current),i=e.current.getBoundingClientRect(),s=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),a=o$(o),l=m=>m+i.left-s.left-a.left,c=m=>m+i.left+r.width-s.right+a.right,d=m=>m+i.top-s.top-a.top,f=m=>m+i.top+r.height-s.bottom+a.bottom;return{menuRect:r,containerRect:i,getLeftOverflow:l,getRightOverflow:c,getTopOverflow:d,getBottomOverflow:f,confineHorizontally:m=>{let g=l(m);if(g<0)m-=g;else{const b=c(m);b>0&&(m-=b,g=l(m),g<0&&(m-=g))}return m},confineVertically:m=>{let g=d(m);if(g<0)m-=g;else{const b=f(m);b>0&&(m-=b,g=d(m),g<0&&(m-=g))}return m}}},y$=({arrowRef:e,menuY:t,anchorRect:n,containerRect:o,menuRect:r})=>{let i=n.top-o.top-t+n.height/2;const s=e.current.offsetHeight*1.25;return i=Math.max(s,i),i=Math.min(i,r.height-s),i},v$=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:o,placeLeftX:r,placeRightX:i,getLeftOverflow:s,getRightOverflow:a,confineHorizontally:l,confineVertically:c,arrowRef:d,arrow:f,direction:p,position:h})=>{let m=p,g=o;h!=="initial"&&(g=c(g),h==="anchor"&&(g=Math.min(g,e.bottom-t.top),g=Math.max(g,e.top-t.top-n.height)));let b,y,v;return m==="left"?(b=r,h!=="initial"&&(y=s(b),y<0&&(v=a(i),(v<=0||-y>v)&&(b=i,m="right")))):(b=i,h!=="initial"&&(v=a(b),v>0&&(y=s(r),(y>=0||-y{let i=n.left-o.left-t+n.width/2;const s=e.current.offsetWidth*1.25;return i=Math.max(s,i),i=Math.min(i,r.width-s),i},w$=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:o,placeTopY:r,placeBottomY:i,getTopOverflow:s,getBottomOverflow:a,confineHorizontally:l,confineVertically:c,arrowRef:d,arrow:f,direction:p,position:h})=>{let m=p==="top"?"top":"bottom",g=o;h!=="initial"&&(g=l(g),h==="anchor"&&(g=Math.min(g,e.right-t.left),g=Math.max(g,e.left-t.left-n.width)));let b,y,v;return m==="top"?(b=r,h!=="initial"&&(y=s(b),y<0&&(v=a(i),(v<=0||-y>v)&&(b=i,m="bottom")))):(b=i,h!=="initial"&&(v=a(b),v>0&&(y=s(r),(y>=0||-y{const{menuRect:c,containerRect:d}=l,f=n==="left"||n==="right";let p=f?o:r,h=f?r:o;if(e){const _=a.current;f?p+=_.offsetWidth:h+=_.offsetHeight}const m=s.left-d.left-c.width-p,g=s.right-d.left+p,b=s.top-d.top-c.height-h,y=s.bottom-d.top+h;let v,x;t==="end"?(v=s.right-d.left-c.width,x=s.bottom-d.top-c.height):t==="center"?(v=s.left-d.left-(c.width-s.width)/2,x=s.top-d.top-(c.height-s.height)/2):(v=s.left-d.left,x=s.top-d.top),v+=p,x+=h;const w={...l,anchorRect:s,placeLeftX:m,placeRightX:g,placeLeftorRightY:x,placeTopY:b,placeBottomY:y,placeToporBottomX:v,arrowRef:a,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return v$(w);case"top":case"bottom":default:return w$(w)}},m1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?u.useLayoutEffect:u.useEffect;function O6(e,t){typeof e=="function"?e(t):e.current=t}const th=(e,t)=>u.useMemo(()=>e?t?n=>{O6(e,n),O6(t,n)}:e:t,[e,t]),A6=-9999,LC=({ariaLabel:e,menuClassName:t,menuStyle:n,arrow:o,arrowProps:r={},anchorPoint:i,anchorRef:s,containerRef:a,containerProps:l,focusProps:c,externalRef:d,parentScrollingRef:f,align:p="start",direction:h="bottom",position:m="auto",overflow:g="visible",setDownOverflow:b,repositionFlag:y,captureFocus:v=!0,state:x,endTransition:w,isDisabled:_,menuItemFocus:E,gap:C=0,shift:k=0,children:L,onClose:N,...A})=>{const[M,z]=u.useState({x:A6,y:A6}),[S,O]=u.useState({}),[R,$]=u.useState(),[D,I]=u.useState(h),[F]=u.useState(p$),[P,H]=u.useReducer(Me=>Me+1,1),{transition:W,boundingBoxRef:U,boundingBoxPadding:j,rootMenuRef:G,rootAnchorRef:Y,scrollNodesRef:B,reposition:q,viewScroll:X,submenuCloseDelay:de}=u.useContext(eh),{submenuCtx:ie,reposSubmenu:fe=y}=u.useContext(qg),ee=u.useRef(null),ve=u.useRef(),ze=u.useRef(),me=u.useRef(!1),{hoverItem:te,dispatch:_e,updateItems:Le}=h$(ee,ve),J=z4(x),ce=id(W,"open"),be=id(W,"close"),we=B.current,vt=Me=>{switch(Me.key){case Xn.HOME:_e(tn.FIRST);break;case Xn.END:_e(tn.LAST);break;case Xn.UP:_e(tn.DECREASE,te);break;case Xn.DOWN:_e(tn.INCREASE,te);break;case Xn.SPACE:Me.target&&Me.target.className.indexOf(Ea)!==-1&&Me.preventDefault();return;default:return}Me.preventDefault(),Me.stopPropagation()},Qt=()=>{x==="closing"&&$(),No(w)},zt=Me=>{Me.stopPropagation(),F.on(de,()=>{_e(tn.RESET),ve.current.focus()})},Vt=Me=>{Me.target===Me.currentTarget&&F.off()},at=u.useCallback(Me=>{var Be;const ht=s?(Be=s.current)==null?void 0:Be.getBoundingClientRect():i?{left:i.x,right:i.x,top:i.y,bottom:i.y,width:0,height:0}:null;if(!ht)return;we.menu||(we.menu=(U?U.current:Om(G.current))||window);const tt=g$(a,ee,we.menu,j);let{arrowX:mt,arrowY:en,x:Nn,y:on,computedDirection:eo}=x$({arrow:o,align:p,direction:h,gap:C,shift:k,position:m,anchorRect:ht,arrowRef:ze,positionHelpers:tt});const{menuRect:rn}=tt,to=rn.height;if(!Me&&g!=="visible"){const{getTopOverflow:wo,getBottomOverflow:Jr}=tt;let no,is;const kr=Jr(on);if(kr>0)no=to-kr,is=kr;else{const ur=wo(on);ur<0&&(no=to+ur,is=0-ur,no>=0&&(on-=ur))}no>=0&&$({height:no,overflowAmt:is})}o&&O({x:mt,y:en}),z({x:Nn,y:on}),I(eo)},[o,p,j,h,C,k,m,g,i,s,a,U,G,we]);m1(()=>{J&&(at(),me.current&&H()),me.current=J},[J,at,fe]),m1(()=>{R&&!b&&(ee.current.scrollTop=0)},[R,b]),m1(()=>Le,[Le]),u.useEffect(()=>{let{menu:Me}=we;if(!J||!Me)return;if(Me=Me.addEventListener?Me:window,!we.anchors){we.anchors=[];let mt=Om(Y&&Y.current);for(;mt&&mt!==Me;)we.anchors.push(mt),mt=Om(mt)}let Be=X;if(we.anchors.length&&Be==="initial"&&(Be="auto"),Be==="initial")return;const ht=()=>{Be==="auto"?Gg(()=>at(!0)):No(N,{reason:sd.SCROLL})},tt=we.anchors.concat(X!=="initial"?Me:[]);return tt.forEach(mt=>mt.addEventListener("scroll",ht)),()=>tt.forEach(mt=>mt.removeEventListener("scroll",ht))},[Y,we,J,N,X,at]);const cn=!!R&&R.overflowAmt>0;u.useEffect(()=>{if(cn||!J||!f)return;const Me=()=>Gg(at),Be=f.current;return Be.addEventListener("scroll",Me),()=>Be.removeEventListener("scroll",Me)},[J,cn,f,at]),u.useEffect(()=>{if(!J||typeof ResizeObserver!="function"||q==="initial")return;const Me=[],Be=new ResizeObserver(mt=>mt.forEach(({target:en})=>{Me.indexOf(en)<0?Me.push(en):mn.flushSync(()=>{at(),H()})})),ht={box:"border-box"};Be.observe(ee.current,ht);const tt=s?.current;return tt&&Be.observe(tt,ht),()=>Be.disconnect()},[J,q,s,at]),u.useEffect(()=>{if(!J){_e(tn.RESET),be||$();return}const{position:Me,alwaysUpdate:Be}=E||{},ht=()=>{Me===Nl.FIRST?_e(tn.FIRST):Me===Nl.LAST?_e(tn.LAST):Me>=-1&&_e(tn.SET_INDEX,void 0,Me)};if(Be)ht();else if(v){const tt=setTimeout(()=>{const mt=ee.current;mt&&!mt.contains(document.activeElement)&&(ve.current.focus(),ht())},ce?170:100);return()=>clearTimeout(tt)}},[J,ce,be,v,E,_e]);const it=u.useMemo(()=>({isParentOpen:J,submenuCtx:F,dispatch:_e,updateItems:Le}),[J,F,_e,Le]);let Pt,un;R&&(b?un=R.overflowAmt:Pt=R.height);const Qn=u.useMemo(()=>({reposSubmenu:P,submenuCtx:F,overflow:g,overflowAmt:un,parentMenuRef:ee,parentDir:D}),[P,F,g,un,D]),Zt=Pt>=0?{maxHeight:Pt,overflow:g}:void 0,dn=u.useMemo(()=>({state:x,align:p,dir:D}),[x,p,D]),vn=u.useMemo(()=>({dir:D}),[D]),Ao=js({block:Ea,element:s$,modifiers:vn,className:r.className}),In=T.jsxs("ul",{role:"menu","aria-label":e,...P4(_),...Vd({onPointerEnter:ie?.off,onPointerMove:zt,onPointerLeave:Vt,onKeyDown:vt,onAnimationEnd:Qt},A),ref:th(d,ee),className:js({block:Ea,modifiers:dn,className:t}),style:{...n,...Zt,margin:0,display:x==="closed"?"none":void 0,position:Am,left:M.x,top:M.y},children:[T.jsx("li",{tabIndex:-1,role:Rp,style:{position:Am,left:0,top:0,display:"block",outline:"none"},ref:ve,...c}),o&&T.jsx("li",{role:Rp,...r,className:Ao,style:{display:"block",position:Am,left:S.x,top:S.y,...r.style},ref:ze}),T.jsx(qg.Provider,{value:Qn,children:T.jsx(B4.Provider,{value:it,children:T.jsx(TC.Provider,{value:te,children:No(L,dn)})})})]});return l?T.jsx(f$,{...l,isOpen:J,children:In}):In},IC=u.forwardRef(function({"aria-label":t,className:n,containerProps:o,initialMounted:r,unmountOnClose:i,transition:s,transitionTimeout:a,boundingBoxRef:l,boundingBoxPadding:c,reposition:d="auto",submenuOpenDelay:f=300,submenuCloseDelay:p=150,viewScroll:h="initial",portal:m,theming:g,onItemClick:b,...y},v){const x=u.useRef(null),w=u.useRef({}),{anchorRef:_,state:E,onClose:C}=y,k=u.useMemo(()=>({initialMounted:r,unmountOnClose:i,transition:s,transitionTimeout:a,boundingBoxRef:l,boundingBoxPadding:c,rootMenuRef:x,rootAnchorRef:_,scrollNodesRef:w,reposition:d,viewScroll:h,submenuOpenDelay:f,submenuCloseDelay:p}),[r,i,s,a,_,l,c,d,h,f,p]),L=u.useMemo(()=>({handleClick(A,M){A.stopPropagation||No(b,A);let z=A.keepOpen;z===void 0&&(z=M&&A.key===Xn.SPACE),z||No(C,{value:A.value,key:A.key,reason:sd.CLICK})},handleClose(A){No(C,{key:A,reason:sd.CLICK})}}),[b,C]);if(!E)return null;const N=T.jsx(eh.Provider,{value:k,children:T.jsx(SC.Provider,{value:L,children:T.jsx(LC,{...y,ariaLabel:t||"Menu",externalRef:v,containerRef:x,containerProps:{className:n,containerRef:x,containerProps:o,theming:g,transition:s,onClose:C}})})});return m===!0&&typeof document<"u"?mn.createPortal(N,document.body):m?m.target?mn.createPortal(N,m.target):m.stablePosition?null:N:N}),Yg=0,Xg=1,Mp=2,Op=3,Ap=4,_$=5,NC=6,E$=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],RC=e=>({_s:e,status:E$[e],isEnter:eAp}),Zg=e=>e?NC:_$,C$=(e,t)=>{switch(e){case Xg:case Yg:return Mp;case Ap:case Op:return Zg(t)}},T$=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],S$=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),D6=(e,t,n,o,r)=>{clearTimeout(o.current);const i=RC(e);t(i),n.current=i,r&&r({current:i})},k$=({enter:e=!0,exit:t=!0,preEnter:n,preExit:o,timeout:r,initialEntered:i,mountOnEnter:s,unmountOnExit:a,onStateChange:l}={})=>{const[c,d]=u.useState(()=>RC(i?Mp:Zg(s))),f=u.useRef(c),p=u.useRef(),[h,m]=T$(r),g=u.useCallback(()=>{const y=C$(f.current._s,a);y&&D6(y,d,f,p,l)},[l,a]),b=u.useCallback(y=>{const v=w=>{switch(D6(w,d,f,p,l),w){case Xg:h>=0&&(p.current=setTimeout(g,h));break;case Ap:m>=0&&(p.current=setTimeout(g,m));break;case Yg:case Op:p.current=S$(v,w);break}},x=f.current.isEnter;typeof y!="boolean"&&(y=!x),y?!x&&v(e?n?Yg:Xg:Mp):x&&v(t?o?Op:Ap:Zg(a))},[g,l,e,t,n,o,h,m,a]);return u.useEffect(()=>()=>clearTimeout(p.current),[]),[c,b,g]},MC=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:o,transitionTimeout:r=500}={})=>{const[{status:i},s,a]=k$({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:r,enter:id(o,"open"),exit:id(o,"close")});return[{state:u$[i],endTransition:a},s]},OC=e=>{const[t,n]=MC(e),[o,r]=u.useState(),i=(s,a)=>{r({position:s,alwaysUpdate:a}),n(!0)};return[{menuItemFocus:o,...t},n,i]},L$=(e,t)=>{const[n]=u.useState({});return{onMouseDown:()=>{n.v=e&&e!=="closed"},onClick:o=>n.v?n.v=!1:t(!0,o)}},AC=(e,t)=>{const n=u.useRef(t);u.useEffect(()=>{n.current!==t&&No(e,{open:t}),n.current=t},[e,t])},I$=u.forwardRef(function({"aria-label":t,captureFocus:n,initialOpen:o,menuButton:r,instanceRef:i,onMenuChange:s,...a},l){const[c,d,f]=OC(a),{state:p}=c,h=z4(p),m=u.useRef(null),g=L$(p,(_,E)=>f(E.detail?void 0:Nl.FIRST)),b=u.useCallback(_=>{d(!1),_.key&&m.current.focus()},[d]),y=_=>{switch(_.key){case Xn.UP:f(Nl.LAST);break;case Xn.DOWN:f(Nl.FIRST);break;default:return}_.preventDefault()},v=No(r,{open:h});if(!v||!v.type)throw new Error("Menu requires a menuButton prop.");const x={ref:th(v.ref,m),...Vd({onKeyDown:y,...g},v.props)};t$(v.type)==="MenuButton"&&(x.isOpen=h);const w=u.cloneElement(v,x);return AC(s,h),u.useImperativeHandle(i,()=>({openMenu:f,closeMenu:()=>d(!1)})),T.jsxs(u.Fragment,{children:[w,T.jsx(IC,{...a,...c,"aria-label":t||(typeof v.props.children=="string"?v.props.children:"Menu"),anchorRef:m,ref:l,onClose:b})]})}),DC=(e,t)=>{const n=u.memo(t),o=u.forwardRef((r,i)=>{const s=u.useRef(null);return T.jsx(n,{...r,itemRef:s,externalRef:i,isHovering:u.useContext(TC)===s.current})});return o.displayName=`WithHovering(${e})`,o},zC=(e,t,n)=>{m1(()=>{if(e)return;const o=t.current;return n(o,!0),()=>{n(o)}},[e,t,n])},N$=DC("SubMenu",function({"aria-label":t,className:n,disabled:o,direction:r,label:i,openTrigger:s,onMenuChange:a,isHovering:l,instanceRef:c,itemRef:d,captureFocus:f,repositionFlag:p,itemProps:h={},...m}){const g=u.useContext(eh),{rootMenuRef:b,submenuOpenDelay:y,submenuCloseDelay:v}=g,{parentMenuRef:x,parentDir:w,overflow:_}=u.useContext(qg),{isParentOpen:E,submenuCtx:C,dispatch:k,updateItems:L}=u.useContext(B4),N=_!=="visible",[A,M,z]=OC(g),{state:S}=A,O=!!o,R=z4(S),$=u.useRef(null),[D]=u.useState({v:0}),I=()=>{C.off(),D.v&&(clearTimeout(D.v),D.v=0)},F=(...fe)=>{I(),P(),!O&&z(...fe)},P=()=>!l&&!O&&k(tn.SET,d.current),H=fe=>{P(),s||(D.v=setTimeout(()=>Gg(F),Math.max(fe,0)))},W=fe=>{O||(fe.stopPropagation(),!(D.v||R)&&C.on(v,()=>H(y-v),()=>H(y)))},U=()=>{I(),R||k(tn.UNSET,d.current)},j=fe=>{if(l)switch(fe.key){case Xn.ENTER:fe.preventDefault();case Xn.SPACE:case Xn.RIGHT:s!=="none"&&F(Nl.FIRST)}},G=fe=>{let ee=!1;switch(fe.key){case Xn.LEFT:R&&(d.current.focus(),M(!1),ee=!0);break;case Xn.RIGHT:R||(ee=!0);break}ee&&(fe.preventDefault(),fe.stopPropagation())};zC(O,d,L),AC(a,R),u.useEffect(()=>C.toggle(R),[C,R]),u.useEffect(()=>()=>clearTimeout(D.v),[D]),u.useEffect(()=>{l&&E?d.current.focus():M(!1)},[l,E,M,d]),u.useImperativeHandle(c,()=>({openMenu:(...fe)=>{E&&F(...fe)},closeMenu:()=>{R&&(d.current.focus(),M(!1))}}));const Y=u.useMemo(()=>({open:R,hover:l,disabled:O,submenu:!0}),[R,l,O]),{ref:B,className:q,...X}=h,de=Vd({onPointerEnter:C.off,onPointerMove:W,onPointerLeave:U,onKeyDown:j,onClick:()=>s!=="none"&&F()},X),ie=()=>{const fe=T.jsx(LC,{...m,...A,ariaLabel:t||(typeof i=="string"?i:"Submenu"),anchorRef:d,containerRef:N?b:$,direction:r||(w==="right"||w==="left"?w:"right"),parentScrollingRef:N&&x,isDisabled:O}),ee=b.current;return N&&ee?mn.createPortal(fe,ee):fe};return T.jsxs("li",{className:js({block:Ea,element:l$,className:n}),style:{position:"relative"},role:Rp,ref:$,onKeyDown:G,children:[T.jsx("div",{role:kC,"aria-haspopup":!0,"aria-expanded":R,...P4(O,l),...de,ref:th(B,d),className:js({block:Ea,element:CC,modifiers:Y,className:q}),children:u.useMemo(()=>No(i,Y),[i,Y])}),S&&ie()]})}),R$=(e,t,n,o)=>{const{submenuCloseDelay:r}=u.useContext(eh),{isParentOpen:i,submenuCtx:s,dispatch:a,updateItems:l}=u.useContext(B4),c=()=>{!n&&!o&&a(tn.SET,e.current)},d=()=>{!o&&a(tn.UNSET,e.current)},f=m=>{n&&!m.currentTarget.contains(m.relatedTarget)&&d()},p=m=>{o||(m.stopPropagation(),s.on(r,c,c))},h=(m,g)=>{s.off(),!g&&d()};return zC(o,e,l),u.useEffect(()=>{n&&i&&t.current&&t.current.focus()},[t,n,i]),{setHover:c,onBlur:f,onPointerMove:p,onPointerLeave:h}},M$=DC("MenuItem",function({className:t,value:n,href:o,type:r,checked:i,disabled:s,children:a,onClick:l,isHovering:c,itemRef:d,externalRef:f,...p}){const h=!!s,{setHover:m,...g}=R$(d,d,c,h),b=u.useContext(SC),y=u.useContext(c$),v=r==="radio",x=r==="checkbox",w=!!o&&!h&&!v&&!x,_=v?y.value===n:x?!!i:!1,E=A=>{if(h){A.stopPropagation(),A.preventDefault();return}const M={value:n,syntheticEvent:A};A.key!==void 0&&(M.key=A.key),x&&(M.checked=!_),v&&(M.name=y.name),No(l,M),v&&No(y.onRadioChange,M),b.handleClick(M,x||v)},C=A=>{if(c)switch(A.key){case Xn.ENTER:A.preventDefault();case Xn.SPACE:w?d.current.click():E(A)}},k=u.useMemo(()=>({type:r,disabled:h,hover:c,checked:_,anchor:w}),[r,h,c,_,w]),L=Vd({...g,onPointerDown:m,onKeyDown:C,onClick:E},p),N={role:v?"menuitemradio":x?"menuitemcheckbox":kC,"aria-checked":v||x?_:void 0,...P4(h,c),...L,ref:th(f,d),className:js({block:Ea,element:CC,modifiers:k,className:t}),children:u.useMemo(()=>No(a,k),[a,k])};return w?T.jsx("li",{role:Rp,children:T.jsx("a",{href:o,...N})}):T.jsx("li",{...N})}),O$=u.memo(u.forwardRef(function({className:t,...n},o){return T.jsx("li",{role:"separator",...n,ref:o,className:js({block:Ea,element:a$,className:t})})}));var gc=(e=>(e[e.Start=0]="Start",e[e.End=1]="End",e))(gc||{});const A$="_disabled-menu_1j4o5_3",D$="_disabled-button_1j4o5_7",z$="_menu-icon_1j4o5_11",P$="_menu-label_1j4o5_15",B$="_items-container_1j4o5_19",F$="_item-container_1j4o5_23",$$="_item-icon_1j4o5_28",H$="_item-label_1j4o5_35",V$="_item-hotkey_1j4o5_39",Ar={"disabled-menu":"_disabled-menu_1j4o5_3",disabledMenu:A$,"disabled-button":"_disabled-button_1j4o5_7",disabledButton:D$,"menu-icon":"_menu-icon_1j4o5_11",menuIcon:z$,"menu-label":"_menu-label_1j4o5_15",menuLabel:P$,"items-container":"_items-container_1j4o5_19",itemsContainer:B$,"item-container":"_item-container_1j4o5_23",itemContainer:F$,"item-icon":"_item-icon_1j4o5_28",itemIcon:$$,"item-label":"_item-label_1j4o5_35",itemLabel:H$,"item-hotkey":"_item-hotkey_1j4o5_39",itemHotkey:V$},os=({align:e,buttonClass:t,children:n,disabled:o,disabledButtonClass:r,handleClose:i,handleOpen:s,icon:a,label:l,openButtonClass:c,tooltip:d})=>{const[f,p]=u.useState(!1),h=u.useRef(null),m=u.useRef(null),g=e===gc.End?"end":"start",b=u.useCallback(w=>{o||(p(w.open),w.open?s?.():i?.())},[o,i,s]),y=u.useCallback(w=>{f||m.current?.blur(),w.preventDefault(),w.stopPropagation()},[f]),v=u.useCallback(()=>{const w=a==null?null:T.jsx("span",{className:Ar.menuIcon,children:a}),_=l==null?null:T.jsx("span",{className:Ar.menuLabel,children:l}),E=yn(t,[f,c],[o,Ar.disabledButton],[o,r]);return T.jsxs(d$,{...Tn(d),className:E,onClick:y,ref:m,children:[w,_]})},[t,o,r,y,a,l,f,c,d]),x=u.useCallback(w=>w.state!=="closed"&&n&&T.jsx(mc,{show:!0,className:Ar.itemsContainer,children:n}),[n]);return u.useLayoutEffect(()=>{h.current?.closeMenu(),p(!1)},[o]),T.jsx(I$,{instanceRef:h,children:x,menuButton:v(),onMenuChange:b,className:o===!0?Ar.disabledMenu:void 0,align:g,gap:1})},PC=new nt,BC=new nt;function Wd(...e){const t=e.filter(n=>n!==!1&&n!=null);if(t.length!==0)return n=>{if(n.ctrlKey||n.metaKey)return;const o={x:n.clientX,y:n.clientY};PC.broadcast({items:t,point:o})}}function W$(){BC.broadcast()}addEventListener("contextmenu",e=>{!(e.ctrlKey||e.metaKey)&&!t()&&e.preventDefault();function t(){return n()&&e.target===document.activeElement}function n(){return document.activeElement?.attributes.getNamedItem("contenteditable")?.value?.toLowerCase()==="true"}});var pe=(e=>(e.CreateProject="Create Project",e.OpenProject="Open Project",e.OpenSettings="Open Settings",e.Submit="Submit",e.Cancel="Cancel",e.Delete="Delete",e.SaveAll="Save All",e.Duplicate="Duplicate",e.Undo="Undo",e.Redo="Redo",e.InsertLine="Insert Line",e.IndentLine="Indent Line",e.UnIndentLine="Un-Indent Line",e.GotoLine="Goto Line",e.UnassignParameter="Unassign Parameter",e.MixParameter="Mix Parameter",e.InlineCommand="Inline Command",e.InsertExpression="Insert Expression",e.ExitBeforeExpression="Exit Before Expression",e.ExitAfterExpression="Exit After Expression",e.InsertTextId="Insert Text ID",e.ExitBeforeTextId="Exit Before Text ID",e.ExitAfterTextId="Exit After Text ID",e.CreateScript="Create Script",e.EditScript="Edit Script",e.CreateGroup="Create Group",e.EnterGroup="Enter Group",e.ExitGroup="Exit Group",e.ResetZoom="Reset Zoom",e.FitView="Fit view",e))(pe||{});const F4=[...Ef("General",[{id:"Create Project",keys:"Ctrl+N",summary:"Create a new project."},{id:"Open Project",keys:"Ctrl+O",summary:"Open an existing project."},{id:"Open Settings",keys:"Ctrl+Alt+S",summary:"Open or focus settings tab."}]),...Ef("Editing",[{id:"Submit",keys:"Enter",summary:"Confirm a dialogue or submit a form."},{id:"Cancel",keys:"Escape",summary:"Cancel a dialogue or discard a form."},{id:"Delete",keys:"Delete",summary:"Delete selected asset."},{id:"Save All",keys:"Ctrl+S",summary:"Save all modified assets."},{id:"Duplicate",keys:"Ctrl+D",summary:"Duplicate selected asset."},{id:"Undo",keys:"Ctrl+Z",summary:"Undo last action."},{id:"Redo",keys:"Ctrl+Y",summary:"Redo last action."}]),...Ef("Story Graph",[{id:"Create Script",keys:"Ctrl+Space",summary:"Create new scenario script asset."},{id:"Edit Script",keys:"Ctrl+E",summary:"Edit selected scenario script asset."},{id:"Create Group",keys:"Ctrl+G",summary:"Create new story graph group."},{id:"Enter Group",keys:"Enter",summary:"Enter selected story graph group."},{id:"Exit Group",keys:"Escape",summary:"When inside a story graph group, exit it."},{id:"Reset Zoom",keys:"Ctrl+R",summary:"Set story graph zoom level to default value."},{id:"Fit view",keys:"Ctrl+F",summary:"Move and zoom story graph camera to encompass all the existing nodes."}]),...Ef("Scenario Editor",[{id:"Insert Line",keys:"Ctrl+Space",summary:"Insert a new line in scenario editor."},{id:"Indent Line",keys:"Ctrl+ArrowRight",summary:"Indent selected line in scenario editor."},{id:"Un-Indent Line",keys:"Ctrl+ArrowLeft",summary:"Un-Indent selected line in scenario editor."},{id:"Goto Line",keys:"Ctrl+G",summary:"Attempt to play inspected line in Unity editor."},{id:"Unassign Parameter",keys:"Backspace",summary:"Remove inspected command parameter."},{id:"Mix Parameter",keys:"Ctrl+Shift+{",summary:"Convert value of the inspected command parameter to mixed, which allows inserting script expressions and text identifiers."},{id:"Inline Command",keys:"Ctrl+[",summary:"Insert inlined command to the inspected generic text."},{id:"Insert Expression",keys:"{",summary:"When editing mixed value (dynamic parameter value or generic text), inserts new expression at the cursor position. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."},{id:"Exit Before Expression",keys:"{",summary:"When editing script expression, moves the cursor outside the expression before it starts. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."},{id:"Exit After Expression",keys:"}",summary:"When editing script expression, moves the cursor outside the expressions after it ends. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."},{id:"Insert Text ID",keys:"|",summary:"When editing mixed value (dynamic parameter value or generic text), inserts new text identifier at the cursor position. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."},{id:"Exit Before Text ID",keys:"#",summary:"When editing text identifier, moves the cursor outside the identifier before it starts. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."},{id:"Exit After Text ID",keys:"|",summary:"When editing text identifier, moves the cursor outside the identifier after it ends. Be aware, that this is not a hotkey per se, but a character, that when typed will trigger the action."}])];function Ef(e,t){return t.map(n=>({...n,group:e}))}const j$="_modal_y2mvn_1",U$="_value-container_y2mvn_5",G$="_value_y2mvn_5",q$="_readonly-value_y2mvn_29",Y$="_unassigned-value_y2mvn_38",X$="_labeled-container_y2mvn_46",Z$="_label_y2mvn_46",J$="_label-with-tooltip_y2mvn_63",K$="_multiline_y2mvn_81",Q$="_text-editor_y2mvn_89",eH="_toggle_y2mvn_116",tH="_named_y2mvn_124",nH="_named-name_y2mvn_128",oH="_named-value_y2mvn_134",rH="_mixed_y2mvn_139",iH="_expression_y2mvn_143",sH="_text-id_y2mvn_169",aH="_vector_y2mvn_192",lH="_vector-component_y2mvn_199",cH="_vector-component-label_y2mvn_207",ct={modal:j$,"value-container":"_value-container_y2mvn_5",valueContainer:U$,value:G$,"readonly-value":"_readonly-value_y2mvn_29",readonlyValue:q$,"unassigned-value":"_unassigned-value_y2mvn_38",unassignedValue:Y$,"labeled-container":"_labeled-container_y2mvn_46",labeledContainer:X$,label:Z$,"label-with-tooltip":"_label-with-tooltip_y2mvn_63",labelWithTooltip:J$,multiline:K$,"text-editor":"_text-editor_y2mvn_89",textEditor:Q$,toggle:eH,named:tH,"named-name":"_named-name_y2mvn_128",namedName:nH,"named-value":"_named-value_y2mvn_134",namedValue:oH,mixed:rH,expression:iH,"text-id":"_text-id_y2mvn_169",textId:sH,vector:aH,"vector-component":"_vector-component_y2mvn_199",vectorComponent:lH,"vector-component-label":"_vector-component-label_y2mvn_207",vectorComponentLabel:cH},ja=({children:e,containerClass:t,label:n,labelAttrs:o,labelClass:r,readonly:i,tooltip:s,value:a})=>{const[l,c]=u.useState(0),d=u.useRef(null),f=u.useRef(null),p=`${n?ct.labeledContainer:ct.container} ${t??""}`,h=Nh([pe.Cancel,v=>document.activeElement?.blur()]),m=u.useMemo(()=>{if(!n)return null;const v=`${ct.label} ${s?ct.labelWithTooltip:""} ${r??""}`;return T.jsx("span",{className:v,...Tn(s,{doc:!0}),...o,children:n})},[n,o,r,s]),g=u.useMemo(()=>{let v=ct.valueContainer;return i===!0&&(v+=` ${ct.readonlyValue}`),!i&&a==null&&(v+=` ${ct.unassignedValue}`),T.jsx("span",{className:v,ref:f,children:e})},[e,i,a]),b=u.useCallback(v=>{v.target===d.current&&(f.current?.querySelector(`[tabindex]:not(.${ct.readonlyValue} *)`)?.focus(),c(-1))},[]),y=u.useCallback(v=>c(0),[]);return T.jsxs("span",{className:p,ref:d,...Tn(n?void 0:s),onFocus:b,onBlur:y,onKeyDown:h,tabIndex:l,children:[m,g]})};var yc={};var FC=u;function He(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n