Plugin Directory

Changeset 3798170


Ignore:
Timestamp:
11/12/2026 11:28:48 AM (less than one hour ago)
Author:
nurwp
Message:

Update to version 1.0.12 from GitHub

Location:
versatile-toolkit
Files:
4 added
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • versatile-toolkit/tags/1.0.12/assets/dist/css/style.min.css

    r3534655 r3798170  
    1 *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
     1:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:where(#versatile-root,#vt-quickact-container,.vt-ui) ::backdrop,:where(#versatile-root,#vt-quickact-container,.vt-ui)::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
    22! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
    3 */*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:is(#versatile-root,#vt-quickact-container,body) .vt-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-pointer-events-none{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .vt-fixed{position:fixed}:is(#versatile-root,#vt-quickact-container,body) .vt-absolute{position:absolute}:is(#versatile-root,#vt-quickact-container,body) .vt-relative{position:relative}:is(#versatile-root,#vt-quickact-container,body) .vt-sticky{position:sticky}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-0{inset:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-x-0{left:0;right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-y-0{bottom:0;top:0}:is(#versatile-root,#vt-quickact-container,body) .vt--top-\[15px\]{top:-15px}:is(#versatile-root,#vt-quickact-container,body) .vt-bottom-0{bottom:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-0{left:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-2{left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-3{left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-\[50\%\]{left:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-right-0{right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-right-1{right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-2{right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-4{right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-0{top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-top-1\/2{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-top-2{top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-4{top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-\[50\%\]{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-z-10{z-index:10}:is(#versatile-root,#vt-quickact-container,body) .vt-z-50{z-index:50}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[1000000\]{z-index:1000000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[100000\]{z-index:100000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[999999\]{z-index:999999}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[99999\]{z-index:99999}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-1{margin-left:.25rem;margin-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-2{margin-left:.5rem;margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-auto{margin-left:auto;margin-right:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-my-2{margin-bottom:.5rem;margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-my-8{margin-bottom:2rem;margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-1{margin-bottom:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-2{margin-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-3{margin-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-4{margin-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-1{margin-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-2{margin-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-auto{margin-left:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-mr-2{margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-1{margin-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-10{margin-top:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-2{margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-3{margin-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-4{margin-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-5{margin-top:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-6{margin-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-8{margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(#versatile-root,#vt-quickact-container,body) .vt-block{display:block}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-block{display:inline-block}:is(#versatile-root,#vt-quickact-container,body) .vt-flex{display:flex}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-flex{display:inline-flex}:is(#versatile-root,#vt-quickact-container,body) .vt-grid{display:grid}:is(#versatile-root,#vt-quickact-container,body) .vt-hidden{display:none}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-\[4\/3\]{aspect-ratio:4/3}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-square{aspect-ratio:1/1}:is(#versatile-root,#vt-quickact-container,body) .vt-h-10{height:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-12{height:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-16{height:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-2\.5{height:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-3{height:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-32{height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-4{height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5{height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5\/6{height:83.333333%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-6{height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-8{height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-9{height:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[100px\]{height:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[1500px\]{height:1500px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[25px\]{height:25px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[45px\]{height:45px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-auto{height:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-h-full{height:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-min{height:-moz-min-content;height:min-content}:is(#versatile-root,#vt-quickact-container,body) .vt-h-px{height:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-32{max-height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-60{max-height:15rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[300px\]{max-height:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[70vh\]{max-height:70vh}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[42px\]{min-height:42px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[60px\]{min-height:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[unset\]{min-height:unset}:is(#versatile-root,#vt-quickact-container,body) .vt-w-1\/2{width:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-10{width:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11{width:2.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11\/12{width:91.666667%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-12{width:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-16{width:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-2\.5{width:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-20{width:5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-24{width:6rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3{width:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3\/4{width:75%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-32{width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-36{width:9rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-4{width:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-40{width:10rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-48{width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-5{width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-6{width:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-64{width:16rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-72{width:18rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-8{width:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-9{width:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[100px\]{width:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[200px\]{width:200px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[20rem\]{width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[300px\]{width:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[60px\]{width:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[80\%\]{width:80%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[900px\]{width:900px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-full{width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-max{width:-moz-max-content;width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[11rem\]{min-width:11rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[12rem\]{min-width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[8rem\]{min-width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-full{min-width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-2xl{max-width:42rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-4xl{max-width:56rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-6xl{max-width:72rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[20rem\]{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[800px\]{max-width:800px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-lg{max-width:32rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-max{max-width:-moz-max-content;max-width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-md{max-width:28rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-xs{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-1{flex:1 1 0%}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-caption-bottom{caption-side:bottom}:is(#versatile-root,#vt-quickact-container,body) .-vt-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-x-\[-50\%\]{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-y-\[-50\%\]{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-pulse{50%{opacity:.5}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-pulse{animation:vt-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes vt-spin{to{transform:rotate(1turn)}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-spin{animation:vt-spin 1s linear infinite}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-default{cursor:default}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-pointer{cursor:pointer}:is(#versatile-root,#vt-quickact-container,body) .vt-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-\[repeat\(auto-fill\,minmax\(300px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col{flex-direction:column}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col-reverse{flex-direction:column-reverse}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-wrap{flex-wrap:wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .\!vt-justify-start{justify-content:flex-start!important}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-start{justify-content:flex-start}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-center{justify-content:center}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-1{gap:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-10{gap:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-2{gap:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-3{gap:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-4{gap:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-5{gap:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-auto{overflow:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-hidden{overflow:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-auto{overflow-x:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-y-auto{overflow-y:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-hidden{overflow-x:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-scroll-auto{scroll-behavior:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-nowrap{white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-pre-wrap{white-space:pre-wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-break-words{overflow-wrap:break-word}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded{border-radius:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-2xl{border-radius:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-full{border-radius:9999px}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-md{border-radius:calc(var(--radius) - 2px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-sm{border-radius:calc(var(--radius) - 4px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-xl{border-radius:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-border{border-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-0{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .vt-border-2{border-width:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-b{border-bottom-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-l{border-left-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-r{border-right-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-t{border-top-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-700{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-input{border-color:hsl(var(--input))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-primary{border-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-transparent{border-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#c7c6c6\]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#e5e5e5\]{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background{background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background\/80{background-color:hsl(var(--background)/.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black\/80{background-color:rgba(0,0,0,.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-border{background-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-card{background-color:hsl(var(--card))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-destructive{background-color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted\/50{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-popover{background-color:hsl(var(--popover))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary\/10{background-color:hsl(var(--primary)/.1)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-secondary{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-transparent{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-opacity-85{--tw-bg-opacity:0.85}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}:is(#versatile-root,#vt-quickact-container,body) .vt-from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,246,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(#versatile-root,#vt-quickact-container,body) .vt-to-indigo-100{--tw-gradient-to:#e0e7ff var(--tw-gradient-to-position)}:is(#versatile-root,#vt-quickact-container,body) .vt-fill-current{fill:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-object-cover{-o-object-fit:cover;object-fit:cover}:is(#versatile-root,#vt-quickact-container,body) .vt-p-0{padding:0}:is(#versatile-root,#vt-quickact-container,body) .vt-p-1{padding:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-2{padding:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-3{padding:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-4{padding:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-6{padding:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-7{padding:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .\!vt-px-\[1px\]{padding-left:1px!important;padding-right:1px!important}:is(#versatile-root,#vt-quickact-container,body) .\!vt-py-\[1px\]{padding-bottom:1px!important;padding-top:1px!important}:is(#versatile-root,#vt-quickact-container,body) .vt-px-1{padding-left:.25rem;padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2{padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2\.5{padding-left:.625rem;padding-right:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-3{padding-left:.75rem;padding-right:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-4{padding-left:1rem;padding-right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-8{padding-left:2rem;padding-right:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-0\.5{padding-bottom:.125rem;padding-top:.125rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1{padding-bottom:.25rem;padding-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1\.5{padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-12{padding-bottom:3rem;padding-top:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-2{padding-bottom:.5rem;padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-3{padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-4{padding-bottom:1rem;padding-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-6{padding-bottom:1.5rem;padding-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-2{padding-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-3{padding-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-4{padding-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-5{padding-bottom:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-1{padding-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-10{padding-left:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-2{padding-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-3{padding-left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-7{padding-left:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-8{padding-left:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-1{padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-2{padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-7{padding-right:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-0{padding-top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-2{padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-3{padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-left{text-align:left}:is(#versatile-root,#vt-quickact-container,body) .vt-text-center{text-align:center}:is(#versatile-root,#vt-quickact-container,body) .vt-align-middle{vertical-align:middle}:is(#versatile-root,#vt-quickact-container,body) .vt-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:is(#versatile-root,#vt-quickact-container,body) .vt-text-2xl{font-size:1.5rem;line-height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-\[0\.8rem\]{font-size:.8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-base{font-size:1rem;line-height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-lg{font-size:1.125rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-sm{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xl{font-size:1.25rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xs{font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-font-bold{font-weight:700}:is(#versatile-root,#vt-quickact-container,body) .vt-font-medium{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .vt-font-normal{font-weight:400}:is(#versatile-root,#vt-quickact-container,body) .vt-font-semibold{font-weight:600}:is(#versatile-root,#vt-quickact-container,body) .vt-leading-none{line-height:1}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-tight{letter-spacing:-.025em}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-widest{letter-spacing:.1em}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-card-foreground{color:hsl(var(--card-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-current{color:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive-foreground{color:hsl(var(--destructive-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-foreground{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-muted-foreground{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-popover-foreground{color:hsl(var(--popover-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary{color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary-foreground{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary{color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary-foreground{color:hsl(var(--secondary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-underline-offset-4{text-underline-offset:4px}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-0{opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-100{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-20{opacity:.2}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-25{opacity:.25}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-50{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-70{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-75{opacity:.75}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-outline-none{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{transition-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{transition-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-in{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .vt-fade-in-0{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-zoom-in-95{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{animation-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{animation-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{animation-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{box-shadow:unset;color:unset;outline:unset}a:active,a:focus,a:hover{color:unset}#versatile-root{margin-right:20px}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-border-0::file-selector-button{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-bg-transparent::file-selector-button{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-font-medium::file-selector-button{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-foreground::file-selector-button{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-absolute:after{content:var(--tw-content);position:absolute}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-left-\[2px\]:after{content:var(--tw-content);left:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-top-\[2px\]:after{content:var(--tw-content);top:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-h-5:after{content:var(--tw-content);height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-w-5:after{content:var(--tw-content);width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-rounded-full:after{border-radius:9999px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border:after{border-width:1px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-gray-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-slate-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-bg-white:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-accent:hover{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-200\/80:hover{background-color:rgba(187,247,208,.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-50\/60:hover{background-color:rgba(248,250,252,.6)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-900:hover{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-destructive:hover{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-underline:hover{text-decoration-line:underline}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-opacity-100:hover{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-1:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-gray-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-bg-accent:focus{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .focus\:\!vt-text-white:focus{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-offset-2:focus{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-blue-300:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-pointer-events-none:disabled{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-cursor-not-allowed:disabled{cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-bg-slate-300:disabled{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-50:disabled{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-70:disabled{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-border-border){border-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-muted){background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-primary){background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-bg-background){background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-muted-foreground){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-primary-foreground){color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-text-foreground){color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-shadow-lg){--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:vt-bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-translate-x-full):after{content:var(--tw-content);--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-border-white):after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-outline-none){outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-4){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-blue-300){--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-cursor-not-allowed){cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-opacity-70){opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-pointer-events-none[data-disabled=true]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-pointer-events-none[data-disabled]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-translate-x-5[data-state=checked]{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-translate-x-0[data-state=unchecked]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-accordion-up[data-state=closed]{animation:vt-accordion-up .2s ease-out}@keyframes vt-accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-accordion-down[data-state=open]{animation:vt-accordion-down .2s ease-out}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-bg-accent[data-selected=true]{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-blue-600[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=selected\]\:vt-bg-muted[data-state=selected]{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-bg-\[\#c7c6c6\][data-state=unchecked]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-opacity-50[data-disabled=true]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-opacity-50[data-disabled]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-fade-out-0[data-state=closed]{--tw-exit-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-fade-in-0[data-state=open]{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-zoom-in-95[data-state=open]{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=bottom\]\:vt-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=left\]\:vt-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=right\]\:vt-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=top\]\:vt-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{animation-duration:.5s}@media (min-width:640px){:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[425px\]{max-width:425px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[540px\]{max-width:540px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) :is(.sm\:vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-text-left{text-align:left}}@media (min-width:768px){:is(#versatile-root,#vt-quickact-container,body) .md\:vt-text-sm{font-size:.875rem;line-height:1.25rem}}:is(#versatile-root,#vt-quickact-container,body) .\[\&\:has\(\[role\=checkbox\]\)\]\:vt-pr-0:has([role=checkbox]){padding-right:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>\[role\=checkbox\]\]\:vt-translate-y-\[2px\]>[role=checkbox]){--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>tr\]\:last\:vt-border-b-0:last-child>tr){border-bottom-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-py-1\.5 [cmdk-group-heading]){padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-font-medium [cmdk-group-heading]){font-weight:500}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:vt-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\]\:vt-px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-h-5 [cmdk-input-wrapper] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-w-5 [cmdk-input-wrapper] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input\]\]\:vt-h-12 [cmdk-input]){height:3rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-py-3 [cmdk-item]){padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-h-5 [cmdk-item] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-w-5 [cmdk-item] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-pointer-events-none svg){pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-size-4 svg){height:1rem;width:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-shrink-0 svg){flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\:last-child\]\:vt-border-0 tr:last-child){border-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\]\:vt-border-b tr){border-bottom-width:1px}
     3*/:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{border:0 solid #e5e7eb;box-sizing:border-box}:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{--tw-content:""}:where(#versatile-root,.vt-ui){line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}#versatile-root{line-height:inherit;margin:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) hr{border-top-width:1px;color:inherit;height:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(#versatile-root,#vt-quickact-container,.vt-ui) h1,:where(#versatile-root,#vt-quickact-container,.vt-ui) h2,:where(#versatile-root,#vt-quickact-container,.vt-ui) h3,:where(#versatile-root,#vt-quickact-container,.vt-ui) h4,:where(#versatile-root,#vt-quickact-container,.vt-ui) h5,:where(#versatile-root,#vt-quickact-container,.vt-ui) h6{font-size:inherit;font-weight:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) a{color:inherit;text-decoration:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) b,:where(#versatile-root,#vt-quickact-container,.vt-ui) strong{font-weight:bolder}:where(#versatile-root,#vt-quickact-container,.vt-ui) code,:where(#versatile-root,#vt-quickact-container,.vt-ui) kbd,:where(#versatile-root,#vt-quickact-container,.vt-ui) pre,:where(#versatile-root,#vt-quickact-container,.vt-ui) samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}:where(#versatile-root,#vt-quickact-container,.vt-ui) small{font-size:80%}:where(#versatile-root,#vt-quickact-container,.vt-ui) sub,:where(#versatile-root,#vt-quickact-container,.vt-ui) sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:where(#versatile-root,#vt-quickact-container,.vt-ui) sub{bottom:-.25em}:where(#versatile-root,#vt-quickact-container,.vt-ui) sup{top:-.5em}:where(#versatile-root,#vt-quickact-container,.vt-ui) table{border-collapse:collapse;border-color:inherit;text-indent:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) input,:where(#versatile-root,#vt-quickact-container,.vt-ui) optgroup,:where(#versatile-root,#vt-quickact-container,.vt-ui) select,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) select{text-transform:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=button]),:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=reset]),:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) :-moz-focusring{outline:auto}:where(#versatile-root,#vt-quickact-container,.vt-ui) :-moz-ui-invalid{box-shadow:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) progress{vertical-align:baseline}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-inner-spin-button,:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-outer-spin-button{height:auto}:where(#versatile-root,#vt-quickact-container,.vt-ui) [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-search-decoration{-webkit-appearance:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) summary{display:list-item}:where(#versatile-root,#vt-quickact-container,.vt-ui) blockquote,:where(#versatile-root,#vt-quickact-container,.vt-ui) dd,:where(#versatile-root,#vt-quickact-container,.vt-ui) dl,:where(#versatile-root,#vt-quickact-container,.vt-ui) figure,:where(#versatile-root,#vt-quickact-container,.vt-ui) h1,:where(#versatile-root,#vt-quickact-container,.vt-ui) h2,:where(#versatile-root,#vt-quickact-container,.vt-ui) h3,:where(#versatile-root,#vt-quickact-container,.vt-ui) h4,:where(#versatile-root,#vt-quickact-container,.vt-ui) h5,:where(#versatile-root,#vt-quickact-container,.vt-ui) h6,:where(#versatile-root,#vt-quickact-container,.vt-ui) hr,:where(#versatile-root,#vt-quickact-container,.vt-ui) p,:where(#versatile-root,#vt-quickact-container,.vt-ui) pre{margin:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) fieldset{margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) legend{padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) menu,:where(#versatile-root,#vt-quickact-container,.vt-ui) ol,:where(#versatile-root,#vt-quickact-container,.vt-ui) ul{list-style:none;margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) dialog{padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea{resize:vertical}:where(#versatile-root,#vt-quickact-container,.vt-ui) input::-moz-placeholder,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea::-moz-placeholder{color:#9ca3af;opacity:1}:where(#versatile-root,#vt-quickact-container,.vt-ui) input::placeholder,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea::placeholder{color:#9ca3af;opacity:1}:where(#versatile-root,#vt-quickact-container,.vt-ui) [role=button],:where(#versatile-root,#vt-quickact-container,.vt-ui) button{cursor:pointer}:where(#versatile-root,#vt-quickact-container,.vt-ui) :disabled{cursor:default}:where(#versatile-root,#vt-quickact-container,.vt-ui) audio,:where(#versatile-root,#vt-quickact-container,.vt-ui) canvas,:where(#versatile-root,#vt-quickact-container,.vt-ui) embed,:where(#versatile-root,#vt-quickact-container,.vt-ui) iframe,:where(#versatile-root,#vt-quickact-container,.vt-ui) img,:where(#versatile-root,#vt-quickact-container,.vt-ui) object,:where(#versatile-root,#vt-quickact-container,.vt-ui) svg,:where(#versatile-root,#vt-quickact-container,.vt-ui) video{display:block;vertical-align:middle}:where(#versatile-root,#vt-quickact-container,.vt-ui) img,:where(#versatile-root,#vt-quickact-container,.vt-ui) video{height:auto;max-width:100%}:where(#versatile-root,#vt-quickact-container,.vt-ui) [hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}:is(#versatile-root,#vt-quickact-container,body) .vt-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-pointer-events-none{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .vt-fixed{position:fixed}:is(#versatile-root,#vt-quickact-container,body) .vt-absolute{position:absolute}:is(#versatile-root,#vt-quickact-container,body) .vt-relative{position:relative}:is(#versatile-root,#vt-quickact-container,body) .vt-sticky{position:sticky}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-0{inset:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-x-0{left:0;right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-y-0{bottom:0;top:0}:is(#versatile-root,#vt-quickact-container,body) .vt--top-\[15px\]{top:-15px}:is(#versatile-root,#vt-quickact-container,body) .vt-bottom-0{bottom:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-0{left:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-2{left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-3{left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-\[50\%\]{left:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-right-0{right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-right-1{right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-2{right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-4{right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-0{top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-top-1\/2{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-top-2{top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-4{top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-\[50\%\]{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-z-10{z-index:10}:is(#versatile-root,#vt-quickact-container,body) .vt-z-50{z-index:50}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[1000000\]{z-index:1000000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[100000\]{z-index:100000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[999999\]{z-index:999999}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[99999\]{z-index:99999}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-1{margin-left:.25rem;margin-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-2{margin-left:.5rem;margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-auto{margin-left:auto;margin-right:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-my-2{margin-bottom:.5rem;margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-my-8{margin-bottom:2rem;margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-1{margin-bottom:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-2{margin-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-3{margin-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-4{margin-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-1{margin-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-2{margin-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-auto{margin-left:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-mr-2{margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-1{margin-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-10{margin-top:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-2{margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-3{margin-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-4{margin-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-5{margin-top:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-6{margin-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-8{margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(#versatile-root,#vt-quickact-container,body) .vt-block{display:block}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-block{display:inline-block}:is(#versatile-root,#vt-quickact-container,body) .vt-flex{display:flex}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-flex{display:inline-flex}:is(#versatile-root,#vt-quickact-container,body) .vt-grid{display:grid}:is(#versatile-root,#vt-quickact-container,body) .vt-hidden{display:none}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-\[4\/3\]{aspect-ratio:4/3}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-square{aspect-ratio:1/1}:is(#versatile-root,#vt-quickact-container,body) .vt-h-10{height:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-12{height:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-16{height:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-2\.5{height:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-3{height:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-32{height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-4{height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5{height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5\/6{height:83.333333%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-6{height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-8{height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-9{height:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[100px\]{height:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[1500px\]{height:1500px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[25px\]{height:25px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[45px\]{height:45px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-auto{height:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-h-full{height:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-min{height:-moz-min-content;height:min-content}:is(#versatile-root,#vt-quickact-container,body) .vt-h-px{height:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-32{max-height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-60{max-height:15rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[300px\]{max-height:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[70vh\]{max-height:70vh}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[42px\]{min-height:42px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[60px\]{min-height:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[unset\]{min-height:unset}:is(#versatile-root,#vt-quickact-container,body) .vt-w-1\/2{width:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-10{width:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11{width:2.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11\/12{width:91.666667%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-12{width:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-16{width:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-2\.5{width:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-20{width:5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-24{width:6rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3{width:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3\/4{width:75%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-32{width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-36{width:9rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-4{width:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-40{width:10rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-48{width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-5{width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-6{width:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-64{width:16rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-72{width:18rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-8{width:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-9{width:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[100px\]{width:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[200px\]{width:200px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[20rem\]{width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[300px\]{width:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[60px\]{width:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[80\%\]{width:80%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[900px\]{width:900px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-full{width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-max{width:-moz-max-content;width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[11rem\]{min-width:11rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[12rem\]{min-width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[8rem\]{min-width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-full{min-width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-2xl{max-width:42rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-4xl{max-width:56rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-6xl{max-width:72rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[20rem\]{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[800px\]{max-width:800px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-lg{max-width:32rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-max{max-width:-moz-max-content;max-width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-md{max-width:28rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-xs{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-1{flex:1 1 0%}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-caption-bottom{caption-side:bottom}:is(#versatile-root,#vt-quickact-container,body) .-vt-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-x-\[-50\%\]{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-y-\[-50\%\]{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-pulse{50%{opacity:.5}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-pulse{animation:vt-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes vt-spin{to{transform:rotate(1turn)}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-spin{animation:vt-spin 1s linear infinite}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-default{cursor:default}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-pointer{cursor:pointer}:is(#versatile-root,#vt-quickact-container,body) .vt-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-\[repeat\(auto-fill\,minmax\(300px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col{flex-direction:column}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col-reverse{flex-direction:column-reverse}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-wrap{flex-wrap:wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .\!vt-justify-start{justify-content:flex-start!important}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-start{justify-content:flex-start}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-center{justify-content:center}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-1{gap:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-10{gap:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-2{gap:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-3{gap:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-4{gap:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-5{gap:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-auto{overflow:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-hidden{overflow:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-auto{overflow-x:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-y-auto{overflow-y:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-hidden{overflow-x:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-scroll-auto{scroll-behavior:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-nowrap{white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-pre-wrap{white-space:pre-wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-break-words{overflow-wrap:break-word}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded{border-radius:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-2xl{border-radius:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-full{border-radius:9999px}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-md{border-radius:calc(var(--radius) - 2px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-sm{border-radius:calc(var(--radius) - 4px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-xl{border-radius:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-border{border-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-0{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .vt-border-2{border-width:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-b{border-bottom-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-l{border-left-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-r{border-right-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-t{border-top-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-700{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-input{border-color:hsl(var(--input))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-primary{border-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-transparent{border-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#c7c6c6\]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#e5e5e5\]{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background{background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background\/80{background-color:hsl(var(--background)/.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black\/80{background-color:rgba(0,0,0,.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-border{background-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-card{background-color:hsl(var(--card))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-destructive{background-color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted\/50{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-popover{background-color:hsl(var(--popover))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary\/10{background-color:hsl(var(--primary)/.1)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-secondary{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-transparent{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-opacity-85{--tw-bg-opacity:0.85}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}:is(#versatile-root,#vt-quickact-container,body) .vt-from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,246,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(#versatile-root,#vt-quickact-container,body) .vt-to-indigo-100{--tw-gradient-to:#e0e7ff var(--tw-gradient-to-position)}:is(#versatile-root,#vt-quickact-container,body) .vt-fill-current{fill:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-object-cover{-o-object-fit:cover;object-fit:cover}:is(#versatile-root,#vt-quickact-container,body) .vt-p-0{padding:0}:is(#versatile-root,#vt-quickact-container,body) .vt-p-1{padding:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-2{padding:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-3{padding:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-4{padding:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-6{padding:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-7{padding:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .\!vt-px-\[1px\]{padding-left:1px!important;padding-right:1px!important}:is(#versatile-root,#vt-quickact-container,body) .\!vt-py-\[1px\]{padding-bottom:1px!important;padding-top:1px!important}:is(#versatile-root,#vt-quickact-container,body) .vt-px-1{padding-left:.25rem;padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2{padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2\.5{padding-left:.625rem;padding-right:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-3{padding-left:.75rem;padding-right:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-4{padding-left:1rem;padding-right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-8{padding-left:2rem;padding-right:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-0\.5{padding-bottom:.125rem;padding-top:.125rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1{padding-bottom:.25rem;padding-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1\.5{padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-12{padding-bottom:3rem;padding-top:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-2{padding-bottom:.5rem;padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-3{padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-4{padding-bottom:1rem;padding-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-6{padding-bottom:1.5rem;padding-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-2{padding-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-3{padding-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-4{padding-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-5{padding-bottom:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-1{padding-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-10{padding-left:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-2{padding-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-3{padding-left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-7{padding-left:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-8{padding-left:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-1{padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-2{padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-7{padding-right:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-0{padding-top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-2{padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-3{padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-left{text-align:left}:is(#versatile-root,#vt-quickact-container,body) .vt-text-center{text-align:center}:is(#versatile-root,#vt-quickact-container,body) .vt-align-middle{vertical-align:middle}:is(#versatile-root,#vt-quickact-container,body) .vt-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:is(#versatile-root,#vt-quickact-container,body) .vt-text-2xl{font-size:1.5rem;line-height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-\[0\.8rem\]{font-size:.8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-base{font-size:1rem;line-height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-lg{font-size:1.125rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-sm{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xl{font-size:1.25rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xs{font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-font-bold{font-weight:700}:is(#versatile-root,#vt-quickact-container,body) .vt-font-medium{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .vt-font-normal{font-weight:400}:is(#versatile-root,#vt-quickact-container,body) .vt-font-semibold{font-weight:600}:is(#versatile-root,#vt-quickact-container,body) .vt-leading-none{line-height:1}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-tight{letter-spacing:-.025em}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-widest{letter-spacing:.1em}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-card-foreground{color:hsl(var(--card-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-current{color:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive-foreground{color:hsl(var(--destructive-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-foreground{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-muted-foreground{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-popover-foreground{color:hsl(var(--popover-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary{color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary-foreground{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary{color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary-foreground{color:hsl(var(--secondary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-underline-offset-4{text-underline-offset:4px}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-0{opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-100{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-20{opacity:.2}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-25{opacity:.25}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-50{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-70{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-75{opacity:.75}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-outline-none{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{transition-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{transition-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-in{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .vt-fade-in-0{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-zoom-in-95{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{animation-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{animation-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{animation-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{border-color:hsl(var(--border))}#versatile-root{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:20px}:where(#versatile-root,#vt-quickact-container,.vt-ui) .wp-person a:focus .gravatar,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus .media-icon img,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus .plugin-icon{box-shadow:unset;color:unset;outline:unset}:where(#versatile-root,#vt-quickact-container,.vt-ui) a:active,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:hover{color:unset}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-border-0::file-selector-button{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-bg-transparent::file-selector-button{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-font-medium::file-selector-button{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-foreground::file-selector-button{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-absolute:after{content:var(--tw-content);position:absolute}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-left-\[2px\]:after{content:var(--tw-content);left:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-top-\[2px\]:after{content:var(--tw-content);top:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-h-5:after{content:var(--tw-content);height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-w-5:after{content:var(--tw-content);width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-rounded-full:after{border-radius:9999px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border:after{border-width:1px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-gray-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-slate-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-bg-white:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-accent:hover{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-200\/80:hover{background-color:rgba(187,247,208,.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-50\/60:hover{background-color:rgba(248,250,252,.6)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-900:hover{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-destructive:hover{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-underline:hover{text-decoration-line:underline}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-opacity-100:hover{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-1:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-gray-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-bg-accent:focus{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .focus\:\!vt-text-white:focus{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-offset-2:focus{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-blue-300:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-pointer-events-none:disabled{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-cursor-not-allowed:disabled{cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-bg-slate-300:disabled{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-50:disabled{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-70:disabled{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-border-border){border-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-muted){background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-primary){background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-bg-background){background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-muted-foreground){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-primary-foreground){color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-text-foreground){color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-shadow-lg){--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:vt-bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-translate-x-full):after{content:var(--tw-content);--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-border-white):after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-outline-none){outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-4){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-blue-300){--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-cursor-not-allowed){cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-opacity-70){opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-pointer-events-none[data-disabled=true]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-pointer-events-none[data-disabled]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-translate-x-5[data-state=checked]{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-translate-x-0[data-state=unchecked]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-accordion-up[data-state=closed]{animation:vt-accordion-up .2s ease-out}@keyframes vt-accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-accordion-down[data-state=open]{animation:vt-accordion-down .2s ease-out}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-bg-accent[data-selected=true]{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-blue-600[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=selected\]\:vt-bg-muted[data-state=selected]{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-bg-\[\#c7c6c6\][data-state=unchecked]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-opacity-50[data-disabled=true]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-opacity-50[data-disabled]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-fade-out-0[data-state=closed]{--tw-exit-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-fade-in-0[data-state=open]{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-zoom-in-95[data-state=open]{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=bottom\]\:vt-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=left\]\:vt-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=right\]\:vt-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=top\]\:vt-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{animation-duration:.5s}@media (min-width:640px){:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[425px\]{max-width:425px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[540px\]{max-width:540px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) :is(.sm\:vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-text-left{text-align:left}}@media (min-width:768px){:is(#versatile-root,#vt-quickact-container,body) .md\:vt-text-sm{font-size:.875rem;line-height:1.25rem}}:is(#versatile-root,#vt-quickact-container,body) .\[\&\:has\(\[role\=checkbox\]\)\]\:vt-pr-0:has([role=checkbox]){padding-right:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>\[role\=checkbox\]\]\:vt-translate-y-\[2px\]>[role=checkbox]){--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>tr\]\:last\:vt-border-b-0:last-child>tr){border-bottom-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-py-1\.5 [cmdk-group-heading]){padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-font-medium [cmdk-group-heading]){font-weight:500}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:vt-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\]\:vt-px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-h-5 [cmdk-input-wrapper] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-w-5 [cmdk-input-wrapper] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input\]\]\:vt-h-12 [cmdk-input]){height:3rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-py-3 [cmdk-item]){padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-h-5 [cmdk-item] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-w-5 [cmdk-item] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-pointer-events-none svg){pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-size-4 svg){height:1rem;width:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-shrink-0 svg){flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\:last-child\]\:vt-border-0 tr:last-child){border-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\]\:vt-border-b tr){border-bottom-width:1px}
  • versatile-toolkit/tags/1.0.12/assets/dist/js/versatile-js.min.js

    r3534655 r3798170  
    1 (()=>{"use strict";var e,t,r={338(e,t,r){var n=r(206);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},20(e,t,r){var n=r(594),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},848(e,t,r){e.exports=r(20)},594(e){e.exports=React},206(e){e.exports=ReactDOM}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,o.d(a,i),a},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a=o(338),i=o(594),s=o.t(i,2),l="popstate";function c(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){return y(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=m(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:h(t))},function(e,t){f("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e)try{throw new Error(t)}catch(e){}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function v(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:o}}function h({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",u=null,d=f();function f(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=f(),t=null==e?null:e-d;d=e,u&&u({action:s,location:y.location,delta:t})}function m(e){return g(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let y={get action(){return s},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(l,h),u=e,()=>{o.removeEventListener(l,h),u=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=c(e)?e:v(y.location,e,t);r&&r(n,e),d=f()+1;let l=p(n,d),h=y.createHref(n.mask||n);try{i.pushState(l,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let n=c(e)?e:v(y.location,e,t);r&&r(n,e),d=f();let o=p(n,d),l=y.createHref(n.mask||n);i.replaceState(o,"",l),a&&u&&u({action:s,location:y.location,delta:0})},go:e=>i.go(e)};return y}function g(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),d(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}new WeakMap;function b(e,t,r="/"){return x(e,t,r,!1)}function x(e,t,r,n,o){let a=I(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let i=o??w(e),s=null,l=F(a);for(let e=0;null==s&&e<i.length;++e)s=T(i[e],l,n);return s}function w(e){let t=j(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function j(e,t=[],r=[],n="",o=!1){let a=(e,a,i=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&i)return;d(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=W([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),j(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:R(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of _(e.path))a(e,t,!0,r);else a(e,t)}),t}function _(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=_(n.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var k=/^:[\w-]+$/,O=3,S=2,N=1,E=10,P=-2,C=e=>"*"===e;function R(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=P),t&&(n+=S),r.filter(e=>!C(e)).reduce((e,t)=>e+(k.test(t)?O:""===t?N:E),n)}function T(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:W([a,u.pathname]),pathnameBase:H(W([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=W([a,u.pathnameBase]))}return i}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=D(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function D(e,t=!1,r=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,o,a)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var M=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L(e,t){let r=B(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function V(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function z(e){let t=$(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function U(e,t,r,n=!1){let o;"string"==typeof e?o=m(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),V("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),V("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),V("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:a=""}="string"==typeof e?m(e):e;return n?(n=q(n),r=n.startsWith("/")?L(n.substring(1),"/"):L(n,t)):r=t,{pathname:r,search:Z(o),hash:K(a)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var q=e=>e.replace(/\/\/+/g,"/"),W=e=>q(e.join("/")),B=e=>e.replace(/\/+$/,""),H=e=>B(e).replace(/^\/*/,"/"),Z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var G=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function J(e){let t=e.map(e=>e.route.path).filter(Boolean);return W(t)||"/"}var Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function X(e,t){let r=e;if("string"!=typeof r||!M.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Y)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=I(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:o=!0}catch(e){f(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ee=["POST","PUT","PATCH","DELETE"],te=(new Set(ee),["GET",...ee]);new Set(te),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var re=i.createContext(null);re.displayName="DataRouter";var ne=i.createContext(null);ne.displayName="DataRouterState";var oe=i.createContext(!1);function ae(){return i.useContext(oe)}var ie=i.createContext({isTransitioning:!1});ie.displayName="ViewTransition";var se=i.createContext(new Map);se.displayName="Fetchers";var le=i.createContext(null);le.displayName="Await";var ce=i.createContext(null);ce.displayName="Navigation";var ue=i.createContext(null);ue.displayName="Location";var de=i.createContext({outlet:null,matches:[],isDataRoute:!1});de.displayName="Route";var fe=i.createContext(null);fe.displayName="RouteError";var pe="REACT_ROUTER_ERROR";function ve(){return null!=i.useContext(ue)}function he(){return d(ve(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(ue).location}var me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ye(e){i.useContext(ce).static||i.useLayoutEffect(e)}function ge(){let{isDataRoute:e}=i.useContext(de);return e?function(){let{router:e}=Pe("useNavigate"),t=Re("useNavigate"),r=i.useRef(!1);ye(()=>{r.current=!0});let n=i.useCallback(async(n,o={})=>{f(r.current,me),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t]);return n}():function(){d(ve(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(re),{basename:t,navigator:r}=i.useContext(ce),{matches:n}=i.useContext(de),{pathname:o}=he(),a=JSON.stringify(z(n)),s=i.useRef(!1);ye(()=>{s.current=!0});let l=i.useCallback((n,i={})=>{if(f(s.current,me),!s.current)return;if("number"==typeof n)return void r.go(n);let l=U(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,a,o,e]);return l}()}i.createContext(null);function be(e,{relative:t}={}){let{matches:r}=i.useContext(de),{pathname:n}=he(),o=JSON.stringify(z(r));return i.useMemo(()=>U(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function xe(e,t,r){d(ve(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=i.useContext(ce),{matches:o}=i.useContext(de),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;{let e=u&&u.path||"";De(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,v=he();if(t){let e="string"==typeof t?m(t):t;d("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=v;let h=p.pathname||"/",y=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):b(e,{pathname:y});f(u||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),f(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=Ne(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:W([c,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:W([c,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&x?i.createElement(ue.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},x):x}function we(){let e=Te(),t=Q(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return s=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,s)}var je=i.createElement(we,null),_e=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${pe}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(de.Provider,{value:this.props.routeContext},i.createElement(fe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Oe,{error:e},t):t}};_e.contextType=oe;var ke=new WeakMap;function Oe({children:e,error:t}){let{basename:r}=i.useContext(ce);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${pe}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=ke.get(t);if(n)throw n;let o=X(e.location,r);if(Y&&!ke.get(t)){if(!o.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw ke.set(t,r),r}window.location.href=o.absoluteURL||o.to}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Se({routeContext:e,match:t,children:r}){let n=i.useContext(re);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(de.Provider,{value:e},r)}function Ne(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=n?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:a}=n,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=r?.onError,u=n&&c?(e,t)=>{c(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:J(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let d,f=!1,p=null,v=null;n&&(d=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||je,s&&(l<0&&0===c?(De("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,v=null):l===c&&(f=!0,v=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,c+1)),m=()=>{let t;return t=d?p:f?v:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(Se,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?i.createElement(_e,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):m()},null)}function Ee(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pe(e){let t=i.useContext(re);return d(t,Ee(e)),t}function Ce(e){let t=i.useContext(ne);return d(t,Ee(e)),t}function Re(e){let t=function(e){let t=i.useContext(de);return d(t,Ee(e)),t}(e),r=t.matches[t.matches.length-1];return d(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Te(){let e=i.useContext(fe),t=Ce("useRouteError"),r=Re("useRouteError");return void 0!==e?e:t.errors?.[r]}var Ae={};function De(e,t,r){t||Ae[e]||(Ae[e]=!0,f(!1,r))}var Fe={};function Ie(e,t){e||Fe[t]||(Fe[t]=!0)}s.useOptimistic;i.memo(Me);function Me({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:a}){return xe(e,void 0,{manifest:t,state:n,isStatic:o,onError:a,future:r})}function Le({to:e,replace:t,state:r,relative:n}){d(ve(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(ce);f(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(de),{pathname:s}=he(),l=ge(),c=U(e,z(a),s,"path"===n),u=JSON.stringify(c);return i.useEffect(()=>{l(JSON.parse(u),{replace:t,state:r,relative:n})},[l,u,n,t,r]),null}function Ve(e){d(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $e({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,useTransitions:s}){d(!ve(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:a,useTransitions:s,future:{}}),[l,o,a,s]);"string"==typeof r&&(r=m(r));let{pathname:u="/",search:p="",hash:v="",state:h=null,key:y="default",mask:g}=r,b=i.useMemo(()=>{let e=I(u,l);return null==e?null:{location:{pathname:e,search:p,hash:v,state:h,key:y,mask:g},navigationType:n}},[l,u,p,v,h,y,n,g]);return f(null!=b,`<Router basename="${l}"> is not able to match the URL "${u}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:i.createElement(ce.Provider,{value:c},i.createElement(ue.Provider,{children:t,value:b}))}function ze({children:e,location:t}){return xe(Ue(e),t)}i.Component;function Ue(e,t=[]){let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let o=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,Ue(e.props.children,o));d(e.type===Ve,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ue(e.props.children,o)),r.push(a)}),r}var qe="get",We="application/x-www-form-urlencoded";function Be(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function He(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var Ze=null;var Ke=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ge(e){return null==e||Ke.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${We}"`),null)}function Qe(e,t){let r,n,o,a,i;if(Be(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?I(i,t):null,r=e.getAttribute("method")||qe,o=Ge(e.getAttribute("enctype"))||We,a=new FormData(e)}else if(function(e){return Be(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Be(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?I(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||qe,o=Ge(e.getAttribute("formenctype"))||Ge(i.getAttribute("enctype"))||We,a=new FormData(i,e),!function(){if(null===Ze)try{new FormData(document.createElement("form"),0),Ze=!1}catch(e){Ze=!0}return Ze}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,n)}}else{if(Be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=qe,n=null,o=We,i=e}var s;return a&&"text/plain"===o&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Je(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ye(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===I(o.pathname,t)?o.pathname=`${B(t)}/_root.${n}`:o.pathname=`${B(o.pathname)}.${n}`,o}async function Xe(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(e){return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function et(e){return null!=e&&"string"==typeof e.page}function tt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function rt(e,t,r,n,o,a){let i=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===a?t.filter((t,a)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function nt(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function ot(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!et(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let a=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(a)||(r.add(a),e.push({key:a,link:o})),e},[])}function at(e,t){return"lazy"===e.mode&&!0===t}function it(){let e=i.useContext(re);return Je(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function st(){let e=i.useContext(ne);return Je(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var lt=i.createContext(void 0);function ct(){let e=i.useContext(lt);return Je(e,"You must render this element inside a <HydratedRouter> element"),e}function ut(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function dt(e,t,r){if(r&&!mt)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}lt.displayName="FrameworkContext";function ft({page:e,...t}){let r=ae(),{router:n}=it(),o=i.useMemo(()=>b(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?r?i.createElement(vt,{page:e,matches:o,...t}):i.createElement(ht,{page:e,matches:o,...t}):null}function pt(e){let{manifest:t,routeModules:r}=ct(),[n,o]=i.useState([]);return i.useEffect(()=>{let n=!1;return async function(e,t,r){return ot((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await Xe(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(tt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}function vt({page:e,matches:t,...r}){let n=he(),{future:o}=ct(),{basename:a}=it(),s=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=Ye(e,a,o.unstable_trailingSlashAwareDataRequests,"rsc"),i=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:s.push(e.route.id);return i&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,o.unstable_trailingSlashAwareDataRequests,e,n,t]);return i.createElement(i.Fragment,null,s.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function ht({page:e,matches:t,...r}){let n=he(),{future:o,manifest:a,routeModules:s}=ct(),{basename:l}=it(),{loaderData:c,matches:u}=st(),d=i.useMemo(()=>rt(e,t,u,a,n,"data"),[e,t,u,a,n]),f=i.useMemo(()=>rt(e,t,u,a,n,"assets"),[e,t,u,a,n]),p=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,i=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:r.add(e.route.id))}),0===r.size)return[];let u=Ye(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return i&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.unstable_trailingSlashAwareDataRequests,c,n,a,d,t,e,s]),v=i.useMemo(()=>nt(f,a),[f,a]),h=pt(f);return i.createElement(i.Fragment,null,p.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),v.map(e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>i.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}var mt=!1;function yt(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:a,ssr:s}=ct(),{router:l,static:c,staticContext:u}=it(),{matches:d}=st(),f=ae(),p=at(a,s);o&&(o.didRenderScripts=!0);let v=dt(d,null,n);i.useEffect(()=>{mt=!0},[]);let h=i.useMemo(()=>{if(f)return null;let n=u?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${v.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];Je(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...a?[{module:a,varName:`${n}_clientAction`}]:[],...i?[{module:i,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach(e=>{let t=x(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let i=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,l),null,2)};`:""}\n  window.__reactRouterRouteModules = {${v.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),m=mt||f?[]:[...new Set(t.entry.imports.concat(nt(v,t,{includeHydrateFallback:!0})))],y="object"==typeof t.sri?t.sri:{};return Ie(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),mt||f?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),m.map(t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function gt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}i.Component;function bt({error:e,isOutsideRemixApp:t}){let r,n=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Q(e))return i.createElement(xt,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return i.createElement(xt,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function xt({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=ct();return o.root?.Layout&&!r?n:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?i.createElement(yt,null):null)))}var wt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{wt&&(window.__reactRouterVersion="7.15.1")}catch(Tt){}function jt({basename:e,children:t,useTransitions:r,window:n}){let o=i.useRef();null==o.current&&(o.current=u({window:n,v5Compat:!0}));let a=o.current,[s,l]=i.useState({action:a.action,location:a.location}),c=i.useCallback(e=>{!1===r?l(e):i.startTransition(()=>l(e))},[r]);return i.useLayoutEffect(()=>a.listen(c),[a,c]),i.createElement($e,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}var _t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=i.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:a,mask:s,state:l,target:c,to:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y){let{basename:g,navigator:b,useTransitions:x}=i.useContext(ce),w="string"==typeof u&&_t.test(u),j=X(u,g),_=function(e,{relative:t}={}){d(ve(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(ce),{hash:o,pathname:a,search:s}=be(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:W([r,a])),n.createHref({pathname:l,search:s,hash:o})}(u=j.to,{relative:n}),k=he(),O=null;if(s){let e=U(s,[],k.mask?k.mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:W([g,e.pathname])),O=b.createHref(e)}let[S,N,E]=function(e,t){let r=i.useContext(lt),[n,o]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=i.useRef(null);i.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let v=()=>{o(!0)},h=()=>{o(!1),s(!1)};return r?"intent"!==e?[a,p,{}]:[a,p,{onFocus:ut(l,v),onBlur:ut(c,h),onMouseEnter:ut(u,v),onMouseLeave:ut(d,h),onTouchStart:ut(f,v)}]:[!1,p,{}]}(r,m),P=function(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=ge(),f=he(),p=be(e,{relative:s});return i.useCallback(v=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(v,t)){v.preventDefault();let t=void 0!==r?r:h(f)===h(p),m=()=>d(e,{replace:t,mask:n,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?i.startTransition(()=>m()):m()}},[f,d,p,r,n,o,t,e,a,s,l,c,u])}(u,{replace:a,mask:s,state:l,target:c,preventScrollReset:f,relative:n,viewTransition:p,defaultShouldRevalidate:v,useTransitions:x});let C=!(j.isExternal||o),R=i.createElement("a",{...m,...E,href:(C?O:void 0)||j.absoluteURL||_,onClick:C?function(t){e&&e(t),t.defaultPrevented||P(t)}:e,ref:gt(y,N),target:c,"data-discover":w||"render"!==t?void 0:"true"});return S&&!w?i.createElement(i.Fragment,null,R,i.createElement(ft,{page:_})):R});kt.displayName="Link",i.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:a,viewTransition:s,children:l,...c},u){let f=be(a,{relative:c.relative}),p=he(),v=i.useContext(ne),{navigator:h,basename:m}=i.useContext(ce),y=null!=v&&function(e,{relative:t}={}){let r=i.useContext(ie);d(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Nt("useViewTransitionState"),o=be(e,{relative:t});if(!r.isTransitioning)return!1;let a=I(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=I(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=A(o.pathname,s)||null!=A(o.pathname,a)}(f)&&!0===s,g=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,b=p.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=I(x,m)||x);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let j,_=b===g||!n&&b.startsWith(g)&&"/"===b.charAt(w),k=null!=x&&(x===g||!n&&x.startsWith(g)&&"/"===x.charAt(g.length)),O={isActive:_,isPending:k,isTransitioning:y},S=_?e:void 0;j="function"==typeof r?r(O):[r,_?"active":null,k?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(O):o;return i.createElement(kt,{...c,"aria-current":S,className:j,ref:u,style:N,to:a,viewTransition:s},"function"==typeof l?l(O):l)}).displayName="NavLink";var Ot=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:s=qe,action:l,onSubmit:c,relative:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y)=>{let{useTransitions:g}=i.useContext(ce),b=Rt(),x=function(e,{relative:t}={}){let{basename:r}=i.useContext(ce),n=i.useContext(de);d(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...be(e||".",{relative:t})},s=he();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index"),r=t.some(e=>""===e);if(r){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(a.pathname="/"===a.pathname?r:W([r,a.pathname]));return h(a)}(l,{relative:u}),w="get"===s.toLowerCase()?"get":"post",j="string"==typeof l&&_t.test(l);return i.createElement("form",{ref:y,method:w,action:x,onSubmit:n?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,d=()=>b(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:a,relative:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v});g&&!1!==r?i.startTransition(()=>d()):d()},...m,"data-discover":j||"render"!==e?void 0:"true"})});function St(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nt(e){let t=i.useContext(re);return d(t,St(e)),t}function Et(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=i.useRef(He(e)),r=i.useRef(!1),n=he(),o=i.useMemo(()=>function(e,t){let r=He(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),a=ge(),s=i.useCallback((e,t)=>{const n=He("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,a("?"+n,t)},[a,o]);return[o,s]}Ot.displayName="Form";var Pt=0,Ct=()=>`__${String(++Pt)}__`;function Rt(){let{router:e}=Nt("useSubmit"),{basename:t}=i.useContext(ce),r=Re("useRouteId"),n=e.fetch,o=e.navigate;return i.useCallback(async(e,a={})=>{let{action:i,method:s,encType:l,formData:c,body:u}=Qe(e,t);if(!1===a.navigate){let e=a.fetcherKey||Ct();await n(e,r,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,o,t,r])}let Tt={data:""},At=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Tt},Dt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ft=/\/\*[^]*?\*\/|  +/g,It=/\n+/g,Mt=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?Mt(i,a):a+"{"+Mt(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=Mt(i,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a="-"==a[1]?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Mt.p?Mt.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Lt={},Vt=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Vt(e[r]);return t}return e},$t=(e,t,r,n,o)=>{let a=Vt(e),i=Lt[a]||(Lt[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!Lt[i]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=Dt.exec(e.replace(Ft,""));)t[4]?n.shift():t[3]?(r=t[3].replace(It," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(It," ").trim();return n[0]})(e);Lt[i]=Mt(o?{["@keyframes "+i]:t}:t,r?"":"."+i)}let s=r&&Lt.g;return r&&(Lt.g=Lt[i]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Lt[i],t,n,s),i};function zt(e){let t=this||{},r=e.call?e(t.p):e;return $t(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Mt(e,""):!1===e?"":e}return e+n+(a??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,At(t.target),t.g,t.o,t.k)}zt.bind({g:1});let Ut,qt,Wt,Bt=zt.bind({k:1});function Ht(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;r.p=Object.assign({theme:qt&&qt()},s),r.o=/go\d/.test(l),s.className=zt.apply(r,n)+(l?" "+l:""),t&&(s.ref=i);let c=e;return e[0]&&(c=s.as||e,delete s.as),Wt&&c[0]&&Wt(s),Ut(c,s)}return t?t(o):o}}var Zt=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Kt=(()=>{let e=0;return()=>(++e).toString()})(),Gt=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qt="default",Jt=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Jt(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},Yt=[],Xt={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},er={},tr=(e,t=Qt)=>{er[t]=Jt(er[t]||Xt,e),Yt.forEach(([e,r])=>{e===t&&r(er[t])})},rr=e=>Object.keys(er).forEach(t=>tr(e,t)),nr=(e=Qt)=>t=>{tr(t,e)},or={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ar=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Kt()}))(t,e,r);return nr(n.toasterId||(e=>Object.keys(er).find(t=>er[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},ir=(e,t)=>ar("blank")(e,t);ir.error=ar("error"),ir.success=ar("success"),ir.loading=ar("loading"),ir.custom=ar("custom"),ir.dismiss=(e,t)=>{let r={type:3,toastId:e};t?nr(t)(r):rr(r)},ir.dismissAll=e=>ir.dismiss(void 0,e),ir.remove=(e,t)=>{let r={type:4,toastId:e};t?nr(t)(r):rr(r)},ir.removeAll=e=>ir.remove(void 0,e),ir.promise=(e,t,r)=>{let n=ir.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?Zt(t.success,e):void 0;return o?ir.success(o,{id:n,...r,...null==r?void 0:r.success}):ir.dismiss(n),e}).catch(e=>{let o=t.error?Zt(t.error,e):void 0;o?ir.error(o,{id:n,...r,...null==r?void 0:r.error}):ir.dismiss(n)}),e};var sr=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Qt)=>{let[r,n]=(0,i.useState)(er[t]||Xt),o=(0,i.useRef)(er[t]);(0,i.useEffect)(()=>(o.current!==er[t]&&n(er[t]),Yt.push([t,n]),()=>{let e=Yt.findIndex(([e])=>e===t);e>-1&&Yt.splice(e,1)}),[t]);let a=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||or[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:a}})(e,t),o=(0,i.useRef)(new Map).current,a=(0,i.useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,r)},[]);(0,i.useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>ir.dismiss(r.id,t),n);r.visible&&ir.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,i.useCallback)(nr(t),[t]),l=(0,i.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,i.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,i.useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,i.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=t||{},i=r.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=i.findIndex(t=>t.id===e.id),l=i.filter((e,t)=>t<s&&e.visible).length;return i.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,i.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},lr=Bt`
    2 from {
    3   transform: scale(0) rotate(45deg);
    4         opacity: 0;
    5 }
    6 to {
    7  transform: scale(1) rotate(45deg);
    8   opacity: 1;
    9 }`,cr=Bt`
    10 from {
    11   transform: scale(0);
    12   opacity: 0;
    13 }
    14 to {
    15   transform: scale(1);
    16   opacity: 1;
    17 }`,ur=Bt`
    18 from {
    19   transform: scale(0) rotate(90deg);
    20         opacity: 0;
    21 }
    22 to {
    23   transform: scale(1) rotate(90deg);
    24         opacity: 1;
    25 }`,dr=Ht("div")`
    26   width: 20px;
    27   opacity: 0;
    28   height: 20px;
    29   border-radius: 10px;
    30   background: ${e=>e.primary||"#ff4b4b"};
    31   position: relative;
    32   transform: rotate(45deg);
    33 
    34   animation: ${lr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    35     forwards;
    36   animation-delay: 100ms;
    37 
    38   &:after,
    39   &:before {
    40     content: '';
    41     animation: ${cr} 0.15s ease-out forwards;
    42     animation-delay: 150ms;
    43     position: absolute;
    44     border-radius: 3px;
    45     opacity: 0;
    46     background: ${e=>e.secondary||"#fff"};
    47     bottom: 9px;
    48     left: 4px;
    49     height: 2px;
    50     width: 12px;
    51   }
    52 
    53   &:before {
    54     animation: ${ur} 0.15s ease-out forwards;
    55     animation-delay: 180ms;
    56     transform: rotate(90deg);
    57   }
    58 `,fr=Bt`
    59   from {
    60     transform: rotate(0deg);
    61   }
    62   to {
    63     transform: rotate(360deg);
    64   }
    65 `,pr=Ht("div")`
    66   width: 12px;
    67   height: 12px;
    68   box-sizing: border-box;
    69   border: 2px solid;
    70   border-radius: 100%;
    71   border-color: ${e=>e.secondary||"#e0e0e0"};
    72   border-right-color: ${e=>e.primary||"#616161"};
    73   animation: ${fr} 1s linear infinite;
    74 `,vr=Bt`
    75 from {
    76   transform: scale(0) rotate(45deg);
    77         opacity: 0;
    78 }
    79 to {
    80   transform: scale(1) rotate(45deg);
    81         opacity: 1;
    82 }`,hr=Bt`
    83 0% {
    84         height: 0;
    85         width: 0;
    86         opacity: 0;
    87 }
    88 40% {
    89   height: 0;
    90         width: 6px;
    91         opacity: 1;
    92 }
    93 100% {
    94   opacity: 1;
    95   height: 10px;
    96 }`,mr=Ht("div")`
    97   width: 20px;
    98   opacity: 0;
    99   height: 20px;
    100   border-radius: 10px;
    101   background: ${e=>e.primary||"#61d345"};
    102   position: relative;
    103   transform: rotate(45deg);
    104 
    105   animation: ${vr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    106     forwards;
    107   animation-delay: 100ms;
    108   &:after {
    109     content: '';
    110     box-sizing: border-box;
    111     animation: ${hr} 0.2s ease-out forwards;
    112     opacity: 0;
    113     animation-delay: 200ms;
    114     position: absolute;
    115     border-right: 2px solid;
    116     border-bottom: 2px solid;
    117     border-color: ${e=>e.secondary||"#fff"};
    118     bottom: 6px;
    119     left: 6px;
    120     height: 10px;
    121     width: 6px;
    122   }
    123 `,yr=Ht("div")`
    124   position: absolute;
    125 `,gr=Ht("div")`
    126   position: relative;
    127   display: flex;
    128   justify-content: center;
    129   align-items: center;
    130   min-width: 20px;
    131   min-height: 20px;
    132 `,br=Bt`
    133 from {
    134   transform: scale(0.6);
    135   opacity: 0.4;
    136 }
    137 to {
    138   transform: scale(1);
    139   opacity: 1;
    140 }`,xr=Ht("div")`
    141   position: relative;
    142   transform: scale(0.6);
    143   opacity: 0.4;
    144   min-width: 20px;
    145   animation: ${br} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    146     forwards;
    147 `,wr=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?i.createElement(xr,null,t):t:"blank"===r?null:i.createElement(gr,null,i.createElement(pr,{...n}),"loading"!==r&&i.createElement(yr,null,"error"===r?i.createElement(dr,{...n}):i.createElement(mr,{...n})))},jr=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,_r=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,kr=Ht("div")`
    148   display: flex;
    149   align-items: center;
    150   background: #fff;
    151   color: #363636;
    152   line-height: 1.3;
    153   will-change: transform;
    154   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
    155   max-width: 350px;
    156   pointer-events: auto;
    157   padding: 8px 10px;
    158   border-radius: 8px;
    159 `,Or=Ht("div")`
    160   display: flex;
    161   justify-content: center;
    162   margin: 4px 10px;
    163   color: inherit;
    164   flex: 1 1 auto;
    165   white-space: pre-line;
    166 `,Sr=i.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Gt()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[jr(r),_r(r)];return{animation:t?`${Bt(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Bt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},a=i.createElement(wr,{toast:e}),s=i.createElement(Or,{...e.ariaProps},Zt(e.message,e));return i.createElement(kr,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:a,message:s}):i.createElement(i.Fragment,null,a,s))});!function(e,t,r,n){Mt.p=t,Ut=e,qt=r,Wt=n}(i.createElement);var Nr=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let a=i.useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return i.createElement("div",{ref:a,className:t,style:r},o)},Er=zt`
    167   z-index: 9999;
    168   > * {
    169     pointer-events: auto;
    170   }
    171 `,Pr=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:a,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=sr(r,a);return i.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(r=>{let a=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Gt()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(a,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return i.createElement(Nr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?Er:"",style:s},"custom"===r.type?Zt(r.message,r):o?o(r):i.createElement(Sr,{toast:r,position:a}))}))},Cr=ir,Rr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Tr=new class{#e=Rr;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var Ar="undefined"==typeof window||"Deno"in globalThis;function Dr(){}function Fr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ir(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mr(e,t){return"function"==typeof e?e(t):e}function Lr(e,t){return"function"==typeof e?e(t):e}function Vr(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(n){if(t.queryHash!==zr(i,t.options))return!1}else if(!qr(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function $r(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ur(t.options.mutationKey)!==Ur(a))return!1}else if(!qr(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function zr(e,t){return(t?.queryKeyHashFn||Ur)(e)}function Ur(e){return JSON.stringify(e,(e,t)=>Kr(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function qr(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>qr(e[r],t[r])))}var Wr=Object.prototype.hasOwnProperty;function Br(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Zr(e)&&Zr(t);if(!(n||Kr(e)&&Kr(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),i=a.length,s=n?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=n?c:a[c],u=e[i],d=t[i];if(u===d){s[i]=u,(n?c<o:Wr.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[i]=d;continue}const f=Br(u,d,r+1);s[i]=f,f===u&&l++}return o===i&&l===o?e:s}function Hr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Zr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kr(e){if(!Gr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!Gr(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Gr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Qr(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Br(e,t):t}function Jr(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Yr(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Xr=Symbol();function en(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Xr?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function tn(e,t){return"function"==typeof e?e(...t):!!e}var rn=function(e){setTimeout(e,0)};var nn=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=rn;const a=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),on=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},an=new class extends on{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},sn=new class extends on{#a=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function ln(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var cn=(()=>{let e=()=>Ar;return{isServer:()=>e(),setIsServer(t){e=t}}})();function un(e){return Math.min(1e3*2**e,3e4)}function dn(e){return"online"!==(e??"online")||sn.isOnline()}var fn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pn(e){let t,r=!1,n=0;const o=ln(),a=()=>"pending"!==o.status,i=()=>an.isFocused()&&("always"===e.networkMode||sn.isOnline())&&e.canRun(),s=()=>dn(e.networkMode)&&e.canRun(),l=e=>{a()||(t?.(),o.resolve(e))},c=e=>{a()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(a()||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(a())return;const o=e.retry??(cn.isServer()?0:3),s=e.retryDelay??un,l="function"==typeof s?s(n,t):s,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&f?(n++,e.onFail?.(n,t),(p=l,new Promise(e=>{Tr.setTimeout(e,p)})).then(()=>i()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const r=new fn(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var vn=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fr(this.gcTime)&&(this.#i=Tr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cn.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(Tr.clearTimeout(this.#i),this.#i=void 0)}};function hn(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=e=>{!function(e,t,r){let n,o=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=en(t.options,t.fetchOptions),d=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),i=await u(a),{maxPages:s}=t.options,l=o?Yr:Jr;return{pages:l(e.pages,i,s),pageParams:l(e.pageParams,n,s)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},r=(e?yn:mn)(n,t);s=await d(t,r,e)}else{const t=e??a.length;do{const e=0===l?i[0]??n.initialPageParam:mn(n,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function mn(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function yn(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var gn=class extends vn{#s;#l;#c;#u;#d;#f;#p;#v;constructor(e){super(),this.#v=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#u=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=wn(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#f?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=wn(this.options);void 0!==e.data&&(this.setState(xn(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const r=Qr(this.state.data,e,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#h({type:"setState",state:e})}cancel(e){const t=this.#f?.promise;return this.#f?.cancel(e),t?t.then(Dr).catch(Dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Lr(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Mr(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Ir(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#f?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#f?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#f&&(this.#v||this.#m()?this.#f.cancel({revert:!0}):this.#f.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#f?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#f.continueRetry(),this.#f.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#v=!0,r.signal)})},o=()=>{const e=en(this.options,t),r=(()=>{const e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#v=!1,this.options.persister?this.options.persister(e,r,this):e(r)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:o};return n(e),e})(),i="infinite"===this.#s?hn(this.options.pages):this.options.behavior;i?.onFetch(a,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#h({type:"fetch",meta:a.fetchOptions?.meta}),this.#f=pn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof fn&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#f.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof fn){if(e.silent)return this.#f.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#h({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...bn(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...xn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),nn.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function bn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function xn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wn(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jn=class extends on{constructor(e={}){super(),this.config=e,this.#y=new Map}#y;build(e,t,r){const n=t.queryKey,o=t.queryHash??zr(n,t);let a=this.get(o);return a||(a=new gn({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#y.has(e.queryHash)||(this.#y.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#y.get(e.queryHash);t&&(e.destroy(),t===e&&this.#y.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){nn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#y.get(e)}getAll(){return[...this.#y.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Vr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Vr(e,t)):t}notify(e){nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_n=class extends vn{#d;#g;#b;#f;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#b=e.mutationCache,this.#g=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#g.includes(e)||(this.#g.push(e),this.clearGcTimeout(),this.#b.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#g=this.#g.filter(t=>t!==e),this.scheduleGc(),this.#b.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#g.length||("pending"===this.state.status?this.scheduleGc():this.#b.remove(this))}continue(){return this.#f?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#h({type:"continue"})},r={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#f=pn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#b.canRun(this)});const n="pending"===this.state.status,o=!this.#f.canStart();try{if(n)t();else{this.#h({type:"pending",variables:e,isPaused:o}),this.#b.config.onMutate&&await this.#b.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#h({type:"pending",context:t,variables:e,isPaused:o})}const a=await this.#f.start();return await(this.#b.config.onSuccess?.(a,e,this.state.context,this,r)),await(this.options.onSuccess?.(a,e,this.state.context,r)),await(this.#b.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(a,null,e,this.state.context,r)),this.#h({type:"success",data:a}),a}catch(t){try{await(this.#b.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#b.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#h({type:"error",error:t}),t}finally{this.#b.runNext(this)}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),nn.batch(()=>{this.#g.forEach(t=>{t.onMutationUpdate(e)}),this.#b.notify({mutation:this,type:"updated",action:e})})}};var kn=class extends on{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#w=new Map,this.#j=0}#x;#w;#j;build(e,t,r){const n=new _n({client:e,mutationCache:this,mutationId:++this.#j,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#x.add(e);const t=On(e);if("string"==typeof t){const r=this.#w.get(t);r?r.push(e):this.#w.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){const t=On(e);if("string"==typeof t){const r=this.#w.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#w.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=On(e);if("string"==typeof t){const r=this.#w.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=On(e);if("string"==typeof t){const r=this.#w.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){nn.batch(()=>{this.#x.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#x.clear(),this.#w.clear()})}getAll(){return Array.from(this.#x)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>$r(t,e))}findAll(e={}){return this.getAll().filter(t=>$r(e,t))}notify(e){nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return nn.batch(()=>Promise.all(e.map(e=>e.continue().catch(Dr))))}};function On(e){return e.options.scope?.id}var Sn=o(848),Nn=i.createContext(void 0),En=e=>{const t=i.useContext(Nn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Pn=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Sn.jsx)(Nn.Provider,{value:e,children:t}));function Cn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cn(e))&&(n&&(n+=" "),n+=t);return n}const Tn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),An="-",Dn=[],Fn=e=>{const t=Ln(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Mn(e);const r=e.split(An),n=""===r[0]&&r.length>1?1:0;return In(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||Dn}return r[e]||Dn}}},In=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=In(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(An):e.slice(t).join(An),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},Mn=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),Ln=e=>{const{theme:t,classGroups:r}=e;return Vn(r,t)},Vn=(e,t)=>{const r=Tn();for(const n in e){const o=e[n];$n(o,r,n,t)}return r},$n=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];zn(o,t,r,n)}},zn=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Wn(e,t,r,n):qn(e,t,r,n):Un(e,t,r)},Un=(e,t,r)=>{(""===e?t:Bn(t,e)).classGroupId=r},qn=(e,t,r,n)=>{Hn(e)?$n(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Wn=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];$n(i,Bn(t,a),r,n)}},Bn=(e,t)=>{let r=e;const n=t.split(An),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Tn(),r.nextPart.set(t,o)),r=o}return r},Hn=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Zn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},Kn=[],Gn=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Qn=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){r=s;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return Gn(t,c,l,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):Gn(Kn,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},Jn=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},Yn=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},Xn=/\s+/,eo=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=eo(e[n]))&&(r&&(r+=" "),r+=t);return r},to=(e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(Xn);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=r(t);if(u){c=t+(c.length>0?" "+c:c);continue}let h,m=!!v;if(m){h=n(p.substring(0,v));const e=h&&i[h]?n(p):void 0;e&&e!==h&&(h=e,m=!1)}else h=n(p);if(!h){if(!m){c=t+(c.length>0?" "+c:c);continue}if(h=n(p),!h){c=t+(c.length>0?" "+c:c);continue}m=!1}const y=0===d.length?"":1===d.length?d[0]:a(d).join(":"),g=f?y+"!":y,b=g+h;if(s.indexOf(b)>-1)continue;s.push(b);const x=o(h,m);for(let e=0;e<x.length;++e){const t=x[e];s.push(g+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Zn(e.cacheSize),parseClassName:Qn(e),sortModifiers:Jn(e),postfixLookupClassGroupIds:Yn(e),...Fn(e)}))(l),n=r.cache.get,o=r.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=eo(t))&&(o&&(o+=" "),o+=r);return o})(...e))},ro=[],no=e=>{const t=t=>t[e]||ro;return t.isThemeGetter=!0,t},oo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,io=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,so=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,co=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,po=e=>io.test(e),vo=e=>!!e&&!Number.isNaN(Number(e)),ho=e=>!!e&&Number.isInteger(Number(e)),mo=e=>e.endsWith("%")&&vo(e.slice(0,-1)),yo=e=>so.test(e),go=()=>!0,bo=e=>lo.test(e)&&!co.test(e),xo=()=>!1,wo=e=>uo.test(e),jo=e=>fo.test(e),_o=e=>!So(e)&&!Do(e),ko=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Oo=e=>Uo(e,Ho,xo),So=e=>oo.test(e),No=e=>Uo(e,Zo,bo),Eo=e=>Uo(e,Ko,vo),Po=e=>Uo(e,Qo,go),Co=e=>Uo(e,Go,xo),Ro=e=>Uo(e,Wo,xo),To=e=>Uo(e,Bo,jo),Ao=e=>Uo(e,Jo,wo),Do=e=>ao.test(e),Fo=e=>qo(e,Zo),Io=e=>qo(e,Go),Mo=e=>qo(e,Wo),Lo=e=>qo(e,Ho),Vo=e=>qo(e,Bo),$o=e=>qo(e,Jo,!0),zo=e=>qo(e,Qo,!0),Uo=(e,t,r)=>{const n=oo.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},qo=(e,t,r=!1)=>{const n=ao.exec(e);return!!n&&(n[1]?t(n[1]):r)},Wo=e=>"position"===e||"percentage"===e,Bo=e=>"image"===e||"url"===e,Ho=e=>"length"===e||"size"===e||"bg-size"===e,Zo=e=>"length"===e,Ko=e=>"number"===e,Go=e=>"family-name"===e,Qo=e=>"number"===e||"weight"===e,Jo=e=>"shadow"===e,Yo=(Symbol.toStringTag,()=>{const e=no("color"),t=no("font"),r=no("text"),n=no("font-weight"),o=no("tracking"),a=no("leading"),i=no("breakpoint"),s=no("container"),l=no("spacing"),c=no("radius"),u=no("shadow"),d=no("inset-shadow"),f=no("text-shadow"),p=no("drop-shadow"),v=no("blur"),h=no("perspective"),m=no("aspect"),y=no("ease"),g=no("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Do,So],x=()=>[Do,So,l],w=()=>[po,"full","auto",...x()],j=()=>[ho,"none","subgrid",Do,So],_=()=>["auto",{span:["full",ho,Do,So]},ho,Do,So],k=()=>[ho,"auto",Do,So],O=()=>["auto","min","max","fr",Do,So],S=()=>["auto",...x()],N=()=>[po,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],E=()=>[po,"screen","full","dvw","lvw","svw","min","max","fit",...x()],P=()=>[po,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[e,Do,So],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Mo,Ro,{position:[Do,So]}],T=()=>["auto","cover","contain",Lo,Oo,{size:[Do,So]}],A=()=>[mo,Fo,No],D=()=>["","none","full",c,Do,So],F=()=>["",vo,Fo,No],I=()=>[vo,mo,Mo,Ro],M=()=>["","none",v,Do,So],L=()=>["none",vo,Do,So],V=()=>["none",vo,Do,So],$=()=>[vo,Do,So],z=()=>[po,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yo],breakpoint:[yo],color:[go],container:[yo],"drop-shadow":[yo],ease:["in","out","in-out"],font:[_o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yo],shadow:[yo],spacing:["px",vo],text:[yo],"text-shadow":[yo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",po,So,Do,m]}],container:["container"],"container-type":[{"@container":["","normal","size",Do,So]}],"container-named":[ko],columns:[{columns:[vo,So,Do,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ho,"auto",Do,So]}],basis:[{basis:[po,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vo,po,"auto","initial","none",So]}],grow:[{grow:["",vo,Do,So]}],shrink:[{shrink:["",vo,Do,So]}],order:[{order:[ho,"first","last","none",Do,So]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...E()]}],"min-inline-size":[{"min-inline":["auto",...E()]}],"max-inline-size":[{"max-inline":["none",...E()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,Fo,No]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,zo,Po]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mo,So]}],"font-family":[{font:[Io,Co,t]}],"font-features":[{"font-features":[So]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Do,So]}],"line-clamp":[{"line-clamp":[vo,"none",Do,Eo]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",Do,So]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Do,So]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[vo,"from-font","auto",Do,No]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[vo,"auto",Do,So]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[ho,Do,So]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Do,So]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Do,So]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ho,Do,So],radial:["",Do,So],conic:[ho,Do,So]},Vo,To]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[vo,Do,So]}],"outline-w":[{outline:["",vo,Fo,No]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,$o,Ao]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",d,$o,Ao]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[vo,No]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",f,$o,Ao]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[vo,Do,So]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[vo]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Do,So]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[vo]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Do,So]}],filter:[{filter:["","none",Do,So]}],blur:[{blur:M()}],brightness:[{brightness:[vo,Do,So]}],contrast:[{contrast:[vo,Do,So]}],"drop-shadow":[{"drop-shadow":["","none",p,$o,Ao]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",vo,Do,So]}],"hue-rotate":[{"hue-rotate":[vo,Do,So]}],invert:[{invert:["",vo,Do,So]}],saturate:[{saturate:[vo,Do,So]}],sepia:[{sepia:["",vo,Do,So]}],"backdrop-filter":[{"backdrop-filter":["","none",Do,So]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[vo,Do,So]}],"backdrop-contrast":[{"backdrop-contrast":[vo,Do,So]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vo,Do,So]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vo,Do,So]}],"backdrop-invert":[{"backdrop-invert":["",vo,Do,So]}],"backdrop-opacity":[{"backdrop-opacity":[vo,Do,So]}],"backdrop-saturate":[{"backdrop-saturate":[vo,Do,So]}],"backdrop-sepia":[{"backdrop-sepia":["",vo,Do,So]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Do,So]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vo,"initial",Do,So]}],ease:[{ease:["linear","initial",y,Do,So]}],delay:[{delay:[vo,Do,So]}],animate:[{animate:["none",g,Do,So]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Do,So]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[Do,So,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[ho,Do,So]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Do,So]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Do,So]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[vo,Fo,No,Eo]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Xo=(e,t,r)=>{void 0!==r&&(e[t]=r)},ea=(e,t)=>{if(t)for(const r in t)Xo(e,r,t[r])},ta=(e,t)=>{if(t)for(const r in t)ra(e,t,r)},ra=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function na(e){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(e)}function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach(function(t){ia(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ia(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=na(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=na(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==na(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa=((e,...t)=>"function"==typeof e?to(Yo,e,...t):to(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(Xo(e,"cacheSize",t),Xo(e,"prefix",r),Xo(e,"experimentalParseClassName",n),ea(e.theme,a.theme),ea(e.classGroups,a.classGroups),ea(e.conflictingClassGroups,a.conflictingClassGroups),ea(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Xo(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),Xo(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ta(e.theme,o.theme),ta(e.classGroups,o.classGroups),ta(e.conflictingClassGroups,o.conflictingClassGroups),ta(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ra(e,o,"postfixLookupClassGroups"),ra(e,o,"orderSensitiveModifiers"),e))(Yo(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?aa(aa({},r),{},{baseClassName:n.slice(3)}):r}});function la(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return sa(Rn(t))}const ca=wp.i18n;const ua=function(e){var t=e.lines,r=void 0===t?1:t,n=e.rows,o=void 0===n?1:n,a=e.height,i=void 0===a?"vt-h-4":a,s=e.width,l=void 0===s?"vt-w-[100px]":s,c=e.className,u=e.animate,d=void 0===u||u;return(0,Sn.jsx)("div",{className:la("vt-flex vt-flex-col vt-gap-2",c),children:Array.from({length:o}).map(function(e,t){return(0,Sn.jsx)("div",{className:la("vt-flex vt-gap-2",l),children:Array.from({length:r}).map(function(e,t){return(0,Sn.jsx)("div",{className:la("vt-bg-muted vt-rounded",i,d&&"vt-animate-pulse",t===r-1&&r>1?"vt-w-3/4":"vt-w-full")},t)})},t)})})};var da={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const fa=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,o=e.size,a=void 0===o?"sm":o,i=e.className;if(!t)return(0,Sn.jsx)(Sn.Fragment,{children:n});var s=(0,ca.__)("Loading","versatile-toolkit"),l=r||"".concat(s,"...");return(0,Sn.jsxs)("div",{className:la("vt-flex vt-items-center vt-gap-2",i),children:[(0,Sn.jsx)("div",{className:la(da[a],"vt-animate-spin"),children:(0,Sn.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,Sn.jsx)("span",{children:l})]})};var pa={xs:"vt-w-3 vt-h-3 vt-text-xs",sm:"w-4 h-4 text-sm",md:"vt-w-5 vt-h-5 vt-text-base",lg:"vt-w-6 vt-h-6 vt-text-lg",xl:"vt-w-8 vt-h-8 vt-text-xl"},va={default:"text-foreground",primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"};const ha=function(e){var t=e.size,r=void 0===t?"sm":t,n=e.variant,o=void 0===n?"muted":n,a=e.className,i=e.text,s=e.showText,l=void 0===s||s,c=i||(0,ca.__)("Loading","versatile-toolkit");return(0,Sn.jsxs)("div",{className:la("flex items-center gap-2 py-2",va[o],a),children:[(0,Sn.jsx)("div",{className:la(pa[r],"animate-spin"),children:(0,Sn.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),l&&(0,Sn.jsxs)("span",{className:pa[r].split(" ")[2],children:[c,"..."]})]})};const ma=function(e){var t=e.className,r=e.animate,n=void 0===r||r;return(0,Sn.jsxs)("div",{className:la("space-y-6",t),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center vt-pb-5",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-6",height:"h-6",animate:n}),(0,Sn.jsx)(ua,{width:"w-48",height:"h-8",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-24",height:"h-10",animate:n})]})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-5",animate:n}),(0,Sn.jsx)("div",{className:"vt-grid vt-grid-cols-6 vt-gap-4",children:Array.from({length:6}).map(function(e,t){return(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)("div",{className:la("vt-aspect-[4/3] vt-bg-muted vt-rounded-lg vt-border-2",n&&"vt-animate-pulse")}),(0,Sn.jsx)(ua,{width:"w-16",height:"h-4",animate:n}),(0,Sn.jsx)(ua,{rows:2,lines:1,width:"w-full",height:"h-3",animate:n}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-6",animate:n}),(0,Sn.jsx)(ua,{width:"w-14",height:"h-6",animate:n})]})]},t)})}),(0,Sn.jsx)(ua,{width:"w-80",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10",children:[(0,Sn.jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-40",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-12",height:"h-6",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-64",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-72",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-16",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-48",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-20",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-24",animate:n}),(0,Sn.jsx)(ua,{width:"w-64",height:"h-4",animate:n})]})]}),(0,Sn.jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-5",animate:n}),(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)(ua,{width:"w-48",height:"h-10",animate:n}),(0,Sn.jsx)("div",{className:la("vt-w-40 vt-h-32 vt-bg-muted vt-rounded-lg",n&&"animate-pulse")}),(0,Sn.jsx)(ua,{width:"w-24",height:"h-4",animate:n}),(0,Sn.jsx)(ua,{width:"w-80",height:"h-4",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-72",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-5",animate:n}),(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-16",height:"h-4",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-68",height:"h-4",animate:n})]})]})]})]})};const ya=function(){return(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-justify-center vt-h-full vt-bg-gray-50 vt-rounded-lg vt-border vt-border-gray-200 vt-p-6",children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-2xl vt-shadow-lg vt-p-6 vt-w-72 vt-text-center",children:[(0,Sn.jsx)("div",{className:"vt-w-16 vt-h-16 vt-bg-gray-200 vt-rounded-full vt-mx-auto vt-mb-4 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-5 vt-bg-gray-300 vt-rounded vt-w-32 vt-mx-auto vt-mb-2 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-gray-200 vt-rounded vt-w-40 vt-mx-auto vt-mb-1 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-gray-100 vt-rounded vt-w-36 vt-mx-auto vt-animate-pulse"})]})})};var ga=Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function ba(e){var t=e.columns,r=void 0===t?ga:t,n=e.rows,o=void 0===n?10:n,a=e.className,i=void 0===a?"":a,s=e.animate,l=void 0===s||s,c=function(e){switch(e){case"id":return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-6"});case"type":return(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-full vt-w-16"});case"message":return(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-full"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-3/4"})]});case"timestamp":return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-32"});case"actions":return(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-lg vt-w-[80%]"});default:return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-24"})}};return(0,Sn.jsx)(Sn.Fragment,{children:Array.from({length:o}).map(function(e,t){return(0,Sn.jsx)("tr",{className:"vt-border-t vt-border-slate-100 ".concat(l?"vt-animate-pulse":""," ").concat(i),children:r.map(function(e,r){return(0,Sn.jsx)("td",{className:"vt-px-4 vt-py-3",children:c(e.label||e.key)},"skeleton-".concat(t,"-").concat(r))})},"skeleton-".concat(t))})})}function xa(e){return xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(e)}var wa=["className"],ja=["className"],_a=["className"],ka=["className"],Oa=["className"],Sa=["className"];function Na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(r),!0).forEach(function(t){Pa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Na(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=xa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ca(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ra=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,wa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Ra.displayName="Card";var Ta=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,ja);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});Ta.displayName="CardHeader";var Aa=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,_a);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Aa.displayName="CardTitle",i.forwardRef(function(e,t){var r=e.className,n=Ca(e,ka);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var Da=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,Oa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-p-4",r)},n))});function Fa(e){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(e)}function Ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ma(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Da.displayName="CardContent",i.forwardRef(function(e,t){var r=e.className,n=Ca(e,Sa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var La=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(r),!0).forEach(function(t){Ma(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ia(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Va=La;var $a=class extends on{constructor(e,t){super(),this.options=t,this.#d=e,this.#_=null,this.#k=ln(),this.bindMethods(),this.setOptions(t)}#d;#O=void 0;#S=void 0;#N=void 0;#E;#P;#k;#_;#C;#R;#T;#A;#D;#F;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),za(this.#O,this.options)?this.#M():this.updateResult(),this.#L())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ua(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ua(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#V(),this.#$(),this.#O.removeObserver(this)}setOptions(e){const t=this.options,r=this.#O;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Lr(this.options.enabled,this.#O))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#z(),this.#O.setOptions(this.options),t._defaulted&&!Hr(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});const n=this.hasListeners();n&&qa(this.#O,r,this.options,t)&&this.#M(),this.updateResult(),!n||this.#O===r&&Lr(this.options.enabled,this.#O)===Lr(t.enabled,this.#O)&&Mr(this.options.staleTime,this.#O)===Mr(t.staleTime,this.#O)||this.#U();const o=this.#q();!n||this.#O===r&&Lr(this.options.enabled,this.#O)===Lr(t.enabled,this.#O)&&o===this.#F||this.#W(o)}getOptimisticResult(e){const t=this.#d.getQueryCache().build(this.#d,e),r=this.createResult(t,e);return function(e,t){if(!Hr(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#N=r,this.#P=this.options,this.#E=this.#O.state),r}getCurrentResult(){return this.#N}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#k.status||this.#k.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#d.defaultQueryOptions(e),r=this.#d.getQueryCache().build(this.#d,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#N))}#M(e){this.#z();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Dr)),t}#U(){this.#V();const e=Mr(this.options.staleTime,this.#O);if(cn.isServer()||this.#N.isStale||!Fr(e))return;const t=Ir(this.#N.dataUpdatedAt,e)+1;this.#A=Tr.setTimeout(()=>{this.#N.isStale||this.updateResult()},t)}#q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#W(e){this.#$(),this.#F=e,!cn.isServer()&&!1!==Lr(this.options.enabled,this.#O)&&Fr(this.#F)&&0!==this.#F&&(this.#D=Tr.setInterval(()=>{(this.options.refetchIntervalInBackground||an.isFocused())&&this.#M()},this.#F))}#L(){this.#U(),this.#W(this.#q())}#V(){void 0!==this.#A&&(Tr.clearTimeout(this.#A),this.#A=void 0)}#$(){void 0!==this.#D&&(Tr.clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const r=this.#O,n=this.options,o=this.#N,a=this.#E,i=this.#P,s=e!==r?e.state:this.#S,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&za(e,t),i=o&&qa(e,r,t,n);(a||i)&&(u={...u,...bn(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:v}=u;c=u.data;let h=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===v){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,h=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(v="success",c=Qr(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!h)if(o&&c===a?.data&&t.select===this.#C)c=this.#R;else try{this.#C=t.select,c=t.select(c),c=Qr(o?.data,c,t),this.#R=c,this.#_=null}catch(e){this.#_=e}this.#_&&(f=this.#_,c=this.#R,p=Date.now(),v="error");const m="fetching"===u.fetchStatus,y="pending"===v,g="error"===v,b=y&&m,x=void 0!==c,w={status:v,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===v,isError:g,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:g&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:g&&x,isStale:Wa(e,t),refetch:this.refetch,promise:this.#k,isEnabled:!1!==Lr(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==w.data,n="error"===w.status&&!t,o=e=>{n?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{const e=this.#k=w.promise=ln();o(e)},i=this.#k;switch(i.status){case"pending":e.queryHash===r.queryHash&&o(i);break;case"fulfilled":(n||w.data!==i.value)&&a();break;case"rejected":n&&w.error===i.reason||a()}}return w}updateResult(){const e=this.#N,t=this.createResult(this.#O,this.options);if(this.#E=this.#O.state,this.#P=this.options,void 0!==this.#E.data&&(this.#T=this.#O),Hr(t,e))return;this.#N=t;this.#B({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#I.size)return!0;const n=new Set(r??this.#I);return this.options.throwOnError&&n.add("error"),Object.keys(this.#N).some(t=>{const r=t;return this.#N[r]!==e[r]&&n.has(r)})})()})}#z(){const e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#O)return;const t=this.#O;this.#O=e,this.#S=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#L()}#B(e){nn.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#N)}),this.#d.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function za(e,t){return function(e,t){return!1!==Lr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===Lr(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Ua(e,t,t.refetchOnMount)}function Ua(e,t,r){if(!1!==Lr(t.enabled,e)&&"static"!==Mr(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Wa(e,t)}return!1}function qa(e,t,r,n){return(e!==t||!1===Lr(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Wa(e,r)}function Wa(e,t){return!1!==Lr(t.enabled,e)&&e.isStaleByTime(Mr(t.staleTime,e))}function Ba(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ha=i.createContext(Ba()),Za=i.createContext(!1),Ka=(Za.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function Ga(e,t,r){const n=i.useContext(Za),o=i.useContext(Ha),a=En(r),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const l=a.getQueryCache().get(s.queryHash);s._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?tn(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(s,o,l),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const c=!a.getQueryCache().get(s.queryHash),[u]=i.useState(()=>new t(a,s)),d=u.getOptimisticResult(s),f=!n&&!1!==e.subscribed;if(i.useSyncExternalStore(i.useCallback(e=>{const t=f?u.subscribe(nn.batchCalls(e)):Dr;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),i.useEffect(()=>{u.setOptions(s)},[s,u]),((e,t)=>e?.suspense&&t.isPending)(s,d))throw Ka(s,u,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||tn(r,[e.error,n])))({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw d.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!cn.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,n)){const e=c?Ka(s,u,o):l?.promise;e?.catch(Dr).finally(()=>{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}function Qa(e,t){return Ga(e,$a,t)}var Ja=class extends on{#d;#N=void 0;#H;#Z;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#d.defaultMutationOptions(e),Hr(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#H,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ur(t.mutationKey)!==Ur(this.options.mutationKey)?this.reset():"pending"===this.#H?.state.status&&this.#H.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#H?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#B(e)}getCurrentResult(){return this.#N}reset(){this.#H?.removeObserver(this),this.#H=void 0,this.#K(),this.#B()}mutate(e,t){return this.#Z=t,this.#H?.removeObserver(this),this.#H=this.#d.getMutationCache().build(this.#d,this.options),this.#H.addObserver(this),this.#H.execute(e)}#K(){const e=this.#H?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#N={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#B(e){nn.batch(()=>{if(this.#Z&&this.hasListeners()){const t=this.#N.variables,r=this.#N.context,n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#Z.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#Z.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#Z.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#Z.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#N)})})}};function Ya(e,t){const r=En(t),[n]=i.useState(()=>new Ja(r,e));i.useEffect(()=>{n.setOptions(e)},[n,e]);const o=i.useSyncExternalStore(i.useCallback(e=>n.subscribe(nn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=i.useCallback((e,t)=>{n.mutate(e,t).catch(Dr)},[n]);if(o.error&&tn(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Xa(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ei(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ei(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ei(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ei(d,"constructor",c),ei(c,"constructor",l),l.displayName="GeneratorFunction",ei(c,o,"GeneratorFunction"),ei(d),ei(d,o,"Generator"),ei(d,n,function(){return this}),ei(d,"toString",function(){return"[object Generator]"}),(Xa=function(){return{w:a,m:f}})()}function ei(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ei=function(e,t,r,n){function a(t,r){ei(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},ei(e,t,r,n)}function ti(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}var ni=function(e){return e instanceof File||e instanceof Blob},oi=function(e){return"string"==typeof e},ai=function(e){return"boolean"==typeof e},ii=function(e){return"number"==typeof e},si=function(e){for(var t=new FormData,r=function(){var r=o[n],a=e[r];Array.isArray(a)?a.forEach(function(e,n){ni(e)||oi(e)?t.append("".concat(r,"[").concat(n,"]"),e):ai(e)||ii(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===ri(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):ni(a)||oi(a)?t.append(r,a):ai(a)?t.append(r,a.toString()):ii(a)?t.append(r,"".concat(a)):"object"===ri(a)&&null!==a?t.append(r,JSON.stringify(a)):t.append(r,a)},n=0,o=Object.keys(e);n<o.length;n++)r();return t},li=function(e){return new Promise(function(t,r){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(function(){return t()}).catch(function(e){return r(e)});else{var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select();try{document.execCommand("copy"),t()}catch(e){r(e)}finally{document.body.removeChild(n)}}})},ci=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ti(a,n,o,i,s,"next",e)}function s(e){ti(a,n,o,i,s,"throw",e)}i(void 0)})}}(Xa().m(function e(t){return Xa().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,li(t);case 1:Cr.success((0,ca.__)("URL copied to clipboard!","versatile-toolkit")),e.n=3;break;case 2:e.p=2,e.v,Cr.error((0,ca.__)("Failed to copy URL","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return fi(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(fi(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,fi(d,"constructor",c),fi(c,"constructor",l),l.displayName="GeneratorFunction",fi(c,o,"GeneratorFunction"),fi(d),fi(d,o,"Generator"),fi(d,n,function(){return this}),fi(d,"toString",function(){return"[object Generator]"}),(di=function(){return{w:a,m:f}})()}function fi(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fi=function(e,t,r,n){function a(t,r){fi(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},fi(e,t,r,n)}function pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(r),!0).forEach(function(t){hi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function yi(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){mi(a,n,o,i,s,"next",e)}function s(e){mi(a,n,o,i,s,"throw",e)}i(void 0)})}}function gi(e,t){return bi.apply(this,arguments)}function bi(){return bi=yi(di().m(function e(t,r){var n,o,a,i,s,l,c,u,d,f,p,v,h;return di().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Va.wp_rest_nonce,a=Va.nonce_key,i=Va.nonce_value,s="".concat(t),l=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",c=vi({"X-WP-Nonce":o},r.headers||{}),u={method:l,headers:c},["GET","DELETE"].includes(l)?((d=new URLSearchParams(null==r?void 0:r.body)).append(a,i),s+="?".concat(d.toString())):r.body&&((f=si(r.body)).append(a,i),u.body=f),e.p=1,e.n=2,fetch(s,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(v=e.v).status_code){e.n=4;break}return e.a(2,v);case 4:throw new Error(v.message);case 5:e.n=7;break;case 6:throw e.p=6,h=e.v,new Error((null==h?void 0:h.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),bi.apply(this,arguments)}function xi(e,t){return wi.apply(this,arguments)}function wi(){return wi=yi(di().m(function e(t,r){var n,o,a,i,s,l,c,u,d;return di().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=Va.wp_rest_nonce,o=Va.nonce_key,a=Va.nonce_value,i="".concat(t),s={method:r.method||"POST",headers:vi({"X-WP-Nonce":n},r.headers||{}),body:r.body},r.body&&((l=si(r.body)).append(o,a),s.body=l),e.p=1,e.n=2,fetch(i,s);case 2:return c=e.v,e.n=3,c.json();case 3:if(200!==(u=e.v).status_code){e.n=4;break}return e.a(2,u);case 4:throw new Error(u.message);case 5:e.n=7;break;case 6:throw e.p=6,d=e.v,new Error((null==d?void 0:d.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),wi.apply(this,arguments)}function ji(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return _i(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_i(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_i(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_i(d,"constructor",c),_i(c,"constructor",l),l.displayName="GeneratorFunction",_i(c,o,"GeneratorFunction"),_i(d),_i(d,o,"Generator"),_i(d,n,function(){return this}),_i(d,"toString",function(){return"[object Generator]"}),(ji=function(){return{w:a,m:f}})()}function _i(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_i=function(e,t,r,n){function a(t,r){_i(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},_i(e,t,r,n)}function ki(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Oi(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ki(a,n,o,i,s,"next",e)}function s(e){ki(a,n,o,i,s,"throw",e)}i(void 0)})}}var Si=function(){return Qa({queryKey:["getMoodInfo"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_mood_info",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Ni=function(){return Qa({queryKey:["getEnableServiceList"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_enable_service_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};function Ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ci=function(){var e=Ni(),t=e.data,r=e.isLoading,n=null==t?void 0:t.data;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)("div",{className:"vt-mt-10 vt-grid vt-grid-cols-[repeat(auto-fill,minmax(300px,1fr))] vt-gap-3",children:r?(0,Sn.jsx)(ua,{lines:3,height:"vt-h-[100px]",width:"vt-w-[900px]"}):n&&Object.entries(n).filter(function(e){var t=Ei(e,2),r=t[0];return t[1].enable&&"quickact"!==r}).map(function(e){var t=Ei(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Ra,{className:"hover:vt-bg-gray-100 vt-rounded-sm",children:(0,Sn.jsxs)(kt,{to:"/".concat(n.path),className:"vt-block vt-p-3",children:[(0,Sn.jsx)(Ta,{className:"vt-p-0",children:(0,Sn.jsx)(Aa,{className:"vt-text-xl",children:n.label})}),(0,Sn.jsx)(Da,{className:"vt-p-0 vt-pt-2",children:(0,Sn.jsx)("p",{children:n.description})})]})},r)})})})};function Ri(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ti(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Ri(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Ri(e[t],null)}}}}function Ai(...e){return i.useCallback(Ti(...e),e)}var Di=Symbol.for("react.lazy"),Fi=s[" use ".trim().toString()];function Ii(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Di&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Mi(e){const t=Vi(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;Ii(n)&&"function"==typeof Fi&&(n=Fi(n._payload));const a=i.Children.toArray(n),s=a.find(zi);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var Li=Mi("Slot");function Vi(e){const t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(Ii(r)&&"function"==typeof Fi&&(r=Fi(r._payload)),i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol("radix.slottable");function zi(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===$i}const Ui=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,qi=Rn,Wi=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return qi(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;const i=Ui(t)||Ui(n);return o[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...s}[t]):{...a,...s}[t]===r})?[...e,r,n]:e},[]);return qi(e,i,l,null==r?void 0:r.class,null==r?void 0:r.className)};function Bi(e){return Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(e)}var Hi=["className","variant","size","asChild"];function Zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ki(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Bi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gi=Wi("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),Qi=i.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,a=e.asChild,i=void 0!==a&&a,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Hi),l=i?Li:"button";return(0,Sn.jsx)(l,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach(function(t){Ki(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la(Gi({variant:n,size:o,className:r})),ref:t},s))});function Ji(e){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(e)}Qi.displayName="Button";var Yi=["className","variant"];function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function es(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ji(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ji(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ts=Wi("vt-inline-flex vt-items-center vt-rounded-full vt-px-2.5 vt-py-0.5 vt-text-xs vt-font-semibold vt-transition-colors focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground hover:vt-bg-primary/80",success:"vt-bg-green-100 vt-text-green-800 hover:vt-bg-green-200/80",destructive:"vt-bg-destructive vt-text-destructive-foreground hover:vt-bg-destructive/80",outline:"vt-text-foreground vt-border vt-border-input vt-bg-background hover:vt-bg-accent hover:vt-text-accent-foreground"}},defaultVariants:{variant:"default"}});function rs(e){var t=e.className,r=e.variant,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Yi);return(0,Sn.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach(function(t){es(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la(ts({variant:r}),t)},n))}var ns=.999,os=/[\\\/_+.#"@\[\(\{&]/,as=/[\\\/_+.#"@\[\(\{&]/g,is=/[\s-]/,ss=/[\s-]/g;function ls(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,f=n.charAt(a),p=r.indexOf(f,o),v=0;p>=0;)(l=ls(e,t,r,n,p+1,a+1,i))>v&&(p===o?l*=1:os.test(e.charAt(p-1))?(l*=.8,(u=e.slice(o,p-1).match(as))&&o>0&&(l*=Math.pow(ns,u.length))):is.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(ss))&&o>0&&(l*=Math.pow(ns,d.length))):(l*=.17,o>0&&(l*=Math.pow(ns,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&r.charAt(p-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(p-1)!==n.charAt(a))&&(.1*(c=ls(e,t,r,n,p+1,a+2,i))>l&&(l=.1*c)),l>v&&(v=l),p=r.indexOf(f,p+1);return i[s]=v,v}function cs(e){return e.toLowerCase().replace(ss," ")}function us(e,t,r){return ls(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,cs(e),cs(t),0,0,{})}"undefined"==typeof window||!window.document||window.document.createElement;function ds(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function fs(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>i.createContext(e));return function(r){const n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){const o=i.createContext(n),a=r.length;r=[...r,n];const s=t=>{const{scope:r,children:n,...s}=t,l=r?.[e]?.[a]||o,c=i.useMemo(()=>s,Object.values(s));return(0,Sn.jsx)(l.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,s){const l=s?.[e]?.[a]||o,c=i.useContext(l);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},ps(n,...t)]}function ps(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}var vs=globalThis?.document?i.useLayoutEffect:()=>{},hs=s[" useId ".trim().toString()]||(()=>{}),ms=0;function ys(e){const[t,r]=i.useState(hs());return vs(()=>{e||r(e=>e??String(ms++))},[e]),e||(t?`radix-${t}`:"")}var gs=s[" useInsertionEffect ".trim().toString()]||vs;function bs({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=function({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return gs(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:o;{const t=i.useRef(void 0!==e);i.useEffect(()=>{const e=t.current;if(e!==l){}t.current=l},[l,n])}const u=i.useCallback(t=>{if(l){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&s.current?.(r)}else a(t)},[l,e,a,s]);return[c,u]}Symbol("RADIX:SYNC_STATE");var xs=o(206);function ws(e){const t=js(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(ks);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function js(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _s=Symbol("radix.slottable");function ks(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_s}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=ws(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...a}=e,i=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Sn.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ss(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ns,Es="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",Cs="dismissableLayer.focusOutside",Rs=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ts=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=i.useContext(Rs),[d,f]=i.useState(null),p=d?.ownerDocument??globalThis?.document,[,v]=i.useState({}),h=Ai(t,e=>f(e)),m=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=d?m.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,j=function(e,t=globalThis?.document){const r=Ss(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){Fs(Ps,r,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));w&&!r&&(o?.(e),s?.(e),e.defaultPrevented||l?.())},p),_=function(e,t=globalThis?.document){const r=Ss(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){Fs(Cs,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},p);return function(e,t=globalThis?.document){const r=Ss(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{b===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),i.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ds(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Ns)}},[d,p,r,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ds())},[d,u]),i.useEffect(()=>{const e=()=>v({});return document.addEventListener(Es,e),()=>document.removeEventListener(Es,e)},[]),(0,Sn.jsx)(Os.div,{...c,ref:h,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:ds(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ds(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ds(e.onPointerDownCapture,j.onPointerDownCapture)})});Ts.displayName="DismissableLayer";var As=i.forwardRef((e,t)=>{const r=i.useContext(Rs),n=i.useRef(null),o=Ai(t,n);return i.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,Sn.jsx)(Os.div,{...e,ref:o})});function Ds(){const e=new CustomEvent(Es);document.dispatchEvent(e)}function Fs(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&xs.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}As.displayName="DismissableLayerBranch";var Is="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",Ls={bubbles:!1,cancelable:!0},Vs=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,c]=i.useState(null),u=Ss(o),d=Ss(a),f=i.useRef(null),p=Ai(t,e=>c(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(v.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:qs(f.current,{select:!0})},t=function(e){if(v.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||qs(f.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qs(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,l,v.paused]),i.useEffect(()=>{if(l){Ws.add(v);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(Is,Ls);l.addEventListener(Is,u),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(qs(n,{select:t}),document.activeElement!==r)return}((e=$s(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&qs(l))}return()=>{l.removeEventListener(Is,u),setTimeout(()=>{const e=new CustomEvent(Ms,Ls);l.addEventListener(Ms,d),l.dispatchEvent(e),e.defaultPrevented||qs(t??document.body,{select:!0}),l.removeEventListener(Ms,d),Ws.remove(v)},0)}}var e},[l,u,d,v]);const h=i.useCallback(e=>{if(!r&&!n)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,a]=function(e){const t=$s(e),r=zs(t,e),n=zs(t.reverse(),e);return[r,n]}(t);n&&a?e.shiftKey||o!==a?e.shiftKey&&o===n&&(e.preventDefault(),r&&qs(a,{select:!0})):(e.preventDefault(),r&&qs(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,v.paused]);return(0,Sn.jsx)(Os.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});function $s(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zs(e,t){for(const r of e)if(!Us(r,{upTo:t}))return r}function Us(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function qs(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Vs.displayName="FocusScope";var Ws=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Bs(e,t),e.unshift(t)},remove(t){e=Bs(e,t),e[0]?.resume()}}}();function Bs(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Hs=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);vs(()=>a(!0),[]);const s=r||o&&globalThis?.document?.body;return s?xs.createPortal((0,Sn.jsx)(Os.div,{...n,ref:t}),s):null});Hs.displayName="Portal";var Zs=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return i.useReducer((e,r)=>t[e][r]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const e=Ks(n.current);a.current="mounted"===l?e:"none"},[l]),vs(()=>{const t=n.current,r=o.current;if(r!==e){const n=a.current,i=Ks(t);if(e)c("MOUNT");else if("none"===i||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,c]),vs(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,i=a=>{const i=Ks(n.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},s=e=>{e.target===t&&(a.current=Ks(n.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),a=Ai(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:a}):null};function Ks(e){return e?.animationName||"none"}Zs.displayName="Presence";var Gs=0;function Qs(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Js()),document.body.insertAdjacentElement("beforeend",e[1]??Js()),Gs++,()=>{1===Gs&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Gs--}},[])}function Js(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ys=function(){return Ys=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ys.apply(this,arguments)};function Xs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function el(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var tl="right-scroll-bar-position",rl="width-before-scroll-bar";function nl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ol="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,al=new WeakMap;function il(e,t){var r,n,o,a=(r=t||null,n=function(t){return e.forEach(function(e){return nl(e,t)})},(o=(0,i.useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return ol(function(){var t=al.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||nl(e,null)}),n.forEach(function(e){r.has(e)||nl(e,o)})}al.set(a,e)},[e]),a}function sl(e){return e}function ll(e,t){void 0===t&&(t=sl);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}};return o}var cl=function(e){void 0===e&&(e={});var t=ll(null);return t.options=Ys({async:!0,ssr:!1},e),t}(),ul=function(){},dl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,x=e.gapMode,w=Xs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,_=il([r,t]),k=Ys(Ys({},w),o);return i.createElement(i.Fragment,null,d&&i.createElement(j,{sideCar:cl,removeScrollBar:u,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:x}),s?i.cloneElement(i.Children.only(l),Ys(Ys({},k),{ref:_})):i.createElement(b,Ys({},k,{className:c,ref:_}),l))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dl.classNames={fullWidth:rl,zeroRight:tl};var fl,pl=function(e){var t=e.sideCar,r=Xs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Ys({},r))};pl.isSideCarExport=!0;function vl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fl||o.nc;return t&&e.setAttribute("nonce",t),e}var hl=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=vl())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ml=function(){var e,t=(e=hl(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},yl={left:0,top:0,right:0,gap:0},gl=function(e){return parseInt(e||"",10)||0},bl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return yl;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[gl(r),gl(n),gl(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},xl=ml(),wl="data-scroll-locked",jl=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(wl,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tl," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(rl," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(tl," .").concat(tl," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(rl," .").concat(rl," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(wl,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},_l=function(){var e=parseInt(document.body.getAttribute(wl)||"0",10);return isFinite(e)?e:0},kl=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(wl,(_l()+1).toString()),function(){var e=_l()-1;e<=0?document.body.removeAttribute(wl):document.body.setAttribute(wl,e.toString())}},[]);var a=i.useMemo(function(){return bl(o)},[o]);return i.createElement(xl,{styles:jl(a,!t,o,r?"":"!important")})},Ol=!1;if("undefined"!=typeof window)try{var Sl=Object.defineProperty({},"passive",{get:function(){return Ol=!0,!0}});window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch(e){Ol=!1}var Nl=!!Ol&&{passive:!1},El=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Pl=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Cl(e,n)){var o=Rl(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Cl=function(e,t){return"v"===e?function(e){return El(e,"overflowY")}(t):function(e){return El(e,"overflowX")}(t)},Rl=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Al=function(e){return[e.deltaX,e.deltaY]},Dl=function(e){return e&&"current"in e?e.current:e},Fl=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Il=0,Ml=[];function Ll(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vl=($l=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Il++)[0],a=i.useState(ml)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=el([e.lockRef.current],(e.shards||[]).map(Dl),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,a=Tl(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var v=Pl(d,u);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=Pl(d,u)),!v)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var h=n.current||o;return function(e,t,r,n,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,l=t.contains(s),c=!1,u=i>0,d=0,f=0;do{if(!s)break;var p=Rl(e,s),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&Cl(e,s)&&(d+=h,f+=v);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),c=i.useCallback(function(e){var r=e;if(Ml.length&&Ml[Ml.length-1]===a){var n="deltaY"in r?Al(r):Tl(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Dl).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?l(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:Ll(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){r.current=Tl(e),n.current=void 0},[]),f=i.useCallback(function(t){u(t.type,Al(t),t.target,l(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,Tl(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return Ml.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Nl),document.addEventListener("touchmove",c,Nl),document.addEventListener("touchstart",d,Nl),function(){Ml=Ml.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,Nl),document.removeEventListener("touchmove",c,Nl),document.removeEventListener("touchstart",d,Nl)}},[]);var v=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(a,{styles:Fl(o)}):null,v?i.createElement(kl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},cl.useMedium($l),pl);var $l,zl=i.forwardRef(function(e,t){return i.createElement(dl,Ys({},e,{ref:t,sideCar:Vl}))});zl.classNames=dl.classNames;const Ul=zl;var ql=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Wl=new WeakMap,Bl=new WeakMap,Hl={},Zl=0,Kl=function(e){return e&&(e.host||Kl(e.parentNode))},Gl=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Kl(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Hl[r]||(Hl[r]=new WeakMap);var a=Hl[r],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(Wl.get(e)||0)+1,c=(a.get(e)||0)+1;Wl.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Bl.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),s.clear(),Zl++,function(){i.forEach(function(e){var t=Wl.get(e)-1,o=a.get(e)-1;Wl.set(e,t),a.set(e,o),t||(Bl.has(e)||e.removeAttribute(n),Bl.delete(e)),o||e.removeAttribute(r)}),--Zl||(Wl=new WeakMap,Wl=new WeakMap,Bl=new WeakMap,Hl={})}},Ql=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||ql(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Gl(n,o,r,"aria-hidden")):function(){return null}};function Jl(e){const t=Yl(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(ec);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Yl(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xl=Symbol("radix.slottable");function ec(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xl}var tc="Dialog",[rc,nc]=fs(tc),[oc,ac]=rc(tc),ic=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=i.useRef(null),c=i.useRef(null),[u,d]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:tc});return(0,Sn.jsx)(oc,{scope:t,triggerRef:l,contentRef:c,contentId:ys(),titleId:ys(),descriptionId:ys(),open:u,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};ic.displayName=tc;var sc="DialogTrigger",lc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(sc,r),a=Ai(t,o.triggerRef);return(0,Sn.jsx)(Os.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ec(o.open),...n,ref:a,onClick:ds(e.onClick,o.onOpenToggle)})});lc.displayName=sc;var cc="DialogPortal",[uc,dc]=rc(cc,{forceMount:void 0}),fc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ac(cc,t);return(0,Sn.jsx)(uc,{scope:t,forceMount:r,children:i.Children.map(n,e=>(0,Sn.jsx)(Zs,{present:r||a.open,children:(0,Sn.jsx)(Hs,{asChild:!0,container:o,children:e})}))})};fc.displayName=cc;var pc="DialogOverlay",vc=i.forwardRef((e,t)=>{const r=dc(pc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ac(pc,e.__scopeDialog);return a.modal?(0,Sn.jsx)(Zs,{present:n||a.open,children:(0,Sn.jsx)(mc,{...o,ref:t})}):null});vc.displayName=pc;var hc=Jl("DialogOverlay.RemoveScroll"),mc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(pc,r);return(0,Sn.jsx)(Ul,{as:hc,allowPinchZoom:!0,shards:[o.contentRef],children:(0,Sn.jsx)(Os.div,{"data-state":Ec(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),yc="DialogContent",gc=i.forwardRef((e,t)=>{const r=dc(yc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ac(yc,e.__scopeDialog);return(0,Sn.jsx)(Zs,{present:n||a.open,children:a.modal?(0,Sn.jsx)(bc,{...o,ref:t}):(0,Sn.jsx)(xc,{...o,ref:t})})});gc.displayName=yc;var bc=i.forwardRef((e,t)=>{const r=ac(yc,e.__scopeDialog),n=i.useRef(null),o=Ai(t,r.contentRef,n);return i.useEffect(()=>{const e=n.current;if(e)return Ql(e)},[]),(0,Sn.jsx)(wc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ds(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ds(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:ds(e.onFocusOutside,e=>e.preventDefault())})}),xc=i.forwardRef((e,t)=>{const r=ac(yc,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return(0,Sn.jsx)(wc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=r.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),wc=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=ac(yc,r),c=i.useRef(null),u=Ai(t,c);return Qs(),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Vs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,Sn.jsx)(Ts,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ec(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Tc,{titleId:l.titleId}),(0,Sn.jsx)(Ac,{contentRef:c,descriptionId:l.descriptionId})]})]})}),jc="DialogTitle",_c=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(jc,r);return(0,Sn.jsx)(Os.h2,{id:o.titleId,...n,ref:t})});_c.displayName=jc;var kc="DialogDescription",Oc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(kc,r);return(0,Sn.jsx)(Os.p,{id:o.descriptionId,...n,ref:t})});Oc.displayName=kc;var Sc="DialogClose",Nc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(Sc,r);return(0,Sn.jsx)(Os.button,{type:"button",...n,ref:t,onClick:ds(e.onClick,()=>o.onOpenChange(!1))})});function Ec(e){return e?"open":"closed"}Nc.displayName=Sc;var Pc="DialogTitleWarning",[Cc,Rc]=function(e,t){const r=i.createContext(t),n=e=>{const{children:t,...n}=e,o=i.useMemo(()=>n,Object.values(n));return(0,Sn.jsx)(r.Provider,{value:o,children:t})};return n.displayName=e+"Provider",[n,function(n){const o=i.useContext(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}]}(Pc,{contentName:yc,titleName:jc,docsSlug:"dialog"}),Tc=({titleId:e})=>{const t=Rc(Pc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{if(e){document.getElementById(e)}},[r,e]),null},Ac=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rc("DialogDescriptionWarning").contentName}}.`;return i.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)}},[r,e,t]),null},Dc=ic,Fc=lc,Ic=fc,Mc=vc,Lc=gc,Vc=_c,$c=Oc,zc=Nc,Uc='[cmdk-group=""]',qc='[cmdk-group-items=""]',Wc='[cmdk-item=""]',Bc=`${Wc}:not([aria-disabled="true"])`,Hc="cmdk-item-select",Zc="data-value",Kc=(e,t,r)=>us(e,t,r),Gc=i.createContext(void 0),Qc=()=>i.useContext(Gc),Jc=i.createContext(void 0),Yc=()=>i.useContext(Jc),Xc=i.createContext(void 0),eu=i.forwardRef((e,t)=>{let r=vu(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=vu(()=>new Set),o=vu(()=>new Map),a=vu(()=>new Map),s=vu(()=>new Set),l=fu(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=ys(),x=ys(),w=ys(),j=i.useRef(null),_=yu();pu(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,k.emit()}},[d]),pu(()=>{_(6,C)},[]);let k=i.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,a,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)P(),N(),_(1,E);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(_(7,()=>{var e;r.current.selectedItemId=null==(e=R())?void 0:e.id,k.emit()}),n||_(5,C),void 0!==(null==(a=l.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(s=(i=l.current).onValueChange)||s.call(i,e))}}k.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),O=i.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,S(t,n)),_(2,()=>{N(),k.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,()=>{P(),N(),r.current.value||E(),k.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=R();_(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&E(),k.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:w,labelId:x,listInnerRef:j}),[]);function S(e,t){var n,o;let a=null!=(o=null==(n=l.current)?void 0:n.filter)?o:Kc;return e?a(e,r.current.search,t):0}function N(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),a=0;n.forEach(t=>{let r=e.get(t);a=Math.max(r,a)}),t.push([r,a])});let n=j.current;T().sort((t,r)=>{var n,o;let a=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(qc);t?t.appendChild(e.parentElement===t?e:e.closest(`${qc} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${qc} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=j.current)?void 0:t.querySelector(`${Uc}[${Zc}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function E(){let e=T().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Zc);k.setState("value",t||void 0)}function P(){var e,t,i,s;if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let c=0;for(let o of n.current){let n=S(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=a.current.get(o))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(o,n),n>0&&c++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function C(){var e,t,r;let n=R();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(Uc))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=j.current)?void 0:e.querySelector(`${Wc}[aria-selected="true"]`)}function T(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(Bc))||[])}function A(e){let t=T()[e];t&&k.setState("value",t.getAttribute(Zc))}function D(e){var t;let r=R(),n=T(),o=n.findIndex(e=>e===r),a=n[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),a&&k.setState("value",a.getAttribute(Zc))}function F(e){let t,r=R(),n=null==r?void 0:r.closest(Uc);for(;n&&!t;)n=e>0?uu(n,Uc):du(n,Uc),t=null==n?void 0:n.querySelector(Bc);t?k.setState("value",t.getAttribute(Zc)):D(e)}let I=()=>A(T().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):D(1)},L=e=>{e.preventDefault(),e.metaKey?A(0):e.altKey?F(-1):D(-1)};return i.createElement(Os.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":y&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":y&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),A(0);break;case"End":e.preventDefault(),I();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Hc);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:bu},c),gu(e,e=>i.createElement(Jc.Provider,{value:k},i.createElement(Gc.Provider,{value:O},e))))}),tu=i.forwardRef((e,t)=>{var r,n;let o=ys(),a=i.useRef(null),s=i.useContext(Xc),l=Qc(),c=fu(e),u=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;pu(()=>{if(!u)return l.item(o,null==s?void 0:s.id)},[u]);let d=mu(o,a,[e.value,e.children,a],e.keywords),f=Yc(),p=hu(e=>e.value&&e.value===d.current),v=hu(e=>!(!u&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(i.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(Hc,h),()=>t.removeEventListener(Hc,h)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:y,value:g,onSelect:b,forceMount:x,keywords:w,...j}=e;return i.createElement(Os.div,{ref:Ti(a,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:m,onClick:y?void 0:h},e.children)}),ru=i.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ys(),l=i.useRef(null),c=i.useRef(null),u=ys(),d=Qc(),f=hu(e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(s)));pu(()=>d.group(s),[]),mu(s,l,[e.value,e.heading,c]);let p=i.useMemo(()=>({id:s,forceMount:o}),[o]);return i.createElement(Os.div,{ref:Ti(l,t),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),gu(e,e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},i.createElement(Xc.Provider,{value:p},e))))}),nu=i.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=i.useRef(null),a=hu(e=>!e.search);return r||a?i.createElement(Os.div,{ref:Ti(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),ou=i.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,a=Yc(),s=hu(e=>e.search),l=hu(e=>e.selectedItemId),c=Qc();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement(Os.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),au=i.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=i.useRef(null),s=i.useRef(null),l=hu(e=>e.selectedItemId),c=Qc();return i.useEffect(()=>{if(s.current&&a.current){let e,t=s.current,r=a.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),i.createElement(Os.div,{ref:Ti(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},gu(e,e=>i.createElement("div",{ref:Ti(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),iu=i.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...l}=e;return i.createElement(Dc,{open:r,onOpenChange:n},i.createElement(Ic,{container:s},i.createElement(Mc,{"cmdk-overlay":"",className:o}),i.createElement(Lc,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(eu,{ref:t,...l}))))}),su=i.forwardRef((e,t)=>hu(e=>0===e.filtered.count)?i.createElement(Os.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),lu=i.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return i.createElement(Os.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},gu(e,e=>i.createElement("div",{"aria-hidden":!0},e)))}),cu=Object.assign(eu,{List:au,Item:tu,Input:ou,Group:ru,Separator:nu,Dialog:iu,Empty:su,Loading:lu});function uu(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function du(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function fu(e){let t=i.useRef(e);return pu(()=>{t.current=e}),t}var pu="undefined"==typeof window?i.useEffect:i.useLayoutEffect;function vu(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function hu(e){let t=Yc(),r=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,r,r)}function mu(e,t,r,n=[]){let o=i.useRef(),a=Qc();return pu(()=>{var i;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=n.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(Zc,s),o.current=s}),o}var yu=()=>{let[e,t]=i.useState(),r=vu(()=>new Map);return pu(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function gu({asChild:e,children:t},r){return e&&i.isValidElement(t)?i.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var bu={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const xu=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var wu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ju=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...l},c)=>(0,i.createElement)("svg",{ref:c,...wu,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:xu("lucide",o),...l},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_u=(e,t)=>{const r=(0,i.forwardRef)(({className:r,...n},o)=>{return(0,i.createElement)(ju,{ref:o,iconNode:t,className:xu(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var a});return r.displayName=`${e}`,r},ku=_u("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ou=_u("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}var Nu=["className"],Eu=["className","children"],Pu=["className"],Cu=["className"],Ru=["className"],Tu=["className"];function Au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Du(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Au(Object(r),!0).forEach(function(t){Fu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Au(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Su(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Mu="vt-absolute vt-top-4 vt-right-4 vt-p-2 vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-50 hover:vt-bg-accent hover:vt-text-accent-foreground",Lu=Dc,Vu=Fc,$u=Ic,zu=zc,Uu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Nu);return(0,Sn.jsx)(Mc,Du({ref:t,className:la("vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0",r)},n))});Uu.displayName=Mc.displayName;var qu=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Iu(e,Eu);return(0,Sn.jsxs)($u,{children:[(0,Sn.jsx)(Uu,{}),(0,Sn.jsxs)(Lc,Du(Du({ref:t,className:la("vt-fixed vt-left-[50%] vt-top-[50%] vt-grid vt-w-full vt-translate-x-[-50%] vt-translate-y-[-50%] vt-gap-4 vt-border vt-bg-background vt-p-6 vt-shadow-lg vt-duration-200 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0 vt-data-[state=closed]:vt-zoom-out-95 vt-data-[state=open]:vt-zoom-in-95 vt-data-[state=closed]:vt-slide-out-to-left-1/2 vt-data-[state=closed]:vt-slide-out-to-top-[48%] vt-data-[state=open]:vt-slide-in-from-left-1/2 vt-data-[state=open]:vt-slide-in-from-top-[48%] sm:vt-rounded-lg","vt-max-w-4xl vt-z-[99999]",r)},o),{},{children:[n,(0,Sn.jsxs)(zc,{className:Mu,children:[(0,Sn.jsx)(Ou,{size:16}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Close","trigger")})]})]}))]})});qu.displayName=Lc.displayName;var Wu=function(e){var t=e.className,r=Iu(e,Pu);return(0,Sn.jsx)("div",Du({className:la("vt-flex vt-flex-col vt-space-y-1.5 vt-text-center sm:vt-text-left",t)},r))};Wu.displayName="DialogHeader";var Bu=function(e){var t=e.className,r=Iu(e,Cu);return(0,Sn.jsx)("div",Du({className:la("vt-flex vt-flex-col-reverse sm:vt-flex-row sm:vt-justify-end sm:vt-space-x-2",t)},r))};Bu.displayName="DialogFooter";var Hu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Ru);return(0,Sn.jsx)(Vc,Du({ref:t,className:la("vt-text-lg vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Hu.displayName=Vc.displayName;var Zu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Tu);return(0,Sn.jsx)($c,Du({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))});function Ku(e){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(e)}Zu.displayName=$c.displayName;var Gu=["className"],Qu=["className"],Ju=["className"],Yu=["className"],Xu=["className"],ed=["className"];function td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?td(Object(r),!0).forEach(function(t){nd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ku(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ku(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ku(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function od(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ad=i.forwardRef(function(e,t){var r=e.className,n=od(e,Gu);return(0,Sn.jsx)(cu,rd({ref:t,className:la("vt-flex vt-h-full vt-w-full vt-flex-col vt-overflow-hidden vt-rounded-md vt-bg-popover vt-text-popover-foreground",r)},n))});ad.displayName=cu.displayName;var id=i.forwardRef(function(e,t){var r=e.className,n=od(e,Qu);return(0,Sn.jsxs)("div",{className:"vt-relative vt-flex vt-items-center vt-border-b vt-pb-2","cmdk-input-wrapper":"",children:[(0,Sn.jsx)(ku,{className:"vt-absolute vt-left-2 vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"}),(0,Sn.jsx)(cu.Input,rd({ref:t,className:la("vt-flex vt-h-10 vt-w-full vt-rounded-md vt-bg-transparent vt-py-3 vt-pl-7 vt-text-sm vt-outline-none vt-placeholder:vt-text-muted-foreground disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},n))]})});id.displayName=cu.Input.displayName;var sd=i.forwardRef(function(e,t){var r=e.className,n=od(e,Ju);return(0,Sn.jsx)(cu.List,rd({ref:t,className:la("vt-max-h-[300px] vt-pt-2 vt-overflow-y-auto vt-overflow-x-hidden",r)},n))});sd.displayName=cu.List.displayName;var ld=i.forwardRef(function(e,t){return(0,Sn.jsx)(cu.Empty,rd({ref:t,className:"vt-py-6 vt-text-center vt-text-sm"},e))});ld.displayName=cu.Empty.displayName;var cd=i.forwardRef(function(e,t){var r=e.className,n=od(e,Yu);return(0,Sn.jsx)(cu.Group,rd({ref:t,className:la("vt-overflow-hidden vt-p-1 vt-text-foreground [&_[cmdk-group-heading]]:vt-px-2 [&_[cmdk-group-heading]]:vt-py-1.5 [&_[cmdk-group-heading]]:vt-text-xs [&_[cmdk-group-heading]]:vt-font-medium [&_[cmdk-group-heading]]:vt-text-muted-foreground",r)},n))});cd.displayName=cu.Group.displayName,i.forwardRef(function(e,t){var r=e.className,n=od(e,Xu);return(0,Sn.jsx)(cu.Separator,rd({ref:t,className:la("vt-mx-1 vt-h-px vt-bg-border",r)},n))}).displayName=cu.Separator.displayName;var ud=i.forwardRef(function(e,t){var r=e.className,n=od(e,ed);return(0,Sn.jsx)(cu.Item,rd({ref:t,className:la("vt-relative vt-flex vt-cursor-default vt-gap-2 vt-select-none vt-items-center vt-rounded-sm vt-px-2 vt-py-1.5 vt-text-sm vt-outline-none data-[disabled=true]:vt-pointer-events-none data-[selected=true]:vt-bg-accent data-[selected=true]:vt-text-accent-foreground data-[disabled=true]:vt-opacity-50 [&_svg]:vt-pointer-events-none [&_svg]:vt-size-4 [&_svg]:vt-shrink-0",r)},n))});ud.displayName=cu.Item.displayName;const dd=["top","right","bottom","left"],fd=Math.min,pd=Math.max,vd=Math.round,hd=Math.floor,md=e=>({x:e,y:e}),yd={left:"right",right:"left",bottom:"top",top:"bottom"};function gd(e,t,r){return pd(e,fd(t,r))}function bd(e,t){return"function"==typeof e?e(t):e}function xd(e){return e.split("-")[0]}function wd(e){return e.split("-")[1]}function jd(e){return"x"===e?"y":"x"}function _d(e){return"y"===e?"height":"width"}function kd(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Od(e){return jd(kd(e))}function Sd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Nd=["left","right"],Ed=["right","left"],Pd=["top","bottom"],Cd=["bottom","top"];function Rd(e,t,r,n){const o=wd(e);let a=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Ed:Nd:t?Nd:Ed;case"left":case"right":return t?Pd:Cd;default:return[]}}(xd(e),"start"===r,n);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Sd)))),a}function Td(e){const t=xd(e);return yd[t]+e.slice(t.length)}function Ad(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Dd(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Fd(e,t,r){let{reference:n,floating:o}=e;const a=kd(t),i=Od(t),s=_d(i),l=xd(t),c="y"===a,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(wd(t)){case"start":p[i]-=f*(r&&c?-1:1);break;case"end":p[i]+=f*(r&&c?-1:1)}return p}async function Id(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bd(t,e),v=Ad(p),h=s[f?"floating"===d?"reference":"floating":d],m=Dd(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(h)))||r?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(g))&&await(null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},x=Dd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-x.top+v.top)/b.y,bottom:(x.bottom-m.bottom+v.bottom)/b.y,left:(m.left-x.left+v.left)/b.x,right:(x.right-m.right+v.right)/b.x}}function Md(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ld(e){return dd.some(t=>e[t]>=0)}const Vd=new Set(["left","top"]);function $d(){return"undefined"!=typeof window}function zd(e){return Wd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ud(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qd(e){var t;return null==(t=(Wd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wd(e){return!!$d()&&(e instanceof Node||e instanceof Ud(e).Node)}function Bd(e){return!!$d()&&(e instanceof Element||e instanceof Ud(e).Element)}function Hd(e){return!!$d()&&(e instanceof HTMLElement||e instanceof Ud(e).HTMLElement)}function Zd(e){return!(!$d()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ud(e).ShadowRoot)}function Kd(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=of(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Gd(e){return/^(table|td|th)$/.test(zd(e))}function Qd(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Jd=/transform|translate|scale|rotate|perspective|filter/,Yd=/paint|layout|strict|content/,Xd=e=>!!e&&"none"!==e;let ef;function tf(e){const t=Bd(e)?of(e):e;return Xd(t.transform)||Xd(t.translate)||Xd(t.scale)||Xd(t.rotate)||Xd(t.perspective)||!rf()&&(Xd(t.backdropFilter)||Xd(t.filter))||Jd.test(t.willChange||"")||Yd.test(t.contain||"")}function rf(){return null==ef&&(ef="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ef}function nf(e){return/^(html|body|#document)$/.test(zd(e))}function of(e){return Ud(e).getComputedStyle(e)}function af(e){return Bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sf(e){if("html"===zd(e))return e;const t=e.assignedSlot||e.parentNode||Zd(e)&&e.host||qd(e);return Zd(t)?t.host:t}function lf(e){const t=sf(e);return nf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hd(t)&&Kd(t)?t:lf(t)}function cf(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=lf(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Ud(o);if(a){const e=uf(i);return t.concat(i,i.visualViewport||[],Kd(o)?o:[],e&&r?cf(e):[])}return t.concat(o,cf(o,[],r))}function uf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function df(e){const t=of(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Hd(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=vd(r)!==a||vd(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ff(e){return Bd(e)?e:e.contextElement}function pf(e){const t=ff(e);if(!Hd(t))return md(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=df(t);let i=(a?vd(r.width):r.width)/n,s=(a?vd(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const vf=md(0);function hf(e){const t=Ud(e);return rf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:vf}function mf(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),a=ff(e);let i=md(1);t&&(n?Bd(n)&&(i=pf(n)):i=pf(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ud(e))&&t}(a,r,n)?hf(a):md(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Ud(a),t=n&&Bd(n)?Ud(n):n;let r=e,o=uf(r);for(;o&&n&&t!==r;){const e=pf(o),t=o.getBoundingClientRect(),n=of(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,r=Ud(o),o=uf(r)}}return Dd({width:u,height:d,x:l,y:c})}function yf(e,t){const r=af(e).scrollLeft;return t?t.left+r:mf(qd(e)).left+r}function gf(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-yf(e,r),y:r.top+t.scrollTop}}function bf(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Ud(e),n=qd(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=rf();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=yf(n);if(c<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=qd(e),r=af(e),n=e.ownerDocument.body,o=pd(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=pd(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+yf(e);const s=-r.scrollTop;return"rtl"===of(n).direction&&(i+=pd(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}(qd(e));else if(Bd(t))n=function(e,t){const r=mf(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Hd(e)?pf(e):md(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{const r=hf(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Dd(n)}function xf(e,t){const r=sf(e);return!(r===t||!Bd(r)||nf(r))&&("fixed"===of(r).position||xf(r,t))}function wf(e,t,r){const n=Hd(t),o=qd(t),a="fixed"===r,i=mf(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=md(0);function c(){l.x=yf(o)}if(n||!n&&!a)if(("body"!==zd(t)||Kd(o))&&(s=af(t)),n){const e=mf(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!n&&o&&c();const u=!o||n||a?md(0):gf(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function jf(e){return"static"===of(e).position}function _f(e,t){if(!Hd(e)||"fixed"===of(e).position)return null;if(t)return t(e);let r=e.offsetParent;return qd(e)===r&&(r=r.ownerDocument.body),r}function kf(e,t){const r=Ud(e);if(Qd(e))return r;if(!Hd(e)){let t=sf(e);for(;t&&!nf(t);){if(Bd(t)&&!jf(t))return t;t=sf(t)}return r}let n=_f(e,t);for(;n&&Gd(n)&&jf(n);)n=_f(n,t);return n&&nf(n)&&jf(n)&&!tf(n)?r:n||function(e){let t=sf(e);for(;Hd(t)&&!nf(t);){if(tf(t))return t;if(Qd(t))return null;t=sf(t)}return null}(e)||r}const Of={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a="fixed"===o,i=qd(n),s=!!t&&Qd(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=md(1);const u=md(0),d=Hd(n);if((d||!d&&!a)&&(("body"!==zd(n)||Kd(i))&&(l=af(n)),d)){const e=mf(n);c=pf(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!i||d||a?md(0):gf(i,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:qd,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[..."clippingAncestors"===r?Qd(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=cf(e,[],!1).filter(e=>Bd(e)&&"body"!==zd(e)),o=null;const a="fixed"===of(e).position;let i=a?sf(e):e;for(;Bd(i)&&!nf(i);){const t=of(i),r=tf(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Kd(i)&&!r&&xf(e,i))?n=n.filter(e=>e!==i):o=t,i=sf(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=bf(t,a[0],o);let s=i.top,l=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const r=bf(t,a[e],o);s=pd(r.top,s),l=fd(r.right,l),c=fd(r.bottom,c),u=pd(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:kf,getElementRects:async function(e){const t=this.getOffsetParent||kf,r=this.getDimensions,n=await r(e.floating);return{reference:wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=df(e);return{width:t,height:r}},getScale:pf,isElement:Bd,isRTL:function(e){return"rtl"===of(e).direction}};function Sf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nf(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ff(e),u=o||a?[...c?cf(c):[],...t?cf(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});const d=c&&s?function(e,t){let r,n=null;const o=qd(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const v={rootMargin:-hd(d)+"px "+-hd(o.clientWidth-(u+f))+"px "+-hd(o.clientHeight-(d+p))+"px "+-hd(u)+"px",threshold:pd(0,fd(1,l))||1};let h=!0;function m(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||Sf(c,e.getBoundingClientRect())||i(),h=!1}try{n=new IntersectionObserver(m,{...v,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(m,v)}n.observe(e)}(!0),a}(c,r):null;let f,p=-1,v=null;i&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),c&&!l&&v.observe(c),t&&v.observe(t));let h=l?mf(e):null;return l&&function t(){const n=mf(e);h&&!Sf(h,n)&&r();h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}const Ef=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,a=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=xd(r),s=wd(r),l="y"===kd(r),c=Vd.has(i)?-1:1,u=a&&l?-1:1,d=bd(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(p="end"===s?-1*v:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Pf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=bd(e,t),u={x:r,y:n},d=await a.detectOverflow(t,c),f=kd(xd(o)),p=jd(f);let v=u[p],h=u[f];if(i){const e="y"===p?"bottom":"right";v=gd(v+d["y"===p?"top":"left"],v,v-d[e])}if(s){const e="y"===f?"bottom":"right";h=gd(h+d["y"===f?"top":"left"],h,h-d[e])}const m=l.fn({...t,[p]:v,[f]:h});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:i,[f]:s}}}}}},Cf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=bd(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const y=xd(o),g=kd(s),b=xd(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[Td(s)]:function(e){const t=Td(e);return[Sd(e),t,Sd(t)]}(s)),j="none"!==v;!f&&j&&w.push(...Rd(s,h,v,x));const _=[s,...w],k=await l.detectOverflow(t,m),O=[];let S=(null==(n=a.flip)?void 0:n.overflows)||[];if(u&&O.push(k[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=wd(e),o=Od(e),a=_d(o);let i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Td(i)),[i,Td(i)]}(o,i,x);O.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every(e=>e<=0)){var N,E;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&g!==kd(t))||S.every(e=>kd(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let r=null==(E=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!r)switch(p){case"bestFit":{var P;const e=null==(P=S.filter(e=>{if(j){const t=kd(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Rf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=bd(e,t),u=await i.detectOverflow(t,c),d=xd(o),f=wd(o),p="y"===kd(o),{width:v,height:h}=a.floating;let m,y;"top"===d||"bottom"===d?(m=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,m="end"===f?"top":"bottom");const g=h-u.top-u.bottom,b=v-u.left-u.right,x=fd(h-u[m],g),w=fd(v-u[y],b),j=!t.middlewareData.shift;let _=x,k=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(_=g),j&&!f){const e=pd(u.left,0),t=pd(u.right,0),r=pd(u.top,0),n=pd(u.bottom,0);p?k=v-2*(0!==e||0!==t?e+t:pd(u.left,u.right)):_=h-2*(0!==r||0!==n?r+n:pd(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:_});const O=await i.getDimensions(s.floating);return v!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}},Tf=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...a}=bd(e,t);switch(o){case"referenceHidden":{const e=Md(await n.detectOverflow(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ld(e)}}}case"escaped":{const e=Md(await n.detectOverflow(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ld(e)}}}default:return{}}}}},Af=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=bd(e,t)||{};if(null==c)return{};const d=Ad(u),f={x:r,y:n},p=Od(o),v=_d(p),h=await i.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",x=a.reference[v]+a.reference[p]-f[p]-a.floating[v],w=f[p]-a.reference[p],j=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let _=j?j[b]:0;_&&await(null==i.isElement?void 0:i.isElement(j))||(_=s.floating[b]||a.floating[v]);const k=x/2-w/2,O=_/2-h[v]/2-1,S=fd(d[y],O),N=fd(d[g],O),E=S,P=_-h[v]-N,C=_/2-h[v]/2+k,R=gd(E,C,P),T=!l.arrow&&null!=wd(o)&&C!==R&&a.reference[v]/2-(C<E?S:N)-h[v]/2<0,A=T?C<E?C-E:C-P:0;return{[p]:f[p]+A,data:{[p]:R,centerOffset:C-R-A,...T&&{alignmentOffset:A}},reset:T}}}),Df=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=bd(e,t),u={x:r,y:n},d=kd(o),f=jd(d);let p=u[f],v=u[d];const h=bd(s,t),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+m.mainAxis,r=a.reference[f]+a.reference[e]-m.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var y,g;const e="y"===f?"width":"height",t=Vd.has(xd(o)),r=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:m.crossAxis),n=a.reference[d]+a.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);v<r?v=r:v>n&&(v=n)}return{[f]:p,[d]:v}}}},Ff=(e,t,r)=>{const n=new Map,o={platform:Of,...r},a={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:Id},l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fd(c,n,l),f=n,p=0;const v={};for(let r=0;r<a.length;r++){const h=a[r];if(!h)continue;const{name:m,fn:y}=h,{x:g,y:b,data:x,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,v[m]={...v[m],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Fd(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:v}})(e,t,{...o,platform:a})};var If="undefined"!=typeof document?i.useLayoutEffect:function(){};function Mf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Mf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Mf(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Lf(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(e,t){const r=Lf(e);return Math.round(t*r)/r}function $f(e){const t=i.useRef(e);return If(()=>{t.current=e}),t}const zf=(e,t)=>{const r=Ef(e);return{name:r.name,fn:r.fn,options:[e,t]}},Uf=(e,t)=>{const r=Pf(e);return{name:r.name,fn:r.fn,options:[e,t]}},qf=(e,t)=>({fn:Df(e).fn,options:[e,t]}),Wf=(e,t)=>{const r=Cf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Bf=(e,t)=>{const r=Rf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Hf=(e,t)=>{const r=Tf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Zf=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Af({element:r.current,padding:n}).fn(t):{}:r?Af({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Kf=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return(0,Sn.jsx)(Os.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Sn.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Kf.displayName="Arrow";var Gf=Kf;function Qf(e){const[t,r]=i.useState(void 0);return vs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}var Jf="Popper",[Yf,Xf]=fs(Jf),[ep,tp]=Yf(Jf),rp=e=>{const{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,Sn.jsx)(ep,{scope:t,anchor:n,onAnchorChange:o,children:r})};rp.displayName=Jf;var np="PopperAnchor",op=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=tp(np,r),s=i.useRef(null),l=Ai(t,s),c=i.useRef(null);return i.useEffect(()=>{const e=c.current;c.current=n?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)}),n?null:(0,Sn.jsx)(Os.div,{...o,ref:l})});op.displayName=np;var ap="PopperContent",[ip,sp]=Yf(ap),lp=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:h,...m}=e,y=tp(ap,r),[g,b]=i.useState(null),x=Ai(t,e=>b(e)),[w,j]=i.useState(null),_=Qf(w),k=_?.width??0,O=_?.height??0,S=n+("center"!==a?"-"+a:""),N="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},E=Array.isArray(u)?u:[u],P=E.length>0,C={padding:N,boundary:E.filter(fp),altBoundary:P},{refs:R,floatingStyles:T,placement:A,isPositioned:D,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=i.useState(n);Mf(p,n)||v(n);const[h,m]=i.useState(null),[y,g]=i.useState(null),b=i.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),x=i.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),w=a||h,j=s||y,_=i.useRef(null),k=i.useRef(null),O=i.useRef(d),S=null!=c,N=$f(c),E=$f(o),P=$f(u),C=i.useCallback(()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:r,middleware:p};E.current&&(e.platform=E.current),Ff(_.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};R.current&&!Mf(O.current,t)&&(O.current=t,xs.flushSync(()=>{f(t)}))})},[p,t,r,E,P]);If(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const R=i.useRef(!1);If(()=>(R.current=!0,()=>{R.current=!1}),[]),If(()=>{if(w&&(_.current=w),j&&(k.current=j),w&&j){if(N.current)return N.current(w,j,C);C()}},[w,j,C,N,S]);const T=i.useMemo(()=>({reference:_,floating:k,setReference:b,setFloating:x}),[b,x]),A=i.useMemo(()=>({reference:w,floating:j}),[w,j]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!A.floating)return e;const t=Vf(A.floating,d.x),n=Vf(A.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Lf(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,A.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:C,refs:T,elements:A,floatingStyles:D}),[d,C,T,A,D])}({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>Nf(...e,{animationFrame:"always"===v}),elements:{reference:y.anchor},middleware:[zf({mainAxis:o+O,alignmentAxis:s}),c&&Uf({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?qf():void 0,...C}),c&&Wf({...C}),Bf({...C,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),w&&Zf({element:w,padding:l}),pp({arrowWidth:k,arrowHeight:O}),p&&Hf({strategy:"referenceHidden",...C})]}),[I,M]=vp(A),L=Ss(h);vs(()=>{D&&L?.()},[D,L]);const V=F.arrow?.x,$=F.arrow?.y,z=0!==F.arrow?.centerOffset,[U,q]=i.useState();return vs(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]),(0,Sn.jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Sn.jsx)(ip,{scope:r,placedSide:I,onArrowChange:j,arrowX:V,arrowY:$,shouldHideArrow:z,children:(0,Sn.jsx)(Os.div,{"data-side":I,"data-align":M,...m,ref:x,style:{...m.style,animation:D?void 0:"none"}})})})});lp.displayName=ap;var cp="PopperArrow",up={top:"bottom",right:"left",bottom:"top",left:"right"},dp=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=sp(cp,r),a=up[o.placedSide];return(0,Sn.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Sn.jsx)(Gf,{...n,ref:t,style:{...n.style,display:"block"}})})});function fp(e){return null!==e}dp.displayName=cp;var pp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=vp(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",v="";return"bottom"===l?(p=a?u:`${d}px`,v=-s+"px"):"top"===l?(p=a?u:`${d}px`,v=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",v=a?u:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,v=a?u:`${f}px`),{data:{x:p,y:v}}}});function vp(e){const[t,r="center"]=e.split("-");return[t,r]}var hp=rp,mp=op,yp=lp,gp=dp;function bp(e){const t=xp(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(_p);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function xp(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function _p(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===jp}var kp="Popover",[Op,Sp]=fs(kp,[Xf]),Np=Xf(),[Ep,Pp]=Op(kp),Cp=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=Np(t),c=i.useRef(null),[u,d]=i.useState(!1),[f,p]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:kp});return(0,Sn.jsx)(hp,{...l,children:(0,Sn.jsx)(Ep,{scope:t,contentId:ys(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:s,children:r})})};Cp.displayName=kp;var Rp="PopoverAnchor",Tp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Rp,r),a=Np(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return i.useEffect(()=>(s(),()=>l()),[s,l]),(0,Sn.jsx)(mp,{...a,...n,ref:t})});Tp.displayName=Rp;var Ap="PopoverTrigger",Dp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Ap,r),a=Np(r),i=Ai(t,o.triggerRef),s=(0,Sn.jsx)(Os.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kp(o.open),...n,ref:i,onClick:ds(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:(0,Sn.jsx)(mp,{asChild:!0,...a,children:s})});Dp.displayName=Ap;var Fp="PopoverPortal",[Ip,Mp]=Op(Fp,{forceMount:void 0}),Lp=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Pp(Fp,t);return(0,Sn.jsx)(Ip,{scope:t,forceMount:r,children:(0,Sn.jsx)(Zs,{present:r||a.open,children:(0,Sn.jsx)(Hs,{asChild:!0,container:o,children:n})})})};Lp.displayName=Fp;var Vp="PopoverContent",$p=i.forwardRef((e,t)=>{const r=Mp(Vp,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Pp(Vp,e.__scopePopover);return(0,Sn.jsx)(Zs,{present:n||a.open,children:a.modal?(0,Sn.jsx)(Up,{...o,ref:t}):(0,Sn.jsx)(qp,{...o,ref:t})})});$p.displayName=Vp;var zp=bp("PopoverContent.RemoveScroll"),Up=i.forwardRef((e,t)=>{const r=Pp(Vp,e.__scopePopover),n=i.useRef(null),o=Ai(t,n),a=i.useRef(!1);return i.useEffect(()=>{const e=n.current;if(e)return Ql(e)},[]),(0,Sn.jsx)(Ul,{as:zp,allowPinchZoom:!0,children:(0,Sn.jsx)(Wp,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ds(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ds(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:ds(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),qp=i.forwardRef((e,t)=>{const r=Pp(Vp,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return(0,Sn.jsx)(Wp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=r.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Wp=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Pp(Vp,r),p=Np(r);return Qs(),(0,Sn.jsx)(Vs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,Sn.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:(0,Sn.jsx)(yp,{"data-state":Kp(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Bp="PopoverClose",Hp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Bp,r);return(0,Sn.jsx)(Os.button,{type:"button",...n,ref:t,onClick:ds(e.onClick,()=>o.onOpenChange(!1))})});Hp.displayName=Bp;var Zp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Np(r);return(0,Sn.jsx)(gp,{...o,...n,ref:t})});function Kp(e){return e?"open":"closed"}Zp.displayName="PopoverArrow";var Gp=$p;function Qp(e){return Qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qp(e)}var Jp=["className","align","sideOffset"];function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Qp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ev=Cp,tv=Dp,rv=i.forwardRef(function(e,t){var r=e.className,n=e.align,o=void 0===n?"center":n,a=e.sideOffset,i=void 0===a?4:a,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Jp);return(0,Sn.jsx)(Gp,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(t){Xp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:o,sideOffset:i,className:la("vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},s))});function nv(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ov(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ov(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ov(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ov(d,"constructor",c),ov(c,"constructor",l),l.displayName="GeneratorFunction",ov(c,o,"GeneratorFunction"),ov(d),ov(d,o,"Generator"),ov(d,n,function(){return this}),ov(d,"toString",function(){return"[object Generator]"}),(nv=function(){return{w:a,m:f}})()}function ov(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ov=function(e,t,r,n){function a(t,r){ov(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},ov(e,t,r,n)}function av(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function iv(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){av(a,n,o,i,s,"next",e)}function s(e){av(a,n,o,i,s,"throw",e)}i(void 0)})}}rv.displayName=Gp.displayName;var sv=function(){return Qa({queryKey:["getPluginList"],queryFn:(e=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},lv=function(){return Qa({queryKey:["getThemeList"],queryFn:(e=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_theme_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};const cv=_u("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),uv=_u("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);function dv(e){return function(e){if(Array.isArray(e))return vv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||pv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pv(e,t){if(e){if("string"==typeof e)return vv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vv(e,t):void 0}}function vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hv(e){var t=e.selectedPlugin,r=e.onChange,n=fv((0,i.useState)([]),2),o=n[0],a=n[1],s=fv((0,i.useState)(!1),2),l=s[0],c=s[1],u=sv().data;(0,i.useEffect)(function(){u&&a(u.data)},[u]);var d=o.filter(function(e){return t.includes(e.slug)}),f=o.filter(function(e){return!t.includes(e.slug)});return(0,Sn.jsx)("div",{children:(0,Sn.jsxs)(ev,{open:l,onOpenChange:c,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":l,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-2 vt-bg-transparent",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-flex-1",children:[d.map(function(e){return(0,Sn.jsxs)(rs,{variant:"default",className:"vt-gap-1 vt-mb-1",children:[e.label,(0,Sn.jsx)(Qi,{variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(n){var o;n.preventDefault(),n.stopPropagation(),o=e.slug,r(t.filter(function(e){return e!==o}))},children:(0,Sn.jsx)(Ou,{size:12})})]},e.slug)}),0===d.length&&(0,Sn.jsx)("span",{className:"vt-text-muted-foreground",children:(0,ca.__)("Select plugins you like...","versatile-toolkit")})]}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-full",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search plugin...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No plugin found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:[].concat(dv(f),dv(d)).map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return n=e.slug,void(t.includes(n)?r(t.filter(function(e){return e!==n})):r([].concat(dv(t),[n])));var n},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",t.includes(e.slug)?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}function mv(e){return mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mv(e)}var yv=["className","type"];function gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=mv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xv,wv,jv=i.forwardRef(function(e,t){var r=e.className,n=e.type,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,yv);return(0,Sn.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(r),!0).forEach(function(t){bv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:la("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},o))});jv.displayName="Input",function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(xv||(xv={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(wv||(wv={}));const _v=xv.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),kv=e=>{switch(typeof e){case"undefined":return _v.undefined;case"string":return _v.string;case"number":return Number.isNaN(e)?_v.nan:_v.number;case"boolean":return _v.boolean;case"function":return _v.function;case"bigint":return _v.bigint;case"symbol":return _v.symbol;case"object":return Array.isArray(e)?_v.array:null===e?_v.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?_v.promise:"undefined"!=typeof Map&&e instanceof Map?_v.map:"undefined"!=typeof Set&&e instanceof Set?_v.set:"undefined"!=typeof Date&&e instanceof Date?_v.date:_v.object;default:return _v.unknown}},Ov=xv.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Sv extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(n);else if("invalid_return_type"===o.code)n(o.returnTypeError);else if("invalid_arguments"===o.code)n(o.argumentsError);else if(0===o.path.length)r._errors.push(t(o));else{let e=r,n=0;for(;n<o.path.length;){const r=o.path[n];n===o.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(o))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof Sv))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xv.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)if(n.path.length>0){const r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Sv.create=e=>new Sv(e);const Nv=(e,t)=>{let r;switch(e.code){case Ov.invalid_type:r=e.received===_v.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ov.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,xv.jsonStringifyReplacer)}`;break;case Ov.unrecognized_keys:r=`Unrecognized key(s) in object: ${xv.joinValues(e.keys,", ")}`;break;case Ov.invalid_union:r="Invalid input";break;case Ov.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${xv.joinValues(e.options)}`;break;case Ov.invalid_enum_value:r=`Invalid enum value. Expected ${xv.joinValues(e.options)}, received '${e.received}'`;break;case Ov.invalid_arguments:r="Invalid function arguments";break;case Ov.invalid_return_type:r="Invalid function return type";break;case Ov.invalid_date:r="Invalid date";break;case Ov.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:xv.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ov.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ov.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ov.custom:r="Invalid input";break;case Ov.invalid_intersection_types:r="Intersection results could not be merged";break;case Ov.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Ov.not_finite:r="Number must be finite";break;default:r=t.defaultError,xv.assertNever(e)}return{message:r}};let Ev=Nv;function Pv(){return Ev}var Cv;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(Cv||(Cv={}));const Rv=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,a=[...r,...o.path||[]],i={...o,path:a};if(void 0!==o.message)return{...o,path:a,message:o.message};let s="";const l=n.filter(e=>!!e).slice().reverse();for(const e of l)s=e(i,{data:t,defaultError:s}).message;return{...o,path:a,message:s}};function Tv(e,t){const r=Pv(),n=Rv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Nv?void 0:Nv].filter(e=>!!e)});e.common.issues.push(n)}class Av{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return Dv;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return Av.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:o}=n;if("aborted"===t.status)return Dv;if("aborted"===o.status)return Dv;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!n.alwaysSet||(r[t.value]=o.value)}return{status:e.value,value:r}}}const Dv=Object.freeze({status:"aborted"}),Fv=e=>({status:"dirty",value:e}),Iv=e=>({status:"valid",value:e}),Mv=e=>"aborted"===e.status,Lv=e=>"dirty"===e.status,Vv=e=>"valid"===e.status,$v=e=>"undefined"!=typeof Promise&&e instanceof Promise;class zv{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Uv=(e,t)=>{if(Vv(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Sv(e.common.issues);return this._error=t,this._error}}};function qv(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{const{message:a}=e;return"invalid_enum_value"===t.code?{message:a??o.defaultError}:void 0===o.data?{message:a??n??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:a??r??o.defaultError}},description:o}}class Wv{get description(){return this._def.description}_getType(e){return kv(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:kv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Av,ctx:{common:e.parent.common,data:e.data,parsedType:kv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if($v(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)},n=this._parseSync({data:e,path:r.path,parent:r});return Uv(r,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:t});return Vv(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>Vv(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await($v(n)?n:Promise.resolve(n));return Uv(r,o)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{const o=e(t),a=()=>n.addIssue({code:Ov.custom,...r(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(a(),!1)):!!o||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new Uh({schema:this,typeName:Jh.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return qh.create(this,this._def)}nullable(){return Wh.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nh.create(this)}promise(){return zh.create(this,this._def)}or(e){return Ch.create([this,e],this._def)}and(e){return Th.create(this,e,this._def)}transform(e){return new Uh({...qv(this._def),schema:this,typeName:Jh.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Bh({...qv(this._def),innerType:this,defaultValue:t,typeName:Jh.ZodDefault})}brand(){return new Kh({typeName:Jh.ZodBranded,type:this,...qv(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Hh({...qv(this._def),innerType:this,catchValue:t,typeName:Jh.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Gh.create(this,e)}readonly(){return Qh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bv=/^c[^\s-]{8,}$/i,Hv=/^[0-9a-z]+$/,Zv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Kv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Gv=/^[a-z0-9_-]{21}$/i,Qv=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Jv=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Xv;const eh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,th=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ah=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ih="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",sh=new RegExp(`^${ih}$`);function lh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function ch(e){return new RegExp(`^${lh(e)}$`)}function uh(e){let t=`${ih}T${lh(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function dh(e,t){return!("v4"!==t&&t||!eh.test(e))||!("v6"!==t&&t||!rh.test(e))}function fh(e,t){if(!Qv.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return"object"==typeof o&&null!==o&&((!("typ"in o)||"JWT"===o?.typ)&&(!!o.alg&&(!t||o.alg===t)))}catch{return!1}}function ph(e,t){return!("v4"!==t&&t||!th.test(e))||!("v6"!==t&&t||!nh.test(e))}class vh extends Wv{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==_v.string){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.string,received:t.parsedType}),Dv}const t=new Av;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,a=e.data.length<n.value;(o||a)&&(r=this._getOrReturnCtx(e,r),o?Tv(r,{code:Ov.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&Tv(r,{code:Ov.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)Yv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"email",code:Ov.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)Xv||(Xv=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Xv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"emoji",code:Ov.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)Kv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"uuid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)Gv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"nanoid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)Bv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cuid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)Hv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cuid2",code:Ov.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)Zv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"ulid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),Tv(r,{validation:"url",code:Ov.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"regex",code:Ov.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){uh(n).test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){sh.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){ch(n).test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?Jv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"duration",code:Ov.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?dh(e.data,n.version)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"ip",code:Ov.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?fh(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"jwt",code:Ov.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?ph(e.data,n.version)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cidr",code:Ov.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?oh.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"base64",code:Ov.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?ah.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"base64url",code:Ov.invalid_string,message:n.message}),t.dirty()):xv.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:Ov.invalid_string,...Cv.errToObj(r)})}_addCheck(e){return new vh({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Cv.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Cv.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Cv.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Cv.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Cv.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Cv.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Cv.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Cv.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Cv.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Cv.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Cv.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Cv.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Cv.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Cv.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...Cv.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Cv.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Cv.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...Cv.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Cv.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Cv.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Cv.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Cv.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Cv.errToObj(t)})}nonempty(e){return this.min(1,Cv.errToObj(e))}trim(){return new vh({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vh({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vh({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function hh(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}vh.create=e=>new vh({checks:[],typeName:Jh.ZodString,coerce:e?.coerce??!1,...qv(e)});class mh extends Wv{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==_v.number){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.number,received:t.parsedType}),Dv}let t;const r=new Av;for(const n of this._def.checks)if("int"===n.kind)xv.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==hh(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_finite,message:n.message}),r.dirty()):xv.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Cv.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Cv.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Cv.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Cv.toString(t))}setLimit(e,t,r,n){return new mh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:Cv.toString(n)}]})}_addCheck(e){return new mh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Cv.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Cv.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Cv.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Cv.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Cv.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Cv.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Cv.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Cv.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Cv.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&xv.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}mh.create=e=>new mh({checks:[],typeName:Jh.ZodNumber,coerce:e?.coerce||!1,...qv(e)});class yh extends Wv{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==_v.bigint)return this._getInvalidInput(e);let t;const r=new Av;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):xv.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.bigint,received:t.parsedType}),Dv}gte(e,t){return this.setLimit("min",e,!0,Cv.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Cv.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Cv.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Cv.toString(t))}setLimit(e,t,r,n){return new yh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:Cv.toString(n)}]})}_addCheck(e){return new yh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Cv.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Cv.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Cv.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Cv.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Cv.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}yh.create=e=>new yh({checks:[],typeName:Jh.ZodBigInt,coerce:e?.coerce??!1,...qv(e)});class gh extends Wv{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==_v.boolean){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.boolean,received:t.parsedType}),Dv}return Iv(e.data)}}gh.create=e=>new gh({typeName:Jh.ZodBoolean,coerce:e?.coerce||!1,...qv(e)});class bh extends Wv{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==_v.date){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.date,received:t.parsedType}),Dv}if(Number.isNaN(e.data.getTime())){return Tv(this._getOrReturnCtx(e),{code:Ov.invalid_date}),Dv}const t=new Av;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):xv.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new bh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Cv.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Cv.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}bh.create=e=>new bh({checks:[],coerce:e?.coerce||!1,typeName:Jh.ZodDate,...qv(e)});class xh extends Wv{_parse(e){if(this._getType(e)!==_v.symbol){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.symbol,received:t.parsedType}),Dv}return Iv(e.data)}}xh.create=e=>new xh({typeName:Jh.ZodSymbol,...qv(e)});class wh extends Wv{_parse(e){if(this._getType(e)!==_v.undefined){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.undefined,received:t.parsedType}),Dv}return Iv(e.data)}}wh.create=e=>new wh({typeName:Jh.ZodUndefined,...qv(e)});class jh extends Wv{_parse(e){if(this._getType(e)!==_v.null){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.null,received:t.parsedType}),Dv}return Iv(e.data)}}jh.create=e=>new jh({typeName:Jh.ZodNull,...qv(e)});class _h extends Wv{constructor(){super(...arguments),this._any=!0}_parse(e){return Iv(e.data)}}_h.create=e=>new _h({typeName:Jh.ZodAny,...qv(e)});class kh extends Wv{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Iv(e.data)}}kh.create=e=>new kh({typeName:Jh.ZodUnknown,...qv(e)});class Oh extends Wv{_parse(e){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.never,received:t.parsedType}),Dv}}Oh.create=e=>new Oh({typeName:Jh.ZodNever,...qv(e)});class Sh extends Wv{_parse(e){if(this._getType(e)!==_v.undefined){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.void,received:t.parsedType}),Dv}return Iv(e.data)}}Sh.create=e=>new Sh({typeName:Jh.ZodVoid,...qv(e)});class Nh extends Wv{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==_v.array)return Tv(t,{code:Ov.invalid_type,expected:_v.array,received:t.parsedType}),Dv;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(e||o)&&(Tv(t,{code:e?Ov.too_big:Ov.too_small,minimum:o?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(Tv(t,{code:Ov.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(Tv(t,{code:Ov.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new zv(t,e,t.path,r)))).then(e=>Av.mergeArray(r,e));const o=[...t.data].map((e,r)=>n.type._parseSync(new zv(t,e,t.path,r)));return Av.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new Nh({...this._def,minLength:{value:e,message:Cv.toString(t)}})}max(e,t){return new Nh({...this._def,maxLength:{value:e,message:Cv.toString(t)}})}length(e,t){return new Nh({...this._def,exactLength:{value:e,message:Cv.toString(t)}})}nonempty(e){return this.min(1,e)}}function Eh(e){if(e instanceof Ph){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=qh.create(Eh(n))}return new Ph({...e._def,shape:()=>t})}return e instanceof Nh?new Nh({...e._def,type:Eh(e.element)}):e instanceof qh?qh.create(Eh(e.unwrap())):e instanceof Wh?Wh.create(Eh(e.unwrap())):e instanceof Ah?Ah.create(e.items.map(e=>Eh(e))):e}Nh.create=(e,t)=>new Nh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Jh.ZodArray,...qv(t)});class Ph extends Wv{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=xv.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==_v.object){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.object,received:t.parsedType}),Dv}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Oh&&"strip"===this._def.unknownKeys))for(const e in r.data)o.includes(e)||a.push(e);const i=[];for(const e of o){const t=n[e],o=r.data[e];i.push({key:{status:"valid",value:e},value:t._parse(new zv(r,o,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Oh){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)i.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(Tv(r,{code:Ov.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const n=r.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new zv(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>Av.mergeObjectSync(t,e)):Av.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return Cv.errToObj,new Ph({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{const n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:Cv.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Ph({...this._def,unknownKeys:"strip"})}passthrough(){return new Ph({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ph({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ph({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Jh.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ph({...this._def,catchall:e})}pick(e){const t={};for(const r of xv.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Ph({...this._def,shape:()=>t})}omit(e){const t={};for(const r of xv.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Ph({...this._def,shape:()=>t})}deepPartial(){return Eh(this)}partial(e){const t={};for(const r of xv.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Ph({...this._def,shape:()=>t})}required(e){const t={};for(const r of xv.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof qh;)e=e._def.innerType;t[r]=e}return new Ph({...this._def,shape:()=>t})}keyof(){return Lh(xv.objectKeys(this.shape))}}Ph.create=(e,t)=>new Ph({shape:()=>e,unknownKeys:"strip",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)}),Ph.strictCreate=(e,t)=>new Ph({shape:()=>e,unknownKeys:"strict",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)}),Ph.lazycreate=(e,t)=>new Ph({shape:e,unknownKeys:"strip",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)});class Ch extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map(e=>new Sv(e.ctx.common.issues));return Tv(t,{code:Ov.invalid_union,unionErrors:r}),Dv});{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},a=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map(e=>new Sv(e));return Tv(t,{code:Ov.invalid_union,unionErrors:o}),Dv}}get options(){return this._def.options}}Ch.create=(e,t)=>new Ch({options:e,typeName:Jh.ZodUnion,...qv(t)});function Rh(e,t){const r=kv(e),n=kv(t);if(e===t)return{valid:!0,data:e};if(r===_v.object&&n===_v.object){const r=xv.objectKeys(t),n=xv.objectKeys(e).filter(e=>-1!==r.indexOf(e)),o={...e,...t};for(const r of n){const n=Rh(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(r===_v.array&&n===_v.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const o=Rh(e[n],t[n]);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return r===_v.date&&n===_v.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class Th extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(Mv(e)||Mv(n))return Dv;const o=Rh(e.value,n.value);return o.valid?((Lv(e)||Lv(n))&&t.dirty(),{status:t.value,value:o.data}):(Tv(r,{code:Ov.invalid_intersection_types}),Dv)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Th.create=(e,t,r)=>new Th({left:e,right:t,typeName:Jh.ZodIntersection,...qv(r)});class Ah extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.array)return Tv(r,{code:Ov.invalid_type,expected:_v.array,received:r.parsedType}),Dv;if(r.data.length<this._def.items.length)return Tv(r,{code:Ov.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Dv;!this._def.rest&&r.data.length>this._def.items.length&&(Tv(r,{code:Ov.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new zv(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>Av.mergeArray(t,e)):Av.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Ah({...this._def,rest:e})}}Ah.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ah({items:e,typeName:Jh.ZodTuple,rest:null,...qv(t)})};class Dh extends Wv{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.map)return Tv(r,{code:Ov.invalid_type,expected:_v.map,received:r.parsedType}),Dv;const n=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new zv(r,e,r.path,[a,"key"])),value:o._parse(new zv(r,t,r.path,[a,"value"]))}));if(r.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const r of a){const n=await r.key,o=await r.value;if("aborted"===n.status||"aborted"===o.status)return Dv;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}})}{const e=new Map;for(const r of a){const n=r.key,o=r.value;if("aborted"===n.status||"aborted"===o.status)return Dv;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}}}}Dh.create=(e,t,r)=>new Dh({valueType:t,keyType:e,typeName:Jh.ZodMap,...qv(r)});class Fh extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.set)return Tv(r,{code:Ov.invalid_type,expected:_v.set,received:r.parsedType}),Dv;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(Tv(r,{code:Ov.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(Tv(r,{code:Ov.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const r=new Set;for(const n of e){if("aborted"===n.status)return Dv;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const i=[...r.data.values()].map((e,t)=>o._parse(new zv(r,e,r.path,t)));return r.common.async?Promise.all(i).then(e=>a(e)):a(i)}min(e,t){return new Fh({...this._def,minSize:{value:e,message:Cv.toString(t)}})}max(e,t){return new Fh({...this._def,maxSize:{value:e,message:Cv.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Fh.create=(e,t)=>new Fh({valueType:e,minSize:null,maxSize:null,typeName:Jh.ZodSet,...qv(t)});class Ih extends Wv{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ih.create=(e,t)=>new Ih({getter:e,typeName:Jh.ZodLazy,...qv(t)});class Mh extends Wv{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Tv(t,{received:t.data,code:Ov.invalid_literal,expected:this._def.value}),Dv}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Lh(e,t){return new Vh({values:e,typeName:Jh.ZodEnum,...qv(t)})}Mh.create=(e,t)=>new Mh({value:e,typeName:Jh.ZodLiteral,...qv(t)});class Vh extends Wv{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return Tv(t,{expected:xv.joinValues(r),received:t.parsedType,code:Ov.invalid_type}),Dv}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return Tv(t,{received:t.data,code:Ov.invalid_enum_value,options:r}),Dv}return Iv(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Vh.create(e,{...this._def,...t})}exclude(e,t=this._def){return Vh.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}Vh.create=Lh;class $h extends Wv{_parse(e){const t=xv.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==_v.string&&r.parsedType!==_v.number){const e=xv.objectValues(t);return Tv(r,{expected:xv.joinValues(e),received:r.parsedType,code:Ov.invalid_type}),Dv}if(this._cache||(this._cache=new Set(xv.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=xv.objectValues(t);return Tv(r,{received:r.data,code:Ov.invalid_enum_value,options:e}),Dv}return Iv(e.data)}get enum(){return this._def.values}}$h.create=(e,t)=>new $h({values:e,typeName:Jh.ZodNativeEnum,...qv(t)});class zh extends Wv{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==_v.promise&&!1===t.common.async)return Tv(t,{code:Ov.invalid_type,expected:_v.promise,received:t.parsedType}),Dv;const r=t.parsedType===_v.promise?t.data:Promise.resolve(t.data);return Iv(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}zh.create=(e,t)=>new zh({type:e,typeName:Jh.ZodPromise,...qv(t)});class Uh extends Wv{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Jh.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:e=>{Tv(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===n.type){const e=n.transform(r.data,o);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return Dv;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?Dv:"dirty"===n.status||"dirty"===t.value?Fv(n.value):n});{if("aborted"===t.value)return Dv;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?Dv:"dirty"===n.status||"dirty"===t.value?Fv(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,o);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?Dv:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?Dv:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vv(e))return Dv;const a=n.transform(e.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>Vv(e)?Promise.resolve(n.transform(e.value,o)).then(e=>({status:t.value,value:e})):Dv)}xv.assertNever(n)}}Uh.create=(e,t,r)=>new Uh({schema:e,typeName:Jh.ZodEffects,effect:t,...qv(r)}),Uh.createWithPreprocess=(e,t,r)=>new Uh({schema:t,effect:{type:"preprocess",transform:e},typeName:Jh.ZodEffects,...qv(r)});class qh extends Wv{_parse(e){return this._getType(e)===_v.undefined?Iv(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}qh.create=(e,t)=>new qh({innerType:e,typeName:Jh.ZodOptional,...qv(t)});class Wh extends Wv{_parse(e){return this._getType(e)===_v.null?Iv(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Wh.create=(e,t)=>new Wh({innerType:e,typeName:Jh.ZodNullable,...qv(t)});class Bh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===_v.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bh.create=(e,t)=>new Bh({innerType:e,typeName:Jh.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...qv(t)});class Hh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return $v(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Sv(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Sv(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Hh.create=(e,t)=>new Hh({innerType:e,typeName:Jh.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...qv(t)});class Zh extends Wv{_parse(e){if(this._getType(e)!==_v.nan){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.nan,received:t.parsedType}),Dv}return{status:"valid",value:e.data}}}Zh.create=e=>new Zh({typeName:Jh.ZodNaN,...qv(e)});Symbol("zod_brand");class Kh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class Gh extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Dv:"dirty"===e.status?(t.dirty(),Fv(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Dv:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new Gh({in:e,out:t,typeName:Jh.ZodPipeline})}}class Qh extends Wv{_parse(e){const t=this._def.innerType._parse(e),r=e=>(Vv(e)&&(e.value=Object.freeze(e.value)),e);return $v(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}Qh.create=(e,t)=>new Qh({innerType:e,typeName:Jh.ZodReadonly,...qv(t)});Ph.lazycreate;var Jh;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Jh||(Jh={}));const Yh=vh.create,Xh=(mh.create,Zh.create,yh.create,gh.create),em=(bh.create,xh.create,wh.create,jh.create,_h.create,kh.create,Oh.create,Sh.create,Nh.create),tm=Ph.create,rm=(Ph.strictCreate,Ch.create,Th.create,Ah.create,Dh.create,Fh.create,Ih.create,Mh.create,Vh.create),nm=($h.create,zh.create,Uh.create,qh.create,Wh.create,Uh.createWithPreprocess,Gh.create,e=>mh.create({...e,coerce:!0}));var om=/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/,am=tm({chosen_plugins:em(Yh()),ip_tags:em(Yh().refine(function(e){return om.test(e)},{message:"Invalid IP address"})).min(1,{message:"At least one IP address is required"})}),im=tm({enable_maintenance:Xh(),show_subscribers_only:Xh(),title:Yh().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Yh().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Yh().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Yh().optional(),background_image_id:nm().optional(),logo:Yh().optional(),logo_id:nm().optional(),template:Yh().optional()}),sm=tm({enable_comingsoon:Xh(),show_subscribers_only:Xh(),title:Yh().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Yh().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Yh().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Yh().optional(),background_image_id:nm().optional(),logo:Yh().optional(),logo_id:nm().optional(),template:Yh().optional()}),lm=tm({activeTheme:Yh().min(1,{message:"Please select a theme"})}),cm=tm({display_name:Yh().min(1,{message:"Display name is required"}),email:Yh().email({message:"Invalid email address"}),role:Yh().min(1,{message:"Please select a role"}),expires_at:rm(["1_hour","3_hours","6_hours","12_hours","1_day","3_days","1_week","2_weeks","1_month","3_months","6_months","1_year","custom"],{message:"Please select an expiration time"}),redirect_url:Yh().url({message:"Invalid URL format"}),ip_address:Yh().optional().refine(function(e){return!e||om.test(e)},{message:"Invalid IP address"})});function um(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return dm(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(dm(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,dm(d,"constructor",c),dm(c,"constructor",l),l.displayName="GeneratorFunction",dm(c,o,"GeneratorFunction"),dm(d),dm(d,o,"Generator"),dm(d,n,function(){return this}),dm(d,"toString",function(){return"[object Generator]"}),(um=function(){return{w:a,m:f}})()}function dm(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dm=function(e,t,r,n){function a(t,r){dm(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},dm(e,t,r,n)}function fm(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function pm(e){return function(e){if(Array.isArray(e))return mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||hm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hm(e,t){if(e){if("string"==typeof e)return mm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mm(e,t):void 0}}function mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ym(e){var t,r=e.tags,n=e.onChange,o=vm((0,i.useState)(""),2),a=o[0],s=o[1],l=vm((0,i.useState)(null),2),c=l[0],u=l[1],d=function(){var e=a.trim();e&&(om.test(e)?r.includes(e)||(n([].concat(pm(r),[e])),s(""),u(null)):u((0,ca.__)("Invalid IP address","versatile-toolkit")))},f=Ya({mutationFn:(t=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_add_my_ip",e.n=1,xi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to add IP","versatile-toolkit"))}}),p=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){fm(a,n,o,i,s,"next",e)}function s(e){fm(a,n,o,i,s,"throw",e)}i(void 0)})}}(um().m(function e(){var t,o,a;return um().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,f.mutateAsync({});case 1:if(t=e.v,o=t.data,a=null==o?void 0:o.ip,!r.includes(a)){e.n=2;break}return Cr.success((0,ca.__)("System Ip already added!","versatile-toolkit")),e.a(2);case 2:!r.includes(a)&&a&&(n([].concat(pm(r),[a])),Cr.success((0,ca.__)("System Ip address added","versatile-toolkit")));case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)("div",{className:"vt-relative",children:[(0,Sn.jsx)(jv,{type:"text",placeholder:(0,ca.__)("Enter IP address","versatile-toolkit"),value:a,onChange:function(e){s(e.target.value),c&&u(null)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),d())},onBlur:function(e){d()}}),(0,Sn.jsx)(Qi,{type:"button",size:"xs",className:"vt-absolute vt-right-1 vt-top-1/2 -vt-translate-y-1/2",onClick:p,children:(0,Sn.jsx)(fa,{isLoading:f.isPending,loadingText:(0,ca.__)("Add My IP","versatile-toolkit"),size:"xs",children:(0,ca.__)("Add My IP","versatile-toolkit")})})]}),c&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:c}),(0,Sn.jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-mt-2",children:r.map(function(e){return(0,Sn.jsxs)(rs,{variant:"default",className:"vt-flex vt-items-center vt-gap-1",children:[e,(0,Sn.jsxs)(Qi,{type:"button",variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(){return t=e,void n(r.filter(function(e){return e!==t}));var t},"aria-label":(0,ca.__)("Remove IP address","versatile-toolkit"),children:[(0,Sn.jsx)(Ou,{size:12,"aria-hidden":!0}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Remove","versatile-toolkit")})]})]},e)})})]})}function gm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xm(e){var t=e.selectedTheme,r=e.onChange,n=gm((0,i.useState)([]),2),o=n[0],a=n[1],s=gm((0,i.useState)(!1),2),l=s[0],c=s[1],u=lv().data;(0,i.useEffect)(function(){u&&a(u.data)},[u]);var d=o.find(function(e){return e.slug===t});return(0,Sn.jsx)("div",{children:(0,Sn.jsxs)(ev,{open:l,onOpenChange:c,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":l,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-3 vt-bg-transparent",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-1 vt-flex-1 vt-text-left",children:d?(0,Sn.jsx)("span",{className:"vt-font-medium",children:d.label}):(0,Sn.jsx)("span",{className:"vt-text-muted-foreground",children:(0,ca.__)("Select a theme...","versatile-toolkit")})}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-full vt-p-0",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search theme...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No theme found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:o.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return t=e.slug,r(t),void c(!1);var t},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",t===e.slug?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}var wm=e=>"checkbox"===e.type,jm=e=>e instanceof Date,_m=e=>null==e;const km=e=>"object"==typeof e;var Om=e=>!_m(e)&&!Array.isArray(e)&&km(e)&&!jm(e),Sm=e=>Om(e)&&e.target?wm(e.target)?e.target.checked:e.target.value:e,Nm=(e,t)=>{const r=t.split("."),n=[];let o=r[0];for(let t=1;t<r.length;o+="."+r[t++])!isNaN(+r[t])&&e.has(o)&&n.push(o);return n},Em="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Pm(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(Em&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||Om(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return Om(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=Pm(e[t]));return n}var Cm=e=>/^\w*$/.test(e),Rm=e=>void 0===e,Tm=e=>Array.isArray(e)?e.filter(Boolean):[],Am=e=>Tm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dm=(e,t,r)=>{if(!t||!Om(e))return r;const n=(Cm(t)?[t]:Am(t)).reduce((e,t)=>_m(e)?void 0:e[t],e);return Rm(n)||n===e?Rm(e[t])?r:e[t]:n},Fm=e=>"boolean"==typeof e,Im=e=>"function"==typeof e,Mm=(e,t,r)=>{let n=-1;const o=Cm(t)?[t]:Am(t),a=o.length,i=a-1;for(;++n<a;){const t=o[n];let a=r;if(n!==i){const r=e[t];a=Om(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=a,e=e[t]}};const Lm="blur",Vm="focusout",$m="change",zm="submit",Um="trigger",qm="valid",Wm="onBlur",Bm="onChange",Hm="onSubmit",Zm="onTouched",Km="all",Gm="max",Qm="min",Jm="maxLength",Ym="minLength",Xm="pattern",ey="required",ty="validate",ry="form",ny="root",oy=i.createContext(null);oy.displayName="HookFormControlContext";const ay=()=>i.useContext(oy);var iy=(e,t,r,n=!0)=>{const o={};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Km&&(t._proxyFormState[o]=!n||Km),r&&(r[o]=!0),e[o]}});return o};const sy="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ly(e){const t=ay(),{control:r=t,disabled:n,name:o,exact:a}=e||{},[s,l]=i.useState(()=>({...r._formState,defaultValues:r._defaultValues})),c=i.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sy(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:e=>{!n&&l({...r._formState,...e,defaultValues:r._defaultValues})}}),[o,n,a]),i.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),i.useMemo(()=>iy(s,r,c.current,!1),[s,r])}var cy=e=>"string"==typeof e,uy=(e,t,r,n,o)=>cy(e)?(n&&t.watch.add(e),Dm(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),Dm(r,e))):(n&&(t.watchAll=!0),r),dy=e=>_m(e)||!km(e);function fy(e,t,r=new WeakSet){if(e===t)return!0;if(dy(e)||dy(t))return Object.is(e,t);if(jm(e)&&jm(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const n=e[o];if(!(o in t))return!1;if("ref"!==o){const e=t[o];if(jm(n)&&jm(e)||(Om(n)||Array.isArray(n))&&(Om(e)||Array.isArray(e))?!fy(n,e,r):!Object.is(n,e))return!1}}return!0}function py(e){const t=ay(),{control:r=t,name:n,defaultValue:o,disabled:a,exact:s,compute:l}=e||{},c=i.useRef(o),u=i.useRef(l),d=i.useRef(void 0),f=i.useRef(r),p=i.useRef(n);u.current=l;const[v,h]=i.useState(()=>{const e=r._getWatch(n,c.current);return u.current?u.current(e):e}),m=i.useCallback(e=>{const t=uy(n,r._names,e||r._formValues,!1,c.current);return u.current?u.current(t):t},[r._formValues,r._names,n]),y=i.useCallback(e=>{if(!a){const t=uy(n,r._names,e||r._formValues,!1,c.current);if(u.current){const e=u.current(t);fy(e,d.current)||(h(e),d.current=e)}else h(t)}},[r._formValues,r._names,a,n]);sy(()=>(f.current===r&&fy(p.current,n)||(f.current=r,p.current=n,y()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:e=>{y(e.values)}})),[r,s,n,y]),i.useEffect(()=>r._removeUnmounted());const g=f.current!==r,b=p.current,x=i.useMemo(()=>{if(a)return null;const e=!g&&!fy(b,n);return g||e?m():null},[a,g,n,b,m]);return null!==x?x:v}const vy=e=>e.render(function(e){const t=ay(),{name:r,disabled:n,control:o=t,shouldUnregister:a,defaultValue:s,exact:l=!0}=e,c=!!Nm(o._names.array,r).length,u=i.useMemo(()=>Dm(o._formValues,r,Dm(o._defaultValues,r,s)),[o,r,s]),d=py({control:o,name:r,defaultValue:u,exact:l}),f=ly({control:o,name:r,exact:l}),p=i.useRef(e),v=i.useRef(o.register(r,{...e.rules,value:d,...Fm(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const h=i.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dm(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dm(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dm(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dm(f.validatingFields,r)},error:{enumerable:!0,get:()=>Dm(f.errors,r)}}),[f,r]),m=i.useCallback(e=>v.current.onChange({target:{value:Sm(e),name:r},type:$m}),[r]),y=i.useCallback(()=>v.current.onBlur({target:{value:Dm(o._formValues,r),name:r},type:Lm}),[r,o._formValues]),g=i.useCallback(e=>{const t=Dm(o._fields,r);t&&t._f&&e&&(t._f.ref={focus:()=>Im(e.focus)&&e.focus(),select:()=>Im(e.select)&&e.select(),setCustomValidity:t=>Im(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Im(e.reportValidity)&&e.reportValidity()})},[o._fields,r]),b=i.useMemo(()=>({name:r,value:d,...Fm(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:m,onBlur:y,ref:g}),[r,n,f.disabled,m,y,g,d]);return i.useEffect(()=>{const e=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...Fm(p.current.disabled)?{disabled:p.current.disabled}:{}});const t=(e,t)=>{const r=Dm(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=Pm(Dm(o._defaultValues,r,Dm(o._options.defaultValues,r,p.current.defaultValue)));Mm(o._defaultValues,r,e),Rm(Dm(o._formValues,r))&&Mm(o._formValues,r,e)}return!c&&o.register(r),()=>{(c?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}},[r,o,c,a]),i.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),i.useMemo(()=>({field:b,formState:f,fieldState:h}),[b,f,h])}(e)),hy=i.createContext(null);hy.displayName="HookFormContext";const my=()=>i.useContext(hy);var yy=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},gy=e=>Array.isArray(e)?e:[e],by=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function xy(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],a=t[n];if(o&&Om(o)&&a){const e=xy(o,a);Om(e)&&(r[n]=e)}else e[n]&&(r[n]=a)}return r}var wy=e=>Om(e)&&!Object.keys(e).length,jy=e=>"file"===e.type,_y=e=>{if(!Em)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ky=e=>"select-multiple"===e.type,Oy=e=>"radio"===e.type,Sy=e=>_y(e)&&e.isConnected;function Ny(e,t){if(cy(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Cm(t)?[t]:Am(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;){if(_m(e)){e=void 0;break}e=e[t[n]],n++}return e}(e,r),o=r.length-1,a=r[o];return n&&delete n[a],0!==o&&(Om(n)&&wy(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Rm(e[t]))return!1;return!0}(n))&&Ny(e,r.slice(0,-1)),e}function Ey(e){return Array.isArray(e)||Om(e)&&!(e=>{for(const t in e)if(Im(e[t]))return!0;return!1})(e)}function Py(e,t={}){for(const r in e){const n=e[r];Ey(n)?(t[r]=Array.isArray(n)?[]:{},Py(n,t[r])):Rm(n)||(t[r]=!0)}return t}function Cy(e){if(!1!==e){if(!0===e)return!0;if(Array.isArray(e)){const t=e.map(e=>Cy(e));return t.some(e=>void 0!==e)?t:void 0}if(Om(e)){const t={};for(const r in e){const n=Cy(e[r]);Rm(n)||(t[r]=n)}return Object.keys(t).length?t:void 0}}}function Ry(e,t,r){r||(r=Py(t));for(const n in e){const o=e[n];if(Ey(o))Rm(t)||dy(r[n])?r[n]=Py(o,Array.isArray(o)?[]:{}):Ry(o,_m(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!fy(o,e)}}return Cy(r)||{}}const Ty={value:!1,isValid:!1},Ay={value:!0,isValid:!0};var Dy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Rm(e[0].attributes.value)?Rm(e[0].value)||""===e[0].value?Ay:{value:e[0].value,isValid:!0}:Ay:Ty}return Ty},Fy=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Rm(e)?e:t?""===e?NaN:e?+e:e:r&&cy(e)?new Date(e):n?n(e):e;const Iy={isValid:!1,value:null};var My=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Iy):Iy;function Ly(e){const t=e.ref;return jy(t)?t.files:Oy(t)?My(e.refs).value:ky(t)?[...t.selectedOptions].map(({value:e})=>e):wm(t)?Dy(e.refs).value:Fy(Rm(t.value)?e.ref.value:t.value,e)}var Vy=e=>e instanceof RegExp,$y=e=>Rm(e)?e:Vy(e)?e.source:Om(e)?Vy(e.value)?e.value.source:e.value:e,zy=e=>({isOnSubmit:!e||e===Hm,isOnBlur:e===Wm,isOnChange:e===Bm,isOnAll:e===Km,isOnTouch:e===Zm});const Uy="AsyncFunction";var qy=e=>!!e&&!!e.validate&&!!(Im(e.validate)&&e.validate.constructor.name===Uy||Om(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Uy)),Wy=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const By=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Dm(e,o);if(r){const{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(By(a,t))break}else if(Om(a)&&By(a,t))break}}};function Hy(e,t,r){const n=Dm(e,r);if(n||Cm(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),a=Dm(t,n),i=Dm(e,n);if(a&&!Array.isArray(a)&&r!==n)return{name:r};if(i&&i.type)return{name:n,error:i};if(i&&i.root&&i.root.type)return{name:`${n}.root`,error:i.root};o.pop()}return{name:r}}var Zy=(e,t,r)=>{const n=gy(Dm(e,r));return Mm(n,ny,t[r]),Mm(e,r,n),e};function Ky(e,t,r="validate"){if(cy(e)||Array.isArray(e)&&e.every(cy)||Fm(e)&&!e)return{type:r,message:cy(e)?e:"",ref:t}}var Gy=e=>Om(e)&&!Vy(e)?e:{value:e,message:""},Qy=async(e,t,r,n,o,a)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:v,name:h,valueAsNumber:m,mount:y}=e._f,g=Dm(r,h);if(!y||t.has(h))return{};const b=s?s[0]:i,x=e=>{o&&b.reportValidity&&(b.setCustomValidity(Fm(e)?"":e||""),b.reportValidity())},w={},j=Oy(i),_=wm(i),k=j||_,O=(m||jy(i))&&Rm(i.value)&&Rm(g)||_y(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length||m&&"number"==typeof g&&isNaN(g),S=yy.bind(null,h,n,w),N=(e,t,r,n=Jm,o=Ym)=>{const a=e?t:r;w[h]={type:e?n:o,message:a,ref:i,...S(e?n:o,a)}};if(a?!Array.isArray(g)||!g.length:l&&(!k&&(O||_m(g))||Fm(g)&&!g||_&&!Dy(s).isValid||j&&!My(s).isValid)){const{value:e,message:t}=cy(l)?{value:!!l,message:l}:Gy(l);if(e&&(w[h]={type:ey,message:t,ref:b,...S(ey,t)},!n))return x(t),w}if(!(O||_m(d)&&_m(f))){let e,t;const r=Gy(f),o=Gy(d);if(_m(g)||isNaN(g)){const n=i.valueAsDate||new Date(g),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;cy(r.value)&&g&&(e=s?a(g)>a(r.value):l?g>r.value:n>new Date(r.value)),cy(o.value)&&g&&(t=s?a(g)<a(o.value):l?g<o.value:n<new Date(o.value))}else{const n=i.valueAsNumber||(g?+g:g);_m(r.value)||(e=n>r.value),_m(o.value)||(t=n<o.value)}if((e||t)&&(N(!!e,r.message,o.message,Gm,Qm),!n))return x(w[h].message),w}if((c||u)&&!O&&(cy(g)||a&&Array.isArray(g))){const e=Gy(c),t=Gy(u),r=!_m(e.value)&&g.length>+e.value,o=!_m(t.value)&&g.length<+t.value;if((r||o)&&(N(r,e.message,t.message),!n))return x(w[h].message),w}if(p&&!O&&cy(g)){const{value:e,message:t}=Gy(p);if(Vy(e)&&!g.match(e)&&(w[h]={type:Xm,message:t,ref:i,...S(Xm,t)},!n))return x(t),w}if(v)if(Im(v)){const e=Ky(await v(g,r),b);if(e&&(w[h]={...e,...S(ty,e.message)},!n))return x(e.message),w}else if(Om(v)){let e={};for(const t in v){if(!wy(e)&&!n)break;const o=Ky(await v[t](g,r),b,t);o&&(e={...o,...S(t,o.message)},x(o.message),n&&(w[h]=e))}if(!wy(e)&&(w[h]={ref:b,...e},!n))return w}return x(!0),w};const Jy={mode:Hm,reValidateMode:Bm,shouldFocusError:!0},Yy={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Xy(e={}){let t,r={...Jy,...e},n={...Pm(Yy),isLoading:Im(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},o={},a=(Om(r.defaultValues)||Om(r.values))&&Pm(r.defaultValues||r.values)||{},i=r.shouldUnregister?{}:Pm(a),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u};let f={...d};const p={array:by(),state:by()},v=r.criteriaMode===Km,h=async e=>{if(!s.keepIsValid&&!r.disabled&&(d.isValid||f.isValid||e)){let e;r.resolver?(e=wy((await w()).errors),m()):e=await _({fields:o,onlyCheckValid:!0,eventType:qm}),e!==n.isValid&&p.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?Mm(n.validatingFields,e,t):Ny(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!wy(n.validatingFields)}))},y=()=>{n.dirtyFields=Ry(a,i)},g=(e,t,r,l)=>{const c=Dm(o,e);if(c){if((e=>{const t=Cm(e)?[e]:Am(e);let r=i,n=a;for(let e=0;e<t.length-1;e++){const o=t[e];if(r=_m(r)?r:r[o],n=_m(n)?n:n[o],null===r&&null!==n)return!0}return!1})(e))return;const o=Rm(Dm(i,e)),u=Dm(i,e,Rm(r)?Dm(a,e):r);if(Rm(u)||l&&l.defaultChecked||t?Mm(i,e,t?u:Ly(c._f)):S(e,u),s.mount&&!s.action&&(h(),o&&n.isDirty&&(d.isDirty||f.isDirty))){k()||(n.isDirty=!1,p.state.next({...n}))}}},b=(e,t,o,s,l)=>{let c=!1,u=!1;const v={name:e};if(!r.disabled){if(!o||s){(d.isDirty||f.isDirty)&&(u=n.isDirty,n.isDirty=v.isDirty=k(),c=u!==v.isDirty);const r=fy(Dm(a,e),t);u=!!Dm(n.dirtyFields,e),r!==n.isDirty?n.dirtyFields=Ry(a,i):r?Ny(n.dirtyFields,e):Mm(n.dirtyFields,e,!0),v.dirtyFields=n.dirtyFields,c=c||(d.dirtyFields||f.dirtyFields)&&u!==!r}if(o){const t=Dm(n.touchedFields,e);t||(Mm(n.touchedFields,e,o),v.touchedFields=n.touchedFields,c=c||(d.touchedFields||f.touchedFields)&&t!==o)}c&&l&&p.state.next(v)}return c?v:{}},x=(e,o,a,i)=>{const s=Dm(n.errors,e),l=(d.isValid||f.isValid)&&Fm(o)&&n.isValid!==o;var u;if(r.delayError&&a?(u=()=>((e,t)=>{Mm(n.errors,e,t),p.state.next({errors:n.errors})})(e,a),t=e=>{clearTimeout(c),c=setTimeout(u,e)},t(r.delayError)):(clearTimeout(c),t=null,a?Mm(n.errors,e,a):Ny(n.errors,e)),(a?!fy(s,a):s)||!wy(i)||l){const t={...i,...l&&Fm(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},w=async e=>(m(e,!0),await r.resolver(i,r.context,((e,t,r,n)=>{const o={};for(const r of e){const e=Dm(t,r);e&&Mm(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation))),j=async({name:t,eventType:r})=>{if(e.validate){const o=await e.validate({formValues:i,formState:n,name:t,eventType:r});if(Om(o))for(const e in o){const t=o[e];t&&F(`${ry}.${e}`,{message:cy(t.message)?t.message:"",type:t.type||ty})}else cy(o)||!o?F(ry,{message:o||"",type:ty}):D(ry);return o}return!0},_=async({fields:t,onlyCheckValid:o,name:a,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate){c.runRootValidation=!0;if(!await j({name:a,eventType:s})&&(c.valid=!1,o))return c.valid}for(const a in t){const u=t[a];if(u){const{_f:t,...p}=u;if(t){const a=l.array.has(t.name),s=u._f&&qy(u._f),p=d.validatingFields||d.isValidating||f.validatingFields||f.isValidating;s&&p&&m([t.name],!0);const h=await Qy(u,l.disabled,i,v,r.shouldUseNativeValidation&&!o,a);if(s&&p&&m([t.name]),h[t.name]&&(c.valid=!1,o))break;if(!o&&(Dm(h,t.name)?a?Zy(n.errors,h,t.name):Mm(n.errors,t.name,h[t.name]):Ny(n.errors,t.name)),e.shouldUseNativeValidation&&h[t.name])break}!wy(p)&&await _({context:c,onlyCheckValid:o,fields:p,name:a,eventType:s})}}return c.valid},k=(e,t)=>!r.disabled&&(e&&t&&Mm(i,e,t),!fy(T(),a)),O=(e,t,r)=>uy(e,l,{...s.mount?i:Rm(t)?a:cy(e)?{[e]:t}:t},r,t),S=(e,t,r={})=>{const n=Dm(o,e);let a=t;if(n){const r=n._f;r&&(!r.disabled&&Mm(i,e,Fy(t,r)),a=_y(r.ref)&&_m(t)?"":t,ky(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?wm(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(a)?e.checked=!!a.find(t=>t===e.value):e.checked=a===e.value||!!a)}):r.refs.forEach(e=>e.checked=e.value===a):jy(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||p.state.next({name:e,values:Pm(i)})))}(r.shouldDirty||r.shouldTouch)&&b(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&R(e)},N=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const a=t[n],i=e+"."+n,s=Dm(o,i);(l.array.has(e)||Om(a)||s&&!s._f)&&!jm(a)?N(i,a,r):S(i,a,r)}},E=(e,t,r={})=>{const a=Dm(o,e),c=l.array.has(e),u=Pm(t),v=fy(Dm(i,e),u);if(v||Mm(i,e,u),c)p.array.next({name:e,values:Pm(i)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&r.shouldDirty&&(y(),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:k(e,u)}));else{const t=Array.isArray(u)&&!u.length||wy(u);!a||a._f||_m(u)||t?S(e,u,r):N(e,u,r)}if(!v){const t=Wy(e,l),r=Pm(i);if(!c)for(const t of Nm(l.array,e))p.array.next({name:t,values:r});p.state.next({...t&&n,name:s.mount||t?e:void 0,values:r})}},P=async a=>{s.mount=!0;const c=a.target;let u=c.name,y=!0;const g=Dm(o,u),k=e=>{y=Number.isNaN(e)||jm(e)&&isNaN(e.getTime())||fy(e,Dm(i,u,e))},O=zy(r.mode),S=zy(r.reValidateMode);if(g){let s,N;const E=c.type?Ly(g._f):Sm(a),P=a.type===Lm||a.type===Vm,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(g._f)&&!e.validate&&!r.resolver&&!Dm(n.errors,u)&&!g._f.deps||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(P,Dm(n.touchedFields,u),n.isSubmitted,S,O),T=Wy(u,l,P);Mm(i,u,E),P?c&&c.readOnly||(g._f.onBlur&&g._f.onBlur(a),t&&t(0)):g._f.onChange&&g._f.onChange(a);const A=b(u,E,P),D=!wy(A)||T;if(!P&&p.state.next({name:u,type:a.type,values:Pm(i)}),C)return(d.isValid||f.isValid)&&("onBlur"===r.mode?P&&h():P||h()),D&&p.state.next({name:u,...T?{}:A});if(!r.resolver&&e.validate&&await j({name:u,eventType:a.type}),!P&&T&&p.state.next({...n}),r.resolver){const{errors:e}=await w([u]);if(m([u]),k(E),y){const t=Hy(n.errors,o,u),r=Hy(e,o,t.name||u);s=r.error,u=r.name,N=wy(e)}}else m([u],!0),s=(await Qy(g,l.disabled,i,v,r.shouldUseNativeValidation))[u],m([u]),k(E),y&&(s?N=!1:(d.isValid||f.isValid)&&(N=await _({fields:o,onlyCheckValid:!0,name:u,eventType:a.type})));y&&(g._f.deps&&(!Array.isArray(g._f.deps)||g._f.deps.length>0)&&R(g._f.deps),x(u,N,s,A))}},C=(e,t)=>{if(Dm(n.errors,t)&&e.focus)return e.focus(),1},R=async(e,t={})=>{let a,i;const s=gy(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(m(e),e)for(const r of e){const e=Dm(t,r);e?l.array.has(r)&&Om(e)?Zy(n.errors,{[r]:e},r):Mm(n.errors,r,e):Ny(n.errors,r)}else n.errors=t;return t})(Rm(e)?e:s);a=wy(t),i=e?!s.some(e=>Dm(t,e)):a}else e?(i=(await Promise.all(s.map(async e=>{const t=Dm(o,e);return await _({fields:t&&t._f?{[e]:t}:t,eventType:Um})}))).every(Boolean),(i||n.isValid)&&h()):i=a=await _({fields:o,name:e,eventType:Um});return p.state.next({...!cy(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:a}:{},errors:n.errors}),t.shouldFocus&&!i&&By(o,C,e?s:l.mount),i},T=(e,t)=>{let r={...s.mount?i:a};return t&&(r=xy(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Rm(e)?r:cy(e)?Dm(r,e):e.map(e=>Dm(r,e))},A=(e,t)=>({invalid:!!Dm((t||n).errors,e),isDirty:!!Dm((t||n).dirtyFields,e),error:Dm((t||n).errors,e),isValidating:!!Dm(n.validatingFields,e),isTouched:!!Dm((t||n).touchedFields,e)}),D=e=>{const t=e?gy(e):void 0;null==t||t.forEach(e=>Ny(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},F=(e,t,r)=>{const a=(Dm(o,e,{_f:{}})._f||{}).ref,i=Dm(n.errors,e)||{},{ref:s,message:l,type:c,...u}=i;Mm(n.errors,e,{...u,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},I=e=>p.state.subscribe({next:t=>{if(r=e.name,o=t.name,s=e.exact,(!r||!o||r===o||gy(r).some(e=>e&&(s?e===o:e.startsWith(o)||o.startsWith(e))))&&((e,t,r,n)=>{r(e);const{name:o,...a}=e;return wy(a)||n&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||Km))})(t,e.formState||d,W,e.reRenderRoot)){const r={...i};e.callback({values:r,...n,...t,defaultValues:a})}var r,o,s}}).unsubscribe,M=(e,t={})=>{for(const s of e?gy(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Ny(o,s),Ny(i,s)),!t.keepError&&Ny(n.errors,s),!t.keepDirty&&Ny(n.dirtyFields,s),!t.keepTouched&&Ny(n.touchedFields,s),!t.keepIsValidating&&Ny(n.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&Ny(a,s);p.state.next({values:Pm(i)}),p.state.next({...n,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&h()},L=({disabled:e,name:t})=>{if(Fm(e)&&s.mount||e||l.disabled.has(t)){const r=l.disabled.has(t)!==!!e;e?l.disabled.add(t):l.disabled.delete(t),r&&s.mount&&!s.action&&h()}},V=(e,t={})=>{let n=Dm(o,e);const i=Fm(t.disabled)||Fm(r.disabled),c=!l.registerName.has(e)&&n&&n._f&&!n._f.mount;return Mm(o,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),n&&!c?L({disabled:Fm(t.disabled)?t.disabled:r.disabled,name:e}):g(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:$y(t.min),max:$y(t.max),minLength:$y(t.minLength),maxLength:$y(t.maxLength),pattern:$y(t.pattern)}:{},name:e,onChange:P,onBlur:P,ref:i=>{if(i){l.registerName.add(e),V(e,t),l.registerName.delete(e),n=Dm(o,e);const r=Rm(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>Oy(e)||wm(e))(r),c=n._f.refs||[];if(s?c.find(e=>e===r):r===n._f.ref)return;Mm(o,e,{_f:{...n._f,...s?{refs:[...c.filter(Sy),r,...Array.isArray(Dm(a,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),g(e,!1,void 0,r)}else n=Dm(o,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!Nm(l.array,e).length||!s.action)&&l.unMount.add(e)}}},$=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&By(o,C,l.mount),z=(e,t)=>async a=>{let s;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let c=Pm(i);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await w();m(),n.errors=e,c=Pm(t)}else await _({fields:o,eventType:zm});if(l.disabled.size)for(const e of l.disabled)Ny(c,e);if(Ny(n.errors,ny),wy(n.errors)){p.state.next({errors:{}});try{await e(c,a)}catch(e){s=e}}else t&&await t({...n.errors},a),$(),setTimeout($);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:wy(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},U=(e,t={})=>{const c=e?Pm(e):a,u=Pm(c),f=wy(e),v=f?a:u;if(t.keepDefaultValues||(a=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(Ry(a,i))]);for(const t of Array.from(e)){const e=Dm(n.dirtyFields,t),r=Dm(i,t),o=Dm(v,t);e&&!Rm(r)?Mm(v,t,r):e||Rm(o)||E(t,o)}}else{if(Em&&Rm(e))for(const e of l.mount){const t=Dm(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(_y(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)E(e,Dm(v,e));else o={}}i=r.shouldUnregister?t.keepDefaultValues?Pm(a):{}:Pm(v),p.array.next({values:{...v}}),p.state.next({values:{...v}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!wy(v),s.watch=!!r.shouldUnregister,s.keepIsValid=!!t.keepIsValid,s.action=!1,t.keepErrors||(n.errors={}),p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!f&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||fy(e,a))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?Ry(a,i):n.dirtyFields:t.keepDefaultValues&&e?Ry(a,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:a})},q=(e,t)=>U(Im(e)?e(i):e,{...r.resetOptions,...t}),W=e=>{n={...n,...e}},B={control:{register:V,unregister:M,getFieldState:A,handleSubmit:z,setError:F,_subscribe:I,_runSchema:w,_updateIsValidating:m,_focusError:$,_getWatch:O,_getDirty:k,_setValid:h,_setFieldArray:(e,t=[],a,l,c=!0,u=!0)=>{if(l&&a&&!r.disabled){if(s.action=!0,u&&Array.isArray(Dm(o,e))){const t=a(Dm(o,e),l.argA,l.argB);c&&Mm(o,e,t)}if(u&&Array.isArray(Dm(n.errors,e))){const t=a(Dm(n.errors,e),l.argA,l.argB);c&&Mm(n.errors,e,t),((e,t)=>{!Tm(Dm(e,t)).length&&Ny(e,t)})(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray(Dm(n.touchedFields,e))){const t=a(Dm(n.touchedFields,e),l.argA,l.argB);c&&Mm(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&y(),p.state.next({name:e,isDirty:k(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Mm(i,e,t)},_setDisabledField:L,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Tm(Dm(s.mount?i:a,e,r.shouldUnregister?Dm(a,e,[]):[])),_reset:U,_resetDefaultValues:()=>Im(r.defaultValues)&&r.defaultValues().then(e=>{q(e,r.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Dm(o,e);t&&(t._f.refs?t._f.refs.every(e=>!Sy(e)):!Sy(t._f.ref))&&M(e)}l.unMount=new Set},_disableForm:e=>{Fm(e)&&(p.state.next({disabled:e}),By(o,(t,r)=>{const n=Dm(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:p,_proxyFormState:d,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(s.mount=!0,f={...f,...e.formState},I({...e,formState:{...u,...e.formState}})),trigger:R,register:V,handleSubmit:z,watch:(e,t)=>Im(e)?p.state.subscribe({next:r=>"values"in r&&e(r.values||O(void 0,t),r)}):O(e,t,!0),setValue:E,setValues:e=>{const t=Im(e)?e(i):e;if(!fy(i,t)){i={...i,...t};for(const e of l.mount)E(e,Dm(t,e));p.state.next({...n,values:i})}},getValues:T,reset:q,resetField:(e,t={})=>{Dm(o,e)&&(Rm(t.defaultValue)?E(e,Pm(Dm(a,e))):(E(e,t.defaultValue),Mm(a,e,Pm(t.defaultValue))),t.keepTouched||Ny(n.touchedFields,e),t.keepDirty||(Ny(n.dirtyFields,e),n.isDirty=t.defaultValue?k(e,Pm(Dm(a,e))):k()),t.keepError||(Ny(n.errors,e),d.isValid&&h()),p.state.next({...n}))},clearErrors:D,unregister:M,setError:F,setFocus:(e,t={})=>{const r=Dm(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Im(e.select)&&e.select()})}},getFieldState:A};return{...B,formControl:B}}function eg(e={}){const t=i.useRef(void 0),r=i.useRef(void 0),[n,o]=i.useState(()=>({...Pm(Yy),isLoading:Im(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Im(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Im(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...o}=Xy(e);t.current={...o,formState:n}}const a=t.current.control;return a._options=e,sy(()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState,defaultValues:a._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),i.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),i.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),i.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),i.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),i.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}},[a,n.isDirty]),i.useEffect(()=>{var t;e.values&&!fy(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),(null===(t=a._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||a._setValid(),r.current=e.values,o(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),i.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=i.useMemo(()=>iy(n,a),[a,n]),t.current}const tg=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Dm(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},rg=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?tg(n.ref,r,e):n.refs&&n.refs.forEach(t=>tg(t,r,e))}},ng=(e,t)=>{t.shouldUseNativeValidation&&rg(e,t);const r={};for(const n in e){const o=Dm(t.fields,n),a=Object.assign(e[n]||{},{ref:o&&o.ref});if(og(t.names||Object.keys(e),n)){const e=Object.assign({},Dm(r,n));Mm(e,"root",a),Mm(r,n,e)}else Mm(r,n,a)}return r},og=(e,t)=>e.some(e=>e.startsWith(t+"."));var ag=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,a=n.message,i=n.path.join(".");if(!r[i])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[i]={message:s.message,type:s.code}}else r[i]={message:a,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=r[i].types,c=l&&l[n.code];r[i]=yy(i,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},ig=function(e,t,r){return void 0===r&&(r={}),function(n,o,a){try{return Promise.resolve(function(o,i){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return a.shouldUseNativeValidation&&rg({},a),{errors:{},values:r.raw?n:e}})}catch(e){return i(e)}return s&&s.then?s.then(void 0,i):s}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:ng(ag(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e}))}catch(e){return Promise.reject(e)}}};const sg=_u("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);const lg=function(e){var t=e.link,r=void 0===t?"/":t;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)(kt,{to:r,className:"vt-flex vt-items-center vt-justify-center vt-text-slate-700 vt-bg-slate-200 hover:vt-bg-slate-300 vt-px-2 vt-rounded-sm vt-transition-colors",children:(0,Sn.jsx)(sg,{className:"vt-w-4"})})})};function cg(e){return cg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cg(e)}function ug(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return dg(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(dg(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dg(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,dg(d,"constructor",c),dg(c,"constructor",l),l.displayName="GeneratorFunction",dg(c,o,"GeneratorFunction"),dg(d),dg(d,o,"Generator"),dg(d,n,function(){return this}),dg(d,"toString",function(){return"[object Generator]"}),(ug=function(){return{w:a,m:f}})()}function dg(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dg=function(e,t,r,n){function a(t,r){dg(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},dg(e,t,r,n)}function fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function pg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(r),!0).forEach(function(t){vg(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hg(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function mg(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){hg(a,n,o,i,s,"next",e)}function s(e){hg(a,n,o,i,s,"throw",e)}i(void 0)})}}const yg=function(){var e,t,r,n,o,a=eg({resolver:ig(am),defaultValues:{chosen_plugins:[],ip_tags:[]}}),s=a.handleSubmit,l=a.control,c=a.formState.errors,u=Ya({mutationFn:(n=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_disable_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return n.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Plugin disabled successfully!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to disable plugin","versatile-toolkit"))}}),d=function(){var e=mg(ug().m(function e(t){return ug().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u.mutateAsync(pg({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),f=Qa({queryKey:["getDisablePluginList"],queryFn:(o=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_disable_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return o.apply(this,arguments)}),staleTime:5e3}),p=f.data,v=f.isFetching,h=(f.isLoading,f.isError,null==p?void 0:p.data.chosen_plugins),m=null==p?void 0:p.data.ip_tags;(0,i.useEffect)(function(){(h||m)&&l._reset({chosen_plugins:h||[],ip_tags:m||[]})},[h,m,l]);var y,g,b=eg({resolver:ig(lm),defaultValues:{activeTheme:""}}),x=b.handleSubmit,w=b.control,j=b.formState.errors,_=Ya({mutationFn:(y=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_active_theme",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return y.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Theme activated successfully!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to activate theme","versatile-toolkit"))}}),k=function(){var e=mg(ug().m(function e(t){return ug().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_.mutateAsync(pg({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=Qa({queryKey:["getActiveTheme"],queryFn:(g=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_active_theme",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return g.apply(this,arguments)}),staleTime:5e3}),S=O.data,N=O.isFetching,E=null==S?void 0:S.data.activeTheme;return(0,i.useEffect)(function(){E&&w._reset({activeTheme:E})},[E,w]),(0,Sn.jsxs)("div",{className:"vt-py-4 vt-space-y-6 vt-max-w-[800px]",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{link:"/"}),(0,ca.__)("Deactivate Plugins","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,ca.__)("Disable Plugin by IP address","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,ca.__)("Select plugins to disable for specific IP addresses. This is useful for troubleshooting plugin conflicts.","versatile-toolkit")}),(0,Sn.jsxs)("form",{onSubmit:s(d),children:[(0,Sn.jsxs)("div",{className:"vt-min-h-[42px]",children:[v?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading plugins","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"chosen_plugins",control:l,render:function(e){var t=e.field;return(0,Sn.jsx)(hv,{selectedPlugin:t.value,onChange:t.onChange})}}),c.chosen_plugins&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==c||null===(e=c.chosen_plugins)||void 0===e?void 0:e.message})]}),(0,Sn.jsxs)("div",{className:"vt-min-h-[42px] vt-mt-2",children:[v?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading settings","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"ip_tags",control:l,render:function(e){var t=e.field;return(0,Sn.jsx)(ym,{tags:t.value,onChange:t.onChange})}}),(null==c?void 0:c.ip_tags)&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==c||null===(t=c.ip_tags)||void 0===t?void 0:t.message})]}),(0,Sn.jsx)(Qi,{type:"submit",className:"vt-mt-6",disabled:u.isPending,children:u.isPending?(0,ca.__)("Saving...","versatile-toolkit"):(0,ca.__)("Save List","versatile-toolkit")})]})]}),(0,Sn.jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,ca.__)("Switch Theme","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,ca.__)("Select and activate a theme.","versatile-toolkit")}),(0,Sn.jsxs)("form",{onSubmit:x(k),children:[(0,Sn.jsxs)("div",{className:"vt-min-h-[42px]",children:[N?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading themes","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"activeTheme",control:w,render:function(e){var t=e.field;return(0,Sn.jsx)(xm,{selectedTheme:t.value,onChange:t.onChange})}}),(null==j?void 0:j.activeTheme)&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==j||null===(r=j.activeTheme)||void 0===r?void 0:r.message})]}),(0,Sn.jsx)(Qi,{type:"submit",className:"vt-mt-6",disabled:_.isPending,children:(0,Sn.jsx)(fa,{isLoading:_.isPending,loadingText:(0,ca.__)("Activating","versatile-toolkit"),children:(0,ca.__)("Activate Theme","versatile-toolkit")})})]})]})]})},gg=_u("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),bg=_u("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),xg=_u("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function wg(e){return wg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(e)}function jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Eg(n.key),n)}}function _g(e,t,r){return t=Og(t),function(e,t){if(t&&("object"==wg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kg()?Reflect.construct(t,r||[],Og(e).constructor):t.apply(e,r))}function kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kg=function(){return!!e})()}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Og(e)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sg(e,t)}function Ng(e,t,r){return(t=Eg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eg(e){var t=function(e,t){if("object"!=wg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wg(t)?t:t+""}var Pg=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ng(r=_g(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Ng(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sg(e,t)}(t,e),function(e,t,r){return t&&jg(e.prototype,t),r&&jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,Sn.jsxs)(Ra,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,Sn.jsxs)(Ta,{className:"vt-text-center",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,Sn.jsx)(gg,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,Sn.jsx)(Aa,{className:"vt-text-red-700",children:(0,ca.__)("Something went wrong","versatile-toolkit")})]}),(0,Sn.jsxs)(Da,{className:"vt-space-y-4",children:[(0,Sn.jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,ca.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,Sn.jsxs)(Qi,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(bg,{className:"vt-h-4 vt-w-4"}),(0,ca.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,Sn.jsxs)(Qi,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(xg,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,ca.__)("Hide Details","versatile-toolkit"):(0,ca.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,Sn.jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,ca.__)("Error Details:","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Message:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Stack Trace:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Component Stack:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component);const Cg=Pg;function Rg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ag=function(e){var t=e.value,r=void 0===t?"":t,n=e.onChange,o=e.buttonText,a=void 0===o?(0,ca.__)("Upload Image","versatile-toolkit"):o,s=e.allowedTypes,l=void 0===s?["image"]:s,c=e.multiple,u=void 0!==c&&c,d=Rg((0,i.useState)(r),2),f=d[0],p=d[1],v=Rg((0,i.useState)(0),2),h=(v[0],v[1]);(0,i.useEffect)(function(){p(r)},[r]);return(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(Qi,{type:"button",variant:"outline",onClick:function(){if(void 0!==window.wp&&window.wp.media){var e=window.wp.media({title:(0,ca.__)("Select Image","versatile-toolkit"),button:{text:(0,ca.__)("Use this image","versatile-toolkit")},multiple:u,library:{type:l}});e.on("select",function(){var t=e.state().get("selection").first().toJSON();p(t.url),h(t.id),n(t.url,t.id)}),e.open()}},children:a}),f&&(0,Sn.jsx)(Qi,{type:"button",variant:"destructive",size:"sm",onClick:function(){p(""),h(0),n("",0)},children:(0,ca.__)("Remove","versatile-toolkit")})]}),f&&(0,Sn.jsxs)("div",{className:"vt-mt-4",children:[(0,Sn.jsx)("div",{className:"vt-border vt-rounded-lg vt-p-2 vt-inline-block vt-bg-gray-50",children:(0,Sn.jsx)("img",{src:f,alt:(0,ca.__)("Preview","versatile-toolkit"),className:"vt-max-w-xs vt-max-h-32 vt-object-cover vt-rounded"})}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600 vt-mt-2",children:(0,ca.__)("Image selected","versatile-toolkit")})]})]})},Dg=_u("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var Fg=function(e){var t=e.isOpen,r=e.onClose;(0,i.useEffect)(function(){var e=function(e){"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[t,r]);return{handleBackdropClick:function(e){e.target===e.currentTarget&&r()}}};function Ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Lg=function(e){var t,r,n,o,a=e.type,s=e.disabled,l=void 0!==s&&s,c=e.getFormData,u=Ig((0,i.useState)(!1),2),d=u[0],f=u[1],p=Ig((0,i.useState)(!1),2),v=p[0],h=p[1],m=function(){f(!1),h(!1)},y=Fg({isOpen:d,onClose:m}).handleBackdropClick;return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)(Qi,{type:"button",variant:"outline",onClick:function(){f(!0),h(!0)},disabled:l,className:"vt-flex vt-items-center vt-gap-2 vt-border-gray-400",children:[(0,Sn.jsx)(Dg,{size:16}),(0,ca.__)("Preview","versatile-toolkit")]}),d&&(0,Sn.jsx)("div",{className:"vt-fixed vt-inset-x-0 vt-bottom-0 vt--top-[15px] vt-z-[999999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:y,children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold",children:"maintenance"===a?(0,ca.__)("Maintenance Page Preview","versatile-toolkit"):(0,ca.__)("Coming Soon Page Preview","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",variant:"ghost",size:"sm",onClick:m,children:(0,Sn.jsx)(Ou,{size:16})})]}),(0,Sn.jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50",children:[v&&(0,Sn.jsx)(ya,{}),(0,Sn.jsx)("iframe",{src:(t=null==Va?void 0:Va.ajax_url,r=null==Va?void 0:Va.nonce_value,n="maintenance"===a?"versatile_preview_maintenance":"versatile_preview_comingsoon",o=JSON.stringify(c()),"".concat(t,"?action=").concat(n,"&versatile_nonce=").concat(r,"&type=").concat(a,"&preview_data=").concat(encodeURIComponent(o))),className:"vt-w-full vt-h-full vt-border-0",title:"maintenance"===a?(0,ca.__)("Maintenance Preview","versatile-toolkit"):(0,ca.__)("Coming Soon Preview","versatile-toolkit"),onLoad:function(){return h(!1)},style:{display:v?"none":"block"}})]})}),(0,Sn.jsx)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-rounded-b-lg",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:(0,ca.__)("This is how your page will look to visitors.","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:m,variant:"outline",children:(0,ca.__)("Close Preview","versatile-toolkit")})]})})]})})]})};function Vg(e){return Vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vg(e)}var $g=["className"];function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ug(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Vg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qg(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,$g);return(0,Sn.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(t){Ug(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la("vt-animate-pulse vt-rounded-md vt-bg-primary/10",t)},r))}function Wg(){return(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-space-y-3",children:[(0,Sn.jsx)(qg,{className:"vt-h-[45px] vt-w-[200px] vt-rounded-xl"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(qg,{className:"vt-h-4 vt-w-[200px]"}),(0,Sn.jsx)(qg,{className:"vt-h-4 vt-w-[200px]"})]})]})}function Bg(e){return function(e){if(Array.isArray(e))return Kg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||Zg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zg(e,t){if(e){if("string"==typeof e)return Kg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kg(e,t):void 0}}function Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Gg=[{id:"classic",name:(0,ca.__)("Classic","versatile-toolkit"),description:(0,ca.__)("Clean and professional design with centered content","versatile-toolkit")},{id:"modern",name:(0,ca.__)("Modern","versatile-toolkit"),description:(0,ca.__)("Sleek design with gradient backgrounds and modern typography","versatile-toolkit")},{id:"minimal",name:(0,ca.__)("Minimal","versatile-toolkit"),description:(0,ca.__)("Simple and elegant with focus on content","versatile-toolkit")},{id:"creative",name:(0,ca.__)("Creative","versatile-toolkit"),description:(0,ca.__)("Bold design with creative layouts and animations","versatile-toolkit")},{id:"corporate",name:(0,ca.__)("Corporate","versatile-toolkit"),description:(0,ca.__)("Professional business design with elegant typography","versatile-toolkit")},{id:"neon",name:(0,ca.__)("Neon","versatile-toolkit"),description:(0,ca.__)("Cyberpunk-inspired design with glowing neon effects","versatile-toolkit")}],Qg=function(e){return"maintenance"===e?"versatile_maintenance_template_preview":"versatile_comingsoon_template_preview"};const Jg=function(e){var t,r,n=e.selectedTemplate,o=e.onTemplateSelect,a=e.type,s=e.formData,l=e.getFormData,c=Hg((0,i.useState)(null),2),u=c[0],d=c[1],f=Hg((0,i.useState)(!1),2),p=f[0],v=f[1],h=(0,i.useState)(function(){var e=Gg.findIndex(function(e){return e.id===n});if(-1===e)return Gg;var t=Gg[e],r=Gg.filter(function(t,r){return r!==e});return[t].concat(Bg(r))}),m=Hg(h,1)[0],y=function(e){o(e)},g=function(){d(null),v(!1)},b=(0,i.useMemo)(function(){var e=l();return e?JSON.stringify(e):""},[s]);(0,i.useEffect)(function(){var e=setTimeout(function(){document.querySelectorAll(".vt-iframe-loading").forEach(function(e){var t=e;"none"!==t.style.display&&(t.style.display="none")})},3e3);return function(){return clearTimeout(e)}},[b]);var x=Fg({isOpen:!!u,onClose:g}).handleBackdropClick;return(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-gap-4 vt-overflow-x-auto vt-p-2 vt-scrollbar-thin vt-scrollbar-thumb-gray-300 vt-scrollbar-track-gray-100",children:m.map(function(e){return(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)(Ra,{className:"vt-cursor-pointer vt-flex-shrink-0 vt-w-64 vt-border-red-200 vt-bg-red-50",children:(0,Sn.jsxs)(Da,{className:"vt-p-4",children:[(0,Sn.jsx)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-red-100 vt-flex vt-items-center vt-justify-center",children:(0,Sn.jsx)("p",{className:"vt-text-red-600 vt-text-sm",children:(0,ca.__)("Template Error","versatile-toolkit")})}),(0,Sn.jsx)("h3",{className:"vt-font-medium vt-mt-2 vt-text-red-700",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-red-600",children:(0,ca.__)("Failed to load template","versatile-toolkit")})]})}),children:(0,Sn.jsx)(Ra,{className:"vt-cursor-pointer vt-transition-all vt-duration-200 hover:vt-shadow-lg vt-flex-shrink-0 vt-w-64 ".concat(n===e.id?"vt-ring-2 vt-ring-blue-500 vt-shadow-lg":"hover:vt-ring-1 hover:vt-ring-gray-300"),onClick:function(){return y(e.id)},children:(0,Sn.jsxs)(Da,{children:[(0,Sn.jsxs)("div",{className:"vt-relative vt-mb-3",children:[(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-gray-100 vt-overflow-hidden vt-border vt-relative",children:[(0,Sn.jsx)("div",{className:"vt-w-full vt-h-full vt-flex vt-items-center vt-justify-center vt-bg-gradient-to-br vt-from-blue-50 vt-to-indigo-100",children:(0,Sn.jsxs)("div",{className:"vt-text-center vt-p-4",children:[(0,Sn.jsxs)("div",{className:"vt-text-2xl vt-mb-2",children:["classic"===e.id&&"📄","modern"===e.id&&"🎨","minimal"===e.id&&"✨","creative"===e.id&&"🎭","corporate"===e.id&&"🏢","neon"===e.id&&"⚡"]}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-font-medium vt-text-gray-700",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-text-gray-500 vt-mt-1",children:(null==s?void 0:s.title)||"Preview"}),(null==s?void 0:s.background_image)&&(0,Sn.jsx)("div",{className:"vt-absolute vt-inset-0 vt-opacity-20",children:(0,Sn.jsx)("img",{src:s.background_image,alt:"",className:"vt-w-full vt-h-full vt-object-cover"})})]})}),(0,Sn.jsx)(Cg,{fallback:null,onError:function(t){var r=document.querySelector(".template-".concat(e.id," .vt-iframe-loading"));r&&(r.style.display="none")},children:(0,Sn.jsx)("iframe",{src:"".concat(Va.ajax_url,"?action=").concat(Qg(a),"&versatile_nonce=").concat(Va.nonce_value,"&template_id=").concat(e.id,"&type=").concat(a,"&preview_mode=thumbnail").concat(s?"&preview_data=".concat(encodeURIComponent(b)):""),className:"vt-w-full vt-h-full vt-border-0 vt-pointer-events-none vt-absolute vt-top-0 vt-left-0 vt-hidden",title:"".concat(e.name," Preview"),style:{transform:"scale(0.25)",transformOrigin:"top left",width:"400%",height:"400%"},onLoad:function(e){var t,r,n=e.currentTarget,o=null===(t=n.parentElement)||void 0===t?void 0:t.querySelector("div:not(.vt-iframe-loading)");o&&n&&(o.style.display="none",n.classList.remove("vt-hidden"));var a=null===(r=n.parentElement)||void 0===r?void 0:r.querySelector(".vt-iframe-loading");a&&(a.style.display="none")},onError:function(e){var t,r=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.querySelector(".vt-iframe-loading");r&&(r.style.display="none")}},"".concat(e.id,"-").concat(b))})]}),n===e.id&&(0,Sn.jsx)("div",{className:"vt-absolute vt-top-2 vt-right-2 vt-bg-blue-500 vt-text-white vt-rounded-full vt-p-1 vt-z-10",children:(0,Sn.jsx)(uv,{size:16})}),(0,Sn.jsx)("div",{className:"vt-absolute vt-inset-0 vt-bg-gray-100 vt-flex vt-items-center vt-justify-center vt-rounded-md vt-iframe-loading",children:(0,Sn.jsx)(Wg,{})})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)("h4",{className:"vt-font-semibold vt-text-sm",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-text-gray-600 vt-line-clamp-2",children:e.description}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2 vt-pt-2",children:[(0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:n===e.id?"default":"outline",onClick:function(t){t.stopPropagation(),y(e.id)},className:"vt-flex-1 vt-text-xs",children:n===e.id?(0,ca.__)("Selected","versatile-toolkit"):(0,ca.__)("Select","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:"ghost",onClick:function(t){var r;t.stopPropagation(),r=e.id,d(r),v(!0)},className:"vt-text-xs",children:(0,ca.__)("Preview","versatile-toolkit")})]})]})]})})},e.id)})}),u&&(0,Sn.jsx)("div",{className:"vt-template-preview-wrapper vt-fixed vt-inset-x-0 vt--top-[15px] vt-bottom-0 vt-z-[99999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:x,children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,Sn.jsxs)("h3",{className:"vt-text-lg vt-font-semibold",children:[null===(t=Gg.find(function(e){return e.id===u}))||void 0===t?void 0:t.name," -"," ",(0,ca.__)(" Template Preview","versatile-toolkit")]}),(0,Sn.jsx)(Qi,{type:"button",variant:"ghost",size:"sm",onClick:g,children:(0,Sn.jsx)(Ou,{size:16})})]}),(0,Sn.jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50 vt-relative",children:[p&&(0,Sn.jsx)(ya,{}),(0,Sn.jsx)("iframe",{src:"".concat(Va.ajax_url,"?action=").concat(Qg(a),"&versatile_nonce=").concat(Va.nonce_value,"&template_id=").concat(u,"&type=").concat(a,"&preview_mode=thumbnail&preview_data=").concat(encodeURIComponent(JSON.stringify(l()))),className:"vt-w-full vt-h-full vt-border-0",title:(0,ca.__)("Template Preview","versatile-toolkit"),onLoad:function(){return v(!1)},style:{display:p?"none":"block"}})]})}),(0,Sn.jsxs)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:null===(r=Gg.find(function(e){return e.id===u}))||void 0===r?void 0:r.description}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(Qi,{type:"button",variant:"outline",onClick:g,children:(0,ca.__)("Close","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",onClick:function(){u&&(y(u),g())},children:(0,ca.__)("Use This Template","versatile-toolkit")})]})]})]})})]})};var Yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Mi(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...a}=e,i=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Sn.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});var Xg=i.forwardRef((e,t)=>(0,Sn.jsx)(Yg.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Xg.displayName="Label";var eb=Xg;function tb(e){return tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(e)}var rb=["className"];function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ob(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=tb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ab=Wi("vt-text-sm vt-font-medium vt-leading-none peer-disabled:vt-cursor-not-allowed peer-disabled:vt-opacity-70"),ib=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,rb);return(0,Sn.jsx)(eb,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(t){ob(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:la(ab(),r)},n))});function sb(e){return sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sb(e)}ib.displayName=eb.displayName;var lb=["className"],cb=["className"],ub=["className"],db=["className","children"];function fb(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(t){hb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=sb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mb(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yb.apply(null,arguments)}var gb=e=>{const{children:t,watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,handleSubmit:v,unregister:h,control:m,register:y,setFocus:g,subscribe:b}=e,x=i.useMemo(()=>({watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,handleSubmit:v,unregister:h,control:m,register:y,setFocus:g,subscribe:b}),[s,m,d,o,n,v,y,p,f,a,g,l,c,b,u,h,r]);return i.createElement(hy.Provider,{value:x},i.createElement(oy.Provider,{value:x.control},t))},bb=i.createContext({}),xb=function(e){var t=yb({},(mb(e),e));return(0,Sn.jsx)(bb.Provider,{value:{name:t.name},children:(0,Sn.jsx)(vy,vb({},t))})},wb=function(){var e=i.useContext(bb),t=i.useContext(jb),r=my(),n=r.getFieldState,o=r.formState,a=n(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");var s=t.id;return vb({id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message")},a)},jb=i.createContext({}),_b=i.forwardRef(function(e,t){var r=e.className,n=fb(e,lb),o=i.useId();return(0,Sn.jsx)(jb.Provider,{value:{id:o},children:(0,Sn.jsx)("div",vb({ref:t,className:la("vt-space-y-2",r)},n))})});_b.displayName="FormItem";var kb=i.forwardRef(function(e,t){var r=e.className,n=fb(e,cb),o=wb(),a=o.error,i=o.formItemId;return(0,Sn.jsx)(ib,vb({ref:t,className:la(a&&"vt-text-destructive",r),htmlFor:i},n))});kb.displayName="FormLabel";var Ob=i.forwardRef(function(e,t){var r=yb({},(mb(e),e)),n=wb(),o=n.error,a=n.formItemId,i=n.formDescriptionId,s=n.formMessageId;return(0,Sn.jsx)(Li,vb({ref:t,id:a,"aria-describedby":o?"".concat(i," ").concat(s):"".concat(i),"aria-invalid":!!o},r))});Ob.displayName="FormControl";var Sb=i.forwardRef(function(e,t){var r=e.className,n=fb(e,ub),o=wb().formDescriptionId;return(0,Sn.jsx)("p",vb({ref:t,id:o,className:la("vt-text-[0.8rem] vt-text-muted-foreground",r)},n))});Sb.displayName="FormDescription";var Nb=i.forwardRef(function(e,t){var r,n=e.className,o=e.children,a=fb(e,db),i=wb(),s=i.error,l=i.formMessageId,c=s?String(null!==(r=null==s?void 0:s.message)&&void 0!==r?r:""):o;return c?(0,Sn.jsx)("p",vb(vb({ref:t,id:l,className:la("vt-text-[0.8rem] vt-font-medium vt-text-destructive",n)},a),{},{children:c})):null});function Eb(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Nb.displayName="FormMessage";var Pb="Switch",[Cb,Rb]=fs(Pb),[Tb,Ab]=Cb(Pb),Db=i.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[p,v]=i.useState(null),h=Ai(t,e=>v(e)),m=i.useRef(!1),y=!p||(d||!!p.closest("form")),[g,b]=bs({prop:o,defaultProp:a??!1,onChange:u,caller:Pb});return(0,Sn.jsxs)(Tb,{scope:r,checked:g,disabled:l,children:[(0,Sn.jsx)(Os.button,{type:"button",role:"switch","aria-checked":g,"aria-required":s,"data-state":Lb(g),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:h,onClick:ds(e.onClick,e=>{b(e=>!e),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),y&&(0,Sn.jsx)(Mb,{control:p,bubbles:!m.current,name:n,value:c,checked:g,required:s,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Db.displayName=Pb;var Fb="SwitchThumb",Ib=i.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Ab(Fb,r);return(0,Sn.jsx)(Os.span,{"data-state":Lb(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Ib.displayName=Fb;var Mb=i.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=i.useRef(null),l=Ai(s,a),c=Eb(r),u=Qf(t);return i.useEffect(()=>{const e=s.current;if(!e)return;const t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==r&&o){const t=new Event("click",{bubbles:n});o.call(e,r),e.dispatchEvent(t)}},[c,r,n]),(0,Sn.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Lb(e){return e?"checked":"unchecked"}Mb.displayName="SwitchBubbleInput";var Vb=Db,$b=Ib;function zb(e){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(e)}var Ub=["className"];function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(t){Bb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Hb=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ub);return(0,Sn.jsx)(Vb,Wb(Wb({className:la("vt-peer vt-inline-flex vt-h-6 vt-w-11 vt-shrink-0 vt-cursor-pointer vt-items-center vt-rounded-full vt-border-2 vt-border-transparent vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-4 focus-visible:vt-ring-blue-300 disabled:vt-cursor-not-allowed disabled:vt-opacity-50 data-[state=checked]:vt-bg-blue-600 data-[state=unchecked]:vt-bg-[#c7c6c6]",r)},n),{},{ref:t,children:(0,Sn.jsx)($b,{className:la("vt-pointer-events-none vt-block vt-h-5 vt-w-5 vt-rounded-full vt-bg-white vt-border vt-border-gray-300 vt-shadow-lg vt-ring-0 vt-transition-transform data-[state=checked]:vt-translate-x-5 data-[state=unchecked]:vt-translate-x-0")})}))});function Zb(e){return Zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zb(e)}Hb.displayName=Vb.displayName;var Kb=["className"];function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Zb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jb=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Kb);return(0,Sn.jsx)("textarea",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(t){Qb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la("vt-flex vt-min-h-[60px] vt-w-full vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-px-3 vt-py-2 vt-text-base vt-shadow-sm vt-placeholder:text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:text-sm",r),ref:t},n))});function Yb(e){return Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yb(e)}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(t){tx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Yb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rx(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return nx(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(nx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,nx(d,"constructor",c),nx(c,"constructor",l),l.displayName="GeneratorFunction",nx(c,o,"GeneratorFunction"),nx(d),nx(d,o,"Generator"),nx(d,n,function(){return this}),nx(d,"toString",function(){return"[object Generator]"}),(rx=function(){return{w:a,m:f}})()}function nx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nx=function(e,t,r,n){function a(t,r){nx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},nx(e,t,r,n)}function ox(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ax(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ix(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ix(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Jb.displayName="Textarea";const sx=function(){var e=ax((0,i.useState)(!1),2),t=e[0],r=e[1],n=ax((0,i.useState)(void 0),2),o=n[0],a=n[1],s=function(){return l.getValues()},l=eg({resolver:ig(im),defaultValues:{enable_maintenance:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),c=l.handleSubmit,u=function(){var e,t=En();return Ya({mutationFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_maintenance_mood",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Cr.success(null!==(r=e.message)&&void 0!==r?r:(0,ca.__)("Maintenance Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed while updating maintenance mood","versatile-toolkit"))}})}(),d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ox(a,n,o,i,s,"next",e)}function s(e){ox(a,n,o,i,s,"throw",e)}i(void 0)})}}(rx().m(function e(t){return rx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),f=Si(),p=f.data,v=f.isLoading,h=null==p?void 0:p.data.maintenance;return(0,i.useEffect)(function(){h&&(l.reset({enable_maintenance:null==p?void 0:p.data.enable_maintenance,show_subscribers_only:h.show_subscribers_only||!1,title:h.title||"",description:h.description||"",subtitle:h.subtitle||"",template:h.template||"classic",background_image:h.background_image||"",background_image_id:h.background_image_id||0,logo:h.logo||"",logo_id:h.logo_id||0}),r(!0))},[h]),(0,Sn.jsx)("div",{className:"",children:v||!t?(0,Sn.jsx)(ma,{}):(0,Sn.jsx)(Cg,{onError:function(e,t){},fallback:(0,Sn.jsxs)("div",{className:"vt-p-6 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-medium vt-text-red-700 vt-mb-2",children:(0,ca.__)("Form Error","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-red-600",children:(0,ca.__)("There was a problem loading the maintenance settings form. Please try refreshing the page or contact support.","versatile-toolkit")}),(0,Sn.jsx)(Qi,{className:"vt-mt-4",onClick:function(){return window.location.reload()},children:(0,ca.__)("Refresh Page","versatile-toolkit")})]}),children:(0,Sn.jsx)(gb,ex(ex({},l),{},{children:(0,Sn.jsxs)("form",{onSubmit:c(d,function(e){}),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{}),(0,ca.__)("Maintenance Mood","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(Qi,{type:"submit",disabled:u.isPending,children:u.isPending?(0,ca.__)("Saving...","versatile-toolkit"):(0,ca.__)("Save Settings","versatile-toolkit")}),(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)(Qi,{variant:"outline",disabled:!0,children:(0,ca.__)("Preview Unavailable","versatile-toolkit")}),children:(0,Sn.jsx)(Lg,{type:"maintenance",disabled:u.isPending,getFormData:s})})]})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(xb,{control:l.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Choose Template","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Template selector failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Jg,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"maintenance",formData:o,getFormData:s})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Select a design template for your maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:l.control,name:"enable_maintenance",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"enable_maintenance",children:(0,ca.__)("Enable Maintenance Mood","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"enable_maintenance",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Enable or disable maintenance mode for your site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,ca.__)("Show Only for Users","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("When enabled, maintenance mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Title","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,ex({placeholder:(0,ca.__)("Enter maintenance title","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Subtitle","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,ex({placeholder:(0,ca.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Description","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jb,ex({placeholder:(0,ca.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Provide more details about the maintenance.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]}),(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:l.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Background Image","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(l.getValues())},buttonText:(0,ca.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a background image for the maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Logo","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(l.getValues())},buttonText:(0,ca.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a logo to display on the maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]})]})]})}))})})};const lx=function(){return(0,Sn.jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,Sn.jsx)(sx,{})})};function cx(e){return cx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cx(e)}function ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(r),!0).forEach(function(t){fx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ux(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return vx(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(vx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,vx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,vx(d,"constructor",c),vx(c,"constructor",l),l.displayName="GeneratorFunction",vx(c,o,"GeneratorFunction"),vx(d),vx(d,o,"Generator"),vx(d,n,function(){return this}),vx(d,"toString",function(){return"[object Generator]"}),(px=function(){return{w:a,m:f}})()}function vx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vx=function(e,t,r,n){function a(t,r){vx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},vx(e,t,r,n)}function hx(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function mx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const gx=function(){var e=mx((0,i.useState)(!1),2),t=e[0],r=e[1],n=mx((0,i.useState)(void 0),2),o=n[0],a=n[1],s=eg({resolver:ig(sm),defaultValues:{enable_comingsoon:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),l=s.handleSubmit,c=function(){return s.getValues()},u=function(){var e,t=En();return Ya({mutationFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_comingsoon_mood",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Cr.success(null!==(r=e.message)&&void 0!==r?r:(0,ca.__)("Comingsoon Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed while updating Comingsoon mood","versatile-toolkit"))}})}(),d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){hx(a,n,o,i,s,"next",e)}function s(e){hx(a,n,o,i,s,"throw",e)}i(void 0)})}}(px().m(function e(t){return px().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),f=Si(),p=f.data,v=f.isLoading,h=null==p?void 0:p.data.comingsoon;return(0,i.useEffect)(function(){h&&(s.reset({enable_comingsoon:null==p?void 0:p.data.enable_comingsoon,show_subscribers_only:h.show_subscribers_only||!1,title:h.title||"",description:h.description||"",subtitle:h.subtitle||"",template:h.template||"classic",background_image:h.background_image||"",background_image_id:h.background_image_id||0,logo:h.logo||"",logo_id:h.logo_id||0}),r(!0))},[h]),(0,Sn.jsx)("div",{className:"",children:v||!t?(0,Sn.jsx)(ma,{}):(0,Sn.jsx)(gb,dx(dx({},s),{},{children:(0,Sn.jsxs)("form",{onSubmit:l(d,function(e){}),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{}),(0,ca.__)("Comingsoon Mood","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(Qi,{type:"submit",disabled:u.isPending,children:(0,Sn.jsx)(fa,{isLoading:u.isPending,loadingText:(0,ca.__)("Saving","versatile-toolkit"),children:(0,ca.__)("Save Settings","versatile-toolkit")})}),(0,Sn.jsx)(Lg,{type:"comingsoon",disabled:u.isPending,getFormData:c})]})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(xb,{control:s.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Choose Template","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jg,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"comingsoon",formData:o,getFormData:c})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Select a design template for your coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:s.control,name:"enable_comingsoon",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"enable_comingsoon",children:(0,ca.__)("Enable Comingsoon Mood","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"enable_comingsoon",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsxs)(Sb,{children:[(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit"),(0,ca.__)("Enable the coming soon page for your website.","versatile-toolkit")]}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,ca.__)("Show Only for Users","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("When enabled, coming soon mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Title","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,dx({placeholder:(0,ca.__)("Enter coming soon title","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Subtitle","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,dx({placeholder:(0,ca.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Description","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jb,dx({placeholder:(0,ca.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Provide more details about the coming soon.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]}),(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:s.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Background Image","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(s.getValues())},buttonText:(0,ca.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a background image for the coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Logo","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(s.getValues())},buttonText:(0,ca.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a logo to display on the coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]})]})]})}))})};const bx=function(){return(0,Sn.jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,Sn.jsx)(gx,{})})};var xx=function(e){var t=e.className;return(0,Sn.jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Sn.jsxs)("g",{opacity:"0.6",children:[(0,Sn.jsx)("path",{d:"M8 12C8 10.8954 8.89543 10 10 10H18L22 14H38C39.1046 14 40 14.8954 40 16V34C40 35.1046 39.1046 36 38 36H10C8.89543 36 8 35.1046 8 34V12Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,Sn.jsx)("path",{d:"M14 22H20M14 26H24M14 30H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.4"}),(0,Sn.jsx)("circle",{cx:"32",cy:"24",r:"4",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.5"}),(0,Sn.jsx)("path",{d:"M35 27L37 29",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]})})};function wx(e){return wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wx(e)}var jx=["className"],_x=["className"],kx=["className"],Ox=["className"],Sx=["className"],Nx=["className"],Ex=["className"],Px=["className"];function Cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Rx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(t){Tx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=wx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ax(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Dx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,jx);return(0,Sn.jsx)("div",{className:"vt-relative vt-w-full vt-overflow-auto",children:(0,Sn.jsx)("table",Rx({ref:t,className:la("vt-w-full vt-caption-bottom vt-text-sm",r)},n))})});Dx.displayName="Table";var Fx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,_x);return(0,Sn.jsx)("thead",Rx({ref:t,className:la("[&_tr]:vt-border-b",r)},n))});Fx.displayName="TableHeader";var Ix=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,kx);return(0,Sn.jsx)("tbody",Rx({ref:t,className:la("[&_tr:last-child]:vt-border-0",r)},n))});Ix.displayName="TableBody",i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Ox);return(0,Sn.jsx)("tfoot",Rx({ref:t,className:la("vt-border-t vt-bg-muted/50 vt-font-medium [&>tr]:last:vt-border-b-0",r)},n))}).displayName="TableFooter";var Mx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Sx);return(0,Sn.jsx)("tr",Rx({ref:t,className:la("vt-border-b vt-transition-colors hover:vt-bg-muted/50 data-[state=selected]:vt-bg-muted",r)},n))});Mx.displayName="TableRow";var Lx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Nx);return(0,Sn.jsx)("th",Rx({ref:t,className:la("vt-h-10 vt-px-2 vt-text-left vt-align-middle vt-font-medium vt-text-muted-foreground [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Lx.displayName="TableHead";var Vx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Ex);return(0,Sn.jsx)("td",Rx({ref:t,className:la("vt-p-2 vt-align-middle [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Vx.displayName="TableCell",i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Px);return(0,Sn.jsx)("caption",Rx({ref:t,className:la("vt-mt-4 vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="TableCaption";const $x=function(e){var t=e.colSpan,r=void 0===t?9:t,n=e.title,o=void 0===n?"":n,a=e.description,i=void 0===a?"":a;return(0,Sn.jsx)(Mx,{children:(0,Sn.jsx)(Vx,{colSpan:r,className:"vt-text-center vt-py-12",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-items-center vt-space-y-3 vt-text-muted-foreground",children:[(0,Sn.jsx)(xx,{className:"vt-w-12 vt-h-12"}),(0,Sn.jsxs)("div",{className:"vt-space-y-1",children:[(0,Sn.jsx)("p",{className:"vt-text-lg vt-font-medium",children:o||(0,ca.__)("Empty!! No data found","versatile-toolkit")}),i&&(0,Sn.jsx)("p",{className:"vt-text-sm",children:i})]})]})})})};function zx(e,[t,r]){return Math.min(r,Math.max(t,e))}function Ux(e){const t=qx(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(Bx);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function qx(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wx=Symbol("radix.slottable");function Bx(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Wx}var Hx=new WeakMap;Map;function Zx(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=function(e,t){const r=e.length,n=Kx(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return-1===r?void 0:e[r]}function Kx(e){return e!=e||0===e?0:Math.trunc(e)}var Gx=i.createContext(void 0);function Qx(e){const t=Jx(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(Xx);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Jx(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yx=Symbol("radix.slottable");function Xx(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Yx}var ew=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tw=i.forwardRef((e,t)=>(0,Sn.jsx)(Os.span,{...e,ref:t,style:{...ew,...e.style}}));tw.displayName="VisuallyHidden";var rw=[" ","Enter","ArrowUp","ArrowDown"],nw=[" ","Enter"],ow="Select",[aw,iw,sw]=function(e){const t=e+"CollectionProvider",[r,n]=fs(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,Sn.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;const l=e+"CollectionSlot",c=Ux(l),u=i.forwardRef((e,t)=>{const{scope:r,children:n}=e,o=Ai(t,a(l,r).collectionRef);return(0,Sn.jsx)(c,{ref:o,children:n})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=Ux(d),v=i.forwardRef((e,t)=>{const{scope:r,children:n,...o}=e,s=i.useRef(null),l=Ai(t,s),c=a(d,r);return i.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,Sn.jsx)(p,{[f]:"",ref:l,children:n})});return v.displayName=d,[{Provider:s,Slot:u,ItemSlot:v},function(t){const r=a(e+"CollectionConsumer",t),n=i.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return n},[r.collectionRef,r.itemMap]);return n},n]}(ow),[lw,cw]=fs(ow,[sw,Xf]),uw=Xf(),[dw,fw]=lw(ow),[pw,vw]=lw(ow),hw=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:p,required:v,form:h}=e,m=uw(t),[y,g]=i.useState(null),[b,x]=i.useState(null),[w,j]=i.useState(!1),_=function(e){const t=i.useContext(Gx);return e||t||"ltr"}(u),[k,O]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:ow}),[S,N]=bs({prop:s,defaultProp:l,onChange:c,caller:ow}),E=i.useRef(null),P=!y||(h||!!y.closest("form")),[C,R]=i.useState(new Set),T=Array.from(C).map(e=>e.props.value).join(";");return(0,Sn.jsx)(hp,{...m,children:(0,Sn.jsxs)(dw,{required:v,scope:t,trigger:y,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:j,contentId:ys(),value:S,onValueChange:N,open:k,onOpenChange:O,dir:_,triggerPointerDownPosRef:E,disabled:p,children:[(0,Sn.jsx)(aw.Provider,{scope:t,children:(0,Sn.jsx)(pw,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{R(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{R(t=>{const r=new Set(t);return r.delete(e),r})},[]),children:r})}),P?(0,Sn.jsxs)(nj,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:f,value:S,onChange:e=>N(e.target.value),disabled:p,form:h,children:[void 0===S?(0,Sn.jsx)("option",{value:""}):null,Array.from(C)]},T):null]})})};hw.displayName=ow;var mw="SelectTrigger",yw=i.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=uw(r),s=fw(mw,r),l=s.disabled||n,c=Ai(t,s.onTriggerChange),u=iw(r),d=i.useRef("touch"),[f,p,v]=aj(e=>{const t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=ij(t,e,r);void 0!==n&&s.onValueChange(n.value)}),h=e=>{l||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,Sn.jsx)(mp,{asChild:!0,...a,children:(0,Sn.jsx)(Os.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":oj(s.value)?"":void 0,...o,ref:c,onClick:ds(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&h(e)}),onPointerDown:ds(o.onPointerDown,e=>{d.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:ds(o.onKeyDown,e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||rw.includes(e.key)&&(h(),e.preventDefault())})})})});yw.displayName=mw;var gw="SelectValue",bw=i.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...s}=e,l=fw(gw,r),{onValueNodeHasChildrenChange:c}=l,u=void 0!==a,d=Ai(t,l.onValueNodeChange);return vs(()=>{c(u)},[c,u]),(0,Sn.jsx)(Os.span,{...s,ref:d,style:{pointerEvents:"none"},children:oj(l.value)?(0,Sn.jsx)(Sn.Fragment,{children:i}):a})});bw.displayName=gw;var xw=i.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return(0,Sn.jsx)(Os.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});xw.displayName="SelectIcon";var ww=e=>(0,Sn.jsx)(Hs,{asChild:!0,...e});ww.displayName="SelectPortal";var jw="SelectContent",_w=i.forwardRef((e,t)=>{const r=fw(jw,e.__scopeSelect),[n,o]=i.useState();if(vs(()=>{o(new DocumentFragment)},[]),!r.open){const t=n;return t?xs.createPortal((0,Sn.jsx)(Ow,{scope:e.__scopeSelect,children:(0,Sn.jsx)(aw.Slot,{scope:e.__scopeSelect,children:(0,Sn.jsx)("div",{children:e.children})})}),t):null}return(0,Sn.jsx)(Ew,{...e,ref:t})});_w.displayName=jw;var kw=10,[Ow,Sw]=lw(jw),Nw=Qx("SelectContent.RemoveScroll"),Ew=i.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:h,hideWhenDetached:m,avoidCollisions:y,...g}=e,b=fw(jw,r),[x,w]=i.useState(null),[j,_]=i.useState(null),k=Ai(t,e=>w(e)),[O,S]=i.useState(null),[N,E]=i.useState(null),P=iw(r),[C,R]=i.useState(!1),T=i.useRef(!1);i.useEffect(()=>{if(x)return Ql(x)},[x]),Qs();const A=i.useCallback(e=>{const[t,...r]=P().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(const r of e){if(r===o)return;if(r?.scrollIntoView({block:"nearest"}),r===t&&j&&(j.scrollTop=0),r===n&&j&&(j.scrollTop=j.scrollHeight),r?.focus(),document.activeElement!==o)return}},[P,j]),D=i.useCallback(()=>A([O,x]),[A,O,x]);i.useEffect(()=>{C&&D()},[C,D]);const{onOpenChange:F,triggerPointerDownPosRef:I}=b;i.useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(I.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():x.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[x,F,I]),i.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[M,L]=aj(e=>{const t=P().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=ij(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),V=i.useCallback((e,t,r)=>{const n=!T.current&&!r;(void 0!==b.value&&b.value===t||n)&&(S(e),n&&(T.current=!0))},[b.value]),$=i.useCallback(()=>x?.focus(),[x]),z=i.useCallback((e,t,r)=>{const n=!T.current&&!r;(void 0!==b.value&&b.value===t||n)&&E(e)},[b.value]),U="popper"===n?Cw:Pw,q=U===Cw?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:h,hideWhenDetached:m,avoidCollisions:y}:{};return(0,Sn.jsx)(Ow,{scope:r,content:x,viewport:j,onViewportChange:_,itemRefCallback:V,selectedItem:O,onItemLeave:$,itemTextRefCallback:z,focusSelectedItem:D,selectedItemText:N,position:n,isPositioned:C,searchRef:M,children:(0,Sn.jsx)(Ul,{as:Nw,allowPinchZoom:!0,children:(0,Sn.jsx)(Vs,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ds(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,Sn.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,Sn.jsx)(U,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...g,...q,onPlaced:()=>R(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ds(g.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});Ew.displayName="SelectContentImpl";var Pw=i.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=fw(jw,r),s=Sw(jw,r),[l,c]=i.useState(null),[u,d]=i.useState(null),f=Ai(t,e=>d(e)),p=iw(r),v=i.useRef(!1),h=i.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:g,focusSelectedItem:b}=s,x=i.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&y&&g){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==a.dir){const n=o.left-t.left,a=r.left-n,i=e.left-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-kw,d=zx(a,[kw,Math.max(kw,u-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{const n=t.right-o.right,a=window.innerWidth-r.right-n,i=window.innerWidth-e.right-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-kw,d=zx(a,[kw,Math.max(kw,u-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}const i=p(),s=window.innerHeight-2*kw,c=m.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),x=f+h+c+parseInt(d.paddingBottom,10)+b,w=Math.min(5*y.offsetHeight,x),j=window.getComputedStyle(m),_=parseInt(j.paddingTop,10),k=parseInt(j.paddingBottom,10),O=e.top+e.height/2-kw,S=s-O,N=y.offsetHeight/2,E=f+h+(y.offsetTop+N),P=x-E;if(E<=O){const e=i.length>0&&y===i[i.length-1].ref.current;l.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,r=E+Math.max(S,N+(e?k:0)+t+b);l.style.height=r+"px"}else{const e=i.length>0&&y===i[0].ref.current;l.style.top="0px";const t=Math.max(O,f+m.offsetTop+(e?_:0)+N)+P;l.style.height=t+"px",m.scrollTop=E-O+m.offsetTop}l.style.margin=`${kw}px 0`,l.style.minHeight=w+"px",l.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,a.trigger,a.valueNode,l,u,m,y,g,a.dir,n]);vs(()=>x(),[x]);const[w,j]=i.useState();vs(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const _=i.useCallback(e=>{e&&!0===h.current&&(x(),b?.(),h.current=!1)},[x,b]);return(0,Sn.jsx)(Rw,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:_,children:(0,Sn.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,Sn.jsx)(Os.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Pw.displayName="SelectItemAlignedPosition";var Cw=i.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=kw,...a}=e,i=uw(r);return(0,Sn.jsx)(yp,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cw.displayName="SelectPopperPosition";var[Rw,Tw]=lw(jw,{}),Aw="SelectViewport",Dw=i.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Sw(Aw,r),s=Tw(Aw,r),l=Ai(t,a.onViewportChange),c=i.useRef(0);return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,Sn.jsx)(aw.Slot,{scope:r,children:(0,Sn.jsx)(Os.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ds(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if(n?.current&&r){const e=Math.abs(c.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*kw,o=parseFloat(r.style.minHeight),a=parseFloat(r.style.height),i=Math.max(o,a);if(i<n){const o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});Dw.displayName=Aw;var Fw="SelectGroup",[Iw,Mw]=lw(Fw),Lw=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ys();return(0,Sn.jsx)(Iw,{scope:r,id:o,children:(0,Sn.jsx)(Os.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Lw.displayName=Fw;var Vw="SelectLabel",$w=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Mw(Vw,r);return(0,Sn.jsx)(Os.div,{id:o.id,...n,ref:t})});$w.displayName=Vw;var zw="SelectItem",[Uw,qw]=lw(zw),Ww=i.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,l=fw(zw,r),c=Sw(zw,r),u=l.value===n,[d,f]=i.useState(a??""),[p,v]=i.useState(!1),h=Ai(t,e=>c.itemRefCallback?.(e,n,o)),m=ys(),y=i.useRef("touch"),g=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,Sn.jsx)(Uw,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,Sn.jsx)(aw.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:(0,Sn.jsx)(Os.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:h,onFocus:ds(s.onFocus,()=>v(!0)),onBlur:ds(s.onBlur,()=>v(!1)),onClick:ds(s.onClick,()=>{"mouse"!==y.current&&g()}),onPointerUp:ds(s.onPointerUp,()=>{"mouse"===y.current&&g()}),onPointerDown:ds(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:ds(s.onPointerMove,e=>{y.current=e.pointerType,o?c.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ds(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ds(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(nw.includes(e.key)&&g()," "===e.key&&e.preventDefault())})})})})});Ww.displayName=zw;var Bw="SelectItemText",Hw=i.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=fw(Bw,r),l=Sw(Bw,r),c=qw(Bw,r),u=vw(Bw,r),[d,f]=i.useState(null),p=Ai(t,e=>f(e),c.onItemTextChange,e=>l.itemTextRefCallback?.(e,c.value,c.disabled)),v=d?.textContent,h=i.useMemo(()=>(0,Sn.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return vs(()=>(m(h),()=>y(h)),[m,y,h]),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Os.span,{id:c.textId,...a,ref:p}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?xs.createPortal(a.children,s.valueNode):null]})});Hw.displayName=Bw;var Zw="SelectItemIndicator",Kw=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return qw(Zw,r).isSelected?(0,Sn.jsx)(Os.span,{"aria-hidden":!0,...n,ref:t}):null});Kw.displayName=Zw;var Gw="SelectScrollUpButton",Qw=i.forwardRef((e,t)=>{const r=Sw(Gw,e.__scopeSelect),n=Tw(Gw,e.__scopeSelect),[o,a]=i.useState(!1),s=Ai(t,n.onScrollButtonChange);return vs(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,Sn.jsx)(Xw,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Qw.displayName=Gw;var Jw="SelectScrollDownButton",Yw=i.forwardRef((e,t)=>{const r=Sw(Jw,e.__scopeSelect),n=Tw(Jw,e.__scopeSelect),[o,a]=i.useState(!1),s=Ai(t,n.onScrollButtonChange);return vs(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,r=Math.ceil(t.scrollTop)<e;a(r)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,Sn.jsx)(Xw,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Yw.displayName=Jw;var Xw=i.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Sw("SelectScrollButton",r),s=i.useRef(null),l=iw(r),c=i.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),vs(()=>{const e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,Sn.jsx)(Os.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ds(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(n,50))}),onPointerMove:ds(o.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(n,50))}),onPointerLeave:ds(o.onPointerLeave,()=>{c()})})}),ej=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return(0,Sn.jsx)(Os.div,{"aria-hidden":!0,...n,ref:t})});ej.displayName="SelectSeparator";var tj="SelectArrow",rj=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=uw(r),a=fw(tj,r),i=Sw(tj,r);return a.open&&"popper"===i.position?(0,Sn.jsx)(gp,{...o,...n,ref:t}):null});rj.displayName=tj;var nj=i.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=i.useRef(null),a=Ai(n,o),s=Eb(t);return i.useEffect(()=>{const e=o.current;if(!e)return;const r=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(r,"value").set;if(s!==t&&n){const r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[s,t]),(0,Sn.jsx)(Os.select,{...r,style:{...ew,...r.style},ref:a,defaultValue:t})});function oj(e){return""===e||void 0===e}function aj(e){const t=Ss(e),r=i.useRef(""),n=i.useRef(0),o=i.useCallback(e=>{const o=r.current+e;t(o),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=i.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ij(e,t,r){const n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===n.length&&(a=a.filter(e=>e!==r));const l=a.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return l!==r?l:void 0}nj.displayName="SelectBubbleInput";var sj=hw,lj=yw,cj=bw,uj=xw,dj=ww,fj=_w,pj=Dw,vj=Ww,hj=Hw,mj=Kw;const yj=_u("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function gj(e){return gj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gj(e)}var bj=["className","children"],xj=["className","children","position"],wj=["className","children"];function jj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jj(Object(r),!0).forEach(function(t){kj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=gj(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oj(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Sj=sj,Nj=cj,Ej=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Oj(e,bj);return(0,Sn.jsxs)(lj,_j(_j({ref:t,className:la("vt-flex vt-h-10 vt-items-center vt-justify-between vt-rounded-md vt-border vt-border-input vt-bg-background vt-px-3 vt-py-2 vt-text-sm vt-ring-offset-background placeholder:vt-text-muted-foreground focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2 disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},o),{},{children:[n,(0,Sn.jsx)(uj,{asChild:!0,children:(0,Sn.jsx)(yj,{className:"vt-h-4 vt-w-4 vt-opacity-50"})})]}))});Ej.displayName=lj.displayName;var Pj=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=e.position,a=void 0===o?"popper":o,i=Oj(e,xj);return(0,Sn.jsx)(dj,{children:(0,Sn.jsx)(fj,_j(_j({ref:t,className:la("vt-relative vt-z-[100000] vt-min-w-[8rem] vt-overflow-hidden vt-rounded-md vt-border vt-bg-popover vt-text-popover-foreground vt-shadow-md data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out data-[state=closed]:vt-fade-out-0 data-[state=open]:vt-fade-in-0 data-[state=closed]:vt-zoom-out-95 data-[state=open]:vt-zoom-in-95 data-[side=bottom]:vt-slide-in-from-top-2 data-[side=left]:vt-slide-in-from-right-2 data-[side=right]:vt-slide-in-from-left-2 data-[side=top]:vt-slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a},i),{},{children:(0,Sn.jsx)(pj,{className:la("vt-p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})}))})});Pj.displayName=fj.displayName;var Cj=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Oj(e,wj);return(0,Sn.jsxs)(vj,_j(_j({ref:t,className:la("vt-relative vt-flex vt-w-full vt-cursor-default vt-select-none vt-items-center vt-rounded-sm vt-py-1.5 vt-pl-8 vt-pr-2 vt-text-sm vt-outline-none focus:vt-bg-accent focus:vt-text-accent-foreground data-[disabled]:vt-pointer-events-none data-[disabled]:vt-opacity-50",r)},o),{},{children:[(0,Sn.jsx)("span",{className:"vt-absolute vt-left-2 vt-flex h-3.5 w-3.5 vt-items-center vt-justify-center",children:(0,Sn.jsx)(mj,{children:(0,Sn.jsx)(uv,{className:"vt-h-4 vt-w-4"})})}),(0,Sn.jsx)(hj,{children:n})]}))});function Rj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tj(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Cj.displayName=vj.displayName;var Aj=function(e){return new Date(e)<new Date},Dj=function(e){var t=new Date(e);return t<new Date?(0,ca.__)("Expired","versatile-toolkit"):t.toLocaleString()},Fj=function(e){var t=new Date,r={"1_hour":36e5,"3_hours":108e5,"6_hours":216e5,"12_hours":432e5,"1_day":864e5,"3_days":2592e5,"1_week":6048e5,"2_weeks":12096e5,"1_month":2592e6,"3_months":7776e6,"6_months":15552e6,"1_year":31536e6}[e]||0;return new Date(t.getTime()+r).toString()},Ij=function(e){var t=new Date(e),r=new Date,n=t.getTime()-r.getTime();if(n<=0)return(0,ca.__)("Expired","versatile-toolkit");var o=Math.floor(n/864e5),a=Math.floor(n%864e5/36e5),i=Math.floor(n%36e5/6e4);return o>0?"".concat(o,"d ").concat(a,"h ").concat(i,"m remaining"):a>0?"".concat(a,"h ").concat(i,"m remaining"):"".concat(i,"m remaining")};function Mj(e){return Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mj(e)}function Lj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(r),!0).forEach(function(t){$j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Mj(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zj(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Uj(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Uj(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Uj(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Uj(d,"constructor",c),Uj(c,"constructor",l),l.displayName="GeneratorFunction",Uj(c,o,"GeneratorFunction"),Uj(d),Uj(d,o,"Generator"),Uj(d,n,function(){return this}),Uj(d,"toString",function(){return"[object Generator]"}),(zj=function(){return{w:a,m:f}})()}function Uj(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Uj=function(e,t,r,n){function a(t,r){Uj(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},Uj(e,t,r,n)}function qj(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Wj(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){qj(a,n,o,i,s,"next",e)}function s(e){qj(a,n,o,i,s,"throw",e)}i(void 0)})}}var Bj,Hj,Zj,Kj,Gj,Qj,Jj,Yj=[{value:"1_hour",label:(0,ca.__)("1 Hour","versatile-toolkit")},{value:"3_hours",label:(0,ca.__)("3 Hours","versatile-toolkit")},{value:"6_hours",label:(0,ca.__)("6 Hours","versatile-toolkit")},{value:"12_hours",label:(0,ca.__)("12 Hours","versatile-toolkit")},{value:"1_day",label:(0,ca.__)("1 Day","versatile-toolkit")},{value:"3_days",label:(0,ca.__)("3 Days","versatile-toolkit")},{value:"1_week",label:(0,ca.__)("1 Week","versatile-toolkit")},{value:"2_weeks",label:(0,ca.__)("2 Weeks","versatile-toolkit")},{value:"1_month",label:(0,ca.__)("1 Month","versatile-toolkit")},{value:"3_months",label:(0,ca.__)("3 Months","versatile-toolkit")},{value:"6_months",label:(0,ca.__)("6 Months","versatile-toolkit")},{value:"1_year",label:(0,ca.__)("1 Year","versatile-toolkit")}],Xj={getAvailableRoles:(Jj=Wj(zj().m(function e(){var t,r;return zj().w(function(e){for(;;)switch(e.n){case 0:return t={action:"versatile_get_available_roles"},e.n=1,gi(Va.ajax_url,{body:t});case 1:if(200===(r=e.v).status_code){e.n=2;break}throw new Error(r.message||(0,ca.__)("Failed to get available roles","versatile-toolkit"));case 2:return e.a(2,r.data)}},e)})),function(){return Jj.apply(this,arguments)}),createTempLogin:(Qj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj(Vj({action:"versatile_create_temp_login"},t),{},{expires_at:Dj(Fj(t.expires_at))}),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to create temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Qj.apply(this,arguments)}),getTempLoginList:(Gj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_get_temp_login_list"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to get temporary login list","versatile-toolkit"));case 2:return e.a(2,n.data)}},e)})),function(e){return Gj.apply(this,arguments)}),toggleTempLoginStatus:(Kj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_toggle_temp_login_status"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to toggle temporary login status","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Kj.apply(this,arguments)}),deleteTempLogin:(Zj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_delete_temp_login"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to delete temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Zj.apply(this,arguments)}),updateTempLogin:(Hj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_update_temp_login"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to update temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Hj.apply(this,arguments)}),extendTempLoginTime:(Bj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj(Vj({action:"versatile_extend_temp_login_time"},t),{},{extend_by:Dj(Fj(t.extend_by))}),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to extend temporary login time","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Bj.apply(this,arguments)})},e_=function(){return Qa({queryKey:["available-roles"],queryFn:Xj.getAvailableRoles,refetchOnWindowFocus:!1})};const t_=_u("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),r_=_u("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),n_=_u("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),o_=_u("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),a_=_u("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),i_=_u("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function s_(e){return s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s_(e)}function l_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l_(Object(r),!0).forEach(function(t){u_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f_(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(f_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,f_(d,"constructor",c),f_(c,"constructor",l),l.displayName="GeneratorFunction",f_(c,o,"GeneratorFunction"),f_(d),f_(d,o,"Generator"),f_(d,n,function(){return this}),f_(d,"toString",function(){return"[object Generator]"}),(d_=function(){return{w:a,m:f}})()}function f_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f_=function(e,t,r,n){function a(t,r){f_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},f_(e,t,r,n)}function p_(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function v_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){p_(a,n,o,i,s,"next",e)}function s(e){p_(a,n,o,i,s,"throw",e)}i(void 0)})}}function h_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y_=[{key:"name",label:"Name"},{key:"email",label:"Email"},{key:"role",label:"Role"},{key:"status",label:"Status"},{key:"expires_at",label:"Expires At"},{key:"login_count",label:"Login Count"},{key:"last_login",label:"Last Login"},{key:"actions",label:"Actions"}];const g_=function(){var e,t,r=h_((0,i.useState)({page:1,per_page:10,order:"desc",orderby:"created_at",role:"",status:"all"}),2),n=r[0],o=r[1],a=h_((0,i.useState)(""),2),s=a[0],l=a[1],c=function(e,t){var r=Rj((0,i.useState)(e),2),n=r[0],o=r[1];return(0,i.useEffect)(function(){var r=setTimeout(function(){o(e)},t);return function(){clearTimeout(r)}},[e,t]),n}(s,500),u=h_((0,i.useState)(null),2),d=u[0],f=u[1],p=h_((0,i.useState)(null),2),v=p[0],h=p[1],m=h_((0,i.useState)({}),2),y=m[0],g=m[1],b=h_((0,i.useState)(null),2),x=b[0],w=b[1],j=h_((0,i.useState)(null),2),_=j[0],k=j[1],O=h_((0,i.useState)("1_hour"),2),S=O[0],N=O[1],E=Qa({queryKey:["get-temp-logins",t=n],queryFn:function(){return Xj.getTempLoginList(t)},refetchOnWindowFocus:!1}),P=E.data,C=E.isLoading,R=function(){var e=v_(d_().m(function e(t){return d_().w(function(e){for(;;)switch(e.n){case 0:return f(t.id),e.n=1,ci(t.login_url);case 1:setTimeout(function(){f(null)},2e3);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e){return e.is_active?Aj(e.expires_at)?(0,Sn.jsx)(rs,{variant:"destructive",children:(0,ca.__)("Expired","versatile-toolkit")}):(0,Sn.jsx)(rs,{variant:"default",children:(0,ca.__)("Active","versatile-toolkit")}):(0,Sn.jsx)(rs,{variant:"outline",children:(0,ca.__)("Inactive","versatile-toolkit")})},A=function(){var e=En();return Ya({mutationFn:function(e){return Xj.toggleTempLoginStatus(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login status updated successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while updating temporary login status","versatile-toolkit"))}})}(),D=A.mutateAsync,F=function(){var e=v_(d_().m(function e(t,r){return d_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,D({id:t,is_active:!r});case 1:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),I=function(){var e=En();return Ya({mutationFn:function(e){return Xj.deleteTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login deleted successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while deleting temporary login","versatile-toolkit"))}})}(),M=I.mutateAsync,L=function(){var e=v_(d_().m(function e(){return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(x){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,M({id:x.id});case 2:w(null),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),V=function(){w(null)},$=function(){var e=En();return Ya({mutationFn:function(e){return Xj.updateTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login updated successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while updating temporary login","versatile-toolkit"))}})}(),z=$.mutateAsync,U=$.isPending,q=function(){var e=v_(d_().m(function e(){var t,r;return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(v){e.n=1;break}return e.a(2);case 1:if(null!==(t=y.display_name)&&void 0!==t&&t.trim()){e.n=2;break}return Cr.error((0,ca.__)("Display name is required","versatile-toolkit")),e.a(2);case 2:if(null!==(r=y.email)&&void 0!==r&&r.trim()){e.n=3;break}return Cr.error((0,ca.__)("Email is required","versatile-toolkit")),e.a(2);case 3:return e.p=3,e.n=4,z(c_({id:v.id},y));case 4:h(null),g({}),e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),W=function(){h(null),g({})},B=function(){var e=En();return Ya({mutationFn:function(e){return Xj.extendTempLoginTime(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login time extended successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while extending temporary login time","versatile-toolkit"))}})}(),H=B.mutateAsync,Z=B.isPending,K=function(){var e=v_(d_().m(function e(){return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(_){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,H({id:_.id,extend_by:S});case 2:k(null),N("1_hour"),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),G=function(){k(null),N("1_hour")},Q=e_().data;(0,i.useEffect)(function(){o(function(e){return c_(c_({},e),{},{search:c,page:1})})},[c]);var J=function(e,t){o(function(r){return c_(c_({},r),{},u_({},e,t))})},Y=function(e){o(function(t){return c_(c_({},t),{},{page:e})})};return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(Ta,{children:(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-row vt-items-center vt-gap-4 vt-justify-end",children:[(0,Sn.jsxs)("div",{className:"vt-w-[300px] vt-relative",children:[(0,Sn.jsx)(ku,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Sn.jsx)(jv,{placeholder:(0,ca.__)("Search by name or email...","versatile-toolkit"),value:s,onChange:function(e){return t=e.target.value,void l(t);var t},className:"vt-pl-10 vt-w-full"})]}),(0,Sn.jsxs)(Sj,{value:n.role||"all_roles",onValueChange:function(e){return J("role","all_roles"===e?"":e)},children:[(0,Sn.jsx)(Ej,{className:"vt-w-48",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("All Roles","versatile-toolkit")})}),(0,Sn.jsxs)(Pj,{children:[(0,Sn.jsx)(Cj,{value:"all_roles",children:(0,ca.__)("All Roles","versatile-toolkit")}),Object.entries(null!=Q?Q:{}).map(function(e){var t=h_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})]})]}),(0,Sn.jsxs)(Sj,{value:n.status,onValueChange:function(e){return J("status",e)},children:[(0,Sn.jsx)(Ej,{className:"vt-w-48",children:(0,Sn.jsx)(Nj,{})}),(0,Sn.jsxs)(Pj,{children:[(0,Sn.jsx)(Cj,{value:"all",children:(0,ca.__)("All Status","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"active",children:(0,ca.__)("Active","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"inactive",children:(0,ca.__)("Inactive","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"expired",children:(0,ca.__)("Expired","versatile-toolkit")})]})]})]})}),(0,Sn.jsx)(Da,{children:(0,Sn.jsxs)(Dx,{children:[(0,Sn.jsx)(Fx,{children:(0,Sn.jsx)(Mx,{children:y_.map(function(e){return(0,Sn.jsx)(Lx,{children:e.label},e.key)})})}),(0,Sn.jsx)(Ix,{children:C?(0,Sn.jsx)(ba,{columns:y_.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:5}):P&&(null==P||null===(e=P.temp_logins)||void 0===e?void 0:e.length)>0?P.temp_logins.map(function(e){return(0,Sn.jsxs)(Mx,{children:[(0,Sn.jsx)(Vx,{children:e.display_name}),(0,Sn.jsx)(Vx,{children:e.email}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsx)(rs,{children:e.role})}),(0,Sn.jsx)(Vx,{children:T(e)}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsx)("span",{className:"".concat(Aj(e.expires_at)?"text-red-500 font-semibold":""),children:Ij(e.expires_at)})}),(0,Sn.jsx)(Vx,{children:e.login_count}),(0,Sn.jsx)(Vx,{children:e.last_login?(t=e.last_login,r=new Date,n=new Date(t),o=r.getTime()-n.getTime(),a=Math.floor(o/864e5),i=Math.floor(o%864e5/36e5),s=Math.floor(o%36e5/6e4),a>0?"".concat(a,"d ").concat(i,"h ").concat(s,"m ago"):i>0?"".concat(i,"h ").concat(s,"m ago"):"".concat(s,"m ago")):"-"}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsxs)(ev,{children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{size:"sm",variant:"ghost",className:"vt-h-8 vt-w-8 vt-p-0",children:[(0,Sn.jsx)(t_,{className:"vt-h-4 vt-w-4"}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Open menu","versatile-toolkit")})]})}),(0,Sn.jsxs)(rv,{className:"vt-w-max vt-p-1 vt-flex vt-flex-col vt-align-center vt-justify-start",align:"end",children:[(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return R(e)},children:[d===e.id?(0,Sn.jsx)(uv,{className:"vt-mr-2 vt-h-4 vt-w-4 vt-text-green-600"}):(0,Sn.jsx)(r_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Copy Login URL","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){h(e),g({display_name:e.display_name,email:e.email,role:e.role,redirect_url:e.redirect_url,expires_at:e.expires_at})}(e)},children:[(0,Sn.jsx)(n_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Edit","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){k(e),N("1_hour")}(e)},children:[(0,Sn.jsx)(o_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Extend Time","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return F(e.id,e.is_active)},children:[e.is_active?(0,Sn.jsx)(a_,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,Sn.jsx)(Dg,{className:"vt-mr-2 vt-h-4 vt-w-4"}),e.is_active?(0,ca.__)("Deactivate","versatile-toolkit"):(0,ca.__)("Activate","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start vt-text-red-600 hover:vt-text-red-700 hover:vt-bg-red-50",onClick:function(){return function(e){w(e)}(e)},children:[(0,Sn.jsx)(i_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Delete","versatile-toolkit")]})]})]})})]},e.id);var t,r,n,o,a,i,s}):(0,Sn.jsx)($x,{title:"No temporary logins found",description:"Try adjusting your search or filters"})})]})}),P&&P.total_pages>1&&(0,Sn.jsx)(Da,{className:"vt-pt-0",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-center vt-space-x-2",children:[(0,Sn.jsx)(Qi,{variant:"outline",disabled:1===P.page,onClick:function(){return Y(P.page-1)},children:(0,ca.__)("Previous","versatile-toolkit")}),(0,Sn.jsxs)("span",{className:"vt-flex vt-items-center vt-px-4",children:[(0,ca.__)("Page","versatile-toolkit")," ",P.page," ",(0,ca.__)("of","versatile-toolkit")," ",P.total_pages]}),(0,Sn.jsx)(Qi,{variant:"outline",disabled:P.page===P.total_pages,onClick:function(){return Y(P.page+1)},children:(0,ca.__)("Next","versatile-toolkit")})]})})]}),(0,Sn.jsx)(Lu,{open:!!v,onOpenChange:function(e){return!e&&W()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsx)(Hu,{children:(0,ca.__)("Edit Temporary Login","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Note: Expiration date cannot be modified after creation.","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-display-name",children:(0,ca.__)("Display Name","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-display-name",value:y.display_name||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{display_name:e.target.value})})},placeholder:(0,ca.__)("Enter display name","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-email",children:(0,ca.__)("Email","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-email",type:"email",value:y.email||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{email:e.target.value})})},placeholder:(0,ca.__)("Enter email address","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-role",children:(0,ca.__)("Role","versatile-toolkit")}),(0,Sn.jsxs)(Sj,{value:y.role||"",onValueChange:function(e){return g(function(t){return c_(c_({},t),{},{role:e})})},children:[(0,Sn.jsx)(Ej,{children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select role","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{children:Object.entries(null!=Q?Q:{}).map(function(e){var t=h_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})})]})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-redirect-url",children:(0,ca.__)("Redirect URL","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-redirect-url",type:"url",value:y.redirect_url||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{redirect_url:e.target.value})})},placeholder:(0,ca.__)("Enter redirect URL","versatile-toolkit")})]})]}),(0,Sn.jsxs)(Bu,{children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:W,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:q,disabled:U,children:U?(0,ca.__)("Updating...","versatile-toolkit"):(0,ca.__)("Update","versatile-toolkit")})]})]})}),(0,Sn.jsx)(Lu,{open:!!x,onOpenChange:function(e){return!e&&V()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsx)(Wu,{children:(0,Sn.jsx)(Hu,{className:"vt-text-red-600",children:(0,ca.__)("Delete Temporary Login","versatile-toolkit")})}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Are you sure you want to delete this temporary login? This action cannot be undone.","versatile-toolkit")}),x&&(0,Sn.jsxs)("div",{className:"vt-bg-gray-50 vt-p-3 vt-rounded-md",children:[(0,Sn.jsx)("p",{className:"vt-font-medium",children:x.display_name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:x.email}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:x.role})]})]}),(0,Sn.jsxs)(Bu,{children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:V,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{variant:"destructive",onClick:L,children:(0,ca.__)("Delete","versatile-toolkit")})]})]})}),(0,Sn.jsx)(Lu,{open:!!_,onOpenChange:function(e){return!e&&G()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsx)(Hu,{children:(0,ca.__)("Extend Expiration Time","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Select how much time to add to the current expiration date.","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[_&&(0,Sn.jsxs)("div",{className:"vt-bg-gray-100 vt-p-3 vt-rounded-md",children:[(0,Sn.jsx)("p",{className:"vt-font-medium",children:_.display_name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:_.email}),(0,Sn.jsxs)("p",{className:"vt-text-sm vt-text-gray-600",children:[(0,ca.__)("Current expiration:","versatile-toolkit")," ",new Date(_.expires_at).toLocaleString()]})]}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)(ib,{htmlFor:"extend-time-select",className:"vt-block vt-mb-4",children:(0,ca.__)("Extend by","versatile-toolkit")}),(0,Sn.jsxs)(Sj,{value:S,onValueChange:N,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select expires at","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll",children:Yj.map(function(e){return(0,Sn.jsx)(Cj,{value:e.value,children:e.label},e.value)})})]})]})]}),(0,Sn.jsxs)(Bu,{className:"vt-mt-4",children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:G,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:K,disabled:Z,children:Z?(0,ca.__)("Extending...","versatile-toolkit"):(0,ca.__)("Extend Time","versatile-toolkit")})]})]})})]})},b_=_u("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function x_(e){return x_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x_(e)}function w_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w_(Object(r),!0).forEach(function(t){__(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function __(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=x_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=x_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return O_(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(O_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,O_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,O_(d,"constructor",c),O_(c,"constructor",l),l.displayName="GeneratorFunction",O_(c,o,"GeneratorFunction"),O_(d),O_(d,o,"Generator"),O_(d,n,function(){return this}),O_(d,"toString",function(){return"[object Generator]"}),(k_=function(){return{w:a,m:f}})()}function O_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}O_=function(e,t,r,n){function a(t,r){O_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},O_(e,t,r,n)}function S_(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function N_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(0,ca.__)("Administrator","versatile-toolkit"),(0,ca.__)("Editor","versatile-toolkit"),(0,ca.__)("Author","versatile-toolkit"),(0,ca.__)("Contributor","versatile-toolkit"),(0,ca.__)("Subscriber","versatile-toolkit");const P_=function(){var e=N_((0,i.useState)(!1),2),t=e[0],r=e[1],n=eg({resolver:ig(cm),defaultValues:{display_name:"",email:"",role:"",expires_at:"3_hours",redirect_url:Va.admin_url}}),o=n.handleSubmit,a=(n.formState.errors,e_()),s=a.data,l=a.isLoading,c=function(){var e=En();return Ya({mutationFn:Xj.createTempLogin,onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login created successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while creating temporary login","versatile-toolkit"))}})}(),u=c.mutateAsync,d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){S_(a,n,o,i,s,"next",e)}function s(e){S_(a,n,o,i,s,"throw",e)}i(void 0)})}}(k_().m(function e(t){return k_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u(t,{onSuccess:function(){r(!1)}});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)(Lu,{open:t,onOpenChange:r,children:[(0,Sn.jsx)(Vu,{asChild:!0,children:(0,Sn.jsxs)(Qi,{children:[(0,Sn.jsx)(b_,{className:"vt-w-4 vt-h-4 vt-mr-2"}),(0,ca.__)("Create Temp Login","versatile-toolkit")]})}),(0,Sn.jsxs)(qu,{className:"vt-max-w-lg",children:[(0,Sn.jsx)(Wu,{children:(0,Sn.jsx)(Hu,{children:(0,ca.__)("Create Temporary Login","versatile-toolkit")})}),(0,Sn.jsx)(gb,j_(j_({},n),{},{children:(0,Sn.jsxs)("form",{onSubmit:o(d,function(e){}),className:"vt-flex vt-flex-col vt-gap-5",children:[(0,Sn.jsx)(xb,{control:n.control,name:"display_name",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Display Name","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Display Name","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"email",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Email","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Email","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"role",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Role","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsxs)(Sj,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select role","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll-auto",children:l?(0,Sn.jsx)(ha,{size:"md",className:"vt-ml-2",text:(0,ca.__)("Loading roles","versatile-toolkit")}):Object.entries(null!=s?s:{}).map(function(e){var t=N_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})})]})}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"expires_at",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Expires At","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsxs)(Sj,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select expires at","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll",children:Yj.map(function(e){return(0,Sn.jsx)(Cj,{value:e.value,children:e.label},e.value)})})]})}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"redirect_url",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Redirect URL","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Redirect URL","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)("div",{className:"vt-flex vt-justify-end",children:(0,Sn.jsx)(Qi,{type:"submit",children:(0,ca.__)("Create Temporary Login","versatile-toolkit")})})]})}))]})]})})};const C_=function(){return(0,Sn.jsxs)("div",{className:"vt-py-6 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("h2",{className:"vt-text-2xl vt-font-bold",children:(0,ca.__)("Temporary Logins","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-gray-600 vt-mt-2",children:(0,ca.__)("Create and manage temporary login access for users","versatile-toolkit")})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(P_,{})})]}),(0,Sn.jsx)(g_,{})]})};function R_(e){return R_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R_(e)}var T_=["className"],A_=["side","className","children"],D_=["className"],F_=["className"],I_=["className"];function M_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M_(Object(r),!0).forEach(function(t){V_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=R_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=R_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var z_=Dc,U_=Fc,q_=Ic,W_=i.forwardRef(function(e,t){var r=e.className,n=$_(e,T_);return(0,Sn.jsx)(Mc,L_(L_({className:la("vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n),{},{ref:t}))});W_.displayName=Mc.displayName;var B_=Wi("vt-fixed vt-z-50 vt-gap-4 vt-bg-background vt-p-6 vt-shadow-lg vt-transition vt-ease-in-out data-[state=closed]:vt-duration-300 data-[state=open]:vt-duration-500 data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out",{variants:{side:{top:"vt-inset-x-0 vt-top-0 vt-border-b data-[state=closed]:vt-slide-out-to-top data-[state=open]:vt-slide-in-from-top",bottom:"vt-inset-x-0 vt-bottom-0 vt-border-t data-[state=closed]:vt-slide-out-to-bottom data-[state=open]:vt-slide-in-from-bottom",left:"vt-inset-y-0 vt-left-0 vt-h-full vt-w-3/4 vt-border-r data-[state=closed]:vt-slide-out-to-left data-[state=open]:vt-slide-in-from-left sm:max-w-sm",right:"vt-inset-y-0 vt-right-0 vt-h-full vt-w-3/4 vt-border-l data-[state=closed]:vt-slide-out-to-right data-[state=open]:vt-slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),H_=i.forwardRef(function(e,t){var r=e.side,n=void 0===r?"right":r,o=e.className,a=e.children,i=$_(e,A_);return(0,Sn.jsxs)(q_,{children:[(0,Sn.jsx)(W_,{}),(0,Sn.jsxs)(Lc,L_(L_({ref:t,className:la(B_({side:n}),"vt-z-[99999] sm:vt-max-w-[540px]",o)},i),{},{children:[(0,Sn.jsxs)(zc,{className:Mu,children:[(0,Sn.jsx)(Ou,{size:16}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:"Close"})]}),a]}))]})});H_.displayName=Lc.displayName;var Z_=function(e){var t=e.className,r=$_(e,D_);return(0,Sn.jsx)("div",L_({className:la("vt-flex vt-flex-col vt-space-y-2 vt-text-center sm:vt-text-left",t)},r))};Z_.displayName="SheetHeader";var K_=i.forwardRef(function(e,t){var r=e.className,n=$_(e,F_);return(0,Sn.jsx)(Vc,L_({ref:t,className:la("vt-text-lg vt-font-semibold vt-text-foreground",r)},n))});K_.displayName=Vc.displayName,i.forwardRef(function(e,t){var r=e.className,n=$_(e,I_);return(0,Sn.jsx)($c,L_({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName=$c.displayName;const G_=_u("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]);function Q_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Y_=function(){var e,t,r=Q_((0,i.useState)(!1),2),n=r[0],o=r[1],a=En(),s=he(),l=Qa({queryKey:["getServiceList"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_service_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3}),c=l.data,u=l.isLoading,d=null==c?void 0:c.data,f=function(){if(!d||"/"===s.pathname)return null;var e=s.pathname.split("/").filter(Boolean)[0],t=Object.entries(d).find(function(t){var r=Q_(t,2);r[0];return r[1].path===e});return t?t[1]:null}(),p=Ya({mutationFn:(t=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_service_status",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Service status updated!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to update service status","versatile-toolkit"))}});Fg({isOpen:n,onClose:function(){o(!n)}}).handleBackdropClick;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)("header",{className:"vt-bg-white vt-border-b vt-border-gray-200 vt-py-4 vt-flex vt-items-center vt-justify-between vt-relative",children:[(0,Sn.jsx)(kt,{to:"/",className:"vt-flex vt-items-center vt-text-blue-600 vt-text-lg vt-font-semibold",children:(0,ca.__)("Versatile Toolkit","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-3",children:[f&&(0,Sn.jsx)(Sn.Fragment,{children:Object.keys((null==f?void 0:f.menus)||{}).map(function(e){var t,r,n="/".concat(null==f?void 0:f.path,"/").concat(null==f||null===(t=f.menus)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.slug);return n.endsWith("/")&&(n=n.slice(0,-1)),(0,Sn.jsx)(kt,{to:n,onClick:function(){},className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-transition-colors vt-duration-200 ".concat(s.pathname===n?"vt-bg-blue-600 vt-text-white vt-border vt-border-blue-700 hover:vt-text-white focus:!vt-text-white":"vt-bg-blue-50 vt-border vt-border-blue-200"),children:null==f||null===(r=f.menus)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.label},e)})}),!u&&(null==d?void 0:d.troubleshoot.enable)&&!f&&(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(kt,{to:"/troubleshoot",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,ca.__)("Deactivate Plugins","versatile-toolkit")}),(0,Sn.jsx)(kt,{to:"/troubleshoot/debug-log",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,ca.__)("Debug Log","versatile-toolkit")})]}),(0,Sn.jsxs)(z_,{children:[(0,Sn.jsx)(U_,{asChild:!0,children:(0,Sn.jsx)("button",{className:"vt-p-1 vt-rounded-md vt-bg-blue-100 hover:vt-bg-blue-200 vt-transition-colors vt-duration-200","aria-label":(0,ca.__)("Toggle menu","versatile-toolkit"),children:(0,Sn.jsx)(G_,{className:"vt-w-5 vt-h-5 vt-text-gray-600"})})}),(0,Sn.jsxs)(H_,{children:[(0,Sn.jsx)(Z_,{children:(0,Sn.jsx)(K_,{children:(0,ca.__)("Services","versatile-toolkit")})}),(0,Sn.jsx)("div",{className:"vt-space-y-3 vt-mt-6",children:Object.entries(d||{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,Sn.jsxs)("div",{onClick:function(){return function(e,t){p.mutate({service_key:e,enable:!t.enable},{onSuccess:function(){"quickact"!==e?(a.invalidateQueries({queryKey:["getServiceList"]}),a.invalidateQueries({queryKey:["getEnableServiceList"]})):window.location.reload()}})}(r,n)},className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-rounded-md vt-border vt-border-gray-200 vt-bg-gray-50 hover:vt-bg-blue-100 hover:vt-border-blue-300 hover:vt-shadow-md vt-transition-all vt-duration-300 vt-cursor-pointer",children:[(0,Sn.jsx)("span",{className:"vt-text-blue-500 vt-font-medium hover:vt-text-blue-800 vt-transition-colors vt-duration-300",children:n.label}),(0,Sn.jsxs)("div",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:n.enable,onChange:function(){},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-relative vt-w-11 vt-h-6 vt-bg-[#c7c6c6] peer-focus:vt-outline-none peer-focus:vt-ring-4 peer-focus:vt-ring-blue-300 vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-gray-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]},n.label)})})]})]})]})]})})};var X_=function(e){var t=e.children,r=Ni(),n=r.data,o=(r.isLoading,null==n?void 0:n.data),a=he().pathname.split("/").filter(Boolean)[0];if(!o)return(0,Sn.jsx)(Sn.Fragment,{children:t});var i=Object.values(o).find(function(e){return e.path===a});return i&&i.enable?(0,Sn.jsx)(Sn.Fragment,{children:t}):(0,Sn.jsx)(Le,{to:"/",replace:!0})};const ek=_u("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),tk=_u("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),rk=_u("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),nk=_u("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ok(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ak(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ik=function(e,t,r,n,o){return{pathname:"/troubleshoot/debug-log",search:"?".concat(sk(e,t,r,n,o))}},sk=function(e,t,r,n,o){var a=new URLSearchParams;return a.append("paged",e.toString()),a.append("per_page",null==t?void 0:t.toString()),r&&a.append("search",r),n&&a.append("sort_key",n),o&&a.append("sort_dir",o),a.toString()};function lk(e){var t=e.order;return(0,Sn.jsxs)("span",{"aria-hidden":!0,className:"vt-inline-flex vt-flex-col vt-leading-none vt-ml-1",children:[""===t&&(0,Sn.jsx)(ek,{className:"vt-h-3 vt-w-3"}),"asc"===t&&(0,Sn.jsx)(ek,{className:"vt-h-3 vt-w-3"}),"desc"===t&&(0,Sn.jsx)(tk,{className:"vt-h-3 vt-w-3"})]})}var ck=function(e){return{page:parseInt(e.get("paged")||"1"),perPage:parseInt(e.get("per_page")||"10"),search:e.get("search")||"",sortKey:e.get("sort_key")||"",order:e.get("order")||""}};function uk(e){var t=e.columns,r=e.fetchData,n=e.searchParams,o=ge(),a=n,s=ck(a),l=ok((0,i.useState)(s.search),2),c=l[0],u=l[1],d=ok((0,i.useState)(s.page),2),f=d[0],p=d[1],v=ok((0,i.useState)(s.perPage||10),2),h=v[0],m=v[1],y=ok((0,i.useState)({key:s.sortKey,order:s.order}),2),g=y[0],b=y[1],x=ok((0,i.useState)(0),2),w=x[0],j=x[1];(0,i.useEffect)(function(){var e=ck(a);p(e.page),m(e.perPage||10),u(e.search),b({key:e.sortKey,order:e.order})},[n]);var _=ok((0,i.useState)([]),2),k=_[0],O=_[1],S=ok((0,i.useState)(0),2),N=S[0],E=S[1],P=ok((0,i.useState)(!1),2),C=P[0],R=P[1];return(0,i.useEffect)(function(){R(!0),r({page:f,perPage:h,search:c,sortKey:g.key,order:g.order}).then(function(e){O(e.data),E(e.total||0),j(e.totalPages||0)}).finally(function(){return R(!1)})},[f,h,c,g]),(0,Sn.jsxs)("div",{className:"vt-w-full",children:[(0,Sn.jsxs)("div",{className:"vt-mb-3 vt-flex vt-flex-col vt-gap-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,Sn.jsx)("div",{className:"vt-relative vt-max-w-md"}),(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-gap-2"})]}),(0,Sn.jsxs)("div",{className:"vt-overflow-hidden vt-rounded-2xl vt-border vt-border-slate-200 vt-bg-white vt-shadow-sm",children:[(0,Sn.jsx)("div",{className:"vt-overflow-x-auto",children:(0,Sn.jsxs)("table",{className:"vt-min-w-full vt-text-left vt-text-sm",children:[(0,Sn.jsx)("thead",{className:"vt-sticky vt-top-0 vt-bg-slate-50",children:(0,Sn.jsx)("tr",{className:"vt-text-slate-600",children:t.map(function(e){var t=g.key===e.key,r=t?"asc"===g.order?"ascending":"descending":"none",n="vt-px-4 vt-py-3 vt-font-semibold";return e.sortable?(0,Sn.jsx)("th",{scope:"col","aria-sort":r,className:n,children:(0,Sn.jsxs)("button",{className:"group vt-inline-flex vt-items-center vt-rounded-lg vt-px-1 vt-py-0.5 hover:vt-bg-slate-200 focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-slate-300",onClick:function(){return t=String(e.key),void b(function(e){return e.key!==t?{key:t,order:"asc"}:"asc"===e.order?{key:t,order:"desc"}:{key:t,order:"asc"}});var t},"aria-label":"Sort by ".concat(e.header),children:[(0,Sn.jsx)("span",{children:e.header}),(0,Sn.jsx)(lk,{order:t?g.order:""})]})},String(e.key)):(0,Sn.jsx)("th",{scope:"col",className:n,children:e.header},String(e.key))})})}),(0,Sn.jsx)("tbody",{children:C?(0,Sn.jsx)(ba,{columns:t.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:h}):0===k.length?(0,Sn.jsx)($x,{}):k.map(function(e,r){return(0,Sn.jsx)("tr",{className:"vt-border-t vt-border-slate-100 hover:vt-bg-slate-50/60",children:t.map(function(t){var n;return(0,Sn.jsx)("td",{className:"vt-px-4 vt-py-3 vt-text-slate-700",children:t.render?t.render(e,t.key):e[t.key]===e.id?(f-1)*h+r+1:String(null!==(n=e[t.key])&&void 0!==n?n:"")},String(t.key))})},e.id)})})]})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3 vt-border-t vt-border-slate-200 vt-p-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsxs)("div",{className:"vt-text-xs vt-text-slate-600",children:["Showing"," ",(0,Sn.jsx)("span",{className:"vt-font-semibold",children:k.length?(f-1)*h+1:0}),"–",(0,Sn.jsx)("span",{className:"vt-font-semibold",children:(f-1)*h+k.length})," of",(0,Sn.jsxs)("span",{className:"vt-font-semibold",children:[" ",N]})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)("label",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("Per page","versatile-toolkit")}),(0,Sn.jsx)("select",{value:h,onChange:function(e){m(Number(e.target.value)),o(ik(f,Number(e.target.value),c,g.key,g.order))},className:"vt-rounded-xl vt-border vt-!vt-border-slate-200 vt-bg-white vt-pl-2 vt-pr-7 vt-py-1 vt-text-sm vt-shadow-sm",children:[5,10,20,50,100].map(function(e){return(0,Sn.jsx)("option",{value:e,children:e},e)})})]})]}),k.length>0&&(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-1",children:[(0,Sn.jsxs)(Qi,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.max(1,f-1);p(e),o(ik(e,h,c,g.key,g.order))},disabled:1===f,children:[(0,Sn.jsx)(rk,{className:"vt-h-4 vt-w-4 vt-pr-1"}),"Prev"]}),(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-gap-1 vt-mx-2",children:function(){var e=[],t=Math.max(1,f-Math.floor(1.5)),r=Math.min(w,t+3-1);r-t+1<3&&(t=Math.max(1,r-3+1)),t>1&&(e.push((0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:1===f?"default":"outline","aria-label":(0,ca.__)("Go to first page","versatile-toolkit"),onClick:function(){p(1),o(ik(1,h,c,g.key,g.order))},children:"1"},1)),t>2&&e.push((0,Sn.jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis1")));for(var n=function(t){e.push((0,Sn.jsx)(Qi,{size:"sm",variant:t===f?"default":"outline",type:"button","aria-label":(0,ca.__)("Go to page","versatile-toolkit"),onClick:function(){p(t),o(ik(t,h,c,g.key,g.order))},children:t},t))},a=t;a<=r;a++)n(a);return r<w&&(r<w-1&&e.push((0,Sn.jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis2")),e.push((0,Sn.jsx)(Qi,{size:"sm",variant:w===f?"default":"outline",type:"button","aria-label":(0,ca.__)("Go to last page","versatile-toolkit"),onClick:function(){p(w),o(ik(w,h,c,g.key,g.order))},children:w},w))),e}()}),(0,Sn.jsxs)(Qi,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.min(w,f+1);p(e),o(ik(e,h,c,g.key,g.order))},disabled:f===w,children:[(0,ca.__)("Next","versatile-toolkit"),(0,Sn.jsx)(nk,{className:"vt-h-4 vt-w-4 vt-pl-1"})]})]})]})]})]})}const dk=function(e){var t=e.debugStatus,r=e.logFileInfo,n=e.isAutoRefresh,o=e.isLoading,a=e.statusLoading,i=e.onToggleDebugLog,s=e.onToggleAutoRefresh,l=e.onStopAutoRefresh;return(0,Sn.jsxs)("div",{className:"vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-3 vt-relative",children:[a?(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300 vt-animate-pulse"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2 vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-300 vt-rounded vt-w-32 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-300 vt-rounded-full vt-w-16 vt-animate-pulse"})]}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-slate-300 vt-rounded vt-w-48 vt-animate-pulse"})]})]}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 vt-rounded-full vt-animate-pulse"})]}):(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(t?"vt-bg-green-500":"vt-bg-red-500")}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,ca.__)("Debug Logging Status","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-px-3 vt-py-1 vt-rounded-full vt-text-xs vt-font-medium ".concat(t?"vt-bg-green-100 vt-text-green-800":"vt-bg-red-100 vt-text-red-800"),children:t?(0,ca.__)("Enabled","versatile-toolkit"):(0,ca.__)("Disabled","versatile-toolkit")})]}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-slate-600",children:t?(0,ca.__)("Debug logging is currently enabled","versatile-toolkit"):(0,ca.__)("Debug logging is currently disabled","versatile-toolkit")})]})]}),(0,Sn.jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:t,onClick:function(e){return i(e.target.checked)},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]}),o?(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200 vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,Sn.jsx)("div",{className:"vt-w-4 vt-h-4 vt-bg-blue-300 vt-rounded vt-animate-pulse"}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-1",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-blue-300 vt-rounded vt-w-20 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-blue-300 vt-rounded vt-w-12 vt-animate-pulse"})]})]}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-blue-300 vt-rounded-full vt-animate-pulse"})]}):(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4 vt-text-blue-600 ".concat(n?"vt-animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),(0,Sn.jsxs)("span",{className:"vt-text-sm vt-font-medium vt-text-blue-800",children:[(0,ca.__)("Auto Refresh","versatile-toolkit"),n&&(0,Sn.jsxs)("span",{className:"vt-ml-1 vt-text-xs",children:["(",(0,ca.__)("Active","versatile-toolkit"),")"]})]})]}),(0,Sn.jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){s(e.target.checked),e.target.checked||l()},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]})]}),(0,Sn.jsx)("div",{className:"vt-space-y-3",children:o?(0,Sn.jsxs)("div",{className:"vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("div",{className:"vt-h-9 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-mb-3"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-20"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-12"})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-24"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-32"})]})]})]}):(0,Sn.jsxs)("div",{className:"vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-mb-3",children:(0,ca.__)("Log File Information","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("File Status:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium ".concat(r.exists?"vt-text-green-600":"vt-text-red-600"),children:r.exists?(0,ca.__)("Exists","versatile-toolkit"):(0,ca.__)("Not Found","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("File Size:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.size})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("Last Modified:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.lastModified})]})]})]})})]})};var fk=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"text-red-500";case"PHP Warning":return"text-yellow-500";case"PHP Notice":return"text-blue-500";default:return"text-gray-500"}},pk=function(e){var t=e.type,r=fk(t),n=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"Error";case"PHP Warning":return"Warning";case"PHP Notice":return"Info";case"debug":return"Debug";default:return e}}(t);return(0,Sn.jsx)("span",{className:r,children:n})},vk=function(e){var t=e.row,r=t.raw_line;return(0,Sn.jsx)("div",{className:"vt-flex vt-gap-1",children:(0,Sn.jsxs)(Lu,{children:[(0,Sn.jsx)(Vu,{asChild:!0,children:(0,Sn.jsx)(Qi,{size:"icon",variant:"ghost","aria-label":"View ".concat(t.type,"'s log"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",children:(0,Sn.jsx)(Dg,{className:"vt-h-4 vt-w-4"})})}),(0,Sn.jsxs)(qu,{children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsxs)(Hu,{children:["Warning Type: ",(0,Sn.jsx)("span",{className:fk(t.type),children:t.type})]}),(0,Sn.jsx)(Zu,{className:"vt-mt-2 vt-hidden",children:t.timestamp})]}),(0,Sn.jsx)("div",{className:"vt-max-h-[70vh] vt-overflow-auto vt-bg-[#e5e5e5] vt-p-3 vt-my-2",children:(0,Sn.jsx)("pre",{className:"vt-whitespace-pre-wrap vt-font-mono vt-text-base",children:r})}),(0,Sn.jsx)(Bu,{className:"sm:vt-justify-end",children:(0,Sn.jsx)(zu,{asChild:!0,children:(0,Sn.jsx)(Qi,{type:"button",variant:"secondary",children:(0,ca.__)("Close","versatile-toolkit")})})})]})]})})};function hk(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return mk(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(mk(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,mk(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,mk(d,"constructor",c),mk(c,"constructor",l),l.displayName="GeneratorFunction",mk(c,o,"GeneratorFunction"),mk(d),mk(d,o,"Generator"),mk(d,n,function(){return this}),mk(d,"toString",function(){return"[object Generator]"}),(hk=function(){return{w:a,m:f}})()}function mk(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}mk=function(e,t,r,n){function a(t,r){mk(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},mk(e,t,r,n)}function yk(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function gk(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){yk(a,n,o,i,s,"next",e)}function s(e){yk(a,n,o,i,s,"throw",e)}i(void 0)})}}var bk,xk,wk,jk,_k,kk,Ok={getStatus:(kk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_get_debug_log_status",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to get debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return kk.apply(this,arguments)}),toggleDebugLog:(_k=gk(hk().m(function e(t){var r,n,o;return hk().w(function(e){for(;;)switch(e.n){case 0:return r=new URLSearchParams({action:"versatile_toggle_debug_log",versatile_nonce:Va.nonce_value,enable:t.toString()}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r});case 1:return n=e.v,e.n=2,n.json();case 2:if(200===(o=e.v).status_code){e.n=3;break}throw new Error(o.message||"Failed to toggle debug log");case 3:return e.a(2,o.data)}},e)})),function(e){return _k.apply(this,arguments)}),clearLog:(jk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_clear_debug_log",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to clear debug log");case 3:return e.a(2)}},e)})),function(){return jk.apply(this,arguments)}),downloadLog:(wk=gk(hk().m(function e(){var t,r;return hk().w(function(e){for(;;)if(0===e.n)return t=new URLSearchParams({action:"versatile_download_debug_log",versatile_nonce:Va.nonce_value}),r="".concat(Va.ajax_url,"?").concat(t),window.open(r,"_blank"),e.a(2,Promise.resolve())},e)})),function(){return wk.apply(this,arguments)}),refreshStatus:(xk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_refresh_debug_log",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to refresh debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return xk.apply(this,arguments)}),loadLogContent:(bk=gk(hk().m(function e(t){var r,n,o,a,i,s,l,c,u,d,f,p;return hk().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.page,n=t.perPage,o=t.search,a=t.sortKey,i=t.order,s=t.source,e.p=1,c=new URLSearchParams({action:"versatile_get_debug_log_content",versatile_nonce:Va.nonce_value,page:String(r),per_page:String(n),search:String(o||"").trim(),sortKey:String(a||"").trim(),order:String((null==i||null===(l=i.trim())||void 0===l?void 0:l.toLowerCase())||""),source:String(s||"all").trim()}),e.n=2,fetch("".concat(Va.ajax_url,"?").concat(c));case 2:return u=e.v,e.n=3,u.json();case 3:if(200!==(d=e.v).status_code){e.n=4;break}return f=d.data,e.a(2,{data:f.entries,total:null==f?void 0:f.total_entries,totalPages:null==f?void 0:f.total_pages});case 4:throw new Error(d.message||"Error fetching debug log content");case 5:e.n=7;break;case 6:throw e.p=6,p=e.v,new Error((null==p?void 0:p.message)||"Unknown error fetching debug log content");case 7:return e.a(2)}},e,null,[[1,6]])})),function(e){return bk.apply(this,arguments)})};function Sk(e){return Sk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sk(e)}function Nk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nk(Object(r),!0).forEach(function(t){Pk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Sk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Sk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ck(e){return function(e){if(Array.isArray(e))return Ak(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tk(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||Tk(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tk(e,t){if(e){if("string"==typeof e)return Ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ak(e,t):void 0}}function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Dk=function(){var e,t,r=Rk(Et(),1)[0],n=ge(),o=Rk((0,i.useState)(!1),2),a=o[0],s=o[1],l=Rk((0,i.useState)(0),2),c=l[0],u=l[1],d=Rk((0,i.useState)("all"),2),f=d[0],p=d[1],v=Rk((0,i.useState)(!1),2),h=v[0],m=v[1],y=Qa({queryKey:["debugLogStatus"],queryFn:Ok.getStatus,refetchInterval:3e4,staleTime:1e4}),g=y.data,b=y.isLoading,x=y.refetch,w=function(){var e=En();return Ya({mutationFn:Ok.toggleDebugLog,onSuccess:function(t,r){e.invalidateQueries({queryKey:["debugLogStatus"]});var n=r?"enabled":"disabled";Cr.success((0,ca.__)("Debug logging ".concat(n," successfully"),"versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Failed to toggle debug logging","versatile-toolkit"))}})}(),j=function(){var e=En();return Ya({mutationFn:Ok.clearLog,onSuccess:function(){e.invalidateQueries({queryKey:["debugLogStatus"]}),Cr.success((0,ca.__)("Debug log cleared successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Failed to clear debug log","versatile-toolkit"))}})}(),_=sv().data,k=lv().data,O=(null==g?void 0:g.enabled)||!1,S=g?(t=(e=g).file_exists&&e.last_modified>0?new Date(1e3*e.last_modified).toLocaleString():"Never",{exists:e.file_exists,size:e.file_size_formatted,lastModified:t}):{size:"0 KB",lastModified:"Never",exists:!1},N=b||w.isPending||j.isPending;(0,i.useEffect)(function(){var e;return a&&(e=setInterval(function(){u(function(e){return e+1})},5e3)),function(){e&&clearInterval(e)}},[a]);var E=function(e){p(e),m(!1);var t=new URLSearchParams(r);t.set("paged","1"),n({pathname:"/troubleshoot/debug-log",search:"?".concat(t.toString())})},P=(0,i.useMemo)(function(){var e,t,r=new Map,n=new Map;return(null!==(e=null==_?void 0:_.data)&&void 0!==e?e:[]).forEach(function(e){var t,n;r.set("plugin:".concat((t=e.slug,(void 0===(n=Rk(t.split("/"),1)[0])?t:n).replace(/\.php$/i,"").toLowerCase())),e.label)}),(null!==(t=null==k?void 0:k.data)&&void 0!==t?t:[]).forEach(function(e){n.set("theme:".concat(e.slug.toLowerCase()),e.label)}),{generalOptions:[{value:"all",label:(0,ca.__)("All Sources","versatile-toolkit"),group:"general"},{value:"wordpress-core",label:(0,ca.__)("WordPress Core","versatile-toolkit"),group:"general"},{value:"unknown",label:(0,ca.__)("Unknown","versatile-toolkit"),group:"general"}],pluginOptions:Array.from(r.entries()).map(function(e){var t=Rk(e,2);return{value:t[0],label:t[1],group:"plugin"}}),themeOptions:Array.from(n.entries()).map(function(e){var t=Rk(e,2);return{value:t[0],label:t[1],group:"theme"}})}},[_,k]),C=P.generalOptions,R=P.pluginOptions,T=P.themeOptions,A=(0,i.useMemo)(function(){return[].concat(Ck(C),Ck(R),Ck(T)).find(function(e){return e.value===f})},[C,R,f,T]),D=(0,i.useCallback)(function(e){return Ok.loadLogContent(Ek(Ek({},e),{},{source:f}))},[f]),F=[{key:"id",header:"No"},{key:"type",header:"Type",render:function(e){return(0,Sn.jsx)(pk,{type:e.type})}},{key:"message",header:"Description",render:function(e){var t=e.raw_line.length>200?"".concat(e.raw_line.substring(0,200),"..."):e.raw_line;return(0,Sn.jsx)(Sn.Fragment,{children:t})}},{key:"log_from",header:"Log From",render:function(e){return(0,Sn.jsx)("div",{className:"vt-min-w-[11rem]",children:(0,Sn.jsx)(rs,{variant:"success",className:"vt-font-medium",children:e.log_from||(0,ca.__)("Unknown","versatile-toolkit")})})}},{key:"timestamp",header:"Timestamp",render:function(e){var t=e.timestamp;if(!t)return"Invalid Date";try{var r=t.replace(" UTC","");return new Date(r+" UTC").toLocaleString()}catch(e){return"Invalid Date"}}},{key:"actions",header:"Actions",render:function(e,t){return(0,Sn.jsx)(vk,{row:e},t)}}];return(0,Sn.jsxs)("div",{className:"vt-mx-auto vt-max-w-6xl vt-p-6",children:[b?(0,Sn.jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300"}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("div",{className:"vt-h-5 vt-bg-slate-300 vt-rounded vt-w-32 vt-mb-2"}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-slate-200 vt-rounded vt-w-24"})]})]}),(0,Sn.jsx)("div",{className:"vt-h-9 vt-bg-slate-300 vt-rounded-lg vt-w-20"})]})}):(0,Sn.jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(O?"vt-bg-green-500":"vt-bg-red-500")}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,ca.__)("Debug Logging","versatile-toolkit")}),(0,Sn.jsxs)("p",{className:"vt-text-sm vt-text-slate-600",children:[O?(0,ca.__)("Currently enabled","versatile-toolkit"):(0,ca.__)("Currently disabled","versatile-toolkit"),a&&(0,Sn.jsxs)("span",{className:"vt-ml-2 vt-text-blue-600",children:["• ",(0,ca.__)("Auto refresh active","versatile-toolkit")]})]})]})]}),(0,Sn.jsxs)(z_,{children:[(0,Sn.jsx)(U_,{asChild:!0,children:(0,Sn.jsxs)("button",{className:"vt-flex vt-items-center vt-space-x-2 vt-px-3 vt-py-2 vt-bg-slate-100 vt-text-slate-700 vt-rounded-lg hover:vt-bg-slate-200 vt-transition-colors",children:[(0,Sn.jsxs)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,Sn.jsx)("span",{className:"vt-text-sm",children:(0,ca.__)("Settings","versatile-toolkit")})]})}),(0,Sn.jsxs)(H_,{children:[(0,Sn.jsx)(Z_,{children:(0,Sn.jsx)(K_,{children:(0,ca.__)("Debug Log Settings","versatile-toolkit")})}),(0,Sn.jsx)("div",{className:"vt-mt-6",children:(0,Sn.jsx)(dk,{debugStatus:O,logFileInfo:S,isAutoRefresh:a,isLoading:N,statusLoading:b,onToggleDebugLog:function(e){w.mutate(e)},onToggleAutoRefresh:function(e){s(e)},onStopAutoRefresh:function(){s(!1),Cr.success((0,ca.__)("Auto refresh stopped","versatile-toolkit"))}})})]})]})]})}),(0,Sn.jsxs)("div",{className:"vt-my-8",children:[(0,Sn.jsxs)("div",{className:" vt-bg-white vt-rounded-lg vt-border vt-p-2 vt-flex vt-items-center vt-justify-between",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-text-lg",children:(0,ca.__)("Debug Log","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-wrap vt-items-center vt-gap-3",children:[(0,Sn.jsxs)(ev,{open:h,onOpenChange:m,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":h,"aria-label":(0,ca.__)("Filter debug logs by source","versatile-toolkit"),className:"vt-min-w-[12rem] vt-max-w-[20rem] vt-justify-between vt-gap-2 vt-bg-white vt-font-normal",children:[(0,Sn.jsx)("span",{className:"vt-truncate",children:(null==A?void 0:A.label)||(0,ca.__)("Select source...","versatile-toolkit")}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-[20rem] vt-p-0",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search source...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No source found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:C.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),R.length>0&&(0,Sn.jsx)(cd,{heading:(0,ca.__)("Plugins","versatile-toolkit"),children:R.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),T.length>0&&(0,Sn.jsx)(cd,{heading:(0,ca.__)("Themes","versatile-toolkit"),children:T.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})})]})]})})]}),(0,Sn.jsx)("button",{title:(0,ca.__)("Refresh Log","versatile-toolkit"),onClick:function(){x(),u(function(e){return e+1}),Cr.success((0,ca.__)("Debug log status and content refreshed","versatile-toolkit"))},disabled:N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-3 vt-px-2 vt-py-1 vt-bg-blue-500 vt-text-white vt-rounded-lg hover:vt-bg-blue-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),(0,Sn.jsx)("button",{title:(0,ca.__)("Download Log","versatile-toolkit"),onClick:function(){S.exists?Ok.downloadLog():Cr.error((0,ca.__)("No log file to download","versatile-toolkit"))},disabled:!S.exists||N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-green-600 vt-text-white vt-rounded-lg hover:vt-bg-green-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,Sn.jsx)("button",{title:(0,ca.__)("Clear Log","versatile-toolkit"),onClick:function(){S.exists?window.confirm((0,ca.__)("Are you sure you want to clear the debug log? This action cannot be undone.","versatile-toolkit"))&&j.mutate(void 0,{onSuccess:function(){x(),u(function(e){return e+1})}}):Cr.error((0,ca.__)("No log file to clear","versatile-toolkit"))},disabled:!S.exists||N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-yellow-600 vt-text-white vt-rounded-lg hover:vt-bg-yellow-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]}),(0,Sn.jsx)(uk,{columns:F,fetchData:D,searchParams:r},"".concat(c,"-").concat(f))]})]})};var Fk=a.createRoot(document.getElementById("versatile-root")),Ik=new class{#G;#b;#p;#Q;#J;#Y;#X;#ee;constructor(e={}){this.#G=e.queryCache||new jn,this.#b=e.mutationCache||new kn,this.#p=e.defaultOptions||{},this.#Q=new Map,this.#J=new Map,this.#Y=0}mount(){this.#Y++,1===this.#Y&&(this.#X=an.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onFocus())}),this.#ee=sn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onOnline())}))}unmount(){this.#Y--,0===this.#Y&&(this.#X?.(),this.#X=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#G.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#b.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#G.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Mr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#G.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#G.get(n.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#G.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return nn.batch(()=>this.#G.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state}removeQueries(e){const t=this.#G;nn.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#G;return nn.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=nn.batch(()=>this.#G.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Dr).catch(Dr)}invalidateQueries(e,t={}){return nn.batch(()=>(this.#G.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=nn.batch(()=>this.#G.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Dr)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#G.build(this,t);return r.isStaleByTime(Mr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dr).catch(Dr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dr).catch(Dr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return sn.isOnline()?this.#b.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#G}getMutationCache(){return this.#b}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#Q.set(Ur(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Q.values()],r={};return t.forEach(t=>{qr(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#J.set(Ur(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#J.values()],r={};return t.forEach(t=>{qr(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=zr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#G.clear(),this.#b.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});Fk.render((0,Sn.jsx)(Cg,{onError:function(e,t){},children:(0,Sn.jsx)(Pn,{client:Ik,children:(0,Sn.jsx)(Cg,{onError:function(e,t){},children:(0,Sn.jsx)(jt,{children:(0,Sn.jsxs)(Cg,{onError:function(e,t){},children:[(0,Sn.jsx)(Y_,{}),(0,Sn.jsxs)(ze,{children:[(0,Sn.jsx)(Ve,{path:"/",element:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(Ci,{})})}),(0,Sn.jsx)(Ve,{path:"/troubleshoot",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(yg,{})})})}),(0,Sn.jsx)(Ve,{path:"/maintenance",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(lx,{})})})}),(0,Sn.jsx)(Ve,{path:"/comingsoon",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(bx,{})})})}),(0,Sn.jsx)(Ve,{path:"/templogin",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(C_,{})})})}),(0,Sn.jsx)(Ve,{path:"/troubleshoot/debug-log",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(Dk,{})})})})]}),(0,Sn.jsx)(Pr,{position:"bottom-right",containerClassName:"!z-[9999999]",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}})]})})})})}))})();
     1(()=>{"use strict";var e={};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const i=Object.create(null);r.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,r.d(i,a),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n=r.cw((e,t)=>{var r=s();t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot}),o=r.cw((e,t)=>{var r=a(),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,a={},c=null,u=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}),i=r.cw(e=>{e.exports=o()}),a=r.cw(e=>{e.exports=React}),s=r.cw(e=>{e.exports=ReactDOM});function l(){return l.c||(l.c=r.t(a(),2))}s(),n(),a();var c=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,u=/^[\\/]{2}/;function d(e,t){return t+e.replace(/\\/g,"/")}var f="popstate";function p(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function v(e={}){return w(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=x(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),g("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:b(t))},function(e,t){m("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function h(e,t){if(!1===e||null==e)throw new Error(t)}function m(e,t){if(!e)try{throw new Error(t)}catch(e){}}function y(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function g(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?x(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:o}}function b({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function x(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function w(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function v(e){return j(o,e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let h={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(f,d),l=e,()=>{o.removeEventListener(f,d),l=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=p(e)?e:g(h.location,e,t);r&&r(n,e),c=u()+1;let d=y(n,c),f=h.createHref(n.mask||n);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let n=p(e)?e:g(h.location,e,t);r&&r(n,e),c=u();let o=y(n,c),d=h.createHref(n.mask||n);a.replaceState(o,"",d),i&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}function j(e,t,r=!1){let n="http://localhost";e&&(n="null"!==e.location.origin?e.location.origin:e.location.href),h(n,"No window.location.(origin|href) available to create URL");let o="string"==typeof t?t:b(t);return o=o.replace(/ $/,"%20"),!r&&u.test(o)&&(o=n+o),new URL(o,n)}new WeakMap;function _(e,t,r="/"){return k(e,t,r,!1)}function k(e,t,r,n,o){let i=z(("string"==typeof t?x(t):t).pathname||"/",r);if(null==i)return null;let a=o??S(e),s=null,l=$(i);for(let e=0;null==s&&e<a.length;++e)s=I(a[e],l,n);return s}function S(e){let t=O(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function O(e,t=[],r=[],n="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;h(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=Z([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(h(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:F(c,e.index),routesMeta:u.map((e,t)=>{let[r,n]=V(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:r,compiledParams:n}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of N(e.path))i(e,t,!0,r);else i(e,t)}),t}function N(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=N(n.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var P=/^:[\w-]+$/,C=3,E=2,R=1,A=10,T=-2,D=e=>"*"===e;function F(e,t){let r=e.split("/"),n=r.length;return r.some(D)&&(n+=T),t&&(n+=E),r.filter(e=>!D(e)).reduce((e,t)=>e+(P.test(t)?C:""===t?R:A),n)}function I(e,t,r=!1){let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},d=s.matcher&&s.compiledParams?L(u,c,s.matcher,s.compiledParams):M(u,c),f=s.route;if(!d&&l&&r&&!n[n.length-1].route.index&&(d=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:Z([i,d.pathname]),pathnameBase:Q(Z([i,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(i=Z([i,d.pathnameBase]))}return a}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=V(e.path,e.caseSensitive,e.end);return L(e,t,r,n)}function L(e,t,r,n){let o=t.match(r);if(!o)return null;let i=o[0],a=K(i,1),s=o.slice(1),l=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=K(i.slice(0,i.length-e.length),1)}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function V(e,t=!1,r=!0){m("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,o,i)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function $(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return m(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t){let r=K(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function q(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function B(e){let t=W(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function H(e,t,r,n=!1){let o;"string"==typeof e?o=x(e):(o={...e},h(!o.pathname||!o.pathname.includes("?"),q("?","pathname","search",o)),h(!o.pathname||!o.pathname.includes("#"),q("#","pathname","hash",o)),h(!o.search||!o.search.includes("#"),q("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:i=""}="string"==typeof e?x(e):e;return n?(n=G(n),r=n.startsWith("/")||n.startsWith("\\")?U(n.substring(1),"/"):U(n,t)):r=t,{pathname:r,search:J(o),hash:Y(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var G=e=>e.replace(/[\\/]{2,}/g,"/"),Z=e=>G(e.join("/"));function K(e,t=0){let r=e.length;for(;r>t&&47===e.charCodeAt(r-1);)r--;return r===e.length?e:e.slice(0,r)}var Q=e=>K(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var X=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function te(e){let t=e.map(e=>e.route.path).filter(Boolean);return Z(t)||"/"}var re="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let r=e;if("string"!=typeof r||!c.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(re)try{let e=new URL(window.location.href),n=u.test(r)?new URL(d(r,e.protocol)):new URL(r),i=z(n.pathname,t);n.origin===e.origin&&null!=i?r=i+n.search+n.hash:o=!0}catch(e){m(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var oe=new URL("http://localhost");function ie(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),oe)}catch{return oe}}function ae(e,t){return e.origin===t.origin&&("null"!==e.origin||e.protocol===t.protocol&&e.host===t.host)}function se(e,t,r,n){let o=null;try{o=null==e?null:new URL(e,r)}catch{}let i=new URL(t,r),a=null!=o&&!ae(o,r),s=!ae(i,r);if("reject"===n){if(a||s)throw new Error("External navigation is not allowed")}else if(s&&(null==o||!function(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return!!e.toLowerCase().startsWith(r)&&(""===t.host||e.slice(r.length).startsWith("//"))}(e,o)||!ae(o,i)))throw new Error("External navigation is not allowed")}var le=["POST","PUT","PATCH","DELETE"],ce=(new Set(le),["GET",...le]);new Set(ce),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var ue=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function de(e){try{return ue.includes(new URL(e).protocol)}catch{return!1}}var fe=a().createContext(null);fe.displayName="DataRouter";var pe=a().createContext(null);pe.displayName="DataRouterState";var ve=a().createContext(!1);function he(){return a().useContext(ve)}var me=a().createContext({isTransitioning:!1});me.displayName="ViewTransition";var ye=a().createContext(new Map);ye.displayName="Fetchers";var ge=a().createContext(null);ge.displayName="Await";var be=a().createContext(null);be.displayName="Navigation";var xe=a().createContext(null);xe.displayName="Location";var we=a().createContext({outlet:null,matches:[],isDataRoute:!1});we.displayName="Route";var je=a().createContext(null);je.displayName="RouteError";var _e="REACT_ROUTER_ERROR";function ke(){return null!=a().useContext(xe)}function Se(){return h(ke(),"useLocation() may be used only in the context of a <Router> component."),a().useContext(xe).location}var Oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ne(e){a().useContext(be).static||a().useLayoutEffect(e)}function Pe(){let{isDataRoute:e}=a().useContext(we);return e?function(){let{router:e}=Ve("useNavigate"),t=ze("useNavigate"),r=a().useRef(!1);Ne(()=>{r.current=!0});let n=a().useCallback(async(n,o={})=>{m(r.current,Oe),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t]);return n}():function(){h(ke(),"useNavigate() may be used only in the context of a <Router> component.");let e=a().useContext(fe),{basename:t,navigator:r}=a().useContext(be),{matches:n}=a().useContext(we),{pathname:o}=Se(),i=JSON.stringify(B(n)),s=a().useRef(!1);Ne(()=>{s.current=!0});let l=a().useCallback((n,a={})=>{if(m(s.current,Oe),!s.current)return;if("number"==typeof n)return void r.go(n);let l=H(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Z([t,l.pathname])),se("string"==typeof n?n:b(n),r.createHref(l),ie(r),"reject"),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e]);return l}()}a().createContext(null);function Ce(e,{relative:t}={}){let{matches:r}=a().useContext(we),{pathname:n}=Se(),o=JSON.stringify(B(r));return a().useMemo(()=>H(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function Ee(e,t,r){h(ke(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=a().useContext(be),{matches:o}=a().useContext(we),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";We(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,f=Se();if(t){let e="string"==typeof t?x(t):t;h("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=f;let p=d.pathname||"/",v=p;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):_(e,{pathname:v});m(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),m(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Me(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Z([c,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Z([c,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&g?a().createElement(xe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function Re(){let e=Ue(),t=ee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return s=a().createElement(a().Fragment,null,a().createElement("p",null,"💿 Hey developer 👋"),a().createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a().createElement("code",{style:i},"ErrorBoundary")," or"," ",a().createElement("code",{style:i},"errorElement")," prop on your route.")),a().createElement(a().Fragment,null,a().createElement("h2",null,"Unexpected Application Error!"),a().createElement("h3",{style:{fontStyle:"italic"}},t),r?a().createElement("pre",{style:o},r):null,s)}var Ae=a().createElement(Re,null),Te=class extends a().Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${_e}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new X(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a().createElement(we.Provider,{value:this.props.routeContext},a().createElement(je.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a().createElement(Fe,{error:e},t):t}};Te.contextType=ve;var De=new WeakMap;function Fe({children:e,error:t}){let{basename:r,navigator:n}=a().useContext(be);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${_e}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let o=De.get(t);if(o)throw o;let i=ne(e.location,r),s=i.absoluteURL||i.to;if(se(e.location,s,ie(n),"allow-explicit"),de(s))throw new Error("Invalid redirect location");if(re&&!De.get(t)){if(!i.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw De.set(t,r),r}window.location.href=s}return a().createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function Ie({routeContext:e,match:t,children:r}){let n=a().useContext(fe);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),a().createElement(we.Provider,{value:e},r)}function Me(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,i=n?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);h(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:i}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||void 0===i[t.route.id]);if(t.route.lazy||a){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=r?.onError,u=n&&c?(e,t)=>{c(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:te(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let d,f=!1,p=null,v=null;n&&(d=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||Ae,s&&(l<0&&0===c?(We("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,v=null):l===c&&(f=!0,v=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,c+1)),m=()=>{let t;return t=d?p:f?v:r.route.Component?a().createElement(r.route.Component,null):r.route.element?r.route.element:e,a().createElement(Ie,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?a().createElement(Te,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):m()},null)}function Le(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ve(e){let t=a().useContext(fe);return h(t,Le(e)),t}function $e(e){let t=a().useContext(pe);return h(t,Le(e)),t}function ze(e){let t=function(e){let t=a().useContext(we);return h(t,Le(e)),t}(e),r=t.matches[t.matches.length-1];return h(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Ue(){let e=a().useContext(je),t=$e("useRouteError"),r=ze("useRouteError");return void 0!==e?e:t.errors?.[r]}var qe={};function We(e,t,r){t||qe[e]||(qe[e]=!0,m(!1,r))}var Be={};function He(e,t){e||Be[t]||(Be[t]=!0)}l().useOptimistic;a().memo(Ge);function Ge({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:i}){return Ee(e,void 0,{manifest:t,state:n,isStatic:o,onError:i,future:r})}function Ze({to:e,replace:t,state:r,relative:n}){h(ke(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:i}=a().useContext(be);m(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=a().useContext(we),{pathname:l}=Se(),c=Pe(),u=H(e,B(s),l,"path"===n);se("string"==typeof e?e:b(e),i.createHref(u),ie(i),"reject");let d=JSON.stringify(u);return a().useEffect(()=>{c(JSON.parse(d),{replace:t,state:r,relative:n})},[c,d,n,t,r]),null}function Ke(e){h(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Qe({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:i=!1,useTransitions:s}){h(!ke(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=a().useMemo(()=>({basename:l,navigator:o,static:i,useTransitions:s,future:{}}),[l,o,i,s]);"string"==typeof r&&(r=x(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:v="default",mask:y}=r,g=a().useMemo(()=>{let e=z(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:v,mask:y},navigationType:n}},[l,u,d,f,p,v,n,y]);return m(null!=g,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:a().createElement(be.Provider,{value:c},a().createElement(xe.Provider,{children:t,value:g}))}function Je({children:e,location:t}){return Ee(Ye(e),t)}a().Component;function Ye(e,t=[]){let r=[];return a().Children.forEach(e,(e,n)=>{if(!a().isValidElement(e))return;let o=[...t,n];if(e.type===a().Fragment)return void r.push.apply(r,Ye(e.props.children,o));h(e.type===Ke,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),h(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Ye(e.props.children,o)),r.push(i)}),r}var Xe="get",et="application/x-www-form-urlencoded";function tt(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function rt(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var nt=null;var ot=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function it(e){return null==e||ot.has(e)?e:(m(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${et}"`),null)}function at(e,t){let r,n,o,i,a;if(tt(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?z(a,t):null,r=e.getAttribute("method")||Xe,o=it(e.getAttribute("enctype"))||et,i=new FormData(e)}else if(function(e){return tt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return tt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?z(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Xe,o=it(e.getAttribute("formenctype"))||it(a.getAttribute("enctype"))||et,i=new FormData(a,e),!function(){if(null===nt)try{new FormData(document.createElement("form"),0),nt=!1}catch(e){nt=!0}return nt}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(tt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Xe,n=null,o=et,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function st(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function lt(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===z(o.pathname,t)?o.pathname=`${K(t)}/_root.${n}`:o.pathname=`${K(o.pathname)}.${n}`,o}async function ct(e,t){if(e.id in t)return t[e.id];try{let r=await(import(e.module));return t[e.id]=r,r}catch(e){return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ut(e){return null!=e&&"string"==typeof e.page}function dt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ft(e,t,r,n,o,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function pt(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function vt(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!ut(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let i=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(i)||(r.add(i),e.push({key:i,link:o})),e},[])}function ht(e,t){return"lazy"===e.mode&&!0===t}function mt(){let e=a().useContext(fe);return st(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function yt(){let e=a().useContext(pe);return st(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gt=a().createContext(void 0);function bt(){let e=a().useContext(gt);return st(e,"You must render this element inside a <HydratedRouter> element"),e}function xt(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function wt(e,t,r){if(r&&!Ot)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}gt.displayName="FrameworkContext";function jt({page:e,...t}){let r=he(),{nonce:n}=bt(),{router:o}=mt(),i=a().useMemo(()=>_(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(null==t.nonce&&n&&(t={...t,nonce:n}),r?a().createElement(kt,{page:e,matches:i,...t}):a().createElement(St,{page:e,matches:i,...t})):null}function _t(e){let{manifest:t,routeModules:r}=bt(),[n,o]=a().useState([]);return a().useEffect(()=>{let n=!1;return async function(e,t,r){return vt((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await ct(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(dt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}function kt({page:e,matches:t,...r}){let n=Se(),{future:o}=bt(),{basename:i}=mt(),s=a().useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=lt(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:s.push(e.route.id);return a&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[i,o.v8_trailingSlashAwareDataRequests,e,n,t]);return a().createElement(a().Fragment,null,s.map(e=>a().createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function St({page:e,matches:t,...r}){let n=Se(),{future:o,manifest:i,routeModules:s}=bt(),{basename:l}=mt(),{loaderData:c,matches:u}=yt(),d=a().useMemo(()=>ft(e,t,u,i,n,"data"),[e,t,u,i,n]),f=a().useMemo(()=>ft(e,t,u,i,n,"assets"),[e,t,u,i,n]),p=a().useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:r.add(e.route.id))}),0===r.size)return[];let u=lt(e,l,o.v8_trailingSlashAwareDataRequests,"data");return a&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.v8_trailingSlashAwareDataRequests,c,n,i,d,t,e,s]),v=a().useMemo(()=>pt(f,i),[f,i]),h=_t(f);return a().createElement(a().Fragment,null,p.map(e=>a().createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),v.map(e=>a().createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>a().createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}var Ot=!1;function Nt(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:i,ssr:s,nonce:l}=bt(),{router:c,static:u,staticContext:d}=mt(),{matches:f}=yt(),p=he(),v=ht(i,s);null==e.nonce&&l&&(e={...e,nonce:l}),o&&(o.didRenderScripts=!0);let h=wt(f,null,n);a().useEffect(()=>{Ot=!0},[]);let m=a().useMemo(()=>{if(p)return null;let n=d?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${v?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];st(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...i?[{module:i,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${v?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=k(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n  window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a().createElement(a().Fragment,null,a().createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),a().createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),y=Ot||p?[]:[...new Set(t.entry.imports.concat(pt(h,t,{includeHydrateFallback:!0})))],g="object"==typeof t.sri?t.sri:{};return He(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Ot||p?null:a().createElement(a().Fragment,null,"object"==typeof t.sri?a().createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,v?null:a().createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),a().createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),y.map(t=>a().createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:g[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function Pt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a().Component;function Ct({error:e,isOutsideRemixApp:t}){let r,{nonce:n}=bt(),o=a().createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(ee(e))return a().createElement(Et,{title:"Unhandled Thrown Response!"},a().createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a().createElement(Et,{title:"Application Error!",isOutsideRemixApp:t},a().createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a().createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function Et({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=bt();return o.root?.Layout&&!r?n:a().createElement("html",{lang:"en"},a().createElement("head",null,a().createElement("meta",{charSet:"utf-8"}),a().createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a().createElement("title",null,e)),a().createElement("body",null,a().createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?a().createElement(Nt,null):null)))}var Rt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Rt&&(window.__reactRouterVersion="7.18.5")}catch(e){}function At({basename:e,children:t,useTransitions:r,window:n}){let o=a().useRef();null==o.current&&(o.current=v({window:n,v5Compat:!0}));let i=o.current,[s,l]=a().useState({action:i.action,location:i.location}),c=a().useCallback(e=>{!1===r?l(e):a().startTransition(()=>l(e))},[r]);return a().useLayoutEffect(()=>i.listen(c),[i,c]),a().createElement(Qe,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:r})}var Tt=a().forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:i,mask:s,state:l,target:u,to:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y){let{basename:g,navigator:x,useTransitions:w}=a().useContext(be),j="string"==typeof d&&c.test(d),_=ne(d,g),k=function(e,{relative:t}={}){h(ke(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=a().useContext(be),{hash:o,pathname:i,search:s}=Ce(e,{relative:t}),l=i;return"/"!==r&&(l="/"===i?r:Z([r,i])),n.createHref({pathname:l,search:s,hash:o})}(d=_.to,{relative:n}),S=Se(),O=null;if(s){let e=H(s,[],S.mask?S.mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:Z([g,e.pathname])),O=x.createHref(e)}let[N,P,C]=function(e,t){let r=a().useContext(gt),[n,o]=a().useState(!1),[i,s]=a().useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a().useRef(null);a().useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a().useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let v=()=>{o(!0)},h=()=>{o(!1),s(!1)};return r?"intent"!==e?[i,p,{}]:[i,p,{onFocus:xt(l,v),onBlur:xt(c,h),onMouseEnter:xt(u,v),onMouseLeave:xt(d,h),onTouchStart:xt(f,v)}]:[!1,p,{}]}(r,m),E=function(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:i,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=Pe(),f=Se(),p=Ce(e,{relative:s});return a().useCallback(v=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(v,t)){v.preventDefault();let t=void 0!==r?r:b(f)===b(p),h=()=>d(e,{replace:t,mask:n,state:o,preventScrollReset:i,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?a().startTransition(()=>h()):h()}},[f,d,p,r,n,o,t,e,i,s,l,c,u])}(d,{replace:i,mask:s,state:l,target:u,preventScrollReset:f,relative:n,viewTransition:p,defaultShouldRevalidate:v,useTransitions:w});let R=!(_.isExternal||o),A=a().createElement("a",{...m,...C,href:(R?O:void 0)||_.absoluteURL||k,onClick:R?function(t){e&&e(t),t.defaultPrevented||E(t)}:e,ref:Pt(y,P),target:u,"data-discover":j||"render"!==t?void 0:"true"});return N&&!j?a().createElement(a().Fragment,null,A,a().createElement(jt,{page:k})):A});Tt.displayName="Link",a().forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:i,viewTransition:s,children:l,...c},u){let d=Ce(i,{relative:c.relative}),f=Se(),p=a().useContext(pe),{navigator:v,basename:m}=a().useContext(be),y=null!=p&&function(e,{relative:t}={}){let r=a().useContext(me);h(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=It("useViewTransitionState"),o=Ce(e,{relative:t});if(!r.isTransitioning)return!1;let i=z(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=z(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=M(o.pathname,s)||null!=M(o.pathname,i)}(d)&&!0===s,g=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,b=f.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=z(x,m)||x);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let j,_=b===g||!n&&b.startsWith(g)&&"/"===b.charAt(w),k=null!=x&&(x===g||!n&&x.startsWith(g)&&"/"===x.charAt(g.length)),S={isActive:_,isPending:k,isTransitioning:y},O=_?e:void 0;j="function"==typeof r?r(S):[r,_?"active":null,k?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(S):o;return a().createElement(Tt,{...c,"aria-current":O,className:j,ref:u,style:N,to:i,viewTransition:s},"function"==typeof l?l(S):l)}).displayName="NavLink";var Dt=a().forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:i,method:s=Xe,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y)=>{let{useTransitions:g}=a().useContext(be),x=$t(),w=function(e,{relative:t}={}){let{basename:r}=a().useContext(be),n=a().useContext(we);h(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Ce(e||".",{relative:t})},s=Se();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index"),r=t.some(e=>""===e);if(r){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?`?${r}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(i.pathname="/"===i.pathname?r:Z([r,i.pathname]));return b(i)}(l,{relative:d}),j="get"===s.toLowerCase()?"get":"post",_="string"==typeof l&&c.test(l);return a().createElement("form",{ref:y,method:j,action:w,onSubmit:n?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,c=()=>x(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:i,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v});g&&!1!==r?a().startTransition(()=>c()):c()},...m,"data-discover":_||"render"!==e?void 0:"true"})});function Ft(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=a().useContext(fe);return h(t,Ft(e)),t}function Mt(e){m("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a().useRef(rt(e)),r=a().useRef(!1),n=Se(),o=a().useMemo(()=>function(e,t){let r=rt(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=Pe(),s=a().useCallback((e,t)=>{const n=rt("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,i("?"+n,t)},[i,o]);return[o,s]}Dt.displayName="Form";var Lt=0,Vt=()=>`__${String(++Lt)}__`;function $t(){let{router:e}=It("useSubmit"),{basename:t}=a().useContext(be),r=ze("useRouteId"),n=e.fetch,o=e.navigate;return a().useCallback(async(e,i={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=at(e,t);if(!1===i.navigate){let e=i.fetcherKey||Vt();await n(e,r,i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||s,formEncType:i.encType||l,flushSync:i.flushSync})}else await o(i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||s,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,o,t,r])}let zt={data:""},Ut=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||zt},qt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Wt=/\/\*[^]*?\*\/|  +/g,Bt=/\n+/g,Ht=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?Ht(a,i):i+"{"+Ht(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=Ht(a,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ht.p?Ht.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Gt={},Zt=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Zt(e[r]);return t}return e};function Kt(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,o)=>{let i=Zt(e),a=Gt[i]||(Gt[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!Gt[a]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=qt.exec(e.replace(Wt,""));)t[4]?n.shift():t[3]?(r=t[3].replace(Bt," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(Bt," ").trim();return n[0]})(e);Gt[a]=Ht(o?{["@keyframes "+a]:t}:t,r?"":"."+a)}let s=r&&Gt.g;return r&&(Gt.g=Gt[a]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Gt[a],t,n,s),a})(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Ht(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Ut(t.target),t.g,t.o,t.k)}Kt.bind({g:1});let Qt,Jt,Yt,Xt=Kt.bind({k:1});function er(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;r.p=Object.assign({theme:Jt&&Jt()},s),r.o=/go\d/.test(l),s.className=Kt.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),Yt&&c[0]&&Yt(s),Qt(c,s)}return t?t(o):o}}var tr=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,rr=(()=>{let e=0;return()=>(++e).toString()})(),nr=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),or="default",ir=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return ir(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},ar=[],sr={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},lr={},cr=(e,t=or)=>{lr[t]=ir(lr[t]||sr,e),ar.forEach(([e,r])=>{e===t&&r(lr[t])})},ur=e=>Object.keys(lr).forEach(t=>cr(e,t)),dr=(e=or)=>t=>{cr(t,e)},fr={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pr=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||rr()}))(t,e,r);return dr(n.toasterId||(e=>Object.keys(lr).find(t=>lr[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},vr=(e,t)=>pr("blank")(e,t);vr.error=pr("error"),vr.success=pr("success"),vr.loading=pr("loading"),vr.custom=pr("custom"),vr.dismiss=(e,t)=>{let r={type:3,toastId:e};t?dr(t)(r):ur(r)},vr.dismissAll=e=>vr.dismiss(void 0,e),vr.remove=(e,t)=>{let r={type:4,toastId:e};t?dr(t)(r):ur(r)},vr.removeAll=e=>vr.remove(void 0,e),vr.promise=(e,t,r)=>{let n=vr.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?tr(t.success,e):void 0;return o?vr.success(o,{id:n,...r,...null==r?void 0:r.success}):vr.dismiss(n),e}).catch(e=>{let o=t.error?tr(t.error,e):void 0;o?vr.error(o,{id:n,...r,...null==r?void 0:r.error}):vr.dismiss(n)}),e};var hr=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=or)=>{let[r,n]=(0,a().useState)(lr[t]||sr),o=(0,a().useRef)(lr[t]);(0,a().useEffect)(()=>(o.current!==lr[t]&&n(lr[t]),ar.push([t,n]),()=>{let e=ar.findIndex(([e])=>e===t);e>-1&&ar.splice(e,1)}),[t]);let i=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||fr[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:i}})(e,t),o=(0,a().useRef)(new Map).current,i=(0,a().useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,r)},[]);(0,a().useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>vr.dismiss(r.id,t),n);r.visible&&vr.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,a().useCallback)(dr(t),[t]),l=(0,a().useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,a().useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,a().useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,a().useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},a=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,a().useEffect)(()=>{r.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,i]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},mr=Xt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,yr=Xt` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,gr=Xt` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,br=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${mr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${yr} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${gr} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,xr=Xt` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,wr=er("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${xr} 1s linear infinite; `,jr=Xt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,_r=Xt` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,kr=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${jr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${_r} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Sr=er("div")` position: absolute; `,Or=er("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Nr=Xt` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Pr=er("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Nr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Cr=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?a().createElement(Pr,null,t):t:"blank"===r?null:a().createElement(Or,null,a().createElement(wr,{...n}),"loading"!==r&&a().createElement(Sr,null,"error"===r?a().createElement(br,{...n}):a().createElement(kr,{...n})))},Er=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,Rr=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} `,Ar=er("div")` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,Tr=er("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Dr=a().memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=nr()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Er(r),Rr(r)];return{animation:t?`${Xt(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Xt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=a().createElement(Cr,{toast:e}),s=a().createElement(Tr,{...e.ariaProps},tr(e.message,e));return a().createElement(Ar,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:s}):a().createElement(a().Fragment,null,i,s))});!function(e,t,r,n){Ht.p=t,Qt=e,Jt=r,Yt=n}(a().createElement);var Fr=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=a().useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return a().createElement("div",{ref:i,className:t,style:r},o)},Ir=Kt` z-index: 9999; > * { pointer-events: auto; } `,Mr=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:i,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=hr(r,i);return a().createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(r=>{let i=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:nr()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return a().createElement(Fr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?Ir:"",style:s},"custom"===r.type?tr(r.message,r):o?o(r):a().createElement(Dr,{toast:r,position:i}))}))},Lr=vr;const Vr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};const $r=new class{#e=Vr;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const zr="undefined"==typeof window||"Deno"in globalThis;function Ur(){}function qr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Wr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Br(e,t){return"function"==typeof e?e(t):e}function Hr(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==Zr(a,t.options))return!1}else if(!Qr(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Gr(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Kr(t.options.mutationKey)!==Kr(i))return!1}else if(!Qr(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Zr(e,t){return(t?.queryKeyHashFn||Kr)(e)}function Kr(e){return JSON.stringify(e,(e,t)=>tn(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(!Qr(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!Qr(e[n],t[n]))return!1;return!0}return!1}const Jr=Object.prototype.hasOwnProperty;function Yr(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=en(e)&&en(t);if(!(n||tn(e)&&tn(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const a=n?c:i[c],u=e[a],d=t[a];if(u===d){s[a]=u,(n?c<o:Jr.call(e,a))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[a]=d;continue}const f=Yr(u,d,r+1);s[a]=f,f===u&&l++}return o===a&&l===o?e:s}function Xr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r of Object.keys(e))if(!Jr.call(t,r)||e[r]!==t[r])return!1;return!0}function en(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tn(e){if(!rn(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;const n=r.prototype;return!!rn(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&t===Object.prototype)}function rn(e){return"[object Object]"===Object.prototype.toString.call(e)}function nn(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Yr(e,t):t}function on(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(-r):n}function an(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,r):n}const sn=Symbol();function ln(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==sn?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function cn(e,t){return"function"==typeof e?e(...t):!!e}const un=Symbol();var dn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};const fn=new class extends dn{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},pn=function(e){setTimeout(e,0)};const vn=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=pn;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();const hn=new class extends dn{#i=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};let mn=()=>zr;const yn=()=>mn();function gn(e){return Math.min(1e3*2**e,3e4)}function bn(e){return"online"!==(e??"online")||hn.isOnline()}var xn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function wn(e){let t,r,n,o=!1,i=0,a="pending";const s=new Promise((e,t)=>{r=e,n=t});s.catch(Ur);const l=()=>"pending"!==a,c=()=>fn.isFocused()&&("always"===e.networkMode||hn.isOnline())&&e.canRun(),u=()=>bn(e.networkMode)&&e.canRun(),d=e=>{l()||(t?.(),a="resolved",r(e))},f=e=>{l()||(t?.(),a="rejected",n(e))},p=r=>new Promise(n=>{t=e=>{(l()||r())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,l()||e.onContinue?.()}),v=()=>{if(l())return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(d).catch(t=>{if(l())return;const r=e.retry??(yn()?0:3),n=e.retryDelay??gn,a="function"==typeof n?n(i,t):n,s=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&s?(i++,e.onFail?.(i,t),(u=a,new Promise(e=>{$r.setTimeout(e,u)})).then(()=>l()||c()?void 0:p(c)).then(()=>{o?f(t):v()})):f(t)})};return{promise:s,status:()=>a,cancel:t=>{if(!l()){const r=new xn(t);f(r),e.onCancel?.(r)}},continue:()=>(t?.(),s),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:u,start:()=>(u()?v():p(u).then(v),s)}}var jn=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qr(this.gcTime)&&(this.#a=$r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yn()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&($r.clearTimeout(this.#a),this.#a=void 0)}},_n=class extends jn{#s;#l;#c;#u;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#c=e.mutationCache,this.#l=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#l.includes(e)||(this.#l.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#l=this.#l.filter(t=>t!==e),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#l.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#u?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#d({type:"continue"})},r={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#u=wn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)}),o="pending"===this.state.status,i=!n.canStart();try{if(o)t();else{this.#d({type:"pending",variables:e,isPaused:i}),this.#c.config.onMutate&&await this.#c.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:i})}this.state.isPaused&&n.canStart()&&t();const a=await n.start();return await(this.#c.config.onSuccess?.(a,e,this.state.context,this,r)),await(this.options.onSuccess?.(a,e,this.state.context,r)),await(this.#c.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(a,null,e,this.state.context,r)),this.#d({type:"success",data:a}),a}catch(t){try{await(this.#c.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#c.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#d({type:"error",error:t}),t}finally{this.#u===n&&(this.#u=void 0),this.#c.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),vn.batch(()=>{this.#l.forEach(t=>{t.onMutationUpdate(e)}),this.#c.notify({mutation:this,type:"updated",action:e})})}};var kn=class extends dn{#f;#p;#v;constructor(e={}){super(),this.config=e,this.#f=new Set,this.#p=new Map,this.#v=0}build(e,t,r){const n=new _n({client:e,mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#f.add(e);const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t);r?r.push(e):this.#p.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#f.delete(e)){const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#p.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Sn(e);return"string"==typeof t?(this.#p.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){vn.batch(()=>{const e=this.getAll();this.#f.clear(),this.#p.clear(),e.forEach(e=>{this.notify({type:"removed",mutation:e})})})}getAll(){return Array.from(this.#f)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Gr(t,e))}findAll(e={}){return this.getAll().filter(t=>Gr(e,t))}notify(e){vn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return vn.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ur))))}};function Sn(e){return e.options.scope?.id}function On(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=t,u=e=>{!function(e,t,r,n){let o,i=!1;Object.defineProperties(e,{[un]:{value:n},signal:{enumerable:!0,get:()=>(o??=t(),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}})}(e,()=>t.signal,()=>r=!0,c[un])},d=ln(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return u(e),e})(),a=await d(i),{maxPages:s}=t.options,l=o?an:on;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};if(o&&i.length){const e="backward"===o,t=e?Pn:Nn,r={pages:i,pageParams:a};s=await f(r,t(n,r),e)}else{const t=e??i.length;do{const e=0===l?void 0===a[0]?n.initialPageParam:a[0]:Nn(n,s);if(l>0&&null==e)break;s=await f(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Nn(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Pn(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Cn=class extends jn{#h;#m;#y;#g;#s;#u;#b;#x;#w;constructor(e){super(),this.#w=!1,this.#x=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#g=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#m=An(this.options),this.state=e.state??this.#m,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#h}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#x,...e},e?._type&&(this.#h=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=An(this.options);void 0!==e.data&&(this.setState(Rn(e.data,e.dataUpdatedAt)),this.#m=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#g.remove(this)}setData(e,t){const r=nn(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#d({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Ur).catch(Ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#m}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Br(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return void 0!==this.state.data&&(this.getObserversCount()>0&&this.observers.some(e=>"static"===Br(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Wr(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#u&&(this.#w||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#g.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u&&this.#b)return this.#u.continueRetry(),this.#b;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperties(e,{[un]:{value:r.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#w=!0,r.signal)}})},o=()=>{const e=ln(this.options,t),r=(()=>{const e={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#w=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return n(e),e})();("infinite"===this.#h?On(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#y=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const a=this.#u=wn({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof xn&&e.revert&&this.setState({...this.#y,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),s=(async()=>{try{const e=await a.promise;if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#g.config.onSuccess?.(e,this),this.#g.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof xn){if(e.silent){if(this.#u!==a&&this.#b)return this.#b;throw e}if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#g.config.onError?.(e,this),this.#g.config.onSettled?.(this.state.data,e,this),e}finally{this.#u===a&&(this.#u=void 0,this.#b=void 0),this.scheduleGc()}})();return this.#b=s,a.start(),s}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...En(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...Rn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#y=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vn.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#g.notify({query:this,type:"updated",action:e})})}};function En(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function Rn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function An(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Tn=class extends dn{#j;constructor(e={}){super(),this.config=e,this.#j=new Map}build(e,t,r){const n=t.queryKey,o=t.queryHash??Zr(n,t);let i=this.get(o);return i||(i=new Cn({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#j.has(e.queryHash)||(this.#j.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#j.get(e.queryHash)===e&&(e.destroy(),this.#j.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#j.get(e)}getAll(){return[...this.#j.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Hr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Hr(e,t)):t}notify(e){vn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){vn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){vn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};i();const Dn=a().createContext(void 0),Fn=e=>{const t=a().useContext(Dn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},In=({client:e,children:t})=>(a().useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o().jsx)(Dn.Provider,{value:e,children:t}));function Mn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Mn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ln(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Mn(e))&&(n&&(n+=" "),n+=t);return n}const Vn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),$n="-",zn=[],Un=e=>{const t=Bn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Wn(e);const r=e.split($n),n=""===r[0]&&r.length>1?1:0;return qn(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||zn}return r[e]||zn}}},qn=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=qn(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join($n):e.slice(t).join($n),s=i.length;for(let e=0;e<s;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},Wn=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),Bn=e=>{const{theme:t,classGroups:r}=e;return Hn(r,t)},Hn=(e,t)=>{const r=Vn();for(const n in e){const o=e[n];Gn(o,r,n,t)}return r},Gn=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];Zn(o,t,r,n)}},Zn=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Jn(e,t,r,n):Qn(e,t,r,n):Kn(e,t,r)},Kn=(e,t,r)=>{(""===e?t:Yn(t,e)).classGroupId=r},Qn=(e,t,r,n)=>{Xn(e)?Gn(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Jn=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];Gn(a,Yn(t,i),r,n)}},Yn=(e,t)=>{let r=e;const n=t.split($n),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Vn(),r.nextPart.set(t,o)),r=o}return r},Xn=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},to=[],ro=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),no=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let s=0;s<a;s++){const a=e[s];if(0===n&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){r=s;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.slice(i);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return ro(t,c,l,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):ro(to,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},oo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a="["===i[0],s=t.has(i);a||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},io=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},ao=/\s+/,so=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=so(e[n]))&&(r&&(r+=" "),r+=t);return r},lo=(e,...t)=>{let r,n,o,i;const a=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(ao);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=r(t);if(u){c=t+(c.length>0?" "+c:c);continue}let h,m=!!v;if(m){h=n(p.substring(0,v));const e=h&&a[h]?n(p):void 0;e&&e!==h&&(h=e,m=!1)}else h=n(p);if(!h){if(!m){c=t+(c.length>0?" "+c:c);continue}if(h=n(p),!h){c=t+(c.length>0?" "+c:c);continue}m=!1}const y=0===d.length?"":1===d.length?d[0]:i(d).join(":"),g=f?y+"!":y,b=g+h;if(s.indexOf(b)>-1)continue;s.push(b);const x=o(h,m);for(let e=0;e<x.length;++e){const t=x[e];s.push(g+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return o(e,i),i};return i=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:eo(e.cacheSize),parseClassName:no(e),sortModifiers:oo(e),postfixLookupClassGroupIds:io(e),...Un(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=so(t))&&(o&&(o+=" "),o+=r);return o})(...e))},co=[],uo=e=>{const t=t=>t[e]||co;return t.isThemeGetter=!0,t.themeKey=e,t},fo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,po=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,go=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xo=e=>vo.test(e),wo=e=>!!e&&!Number.isNaN(Number(e)),jo=e=>!!e&&Number.isInteger(Number(e)),_o=e=>e.endsWith("%")&&wo(e.slice(0,-1)),ko=e=>ho.test(e),So=()=>!0,Oo=e=>mo.test(e)&&!yo.test(e),No=()=>!1,Po=e=>go.test(e),Co=e=>bo.test(e),Eo=e=>!To(e)&&!zo(e),Ro=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Ao=e=>Ko(e,Xo,No),To=e=>fo.test(e),Do=e=>Ko(e,ei,Oo),Fo=e=>Ko(e,ti,wo),Io=e=>Ko(e,ni,So),Mo=e=>Ko(e,ri,No),Lo=e=>Ko(e,Jo,No),Vo=e=>Ko(e,Yo,Co),$o=e=>Ko(e,oi,Po),zo=e=>po.test(e),Uo=e=>Qo(e,ei),qo=e=>Qo(e,ri),Wo=e=>Qo(e,Jo),Bo=e=>Qo(e,Xo),Ho=e=>Qo(e,Yo),Go=e=>Qo(e,oi,!0),Zo=e=>Qo(e,ni,!0),Ko=(e,t,r)=>{const n=fo.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Qo=(e,t,r=!1)=>{const n=po.exec(e);return!!n&&(n[1]?t(n[1]):r)},Jo=e=>"position"===e||"percentage"===e,Yo=e=>"image"===e||"url"===e,Xo=e=>"length"===e||"size"===e||"bg-size"===e,ei=e=>"length"===e,ti=e=>"number"===e,ri=e=>"family-name"===e,ni=e=>"number"===e||"weight"===e,oi=e=>"shadow"===e,ii=(Symbol.toStringTag,()=>{const e=uo("color"),t=uo("font"),r=uo("text"),n=uo("font-weight"),o=uo("tracking"),i=uo("leading"),a=uo("breakpoint"),s=uo("container"),l=uo("spacing"),c=uo("radius"),u=uo("shadow"),d=uo("inset-shadow"),f=uo("text-shadow"),p=uo("drop-shadow"),v=uo("blur"),h=uo("perspective"),m=uo("aspect"),y=uo("ease"),g=uo("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",zo,To],x=()=>[zo,To,l],w=()=>[xo,"full","auto",...x()],j=()=>[jo,"none","subgrid",zo,To],_=()=>["auto",{span:["full",jo,zo,To]},jo,zo,To],k=()=>[jo,"auto",zo,To],S=()=>["auto","min","max","fr",zo,To],O=()=>["auto",...x()],N=()=>[xo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],P=()=>[s,xo,"screen","full","dvw","lvw","svw","min","max","fit",...x()],C=()=>[xo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],E=()=>[e,zo,To],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Wo,Lo,{position:[zo,To]}],A=()=>["auto","cover","contain",Bo,Ao,{size:[zo,To]}],T=()=>[_o,Uo,Do],D=()=>["","none","full",c,zo,To],F=()=>["",wo,Uo,Do],I=()=>[wo,_o,Wo,Lo],M=()=>["","none",v,zo,To],L=()=>["none",wo,zo,To],V=()=>["none",wo,zo,To],$=()=>[wo,zo,To],z=()=>[xo,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ko],breakpoint:[ko],color:[So],container:[ko],"drop-shadow":[ko],ease:["in","out","in-out"],font:[Eo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ko],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ko],shadow:[ko],spacing:["px",wo],text:[ko],"text-shadow":[ko],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xo,To,zo,m]}],container:["container"],"container-type":[{"@container":["","normal","size",zo,To]}],"container-named":[Ro],columns:[{columns:[wo,"auto",To,zo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[jo,"auto",zo,To]}],basis:[{basis:[xo,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[wo,xo,"auto","initial","none",To]}],grow:[{grow:["",wo,zo,To]}],shrink:[{shrink:["",wo,zo,To]}],order:[{order:[jo,"first","last","none",zo,To]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh","none",...N()]}],"font-size":[{text:["base",r,Uo,Do]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Zo,Io]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_o,To]}],"font-family":[{font:[qo,Mo,t]}],"font-features":[{"font-features":[To]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,zo,To]}],"line-clamp":[{"line-clamp":[wo,"none",zo,Fo]}],leading:[{leading:["none",i,...x()]}],"list-image":[{"list-image":["none",zo,To]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",zo,To]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[wo,"from-font","auto",zo,Do]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[wo,"auto",zo,To]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[jo,zo,To]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",zo,To]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",zo,To]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jo,zo,To],radial:["",zo,To],conic:["",jo,zo,To]},Ho,Vo]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[wo,zo,To]}],"outline-w":[{outline:["",wo,Uo,Do]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","inner","none",u,Go,$o]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,Go,$o]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[wo,Do]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",f,Go,$o]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[wo,zo,To]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[wo]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[zo,To]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[wo]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",zo,To]}],filter:[{filter:["","none",zo,To]}],blur:[{blur:M()}],brightness:[{brightness:[wo,zo,To]}],contrast:[{contrast:[wo,zo,To]}],"drop-shadow":[{"drop-shadow":["","none",p,Go,$o]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",wo,zo,To]}],"hue-rotate":[{"hue-rotate":[wo,zo,To]}],invert:[{invert:["",wo,zo,To]}],saturate:[{saturate:[wo,zo,To]}],sepia:[{sepia:["",wo,zo,To]}],"backdrop-filter":[{"backdrop-filter":["","none",zo,To]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[wo,zo,To]}],"backdrop-contrast":[{"backdrop-contrast":[wo,zo,To]}],"backdrop-grayscale":[{"backdrop-grayscale":["",wo,zo,To]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wo,zo,To]}],"backdrop-invert":[{"backdrop-invert":["",wo,zo,To]}],"backdrop-opacity":[{"backdrop-opacity":[wo,zo,To]}],"backdrop-saturate":[{"backdrop-saturate":[wo,zo,To]}],"backdrop-sepia":[{"backdrop-sepia":["",wo,zo,To]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",zo,To]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[wo,"initial",zo,To]}],ease:[{ease:["linear","initial",y,zo,To]}],delay:[{delay:[wo,zo,To]}],animate:[{animate:["none",g,zo,To]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,zo,To]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[zo,To,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[jo,zo,To]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",zo,To]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",zo,To]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[wo,Uo,Do,Fo]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ai=(e,t,r)=>{void 0!==r&&(e[t]=r)},si=(e,t)=>{if(t)for(const r in t)ai(e,r,t[r])},li=(e,t)=>{if(t)for(const r in t)ci(e,t,r)},ci=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(Object(r),!0).forEach(function(t){pi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vi=((e,...t)=>"function"==typeof e?lo(ii,e,...t):lo(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(ai(e,"cacheSize",t),ai(e,"prefix",r),ai(e,"experimentalParseClassName",n),si(e.theme,i.theme),si(e.classGroups,i.classGroups),si(e.conflictingClassGroups,i.conflictingClassGroups),si(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ai(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),ai(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),li(e.theme,o.theme),li(e.classGroups,o.classGroups),li(e.conflictingClassGroups,o.conflictingClassGroups),li(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ci(e,o,"postfixLookupClassGroups"),ci(e,o,"orderSensitiveModifiers"),e))(ii(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?fi(fi({},r),{},{baseClassName:n.slice(3)}):r}});function hi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vi(Ln(t))}const mi=wp.i18n;const yi=function(e){var t=e.lines,r=void 0===t?1:t,n=e.rows,i=void 0===n?1:n,a=e.height,s=void 0===a?"vt-h-4":a,l=e.width,c=void 0===l?"vt-w-[100px]":l,u=e.className,d=e.animate,f=void 0===d||d;return(0,o().jsx)("div",{className:hi("vt-flex vt-flex-col vt-gap-2",u),children:Array.from({length:i}).map(function(e,t){return(0,o().jsx)("div",{className:hi("vt-flex vt-gap-2",c),children:Array.from({length:r}).map(function(e,t){return(0,o().jsx)("div",{className:hi("vt-bg-muted vt-rounded",s,f&&"vt-animate-pulse",t===r-1&&r>1?"vt-w-3/4":"vt-w-full")},t)})},t)})})};var gi={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const bi=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,i=e.size,a=void 0===i?"sm":i,s=e.className;if(!t)return(0,o().jsx)(o().Fragment,{children:n});var l=(0,mi.__)("Loading","versatile-toolkit"),c=r||"".concat(l,"...");return(0,o().jsxs)("div",{className:hi("vt-flex vt-items-center vt-gap-2",s),children:[(0,o().jsx)("div",{className:hi(gi[a],"vt-animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,o().jsx)("span",{children:c})]})};var xi={xs:"vt-w-3 vt-h-3 vt-text-xs",sm:"w-4 h-4 text-sm",md:"vt-w-5 vt-h-5 vt-text-base",lg:"vt-w-6 vt-h-6 vt-text-lg",xl:"vt-w-8 vt-h-8 vt-text-xl"},wi={default:"text-foreground",primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"};const ji=function(e){var t=e.size,r=void 0===t?"sm":t,n=e.variant,i=void 0===n?"muted":n,a=e.className,s=e.text,l=e.showText,c=void 0===l||l,u=s||(0,mi.__)("Loading","versatile-toolkit");return(0,o().jsxs)("div",{className:hi("flex items-center gap-2 py-2",wi[i],a),children:[(0,o().jsx)("div",{className:hi(xi[r],"animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),c&&(0,o().jsxs)("span",{className:xi[r].split(" ")[2],children:[u,"..."]})]})};const _i=function(e){var t=e.className,r=e.animate,n=void 0===r||r;return(0,o().jsxs)("div",{className:hi("space-y-6",t),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center vt-pb-5",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-6",height:"h-6",animate:n}),(0,o().jsx)(yi,{width:"w-48",height:"h-8",animate:n})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-24",height:"h-10",animate:n})]})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-5",animate:n}),(0,o().jsx)("div",{className:"vt-grid vt-grid-cols-6 vt-gap-4",children:Array.from({length:6}).map(function(e,t){return(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)("div",{className:hi("vt-aspect-[4/3] vt-bg-muted vt-rounded-lg vt-border-2",n&&"vt-animate-pulse")}),(0,o().jsx)(yi,{width:"w-16",height:"h-4",animate:n}),(0,o().jsx)(yi,{rows:2,lines:1,width:"w-full",height:"h-3",animate:n}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-6",animate:n}),(0,o().jsx)(yi,{width:"w-14",height:"h-6",animate:n})]})]},t)})}),(0,o().jsx)(yi,{width:"w-80",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10",children:[(0,o().jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-40",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-12",height:"h-6",animate:n})]}),(0,o().jsx)(yi,{width:"w-64",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-72",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-16",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-48",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-20",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-24",animate:n}),(0,o().jsx)(yi,{width:"w-64",height:"h-4",animate:n})]})]}),(0,o().jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-5",animate:n}),(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)(yi,{width:"w-48",height:"h-10",animate:n}),(0,o().jsx)("div",{className:hi("vt-w-40 vt-h-32 vt-bg-muted vt-rounded-lg",n&&"animate-pulse")}),(0,o().jsx)(yi,{width:"w-24",height:"h-4",animate:n}),(0,o().jsx)(yi,{width:"w-80",height:"h-4",animate:n})]}),(0,o().jsx)(yi,{width:"w-72",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-5",animate:n}),(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-16",height:"h-4",animate:n})]}),(0,o().jsx)(yi,{width:"w-68",height:"h-4",animate:n})]})]})]})]})};const ki=function(){return(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-justify-center vt-h-full vt-bg-gray-50 vt-rounded-lg vt-border vt-border-gray-200 vt-p-6",children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-2xl vt-shadow-lg vt-p-6 vt-w-72 vt-text-center",children:[(0,o().jsx)("div",{className:"vt-w-16 vt-h-16 vt-bg-gray-200 vt-rounded-full vt-mx-auto vt-mb-4 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-5 vt-bg-gray-300 vt-rounded vt-w-32 vt-mx-auto vt-mb-2 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-gray-200 vt-rounded vt-w-40 vt-mx-auto vt-mb-1 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-gray-100 vt-rounded vt-w-36 vt-mx-auto vt-animate-pulse"})]})})};var Si=Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function Oi(e){var t=e.columns,r=void 0===t?Si:t,n=e.rows,i=void 0===n?10:n,a=e.className,s=void 0===a?"":a,l=e.animate,c=void 0===l||l,u=function(e){switch(e){case"id":return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-6"});case"type":return(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-full vt-w-16"});case"message":return(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-full"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-3/4"})]});case"timestamp":return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-32"});case"actions":return(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-lg vt-w-[80%]"});default:return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-24"})}};return(0,o().jsx)(o().Fragment,{children:Array.from({length:i}).map(function(e,t){return(0,o().jsx)("tr",{className:"vt-border-t vt-border-slate-100 ".concat(c?"vt-animate-pulse":""," ").concat(s),children:r.map(function(e,r){return(0,o().jsx)("td",{className:"vt-px-4 vt-py-3",children:u(e.label||e.key)},"skeleton-".concat(t,"-").concat(r))})},"skeleton-".concat(t))})})}function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}var Pi=["className"],Ci=["className"],Ei=["className"],Ri=["className"],Ai=["className"],Ti=["className"];function Di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(r),!0).forEach(function(t){Ii(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Di(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ii(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ni(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ni(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Li=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Pi);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Li.displayName="Card";var Vi=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ci);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});Vi.displayName="CardHeader";var $i=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ei);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});$i.displayName="CardTitle",a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ri);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var zi=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ai);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-p-4",r)},n))});function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ui(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}zi.displayName="CardContent",a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ti);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Bi=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(r),!0).forEach(function(t){Wi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Hi=Bi,Gi=a().createContext(!1);Gi.Provider;function Zi(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Ki=a().createContext(Zi());function Qi(e,t,r){const n=a().useContext(Gi),o=a().useContext(Ki),i=Fn(r),s=i.defaultQueryOptions(e),l=i.getQueryCache().get(s.queryHash);const c=!1!==e.subscribed;s._optimisticResults=n?"isRestoring":c?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,r)=>{const n="error"===r?.state.status&&"function"==typeof e.throwOnError?cn(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||n)&&(t.isReset()||(e.retryOnMount=!1))})(s,o,l),(e=>{a().useEffect(()=>{e.clearReset()},[e])})(o);const[u]=a().useState(()=>new t(i,s)),d=u.getOptimisticResult(s);a().useEffect(()=>{u.setOptions(s)},[s,u]);const f=!n&&c;if(a().useSyncExternalStore(a().useCallback(e=>{const t=f?u.subscribe(vn.batchCalls(e)):Ur;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),((e,t)=>e?.suspense&&t.isPending)(s,d))throw((e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}))(s,u,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||cn(r,[e.error,n])))({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw d.error;return s.notifyOnChangeProps?d:u.trackResult(d)}var Ji=class extends dn{#s;#_=void 0;#k=void 0;#S=void 0;#O;#N;#P;#C;#E;#R;#A;#T;#D;#F=new Set;constructor(e,t){super(),this.options=t,this.#s=e,this.#P=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#_.addObserver(this),Yi(this.#_,this.options)?this.#I():this.updateResult(),this.#M())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xi(this.#_,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xi(this.#_,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#V(),this.#_.removeObserver(this)}setOptions(e){const t=this.options,r=this.#_;if(this.options=this.#s.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Br(this.options.enabled,this.#_))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#$(),this.#_.setOptions(this.options),t._defaulted&&!Xr(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#_,observer:this});const n=this.hasListeners();n&&ea(this.#_,r,this.options,t)&&this.#I(),this.updateResult(),!n||this.#_===r&&Br(this.options.enabled,this.#_)===Br(t.enabled,this.#_)&&Br(this.options.staleTime,this.#_)===Br(t.staleTime,this.#_)||this.#z();const o=this.#U();!n||this.#_===r&&Br(this.options.enabled,this.#_)===Br(t.enabled,this.#_)&&o===this.#D||this.#q(o)}getOptimisticResult(e){const t=this.#s.getQueryCache().build(this.#s,e),r=this.createResult(t,e);return Xr(this.getCurrentResult(),r)||(this.#S=r,this.#N=this.options,this.#O=this.#_.state),r}getCurrentResult(){return this.#S}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#_}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#s.defaultQueryOptions(e),r=this.#s.getQueryCache().build(this.#s,t);let n,o=()=>{};const i=new Promise(e=>{n=e,o=this.#s.getQueryCache().subscribe(n=>{"updated"===n.type&&n.query.queryHash===r.queryHash&&void 0!==r.state.data&&(o(),e(this.createResult(r,t)))})});return Promise.race([r.fetch(t).then(()=>{const e=this.createResult(r,t);return n?.(e),e}).finally(()=>{o()}),i])}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#S))}#I(e){this.#$();let t=this.#_.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ur)),t}#W(e){return!yn()&&!1!==Br(this.options.enabled,this.#_)&&qr(e)}#z(){this.#L();const e=Br(this.options.staleTime,this.#_);if(this.#S.isStale||!this.#W(e))return;const t=Wr(this.#S.dataUpdatedAt,e)+1;this.#A=$r.setTimeout(()=>{this.#S.isStale||this.updateResult()},t)}#U(){return Br(this.options.refetchInterval,this.#_)??!1}#q(e){this.#V(),this.#D=e,0!==this.#D&&this.#W(this.#D)&&(this.#T=$r.setInterval(()=>{(this.options.refetchIntervalInBackground||fn.isFocused())&&this.#I()},this.#D))}#M(){this.#z(),this.#q(this.#U())}#L(){void 0!==this.#A&&($r.clearTimeout(this.#A),this.#A=void 0)}#V(){void 0!==this.#T&&($r.clearInterval(this.#T),this.#T=void 0)}createResult(e,t){const r=this.#_,n=this.options,o=this.#S,i=this.#O,a=this.#N,s=e!==r?e.state:this.#k,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&Yi(e,t),a=o&&ea(e,r,t,n);(i||a)&&(u={...u,...En(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:v}=u;c=u.data;let h=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===v){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,h=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#R?.state.data,this.#R):t.placeholderData,void 0!==e&&(v="success",c=nn(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!h)if(o&&c===i?.data&&t.select===this.#C)c=this.#E;else try{this.#C=t.select,c=t.select(c),c=nn(o?.data,c,t),this.#E=c,this.#P=null}catch(e){this.#P=e}else void 0===c&&(this.#P=null);this.#P&&(f=this.#P,c=this.#E,p=o?.error===f?o.errorUpdatedAt:Date.now(),v="error",d=!1);const m="fetching"===u.fetchStatus,y="pending"===v,g="error"===v,b=y&&m,x=void 0!==c;return{status:v,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===v,isError:g,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:g&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:g&&x,isStale:ta(e,t),refetch:this.refetch,isEnabled:!1!==Br(t.enabled,e)}}updateResult(){const e=this.#S,t=this.createResult(this.#_,this.options);if(this.#O=this.#_.state,this.#N=this.options,void 0!==this.#O.data&&(this.#R=this.#_),Xr(t,e))return;this.#S=t;const r=(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#F.size)return!0;if(this.options.throwOnError&&this.#S.error!==e.error)return!0;for(const t of r??this.#F)if(this.#S[t]!==e[t])return!0;return!1})();vn.batch(()=>{r&&this.listeners.forEach(e=>{e(this.#S)}),this.#s.getQueryCache().notify({query:this.#_,type:"observerResultsUpdated"})})}#$(){const e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#_)return;const t=this.#_;this.#_=e,this.#k=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#M()}};function Yi(e,t){return function(e,t){return!1!==Br(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===Br(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Xi(e,t,t.refetchOnMount)}function Xi(e,t,r){if(!1!==Br(t.enabled,e)&&"static"!==Br(t.staleTime,e)){const n=Br(r,e);return"always"===n||!1!==n&&ta(e,t)}return!1}function ea(e,t,r,n){return(e!==t||!1===Br(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&ta(e,r)}function ta(e,t){return!1!==Br(t.enabled,e)&&e.isStaleByTime(Br(t.staleTime,e))}function ra(e,t){return Qi(e,Ji,t)}var na=class extends dn{#s;#S=void 0;#B;#H;constructor(e,t){super(),this.#s=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#s.defaultMutationOptions(e),Xr(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#B,observer:this}),t?.mutationKey&&this.options.mutationKey&&Kr(t.mutationKey)!==Kr(this.options.mutationKey)?this.reset():"pending"===this.#B?.state.status&&this.#B.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#B&&(this.#B.addObserver(this),this.#G())}onUnsubscribe(){this.hasListeners()||this.#B?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#Z(e)}getCurrentResult(){return this.#S}reset(){this.#B?.removeObserver(this),this.#B=void 0,this.#G(),this.#Z()}mutate(e,t){return this.#H=t,this.#B?.removeObserver(this),this.#B=this.#s.getMutationCache().build(this.#s,this.options),this.#B.addObserver(this),this.#B.execute(e)}#G(){const e=this.#B?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#S={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Z(e){vn.batch(()=>{const t=this.#H;if(t&&this.hasListeners()){const r=this.#S.variables,n=this.#S.context,o={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{t.onSuccess?.(e.data,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,r,n,o)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{t.onError?.(e.error,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,r,n,o)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#S)})})}};function oa(e,t){const r=Fn(t),[n]=a().useState(()=>new na(r,e));a().useEffect(()=>{n.setOptions(e)},[n,e]);const o=a().useSyncExternalStore(a().useCallback(e=>n.subscribe(vn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=a().useCallback((...e)=>{n.mutate(e[0],e[1]).catch(Ur)},[n]);if(o.error&&cn(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function ia(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return aa(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(aa(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,aa(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,aa(d,"constructor",c),aa(c,"constructor",l),l.displayName="GeneratorFunction",aa(c,o,"GeneratorFunction"),aa(d),aa(d,o,"Generator"),aa(d,n,function(){return this}),aa(d,"toString",function(){return"[object Generator]"}),(ia=function(){return{w:i,m:f}})()}function aa(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}aa=function(e,t,r,n){function i(t,r){aa(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},aa(e,t,r,n)}function sa(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function la(e){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la(e)}var ca=function(e){return e instanceof File||e instanceof Blob},ua=function(e){return"string"==typeof e},da=function(e){return"boolean"==typeof e},fa=function(e){return"number"==typeof e},pa=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){ca(e)||ua(e)?t.append("".concat(r,"[").concat(n,"]"),e):da(e)||fa(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===la(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):ca(i)||ua(i)?t.append(r,i):da(i)?t.append(r,i.toString()):fa(i)?t.append(r,"".concat(i)):"object"===la(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t},va=function(e){return new Promise(function(t,r){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(function(){return t()}).catch(function(e){return r(e)});else{var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select();try{document.execCommand("copy"),t()}catch(e){r(e)}finally{document.body.removeChild(n)}}})},ha=function(){var e,t=(e=ia().m(function e(t){return ia().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,va(t);case 1:Lr.success((0,mi.__)("URL copied to clipboard!","versatile-toolkit")),e.n=3;break;case 2:e.p=2,e.v,Lr.error((0,mi.__)("Failed to copy URL","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sa(i,n,o,a,s,"next",e)}function s(e){sa(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function ma(e){return ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ma(e)}function ya(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ga(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ga(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ga(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ga(d,"constructor",c),ga(c,"constructor",l),l.displayName="GeneratorFunction",ga(c,o,"GeneratorFunction"),ga(d),ga(d,o,"Generator"),ga(d,n,function(){return this}),ga(d,"toString",function(){return"[object Generator]"}),(ya=function(){return{w:i,m:f}})()}function ga(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ga=function(e,t,r,n){function i(t,r){ga(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ga(e,t,r,n)}function ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(r),!0).forEach(function(t){wa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ma(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ma(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ma(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ja(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function _a(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ja(i,n,o,a,s,"next",e)}function s(e){ja(i,n,o,a,s,"throw",e)}a(void 0)})}}function ka(e,t){return Sa.apply(this,arguments)}function Sa(){return Sa=_a(ya().m(function e(t,r){var n,o,i,a,s,l,c,u,d,f,p,v,h;return ya().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Hi.wp_rest_nonce,i=Hi.nonce_key,a=Hi.nonce_value,s="".concat(t),l=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",c=xa({"X-WP-Nonce":o},r.headers||{}),u={method:l,headers:c},["GET","DELETE"].includes(l)?((d=new URLSearchParams(null==r?void 0:r.body)).append(i,a),s+="?".concat(d.toString())):r.body&&((f=pa(r.body)).append(i,a),u.body=f),e.p=1,e.n=2,fetch(s,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(v=e.v).status_code){e.n=4;break}return e.a(2,v);case 4:throw new Error(v.message);case 5:e.n=7;break;case 6:throw e.p=6,h=e.v,new Error((null==h?void 0:h.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Sa.apply(this,arguments)}function Oa(e,t){return Na.apply(this,arguments)}function Na(){return Na=_a(ya().m(function e(t,r){var n,o,i,a,s,l,c,u,d;return ya().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=Hi.wp_rest_nonce,o=Hi.nonce_key,i=Hi.nonce_value,a="".concat(t),s={method:r.method||"POST",headers:xa({"X-WP-Nonce":n},r.headers||{}),body:r.body},r.body&&((l=pa(r.body)).append(o,i),s.body=l),e.p=1,e.n=2,fetch(a,s);case 2:return c=e.v,e.n=3,c.json();case 3:if(200!==(u=e.v).status_code){e.n=4;break}return e.a(2,u);case 4:throw new Error(u.message);case 5:e.n=7;break;case 6:throw e.p=6,d=e.v,new Error((null==d?void 0:d.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Na.apply(this,arguments)}function Pa(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Ca(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Ca(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ca(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ca(d,"constructor",c),Ca(c,"constructor",l),l.displayName="GeneratorFunction",Ca(c,o,"GeneratorFunction"),Ca(d),Ca(d,o,"Generator"),Ca(d,n,function(){return this}),Ca(d,"toString",function(){return"[object Generator]"}),(Pa=function(){return{w:i,m:f}})()}function Ca(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ca=function(e,t,r,n){function i(t,r){Ca(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Ca(e,t,r,n)}function Ea(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ra(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ea(i,n,o,a,s,"next",e)}function s(e){Ea(i,n,o,a,s,"throw",e)}a(void 0)})}}var Aa=function(){return ra({queryKey:["getMoodInfo"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_mood_info",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Ta=function(){return ra({queryKey:["getEnableServiceList"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_enable_service_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};function Da(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fa(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ia=function(){var e=Ta(),t=e.data,r=e.isLoading,n=null==t?void 0:t.data;return(0,o().jsx)(o().Fragment,{children:(0,o().jsx)("div",{className:"vt-mt-10 vt-grid vt-grid-cols-[repeat(auto-fill,minmax(300px,1fr))] vt-gap-3",children:r?(0,o().jsx)(yi,{lines:3,height:"vt-h-[100px]",width:"vt-w-[900px]"}):n&&Object.entries(n).filter(function(e){var t=Da(e,2),r=t[0];return t[1].enable&&"quickact"!==r}).map(function(e){var t=Da(e,2),r=t[0],n=t[1];return(0,o().jsx)(Li,{className:"hover:vt-bg-gray-100 vt-rounded-sm",children:(0,o().jsxs)(Tt,{to:"/".concat(n.path),className:"vt-block vt-p-3",children:[(0,o().jsx)(Vi,{className:"vt-p-0",children:(0,o().jsx)($i,{className:"vt-text-xl",children:n.label})}),(0,o().jsx)(zi,{className:"vt-p-0 vt-pt-2",children:(0,o().jsx)("p",{children:n.description})})]})},r)})})})};var Ma=Object.defineProperty,La=(e,t)=>Ma(e,"name",{value:t,configurable:!0});function Va(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function $a(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Va(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Va(e[t],null)}}}}function za(...e){return a().useCallback($a(...e),e)}La(Va,"setRef"),La($a,"composeRefs"),La(za,"useComposedRefs");var Ua=Object.defineProperty,qa=(e,t)=>Ua(e,"name",{value:t,configurable:!0});function Wa(e){const t=a().forwardRef((t,r)=>{let{children:n,...o}=t,i=null,s=!1;const l=[];n=ts(n),a().Children.forEach(n,e=>{if(Ja(e)){s=!0;const t=e;let r="child"in t.props?t.props.child:t.props.children;for(;Xa(r)&&"function"==typeof is;)r=is(r._payload);i=Za(t,r),l.push(i?.props?.children)}else l.push(e)}),i?i=a().cloneElement(i,void 0,l):!s&&1===a().Children.count(n)&&a().isValidElement(n)&&(i=n);const c=i?Qa(i):void 0,u=za(r,c);if(!i){if(n||0===n)throw new Error(s?os(e):ns(e));return n}const d=Ka(o,i.props??{});return i.type!==a().Fragment&&(d.ref=r?u:c),a().cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}qa(Wa,"createSlot");var Ba=Wa("Slot"),Ha=Symbol.for("radix.slottable");function Ga(e){const t=qa(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Ha,t}qa(Ga,"createSlottable");var Za=qa((e,t)=>"child"in e.props?a().isValidElement(t)?a().cloneElement(t,void 0,e.props.children(t.props.children)):null:a().isValidElement(t)?t:null,"getSlottableElementFromSlottable");function Ka(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n?r[n]=[o,i].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=rs(i,o))}return{...e,...r}}function Qa(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ja(e){return a().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ha}qa(Ka,"mergeProps"),qa(Qa,"getElementRef"),qa(Ja,"isSlottable");var Ya=Symbol.for("react.lazy");function Xa(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Ya&&"_payload"in e&&es(e._payload)}function es(e){return"object"==typeof e&&null!==e&&"then"in e}function ts(e){let t=e;for(;Xa(t)&&"function"==typeof is;)t=is(t._payload);return t}function rs(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}qa(Xa,"isLazyComponent"),qa(es,"isPromiseLike"),qa(ts,"useUnwrappedLazy"),qa(rs,"concatAriaDescribedby");var ns=qa(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),os=qa(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),is=l()[" use ".trim().toString()];const as=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,ss=Ln,ls=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return ss(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=as(t)||as(n);return o[e][a]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):{...i,...s}[t]===r})?[...e,r,n]:e},[]);return ss(e,a,l,null==r?void 0:r.class,null==r?void 0:r.className)};function cs(e){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(e)}var us=["className","variant","size","asChild"];function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ps=ls("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),vs=a().forwardRef(function(e,t){var r=e.className,n=e.variant,i=e.size,a=e.asChild,s=void 0!==a&&a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,us),c=s?Ba:"button";return(0,o().jsx)(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(t){fs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi(ps({variant:n,size:i,className:r})),ref:t},l))});function hs(e){return hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hs(e)}vs.displayName="Button";var ms=["className","variant"];function ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=hs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bs=ls("vt-inline-flex vt-items-center vt-rounded-full vt-px-2.5 vt-py-0.5 vt-text-xs vt-font-semibold vt-transition-colors focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground hover:vt-bg-primary/80",success:"vt-bg-green-100 vt-text-green-800 hover:vt-bg-green-200/80",destructive:"vt-bg-destructive vt-text-destructive-foreground hover:vt-bg-destructive/80",outline:"vt-text-foreground vt-border vt-border-input vt-bg-background hover:vt-bg-accent hover:vt-text-accent-foreground"}},defaultVariants:{variant:"default"}});function xs(e){var t=e.className,r=e.variant,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ms);return(0,o().jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(r),!0).forEach(function(t){gs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi(bs({variant:r}),t)},n))}var ws=.999,js=/[\\\/_+.#"@\[\(\{&]/,_s=/[\\\/_+.#"@\[\(\{&]/g,ks=/[\s-]/,Ss=/[\s-]/g;function Os(e,t,r,n,o,i,a){if(i===t.length)return o===e.length?1:.99;var s=`${o},${i}`;if(void 0!==a[s])return a[s];for(var l,c,u,d,f=n.charAt(i),p=r.indexOf(f,o),v=0;p>=0;)(l=Os(e,t,r,n,p+1,i+1,a))>v&&(p===o?l*=1:js.test(e.charAt(p-1))?(l*=.8,(u=e.slice(o,p-1).match(_s))&&o>0&&(l*=Math.pow(ws,u.length))):ks.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(Ss))&&o>0&&(l*=Math.pow(ws,d.length))):(l*=.17,o>0&&(l*=Math.pow(ws,p-o))),e.charAt(p)!==t.charAt(i)&&(l*=.9999)),(l<.1&&r.charAt(p-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(p-1)!==n.charAt(i))&&(.1*(c=Os(e,t,r,n,p+1,i+2,a))>l&&(l=.1*c)),l>v&&(v=l),p=r.indexOf(f,p+1);return a[s]=v,v}function Ns(e){return e.toLowerCase().replace(Ss," ")}function Ps(e,t,r){return Os(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,Ns(e),Ns(t),0,0,{})}var Cs=Object.defineProperty,Es=(e,t)=>Cs(e,"name",{value:t,configurable:!0}),Rs=!("undefined"==typeof window||!window.document||!window.document.createElement);function As(e,t,{checkForDefaultPrevented:r=!0}={}){return Es(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function Ts(e){if(!Rs)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function Ds(e){return"IFRAME"===e.tagName}Es(As,"composeEventHandlers"),Es(function(e){if(!Rs)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Es(Ts,"getOwnerDocument"),Es(function e(t,r=!1){const{activeElement:n}=Ts(t);if(!n?.nodeName)return null;if(Ds(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){const e=n.getAttribute("aria-activedescendant");if(e){const t=Ts(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),Es(Ds,"isFrame");var Fs=Object.defineProperty,Is=(e,t)=>Fs(e,"name",{value:t,configurable:!0});function Ms(e,t=[]){let r=[];function n(t,n){const i=a().createContext(n);i.displayName=t+"Context";const s=r.length;r=[...r,n];const l=Is(t=>{const{scope:r,children:n,...l}=t,c=r?.[e]?.[s]||i,u=a().useMemo(()=>l,Object.values(l));return(0,o().jsx)(c.Provider,{value:u,children:n})},"Provider");function c(r,o,l={}){const{optional:c=!1}=l,u=o?.[e]?.[s]||i,d=a().useContext(u);if(d)return d;if(void 0!==n)return n;if(!c)throw new Error(`\`${r}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",Is(c,"useContext"),[l,c]}Is(n,"createContext");const i=Is(()=>{const t=r.map(e=>a().createContext(e));return Is(function(r){const n=r?.[e]||t;return a().useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return i.scopeName=e,[n,Ls(i,...t)]}function Ls(...e){const t=e[0];if(1===e.length)return t;const r=Is(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Is(function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return a().useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}Is(function(e,t){const r=a().createContext(t);r.displayName=e+"Context";const n=Is(e=>{const{children:t,...n}=e,i=a().useMemo(()=>n,Object.values(n));return(0,o().jsx)(r.Provider,{value:i,children:t})},"Provider");function i(n,o={}){const{optional:i=!1}=o,s=a().useContext(r);if(s)return s;if(void 0!==t)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",Is(i,"useContext"),[n,i]},"createContext"),Is(Ms,"createContextScope"),Is(Ls,"composeContextScopes");var Vs=globalThis?.document?a().useLayoutEffect:()=>{},$s=Object.defineProperty,zs=l()[" useId ".trim().toString()]||(()=>{}),Us=0;function qs(e){const[t,r]=a().useState(zs());return Vs(()=>{e||r(e=>e??String(Us++))},[e]),e||(t?`radix-${t}`:"")}$s(qs,"name",{value:"useId",configurable:!0});var Ws=Object.defineProperty,Bs=l()[" useEffectEvent ".trim().toString()],Hs=l()[" useInsertionEffect ".trim().toString()];function Gs(e){if("function"==typeof Bs)return Bs(e);const t=a().useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof Hs?Hs(()=>{t.current=e}):Vs(()=>{t.current=e}),a().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{Ws(e,"name",{value:t,configurable:!0})})(Gs,"useEffectEvent");var Zs=Object.defineProperty,Ks=(e,t)=>Zs(e,"name",{value:t,configurable:!0}),Qs=l()[" useInsertionEffect ".trim().toString()]||Vs;function Js({prop:e,defaultProp:t,onChange:r=Ks(()=>{},"onChange"),caller:n}){const[o,i,s]=Ys({defaultProp:t,onChange:r}),l=void 0!==e;return[l?e:o,a().useCallback(t=>{if(l){const r=Xs(t)?t(e):t;r!==e&&s.current?.(r)}else i(t)},[l,e,i,s])]}function Ys({defaultProp:e,onChange:t}){const[r,n]=a().useState(e),o=a().useRef(r),i=a().useRef(t);return Qs(()=>{i.current=t},[t]),a().useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function Xs(e){return"function"==typeof e}Ks(Js,"useControllableState"),Ks(Ys,"useUncontrolledState"),Ks(Xs,"isFunction");var el=Symbol("RADIX:SYNC_STATE");Ks(function(e,t,r,n){const{prop:o,defaultProp:i,onChange:s,caller:l}=t,c=void 0!==o,u=Gs(s),d=[{...r,state:i}];n&&d.push(n);const[f,p]=a().useReducer((t,r)=>{if(r.type===el)return{...t,state:r.state};const n=e(t,r);return c&&!Object.is(n.state,t.state)&&u(n.state),n},...d),v=f.state,h=a().useRef(v);a().useEffect(()=>{h.current!==v&&(h.current=v,c||u(v))},[v,h,c]);const m=a().useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return a().useEffect(()=>{c&&!Object.is(o,f.state)&&p({type:el,state:o})},[o,f.state,c]),[m,p]},"useControllableStateReducer");var tl=Object.defineProperty,rl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Wa(`Primitive.${t}`),n=a().forwardRef((e,n)=>{const{asChild:i,...a}=e,s=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o().jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function nl(e,t){e&&s().flushSync(()=>e.dispatchEvent(t))}((e,t)=>{tl(e,"name",{value:t,configurable:!0})})(nl,"dispatchDiscreteCustomEvent");var ol=Object.defineProperty,il=l()[" useInsertionEffect ".trim().toString()];function al(e){const t=a().useRef(e);return"function"==typeof il?il(()=>{t.current=e}):Vs(()=>{t.current=e}),a().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{ol(e,"name",{value:t,configurable:!0})})(al,"useCallbackRef");var sl,ll=Object.defineProperty,cl=(e,t)=>ll(e,"name",{value:t,configurable:!0}),ul="dismissableLayer.update",dl=a().createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),fl=a().forwardRef(cl(function(e,t){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...d}=e,f=a().useContext(dl),[p,v]=a().useState(null),h=p?.ownerDocument??globalThis?.document,[,m]=a().useState({}),y=za(t,v),g=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?g.indexOf(b):-1,w=p?g.indexOf(p):-1,j=f.layersWithOutsidePointerEventsDisabled.size>0,_=w>=x,k=a().useRef(!1),S=hl(e=>{s?.(e),c?.(e),e.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:a().useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...f.branches].some(t=>t.contains(e));return _&&!t},[f.branches,_])}),O=ml(e=>{if(n&&k.current)return;const t=e.target;[...f.branches].some(e=>e.contains(t))||(l?.(e),c?.(e),e.defaultPrevented||u?.())},h),N=!!p&&w===g.length-1,P=al(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return a().useEffect(()=>{if(N)return h.addEventListener("keydown",P,{capture:!0}),()=>h.removeEventListener("keydown",P,{capture:!0})},[h,N,P]),a().useEffect(()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(sl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),yl(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=sl))}},[p,h,r,f]),a().useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),yl())},[p,f]),a().useEffect(()=>{const e=cl(()=>m({}),"handleUpdate");return document.addEventListener(ul,e),()=>document.removeEventListener(ul,e)},[]),(0,o().jsx)(rl.div,{...d,ref:y,style:{pointerEvents:j?_?"auto":"none":void 0,...e.style},onFocusCapture:As(e.onFocusCapture,O.onFocusCapture),onBlurCapture:As(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:As(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));function pl(){const e=a().useContext(dl),[t,r]=a().useState(null);return a().useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}cl(pl,"useDismissableLayerSurface");var vl=cl(()=>!0,"IS_TRUE");function hl(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=vl}=t,l=al(e),c=a().useRef(!1),u=a().useRef(!1),d=a().useRef(new Map),f=a().useRef(()=>{});return a().useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function a(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}cl(e,"resetOutsideInteraction"),cl(t,"isOutsideInteractionIntercepted"),cl(a,"handleInteractionCapture"),cl(p,"handleInteractionBubble");const v=cl(i=>{if(i.target&&!c.current){let a=function(){r.removeEventListener("click",f.current);const n=t();e(),n||gl("dismissableLayer.pointerDownOutside",l,p,{discrete:!0})};if(cl(a,"handleAndDispatchPointerDownOutsideEvent"),!s(i.target))return r.removeEventListener("click",f.current),e(),void(c.current=!1);const p={originalEvent:i};u.current=!0,o.current=n&&0===i.button,d.current.clear(),n&&0===i.button?(r.removeEventListener("click",f.current),f.current=a,r.addEventListener("click",f.current,{once:!0})):a()}else r.removeEventListener("click",f.current),e();c.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of h)r.addEventListener(e,a,!0),r.addEventListener(e,p);const m=window.setTimeout(()=>{r.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",v),r.removeEventListener("click",f.current);for(const e of h)r.removeEventListener(e,a,!0),r.removeEventListener(e,p)}},[r,l,n,o,i,s]),{onPointerDownCapture:cl(()=>c.current=!0,"onPointerDownCapture")}}function ml(e,t=globalThis?.document){const r=al(e),n=a().useRef(!1);return a().useEffect(()=>{const e=cl(e=>{if(e.target&&!n.current){gl("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:cl(()=>n.current=!0,"onFocusCapture"),onBlurCapture:cl(()=>n.current=!1,"onBlurCapture")}}function yl(){const e=new CustomEvent(ul);document.dispatchEvent(e)}function gl(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?nl(o,i):o.dispatchEvent(i)}cl(hl,"usePointerDownOutside"),cl(ml,"useFocusOutside"),cl(yl,"dispatchUpdate"),cl(gl,"handleAndDispatchCustomEvent");var bl=Object.defineProperty,xl=(e,t)=>bl(e,"name",{value:t,configurable:!0}),wl="focusScope.autoFocusOnMount",jl="focusScope.autoFocusOnUnmount",_l={bubbles:!1,cancelable:!0},kl=a().forwardRef(xl(function(e,t){const{loop:r=!1,trapped:n=!1,branches:i,onMountAutoFocus:s,onUnmountAutoFocus:l,...c}=e,[u,d]=a().useState(null),f=al(s),p=al(l),v=a().useRef(null),h=za(t,d),m=a().useRef(i);a().useEffect(()=>{m.current=i});const y=a().useCallback(e=>!!e&&(!!u?.contains(e)||Boolean(m.current?.some(t=>t.contains(e)))),[u]),g=a().useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a().useEffect(()=>{if(n){let e=function(e){if(g.paused||!u)return;const t=e.target;y(t)?v.current=t:Fl(v.current,{select:!0})},t=function(e){if(g.paused||!u)return;const t=e.relatedTarget;null!==t&&(y(t)||Fl(v.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Fl(u)};xl(e,"handleFocusIn"),xl(t,"handleFocusOut"),xl(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,u,g.paused,y]),a().useEffect(()=>{if(u){Il.add(g);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(wl,_l);u.addEventListener(wl,f),u.dispatchEvent(t),t.defaultPrevented||(Cl(Vl(Rl(u)),{select:!0}),document.activeElement===e&&Fl(u))}return()=>{u.removeEventListener(wl,f);const t=u.ownerDocument,r=CustomEvent;setTimeout(()=>{const n=new r(jl,_l);u.addEventListener(jl,p),u.dispatchEvent(n),n.defaultPrevented||Fl(e??t.body,{select:!0}),u.removeEventListener(jl,p),Il.remove(g)},0)}}},[u,f,p,g]);const b=a().useCallback(e=>{if(!r&&!n)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=El(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&Fl(i,{select:!0})):(e.preventDefault(),r&&Fl(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,g.paused]);return(0,o().jsx)(rl.div,{tabIndex:-1,...c,ref:h,onKeyDown:b})},"FocusScope")),Sl=a().createContext(null);function Ol({registry:e,children:t}){return e?(0,o().jsx)(Sl.Provider,{value:e,children:t}):t}function Nl(){const[e,t]=a().useState([]);return{nodes:e,registry:a().useMemo(()=>({add:xl(e=>t(t=>t.includes(e)?t:[...t,e]),"add"),remove:xl(e=>t(t=>t.filter(t=>t!==e)),"remove")}),[])}}function Pl(e){const t=a().useContext(Sl);a().useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}function Cl(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Fl(n,{select:t}),document.activeElement!==r)return}function El(e){const t=Rl(e);return[Al(t,e),Al(t.reverse(),e)]}function Rl(e){const t=[],r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xl(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function Al(e,t){const r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e){if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):Tl(n,{upTo:t})))return n}}function Tl(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Dl(e){return"INPUT"===e.tagName&&"function"==typeof e.select}function Fl(e,{select:t=!1}={}){if(e&&e.focus){const r=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==r&&Dl(e)&&t&&e.select()}}xl(Ol,"FocusScopeBranchProvider"),xl(Nl,"useFocusScopeBranchRegistry"),xl(Pl,"useFocusScopeBranch"),xl(Cl,"focusFirst"),xl(El,"getTabbableEdges"),xl(Rl,"getTabbableCandidates"),xl(Al,"findVisible"),xl(Tl,"isHidden"),xl(Dl,"isSelectableInput"),xl(Fl,"focus");var Il=Ml();function Ml(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ll(e,t),e.unshift(t)},remove(t){e=Ll(e,t),e[0]?.resume()}}}function Ll(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function Vl(e){return e.filter(e=>"A"!==e.tagName)}xl(Ml,"createFocusScopesStack"),xl(Ll,"arrayRemove"),xl(Vl,"removeLinks");var $l=Object.defineProperty,zl=(e,t)=>$l(e,"name",{value:t,configurable:!0}),Ul=a().forwardRef(zl(function(e,t){const{container:r,...n}=e,[i,l]=a().useState(!1);Vs(()=>l(!0),[]);const c=r||i&&globalThis?.document?.body;return c?s().createPortal((0,o().jsx)(rl.div,{...n,ref:t}),c):null},"Portal")),ql=Object.defineProperty,Wl=(e,t)=>ql(e,"name",{value:t,configurable:!0});function Bl(e,t){return a().useReducer((e,r)=>t[e][r]??e,e)}Wl(Bl,"useStateMachine");var Hl=Wl(e=>{const{present:t,children:r}=e,n=Gl(t),o="function"==typeof r?r({present:n.isPresent}):a().Children.only(r),i=Kl(n.ref,Jl(o));return"function"==typeof r||n.isPresent?a().cloneElement(o,{ref:i}):null},"Presence");function Gl(e){const[t,r]=a().useState(),n=a().useRef(null),o=a().useRef(e),i=a().useRef("none"),s=a().useRef(void 0),l=e?"mounted":"unmounted",[c,u]=Bl(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a().useEffect(()=>{"mounted"===c?(i.current=s.current??Ql(n.current),s.current=void 0):i.current="none"},[c]),Vs(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,a=Ql(t);if(e)s.current=a,u("MOUNT");else if("none"===a||"none"===t?.display)u("UNMOUNT");else{u(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),Vs(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,a=Wl(i=>{const a=Ql(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),s=Wl(e=>{e.target===t&&(i.current=Ql(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a().useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,s.current=Ql(t)}else n.current=null;r(e)},[])}}function Zl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Kl(...e){const t=a().useRef(e);return t.current=e,a().useCallback(e=>{const r=t.current;let n=!1;const o=r.map(t=>{const r=Zl(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():Zl(r[e],null)}}},[])}function Ql(e){return e?.animationName||"none"}function Jl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}Wl(Gl,"usePresence"),Wl(Zl,"setRef"),Wl(Kl,"useStableComposedRefs"),Wl(Ql,"getAnimationName"),Wl(Jl,"getElementRef");var Yl=Object.defineProperty,Xl=(e,t)=>Yl(e,"name",{value:t,configurable:!0}),ec=0,tc=null;function rc(){a().useEffect(()=>{tc||(tc={start:nc(),end:nc()});const{start:e,end:t}=tc;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ec++,()=>{1===ec&&(tc?.start.remove(),tc?.end.remove(),tc=null),ec=Math.max(0,ec-1)}},[])}function nc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Xl(function(e){return rc(),e.children},"FocusGuards"),Xl(rc,"useFocusGuards"),Xl(nc,"createFocusGuard");var oc=function(){return oc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oc.apply(this,arguments)};function ic(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function ac(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var sc="right-scroll-bar-position",lc="width-before-scroll-bar";function cc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var uc="undefined"!=typeof window?a().useLayoutEffect:a().useEffect,dc=new WeakMap;function fc(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return cc(e,t)})},o=(0,a().useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0],o.callback=n,o.facade);return uc(function(){var t=dc.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||cc(e,null)}),n.forEach(function(e){r.has(e)||cc(e,o)})}dc.set(i,e)},[e]),i}function pc(e){return e}function vc(e,t){void 0===t&&(t=pc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return o}var hc=function(e){void 0===e&&(e={});var t=vc(null);return t.options=oc({async:!0,ssr:!1},e),t}(),mc=function(){},yc=a().forwardRef(function(e,t){var r=a().useRef(null),n=a().useState({onScrollCapture:mc,onWheelCapture:mc,onTouchMoveCapture:mc}),o=n[0],i=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,x=e.gapMode,w=ic(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,_=fc([r,t]),k=oc(oc({},w),o);return a().createElement(a().Fragment,null,d&&a().createElement(j,{sideCar:hc,removeScrollBar:u,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:x}),s?a().cloneElement(a().Children.only(l),oc(oc({},k),{ref:_})):a().createElement(b,oc({},k,{className:c,ref:_}),l))});yc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yc.classNames={fullWidth:lc,zeroRight:sc};var gc,bc=function(e){var t=e.sideCar,r=ic(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return a().createElement(n,oc({},r))};bc.isSideCarExport=!0;function xc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gc||r.nc;return t&&e.setAttribute("nonce",t),e}var wc=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=xc())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jc=function(){var e,t=(e=wc(),function(t,r){a().useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},_c={left:0,top:0,right:0,gap:0},kc=function(e){return parseInt(e||"",10)||0},Sc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _c;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[kc(r),kc(n),kc(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Oc=jc(),Nc="data-scroll-locked",Pc=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(Nc,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(sc," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(lc," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(sc," .").concat(sc," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(lc," .").concat(lc," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(Nc,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Cc=function(){var e=parseInt(document.body.getAttribute(Nc)||"0",10);return isFinite(e)?e:0},Ec=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;a().useEffect(function(){return document.body.setAttribute(Nc,(Cc()+1).toString()),function(){var e=Cc()-1;e<=0?document.body.removeAttribute(Nc):document.body.setAttribute(Nc,e.toString())}},[]);var i=a().useMemo(function(){return Sc(o)},[o]);return a().createElement(Oc,{styles:Pc(i,!t,o,r?"":"!important")})},Rc=!1;if("undefined"!=typeof window)try{var Ac=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",Ac,Ac),window.removeEventListener("test",Ac,Ac)}catch(e){Rc=!1}var Tc=!!Rc&&{passive:!1},Dc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Fc=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ic(e,n)){var o=Mc(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Ic=function(e,t){return"v"===e?function(e){return Dc(e,"overflowY")}(t):function(e){return Dc(e,"overflowX")}(t)},Mc=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vc=function(e){return[e.deltaX,e.deltaY]},$c=function(e){return e&&"current"in e?e.current:e},zc=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Uc=0,qc=[];function Wc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bc=(Hc=function(e){var t=a().useRef([]),r=a().useRef([0,0]),n=a().useRef(),o=a().useState(Uc++)[0],i=a().useState(jc)[0],s=a().useRef(e);a().useEffect(function(){s.current=e},[e]),a().useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ac([e.lockRef.current],(e.shards||[]).map($c),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a().useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Lc(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var v=Fc(d,u);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=Fc(d,u)),!v)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var h=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var p=Mc(e,s),v=p[0],h=p[1]-p[2]-i*v;(v||h)&&Ic(e,s)&&(d+=h,f+=v);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&a>d)||!u&&(o&&Math.abs(f)<1||!o&&-a>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),c=a().useCallback(function(e){var r=e;if(qc.length&&qc[qc.length-1]===i){var n="deltaY"in r?Vc(r):Lc(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var a=(s.current.shards||[]).map($c).filter(Boolean).filter(function(e){return e.contains(r.target)});(a.length>0?l(r,a[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=a().useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Wc(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a().useCallback(function(e){r.current=Lc(e),n.current=void 0},[]),f=a().useCallback(function(t){u(t.type,Vc(t),t.target,l(t,e.lockRef.current))},[]),p=a().useCallback(function(t){u(t.type,Lc(t),t.target,l(t,e.lockRef.current))},[]);a().useEffect(function(){return qc.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Tc),document.addEventListener("touchmove",c,Tc),document.addEventListener("touchstart",d,Tc),function(){qc=qc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Tc),document.removeEventListener("touchmove",c,Tc),document.removeEventListener("touchstart",d,Tc)}},[]);var v=e.removeScrollBar,h=e.inert;return a().createElement(a().Fragment,null,h?a().createElement(i,{styles:zc(o)}):null,v?a().createElement(Ec,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},hc.useMedium(Hc),bc);var Hc,Gc=a().forwardRef(function(e,t){return a().createElement(yc,oc({},e,{ref:t,sideCar:Bc}))});Gc.classNames=yc.classNames;const Zc=Gc;var Kc=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Qc=new WeakMap,Jc=new WeakMap,Yc={},Xc=0,eu=function(e){return e&&(e.host||eu(e.parentNode))},tu=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=eu(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Yc[r]||(Yc[r]=new WeakMap);var i=Yc[r],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(Qc.get(e)||0)+1,c=(i.get(e)||0)+1;Qc.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Jc.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),s.clear(),Xc++,function(){a.forEach(function(e){var t=Qc.get(e)-1,o=i.get(e)-1;Qc.set(e,t),i.set(e,o),t||(Jc.has(e)||e.removeAttribute(n),Jc.delete(e)),o||e.removeAttribute(r)}),--Xc||(Qc=new WeakMap,Qc=new WeakMap,Jc=new WeakMap,Yc={})}},ru=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Kc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),tu(n,o,r,"aria-hidden")):function(){return null}},nu=Object.defineProperty,ou=(e,t)=>nu(e,"name",{value:t,configurable:!0}),iu="Dialog",[au,su]=Ms(iu),[lu,cu]=au(iu),uu=ou(e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=a().useRef(null),u=a().useRef(null),{nodes:d,registry:f}=Nl(),[p,v]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:iu}),[h,m]=a().useState(0),[y,g]=a().useState(0);return(0,o().jsx)(lu,{scope:t,triggerRef:c,contentRef:u,contentId:qs(),titleId:qs(),descriptionId:qs(),titlePresent:h>0,descriptionPresent:y>0,setTitleCount:m,setDescriptionCount:g,open:p,onOpenChange:v,onOpenToggle:a().useCallback(()=>v(e=>!e),[v]),modal:l,branchNodes:d,branchRegistry:f,children:r})},"Dialog"),du=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogTrigger",r),a=za(t,i.triggerRef);return(0,o().jsx)(rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Cu(i.open),...n,ref:a,onClick:As(e.onClick,i.onOpenToggle)})},"DialogTrigger")),fu="DialogPortal",[pu,vu]=au(fu,{forceMount:void 0}),hu=ou(e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=cu(fu,t);return(0,o().jsx)(pu,{scope:t,forceMount:r,children:a().Children.map(n,e=>(0,o().jsx)(Hl,{present:r||s.open,children:(0,o().jsx)(Ul,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),mu="DialogOverlay",yu=a().forwardRef(ou(function(e,t){const r=vu(mu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=cu(mu,e.__scopeDialog);return a.modal?(0,o().jsx)(Hl,{present:n||a.open,children:(0,o().jsx)(bu,{...i,ref:t})}):null},"DialogOverlay")),gu=Wa("DialogOverlay.RemoveScroll"),bu=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu(mu,r),s=za(t,pl());return(0,o().jsx)(Zc,{as:gu,allowPinchZoom:!0,shards:a().useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,o().jsx)(rl.div,{"data-state":Cu(i.open),...n,ref:s,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),xu="DialogContent",wu=a().forwardRef(ou(function(e,t){const r=vu(xu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=cu(xu,e.__scopeDialog);return(0,o().jsx)(Hl,{present:n||a.open,children:a.modal?(0,o().jsx)(ju,{...i,ref:t}):(0,o().jsx)(_u,{...i,ref:t})})},"DialogContent")),ju=a().forwardRef(ou(function(e,t){const r=cu(xu,e.__scopeDialog),n=a().useRef(null),i=za(t,r.contentRef,n);return a().useEffect(()=>{const e=n.current;if(e)return ru(e)},[]),(0,o().jsx)(ku,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:As(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:As(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:As(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),_u=a().forwardRef(ou(function(e,t){const r=cu(xu,e.__scopeDialog),n=a().useRef(!1),i=a().useRef(!1);return(0,o().jsx)(ku,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=r.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),ku=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":s,children:l,...c}=e,u=cu(xu,r);return rc(),(0,o().jsx)(Ol,{registry:u.branchRegistry,children:(0,o().jsx)(kl,{asChild:!0,loop:!0,trapped:n,branches:u.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o().jsx)(fl,{role:"dialog",id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?Pu(s,u.descriptionId):s,"data-state":Cu(u.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:l})})})},"DialogContentImpl")),Su=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogTitle",r),{setTitleCount:a}=i;return Vs(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,o().jsx)(rl.h2,{id:i.titleId,...n,ref:t})},"DialogTitle")),Ou=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogDescription",r),{setDescriptionCount:a}=i;return Vs(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,o().jsx)(rl.p,{id:i.descriptionId,...n,ref:t})},"DialogDescription")),Nu=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogClose",r);return(0,o().jsx)(rl.button,{type:"button",...n,ref:t,onClick:As(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function Pu(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function Cu(e){return e?"open":"closed"}ou(Pu,"concatAriaDescribedby"),ou(Cu,"getState");var Eu='[cmdk-group=""]',Ru='[cmdk-group-items=""]',Au='[cmdk-item=""]',Tu=`${Au}:not([aria-disabled="true"])`,Du="cmdk-item-select",Fu="data-value",Iu=(e,t,r)=>Ps(e,t,r),Mu=a().createContext(void 0),Lu=()=>a().useContext(Mu),Vu=a().createContext(void 0),$u=()=>a().useContext(Vu),zu=a().createContext(void 0),Uu=a().forwardRef((e,t)=>{let r=rd(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=rd(()=>new Set),o=rd(()=>new Map),i=rd(()=>new Map),s=rd(()=>new Set),l=ed(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=qs(),x=qs(),w=qs(),j=a().useRef(null),_=id();td(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,k.emit()}},[d]),td(()=>{_(6,E)},[]);let k=a().useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,i,a,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)C(),N(),_(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(_(7,()=>{var e;r.current.selectedItemId=null==(e=R())?void 0:e.id,k.emit()}),n||_(5,E),void 0!==(null==(i=l.current)?void 0:i.value)){let e=null!=t?t:"";return void(null==(s=(a=l.current).onValueChange)||s.call(a,e))}}k.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),S=a().useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,O(t,n)),_(2,()=>{N(),k.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,()=>{C(),N(),r.current.value||P(),k.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=R();_(4,()=>{C(),(null==t?void 0:t.getAttribute("id"))===e&&P(),k.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:w,labelId:x,listInnerRef:j}),[]);function O(e,t){var n,o;let i=null!=(o=null==(n=l.current)?void 0:n.filter)?o:Iu;return e?i(e,r.current.search,t):0}function N(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),i=0;n.forEach(t=>{let r=e.get(t);i=Math.max(r,i)}),t.push([r,i])});let n=j.current;A().sort((t,r)=>{var n,o;let i=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(Ru);t?t.appendChild(e.parentElement===t?e:e.closest(`${Ru} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${Ru} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=j.current)?void 0:t.querySelector(`${Eu}[${Fu}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function P(){let e=A().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Fu);k.setState("value",t||void 0)}function C(){var e,t,a,s;if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let c=0;for(let o of n.current){let n=O(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);r.current.filtered.items.set(o,n),n>0&&c++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function E(){var e,t,r;let n=R();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(Eu))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=j.current)?void 0:e.querySelector(`${Au}[aria-selected="true"]`)}function A(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(Tu))||[])}function T(e){let t=A()[e];t&&k.setState("value",t.getAttribute(Fu))}function D(e){var t;let r=R(),n=A(),o=n.findIndex(e=>e===r),i=n[o+e];null!=(t=l.current)&&t.loop&&(i=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),i&&k.setState("value",i.getAttribute(Fu))}function F(e){let t,r=R(),n=null==r?void 0:r.closest(Eu);for(;n&&!t;)n=e>0?Yu(n,Eu):Xu(n,Eu),t=null==n?void 0:n.querySelector(Tu);t?k.setState("value",t.getAttribute(Fu)):D(e)}let I=()=>T(A().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):D(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?F(-1):D(-1)};return a().createElement(rl.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":y&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":y&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),I();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Du);t.dispatchEvent(e)}}}}},a().createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:sd},c),ad(e,e=>a().createElement(Vu.Provider,{value:k},a().createElement(Mu.Provider,{value:S},e))))}),qu=a().forwardRef((e,t)=>{var r,n;let o=qs(),i=a().useRef(null),s=a().useContext(zu),l=Lu(),c=ed(e),u=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;td(()=>{if(!u)return l.item(o,null==s?void 0:s.id)},[u]);let d=od(o,i,[e.value,e.children,i],e.keywords),f=$u(),p=nd(e=>e.value&&e.value===d.current),v=nd(e=>!(!u&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(a().useEffect(()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Du,h),()=>t.removeEventListener(Du,h)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:y,value:g,onSelect:b,forceMount:x,keywords:w,...j}=e;return a().createElement(rl.div,{ref:$a(i,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:m,onClick:y?void 0:h},e.children)}),Wu=a().forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=qs(),l=a().useRef(null),c=a().useRef(null),u=qs(),d=Lu(),f=nd(e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(s)));td(()=>d.group(s),[]),od(s,l,[e.value,e.heading,c]);let p=a().useMemo(()=>({id:s,forceMount:o}),[o]);return a().createElement(rl.div,{ref:$a(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&a().createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),ad(e,e=>a().createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},a().createElement(zu.Provider,{value:p},e))))}),Bu=a().forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=a().useRef(null),i=nd(e=>!e.search);return r||i?a().createElement(rl.div,{ref:$a(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),Hu=a().forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,i=$u(),s=nd(e=>e.search),l=nd(e=>e.selectedItemId),c=Lu();return a().useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),a().createElement(rl.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),Gu=a().forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=a().useRef(null),s=a().useRef(null),l=nd(e=>e.selectedItemId),c=Lu();return a().useEffect(()=>{if(s.current&&i.current){let e,t=s.current,r=i.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),a().createElement(rl.div,{ref:$a(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},ad(e,e=>a().createElement("div",{ref:$a(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),Zu=a().forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...l}=e;return a().createElement(uu,{open:r,onOpenChange:n},a().createElement(hu,{container:s},a().createElement(yu,{"cmdk-overlay":"",className:o}),a().createElement(wu,{"aria-label":e.label,"cmdk-dialog":"",className:i},a().createElement(Uu,{ref:t,...l}))))}),Ku=a().forwardRef((e,t)=>nd(e=>0===e.filtered.count)?a().createElement(rl.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Qu=a().forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return a().createElement(rl.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ad(e,e=>a().createElement("div",{"aria-hidden":!0},e)))}),Ju=Object.assign(Uu,{List:Gu,Item:qu,Input:Hu,Group:Wu,Separator:Bu,Dialog:Zu,Empty:Ku,Loading:Qu});function Yu(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Xu(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function ed(e){let t=a().useRef(e);return td(()=>{t.current=e}),t}var td="undefined"==typeof window?a().useEffect:a().useLayoutEffect;function rd(e){let t=a().useRef();return void 0===t.current&&(t.current=e()),t}function nd(e){let t=$u(),r=()=>e(t.snapshot());return a().useSyncExternalStore(t.subscribe,r,r)}function od(e,t,r,n=[]){let o=a().useRef(),i=Lu();return td(()=>{var a;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=n.map(e=>e.trim());i.value(e,s,l),null==(a=t.current)||a.setAttribute(Fu,s),o.current=s}),o}var id=()=>{let[e,t]=a().useState(),r=rd(()=>new Map);return td(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function ad({asChild:e,children:t},r){return e&&a().isValidElement(t)?a().cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var sd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ld=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var cd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ud=(0,a().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>(0,a().createElement)("svg",{ref:c,...cd,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:ld("lucide",o),...l},[...s.map(([e,t])=>(0,a().createElement)(e,t)),...Array.isArray(i)?i:[i]])),dd=(e,t)=>{const r=(0,a().forwardRef)(({className:r,...n},o)=>{return(0,a().createElement)(ud,{ref:o,iconNode:t,className:ld(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i});return r.displayName=`${e}`,r},fd=dd("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),pd=dd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function vd(e){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vd(e)}var hd=["className"],md=["className","children"],yd=["className"],gd=["className"],bd=["className"],xd=["className"];function wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(r),!0).forEach(function(t){_d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=vd(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Sd="vt-absolute vt-top-4 vt-right-4 vt-p-2 vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-50 hover:vt-bg-accent hover:vt-text-accent-foreground",Od=uu,Nd=du,Pd=hu,Cd=Nu,Ed=a().forwardRef(function(e,t){var r=e.className,n=kd(e,hd);return(0,o().jsx)(yu,jd({ref:t,className:hi("vt-ui vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0",r)},n))});Ed.displayName=yu.displayName;var Rd=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=kd(e,md);return(0,o().jsxs)(Pd,{children:[(0,o().jsx)(Ed,{}),(0,o().jsxs)(wu,jd(jd({ref:t,className:hi("vt-ui vt-fixed vt-left-[50%] vt-top-[50%] vt-grid vt-w-full vt-translate-x-[-50%] vt-translate-y-[-50%] vt-gap-4 vt-border vt-bg-background vt-p-6 vt-shadow-lg vt-duration-200 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0 vt-data-[state=closed]:vt-zoom-out-95 vt-data-[state=open]:vt-zoom-in-95 vt-data-[state=closed]:vt-slide-out-to-left-1/2 vt-data-[state=closed]:vt-slide-out-to-top-[48%] vt-data-[state=open]:vt-slide-in-from-left-1/2 vt-data-[state=open]:vt-slide-in-from-top-[48%] sm:vt-rounded-lg","vt-max-w-4xl vt-z-[99999]",r)},i),{},{children:[n,(0,o().jsxs)(Nu,{className:Sd,children:[(0,o().jsx)(pd,{size:16}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Close","trigger")})]})]}))]})});Rd.displayName=wu.displayName;var Ad=function(e){var t=e.className,r=kd(e,yd);return(0,o().jsx)("div",jd({className:hi("vt-flex vt-flex-col vt-space-y-1.5 vt-text-center sm:vt-text-left",t)},r))};Ad.displayName="DialogHeader";var Td=function(e){var t=e.className,r=kd(e,gd);return(0,o().jsx)("div",jd({className:hi("vt-flex vt-flex-col-reverse sm:vt-flex-row sm:vt-justify-end sm:vt-space-x-2",t)},r))};Td.displayName="DialogFooter";var Dd=a().forwardRef(function(e,t){var r=e.className,n=kd(e,bd);return(0,o().jsx)(Su,jd({ref:t,className:hi("vt-text-lg vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Dd.displayName=Su.displayName;var Fd=a().forwardRef(function(e,t){var r=e.className,n=kd(e,xd);return(0,o().jsx)(Ou,jd({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))});function Id(e){return Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Id(e)}Fd.displayName=Ou.displayName;var Md=["className"],Ld=["className"],Vd=["className"],$d=["className"],zd=["className"],Ud=["className"];function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(t){Bd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Id(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Id(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Gd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Md);return(0,o().jsx)(Ju,Wd({ref:t,className:hi("vt-flex vt-h-full vt-w-full vt-flex-col vt-overflow-hidden vt-rounded-md vt-bg-popover vt-text-popover-foreground",r)},n))});Gd.displayName=Ju.displayName;var Zd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Ld);return(0,o().jsxs)("div",{className:"vt-relative vt-flex vt-items-center vt-border-b vt-pb-2","cmdk-input-wrapper":"",children:[(0,o().jsx)(fd,{className:"vt-absolute vt-left-2 vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"}),(0,o().jsx)(Ju.Input,Wd({ref:t,className:hi("vt-flex vt-h-10 vt-w-full vt-rounded-md vt-bg-transparent vt-py-3 vt-pl-7 vt-text-sm vt-outline-none vt-placeholder:vt-text-muted-foreground disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},n))]})});Zd.displayName=Ju.Input.displayName;var Kd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Vd);return(0,o().jsx)(Ju.List,Wd({ref:t,className:hi("vt-max-h-[300px] vt-pt-2 vt-overflow-y-auto vt-overflow-x-hidden",r)},n))});Kd.displayName=Ju.List.displayName;var Qd=a().forwardRef(function(e,t){return(0,o().jsx)(Ju.Empty,Wd({ref:t,className:"vt-py-6 vt-text-center vt-text-sm"},e))});Qd.displayName=Ju.Empty.displayName;var Jd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,$d);return(0,o().jsx)(Ju.Group,Wd({ref:t,className:hi("vt-overflow-hidden vt-p-1 vt-text-foreground [&_[cmdk-group-heading]]:vt-px-2 [&_[cmdk-group-heading]]:vt-py-1.5 [&_[cmdk-group-heading]]:vt-text-xs [&_[cmdk-group-heading]]:vt-font-medium [&_[cmdk-group-heading]]:vt-text-muted-foreground",r)},n))});Jd.displayName=Ju.Group.displayName,a().forwardRef(function(e,t){var r=e.className,n=Hd(e,zd);return(0,o().jsx)(Ju.Separator,Wd({ref:t,className:hi("vt-mx-1 vt-h-px vt-bg-border",r)},n))}).displayName=Ju.Separator.displayName;var Yd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Ud);return(0,o().jsx)(Ju.Item,Wd({ref:t,className:hi("vt-relative vt-flex vt-cursor-default vt-gap-2 vt-select-none vt-items-center vt-rounded-sm vt-px-2 vt-py-1.5 vt-text-sm vt-outline-none data-[disabled=true]:vt-pointer-events-none data-[selected=true]:vt-bg-accent data-[selected=true]:vt-text-accent-foreground data-[disabled=true]:vt-opacity-50 [&_svg]:vt-pointer-events-none [&_svg]:vt-size-4 [&_svg]:vt-shrink-0",r)},n))});Yd.displayName=Ju.Item.displayName;const Xd=["top","right","bottom","left"],ef=Math.min,tf=Math.max,rf=Math.round,nf=Math.floor,of=e=>({x:e,y:e}),af={left:"right",right:"left",bottom:"top",top:"bottom"};function sf(e,t,r){return tf(e,ef(t,r))}function lf(e,t){return"function"==typeof e?e(t):e}function cf(e){return e.split("-")[0]}function uf(e){return e.split("-")[1]}function df(e){return"x"===e?"y":"x"}function ff(e){return"y"===e?"height":"width"}function pf(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function vf(e){return df(pf(e))}function hf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const mf=["left","right"],yf=["right","left"],gf=["top","bottom"],bf=["bottom","top"];function xf(e,t,r,n){const o=uf(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?yf:mf:t?mf:yf;case"left":case"right":return t?gf:bf;default:return[]}}(cf(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(hf)))),i}function wf(e){const t=cf(e);return af[t]+e.slice(t.length)}function jf(e){return"number"!=typeof e?function(e){var t,r,n,o;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function _f(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function kf(e,t,r){let{reference:n,floating:o}=e;const i=pf(t),a=vf(t),s=ff(a),l=cf(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}const v=uf(t);return v&&(p[a]+=f*("end"===v?1:-1)*(r&&c?-1:1)),p}async function Sf(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lf(t,e),v=jf(p),h=s[f?"floating"===d?"reference":"floating":d],m=_f(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=_f(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-x.top+v.top)/b.y,bottom:(x.bottom-m.bottom+v.bottom)/b.y,left:(m.left-x.left+v.left)/b.x,right:(x.right-m.right+v.right)/b.x}}function Of(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nf(e){return Xd.some(t=>e[t]>=0)}const Pf=new Set(["left","top"]);function Cf(){return"undefined"!=typeof window}function Ef(e){return Tf(e)?(e.nodeName||"").toLowerCase():"#document"}function Rf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Af(e){var t;return null==(t=(Tf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Tf(e){return!!Cf()&&(e instanceof Node||e instanceof Rf(e).Node)}function Df(e){return!!Cf()&&(e instanceof Element||e instanceof Rf(e).Element)}function Ff(e){return!!Cf()&&(e instanceof HTMLElement||e instanceof Rf(e).HTMLElement)}function If(e){return!(!Cf()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Rf(e).ShadowRoot)}function Mf(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Gf(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Lf(e){return/^(table|td|th)$/.test(Ef(e))}function Vf(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const $f=/transform|translate|scale|rotate|perspective|filter/,zf=/paint|layout|strict|content/,Uf=e=>!!e&&"none"!==e;let qf;function Wf(e){const t=Df(e)?Gf(e):e;return Uf(t.transform)||Uf(t.translate)||Uf(t.scale)||Uf(t.rotate)||Uf(t.perspective)||!Bf()&&(Uf(t.backdropFilter)||Uf(t.filter))||$f.test(t.willChange||"")||zf.test(t.contain||"")}function Bf(){return null==qf&&(qf="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qf}function Hf(e){return/^(html|body|#document)$/.test(Ef(e))}function Gf(e){return Rf(e).getComputedStyle(e)}function Zf(e){return Df(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kf(e){if("html"===Ef(e))return e;const t=e.assignedSlot||e.parentNode||If(e)&&e.host||Af(e);return If(t)?t.host:t}function Qf(e){const t=Kf(e);return Hf(t)?(e.ownerDocument||e).body:Ff(t)&&Mf(t)?t:Qf(t)}function Jf(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Qf(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Rf(o);if(i){const e=Yf(a);return t.concat(a,a.visualViewport||[],Mf(o)?o:[],e&&r?Jf(e):[])}return t.concat(o,Jf(o,[],r))}function Yf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xf(e){const t=Gf(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ff(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=rf(r)!==i||rf(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function ep(e){return Df(e)?e:e.contextElement}function tp(e){const t=ep(e);if(!Ff(t))return of(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Xf(t);let a=(i?rf(r.width):r.width)/n,s=(i?rf(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rp=of(0);function np(e){const t=Rf(e);return Bf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rp}function op(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=ep(e);let a=of(1);t&&(n?Df(n)&&(a=tp(n)):a=tp(e));const s=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Rf(e)}(i,r,n)?np(i):of(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i&&n){const e=Rf(i),t=Df(n)?Rf(n):n;let r=e,o=Yf(r);for(;o&&t!==r;){const e=tp(o),t=o.getBoundingClientRect(),n=Gf(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Rf(o),o=Yf(r)}}return _f({width:u,height:d,x:l,y:c})}function ip(e,t){const r=Zf(e).scrollLeft;return t?t.left+r:op(Af(e)).left+r}function ap(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ip(e,r),y:r.top+t.scrollTop}}function sp(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,o=Rf(e),i=Af(e),a=o.visualViewport;let s=i.clientWidth,l=i.clientHeight,c=0,u=0;if(a){const e=!Bf()||"fixed"===t;n?e||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(c=a.offsetLeft,u=a.offsetTop))}if(ip(i)<=0){const e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n),a="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;a<=25&&(s-=a)}return{width:s,height:l,x:c,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=Zf(e),r=e.ownerDocument.body,n=tf(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=tf(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+ip(e);const a=-t.scrollTop;return"rtl"===Gf(r).direction&&(i+=tf(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:a}}(Af(e));else if(Df(t))n=function(e,t){const r=op(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=tp(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=np(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _f(n)}function lp(e,t,r){const n=Ff(t),o=Af(t),i="fixed"===r,a=op(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=of(0);if((n||!i)&&(("body"!==Ef(t)||Mf(o))&&(s=Zf(t)),n)){const e=op(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&o&&(l.x=ip(o));const c=!o||n||i?of(0):ap(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function cp(e){return"static"===Gf(e).position}function up(e,t){if(!Ff(e)||"fixed"===Gf(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Af(e)===r&&(r=r.ownerDocument.body),r}function dp(e,t){const r=Rf(e);if(Vf(e))return r;if(!Ff(e)){let t=Kf(e);for(;t&&!Hf(t);){if(Df(t)&&!cp(t))return t;t=Kf(t)}return r}let n=up(e,t);for(;n&&Lf(n)&&cp(n);)n=up(n,t);return n&&Hf(n)&&cp(n)&&!Wf(n)?r:n||function(e){let t=Kf(e);for(;Ff(t)&&!Hf(t);){if(Wf(t))return t;if(Vf(t))return null;t=Kf(t)}return null}(e)||r}const fp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Af(n),s=!!t&&Vf(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=of(1);const u=of(0),d=Ff(n);if((d||!i)&&(("body"!==Ef(n)||Mf(a))&&(l=Zf(n)),d)){const e=op(n);c=tp(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||i?of(0):ap(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Af,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Vf(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Jf(e,[],!1).filter(e=>Df(e)&&"body"!==Ef(e)),o=null;const i="fixed"===Gf(e).position;let a=i?Kf(e):e;for(;Df(a)&&!Hf(a);){const e=Gf(a),t=Wf(a),r=o?o.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?o=e:n=n.filter(e=>e!==a),a=Kf(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=sp(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const r=sp(t,i[e],o);s=tf(r.top,s),l=ef(r.right,l),c=ef(r.bottom,c),u=tf(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:dp,getElementRects:async function(e){const t=this.getOffsetParent||dp,r=this.getDimensions,n=await r(e.floating);return{reference:lp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=Xf(e);return{width:t,height:r}},getScale:tp,isElement:Df,isRTL:function(e){return"rtl"===Gf(e).direction}};function pp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vp(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ep(e),u=o||i?[...c?Jf(c):[],...t?Jf(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r),i&&e.addEventListener("resize",r)});const d=c&&s?function(e,t,r){let n,o=null;const i=Af(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(r||t(),!f||!p)return;const v={rootMargin:-nf(d)+"px "+-nf(i.clientWidth-(u+f))+"px "+-nf(i.clientHeight-(d+p))+"px "+-nf(u)+"px",threshold:tf(0,ef(1,l))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(!pp(c,e.getBoundingClientRect()))return s();if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(m,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(m,v)}o.observe(e)}const l=Rf(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(c,r,i):null;let f,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),c&&!l&&v.observe(c),t&&v.observe(t));let h=l?op(e):null;return l&&function t(){const n=op(e);h&&!pp(h,n)&&r();h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}const hp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=cf(r),s=uf(r),l="y"===pf(r),c=Pf.has(a)?-1:1,u=i&&l?-1:1,d=lf(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(p="end"===s?-1*v:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},mp=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=lf(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),f=pf(o),p=df(f);let v=u[p],h=u[f];const m=(e,t)=>sf(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);a&&(v=m(p,v)),s&&(h=m(f,h));const y=l.fn({...t,[p]:v,[f]:h});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:a,[f]:s}}}}}},yp=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=lf(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=cf(o),g=pf(s),b=cf(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[wf(s)]:function(e){const t=wf(e);return[hf(e),t,hf(t)]}(s)),j="none"!==v;!f&&j&&w.push(...xf(s,h,v,x));const _=[s,...w],k=await l.detectOverflow(t,m),S=[];let O=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=uf(e),o=vf(e),i=ff(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wf(a)),[a,wf(a)]}(o,a,x);S.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every(e=>e<=0)){var N,P;const e=((null==(N=i.flip)?void 0:N.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&g!==pf(t))||O.every(e=>pf(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let r=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!r)switch(p){case"bestFit":{var C;const e=null==(C=O.filter(e=>{if(j){const t=pf(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},gp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=lf(e,t),l=await o.detectOverflow(t,s),c=cf(r),u=uf(r),d="y"===pf(r),{width:f,height:p}=n.floating;let v,h;"top"===c||"bottom"===c?(v=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,v="end"===u?"top":"bottom");const m=p-l.top-l.bottom,y=f-l.left-l.right,g=ef(p-l[v],m),b=ef(f-l[h],y),x=t.middlewareData.shift,w=!x;let j=g,_=b;null!=x&&x.enabled.x&&(_=y),null!=x&&x.enabled.y&&(j=m),w&&!u&&(d?_=f-2*tf(l.left,l.right):j=p-2*tf(l.top,l.bottom)),await a({...t,availableWidth:_,availableHeight:j});const k=await o.getDimensions(i.floating);return f!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}},bp=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=lf(e,t);switch(o){case"referenceHidden":{const e=Of(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Nf(e)}}}case"escaped":{const e=Of(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Nf(e)}}}default:return{}}}}},xp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=lf(e,t)||{};if(null==c)return{};const d=jf(u),f={x:r,y:n},p=vf(o),v=ff(p),h=await a.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[p]-f[p]-i.floating[v],w=f[p]-i.reference[p],j=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=j?j[b]:0;_&&await(null==a.isElement?void 0:a.isElement(j))||(_=s.floating[b]||i.floating[v]);const k=x/2-w/2,S=_/2-h[v]/2-1,O=ef(d[y],S),N=ef(d[g],S),P=_-h[v]-N,C=_/2-h[v]/2+k,E=sf(O,C,P),R=!l.arrow&&null!=uf(o)&&C!==E&&i.reference[v]/2-(C<O?O:N)-h[v]/2<0,A=R?C<O?C-O:C-P:0;return{[p]:f[p]+A,data:{[p]:E,centerOffset:C-E-A,...R&&{alignmentOffset:A}},reset:R}}}),jp=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,n;const{x:o,y:i,placement:a,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=lf(e,t),f={x:o,y:i},p=pf(a),v=df(p);let h=f[v],m=f[p];const y=lf(c,t),g="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(r=y.mainAxis)?r:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(u){const e="y"===v?"height":"width",t=s.reference[v]-s.floating[e]+g.mainAxis,r=s.reference[v]+s.reference[e]-g.mainAxis;h<t?h=t:h>r&&(h=r)}if(d){var b,x;const e="y"===v?"width":"height",t=Pf.has(cf(a)),r=s.reference[p]-s.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:g.crossAxis),n=s.reference[p]+s.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[p])||0)-(t?g.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[v]:h,[p]:m}}}},_p=(e,t,r)=>{const n=new Map,o=null!=r?r:{},i={...fp,...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Sf},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kf(c,n,l),f=n,p=0;const v={};for(let r=0;r<i.length;r++){const h=i[r];if(!h)continue;const{name:m,fn:y}=h,{x:g,y:b,data:x,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,v[m]={...v[m],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=kf(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:v}})(e,t,{...o,platform:i})};var kp="undefined"!=typeof document?a().useLayoutEffect:function(){};function Sp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Sp(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Sp(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Op(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Np(e,t){const r=Op(e);return Math.round(t*r)/r}function Pp(e){const t=a().useRef(e);return kp(()=>{t.current=e}),t}const Cp=(e,t)=>{const r=hp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ep=(e,t)=>{const r=mp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Rp=(e,t)=>({fn:jp(e).fn,options:[e,t]}),Ap=(e,t)=>{const r=yp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Tp=(e,t)=>{const r=gp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Dp=(e,t)=>{const r=bp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Fp=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&function(e){return{}.hasOwnProperty.call(e,"current")}(r)?null!=r.current?xp({element:r.current,padding:n}).fn(t):{}:r?xp({element:r,padding:n}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Ip=Object.defineProperty;function Mp(e){const[t,r]=a().useState(void 0);return Vs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=0;const n=new ResizeObserver(n=>{if(!Array.isArray(n))return;if(!n.length)return;const o=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if("borderBoxSize"in o){const e=o.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,n=r.blockSize}else t=e.offsetWidth,n=e.offsetHeight;r({width:t,height:n})})});return n.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}r(void 0)},[e]),t}((e,t)=>{Ip(e,"name",{value:t,configurable:!0})})(Mp,"useSize");var Lp=Object.defineProperty,Vp=(e,t)=>Lp(e,"name",{value:t,configurable:!0}),$p={Partial:"partial",Always:"always"},zp={Optimized:"optimized",Always:"always"},Up="Popper",[qp,Wp]=Ms(Up),[Bp,Hp]=qp(Up),Gp=Vp(e=>{const{__scopePopper:t,children:r}=e,[n,i]=a().useState(null),[s,l]=a().useState(void 0);return(0,o().jsx)(Bp,{scope:t,anchor:n,onAnchorChange:i,placementState:s,setPlacementState:l,children:r})},"Popper"),Zp=a().forwardRef(Vp(function(e,t){const{__scopePopper:r,virtualRef:n,...i}=e,s=Hp("PopperAnchor",r),l=a().useRef(null),c=s.onAnchorChange,u=za(t,a().useCallback(e=>{l.current=e,e&&c(e)},[c])),d=a().useRef(null);a().useEffect(()=>{if(!n)return;const e=d.current;d.current=n.current,e!==d.current&&c(d.current)});const f=s.placementState&&tv(s.placementState),p=f?.[0],v=f?.[1];return n?null:(0,o().jsx)(rl.div,{"data-radix-popper-side":p,"data-radix-popper-align":v,...i,ref:u})},"PopperAnchor")),Kp="PopperContent",[Qp,Jp]=qp(Kp),Yp=a().forwardRef(Vp(function(e,t){const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:v=$p.Partial,hideWhenDetached:h=!1,updatePositionStrategy:m=zp.Optimized,onPlaced:y,...g}=e,b=Hp(Kp,r),[x,w]=a().useState(null),j=za(t,w),[_,k]=a().useState(null),S=Mp(_),O=S?.width??0,N=S?.height??0,P=n+("center"!==l?"-"+l:""),C="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},E=Array.isArray(f)?f:[f],R=E.length>0,A={padding:C,boundary:E.filter(Xp),altBoundary:R},{refs:T,floatingStyles:D,placement:F,isPositioned:I,middlewareData:M}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=a().useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=a().useState(n);Sp(v,n)||h(n);const[m,y]=a().useState(null),[g,b]=a().useState(null),x=a().useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=a().useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),j=i||m,_=l||g,k=a().useRef(null),S=a().useRef(null),O=a().useRef(f),N=null!=u,P=Pp(u),C=Pp(o),E=Pp(d),R=a().useCallback(()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:r,middleware:v};C.current&&(e.platform=C.current),_p(k.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};A.current&&!Sp(O.current,t)&&(O.current=t,s().flushSync(()=>{p(t)}))})},[v,t,r,C,E]);kp(()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const A=a().useRef(!1);kp(()=>(A.current=!0,()=>{A.current=!1}),[]),kp(()=>{if(j&&(k.current=j),_&&(S.current=_),j&&_){if(P.current)return P.current(j,_,R);R()}},[j,_,R,P,N]);const T=a().useMemo(()=>({reference:k,floating:S,setReference:x,setFloating:w}),[x,w]),D=a().useMemo(()=>({reference:j,floating:_}),[j,_]),F=a().useMemo(()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=Np(D.floating,f.x),n=Np(D.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...Op(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,D.floating,f.x,f.y]);return a().useMemo(()=>({...f,update:R,refs:T,elements:D,floatingStyles:F}),[f,R,T,D,F])}({strategy:"fixed",placement:P,whileElementsMounted:Vp((...e)=>vp(...e,{animationFrame:m===zp.Always}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Cp({mainAxis:i+N,alignmentAxis:c}),d&&Ep({mainAxis:!0,crossAxis:!1,...v===$p.Partial?{limiter:Rp()}:{},...A}),d&&Ap({...A}),Tp({...A,apply:Vp(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),_&&Fp({element:_,padding:u}),ev({arrowWidth:O,arrowHeight:N}),h&&Dp(R?{strategy:"referenceHidden",...A}:{strategy:"referenceHidden",padding:A.padding,altBoundary:A.altBoundary})]}),L=b.setPlacementState;Vs(()=>(L(F),()=>{L(void 0)}),[F,L]);const[V,$]=tv(F),z=al(y);Vs(()=>{I&&z?.()},[I,z]);const U=M.arrow?.x,q=M.arrow?.y,W=0!==M.arrow?.centerOffset,[B,H]=a().useState();return Vs(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),(0,o().jsx)("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:I?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o().jsx)(Qp,{scope:r,placedSide:V,placedAlign:$,onArrowChange:k,arrowX:U,arrowY:q,shouldHideArrow:W,children:(0,o().jsx)(rl.div,{"data-side":V,"data-align":$,...g,ref:j,style:{...g.style,animation:I?g.style?.animation:"none"}})})})},"PopperContent"));function Xp(e){return null!==e}Vp(Xp,"isNotNull");var ev=Vp(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=tv(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",v="";return"bottom"===l?(p=i?u:`${d}px`,v=-s+"px"):"top"===l?(p=i?u:`${d}px`,v=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",v=i?u:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,v=i?u:`${f}px`),{data:{x:p,y:v}}}}),"transformOrigin");function tv(e){const[t,r="center"]=e.split("-");return[t,r]}Vp(tv,"getSideAndAlignFromPlacement");var rv=Object.defineProperty,nv=(e,t)=>rv(e,"name",{value:t,configurable:!0}),ov="Popover",[iv,av]=Ms(ov,[Wp]),sv=Wp(),[lv,cv]=iv(ov),uv=nv(e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=sv(t),u=a().useRef(null),[d,f]=a().useState(!1),[p,v]=a().useState(0),[h,m]=a().useState(0),[y,g]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:ov});return(0,o().jsx)(Gp,{...c,children:(0,o().jsx)(lv,{scope:t,contentId:qs(),titleId:qs(),descriptionId:qs(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:v,setDescriptionCount:m,triggerRef:u,open:y,onOpenChange:g,onOpenToggle:a().useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:d,onCustomAnchorAdd:a().useCallback(()=>f(!0),[]),onCustomAnchorRemove:a().useCallback(()=>f(!1),[]),modal:l,children:r})})},"Popover"),dv=a().forwardRef(nv(function(e,t){const{__scopePopover:r,...n}=e,i=cv("PopoverTrigger",r),a=sv(r),s=za(t,i.triggerRef),l=(0,o().jsx)(rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":wv(i.open),...n,ref:s,onClick:As(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,o().jsx)(Zp,{asChild:!0,...a,children:l})},"PopoverTrigger")),fv="PopoverPortal",[pv,vv]=iv(fv,{forceMount:void 0}),hv="PopoverContent",mv=a().forwardRef(nv(function(e,t){const r=vv(hv,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,a=cv(hv,e.__scopePopover);return(0,o().jsx)(Hl,{present:n||a.open,children:a.modal?(0,o().jsx)(gv,{...i,ref:t}):(0,o().jsx)(bv,{...i,ref:t})})},"PopoverContent")),yv=Wa("PopoverContent.RemoveScroll"),gv=a().forwardRef(nv(function(e,t){const r=cv(hv,e.__scopePopover),n=a().useRef(null),i=za(t,n),s=a().useRef(!1),{nodes:l,registry:c}=Nl();return a().useEffect(()=>{const e=n.current;if(e)return ru(e)},[]),(0,o().jsx)(Zc,{as:yv,allowPinchZoom:!0,shards:a().useMemo(()=>[n,...l.map(e=>({current:e}))],[n,l]),children:(0,o().jsx)(xv,{...e,ref:i,branchNodes:l,branchRegistry:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:As(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:As(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),bv=a().forwardRef(nv(function(e,t){const r=cv(hv,e.__scopePopover),n=a().useRef(!1),i=a().useRef(!1);return(0,o().jsx)(xv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=r.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),xv=a().forwardRef(nv(function(e,t){const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,"aria-describedby":p,branchNodes:v,branchRegistry:h,...m}=e,y=cv(hv,r),g=sv(r),[b,x]=a().useState(null),w=za(t,x);return Pl(b),rc(),(0,o().jsx)(Ol,{registry:h,children:(0,o().jsx)(kl,{asChild:!0,loop:!0,trapped:n,branches:v,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,o().jsx)(fl,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>y.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o().jsx)(Yp,{"data-state":wv(y.open),role:"dialog",id:y.contentId,"aria-labelledby":y.titlePresent?y.titleId:void 0,"aria-describedby":y.descriptionPresent?jv(p,y.descriptionId):p,...g,...m,ref:w,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function wv(e){return e?"open":"closed"}function jv(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function _v(e){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(e)}nv(wv,"getState"),nv(jv,"concatAriaDescribedby");var kv=["className","align","sideOffset"];function Sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ov(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=_v(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=_v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Nv=uv,Pv=dv,Cv=a().forwardRef(function(e,t){var r=e.className,n=e.align,i=void 0===n?"center":n,a=e.sideOffset,s=void 0===a?4:a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,kv);return(0,o().jsx)(mv,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(t){Ov(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:i,sideOffset:s,className:hi("vt-ui vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},l))});function Ev(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Rv(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Rv(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Rv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Rv(d,"constructor",c),Rv(c,"constructor",l),l.displayName="GeneratorFunction",Rv(c,o,"GeneratorFunction"),Rv(d),Rv(d,o,"Generator"),Rv(d,n,function(){return this}),Rv(d,"toString",function(){return"[object Generator]"}),(Ev=function(){return{w:i,m:f}})()}function Rv(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Rv=function(e,t,r,n){function i(t,r){Rv(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Rv(e,t,r,n)}function Av(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Tv(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Av(i,n,o,a,s,"next",e)}function s(e){Av(i,n,o,a,s,"throw",e)}a(void 0)})}}Cv.displayName=mv.displayName;var Dv=function(){return ra({queryKey:["getPluginList"],queryFn:(e=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Fv=function(){return ra({queryKey:["getThemeList"],queryFn:(e=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_theme_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};const Iv=dd("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Mv=dd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);function Lv(e){return function(e){if(Array.isArray(e))return zv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||$v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(e,t){if(e){if("string"==typeof e)return zv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(e,t):void 0}}function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Uv(e){var t=e.selectedPlugin,r=e.onChange,n=Vv((0,a().useState)([]),2),i=n[0],s=n[1],l=Vv((0,a().useState)(!1),2),c=l[0],u=l[1],d=Dv().data;(0,a().useEffect)(function(){d&&s(d.data)},[d]);var f=i.filter(function(e){return t.includes(e.slug)}),p=i.filter(function(e){return!t.includes(e.slug)});return(0,o().jsx)("div",{children:(0,o().jsxs)(Nv,{open:c,onOpenChange:u,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":c,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-2 vt-bg-transparent",children:[(0,o().jsxs)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-flex-1",children:[f.map(function(e){return(0,o().jsxs)(xs,{variant:"default",className:"vt-gap-1 vt-mb-1",children:[e.label,(0,o().jsx)(vs,{variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(n){n.preventDefault(),n.stopPropagation(),function(e){r(t.filter(function(t){return t!==e}))}(e.slug)},children:(0,o().jsx)(pd,{size:12})})]},e.slug)}),0===f.length&&(0,o().jsx)("span",{className:"vt-text-muted-foreground",children:(0,mi.__)("Select plugins you like...","versatile-toolkit")})]}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-full",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search plugin...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No plugin found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:[].concat(Lv(p),Lv(f)).map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return function(e){t.includes(e)?r(t.filter(function(t){return t!==e})):r([].concat(Lv(t),[e]))}(e.slug)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",t.includes(e.slug)?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}function qv(e){return qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qv(e)}var Wv=["className","type"];function Bv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Hv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=qv(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=qv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gv,Zv,Kv=a().forwardRef(function(e,t){var r=e.className,n=e.type,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Wv);return(0,o().jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(t){Hv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:hi("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},i))});Kv.displayName="Input",function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Gv||(Gv={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Zv||(Zv={}));const Qv=Gv.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Jv=e=>{switch(typeof e){case"undefined":return Qv.undefined;case"string":return Qv.string;case"number":return Number.isNaN(e)?Qv.nan:Qv.number;case"boolean":return Qv.boolean;case"function":return Qv.function;case"bigint":return Qv.bigint;case"symbol":return Qv.symbol;case"object":return Array.isArray(e)?Qv.array:null===e?Qv.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Qv.promise:"undefined"!=typeof Map&&e instanceof Map?Qv.map:"undefined"!=typeof Set&&e instanceof Set?Qv.set:"undefined"!=typeof Date&&e instanceof Date?Qv.date:Qv.object;default:return Qv.unknown}},Yv=Gv.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Xv extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(n);else if("invalid_return_type"===o.code)n(o.returnTypeError);else if("invalid_arguments"===o.code)n(o.argumentsError);else if(0===o.path.length)r._errors.push(t(o));else{let e=r,n=0;for(;n<o.path.length;){const r=o.path[n];n===o.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(o))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof Xv))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Gv.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)if(n.path.length>0){const r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Xv.create=e=>new Xv(e);const eh=(e,t)=>{let r;switch(e.code){case Yv.invalid_type:r=e.received===Qv.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Yv.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Gv.jsonStringifyReplacer)}`;break;case Yv.unrecognized_keys:r=`Unrecognized key(s) in object: ${Gv.joinValues(e.keys,", ")}`;break;case Yv.invalid_union:r="Invalid input";break;case Yv.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Gv.joinValues(e.options)}`;break;case Yv.invalid_enum_value:r=`Invalid enum value. Expected ${Gv.joinValues(e.options)}, received '${e.received}'`;break;case Yv.invalid_arguments:r="Invalid function arguments";break;case Yv.invalid_return_type:r="Invalid function return type";break;case Yv.invalid_date:r="Invalid date";break;case Yv.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Gv.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Yv.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Yv.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Yv.custom:r="Invalid input";break;case Yv.invalid_intersection_types:r="Intersection results could not be merged";break;case Yv.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Yv.not_finite:r="Number must be finite";break;default:r=t.defaultError,Gv.assertNever(e)}return{message:r}};let th=eh;function rh(){return th}var nh;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(nh||(nh={}));const oh=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=n.filter(e=>!!e).slice().reverse();for(const e of l)s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function ih(e,t){const r=rh(),n=oh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===eh?void 0:eh].filter(e=>!!e)});e.common.issues.push(n)}class ah{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return sh;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return ah.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:o}=n;if("aborted"===t.status)return sh;if("aborted"===o.status)return sh;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!n.alwaysSet||(r[t.value]=o.value)}return{status:e.value,value:r}}}const sh=Object.freeze({status:"aborted"}),lh=e=>({status:"dirty",value:e}),ch=e=>({status:"valid",value:e}),uh=e=>"aborted"===e.status,dh=e=>"dirty"===e.status,fh=e=>"valid"===e.status,ph=e=>"undefined"!=typeof Promise&&e instanceof Promise;class vh{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hh=(e,t)=>{if(fh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Xv(e.common.issues);return this._error=t,this._error}}};function mh(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{const{message:i}=e;return"invalid_enum_value"===t.code?{message:i??o.defaultError}:void 0===o.data?{message:i??n??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:i??r??o.defaultError}},description:o}}class yh{get description(){return this._def.description}_getType(e){return Jv(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Jv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ah,ctx:{common:e.parent.common,data:e.data,parsedType:Jv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ph(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)},n=this._parseSync({data:e,path:r.path,parent:r});return hh(r,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:t});return fh(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>fh(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(ph(n)?n:Promise.resolve(n));return hh(r,o)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{const o=e(t),i=()=>n.addIssue({code:Yv.custom,...r(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(i(),!1)):!!o||(i(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new hm({schema:this,typeName:km.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return mm.create(this,this._def)}nullable(){return ym.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return em.create(this)}promise(){return vm.create(this,this._def)}or(e){return nm.create([this,e],this._def)}and(e){return im.create(this,e,this._def)}transform(e){return new hm({...mh(this._def),schema:this,typeName:km.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new gm({...mh(this._def),innerType:this,defaultValue:t,typeName:km.ZodDefault})}brand(){return new wm({typeName:km.ZodBranded,type:this,...mh(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new bm({...mh(this._def),innerType:this,catchValue:t,typeName:km.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return jm.create(this,e)}readonly(){return _m.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const gh=/^c[^\s-]{8,}$/i,bh=/^[0-9a-z]+$/,xh=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wh=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,jh=/^[a-z0-9_-]{21}$/i,_h=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kh=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Sh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Oh;const Nh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ph=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ch=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Eh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ah=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Th="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Dh=new RegExp(`^${Th}$`);function Fh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Ih(e){return new RegExp(`^${Fh(e)}$`)}function Mh(e){let t=`${Th}T${Fh(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Lh(e,t){return!("v4"!==t&&t||!Nh.test(e))||!("v6"!==t&&t||!Ch.test(e))}function Vh(e,t){if(!_h.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return"object"==typeof o&&null!==o&&((!("typ"in o)||"JWT"===o?.typ)&&(!!o.alg&&(!t||o.alg===t)))}catch{return!1}}function $h(e,t){return!("v4"!==t&&t||!Ph.test(e))||!("v6"!==t&&t||!Eh.test(e))}class zh extends yh{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Qv.string){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.string,received:t.parsedType}),sh}const t=new ah;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,i=e.data.length<n.value;(o||i)&&(r=this._getOrReturnCtx(e,r),o?ih(r,{code:Yv.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&ih(r,{code:Yv.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)Sh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"email",code:Yv.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)Oh||(Oh=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Oh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"emoji",code:Yv.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)wh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"uuid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)jh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"nanoid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)gh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cuid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)bh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cuid2",code:Yv.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)xh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"ulid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),ih(r,{validation:"url",code:Yv.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"regex",code:Yv.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){Mh(n).test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){Dh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){Ih(n).test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?kh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"duration",code:Yv.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?Lh(e.data,n.version)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"ip",code:Yv.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?Vh(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"jwt",code:Yv.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?$h(e.data,n.version)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cidr",code:Yv.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?Rh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"base64",code:Yv.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?Ah.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"base64url",code:Yv.invalid_string,message:n.message}),t.dirty()):Gv.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:Yv.invalid_string,...nh.errToObj(r)})}_addCheck(e){return new zh({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...nh.errToObj(e)})}url(e){return this._addCheck({kind:"url",...nh.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...nh.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...nh.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...nh.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...nh.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...nh.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...nh.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...nh.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...nh.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...nh.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...nh.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...nh.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...nh.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...nh.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...nh.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...nh.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...nh.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...nh.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...nh.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...nh.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...nh.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...nh.errToObj(t)})}nonempty(e){return this.min(1,nh.errToObj(e))}trim(){return new zh({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zh({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zh({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Uh(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}zh.create=e=>new zh({checks:[],typeName:km.ZodString,coerce:e?.coerce??!1,...mh(e)});class qh extends yh{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Qv.number){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.number,received:t.parsedType}),sh}let t;const r=new ah;for(const n of this._def.checks)if("int"===n.kind)Gv.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==Uh(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_finite,message:n.message}),r.dirty()):Gv.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,nh.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nh.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nh.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nh.toString(t))}setLimit(e,t,r,n){return new qh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nh.toString(n)}]})}_addCheck(e){return new qh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:nh.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nh.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nh.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nh.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nh.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nh.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:nh.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nh.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nh.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&Gv.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}qh.create=e=>new qh({checks:[],typeName:km.ZodNumber,coerce:e?.coerce||!1,...mh(e)});class Wh extends yh{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Qv.bigint)return this._getInvalidInput(e);let t;const r=new ah;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):Gv.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.bigint,received:t.parsedType}),sh}gte(e,t){return this.setLimit("min",e,!0,nh.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nh.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nh.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nh.toString(t))}setLimit(e,t,r,n){return new Wh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nh.toString(n)}]})}_addCheck(e){return new Wh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nh.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nh.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nh.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nh.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nh.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Wh.create=e=>new Wh({checks:[],typeName:km.ZodBigInt,coerce:e?.coerce??!1,...mh(e)});class Bh extends yh{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Qv.boolean){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.boolean,received:t.parsedType}),sh}return ch(e.data)}}Bh.create=e=>new Bh({typeName:km.ZodBoolean,coerce:e?.coerce||!1,...mh(e)});class Hh extends yh{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Qv.date){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.date,received:t.parsedType}),sh}if(Number.isNaN(e.data.getTime())){return ih(this._getOrReturnCtx(e),{code:Yv.invalid_date}),sh}const t=new ah;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):Gv.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Hh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:nh.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:nh.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Hh.create=e=>new Hh({checks:[],coerce:e?.coerce||!1,typeName:km.ZodDate,...mh(e)});class Gh extends yh{_parse(e){if(this._getType(e)!==Qv.symbol){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.symbol,received:t.parsedType}),sh}return ch(e.data)}}Gh.create=e=>new Gh({typeName:km.ZodSymbol,...mh(e)});class Zh extends yh{_parse(e){if(this._getType(e)!==Qv.undefined){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.undefined,received:t.parsedType}),sh}return ch(e.data)}}Zh.create=e=>new Zh({typeName:km.ZodUndefined,...mh(e)});class Kh extends yh{_parse(e){if(this._getType(e)!==Qv.null){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.null,received:t.parsedType}),sh}return ch(e.data)}}Kh.create=e=>new Kh({typeName:km.ZodNull,...mh(e)});class Qh extends yh{constructor(){super(...arguments),this._any=!0}_parse(e){return ch(e.data)}}Qh.create=e=>new Qh({typeName:km.ZodAny,...mh(e)});class Jh extends yh{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ch(e.data)}}Jh.create=e=>new Jh({typeName:km.ZodUnknown,...mh(e)});class Yh extends yh{_parse(e){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.never,received:t.parsedType}),sh}}Yh.create=e=>new Yh({typeName:km.ZodNever,...mh(e)});class Xh extends yh{_parse(e){if(this._getType(e)!==Qv.undefined){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.void,received:t.parsedType}),sh}return ch(e.data)}}Xh.create=e=>new Xh({typeName:km.ZodVoid,...mh(e)});class em extends yh{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==Qv.array)return ih(t,{code:Yv.invalid_type,expected:Qv.array,received:t.parsedType}),sh;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(e||o)&&(ih(t,{code:e?Yv.too_big:Yv.too_small,minimum:o?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(ih(t,{code:Yv.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(ih(t,{code:Yv.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new vh(t,e,t.path,r)))).then(e=>ah.mergeArray(r,e));const o=[...t.data].map((e,r)=>n.type._parseSync(new vh(t,e,t.path,r)));return ah.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new em({...this._def,minLength:{value:e,message:nh.toString(t)}})}max(e,t){return new em({...this._def,maxLength:{value:e,message:nh.toString(t)}})}length(e,t){return new em({...this._def,exactLength:{value:e,message:nh.toString(t)}})}nonempty(e){return this.min(1,e)}}function tm(e){if(e instanceof rm){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=mm.create(tm(n))}return new rm({...e._def,shape:()=>t})}return e instanceof em?new em({...e._def,type:tm(e.element)}):e instanceof mm?mm.create(tm(e.unwrap())):e instanceof ym?ym.create(tm(e.unwrap())):e instanceof am?am.create(e.items.map(e=>tm(e))):e}em.create=(e,t)=>new em({type:e,minLength:null,maxLength:null,exactLength:null,typeName:km.ZodArray,...mh(t)});class rm extends yh{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Gv.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==Qv.object){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.object,received:t.parsedType}),sh}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof Yh&&"strip"===this._def.unknownKeys))for(const e in r.data)o.includes(e)||i.push(e);const a=[];for(const e of o){const t=n[e],o=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new vh(r,o,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Yh){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)i.length>0&&(ih(r,{code:Yv.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new vh(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of a){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>ah.mergeObjectSync(t,e)):ah.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return nh.errToObj,new rm({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{const n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:nh.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new rm({...this._def,unknownKeys:"strip"})}passthrough(){return new rm({...this._def,unknownKeys:"passthrough"})}extend(e){return new rm({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new rm({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:km.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new rm({...this._def,catchall:e})}pick(e){const t={};for(const r of Gv.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new rm({...this._def,shape:()=>t})}omit(e){const t={};for(const r of Gv.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new rm({...this._def,shape:()=>t})}deepPartial(){return tm(this)}partial(e){const t={};for(const r of Gv.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new rm({...this._def,shape:()=>t})}required(e){const t={};for(const r of Gv.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof mm;)e=e._def.innerType;t[r]=e}return new rm({...this._def,shape:()=>t})}keyof(){return dm(Gv.objectKeys(this.shape))}}rm.create=(e,t)=>new rm({shape:()=>e,unknownKeys:"strip",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)}),rm.strictCreate=(e,t)=>new rm({shape:()=>e,unknownKeys:"strict",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)}),rm.lazycreate=(e,t)=>new rm({shape:e,unknownKeys:"strip",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)});class nm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map(e=>new Xv(e.ctx.common.issues));return ih(t,{code:Yv.invalid_union,unionErrors:r}),sh});{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map(e=>new Xv(e));return ih(t,{code:Yv.invalid_union,unionErrors:o}),sh}}get options(){return this._def.options}}nm.create=(e,t)=>new nm({options:e,typeName:km.ZodUnion,...mh(t)});function om(e,t){const r=Jv(e),n=Jv(t);if(e===t)return{valid:!0,data:e};if(r===Qv.object&&n===Qv.object){const r=Gv.objectKeys(t),n=Gv.objectKeys(e).filter(e=>-1!==r.indexOf(e)),o={...e,...t};for(const r of n){const n=om(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(r===Qv.array&&n===Qv.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const o=om(e[n],t[n]);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return r===Qv.date&&n===Qv.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class im extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(uh(e)||uh(n))return sh;const o=om(e.value,n.value);return o.valid?((dh(e)||dh(n))&&t.dirty(),{status:t.value,value:o.data}):(ih(r,{code:Yv.invalid_intersection_types}),sh)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}im.create=(e,t,r)=>new im({left:e,right:t,typeName:km.ZodIntersection,...mh(r)});class am extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.array)return ih(r,{code:Yv.invalid_type,expected:Qv.array,received:r.parsedType}),sh;if(r.data.length<this._def.items.length)return ih(r,{code:Yv.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),sh;!this._def.rest&&r.data.length>this._def.items.length&&(ih(r,{code:Yv.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new vh(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>ah.mergeArray(t,e)):ah.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new am({...this._def,rest:e})}}am.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new am({items:e,typeName:km.ZodTuple,rest:null,...mh(t)})};class sm extends yh{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.map)return ih(r,{code:Yv.invalid_type,expected:Qv.map,received:r.parsedType}),sh;const n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new vh(r,e,r.path,[i,"key"])),value:o._parse(new vh(r,t,r.path,[i,"value"]))}));if(r.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const r of i){const n=await r.key,o=await r.value;if("aborted"===n.status||"aborted"===o.status)return sh;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}})}{const e=new Map;for(const r of i){const n=r.key,o=r.value;if("aborted"===n.status||"aborted"===o.status)return sh;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}}}}sm.create=(e,t,r)=>new sm({valueType:t,keyType:e,typeName:km.ZodMap,...mh(r)});class lm extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.set)return ih(r,{code:Yv.invalid_type,expected:Qv.set,received:r.parsedType}),sh;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(ih(r,{code:Yv.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(ih(r,{code:Yv.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const o=this._def.valueType;function i(e){const r=new Set;for(const n of e){if("aborted"===n.status)return sh;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map((e,t)=>o._parse(new vh(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>i(e)):i(a)}min(e,t){return new lm({...this._def,minSize:{value:e,message:nh.toString(t)}})}max(e,t){return new lm({...this._def,maxSize:{value:e,message:nh.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}lm.create=(e,t)=>new lm({valueType:e,minSize:null,maxSize:null,typeName:km.ZodSet,...mh(t)});class cm extends yh{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}cm.create=(e,t)=>new cm({getter:e,typeName:km.ZodLazy,...mh(t)});class um extends yh{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return ih(t,{received:t.data,code:Yv.invalid_literal,expected:this._def.value}),sh}return{status:"valid",value:e.data}}get value(){return this._def.value}}function dm(e,t){return new fm({values:e,typeName:km.ZodEnum,...mh(t)})}um.create=(e,t)=>new um({value:e,typeName:km.ZodLiteral,...mh(t)});class fm extends yh{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return ih(t,{expected:Gv.joinValues(r),received:t.parsedType,code:Yv.invalid_type}),sh}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return ih(t,{received:t.data,code:Yv.invalid_enum_value,options:r}),sh}return ch(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return fm.create(e,{...this._def,...t})}exclude(e,t=this._def){return fm.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}fm.create=dm;class pm extends yh{_parse(e){const t=Gv.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Qv.string&&r.parsedType!==Qv.number){const e=Gv.objectValues(t);return ih(r,{expected:Gv.joinValues(e),received:r.parsedType,code:Yv.invalid_type}),sh}if(this._cache||(this._cache=new Set(Gv.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=Gv.objectValues(t);return ih(r,{received:r.data,code:Yv.invalid_enum_value,options:e}),sh}return ch(e.data)}get enum(){return this._def.values}}pm.create=(e,t)=>new pm({values:e,typeName:km.ZodNativeEnum,...mh(t)});class vm extends yh{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Qv.promise&&!1===t.common.async)return ih(t,{code:Yv.invalid_type,expected:Qv.promise,received:t.parsedType}),sh;const r=t.parsedType===Qv.promise?t.data:Promise.resolve(t.data);return ch(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}vm.create=(e,t)=>new vm({type:e,typeName:km.ZodPromise,...mh(t)});class hm extends yh{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===km.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:e=>{ih(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===n.type){const e=n.transform(r.data,o);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return sh;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?sh:"dirty"===n.status||"dirty"===t.value?lh(n.value):n});{if("aborted"===t.value)return sh;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?sh:"dirty"===n.status||"dirty"===t.value?lh(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,o);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?sh:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?sh:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fh(e))return sh;const i=n.transform(e.value,o);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>fh(e)?Promise.resolve(n.transform(e.value,o)).then(e=>({status:t.value,value:e})):sh)}Gv.assertNever(n)}}hm.create=(e,t,r)=>new hm({schema:e,typeName:km.ZodEffects,effect:t,...mh(r)}),hm.createWithPreprocess=(e,t,r)=>new hm({schema:t,effect:{type:"preprocess",transform:e},typeName:km.ZodEffects,...mh(r)});class mm extends yh{_parse(e){return this._getType(e)===Qv.undefined?ch(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}mm.create=(e,t)=>new mm({innerType:e,typeName:km.ZodOptional,...mh(t)});class ym extends yh{_parse(e){return this._getType(e)===Qv.null?ch(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ym.create=(e,t)=>new ym({innerType:e,typeName:km.ZodNullable,...mh(t)});class gm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Qv.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}gm.create=(e,t)=>new gm({innerType:e,typeName:km.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...mh(t)});class bm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ph(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Xv(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Xv(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}bm.create=(e,t)=>new bm({innerType:e,typeName:km.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...mh(t)});class xm extends yh{_parse(e){if(this._getType(e)!==Qv.nan){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.nan,received:t.parsedType}),sh}return{status:"valid",value:e.data}}}xm.create=e=>new xm({typeName:km.ZodNaN,...mh(e)});Symbol("zod_brand");class wm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class jm extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?sh:"dirty"===e.status?(t.dirty(),lh(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?sh:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new jm({in:e,out:t,typeName:km.ZodPipeline})}}class _m extends yh{_parse(e){const t=this._def.innerType._parse(e),r=e=>(fh(e)&&(e.value=Object.freeze(e.value)),e);return ph(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}_m.create=(e,t)=>new _m({innerType:e,typeName:km.ZodReadonly,...mh(t)});rm.lazycreate;var km;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(km||(km={}));const Sm=zh.create,Om=(qh.create,xm.create,Wh.create,Bh.create),Nm=(Hh.create,Gh.create,Zh.create,Kh.create,Qh.create,Jh.create,Yh.create,Xh.create,em.create),Pm=rm.create,Cm=(rm.strictCreate,nm.create,im.create,am.create,sm.create,lm.create,cm.create,um.create,fm.create),Em=(pm.create,vm.create,hm.create,mm.create,ym.create,hm.createWithPreprocess,jm.create,e=>qh.create({...e,coerce:!0}));var Rm=/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/,Am=Pm({chosen_plugins:Nm(Sm()),ip_tags:Nm(Sm().refine(function(e){return Rm.test(e)},{message:"Invalid IP address"})).min(1,{message:"At least one IP address is required"})}),Tm=Pm({enable_maintenance:Om(),show_subscribers_only:Om(),title:Sm().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Sm().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Sm().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Sm().optional(),background_image_id:Em().optional(),logo:Sm().optional(),logo_id:Em().optional(),template:Sm().optional()}),Dm=Pm({enable_comingsoon:Om(),show_subscribers_only:Om(),title:Sm().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Sm().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Sm().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Sm().optional(),background_image_id:Em().optional(),logo:Sm().optional(),logo_id:Em().optional(),template:Sm().optional()}),Fm=Pm({activeTheme:Sm().min(1,{message:"Please select a theme"})}),Im=Pm({display_name:Sm().min(1,{message:"Display name is required"}),email:Sm().email({message:"Invalid email address"}),role:Sm().min(1,{message:"Please select a role"}),expires_at:Cm(["1_hour","3_hours","6_hours","12_hours","1_day","3_days","1_week","2_weeks","1_month","3_months","6_months","1_year","custom"],{message:"Please select an expiration time"}),redirect_url:Sm().url({message:"Invalid URL format"}),ip_address:Sm().optional().refine(function(e){return!e||Rm.test(e)},{message:"Invalid IP address"})});function Mm(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Lm(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Lm(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Lm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Lm(d,"constructor",c),Lm(c,"constructor",l),l.displayName="GeneratorFunction",Lm(c,o,"GeneratorFunction"),Lm(d),Lm(d,o,"Generator"),Lm(d,n,function(){return this}),Lm(d,"toString",function(){return"[object Generator]"}),(Mm=function(){return{w:i,m:f}})()}function Lm(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lm=function(e,t,r,n){function i(t,r){Lm(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Lm(e,t,r,n)}function Vm(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function $m(e){return function(e){if(Array.isArray(e))return qm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Um(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Um(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Um(e,t){if(e){if("string"==typeof e)return qm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qm(e,t):void 0}}function qm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Wm(e){var t,r=e.tags,n=e.onChange,i=zm((0,a().useState)(""),2),s=i[0],l=i[1],c=zm((0,a().useState)(null),2),u=c[0],d=c[1],f=function(){var e=s.trim();e&&(Rm.test(e)?r.includes(e)||(n([].concat($m(r),[e])),l(""),d(null)):d((0,mi.__)("Invalid IP address","versatile-toolkit")))},p=oa({mutationFn:(t=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_add_my_ip",e.n=1,Oa(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to add IP","versatile-toolkit"))}}),v=function(){var e,t=(e=Mm().m(function e(){var t,o,i;return Mm().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,p.mutateAsync({});case 1:if(t=e.v,o=t.data,i=null==o?void 0:o.ip,!r.includes(i)){e.n=2;break}return Lr.success((0,mi.__)("System Ip already added!","versatile-toolkit")),e.a(2);case 2:!r.includes(i)&&i&&(n([].concat($m(r),[i])),Lr.success((0,mi.__)("System Ip address added","versatile-toolkit")));case 3:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Vm(i,n,o,a,s,"next",e)}function s(e){Vm(i,n,o,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)("div",{className:"vt-relative",children:[(0,o().jsx)(Kv,{type:"text",placeholder:(0,mi.__)("Enter IP address","versatile-toolkit"),value:s,onChange:function(e){l(e.target.value),u&&d(null)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),f())},onBlur:function(e){f()}}),(0,o().jsx)(vs,{type:"button",size:"xs",className:"vt-absolute vt-right-1 vt-top-1/2 -vt-translate-y-1/2",onClick:v,children:(0,o().jsx)(bi,{isLoading:p.isPending,loadingText:(0,mi.__)("Add My IP","versatile-toolkit"),size:"xs",children:(0,mi.__)("Add My IP","versatile-toolkit")})})]}),u&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:u}),(0,o().jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-mt-2",children:r.map(function(e){return(0,o().jsxs)(xs,{variant:"default",className:"vt-flex vt-items-center vt-gap-1",children:[e,(0,o().jsxs)(vs,{type:"button",variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(){return t=e,void n(r.filter(function(e){return e!==t}));var t},"aria-label":(0,mi.__)("Remove IP address","versatile-toolkit"),children:[(0,o().jsx)(pd,{size:12,"aria-hidden":!0}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Remove","versatile-toolkit")})]})]},e)})})]})}function Bm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Gm(e){var t=e.selectedTheme,r=e.onChange,n=Bm((0,a().useState)([]),2),i=n[0],s=n[1],l=Bm((0,a().useState)(!1),2),c=l[0],u=l[1],d=Fv().data;(0,a().useEffect)(function(){d&&s(d.data)},[d]);var f=i.find(function(e){return e.slug===t});return(0,o().jsx)("div",{children:(0,o().jsxs)(Nv,{open:c,onOpenChange:u,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":c,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-3 vt-bg-transparent",children:[(0,o().jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-1 vt-flex-1 vt-text-left",children:f?(0,o().jsx)("span",{className:"vt-font-medium",children:f.label}):(0,o().jsx)("span",{className:"vt-text-muted-foreground",children:(0,mi.__)("Select a theme...","versatile-toolkit")})}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-full vt-p-0",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search theme...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No theme found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:i.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return function(e){r(e),u(!1)}(e.slug)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",t===e.slug?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}var Zm=e=>"checkbox"===e.type,Km=e=>"file"===e.type,Qm=e=>e instanceof Date,Jm=e=>null==e;const Ym=e=>"object"==typeof e;var Xm=e=>!Jm(e)&&!Array.isArray(e)&&Ym(e)&&!Qm(e),ey=e=>Xm(e)&&e.target?Zm(e.target)?e.target.checked:Km(e.target)?e.target.files:e.target.value:e;const ty=/[.[\]'"]/;var ry=e=>e.split(ty).filter(Boolean);var ny=(e,t)=>t.split(".").some((t,r,n)=>!isNaN(Number(t))&&e.has(n.slice(0,r).join("."))),oy="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function iy(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);const t="undefined"!=typeof Blob&&e instanceof Blob,r="undefined"!=typeof FileList&&e instanceof FileList;if(oy&&(t||r))return e;const n=Array.isArray(e),o=Object.getPrototypeOf(e);if(!n&&o&&o.constructor!==Object)return e;const i=n?new Array(e.length):Object.create(o);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=iy(e[t]));return i}const ay="blur",sy="focusout",ly="change",cy="submit",uy="trigger",dy="valid",fy="onBlur",py="onChange",vy="onSubmit",hy="onTouched",my="all",yy="max",gy="min",by="maxLength",xy="minLength",wy="pattern",jy="required",_y="validate",ky=[jy,gy,yy,xy,by,wy,_y],Sy="form",Oy="root",Ny=["__proto__","constructor","prototype"],Py=/^\w*$/;var Cy=e=>Py.test(e),Ey=e=>void 0===e,Ry=(e,t,r)=>{if(!t||!Xm(e))return r;const n=Cy(t)?[t]:ry(t);if(n.some(e=>Ny.includes(e)))return r;const o=n.reduce((e,t)=>Jm(e)?void 0:e[t],e);return Ey(o)||o===e?Ey(e[t])?r:e[t]:o},Ay=e=>"boolean"==typeof e,Ty=e=>"function"==typeof e,Dy=(e,t,r)=>{let n=-1;const o=Cy(t)?[t]:ry(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=Xm(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if(Ny.includes(t))return;e[t]=i,e=e[t]}};const Fy=a().createContext(null);Fy.displayName="HookFormControlContext";const Iy=()=>a().useContext(Fy);var My=(e,t,r,n=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==my&&(t._proxyFormState[o]=!n||my),r&&(r[o]=!0),e[o]}});return o};const Ly="undefined"!=typeof window?a().useLayoutEffect:a().useEffect;var Vy=e=>Jm(e)||!Ym(e);const $y=(e,t)=>0===t.length&&!Array.isArray(e)&&null!==Object.getPrototypeOf(e)&&!(e=>{const t=e.constructor&&e.constructor.prototype;return Xm(t)&&t.hasOwnProperty("isPrototypeOf")})(e);function zy(e,t,r=!1,n=new WeakMap){if(e===t)return!0;if(Vy(e)||Vy(t))return Object.is(e,t);if(Qm(e)&&Qm(t))return Object.is(e.getTime(),t.getTime());if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return!1;const o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;if($y(e,o)||$y(t,i))return Object.is(e,t);if(!o.length&&Array.isArray(e)!==Array.isArray(t))return!1;const a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{const r=new WeakSet;r.add(t),n.set(e,r)}for(const i of o){const o=e[i];if(!Object.prototype.hasOwnProperty.call(t,i))return!1;if(!r||"ref"!==i){const e=t[i];if(Qm(o)&&Qm(e)||(Xm(o)||Array.isArray(o))&&(Xm(e)||Array.isArray(e))?!zy(o,e,r,n):!Object.is(o,e))return!1}}return!0}const Uy=({defaultValues:e,...t})=>({...iy(t),defaultValues:e});function qy(e,t=iy){const r=a().useRef(!1),n=a().useRef(!1),o=a().useRef(void 0),i=a().useRef(0);i.current++,!n.current&&e&&(n.current=!0,o.current=t(e()));return{resyncIfNeeded:a().useCallback((e,t,a)=>{if(e&&(r.current||n.current&&i.current>1)){const e=t();zy(o.current,e)||a(e)}r.current=!0},[]),snapshot:a().useCallback((e,r)=>{e&&(o.current=t(r()))},[t])}}function Wy(e){const t=Iy(),{control:r=t,disabled:n,name:o,exact:i}=e||{},s=()=>({...r._formState,defaultValues:r._defaultValues}),[l,c]=a().useState(s),u=a().useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:d,snapshot:f}=qy(s,Uy);return Ly(()=>{d(!n,s,c);const e=r._subscribe({name:o,formState:u.current,exact:i,callback:e=>{!n&&c({...r._formState,...e,defaultValues:r._defaultValues})}});return()=>{e(),f(!n,s)}},[r,o,n,i,d,f]),a().useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),a().useMemo(()=>My(l,r,u.current,!1),[l,r])}var By=e=>"string"==typeof e,Hy=(e,t,r,n,o)=>By(e)?(n&&t.watch.add(e),Ry(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),Ry(r,e,Ry(o,e)))):(n&&(t.watchAll=!0),r);function Gy(e){const t=Iy(),{control:r=t,name:n,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},c=a().useRef(o),u=a().useRef(l),d=a().useRef(r),f=a().useRef(n);u.current=l;const p=()=>{const e=r._getWatch(n,c.current);return u.current?u.current(e):e},[v,h]=a().useState(p),m=a().useRef(v),y=a().useCallback(e=>{const t=Hy(n,r._names,e||r._formValues,!1,c.current);return u.current?u.current(t):t},[r._formValues,r._names,n]),g=a().useCallback(e=>{if(!i){const t=Hy(n,r._names,e||r._formValues,!1,c.current);if(u.current){const e=u.current(t);zy(e,m.current)||(h(e),m.current=e)}else h(t),m.current=t}},[r._formValues,r._names,i,n]),{resyncIfNeeded:b,snapshot:x}=qy(p),w=a().useRef(g);w.current=g;const j=a().useRef(y);j.current=y,Ly(()=>{d.current===r&&zy(f.current,n)?b(!i,()=>j.current(),e=>{const t=iy(e);h(t),m.current=t}):(d.current=r,f.current=n,w.current());const e=r._subscribe({name:n,formState:{values:!0},exact:s,callback:e=>{w.current(e.values)}});return()=>{e(),x(!i,()=>j.current())}},[r,s,n,i,b,x]),a().useEffect(()=>r._removeUnmounted());const _=d.current!==r,k=f.current,S=a().useMemo(()=>!_&&!zy(k,n),[_,n,k]);(_||S)&&(c.current=o);return!i&&(_||S)?y():v}function Zy(e){const t=Iy(),{name:r,disabled:n,control:o=t,shouldUnregister:i,defaultValue:s,exact:l=!0}=e,c=ny(o._names.array,r),u=a().useMemo(()=>{const e=Ry(o._formValues,r,Ry(o._defaultValues,r,s));return Ey(e)?function(e,t){const r=ry(t);let n=e._formValues,o=e._defaultValues;for(let e=0;e<r.length-1;e++){const t=r[e];if(n=null==n?n:n[t],o=null==o?o:o[t],null===n||null===o)return null}}(o,r):e},[o,r,s]),d=Gy({control:o,name:r,defaultValue:u,exact:l}),f=Wy({control:o,name:r,exact:l}),p=a().useRef(e),v=a().useRef(i),h=a().useRef(null),m=a().useRef(void 0),y=a().useRef(o.register(r,{...e.rules,value:m.current!==r||Ry(o._fields,r)?d:void 0,...Ay(e.disabled)?{disabled:e.disabled}:{}}));m.current=r,p.current=e;const g=a().useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ry(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ry(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ry(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ry(f.validatingFields,r)},error:{enumerable:!0,get:()=>Ry(f.errors,r)}}),[f,r]),b=a().useCallback(e=>{const t=ey(e);return Ry(o._fields,r)||(y.current=o.register(r,{...p.current.rules,value:t})),y.current.onChange({target:{value:ey(e),name:r},type:ly})},[r,o]),x=a().useCallback(()=>{const e=Ry(o._formValues,r);return Ry(o._fields,r)||(y.current=o.register(r,{...p.current.rules,value:e})),y.current.onBlur({target:{value:e,name:r},type:ay})},[r,o]),w=a().useCallback(e=>{e&&(h.current={focus:()=>Ty(e.focus)&&e.focus(),select:()=>Ty(e.select)&&e.select(),setCustomValidity:t=>Ty(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Ty(e.reportValidity)&&e.reportValidity()});const t=Ry(o._fields,r);t&&t._f&&e&&(t._f.ref=h.current,t._f._c=!0)},[o._fields,r]),j=a().useMemo(()=>({name:r,value:d,...Ay(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:b,onBlur:x,ref:w}),[r,n,f.disabled,b,x,w,d]);return a().useEffect(()=>{if(v.current=i,o._options.shouldUnregister||i){const e=iy(Ry(i?o._defaultValues:o._options.values||o._defaultValues,r,Ry(o._options.defaultValues,r,p.current.defaultValue)));Dy(o._defaultValues,r,e),Ey(Ry(o._formValues,r))&&Dy(o._formValues,r,e)}else c||Ey(p.current.defaultValue)||!Ey(Ry(o._defaultValues,r))||(Dy(o._defaultValues,r,iy(p.current.defaultValue)),o._subjects.state.next({defaultValues:o._defaultValues}))},[o,r,c,i]),a().useEffect(()=>{y.current=o.register(r,{...p.current.rules,...Ay(p.current.disabled)?{disabled:p.current.disabled}:{}});const e=(e,t)=>{const r=Ry(o._fields,e);r&&r._f&&(r._f.mount=t,r._f._c=t)};if(e(r,!0),!c&&o.register(r,{...p.current.rules,...Ay(p.current.disabled)?{disabled:p.current.disabled}:{}}),h.current){const e=Ry(o._fields,r);e&&e._f&&(e._f.ref=h.current)}return()=>{const t=o._options.shouldUnregister||v.current;(c?t&&!o._state.action:t)?o.unregister(r):e(r,!1)}},[r,o,c]),a().useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),a().useMemo(()=>({field:j,formState:f,fieldState:g}),[j,f,g])}const Ky=e=>e.render(Zy(e));var Qy=e=>({isOnSubmit:!e||e===vy,isOnBlur:e===fy,isOnChange:e===py,isOnAll:e===my,isOnTouch:e===hy}),Jy=(e,t,r)=>{if(r)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const r of t.watch)if(e.startsWith(r)&&"."===e.charAt(r.length))return!0;return!1};const Yy=(e,t,r)=>{var n;for(const o of r||Object.keys(e)){if("_f"===o)continue;const i=r?Ry(e,o):e[o];if(i){const{_f:e}=i;if(e){const r=null===(n=e.refs)||void 0===n?void 0:n.find(e=>!e.disabled);if(r&&t(r,e.name))return!0;if(e.ref&&t(e.ref,e.name))return!0;if(Yy(i,t))return!0}else if((Xm(i)||Array.isArray(i))&&Yy(i,t))return!0}}};var Xy=(e,t,r)=>{const n=Ry(e,r),o=Array.isArray(n)?n:[];return Dy(o,Oy,Ry(t[r],Oy,t[r])),Dy(e,r,o),e},eg=e=>Xm(e)&&!Object.keys(e).length,tg=e=>{if(!oy)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rg=e=>"radio"===e.type,ng=e=>e instanceof RegExp,og=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const ig={value:!1,isValid:!1},ag={value:!0,isValid:!0};var sg=e=>{if(!Array.isArray(e))return ig;if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}const t=e[0];return t&&t.checked&&!t.disabled?t.attributes&&"value"in t.attributes?Ey(t.value)||""===t.value?ag:{value:t.value,isValid:!0}:ag:ig};const lg={isValid:!1,value:null};var cg=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,lg):lg;function ug(e,t,r="validate"){if(By(e)||Array.isArray(e)&&e.length&&e.every(By)||Ay(e)&&!e)return{type:r,message:By(e)?e:"",ref:t}}var dg=e=>Xm(e)&&!ng(e)?e:{value:e,message:""},fg=async(e,t,r,n,o,i)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:v,name:h,valueAsNumber:m,mount:y,_c:g}=e._f,b=Ry(r,h);if(!y||t.has(h))return{};const x=s?s[0]:a,w=e=>{if(o&&x.reportValidity){const t=Ay(e)?"":e||"";s?s.forEach(e=>Ty(e.setCustomValidity)&&e.setCustomValidity(t)):x.setCustomValidity(t),x.reportValidity()}},j={},_=!g&&rg(a),k=!g&&Zm(a),S=_||k,O=(m||Km(a))&&Ey(a.value)&&Ey(b)||tg(a)&&""===a.value&&!g||""===b||Array.isArray(b)&&!b.length,N=og.bind(null,h,n,j),P=(e,t,r,n=by,o=xy)=>{const i=e?t:r;j[h]={type:e?n:o,message:i,ref:a,...N(e?n:o,i)}};if(i?!Array.isArray(b)||!b.length:l&&(!S&&(O||Jm(b))||Ay(b)&&!b||k&&!sg(s).isValid||_&&!cg(s).isValid)){const{value:e,message:t}=By(l)?{value:!!l,message:l}:dg(l);if(e&&(j[h]={type:jy,message:t,ref:x,...N(jy,t)},!n))return w(t),j}if(!(O||Jm(d)&&Jm(f))){let e,t;const r=dg(f),o=dg(d);if(Jm(b)||Qm(b)||isNaN(b)){const n=!g&&a.valueAsDate||new Date(b),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;By(r.value)&&b&&(e=s?i(b)>i(r.value):l?b>r.value:n>new Date(r.value)),By(o.value)&&b&&(t=s?i(b)<i(o.value):l?b<o.value:n<new Date(o.value))}else{const n=!g&&a.valueAsNumber||(b?+b:b);Jm(r.value)||(e=n>r.value),Jm(o.value)||(t=n<o.value)}if((e||t)&&(P(!!e,r.message,o.message,yy,gy),!n))return w(j[h].message),j}if((!Jm(c)||!Jm(u))&&!O&&(By(b)||i&&Array.isArray(b))){const e=dg(c),t=dg(u),r=!Jm(e.value)&&b.length>+e.value,o=!Jm(t.value)&&b.length<+t.value;if((r||o)&&(P(r,e.message,t.message),!n))return w(j[h].message),j}if(p&&!O&&By(b)){const{value:e,message:t}=dg(p);if(ng(e)&&!b.match(e)&&(j[h]={type:wy,message:t,ref:a,...N(wy,t)},!n))return w(t),j}if(v)if(Ty(v)){const e=ug(await v(b,r),x);if(e&&(j[h]={...e,...N(_y,e.message)},!n))return w(e.message),j}else if(Xm(v)){let e={};for(const t in v){if(!eg(e)&&!n)break;const o=ug(await v[t](b,r),x,t);o&&(e={...o,...N(t,o.message)},n||w(o.message),n&&(j[h]=e))}if(!eg(e)&&(j[h]={ref:x,...e},!n))return j}const C=j[h];return w(!C||C.message),j},pg=e=>Array.isArray(e)?e:[e];var vg=e=>Array.isArray(e)?e.filter(Boolean):[];function hg(e,t){if(!Xm(e)&&!Array.isArray(e))return e;if(By(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Cy(t)?[t]:ry(t);if(r.some(e=>Ny.includes(String(e))))return e;const n=1===r.length?e:function(e,t){const r=t.length-1;let n=0;for(;n<r;){if(Jm(e)){e=void 0;break}e=e[t[n]],n++}return e}(e,r),o=r.length-1,i=r[o];return n&&(Xm(n)||Array.isArray(n))&&delete n[i],0!==o&&(Xm(n)&&eg(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ey(e[t]))return!1;return!0}(n))&&hg(e,r.slice(0,-1)),e}var mg=()=>{let e=new Set,t=0;return{get observers(){return Array.from(e)},next:r=>{const n=e;t++;for(const e of n)e.next&&e.next(r);n===e&&t--},subscribe:r=>(e.add(r),{unsubscribe:()=>{t&&(e=new Set(e),t=0),e.delete(r)}}),unsubscribe:()=>{e=new Set,t=0}}};function yg(e,t){const r=Array.isArray(e)?[]:{};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n],i=t[n];o&&(Xm(o)||Array.isArray(o))&&i?r[n]=yg(o,i):e[n]&&(r[n]=i)}return r}const gg=(e,t)=>null!==e&&Ym(e)&&Object.prototype.hasOwnProperty.call(e,t);var bg=(e,t)=>{if(!t)return!1;let r=e;for(const n of Cy(t)?[t]:ry(t)){if(!gg(r,n))return gg(e,t);r=r[n]}return!0},xg=e=>"select-multiple"===e.type;var wg=e=>tg(e)&&e.isConnected;function jg(e){return Array.isArray(e)||Xm(e)}function _g(e,t,r="",n=[]){for(const o in e){const i=r?`${r}.${o}`:o,a=e[o];jg(a)&&jg(Ry(t,i))?_g(a,t,i,n):a&&n.push(i)}return n}function kg(e){return Array.isArray(e)||Xm(e)&&!(e=>{for(const t in e)if(Ty(e[t]))return!0;return!1})(e)}function Sg(e){return!(!e||!("_f"in e))}function Og(e){return Array.isArray(e)?!e.some(e=>!Ey(e)):!Object.keys(e).length}function Ng(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Pg(e,t={},r){for(const n in e){const o=e[n],i=r&&r[n];!kg(o)||Array.isArray(o)&&Sg(i)?Ey(o)||(t[n]=!0):(t[n]=Array.isArray(o)?[]:{},Pg(o,t[n],i),Og(t[n])&&Ng(t,n))}return t}function Cg(e,t,r,n){r||(r=Pg(t,Array.isArray(Jm(t)?e:t)?[]:{},n));for(const o in e){const i=e[o],a=n&&n[o];!kg(i)||Array.isArray(i)&&Sg(a)?zy(i,Jm(t)?void 0:t[o])?Ng(r,o):r[o]=!0:(Ey(t)||Vy(r[o])?r[o]=Pg(i,Array.isArray(i)?[]:{},a):Cg(i,Jm(t)?{}:t[o],r[o],a),Og(r[o])&&Ng(r,o))}return r}var Eg=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ey(e)?e:t?""===e?NaN:e?+e:e:r&&By(e)?new Date(e):n?n(e):e;function Rg(e){const t=e.ref;return Km(t)?t.files:rg(t)?cg(e.refs).value:xg(t)?[...t.selectedOptions].filter(e=>{var t;return!e.disabled&&!(null===(t=e.closest)||void 0===t?void 0:t.call(e,"optgroup[disabled]"))}).map(({value:e})=>e):Zm(t)?sg(e.refs).value:Eg(t.value,e)}var Ag=e=>Ey(e)?e:ng(e)?e.source:Xm(e)?ng(e.value)?e.value.source:e.value:e;const Tg="AsyncFunction";var Dg=e=>{if(!e||!e.validate)return!1;if(Ty(e.validate))return e.validate.constructor.name===Tg;if(Xm(e.validate))for(const t in e.validate)if(e.validate[t].constructor.name===Tg)return!0;return!1};function Fg(e,t,r){const n=Ry(e,r);if(n&&(n.type||n.message)||Array.isArray(n))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=Ry(t,n),a=Ry(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};o.pop()}return{name:r}}const Ig=(e,t,r)=>r?e===t||e.startsWith(t+"."):e.startsWith(t)||t.startsWith(e);var Mg=(e,t,r)=>{if(!e||!t||e===t)return!0;if(!Array.isArray(e))return Ig(e,t,r);for(const n of e)if(n&&Ig(n,t,r))return!0;return!1};const Lg={mode:vy,reValidateMode:py,shouldFocusError:!0},Vg={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function $g(e={}){let t={...Lg,...e},r={...iy(Vg),isLoading:Ty(t.defaultValues),errors:iy(t.errors)||{},disabled:t.disabled||!1},n={},o=(Xm(t.defaultValues)||Xm(t.values))&&iy(t.defaultValues||t.values)||{},i=t.shouldUnregister?{}:iy(o),a={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s=!1,l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const c={},u={},d=new Set;let f=Qy(t.mode),p=Qy(t.reValidateMode);const v={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...v},m={},y=(...e)=>e.some(e=>h[e]||m[e]),g=e=>{for(const t of d)if(Mg(t.name,e,t.exact))return!0;return!1},b={array:mg(),state:mg()};let x=0,w=0,j=0,_=0;const k={};let S=t.criteriaMode===my;const O=(e,t)=>r=>{clearTimeout(u[e]),u[e]=setTimeout(t,r)},N=e=>{clearTimeout(u[e]),delete u[e],delete c[e]},P=e=>{N(e);const t=`${e}.`;for(const e of Object.keys(c))e.startsWith(t)&&N(e)},C=async e=>{if(!a.keepIsValid&&!t.disabled&&(y("isValid")||e)){const o=++x,i=j;let a;if(t.resolver?(a=eg((await M()).errors),o===x&&R()):a=await V({fields:n,onlyCheckValid:!0,eventType:dy}),o!==x)return;if(i!==j)return C(e);a!==r.isValid&&b.state.next({isValid:a})}},E=(e,t)=>{const n=[...e];if(!n.some(e=>e&&(t?!0!==Ry(r.validatingFields,e):bg(r.validatingFields,e))))return;const o=iy(r.validatingFields);for(const e of n)e&&(t?Dy(o,e,!0):hg(o,e));zy(r.validatingFields,o)||(r.validatingFields=o)},R=(e,n)=>{!t.disabled&&y("isValidating","validatingFields")&&(E(e||l.mount,n),b.state.next({validatingFields:r.validatingFields,isValidating:!eg(r.validatingFields)}))},A=()=>{r.dirtyFields=Cg(o,i,void 0,n)},T=(e,t)=>{Dy(r.errors,e,t),r.errors={...r.errors},b.state.next({errors:r.errors})},D=e=>Cy(e)?[e]:ry(e),F=(e,c,u,d)=>{const f=Ry(n,e);if(f){if((e=>{const t=D(e);let r=i,n=o;for(let e=0;e<t.length-1;e++){const o=t[e];if(r=Jm(r)?r:r[o],n=Jm(n)?n:n[o],null===r&&null!==n)return!0}return!1})(e)||(e=>{if(!a.actionArrayLengths.size)return!1;const t=D(e);let r=i,n="",o=-1,s=0;for(let e=0;e<t.length;e++){if(Jm(r))return!1;const i=t[e];if(n=n?`${n}.${i}`:i,Array.isArray(r)&&+i>=r.length)return-1!==o&&(e!==o||+i<s);if(a.actionArrayLengths.has(n)&&(o=e+1,s=a.actionArrayLengths.get(n)),r=r[i],Ey(r)&&-1!==o&&e>o&&+t[o]<s)return!0}return!1})(e))return;const n=Ey(Ry(i,e)),p=Ry(i,e,Ey(u)?Ry(o,e):u),v=!!d&&!r.isReady&&(e=>Zm(e)?e.checked!==e.defaultChecked:"select-one"===e.type||xg(e)?(e=>{const t=[...e.options];return!e.multiple&&e.size<2&&!t.some(e=>e.defaultSelected)?e.selectedIndex!==t.findIndex(e=>{var t;return!e.disabled&&!(null===(t=e.parentElement)||void 0===t?void 0:t.matches("optgroup[disabled]"))}):t.some(e=>e.selected!==e.defaultSelected)})(e):!rg(e)&&"range"!==e.type&&"color"!==e.type&&"defaultValue"in e&&e.value!==e.defaultValue)(d);if(Ey(p)||d&&d.defaultChecked||v||c){const t=c?p:Rg(f._f);Ey(t)&&(e=>{let t=i;for(const r of D(e)){if(Array.isArray(t)&&+r>=t.length)return!0;t=t&&t[r]}return!1})(e)||(y("dirtyFields")&&!zy(Ry(i,e),t)&&(s=!0),Dy(i,e,t),v&&I(e,t))}else U(e,p);if(a.mount&&!a.action){if(t.resolver&&y("isValidating","validatingFields")?Promise.resolve().then(()=>C()):C(),n&&r.isDirty&&y("isDirty")){$()||(r.isDirty=!1,b.state.next({...r}))}t.shouldUnregister&&n&&!Ey(Ry(i,e))&&Jy(e,l)&&(a.watch=!0)}}},I=(e,a,l,c,u)=>{let d=!1,f=!1;const p={name:e};if(!t.disabled||!0===c){if(!l||c){const t=zy(Ry(o,e),a);if(y("isDirty")&&(f=r.isDirty,r.isDirty=p.isDirty=!t||$(),d=f!==p.isDirty),f=!!Ry(r.dirtyFields,e),t)hg(r.dirtyFields,e);else{const t=Ry(o,e),i=Ry(n,e),s=!!(i&&i._f||!Xm(t)&&!Array.isArray(t))||Cg(t,a,void 0,i);Dy(r.dirtyFields,e,s)}let l=!1;if(s||t&&(y("isDirty")?r.isDirty:$())){s=!1;const e=Cg(o,i,void 0,n);zy(r.dirtyFields,e)||(l=!0,((e,t)=>{for(const t in e)delete e[t];Object.assign(e,t)})(r.dirtyFields,e))}p.dirtyFields=r.dirtyFields,d=d||y("dirtyFields")&&(l||f!==!t)}if(l){const t=bg(r.touchedFields,e)?Ry(r.touchedFields,e):void 0;t||(Dy(r.touchedFields,e,l),p.touchedFields=r.touchedFields,d=d||y("touchedFields")&&t!==l)}d&&u&&b.state.next(p)}return d?p:{}},M=async e=>(R(e,!0),await t.resolver(i,t.context,((e,t,r,n)=>{const o={};for(const r of e){const e=Ry(t,r);e&&Dy(o,r,iy(e._f))}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),L=async({name:e,eventType:n,onlyCheckValid:o})=>{if(t.validate){const a=j,s=++w,l=await t.validate({formValues:i,formState:r,name:e,eventType:n});if(a!==j||n!==cy&&s!==w)return!0;if(o&&(Xm(l)?Object.values(l).some(Boolean):By(l)||!l))return!1;if(Xm(l)){let e=!0;Q(Sy);for(const t in l){const r=l[t];r&&(e=!1,J(`${Sy}.${t}`,{message:By(r.message)?r.message:"",type:r.type||_y}))}return e}return By(l)||!l?(Q(Sy),J(Sy,{message:l||"",type:_y}),!1):(Q(Sy),!0)}return!0},V=async({fields:e,onlyCheckValid:o,name:a,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{const u=j;if(t.validate&&!c.runRootValidation){c.runRootValidation=!0;if(!await L({name:a,eventType:s,onlyCheckValid:o})&&(c.valid=!1,o))return c.valid}for(const a in e){const d=e[a];if(d){const{_f:e,...f}=d;if(e){const a=l.array.has(e.name),s=d._f&&Dg(d._f),f=y("isValidating","validatingFields");s&&f&&R([e.name],!0);const p=_,v=await fg(d,l.disabled,i,S,t.shouldUseNativeValidation&&!o,a);if(u!==j)return c.valid;if(s&&f&&R([e.name]),!Ry(n,e.name)||k[e.name]>p)continue;if(v[e.name]&&(c.valid=!1,o))break;if(o||(N(e.name),Ry(v,e.name)?a?Xy(r.errors,v,e.name):Dy(r.errors,e.name,v[e.name]):hg(r.errors,e.name)),t.shouldUseNativeValidation&&v[e.name])break}!eg(f)&&await V({context:c,onlyCheckValid:o,fields:f,name:a,eventType:s})}}return c.valid},$=(e,t)=>(e&&!Ey(t)&&Dy(i,e,t),!zy(a.mount?i:o,o)),z=(e,t,r)=>{const n=a.mount?i:Ey(t)||!Ey(e)?o:t;return Hy(e,l,Ey(e)?{...n}:n,r,t)},U=(e,t,r={},o=!1,a=!1,s=!1)=>{const l=Ry(n,e);let c=t;if(l){const r=l._f;r&&(!r.disabled&&Dy(i,e,Eg(t,r)),c=tg(r.ref)&&Jm(t)?"":t,xg(r.ref)?[...r.ref.options].forEach(e=>e.selected=c.includes(e.value)):r.refs?Zm(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(c)?e.checked=!Ey(e.value)&&c.includes(e.value):e.checked=c===e.value||!!c)}):r.refs.forEach(e=>e.checked=e.value===c):Km(r.ref)?r.ref.value="":(r.ref.value=c,r.ref.type||a||s||b.state.next({name:e,values:o?i:g(e)?iy(i):void 0})))}(r.shouldDirty||r.shouldTouch)&&I(e,l&&l._f&&!l._f.disabled&&(l._f.valueAsNumber||l._f.valueAsDate||l._f.setValueAs)?Eg(t,l._f):c,r.shouldTouch,r.shouldDirty,!a),r.shouldValidate&&Z(e,{delayError:r.delayError}),r.shouldValidate&&l&&l._f&&l._f.deps&&(!Array.isArray(l._f.deps)||l._f.deps.length>0)&&Z(l._f.deps)},q=(e,t,r,o=!1,a=!1,s=!1)=>{for(const c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;const u=t[c],d=e+"."+c,f=Ry(n,d);l.array.has(d)&&b.array.next({name:d,values:o?i:iy(i)}),(l.array.has(e)||Xm(u)||f&&!f._f)&&!Qm(u)?q(d,u,r,o,a,s):U(d,u,r,o,a,s)}},W=(e,t,o,s,c=!1)=>{const u=Ry(n,e),d=l.array.has(e),f=s?t:iy(t),p=zy(Ry(i,e),f);if(p||Dy(i,e,f),d)b.array.next({name:e,values:s?i:iy(i)}),y("isDirty","dirtyFields")&&o.shouldDirty&&(A(),r.isDirty=$(e,f),c||b.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:r.isDirty})),o.shouldValidate&&Z(e,{delayError:o.delayError});else{const t=Array.isArray(f)&&!f.length||eg(f),r=!p&&!c;!u||u._f||Jm(f)||t?U(e,f,o,s,c,r):q(e,f,o,s,c,r)}if(!p&&!c){const t=Jy(e,l),n=a.mount||t?e:void 0,o=d?[]:((e,t)=>{const r=t.split("."),n=[];let o=r[0];for(let t=1;t<r.length;o+="."+r[t++])!isNaN(+r[t])&&e.has(o)&&n.push(`${o}.${r[t]}`);return n})(l.array,e),c=s?i:g(n)||o.some(g)?iy(i):void 0;b.state.next({...t&&r,name:n,values:c});for(const e of o)b.state.next({name:e,values:c&&iy(i)})}},B=(e,t,r={})=>W(e,t,r,!1),H=async e=>{a.mount=!0;const o=e.target;let s=o.name,u=!0;const d=Ry(n,s),v=_,h=e=>{u=!!Ry(n,s)&&!(k[s]>v)&&zy(e,Ry(i,s,e))};if(d){let v,m;a.keepIsValid=!1;let w=!1;const _=o.type?Rg(d._f):ey(e),k=e.type===ay||e.type===sy,P=!((e=>e.mount&&(e.required||!Ey(e.required)&&!1!==e.required||!Ey(e.min)||!Ey(e.max)||!Ey(e.maxLength)||!Ey(e.minLength)||e.pattern||e.validate))(d._f)||t.validate||t.resolver||Ry(r.errors,s)||d._f.deps),E=P||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(k,Ry(r.touchedFields,s),r.isSubmitted,p,f),A=Jy(s,l,k);Dy(i,s,iy(_)),k?o&&o.readOnly||(d._f.onBlur&&d._f.onBlur(e),Object.prototype.hasOwnProperty.call(c,s)&&(w=!0,c[s](0))):d._f.onChange&&d._f.onChange(e);const D=I(s,_,k),F=!eg(D)||A;if(!k&&b.state.next({name:s,type:e.type,...g(s)?{values:iy(i)}:{}}),E)return P&&r.isValid||!y("isValid")||("onBlur"===t.mode?k&&C():k||C()),F&&b.state.next({name:s,...A?{}:D});if(!t.resolver&&t.validate&&await L({name:s,eventType:e.type}),!k&&A&&b.state.next({...r}),t.resolver){const e=j,{errors:t}=await M([s]);if(e!==j)return;if(R([s]),h(_),!u)return void(!eg(D)&&b.state.next(D));const o=Fg(r.errors,n,s),i=Fg(t,n,o.name||s);v=i.error,s=i.name,m=eg(t)}else{const r=j,o=++x;if(R([s],!0),v=(await fg(d,l.disabled,i,S,t.shouldUseNativeValidation))[s],r!==j)return;if(R([s]),h(_),u)if(v)m=!1;else if(y("isValid")){if(m=await V({fields:n,onlyCheckValid:!0,name:s,eventType:e.type}),r!==j)return;h(_),o!==x&&(m=void 0)}}u&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&Z(d._f.deps),((e,n,o,i)=>{const a=Ry(r.errors,e),s=y("isValid")&&Ay(n)&&r.isValid!==n;if(t.delayError&&o?(c[e]=O(e,()=>T(e,o)),c[e](t.delayError)):(N(e),o?Dy(r.errors,e,o):hg(r.errors,e),r.errors={...r.errors}),(o?!zy(a,o,!0):a)||!eg(i)||s){const t={...i,...s&&Ay(n)?{isValid:n}:{},errors:r.errors,name:e};b.state.next(t)}})(s,m,v,D),w&&Object.prototype.hasOwnProperty.call(c,s)&&c[s](0))}},G=(e,t)=>{if(Ry(r.errors,t)&&e.focus)return e.focus(),1},Z=async(e,o={})=>{let i,s;a.keepIsValid=!1;const u=pg(e),d=j;if(t.resolver){const t=await(async e=>{const t=j,o=_,i=e?e.filter(e=>Ry(n,e)):[],{errors:a}=await M(e);if(t!==j)return a;if(R(e),e){for(const t of e){if(i.includes(t)&&(!Ry(n,t)||k[t]>o)){hg(a,t);continue}const e=Ry(a,t);P(t);const s=l.array.has(t)&&Xm(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e))),c=Ry(n,t),u=Xm(c)&&Object.keys(c).some(e=>"_f"!==e);s?Xy(r.errors,{[t]:e},t):e&&(e.type||e.message)||Array.isArray(e)||Xm(e)&&u?Dy(r.errors,t,e):hg(r.errors,t)}r.errors={...r.errors}}else Object.keys(c).forEach(N),r.errors=a;return a})(Ey(e)?e:u);i=eg(t),s=e?!u.some(e=>Ry(t,e)):i}else e?(s=(await Promise.all(u.map(async e=>{const t=Ry(n,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:uy})}))).every(Boolean),(s||r.isValid)&&C()):s=i=await V({fields:n,name:e,eventType:uy});if(d!==j)return s;if(o.delayError&&t.delayError&&By(e)){const n=Ry(r.errors,e);n?(hg(r.errors,e),c[e]=O(e,()=>T(e,n)),c[e](t.delayError)):N(e)}if(o.shouldTouch){const t=e=>{!l.array.has(e)&&Dy(r.touchedFields,e,!0)};for(const r of e?u:l.mount){const e=Ry(n,r);Xm(e)||Array.isArray(e)?Yy(n,(e,r)=>t(r),[r]):t(r)}}return r.errors={...r.errors},b.state.next({...!By(e)||y("isValid")&&i!==r.isValid?{}:{name:e},...t.resolver||!e?{isValid:i}:{},...o.shouldTouch&&y("touchedFields")?{touchedFields:r.touchedFields}:{},errors:r.errors}),o.shouldFocus&&!s&&Yy(n,G,e?u:l.mount),s},K=(e,t)=>{const n=t||r,o=Ry(n.errors,e);return{invalid:!!o,isDirty:!!Ry(n.dirtyFields,e),error:o,isValidating:!!Ry(n.validatingFields,e),isTouched:!!Ry(n.touchedFields,e)}},Q=e=>{const t=e?pg(e):void 0;t?t.forEach(e=>{P(e),hg(r.errors,e),r.errors={...r.errors},b.state.next({name:e,errors:r.errors})}):(Object.keys(c).forEach(N),r.errors={},b.state.next({errors:r.errors}))},J=(e,t,o)=>{var i;P(e);const a=Ry(n,e,{_f:{}}),s=a._f&&a._f.ref,l=Ry(r.errors,e)||{},{ref:c,message:u,type:d,types:f,...p}=l;if(Dy(r.errors,e,{...p,...t,ref:s}),r.errors={...r.errors},b.state.next({name:e,errors:r.errors,isValid:!1}),o&&o.shouldFocus){const e=(null===(i=a._f)||void 0===i?void 0:i.refs)?a._f.refs.find(e=>!e.disabled)||a._f.refs[0]:s;e&&e.focus&&e.focus()}},Y=e=>{const t={name:e.name,exact:e.exact};e.formState&&e.formState.values&&d.add(t);const{unsubscribe:n}=b.state.subscribe({next:t=>{if(Mg(e.name,t.name,e.exact)&&((e,t,r)=>{const n=Object.keys(e).filter(e=>"name"!==e);return!n.length||r&&n.length>=Object.keys(t).length||n.find(e=>t[e]===(!r||my))})(t,e.formState||h,e.reRenderRoot)){const n=t.values||{...i};e.callback({...r,...t,validatingFields:r.validatingFields,isValidating:r.isValidating,values:n,defaultValues:o})}}});return()=>{d.delete(t),n()}},X=(e,a={})=>{const s=e?pg(e):[...l.mount],c=new Set(s);if(e)for(const e of l.mount)s.some(t=>e.startsWith(`${t}.`))&&c.add(e);a.keepIsValidating||E(c);for(const e of c)l.mount.delete(e),l.array.delete(e),l.disabled.delete(e),hg(n,e),!a.keepValue&&hg(i,e),a.keepError||(P(e),hg(r.errors,e)),!a.keepDirty&&hg(r.dirtyFields,e),!a.keepTouched&&hg(r.touchedFields,e),!t.shouldUnregister&&!a.keepDefaultValue&&hg(o,e);a.keepError||(r.errors={...r.errors}),d.size&&b.state.next({values:iy(i)}),b.state.next({...r,...a.keepDirty?{}:{isDirty:$()},...a.keepIsValidating?{}:{isValidating:!eg(r.validatingFields)}}),!a.keepIsValid&&C()},ee=({disabled:e,name:t})=>{if(Ay(e)&&a.mount||e||l.disabled.has(t)){const r=l.disabled.has(t)!==!!e;e?l.disabled.add(t):l.disabled.delete(t),r&&a.mount&&!a.action&&C()}},te=(e,r={})=>{let i=Ry(n,e);const s=Ay(r.disabled)||Ay(t.disabled),c=!l.registerName.has(e)&&i&&i._f&&!i._f.mount;if(i&&i._f||(k[e]=++_),Dy(n,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...r}}),l.mount.add(e),i&&i._f){const t=Ry(n,e);for(const e of ky)e in r||delete t._f[e]}return i&&!c?ee({disabled:Ay(r.disabled)?r.disabled:t.disabled,name:e}):F(e,!0,r.value),{...s?{disabled:r.disabled||t.disabled}:{},...t.progressive?{required:!!Ag(r.required),min:Ag(r.min),max:Ag(r.max),minLength:Ag(r.minLength),maxLength:Ag(r.maxLength),pattern:Ag(r.pattern)}:{},name:e,onChange:H,onBlur:H,ref:s=>{if(s){l.registerName.add(e),te(e,r),l.registerName.delete(e),i=Ry(n,e);const t=Ey(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,a=(e=>rg(e)||Zm(e))(t),c=i._f.refs||[];if(a?c.find(e=>e===t):t===i._f.ref)return;const u={...i._f};a?(u.refs=[...c.filter(wg),t,...Array.isArray(Ry(o,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),Dy(n,e,{_f:u}),F(e,!1,void 0,t)}else i=Ry(n,e,{}),i._f&&(i._f.mount=!1),(t.shouldUnregister||r.shouldUnregister)&&(!ny(l.array,e)||!a.action)&&l.unMount.add(e)}}},re=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Yy(n,G,l.mount),ne=(e,o)=>async a=>{let s,u,d=!1;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let f=iy(i);b.state.next({isSubmitting:!0});const p=j,v=e=>{throw p===j&&b.state.next({isSubmitting:!1}),e};if(t.resolver){let e;try{e=await M()}catch(e){v(e)}const{errors:t,values:n}=e;if(p!==j)return;R(),Object.keys(c).forEach(N),r.errors=t,f=iy(n)}else{try{await V({fields:n,eventType:cy})}catch(e){v(e)}if(p!==j)return;hg(r.errors,Oy),r.errors={...r.errors}}if(l.disabled.size&&(Xm(f)||Array.isArray(f)))for(const e of l.disabled)hg(f,e);if(eg(r.errors)){b.state.next({errors:{}});try{s=await e(f,a)}catch(e){d=!0,u=e}}else{if(o)try{await o({...r.errors},a)}catch(e){v(e)}p===j&&(re(),setTimeout(re))}if(p===j&&b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eg(r.errors)&&!d,submitCount:r.submitCount+1,errors:r.errors}),d)throw u;return s},oe=(e,u={})=>{j++;const d=e?iy(e):o,f=iy(d),p=eg(e),v=f,m=n;if(Object.keys(c).forEach(N),u.keepDefaultValues||(o=d),!u.keepValues){if(u.keepDirtyValues){const e=new Set([...l.mount,..._g(Cg(o,i,void 0,m),r.dirtyFields)]);for(const t of e){const e=Ry(r.dirtyFields,t),n=Ry(i,t),o=Ry(v,t);e&&!Ey(n)?Dy(v,t,n):e||Ey(o)||B(t,o)}}else{if(oy&&Ey(e))for(const e of l.mount){const t=Ry(n,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(tg(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(u.keepFieldsRef)for(const e of l.mount)B(e,Ry(v,e));else n={}}if(t.shouldUnregister){if(i=u.keepDefaultValues?iy(o):{},u.keepFieldsRef)for(const e of l.mount)Dy(i,e,Ry(v,e))}else i=iy(v);b.array.next({values:{...v}}),b.state.next({name:void 0,type:void 0,values:{...v}})}l={mount:u.keepDirtyValues||u.keepFieldsRef?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:u.keepValues||u.keepDirtyValues||u.keepFieldsRef?new Set([...l.disabled].filter(e=>Ry(n,e))):new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!u.keepIsValid||!!u.keepDirtyValues||!t.shouldUnregister&&!eg(v),a.watch=!!t.shouldUnregister,a.keepIsValid=!!u.keepIsValid,a.action=!1,a.actionArrayLengths.clear(),s=!1,u.keepErrors||(r.errors={}),b.state.next({submitCount:u.keepSubmitCount?r.submitCount:0,isDirty:!p&&(u.keepDirty?r.isDirty:u.keepValues?$():!(!u.keepDefaultValues||!e||zy(e,o))),isSubmitted:!!u.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?{}:u.keepDirtyValues?u.keepDefaultValues&&i?Cg(o,i,void 0,m):r.dirtyFields:u.keepDefaultValues&&e?Cg(o,e,void 0,m):u.keepDirty?r.dirtyFields:u.keepValues?Cg(o,i,void 0,m):{},touchedFields:u.keepTouched?r.touchedFields:{},...u.keepIsValidating||!r.isValidating&&eg(r.validatingFields)?null:{validatingFields:{},isValidating:!1},errors:u.keepErrors?r.errors:{},isSubmitSuccessful:!!u.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},ie=(e,r)=>oe(Ty(e)?e(i):e,{...t.resetOptions,...r});b.state.subscribe({next:e=>{const{name:t,type:n,values:o,...i}=e;Object.keys(i).length&&(r={...r,...i})}});const ae={control:{register:te,unregister:X,getFieldState:K,handleSubmit:ne,setError:J,_subscribe:Y,_runSchema:M,_updateIsValidating:R,_focusError:re,_getWatch:z,_getDirty:$,_setValid:C,_setFieldArray:(e,o=[],l,c,u=!0,d=!0)=>{if(c&&l&&!t.disabled){a.action=!0,a.keepIsValid=!1;const t=Ry(n,e),i=t&&t._f,f=i?Object.assign([],t):t;if(a.actionArrayLengths.has(e)||a.actionArrayLengths.set(e,Array.isArray(f)?f.length:0),d&&Array.isArray(f)){const t=l(f,c.argA,c.argB)||f;i?Dy(n,e,{...t,_f:i}):u&&Dy(n,e,t)}const p=Ry(r.errors,e);if(d&&Array.isArray(p)){const t=p.root,n=l(p,c.argA,c.argB)||p;t&&(n.root=t),u&&Dy(r.errors,e,n),((e,t)=>{const r=Ry(e,t);!vg(r).length&&(!r||!r.root)&&hg(e,t)})(r.errors,e),r.errors={...r.errors}}const v=Ry(r.touchedFields,e),h=d&&Array.isArray(v);if(h){const t=l(v,c.argA,c.argB);u&&Dy(r.touchedFields,e,t)}const m=Ry(r.dirtyFields,e);if(d&&Array.isArray(m)){const t=l(m,c.argA,c.argB)||m;u&&Dy(r.dirtyFields,e,t)}y("dirtyFields")?A():s=!0,b.state.next({name:e,isDirty:$(e,o),dirtyFields:r.dirtyFields,...h&&{touchedFields:r.touchedFields},errors:r.errors,isValid:r.isValid})}else Dy(i,e,o)},_setDisabledField:ee,_setErrors:e=>{Object.keys(c).forEach(N);const t=!eg(e);r.errors=iy(e),b.state.next({errors:r.errors,...t?{isValid:!1}:{}}),!t&&a.mount&&C()},_getFieldArray:e=>vg(Ry(a.mount?i:o,e,t.shouldUnregister?Ry(o,e,[]):[])),_reset:oe,_resetDefaultValues:()=>Ty(t.defaultValues)&&t.defaultValues().then(e=>{ie(e,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Ry(n,e);t&&(t._f.refs?t._f.refs.every(e=>!wg(e)):!wg(t._f.ref))&&X(e)}l.unMount=new Set},_disableForm:e=>{Ay(e)&&(b.state.next({disabled:e}),Yy(n,(t,r)=>{const o=Ry(n,r);o&&(t.disabled=o._f.disabled||e,Array.isArray(o._f.refs)&&o._f.refs.forEach(t=>{t.disabled=o._f.disabled||e}))},0))},_subjects:b,_proxyFormState:h,get _fields(){return n},get _formValues(){return i},get _state(){return a},set _state(e){a=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},get _options(){return t},set _options(e){t={...t,...e},f=Qy(t.mode),p=Qy(t.reValidateMode),S=t.criteriaMode===my}},subscribe:e=>{a.mount=!0;const t=Object.keys(e.formState||{}).filter(t=>e.formState&&e.formState[t]);for(const e of t)m[e]=(m[e]||0)+1;const r=Y({...e,formState:{...v,...e.formState}});return()=>{for(const e of t.splice(0))m[e]--;r()}},trigger:Z,register:te,handleSubmit:ne,watch:(e,t)=>{if(Ty(e)){const r={};d.add(r);const{unsubscribe:n}=b.state.subscribe({next:r=>"values"in r&&e(r.values||z(void 0,t),r)});return{unsubscribe:()=>{d.delete(r),n()}}}return z(e,t,!0)},setValue:B,setValues:(e,t={})=>{const n=Ty(e)?e(i):e;if(!zy(i,n)||t.shouldValidate||t.shouldDirty||t.shouldTouch){i={...i,...n};for(const e of new Set([...l.mount,...l.array]))bg(n,e)&&W(e,Ry(n,e),t,!0,!0);if(t.shouldDirty&&y("isDirty","dirtyFields"))for(const e of Object.keys(n))I(e,i[e],!1,!0);b.state.next({...r,name:void 0,type:void 0,...d.size?{values:i}:{}}),t.shouldValidate&&C()}},getValues:(e,t)=>{let n=Ey(e)&&!t?{...a.mount?i:o}:a.mount?i:o;return t&&(n=yg(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),Ey(e)?n:By(e)?Ry(n,e):e.map(e=>Ry(n,e))},getErrors:e=>Ey(e)?{...r.errors}:By(e)?Ry(r.errors,e):e.map(e=>Ry(r.errors,e)),reset:ie,resetField:(e,t={})=>{Ry(n,e)&&(E([e]),Ey(t.defaultValue)?B(e,iy(Ry(o,e))):(B(e,t.defaultValue),o=iy(o),Dy(o,e,iy(t.defaultValue))),t.keepTouched||hg(r.touchedFields,e),t.keepDirty||(hg(r.dirtyFields,e),r.isDirty=Ey(t.defaultValue)?$():$(e,iy(Ry(o,e)))),t.keepError||(P(e),hg(r.errors,e),r.errors={...r.errors},C()),b.state.next({...r,isValidating:!eg(r.validatingFields)}))},resetDefaultValues:(e,t={})=>{if(o=iy(e),!t.keepDirty){const e=Cg(o,i,void 0,n);r.dirtyFields=e,r.isDirty=!eg(e)}t.keepIsValid||C(),b.state.next({...r,defaultValues:o})},clearErrors:Q,unregister:X,setError:J,setFocus:(e,t={})=>{const r=Ry(n,e),o=r&&r._f;if(o){const e=o.refs?o.refs.find(e=>!e.disabled)||o.refs[0]:o.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Ty(e.select)&&e.select()})}},getFieldState:K};return{...ae,formControl:ae}}const zg={mode:Lg.mode,reValidateMode:Lg.reValidateMode,shouldFocusError:Lg.shouldFocusError,resolver:void 0,criteriaMode:void 0,delayError:void 0,shouldUnregister:void 0,shouldUseNativeValidation:void 0,context:void 0,progressive:void 0,resetOptions:void 0};function Ug(e={}){const t=a().useRef(void 0),r=a().useRef(void 0),n=a().useRef(e.formControl),o=a().useRef(!1),i=a().useRef(!!e.validate),s=a().useRef(!!e.errors),l=a().useRef(!1),[c,u]=a().useState(()=>({...iy(Vg),isLoading:Ty(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ty(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&n.current!==e.formControl)if(n.current=e.formControl,o.current=!1,e.formControl)t.current={...e.formControl,formState:c},e.defaultValues&&!Ty(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...n}=$g(e);t.current={...n,formState:c}}const d=t.current.control,f=d._options,p={};for(const t in zg)t in f&&!(t in e)&&(p[t]=zg[t]);o.current&&!e.disabled&&(p.disabled=!1),d._options={...p,...e,validate:e.validate};const v=()=>({...d._formState,defaultValues:d._defaultValues}),{resyncIfNeeded:h,snapshot:m}=qy(v,Uy);return Ly(()=>{h(!0,v,u);const e=d._subscribe({formState:d._proxyFormState,callback:()=>u({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return u(e=>({...e,isReady:!0})),d._formState.isReady=!0,d._subjects.state.next({isReady:!0}),()=>{e(),m(!0,v)}},[d,h,m]),a().useEffect(()=>{d._disableForm(!(o.current&&!e.disabled)&&e.disabled),o.current=!!e.disabled},[d,e.disabled]),a().useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),a().useEffect(()=>{e.errors?(d._setErrors(e.errors),d._focusError()):s.current&&d._setErrors({}),s.current=!!e.errors},[d,e.errors]),a().useEffect(()=>{i.current&&!e.validate&&t.current&&t.current.clearErrors(Sy),i.current=!!e.validate},[e.validate]),a().useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),a().useEffect(()=>{if(d._proxyFormState.isDirty){const e=d._getDirty();e!==c.isDirty&&d._subjects.state.next({isDirty:e})}},[d,c.isDirty]),a().useEffect(()=>{e.values&&!zy(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),d._options.resetOptions&&d._options.resetOptions.keepIsValid||d._setValid(),r.current=e.values,u(e=>({...e}))):d._resetDefaultValues()},[d,e.values]),a().useEffect(()=>{d._state.mount&&(l.current||e.values)||(d._setValid(),d._state.mount=!0),l.current=!0,d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=a().useMemo(()=>My(c,d),[d,c]),t.current}const qg=a().createContext(null);qg.displayName="HookFormContext";const Wg=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Ry(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Bg=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?Wg(n.ref,r,e):n.refs&&n.refs.forEach(t=>Wg(t,r,e))}},Hg=(e,t)=>{t.shouldUseNativeValidation&&Bg(e,t);const r={};for(const n in e){const o=Ry(t.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(Gg(t.names||Object.keys(e),n)){const e=Object.assign({},Ry(r,n));Dy(e,"root",i),Dy(r,n,e)}else Dy(r,n,i)}return r},Gg=(e,t)=>e.some(e=>e.startsWith(t+"."));var Zg=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=og(a,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},Kg=function(e,t,r){return void 0===r&&(r={}),function(n,o,i){try{return Promise.resolve(function(o,a){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return i.shouldUseNativeValidation&&Bg({},i),{errors:{},values:r.raw?n:e}})}catch(e){return a(e)}return s&&s.then?s.then(void 0,a):s}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:Hg(Zg(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e}))}catch(e){return Promise.reject(e)}}};const Qg=dd("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);const Jg=function(e){var t=e.link,r=void 0===t?"/":t;return(0,o().jsx)(o().Fragment,{children:(0,o().jsx)(Tt,{to:r,className:"vt-flex vt-items-center vt-justify-center vt-text-slate-700 vt-bg-slate-200 hover:vt-bg-slate-300 vt-px-2 vt-rounded-sm vt-transition-colors",children:(0,o().jsx)(Qg,{className:"vt-w-4"})})})};function Yg(e){return Yg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yg(e)}function Xg(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return eb(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(eb(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eb(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,eb(d,"constructor",c),eb(c,"constructor",l),l.displayName="GeneratorFunction",eb(c,o,"GeneratorFunction"),eb(d),eb(d,o,"Generator"),eb(d,n,function(){return this}),eb(d,"toString",function(){return"[object Generator]"}),(Xg=function(){return{w:i,m:f}})()}function eb(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}eb=function(e,t,r,n){function i(t,r){eb(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},eb(e,t,r,n)}function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tb(Object(r),!0).forEach(function(t){nb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Yg(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Yg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ob(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ib(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ob(i,n,o,a,s,"next",e)}function s(e){ob(i,n,o,a,s,"throw",e)}a(void 0)})}}const ab=function(){var e,t,r,n,i,s=Ug({resolver:Kg(Am),defaultValues:{chosen_plugins:[],ip_tags:[]}}),l=s.handleSubmit,c=s.control,u=s.formState.errors,d=oa({mutationFn:(n=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_disable_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return n.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Plugin disabled successfully!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to disable plugin","versatile-toolkit"))}}),f=function(){var e=ib(Xg().m(function e(t){return Xg().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,d.mutateAsync(rb({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),p=ra({queryKey:["getDisablePluginList"],queryFn:(i=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_disable_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return i.apply(this,arguments)}),staleTime:5e3}),v=p.data,h=p.isFetching,m=(p.isLoading,p.isError,null==v?void 0:v.data.chosen_plugins),y=null==v?void 0:v.data.ip_tags;(0,a().useEffect)(function(){(m||y)&&c._reset({chosen_plugins:m||[],ip_tags:y||[]})},[m,y,c]);var g,b,x=Ug({resolver:Kg(Fm),defaultValues:{activeTheme:""}}),w=x.handleSubmit,j=x.control,_=x.formState.errors,k=oa({mutationFn:(g=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_active_theme",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return g.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Theme activated successfully!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to activate theme","versatile-toolkit"))}}),S=function(){var e=ib(Xg().m(function e(t){return Xg().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,k.mutateAsync(rb({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=ra({queryKey:["getActiveTheme"],queryFn:(b=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_active_theme",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return b.apply(this,arguments)}),staleTime:5e3}),N=O.data,P=O.isFetching,C=null==N?void 0:N.data.activeTheme;return(0,a().useEffect)(function(){C&&j._reset({activeTheme:C})},[C,j]),(0,o().jsxs)("div",{className:"vt-py-4 vt-space-y-6 vt-max-w-[800px]",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{link:"/"}),(0,mi.__)("Deactivate Plugins","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,mi.__)("Disable Plugin by IP address","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,mi.__)("Select plugins to disable for specific IP addresses. This is useful for troubleshooting plugin conflicts.","versatile-toolkit")}),(0,o().jsxs)("form",{onSubmit:l(f),children:[(0,o().jsxs)("div",{className:"vt-min-h-[42px]",children:[h?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading plugins","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"chosen_plugins",control:c,render:function(e){var t=e.field;return(0,o().jsx)(Uv,{selectedPlugin:t.value,onChange:t.onChange})}}),u.chosen_plugins&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==u||null===(e=u.chosen_plugins)||void 0===e?void 0:e.message})]}),(0,o().jsxs)("div",{className:"vt-min-h-[42px] vt-mt-2",children:[h?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading settings","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"ip_tags",control:c,render:function(e){var t=e.field;return(0,o().jsx)(Wm,{tags:t.value,onChange:t.onChange})}}),(null==u?void 0:u.ip_tags)&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==u||null===(t=u.ip_tags)||void 0===t?void 0:t.message})]}),(0,o().jsx)(vs,{type:"submit",className:"vt-mt-6",disabled:d.isPending,children:d.isPending?(0,mi.__)("Saving...","versatile-toolkit"):(0,mi.__)("Save List","versatile-toolkit")})]})]}),(0,o().jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,mi.__)("Switch Theme","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,mi.__)("Select and activate a theme.","versatile-toolkit")}),(0,o().jsxs)("form",{onSubmit:w(S),children:[(0,o().jsxs)("div",{className:"vt-min-h-[42px]",children:[P?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading themes","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"activeTheme",control:j,render:function(e){var t=e.field;return(0,o().jsx)(Gm,{selectedTheme:t.value,onChange:t.onChange})}}),(null==_?void 0:_.activeTheme)&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==_||null===(r=_.activeTheme)||void 0===r?void 0:r.message})]}),(0,o().jsx)(vs,{type:"submit",className:"vt-mt-6",disabled:k.isPending,children:(0,o().jsx)(bi,{isLoading:k.isPending,loadingText:(0,mi.__)("Activating","versatile-toolkit"),children:(0,mi.__)("Activate Theme","versatile-toolkit")})})]})]})]})},sb=dd("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),lb=dd("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),cb=dd("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function ub(e){return ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ub(e)}function db(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yb(n.key),n)}}function fb(e,t,r){return t=vb(t),function(e,t){if(t&&("object"==ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pb()?Reflect.construct(t,r||[],vb(e).constructor):t.apply(e,r))}function pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pb=function(){return!!e})()}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vb(e)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hb(e,t)}function mb(e,t,r){return(t=yb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yb(e){var t=function(e,t){if("object"!=ub(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ub(t)?t:t+""}var gb=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mb(r=fb(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),mb(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hb(e,t)}(t,e),function(e,t,r){return t&&db(e.prototype,t),r&&db(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,o().jsxs)(Li,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,o().jsxs)(Vi,{className:"vt-text-center",children:[(0,o().jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,o().jsx)(sb,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,o().jsx)($i,{className:"vt-text-red-700",children:(0,mi.__)("Something went wrong","versatile-toolkit")})]}),(0,o().jsxs)(zi,{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,mi.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,o().jsxs)(vs,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(lb,{className:"vt-h-4 vt-w-4"}),(0,mi.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,o().jsxs)(vs,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(cb,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,mi.__)("Hide Details","versatile-toolkit"):(0,mi.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,o().jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,mi.__)("Error Details:","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Message:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Stack Trace:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Component Stack:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(a().Component);const bb=gb;function xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const jb=function(e){var t=e.value,r=void 0===t?"":t,n=e.onChange,i=e.buttonText,s=void 0===i?(0,mi.__)("Upload Image","versatile-toolkit"):i,l=e.allowedTypes,c=void 0===l?["image"]:l,u=e.multiple,d=void 0!==u&&u,f=xb((0,a().useState)(r),2),p=f[0],v=f[1],h=xb((0,a().useState)(0),2),m=(h[0],h[1]);(0,a().useEffect)(function(){v(r)},[r]);return(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(vs,{type:"button",variant:"outline",onClick:function(){if(void 0!==window.wp&&window.wp.media){var e=window.wp.media({title:(0,mi.__)("Select Image","versatile-toolkit"),button:{text:(0,mi.__)("Use this image","versatile-toolkit")},multiple:d,library:{type:c}});e.on("select",function(){var t=e.state().get("selection").first().toJSON();v(t.url),m(t.id),n(t.url,t.id)}),e.open()}},children:s}),p&&(0,o().jsx)(vs,{type:"button",variant:"destructive",size:"sm",onClick:function(){v(""),m(0),n("",0)},children:(0,mi.__)("Remove","versatile-toolkit")})]}),p&&(0,o().jsxs)("div",{className:"vt-mt-4",children:[(0,o().jsx)("div",{className:"vt-border vt-rounded-lg vt-p-2 vt-inline-block vt-bg-gray-50",children:(0,o().jsx)("img",{src:p,alt:(0,mi.__)("Preview","versatile-toolkit"),className:"vt-max-w-xs vt-max-h-32 vt-object-cover vt-rounded"})}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600 vt-mt-2",children:(0,mi.__)("Image selected","versatile-toolkit")})]})]})},_b=dd("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var kb=function(e){var t=e.isOpen,r=e.onClose;(0,a().useEffect)(function(){var e=function(e){"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[t,r]);return{handleBackdropClick:function(e){e.target===e.currentTarget&&r()}}};function Sb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ob(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ob(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Nb=function(e){var t,r,n,i,s=e.type,l=e.disabled,c=void 0!==l&&l,u=e.getFormData,d=Sb((0,a().useState)(!1),2),f=d[0],p=d[1],v=Sb((0,a().useState)(!1),2),h=v[0],m=v[1],y=function(){p(!1),m(!1)},g=kb({isOpen:f,onClose:y}).handleBackdropClick;return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)(vs,{type:"button",variant:"outline",onClick:function(){p(!0),m(!0)},disabled:c,className:"vt-flex vt-items-center vt-gap-2 vt-border-gray-400",children:[(0,o().jsx)(_b,{size:16}),(0,mi.__)("Preview","versatile-toolkit")]}),f&&(0,o().jsx)("div",{className:"vt-fixed vt-inset-x-0 vt-bottom-0 vt--top-[15px] vt-z-[999999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:g,children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold",children:"maintenance"===s?(0,mi.__)("Maintenance Page Preview","versatile-toolkit"):(0,mi.__)("Coming Soon Page Preview","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",variant:"ghost",size:"sm",onClick:y,children:(0,o().jsx)(pd,{size:16})})]}),(0,o().jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,o().jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50",children:[h&&(0,o().jsx)(ki,{}),(0,o().jsx)("iframe",{src:(t=null==Hi?void 0:Hi.ajax_url,r=null==Hi?void 0:Hi.nonce_value,n="maintenance"===s?"versatile_preview_maintenance":"versatile_preview_comingsoon",i=JSON.stringify(u()),"".concat(t,"?action=").concat(n,"&versatile_nonce=").concat(r,"&type=").concat(s,"&preview_data=").concat(encodeURIComponent(i))),className:"vt-w-full vt-h-full vt-border-0",title:"maintenance"===s?(0,mi.__)("Maintenance Preview","versatile-toolkit"):(0,mi.__)("Coming Soon Preview","versatile-toolkit"),onLoad:function(){return m(!1)},style:{display:h?"none":"block"}})]})}),(0,o().jsx)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-rounded-b-lg",children:(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:(0,mi.__)("This is how your page will look to visitors.","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:y,variant:"outline",children:(0,mi.__)("Close Preview","versatile-toolkit")})]})})]})})]})};function Pb(e){return Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(e)}var Cb=["className"];function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Rb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Pb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ab(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Cb);return(0,o().jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(t){Rb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi("vt-animate-pulse vt-rounded-md vt-bg-primary/10",t)},r))}function Tb(){return(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-space-y-3",children:[(0,o().jsx)(Ab,{className:"vt-h-[45px] vt-w-[200px] vt-rounded-xl"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(Ab,{className:"vt-h-4 vt-w-[200px]"}),(0,o().jsx)(Ab,{className:"vt-h-4 vt-w-[200px]"})]})]})}function Db(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ib(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Ib(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ib(e,t){if(e){if("string"==typeof e)return Mb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mb(e,t):void 0}}function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Lb=[{id:"classic",name:(0,mi.__)("Classic","versatile-toolkit"),description:(0,mi.__)("Clean and professional design with centered content","versatile-toolkit")},{id:"modern",name:(0,mi.__)("Modern","versatile-toolkit"),description:(0,mi.__)("Sleek design with gradient backgrounds and modern typography","versatile-toolkit")},{id:"minimal",name:(0,mi.__)("Minimal","versatile-toolkit"),description:(0,mi.__)("Simple and elegant with focus on content","versatile-toolkit")},{id:"creative",name:(0,mi.__)("Creative","versatile-toolkit"),description:(0,mi.__)("Bold design with creative layouts and animations","versatile-toolkit")},{id:"corporate",name:(0,mi.__)("Corporate","versatile-toolkit"),description:(0,mi.__)("Professional business design with elegant typography","versatile-toolkit")},{id:"neon",name:(0,mi.__)("Neon","versatile-toolkit"),description:(0,mi.__)("Cyberpunk-inspired design with glowing neon effects","versatile-toolkit")}],Vb=function(e){return"maintenance"===e?"versatile_maintenance_template_preview":"versatile_comingsoon_template_preview"};const $b=function(e){var t,r,n=e.selectedTemplate,i=e.onTemplateSelect,s=e.type,l=e.formData,c=e.getFormData,u=Fb((0,a().useState)(null),2),d=u[0],f=u[1],p=Fb((0,a().useState)(!1),2),v=p[0],h=p[1],m=(0,a().useState)(function(){var e=Lb.findIndex(function(e){return e.id===n});if(-1===e)return Lb;var t=Lb[e],r=Lb.filter(function(t,r){return r!==e});return[t].concat(Db(r))}),y=Fb(m,1)[0],g=function(e){i(e)},b=function(){f(null),h(!1)},x=(0,a().useMemo)(function(){var e=c();return e?JSON.stringify(e):""},[l]);(0,a().useEffect)(function(){var e=setTimeout(function(){document.querySelectorAll(".vt-iframe-loading").forEach(function(e){var t=e;"none"!==t.style.display&&(t.style.display="none")})},3e3);return function(){return clearTimeout(e)}},[x]);var w=kb({isOpen:!!d,onClose:b}).handleBackdropClick;return(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)("div",{className:"vt-flex vt-gap-4 vt-overflow-x-auto vt-p-2 vt-scrollbar-thin vt-scrollbar-thumb-gray-300 vt-scrollbar-track-gray-100",children:y.map(function(e){return(0,o().jsx)(bb,{fallback:(0,o().jsx)(Li,{className:"vt-cursor-pointer vt-flex-shrink-0 vt-w-64 vt-border-red-200 vt-bg-red-50",children:(0,o().jsxs)(zi,{className:"vt-p-4",children:[(0,o().jsx)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-red-100 vt-flex vt-items-center vt-justify-center",children:(0,o().jsx)("p",{className:"vt-text-red-600 vt-text-sm",children:(0,mi.__)("Template Error","versatile-toolkit")})}),(0,o().jsx)("h3",{className:"vt-font-medium vt-mt-2 vt-text-red-700",children:e.name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-red-600",children:(0,mi.__)("Failed to load template","versatile-toolkit")})]})}),children:(0,o().jsx)(Li,{className:"vt-cursor-pointer vt-transition-all vt-duration-200 hover:vt-shadow-lg vt-flex-shrink-0 vt-w-64 ".concat(n===e.id?"vt-ring-2 vt-ring-blue-500 vt-shadow-lg":"hover:vt-ring-1 hover:vt-ring-gray-300"),onClick:function(){return g(e.id)},children:(0,o().jsxs)(zi,{children:[(0,o().jsxs)("div",{className:"vt-relative vt-mb-3",children:[(0,o().jsxs)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-gray-100 vt-overflow-hidden vt-border vt-relative",children:[(0,o().jsx)("div",{className:"vt-w-full vt-h-full vt-flex vt-items-center vt-justify-center vt-bg-gradient-to-br vt-from-blue-50 vt-to-indigo-100",children:(0,o().jsxs)("div",{className:"vt-text-center vt-p-4",children:[(0,o().jsxs)("div",{className:"vt-text-2xl vt-mb-2",children:["classic"===e.id&&"📄","modern"===e.id&&"🎨","minimal"===e.id&&"✨","creative"===e.id&&"🎭","corporate"===e.id&&"🏢","neon"===e.id&&"⚡"]}),(0,o().jsx)("p",{className:"vt-text-xs vt-font-medium vt-text-gray-700",children:e.name}),(0,o().jsx)("p",{className:"vt-text-xs vt-text-gray-500 vt-mt-1",children:(null==l?void 0:l.title)||"Preview"}),(null==l?void 0:l.background_image)&&(0,o().jsx)("div",{className:"vt-absolute vt-inset-0 vt-opacity-20",children:(0,o().jsx)("img",{src:l.background_image,alt:"",className:"vt-w-full vt-h-full vt-object-cover"})})]})}),(0,o().jsx)(bb,{fallback:null,onError:function(t){var r=document.querySelector(".template-".concat(e.id," .vt-iframe-loading"));r&&(r.style.display="none")},children:(0,o().jsx)("iframe",{src:"".concat(Hi.ajax_url,"?action=").concat(Vb(s),"&versatile_nonce=").concat(Hi.nonce_value,"&template_id=").concat(e.id,"&type=").concat(s,"&preview_mode=thumbnail").concat(l?"&preview_data=".concat(encodeURIComponent(x)):""),className:"vt-w-full vt-h-full vt-border-0 vt-pointer-events-none vt-absolute vt-top-0 vt-left-0 vt-hidden",title:"".concat(e.name," Preview"),style:{transform:"scale(0.25)",transformOrigin:"top left",width:"400%",height:"400%"},onLoad:function(e){var t,r,n=e.currentTarget,o=null===(t=n.parentElement)||void 0===t?void 0:t.querySelector("div:not(.vt-iframe-loading)");o&&n&&(o.style.display="none",n.classList.remove("vt-hidden"));var i=null===(r=n.parentElement)||void 0===r?void 0:r.querySelector(".vt-iframe-loading");i&&(i.style.display="none")},onError:function(e){var t,r=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.querySelector(".vt-iframe-loading");r&&(r.style.display="none")}},"".concat(e.id,"-").concat(x))})]}),n===e.id&&(0,o().jsx)("div",{className:"vt-absolute vt-top-2 vt-right-2 vt-bg-blue-500 vt-text-white vt-rounded-full vt-p-1 vt-z-10",children:(0,o().jsx)(Mv,{size:16})}),(0,o().jsx)("div",{className:"vt-absolute vt-inset-0 vt-bg-gray-100 vt-flex vt-items-center vt-justify-center vt-rounded-md vt-iframe-loading",children:(0,o().jsx)(Tb,{})})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm",children:e.name}),(0,o().jsx)("p",{className:"vt-text-xs vt-text-gray-600 vt-line-clamp-2",children:e.description}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2 vt-pt-2",children:[(0,o().jsx)(vs,{type:"button",size:"sm",variant:n===e.id?"default":"outline",onClick:function(t){t.stopPropagation(),g(e.id)},className:"vt-flex-1 vt-text-xs",children:n===e.id?(0,mi.__)("Selected","versatile-toolkit"):(0,mi.__)("Select","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",size:"sm",variant:"ghost",onClick:function(t){var r;t.stopPropagation(),r=e.id,f(r),h(!0)},className:"vt-text-xs",children:(0,mi.__)("Preview","versatile-toolkit")})]})]})]})})},e.id)})}),d&&(0,o().jsx)("div",{className:"vt-template-preview-wrapper vt-fixed vt-inset-x-0 vt--top-[15px] vt-bottom-0 vt-z-[99999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:w,children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,o().jsxs)("h3",{className:"vt-text-lg vt-font-semibold",children:[null===(t=Lb.find(function(e){return e.id===d}))||void 0===t?void 0:t.name," -"," ",(0,mi.__)(" Template Preview","versatile-toolkit")]}),(0,o().jsx)(vs,{type:"button",variant:"ghost",size:"sm",onClick:b,children:(0,o().jsx)(pd,{size:16})})]}),(0,o().jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,o().jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50 vt-relative",children:[v&&(0,o().jsx)(ki,{}),(0,o().jsx)("iframe",{src:"".concat(Hi.ajax_url,"?action=").concat(Vb(s),"&versatile_nonce=").concat(Hi.nonce_value,"&template_id=").concat(d,"&type=").concat(s,"&preview_mode=thumbnail&preview_data=").concat(encodeURIComponent(JSON.stringify(c()))),className:"vt-w-full vt-h-full vt-border-0",title:(0,mi.__)("Template Preview","versatile-toolkit"),onLoad:function(){return h(!1)},style:{display:v?"none":"block"}})]})}),(0,o().jsxs)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:null===(r=Lb.find(function(e){return e.id===d}))||void 0===r?void 0:r.description}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(vs,{type:"button",variant:"outline",onClick:b,children:(0,mi.__)("Close","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",onClick:function(){d&&(g(d),b())},children:(0,mi.__)("Use This Template","versatile-toolkit")})]})]})]})})]})};var zb=Object.defineProperty,Ub=(e,t)=>zb(e,"name",{value:t,configurable:!0}),qb=a().forwardRef(Ub(function(e,t){return(0,o().jsx)(rl.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"Label"));function Wb(e){return Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(e)}var Bb=["className"];function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Wb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Wb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zb=ls("vt-text-sm vt-font-medium vt-leading-none peer-disabled:vt-cursor-not-allowed peer-disabled:vt-opacity-70"),Kb=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Bb);return(0,o().jsx)(qb,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(t){Gb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:hi(Zb(),r)},n))});function Qb(e){return Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qb(e)}Kb.displayName=qb.displayName;var Jb=["className"],Yb=["className"],Xb=["className"],ex=["className","children"];function tx(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(t){ox(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ox(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Qb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Qb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ix(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ax.apply(null,arguments)}var sx=({children:e,watch:t,getValues:r,getErrors:n,getFieldState:o,setError:i,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,resetDefaultValues:v,handleSubmit:h,unregister:m,control:y,register:g,setFocus:b,subscribe:x})=>{const w=a().useMemo(()=>({watch:t,getValues:r,getErrors:n,getFieldState:o,setError:i,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,resetDefaultValues:v,handleSubmit:h,unregister:m,control:y,register:g,setFocus:b,subscribe:x}),[s,y,d,n,o,r,h,g,p,v,f,i,b,l,c,x,u,m,t]);return a().createElement(qg.Provider,{value:w},a().createElement(Fy.Provider,{value:w.control},e))},lx=a().createContext({}),cx=function(e){var t=ax({},(ix(e),e));return(0,o().jsx)(lx.Provider,{value:{name:t.name},children:(0,o().jsx)(Ky,nx({},t))})},ux=function(){var e=a().useContext(lx),t=a().useContext(dx),r=a().useContext(qg),n=r.getFieldState,o=r.formState,i=n(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");var s=t.id;return nx({id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message")},i)},dx=a().createContext({}),fx=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Jb),i=a().useId();return(0,o().jsx)(dx.Provider,{value:{id:i},children:(0,o().jsx)("div",nx({ref:t,className:hi("vt-space-y-2",r)},n))})});fx.displayName="FormItem";var px=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Yb),i=ux(),a=i.error,s=i.formItemId;return(0,o().jsx)(Kb,nx({ref:t,className:hi(a&&"vt-text-destructive",r),htmlFor:s},n))});px.displayName="FormLabel";var vx=a().forwardRef(function(e,t){var r=ax({},(ix(e),e)),n=ux(),i=n.error,a=n.formItemId,s=n.formDescriptionId,l=n.formMessageId;return(0,o().jsx)(Ba,nx({ref:t,id:a,"aria-describedby":i?"".concat(s," ").concat(l):"".concat(s),"aria-invalid":!!i},r))});vx.displayName="FormControl";var hx=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Xb),i=ux().formDescriptionId;return(0,o().jsx)("p",nx({ref:t,id:i,className:hi("vt-text-[0.8rem] vt-text-muted-foreground",r)},n))});hx.displayName="FormDescription";var mx=a().forwardRef(function(e,t){var r,n=e.className,i=e.children,a=tx(e,ex),s=ux(),l=s.error,c=s.formMessageId,u=l?String(null!==(r=null==l?void 0:l.message)&&void 0!==r?r:""):i;return u?(0,o().jsx)("p",nx(nx({ref:t,id:c,className:hi("vt-text-[0.8rem] vt-font-medium vt-text-destructive",n)},a),{},{children:u})):null});mx.displayName="FormMessage";var yx=Object.defineProperty,gx=(e,t)=>yx(e,"name",{value:t,configurable:!0}),bx="Switch",[xx,wx]=Ms(bx),[jx,_x]=xx(bx);function kx(e){const{__scopeSwitch:t,checked:r,children:n,defaultChecked:i,disabled:s,form:l,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:p}=e,[v,h]=Js({prop:r,defaultProp:i??!1,onChange:u,caller:bx}),[m,y]=a().useState(null),[g,b]=a().useState(null),[x,w]=a().useState(null),j=!m||(!!l||!!m.closest("form")),_={checked:v,setChecked:h,disabled:s,control:m,setControl:y,name:c,form:l,value:f,userClick:x,onUserClick:w,required:d,defaultChecked:i,isFormControl:j,bubbleInput:g,setBubbleInput:b};return(0,o().jsx)(jx,{scope:t,..._,children:Cx(p)?p(_):n})}gx(kx,"SwitchProvider");var Sx=a().forwardRef(gx(function({__scopeSwitch:e,onClick:t,...r},n){const{control:i,form:s,value:l,disabled:c,checked:u,required:d,setControl:f,setChecked:p,onUserClick:v,isFormControl:h,bubbleInput:m}=_x("SwitchTrigger",e),y=za(n,f),g=a().useRef(u);return a().useEffect(()=>{const e=s?i?.ownerDocument.getElementById(s):i?.form;if(e instanceof HTMLFormElement){const t=gx(()=>p(g.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[i,s,p]),(0,o().jsx)(rl.button,{type:"button",role:"switch","aria-checked":u,"aria-required":d,"data-state":Ex(u),"data-disabled":c?"":void 0,disabled:c,value:l,...r,ref:y,onClick:As(t,e=>{const t=e.isPropagationStopped();v({requestedChecked:!u,hasConsumerStoppedPropagation:t}),p(e=>!e),m&&h&&(t||e.stopPropagation())})})},"SwitchTrigger")),Ox=a().forwardRef(gx(function(e,t){const{__scopeSwitch:r,name:n,checked:i,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return(0,o().jsx)(kx,{__scopeSwitch:r,checked:i,defaultChecked:a,disabled:l,required:s,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(Sx,{...f,ref:t,__scopeSwitch:r}),e&&(0,o().jsx)(Px,{__scopeSwitch:r})]})})},"Switch")),Nx=a().forwardRef(gx(function(e,t){const{__scopeSwitch:r,...n}=e,i=_x("SwitchThumb",r);return(0,o().jsx)(rl.span,{"data-state":Ex(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})},"SwitchThumb")),Px=a().forwardRef(gx(function({__scopeSwitch:e,onClick:t,...r},n){const{control:i,userClick:s,checked:l,defaultChecked:c,required:u,disabled:d,name:f,value:p,form:v,bubbleInput:h,setBubbleInput:m}=_x("SwitchBubbleInput",e),y=za(n,m),g=Mp(i),b=a().useRef(!1),x=a().useRef(l),w=a().useRef(s),j=a().useRef(null);a().useEffect(()=>{const e=h;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(!r)return;const n=x.current!==l;x.current=l;const o=null!==s&&s!==w.current;if(w.current=s,o)j.current=n?null:s,n&&r.call(e,l),e.dispatchEvent(new Event("click",{bubbles:!s.hasConsumerStoppedPropagation}));else if(n){const t=j.current;j.current=null;const n=t?.requestedChecked===l;b.current=!0,r.call(e,l),e.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),b.current=!1}},[h,l,s]);const _=a().useRef(l);return(0,o().jsx)(rl.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??_.current,required:u,disabled:d,name:f,value:p,form:v,...r,tabIndex:-1,ref:y,onClick:As(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function Cx(e){return"function"==typeof e}function Ex(e){return e?"checked":"unchecked"}function Rx(e){return Rx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rx(e)}gx(Cx,"isFunction"),gx(Ex,"getState");var Ax=["className"];function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Dx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(t){Fx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Rx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Rx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ix=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ax);return(0,o().jsx)(Ox,Dx(Dx({className:hi("vt-peer vt-inline-flex vt-h-6 vt-w-11 vt-shrink-0 vt-cursor-pointer vt-items-center vt-rounded-full vt-border-2 vt-border-transparent vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-4 focus-visible:vt-ring-blue-300 disabled:vt-cursor-not-allowed disabled:vt-opacity-50 data-[state=checked]:vt-bg-blue-600 data-[state=unchecked]:vt-bg-[#c7c6c6]",r)},n),{},{ref:t,children:(0,o().jsx)(Nx,{className:hi("vt-pointer-events-none vt-block vt-h-5 vt-w-5 vt-rounded-full vt-bg-white vt-border vt-border-gray-300 vt-shadow-lg vt-ring-0 vt-transition-transform data-[state=checked]:vt-translate-x-5 data-[state=unchecked]:vt-translate-x-0")})}))});function Mx(e){return Mx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mx(e)}Ix.displayName=Ox.displayName;var Lx=["className"];function Vx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $x(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Mx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zx=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Lx);return(0,o().jsx)("textarea",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vx(Object(r),!0).forEach(function(t){$x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi("vt-flex vt-min-h-[60px] vt-w-full vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-px-3 vt-py-2 vt-text-base vt-shadow-sm vt-placeholder:text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:text-sm",r),ref:t},n))});function Ux(e){return Ux="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ux(e)}function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(t){Bx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ux(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ux(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ux(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Gx(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Gx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Gx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Gx(d,"constructor",c),Gx(c,"constructor",l),l.displayName="GeneratorFunction",Gx(c,o,"GeneratorFunction"),Gx(d),Gx(d,o,"Generator"),Gx(d,n,function(){return this}),Gx(d,"toString",function(){return"[object Generator]"}),(Hx=function(){return{w:i,m:f}})()}function Gx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Gx=function(e,t,r,n){function i(t,r){Gx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Gx(e,t,r,n)}function Zx(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Kx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}zx.displayName="Textarea";const Jx=function(){var e=Kx((0,a().useState)(!1),2),t=e[0],r=e[1],n=Kx((0,a().useState)(void 0),2),i=n[0],s=n[1],l=function(){return c.getValues()},c=Ug({resolver:Kg(Tm),defaultValues:{enable_maintenance:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),u=c.handleSubmit,d=function(){var e,t=Fn();return oa({mutationFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_maintenance_mood",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Lr.success(null!==(r=e.message)&&void 0!==r?r:(0,mi.__)("Maintenance Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed while updating maintenance mood","versatile-toolkit"))}})}(),f=function(){var e,t=(e=Hx().m(function e(t){return Hx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,d.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Zx(i,n,o,a,s,"next",e)}function s(e){Zx(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),p=Aa(),v=p.data,h=p.isLoading,m=null==v?void 0:v.data.maintenance;return(0,a().useEffect)(function(){m&&(c.reset({enable_maintenance:null==v?void 0:v.data.enable_maintenance,show_subscribers_only:m.show_subscribers_only||!1,title:m.title||"",description:m.description||"",subtitle:m.subtitle||"",template:m.template||"classic",background_image:m.background_image||"",background_image_id:m.background_image_id||0,logo:m.logo||"",logo_id:m.logo_id||0}),r(!0))},[m]),(0,o().jsx)("div",{className:"",children:h||!t?(0,o().jsx)(_i,{}):(0,o().jsx)(bb,{onError:function(e,t){},fallback:(0,o().jsxs)("div",{className:"vt-p-6 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-medium vt-text-red-700 vt-mb-2",children:(0,mi.__)("Form Error","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-red-600",children:(0,mi.__)("There was a problem loading the maintenance settings form. Please try refreshing the page or contact support.","versatile-toolkit")}),(0,o().jsx)(vs,{className:"vt-mt-4",onClick:function(){return window.location.reload()},children:(0,mi.__)("Refresh Page","versatile-toolkit")})]}),children:(0,o().jsx)(sx,Wx(Wx({},c),{},{children:(0,o().jsxs)("form",{onSubmit:u(f,function(e){}),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{}),(0,mi.__)("Maintenance Mood","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(vs,{type:"submit",disabled:d.isPending,children:d.isPending?(0,mi.__)("Saving...","versatile-toolkit"):(0,mi.__)("Save Settings","versatile-toolkit")}),(0,o().jsx)(bb,{fallback:(0,o().jsx)(vs,{variant:"outline",disabled:!0,children:(0,mi.__)("Preview Unavailable","versatile-toolkit")}),children:(0,o().jsx)(Nb,{type:"maintenance",disabled:d.isPending,getFormData:l})})]})]}),(0,o().jsx)("div",{children:(0,o().jsx)(cx,{control:c.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Choose Template","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Template selector failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)($b,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"maintenance",formData:i,getFormData:l})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Select a design template for your maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:c.control,name:"enable_maintenance",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"enable_maintenance",children:(0,mi.__)("Enable Maintenance Mood","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"enable_maintenance",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Enable or disable maintenance mode for your site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,mi.__)("Show Only for Users","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("When enabled, maintenance mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Title","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,Wx({placeholder:(0,mi.__)("Enter maintenance title","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Subtitle","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,Wx({placeholder:(0,mi.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Description","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(zx,Wx({placeholder:(0,mi.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Provide more details about the maintenance.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]}),(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:c.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Background Image","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(c.getValues())},buttonText:(0,mi.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a background image for the maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Logo","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(c.getValues())},buttonText:(0,mi.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a logo to display on the maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]})]})]})}))})})};const Yx=function(){return(0,o().jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,o().jsx)(Jx,{})})};function Xx(e){return Xx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xx(e)}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(t){rw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Xx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nw(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ow(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ow(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ow(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ow(d,"constructor",c),ow(c,"constructor",l),l.displayName="GeneratorFunction",ow(c,o,"GeneratorFunction"),ow(d),ow(d,o,"Generator"),ow(d,n,function(){return this}),ow(d,"toString",function(){return"[object Generator]"}),(nw=function(){return{w:i,m:f}})()}function ow(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ow=function(e,t,r,n){function i(t,r){ow(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ow(e,t,r,n)}function iw(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function aw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const lw=function(){var e=aw((0,a().useState)(!1),2),t=e[0],r=e[1],n=aw((0,a().useState)(void 0),2),i=n[0],s=n[1],l=Ug({resolver:Kg(Dm),defaultValues:{enable_comingsoon:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),c=l.handleSubmit,u=function(){return l.getValues()},d=function(){var e,t=Fn();return oa({mutationFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_comingsoon_mood",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Lr.success(null!==(r=e.message)&&void 0!==r?r:(0,mi.__)("Comingsoon Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed while updating Comingsoon mood","versatile-toolkit"))}})}(),f=function(){var e,t=(e=nw().m(function e(t){return nw().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,d.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){iw(i,n,o,a,s,"next",e)}function s(e){iw(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),p=Aa(),v=p.data,h=p.isLoading,m=null==v?void 0:v.data.comingsoon;return(0,a().useEffect)(function(){m&&(l.reset({enable_comingsoon:null==v?void 0:v.data.enable_comingsoon,show_subscribers_only:m.show_subscribers_only||!1,title:m.title||"",description:m.description||"",subtitle:m.subtitle||"",template:m.template||"classic",background_image:m.background_image||"",background_image_id:m.background_image_id||0,logo:m.logo||"",logo_id:m.logo_id||0}),r(!0))},[m]),(0,o().jsx)("div",{className:"",children:h||!t?(0,o().jsx)(_i,{}):(0,o().jsx)(sx,tw(tw({},l),{},{children:(0,o().jsxs)("form",{onSubmit:c(f,function(e){}),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{}),(0,mi.__)("Comingsoon Mood","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(vs,{type:"submit",disabled:d.isPending,children:(0,o().jsx)(bi,{isLoading:d.isPending,loadingText:(0,mi.__)("Saving","versatile-toolkit"),children:(0,mi.__)("Save Settings","versatile-toolkit")})}),(0,o().jsx)(Nb,{type:"comingsoon",disabled:d.isPending,getFormData:u})]})]}),(0,o().jsx)("div",{children:(0,o().jsx)(cx,{control:l.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Choose Template","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)($b,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"comingsoon",formData:i,getFormData:u})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Select a design template for your coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:l.control,name:"enable_comingsoon",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"enable_comingsoon",children:(0,mi.__)("Enable Comingsoon Mood","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"enable_comingsoon",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsxs)(hx,{children:[(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit"),(0,mi.__)("Enable the coming soon page for your website.","versatile-toolkit")]}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,mi.__)("Show Only for Users","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("When enabled, coming soon mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Title","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,tw({placeholder:(0,mi.__)("Enter coming soon title","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Subtitle","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,tw({placeholder:(0,mi.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Description","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(zx,tw({placeholder:(0,mi.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Provide more details about the coming soon.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]}),(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:l.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Background Image","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(l.getValues())},buttonText:(0,mi.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a background image for the coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Logo","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(l.getValues())},buttonText:(0,mi.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a logo to display on the coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]})]})]})}))})};const cw=function(){return(0,o().jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,o().jsx)(lw,{})})};var uw=function(e){var t=e.className;return(0,o().jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o().jsxs)("g",{opacity:"0.6",children:[(0,o().jsx)("path",{d:"M8 12C8 10.8954 8.89543 10 10 10H18L22 14H38C39.1046 14 40 14.8954 40 16V34C40 35.1046 39.1046 36 38 36H10C8.89543 36 8 35.1046 8 34V12Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,o().jsx)("path",{d:"M14 22H20M14 26H24M14 30H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.4"}),(0,o().jsx)("circle",{cx:"32",cy:"24",r:"4",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.5"}),(0,o().jsx)("path",{d:"M35 27L37 29",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]})})};function dw(e){return dw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dw(e)}var fw=["className"],pw=["className"],vw=["className"],hw=["className"],mw=["className"],yw=["className"],gw=["className"],bw=["className"];function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ww(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(t){jw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=dw(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var kw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,fw);return(0,o().jsx)("div",{className:"vt-relative vt-w-full vt-overflow-auto",children:(0,o().jsx)("table",ww({ref:t,className:hi("vt-w-full vt-caption-bottom vt-text-sm",r)},n))})});kw.displayName="Table";var Sw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,pw);return(0,o().jsx)("thead",ww({ref:t,className:hi("[&_tr]:vt-border-b",r)},n))});Sw.displayName="TableHeader";var Ow=a().forwardRef(function(e,t){var r=e.className,n=_w(e,vw);return(0,o().jsx)("tbody",ww({ref:t,className:hi("[&_tr:last-child]:vt-border-0",r)},n))});Ow.displayName="TableBody",a().forwardRef(function(e,t){var r=e.className,n=_w(e,hw);return(0,o().jsx)("tfoot",ww({ref:t,className:hi("vt-border-t vt-bg-muted/50 vt-font-medium [&>tr]:last:vt-border-b-0",r)},n))}).displayName="TableFooter";var Nw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,mw);return(0,o().jsx)("tr",ww({ref:t,className:hi("vt-border-b vt-transition-colors hover:vt-bg-muted/50 data-[state=selected]:vt-bg-muted",r)},n))});Nw.displayName="TableRow";var Pw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,yw);return(0,o().jsx)("th",ww({ref:t,className:hi("vt-h-10 vt-px-2 vt-text-left vt-align-middle vt-font-medium vt-text-muted-foreground [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Pw.displayName="TableHead";var Cw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,gw);return(0,o().jsx)("td",ww({ref:t,className:hi("vt-p-2 vt-align-middle [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Cw.displayName="TableCell",a().forwardRef(function(e,t){var r=e.className,n=_w(e,bw);return(0,o().jsx)("caption",ww({ref:t,className:hi("vt-mt-4 vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="TableCaption";const Ew=function(e){var t=e.colSpan,r=void 0===t?9:t,n=e.title,i=void 0===n?"":n,a=e.description,s=void 0===a?"":a;return(0,o().jsx)(Nw,{children:(0,o().jsx)(Cw,{colSpan:r,className:"vt-text-center vt-py-12",children:(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-items-center vt-space-y-3 vt-text-muted-foreground",children:[(0,o().jsx)(uw,{className:"vt-w-12 vt-h-12"}),(0,o().jsxs)("div",{className:"vt-space-y-1",children:[(0,o().jsx)("p",{className:"vt-text-lg vt-font-medium",children:i||(0,mi.__)("Empty!! No data found","versatile-toolkit")}),s&&(0,o().jsx)("p",{className:"vt-text-sm",children:s})]})]})})})};var Rw=Object.defineProperty;function Aw(e,[t,r]){return Math.min(r,Math.max(t,e))}((e,t)=>{Rw(e,"name",{value:t,configurable:!0})})(Aw,"clamp");var Tw=Object.defineProperty,Dw=(e,t)=>Tw(e,"name",{value:t,configurable:!0});function Fw(e){const t=e+"CollectionProvider",[r,n]=Ms(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=Dw(e=>{const{scope:t,children:r}=e,n=a().useRef(null),s=a().useRef(new Map).current;return(0,o().jsx)(i,{scope:t,itemMap:s,collectionRef:n,children:r})},"CollectionProvider");l.displayName=t;const c=e+"CollectionSlot",u=Wa(c),d=a().forwardRef((e,t)=>{const{scope:r,children:n}=e,i=za(t,s(c,r).collectionRef);return(0,o().jsx)(u,{ref:i,children:n})});d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=Wa(f),h=a().forwardRef((e,t)=>{const{scope:r,children:n,...i}=e,l=a().useRef(null),c=za(t,l),u=s(f,r);return a().useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),(0,o().jsx)(v,{[p]:"",ref:c,children:n})});function m(t){const r=s(e+"CollectionConsumer",t);return a().useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return h.displayName=f,Dw(m,"useCollection"),[{Provider:l,Slot:d,ItemSlot:h},m,n]}Dw(Fw,"createCollection");var Iw=new WeakMap,Mw=class e extends Map{static{Dw(this,"OrderedDict")}#K;constructor(e){super(e),this.#K=[...super.keys()],Iw.set(this,!0)}set(e,t){return Iw.get(this)&&!this.has(e)&&this.#K.push(e),super.set(e,t),this}insert(e,t,r){const n=this.has(t),o=n?this.size:this.size+1,i=$w(e),a=i>=0?Math.min(i,o-1):Math.max(o+i,0);if(n?this.#K.indexOf(t)===a:a===this.size)return this.set(t,r),this;const s=this.#K.filter(e=>e!==t);s.splice(a,0,t);const l=s.map(e=>[e,e===t?r:this.get(e)]);this.clear();for(const[e,t]of l)this.set(e,t);return this}with(t,r,n){const o=new e(this);return o.insert(t,r,n),o}before(e){const t=this.#K.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){const n=this.#K.indexOf(e);if(-1===n)return this;const o=this.#K.indexOf(t),i=-1!==o&&o<n?n-1:n;return this.insert(i,t,r)}after(e){let t=this.#K.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,r){const n=this.#K.indexOf(e);if(-1===n)return this;const o=this.#K.indexOf(t),i=-1!==o&&o<=n?n:n+1;return this.insert(i,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#K=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#K.splice(this.#K.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=Lw(this.#K,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=Lw(this.#K,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#K.indexOf(e)}keyAt(e){return Lw(this.#K,e)}from(e,t){const r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return-1}filter(t,r){const n=[];let o=0;for(const e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){const n=[];let o=0;for(const e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){const[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let o=0,i=r;for(const e of this)i=0!==o||n?Reflect.apply(t,this,[i,e,o,this]):e,o++;return i}reduceRight(...e){const[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let o=r;for(let e=this.size-1;e>=0;e--){const r=this.entryAt(e);o=e!==this.size-1||n?Reflect.apply(t,this,[o,r,e,this]):r}return o}sort(e){if("function"!=typeof e)throw new TypeError("OrderedDict.sort requires a compare function");const t=[...this.entries()].sort(e);this.clear();for(const[e,r]of t)this.set(e,r);return this}toSorted(t){if("function"!=typeof t)throw new TypeError("OrderedDict.toSorted requires a compare function");const r=[...this.entries()].sort(t);return new e(r)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){const r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){const n=new e;for(const e of this.#K.slice(t,r))n.set(e,this.get(e));return n}every(e,t){let r=0;for(const n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function Lw(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=Vw(e,t);return-1===r?void 0:e[r]}function Vw(e,t){const r=e.length,n=$w(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}function $w(e){return e!=e||0===e?0:Math.trunc(e)}function zw(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const n of r){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(e[n]!==t[n])return!1}return!0}function Uw(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function qw(e){let t;for(const r of e.keys()){if(t){const e=t.compareDocumentPosition(r);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=r}return!0}function Ww(e,t){return e[1].element&&t[1].element?Uw(e[1].element,t[1].element)?-1:1:0}function Bw(e){return new MutationObserver(t=>{for(const r of t)if("childList"===r.type)return void e()})}Dw(Lw,"at"),Dw(Vw,"toSafeIndex"),Dw($w,"toSafeInteger"),Dw(function(e){const t=e+"CollectionProvider",[r,n]=Ms(t),[i,s]=r(t);i.displayName=e+"CollectionStableContextProvider";const[l,c]=r(t);l.displayName=e+"CollectionStatefulContextProvider";const u=Dw(({state:e,...t})=>e?(0,o().jsx)(f,{...t,state:e}):(0,o().jsx)(d,{...t}),"CollectionProvider");u.displayName=t;const d=Dw(e=>{const t=x();return(0,o().jsx)(f,{...e,state:t})},"CollectionInit");d.displayName=e+"CollectionInit";const f=Dw(e=>{const{scope:t,children:r,state:n}=e,s=a().useRef(null),[c,u]=a().useState(null),d=za(s,u),[f,p]=n,v=a().useRef(new Mw),h=a().useCallback(()=>{const e=v.current;return qw(e)||e.sort(Ww),e},[]);return a().useEffect(()=>{if(!c)return;const e=Bw(()=>{p(e=>{const t=e.toSorted(Ww),r=t.some(([t],r)=>e.keyAt(r)!==t);return r?t:e})});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c,p]),(0,o().jsx)(i,{scope:t,collectionElementRef:d,collectionElementRefObject:s,getCollection:h,setCollection:p,registryRef:v,children:(0,o().jsx)(l,{scope:t,collectionElement:c,collection:f,children:r})})},"CollectionProviderImpl");f.displayName=e+"CollectionProviderImpl";const p=e+"CollectionSlot",v=Wa(p),h=a().forwardRef((e,t)=>{const{scope:r,children:n}=e,i=za(t,s(p,r).collectionElementRef);return(0,o().jsx)(v,{ref:i,children:n})});h.displayName=p;const m=e+"CollectionItemSlot",y="data-radix-collection-item",g=Wa(m),b=a().forwardRef((e,t)=>{const{scope:r,children:n,...i}=e,l=a().useRef(null),c=s(m,r),{setCollection:u,registryRef:d}=c,f=a().useRef(i);zw(f.current,i)||(f.current=i);const p=f.current,v=za(t,a().useCallback(e=>{const t=d.current;e?t.set(e,{...f.current,element:e}):l.current&&t.delete(l.current)},[d]),l);Vs(()=>{const e=l.current,t=d.current;e&&t.has(e)&&t.set(e,{...p,element:e})},[p,d]);const h=a().useRef(null);return a().useEffect(()=>{const e=l.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==p)&&(h.current=e?{element:e,itemData:p}:null,u(r=>{const n=new Mw(r);return t&&t.element!==e&&n.delete(t.element),e&&n.set(e,{...p,element:e}),n.sort(Ww)}))}),a().useEffect(()=>()=>{const e=h.current;h.current=null,e&&u(t=>{if(!t.has(e.element))return t;const r=new Mw(t);return r.delete(e.element),r})},[u]),(0,o().jsx)(g,{[y]:"",ref:v,children:n})});function x(){return a().useState(new Mw)}function w(t){const{collection:r}=c(e+"CollectionConsumer",t);return r}function j(t){const{getCollection:r}=s(e+"CollectionConsumer",t);return r}return b.displayName=m,Dw(x,"useInitCollection"),Dw(w,"useCollection"),Dw(j,"useGetCollection"),[{Provider:u,Slot:h,ItemSlot:b},{createCollectionScope:n,useCollection:w,useGetCollection:j,useInitCollection:x}]},"createCollection"),Dw(zw,"shallowEqual"),Dw(Uw,"isElementPreceding"),Dw(qw,"isInDocumentOrder"),Dw(Ww,"sortByDocumentPosition"),Dw(Bw,"getChildListObserver");var Hw=Object.defineProperty,Gw=(e,t)=>Hw(e,"name",{value:t,configurable:!0}),Zw="ltr",Kw=a().createContext(void 0);function Qw(e){const t=a().useContext(Kw);return e||t||Zw}Gw(Qw,"useDirection");Object.defineProperty;var Jw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Yw=Object.defineProperty,Xw=(e,t)=>Yw(e,"name",{value:t,configurable:!0}),ej={ItemAligned:"item-aligned",Popper:"popper"},tj="rtl",rj=[" ","Enter","ArrowUp","ArrowDown"],nj=[" ","Enter"],oj="Select",[ij,aj,sj]=Fw(oj),[lj,cj]=Ms(oj,[sj,Wp]),uj=Wp(),[dj,fj]=lj(oj),[pj,vj]=lj(oj);function hj(e){const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:v,required:h,form:m,internal_do_not_use_render:y}=e,g=uj(t),[b,x]=a().useState(null),[w,j]=a().useState(null),[_,k]=a().useState(!1),S=Qw(d),[O,N]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:oj}),[P,C]=Js({prop:l,defaultProp:c,onChange:u,caller:oj}),E=a().useRef(null),R=a().useRef(!1),[A,T]=a().useState(null),D=Xw(e=>{T({value:e,hasConsumerStoppedPropagation:R.current}),C(e)},"handleUserSelect"),F=a().useRef(P);a().useEffect(()=>{const e=m?b?.ownerDocument.getElementById(m):b?.form;if(e instanceof HTMLFormElement){const t=Xw(()=>C(F.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[m,b,C]);const I=!b||(!!m||!!b.closest("form")),[M,L]=a().useState(new Set),V=qs(),$=Array.from(M).map(e=>e.props.value).join(";"),z=a().useCallback(e=>{L(t=>new Set(t).add(e))},[]),U=a().useCallback(e=>{L(t=>{const r=new Set(t);return r.delete(e),r})},[]),q={required:h,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:V,value:P,onValueChange:C,hasConsumerStoppedPropagationRef:R,userSelection:A,onUserSelect:D,open:O,onOpenChange:N,dir:S,triggerPointerDownPosRef:E,disabled:v,name:f,autoComplete:p,form:m,nativeOptions:M,nativeSelectKey:$,isFormControl:I};return(0,o().jsx)(Gp,{...g,children:(0,o().jsx)(dj,{scope:t,...q,children:(0,o().jsx)(ij.Provider,{scope:t,children:(0,o().jsx)(pj,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:U,children:Gj(y)?y(q):r})})})})}Xw(hj,"SelectProvider");var mj=Xw(e=>{const{__scopeSelect:t,children:r,...n}=e;return(0,o().jsx)(hj,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:e})=>(0,o().jsxs)(o().Fragment,{children:[r,e?(0,o().jsx)(Hj,{__scopeSelect:t}):null]})})},"Select"),yj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,disabled:n=!1,...i}=e,s=uj(r),l=fj("SelectTrigger",r),c=l.disabled||n,u=za(t,l.onTriggerChange),d=aj(r),f=a().useRef("touch"),[p,v,h]=Kj(e=>{const t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===l.value),n=Qj(t,e,r);void 0!==n&&l.onUserSelect(n.value)}),m=Xw(e=>{c||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,o().jsx)(Zp,{asChild:!0,...s,children:(0,o().jsx)(rl.button,{type:"button",role:"combobox","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Zj(l.value)?"":void 0,...i,ref:u,onClick:As(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&m(e)}),onPointerDown:As(i.onPointerDown,e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(m(e),e.preventDefault())}),onKeyDown:As(i.onKeyDown,e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||(l.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),v(e.key)),t&&" "===e.key||rj.includes(e.key)&&(m(),e.preventDefault())})})})},"SelectTrigger")),gj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,className:n,style:i,children:s,placeholder:l="",...c}=e,u=fj("SelectValue",r),{onValueNodeHasChildrenChange:d}=u,f=void 0!==s,p=za(t,u.onValueNodeChange);Vs(()=>{d(f)},[d,f]);const v=Zj(u.value);return(0,o().jsx)(rl.span,{...c,asChild:!v&&c.asChild,ref:p,style:{pointerEvents:"none"},children:(0,o().jsx)(a().Fragment,{children:v?l:s},v?"placeholder":"value")})},"SelectValue")),bj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,children:n,...i}=e;return(0,o().jsx)(rl.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})},"SelectIcon")),[xj,wj]=lj("SelectPortal",{forceMount:void 0}),jj=Xw(e=>{const{__scopeSelect:t,forceMount:r,...n}=e;return(0,o().jsx)(xj,{scope:e.__scopeSelect,forceMount:r,children:(0,o().jsx)(Ul,{asChild:!0,...n})})},"SelectPortal"),_j="SelectContent",kj=a().forwardRef(Xw(function(e,t){const r=wj(_j,e.__scopeSelect),{forceMount:n=r.forceMount,...i}=e,s=fj(_j,e.__scopeSelect),[l,c]=a().useState();return Vs(()=>{c(new DocumentFragment)},[]),(0,o().jsx)(Hl,{present:n||s.open,children:({present:e})=>e?(0,o().jsx)(Ej,{...i,ref:t}):(0,o().jsx)(Sj,{...i,fragment:l})})},"SelectContent")),Sj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,children:n,fragment:i}=e;return i?s().createPortal((0,o().jsx)(Nj,{scope:r,children:(0,o().jsx)(ij.Slot,{scope:r,children:(0,o().jsx)("div",{ref:t,children:n})})}),i):null},"SelectContentFragment")),Oj=10,[Nj,Pj]=lj(_j),Cj=Wa("SelectContent.RemoveScroll"),Ej=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r}=e,{position:n=ej.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:m,hideWhenDetached:y,avoidCollisions:g,...b}=e,x=fj(_j,r),[w,j]=a().useState(null),[_,k]=a().useState(null),S=za(t,j),[O,N]=a().useState(null),[P,C]=a().useState(null),E=aj(r),[R,A]=a().useState(!1),T=a().useRef(!1),D=a().useRef(!1),F=a().useRef(!1);a().useEffect(()=>{if(w)return ru(w)},[w]),rc();const I=a().useCallback(e=>{const[t,...r]=E().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(const r of e){if(r===o)return;if(r?.scrollIntoView({block:"nearest"}),r===t&&_&&(_.scrollTop=0),r===n&&_&&(_.scrollTop=_.scrollHeight),r?.focus(),document.activeElement!==o)return}},[E,_]),M=a().useCallback(()=>I([O,w]),[I,O,w]);a().useEffect(()=>{R&&M()},[R,M]);const{onOpenChange:L,triggerPointerDownPosRef:V}=x;a().useEffect(()=>{if(w){let e={x:0,y:0};const t=Xw(t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},"handlePointerMove"),r=Xw(r=>{e.x<=10&&e.y<=10?r.preventDefault():r.composedPath().includes(w)||L(!1),document.removeEventListener("pointermove",t),V.current=null},"handlePointerUp");return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[w,L,V]),a().useEffect(()=>{const e=Xw(()=>L(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[L]);const[$,z]=Kj(e=>{const t=E().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=Qj(t,e,r);n&&setTimeout(()=>n.ref.current?.focus())}),U=a().useCallback((e,t,r)=>{const n=!D.current;n&&(D.current=!0);const o=!T.current&&!r;void 0!==x.value&&x.value===t||o?(N(e),o&&(T.current=!0)):n&&N(e)},[x.value]),q=a().useCallback(()=>w?.focus(),[w]),W=a().useCallback((e,t,r)=>{if(!e)return;const n=!F.current;n&&(F.current=!0);const o=!T.current&&!r;(void 0!==x.value&&x.value===t||o||n)&&C(e)},[x.value]),B=n===ej.Popper?Aj:Rj,H=B===Aj?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:m,hideWhenDetached:y,avoidCollisions:g}:{};return(0,o().jsx)(Nj,{scope:r,content:w,viewport:_,onViewportChange:k,itemRefCallback:U,selectedItem:O,onItemLeave:q,itemTextRefCallback:W,focusSelectedItem:M,selectedItemText:P,position:n,isPositioned:R,searchRef:$,children:(0,o().jsx)(Zc,{as:Cj,allowPinchZoom:!0,children:(0,o().jsx)(kl,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:As(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,o().jsx)(fl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,o().jsx)(B,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...H,onPlaced:()=>A(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:As(b.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=E().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),Rj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,onPlaced:n,...i}=e,s=fj(_j,r),l=Pj(_j,r),[c,u]=a().useState(null),[d,f]=a().useState(null),p=za(t,f),v=aj(r),h=a().useRef(!1),m=a().useRef(!0),{viewport:y,selectedItem:g,selectedItemText:b,focusSelectedItem:x}=l,w=a().useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&y&&g&&b){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if(s.dir!==tj){const n=o.left-t.left,i=r.left-n,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-Oj,d=Aw(i,[Oj,Math.max(Oj,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const n=t.right-o.right,i=window.innerWidth-r.right-n,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-Oj,d=Aw(i,[Oj,Math.max(Oj,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const i=v(),a=window.innerHeight-2*Oj,l=y.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),x=f+p+l+parseInt(u.paddingBottom,10)+m,w=Math.min(5*g.offsetHeight,x),j=window.getComputedStyle(y),_=parseInt(j.paddingTop,10),k=parseInt(j.paddingBottom,10),S=e.top+e.height/2-Oj,O=a-S,N=g.offsetHeight/2,P=f+p+(g.offsetTop+N),C=x-P;if(P<=S){const e=i.length>0&&g===i[i.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-y.offsetTop-y.offsetHeight,r=P+Math.max(O,N+(e?k:0)+t+m);c.style.height=r+"px"}else{const e=i.length>0&&g===i[0].ref.current;c.style.top="0px";const t=Math.max(S,f+y.offsetTop+(e?_:0)+N)+C;c.style.height=t+"px",y.scrollTop=P-S+y.offsetTop}c.style.margin=`${Oj}px 0`,c.style.minHeight=w+"px",c.style.maxHeight=a+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[v,s.trigger,s.valueNode,c,d,y,g,b,s.dir,n]);Vs(()=>w(),[w]);const[j,_]=a().useState();Vs(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const k=a().useCallback(e=>{e&&!0===m.current&&(w(),x?.(),m.current=!1)},[w,x]);return(0,o().jsx)(Tj,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:(0,o().jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,o().jsx)(rl.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),Aj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,align:n="start",collisionPadding:i=Oj,...a}=e,s=uj(r);return(0,o().jsx)(Yp,{...s,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Tj,Dj]=lj(_j,{}),Fj="SelectViewport",Ij=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,nonce:n,...i}=e,s=Pj(Fj,r),l=Dj(Fj,r),c=za(t,s.onViewportChange),u=a().useRef(0);return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,o().jsx)(ij.Slot,{scope:r,children:(0,o().jsx)(rl.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:As(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=l;if(n?.current&&r){const e=Math.abs(u.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*Oj,o=parseFloat(r.style.minHeight),i=parseFloat(r.style.height),a=Math.max(o,i);if(a<n){const o=a+e,i=Math.min(n,o),s=o-i;r.style.height=i+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})},"SelectViewport")),[Mj,Lj]=lj("SelectGroup"),Vj="SelectItem",[$j,zj]=lj(Vj),Uj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...l}=e,c=fj(Vj,r),u=Pj(Vj,r),d=c.value===n,[f,p]=a().useState(s??""),[v,h]=a().useState(!1),m=za(t,al(e=>u.itemRefCallback?.(e,n,i))),y=qs(),g=a().useRef("touch");function b(e){c.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),c.onUserSelect(n),c.onOpenChange(!1)}return Xw(b,"handleSelect"),(0,o().jsx)($j,{scope:r,value:n,disabled:i,textId:y,isSelected:d,onItemTextChange:a().useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,o().jsx)(ij.ItemSlot,{scope:r,value:n,disabled:i,textValue:f,children:(0,o().jsx)(rl.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:m,onFocus:As(l.onFocus,()=>h(!0)),onBlur:As(l.onBlur,()=>h(!1)),onClick:As(l.onClick,e=>{i||"mouse"!==g.current&&b(e)}),onPointerUp:As(l.onPointerUp,e=>{i||"mouse"===g.current&&b(e)}),onPointerDown:As(l.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:As(l.onPointerMove,e=>{g.current=e.pointerType,i?u.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:As(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:As(l.onKeyDown,e=>{if(i||e.target!==e.currentTarget)return;""!==u.searchRef?.current&&" "===e.key||(nj.includes(e.key)&&b(e)," "===e.key&&e.preventDefault())})})})})},"SelectItem")),qj="SelectItemText",Wj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,className:n,style:i,...l}=e,c=fj(qj,r),u=Pj(qj,r),d=zj(qj,r),f=vj(qj,r),[p,v]=a().useState(null),h=al(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),m=za(t,v,d.onItemTextChange,h),y=p?.textContent,g=a().useMemo(()=>(0,o().jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=f;return Vs(()=>(b(g),()=>x(g)),[b,x,g]),(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(rl.span,{id:d.textId,...l,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!Zj(c.value)?s().createPortal(l.children,c.valueNode):null]})},"SelectItemText")),Bj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,...n}=e;return zj("SelectItemIndicator",r).isSelected?(0,o().jsx)(rl.span,{"aria-hidden":!0,...n,ref:t}):null},"SelectItemIndicator")),Hj=a().forwardRef(Xw(function({__scopeSelect:e,...t},r){const n=fj("SelectBubbleInput",e),{value:i,onValueChange:s,required:l,disabled:c,name:u,autoComplete:d,form:f,userSelection:p}=n,{nativeOptions:v,nativeSelectKey:h}=n,m=a().useRef(null),y=za(r,m),g=i??"",b=a().useRef(g),x=a().useRef(p),w=a().useRef(!1),j=Array.from(v).some(e=>""===(e.props.value??""));return a().useEffect(()=>{const e=m.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set,n=null!==p&&p!==x.current;x.current=p;const o=b.current!==g;b.current=g;const i=n&&o;if(n&&!o&&p.value!==g&&!p.hasConsumerStoppedPropagation&&r){w.current=!0;try{r.call(e,p.value),e.dispatchEvent(new Event("change",{bubbles:!0}))}finally{w.current=!1,r.call(e,g)}return}const a=i&&!p.hasConsumerStoppedPropagation;if(o&&r){const t=new Event("change",{bubbles:a});r.call(e,g),e.dispatchEvent(t)}},[g,p]),(0,o().jsxs)(rl.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:u,autoComplete:d,disabled:c,form:f,onChange:e=>{w.current||s(e.target.value)},...t,style:{...Jw,...t.style},ref:y,defaultValue:g,children:[Zj(i)&&!j?(0,o().jsx)("option",{value:""}):null,Array.from(v)]},h)},"SelectBubbleInput"));function Gj(e){return"function"==typeof e}function Zj(e){return""===e||void 0===e}function Kj(e){const t=al(e),r=a().useRef(""),n=a().useRef(0),o=a().useCallback(e=>{const o=r.current+e;function i(e){r.current=e,window.clearTimeout(n.current),""!==e&&(n.current=window.setTimeout(()=>i(""),1e3))}t(o),Xw(i,"updateSearch"),i(o)},[t]),i=a().useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return a().useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function Qj(e,t,r){const n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=Jj(e,Math.max(o,0));1===n.length&&(i=i.filter(e=>e!==r));const a=i.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function Jj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}Xw(Gj,"isFunction"),Xw(Zj,"shouldShowPlaceholder"),Xw(Kj,"useTypeaheadSearch"),Xw(Qj,"findNextItem"),Xw(Jj,"wrapArray");const Yj=dd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function Xj(e){return Xj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xj(e)}var e_=["className","children"],t_=["className","children","position"],r_=["className","children"];function n_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n_(Object(r),!0).forEach(function(t){i_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xj(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Xj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s_=mj,l_=gj,c_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=a_(e,e_);return(0,o().jsxs)(yj,o_(o_({ref:t,className:hi("vt-flex vt-h-10 vt-items-center vt-justify-between vt-rounded-md vt-border vt-border-input vt-bg-background vt-px-3 vt-py-2 vt-text-sm vt-ring-offset-background placeholder:vt-text-muted-foreground focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2 disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},i),{},{children:[n,(0,o().jsx)(bj,{asChild:!0,children:(0,o().jsx)(Yj,{className:"vt-h-4 vt-w-4 vt-opacity-50"})})]}))});c_.displayName=yj.displayName;var u_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=e.position,a=void 0===i?"popper":i,s=a_(e,t_);return(0,o().jsx)(jj,{children:(0,o().jsx)(kj,o_(o_({ref:t,className:hi("vt-ui vt-relative vt-z-[100000] vt-min-w-[8rem] vt-overflow-hidden vt-rounded-md vt-border vt-bg-popover vt-text-popover-foreground vt-shadow-md data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out data-[state=closed]:vt-fade-out-0 data-[state=open]:vt-fade-in-0 data-[state=closed]:vt-zoom-out-95 data-[state=open]:vt-zoom-in-95 data-[side=bottom]:vt-slide-in-from-top-2 data-[side=left]:vt-slide-in-from-right-2 data-[side=right]:vt-slide-in-from-left-2 data-[side=top]:vt-slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a},s),{},{children:(0,o().jsx)(Ij,{className:hi("vt-p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})}))})});u_.displayName=kj.displayName;var d_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=a_(e,r_);return(0,o().jsxs)(Uj,o_(o_({ref:t,className:hi("vt-relative vt-flex vt-w-full vt-cursor-default vt-select-none vt-items-center vt-rounded-sm vt-py-1.5 vt-pl-8 vt-pr-2 vt-text-sm vt-outline-none focus:vt-bg-accent focus:vt-text-accent-foreground data-[disabled]:vt-pointer-events-none data-[disabled]:vt-opacity-50",r)},i),{},{children:[(0,o().jsx)("span",{className:"vt-absolute vt-left-2 vt-flex h-3.5 w-3.5 vt-items-center vt-justify-center",children:(0,o().jsx)(Bj,{children:(0,o().jsx)(Mv,{className:"vt-h-4 vt-w-4"})})}),(0,o().jsx)(Wj,{children:n})]}))});function f_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}d_.displayName=Uj.displayName;var v_=function(e){return new Date(e)<new Date},h_=function(e){var t=new Date(e);return t<new Date?(0,mi.__)("Expired","versatile-toolkit"):t.toLocaleString()},m_=function(e){var t=new Date,r={"1_hour":36e5,"3_hours":108e5,"6_hours":216e5,"12_hours":432e5,"1_day":864e5,"3_days":2592e5,"1_week":6048e5,"2_weeks":12096e5,"1_month":2592e6,"3_months":7776e6,"6_months":15552e6,"1_year":31536e6}[e]||0;return new Date(t.getTime()+r).toString()},y_=function(e){var t=new Date(e),r=new Date,n=t.getTime()-r.getTime();if(n<=0)return(0,mi.__)("Expired","versatile-toolkit");var o=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5),a=Math.floor(n%36e5/6e4);return o>0?"".concat(o,"d ").concat(i,"h ").concat(a,"m remaining"):i>0?"".concat(i,"h ").concat(a,"m remaining"):"".concat(a,"m remaining")};function g_(e){return g_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g_(e)}function b_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b_(Object(r),!0).forEach(function(t){w_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=g_(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=g_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return __(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(__(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,__(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,__(d,"constructor",c),__(c,"constructor",l),l.displayName="GeneratorFunction",__(c,o,"GeneratorFunction"),__(d),__(d,o,"Generator"),__(d,n,function(){return this}),__(d,"toString",function(){return"[object Generator]"}),(j_=function(){return{w:i,m:f}})()}function __(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}__=function(e,t,r,n){function i(t,r){__(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},__(e,t,r,n)}function k_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function S_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){k_(i,n,o,a,s,"next",e)}function s(e){k_(i,n,o,a,s,"throw",e)}a(void 0)})}}var O_,N_,P_,C_,E_,R_,A_,T_=[{value:"1_hour",label:(0,mi.__)("1 Hour","versatile-toolkit")},{value:"3_hours",label:(0,mi.__)("3 Hours","versatile-toolkit")},{value:"6_hours",label:(0,mi.__)("6 Hours","versatile-toolkit")},{value:"12_hours",label:(0,mi.__)("12 Hours","versatile-toolkit")},{value:"1_day",label:(0,mi.__)("1 Day","versatile-toolkit")},{value:"3_days",label:(0,mi.__)("3 Days","versatile-toolkit")},{value:"1_week",label:(0,mi.__)("1 Week","versatile-toolkit")},{value:"2_weeks",label:(0,mi.__)("2 Weeks","versatile-toolkit")},{value:"1_month",label:(0,mi.__)("1 Month","versatile-toolkit")},{value:"3_months",label:(0,mi.__)("3 Months","versatile-toolkit")},{value:"6_months",label:(0,mi.__)("6 Months","versatile-toolkit")},{value:"1_year",label:(0,mi.__)("1 Year","versatile-toolkit")}],D_={getAvailableRoles:(A_=S_(j_().m(function e(){var t,r;return j_().w(function(e){for(;;)switch(e.n){case 0:return t={action:"versatile_get_available_roles"},e.n=1,ka(Hi.ajax_url,{body:t});case 1:if(200===(r=e.v).status_code){e.n=2;break}throw new Error(r.message||(0,mi.__)("Failed to get available roles","versatile-toolkit"));case 2:return e.a(2,r.data)}},e)})),function(){return A_.apply(this,arguments)}),createTempLogin:(R_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_(x_({action:"versatile_create_temp_login"},t),{},{expires_at:h_(m_(t.expires_at))}),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to create temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return R_.apply(this,arguments)}),getTempLoginList:(E_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_get_temp_login_list"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to get temporary login list","versatile-toolkit"));case 2:return e.a(2,n.data)}},e)})),function(e){return E_.apply(this,arguments)}),toggleTempLoginStatus:(C_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_toggle_temp_login_status"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to toggle temporary login status","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return C_.apply(this,arguments)}),deleteTempLogin:(P_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_delete_temp_login"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to delete temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return P_.apply(this,arguments)}),updateTempLogin:(N_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_update_temp_login"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to update temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return N_.apply(this,arguments)}),extendTempLoginTime:(O_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_(x_({action:"versatile_extend_temp_login_time"},t),{},{extend_by:h_(m_(t.extend_by))}),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to extend temporary login time","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return O_.apply(this,arguments)})},F_=function(){return ra({queryKey:["available-roles"],queryFn:D_.getAvailableRoles,refetchOnWindowFocus:!1})};const I_=dd("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),M_=dd("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),L_=dd("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),V_=dd("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),$_=dd("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),z_=dd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function U_(e){return U_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U_(e)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(t){B_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function B_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=U_(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=U_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return G_(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(G_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,G_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,G_(d,"constructor",c),G_(c,"constructor",l),l.displayName="GeneratorFunction",G_(c,o,"GeneratorFunction"),G_(d),G_(d,o,"Generator"),G_(d,n,function(){return this}),G_(d,"toString",function(){return"[object Generator]"}),(H_=function(){return{w:i,m:f}})()}function G_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G_=function(e,t,r,n){function i(t,r){G_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},G_(e,t,r,n)}function Z_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function K_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Z_(i,n,o,a,s,"next",e)}function s(e){Z_(i,n,o,a,s,"throw",e)}a(void 0)})}}function Q_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Y_=[{key:"name",label:"Name"},{key:"email",label:"Email"},{key:"role",label:"Role"},{key:"status",label:"Status"},{key:"expires_at",label:"Expires At"},{key:"login_count",label:"Login Count"},{key:"last_login",label:"Last Login"},{key:"actions",label:"Actions"}];const X_=function(){var e,t,r=Q_((0,a().useState)({page:1,per_page:10,order:"desc",orderby:"created_at",role:"",status:"all"}),2),n=r[0],i=r[1],s=Q_((0,a().useState)(""),2),l=s[0],c=s[1],u=function(e,t){var r=f_((0,a().useState)(e),2),n=r[0],o=r[1];return(0,a().useEffect)(function(){var r=setTimeout(function(){o(e)},t);return function(){clearTimeout(r)}},[e,t]),n}(l,500),d=Q_((0,a().useState)(null),2),f=d[0],p=d[1],v=Q_((0,a().useState)(null),2),h=v[0],m=v[1],y=Q_((0,a().useState)({}),2),g=y[0],b=y[1],x=Q_((0,a().useState)(null),2),w=x[0],j=x[1],_=Q_((0,a().useState)(null),2),k=_[0],S=_[1],O=Q_((0,a().useState)("1_hour"),2),N=O[0],P=O[1],C=ra({queryKey:["get-temp-logins",t=n],queryFn:function(){return D_.getTempLoginList(t)},refetchOnWindowFocus:!1}),E=C.data,R=C.isLoading,A=function(){var e=K_(H_().m(function e(t){return H_().w(function(e){for(;;)switch(e.n){case 0:return p(t.id),e.n=1,ha(t.login_url);case 1:setTimeout(function(){p(null)},2e3);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e){return e.is_active?v_(e.expires_at)?(0,o().jsx)(xs,{variant:"destructive",children:(0,mi.__)("Expired","versatile-toolkit")}):(0,o().jsx)(xs,{variant:"default",children:(0,mi.__)("Active","versatile-toolkit")}):(0,o().jsx)(xs,{variant:"outline",children:(0,mi.__)("Inactive","versatile-toolkit")})},D=function(){var e=Fn();return oa({mutationFn:function(e){return D_.toggleTempLoginStatus(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login status updated successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while updating temporary login status","versatile-toolkit"))}})}(),F=D.mutateAsync,I=function(){var e=K_(H_().m(function e(t,r){return H_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,F({id:t,is_active:!r});case 1:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),M=function(){var e=Fn();return oa({mutationFn:function(e){return D_.deleteTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login deleted successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while deleting temporary login","versatile-toolkit"))}})}(),L=M.mutateAsync,V=function(){var e=K_(H_().m(function e(){return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(w){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,L({id:w.id});case 2:j(null),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),$=function(){j(null)},z=function(){var e=Fn();return oa({mutationFn:function(e){return D_.updateTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login updated successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while updating temporary login","versatile-toolkit"))}})}(),U=z.mutateAsync,q=z.isPending,W=function(){var e=K_(H_().m(function e(){var t,r;return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(h){e.n=1;break}return e.a(2);case 1:if(null!==(t=g.display_name)&&void 0!==t&&t.trim()){e.n=2;break}return Lr.error((0,mi.__)("Display name is required","versatile-toolkit")),e.a(2);case 2:if(null!==(r=g.email)&&void 0!==r&&r.trim()){e.n=3;break}return Lr.error((0,mi.__)("Email is required","versatile-toolkit")),e.a(2);case 3:return e.p=3,e.n=4,U(W_({id:h.id},g));case 4:m(null),b({}),e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),B=function(){m(null),b({})},H=function(){var e=Fn();return oa({mutationFn:function(e){return D_.extendTempLoginTime(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login time extended successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while extending temporary login time","versatile-toolkit"))}})}(),G=H.mutateAsync,Z=H.isPending,K=function(){var e=K_(H_().m(function e(){return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(k){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,G({id:k.id,extend_by:N});case 2:S(null),P("1_hour"),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),Q=function(){S(null),P("1_hour")},J=F_().data;(0,a().useEffect)(function(){i(function(e){return W_(W_({},e),{},{search:u,page:1})})},[u]);var Y=function(e,t){i(function(r){return W_(W_({},r),{},B_({},e,t))})},X=function(e){i(function(t){return W_(W_({},t),{},{page:e})})};return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)(Li,{children:[(0,o().jsx)(Vi,{children:(0,o().jsxs)("div",{className:"vt-flex vt-flex-row vt-items-center vt-gap-4 vt-justify-end",children:[(0,o().jsxs)("div",{className:"vt-w-[300px] vt-relative",children:[(0,o().jsx)(fd,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(Kv,{placeholder:(0,mi.__)("Search by name or email...","versatile-toolkit"),value:l,onChange:function(e){return t=e.target.value,void c(t);var t},className:"vt-pl-10 vt-w-full"})]}),(0,o().jsxs)(s_,{value:n.role||"all_roles",onValueChange:function(e){return Y("role","all_roles"===e?"":e)},children:[(0,o().jsx)(c_,{className:"vt-w-48",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("All Roles","versatile-toolkit")})}),(0,o().jsxs)(u_,{children:[(0,o().jsx)(d_,{value:"all_roles",children:(0,mi.__)("All Roles","versatile-toolkit")}),Object.entries(null!=J?J:{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})]})]}),(0,o().jsxs)(s_,{value:n.status,onValueChange:function(e){return Y("status",e)},children:[(0,o().jsx)(c_,{className:"vt-w-48",children:(0,o().jsx)(l_,{})}),(0,o().jsxs)(u_,{children:[(0,o().jsx)(d_,{value:"all",children:(0,mi.__)("All Status","versatile-toolkit")}),(0,o().jsx)(d_,{value:"active",children:(0,mi.__)("Active","versatile-toolkit")}),(0,o().jsx)(d_,{value:"inactive",children:(0,mi.__)("Inactive","versatile-toolkit")}),(0,o().jsx)(d_,{value:"expired",children:(0,mi.__)("Expired","versatile-toolkit")})]})]})]})}),(0,o().jsx)(zi,{children:(0,o().jsxs)(kw,{children:[(0,o().jsx)(Sw,{children:(0,o().jsx)(Nw,{children:Y_.map(function(e){return(0,o().jsx)(Pw,{children:e.label},e.key)})})}),(0,o().jsx)(Ow,{children:R?(0,o().jsx)(Oi,{columns:Y_.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:5}):E&&(null==E||null===(e=E.temp_logins)||void 0===e?void 0:e.length)>0?E.temp_logins.map(function(e){return(0,o().jsxs)(Nw,{children:[(0,o().jsx)(Cw,{children:e.display_name}),(0,o().jsx)(Cw,{children:e.email}),(0,o().jsx)(Cw,{children:(0,o().jsx)(xs,{children:e.role})}),(0,o().jsx)(Cw,{children:T(e)}),(0,o().jsx)(Cw,{children:(0,o().jsx)("span",{className:"".concat(v_(e.expires_at)?"text-red-500 font-semibold":""),children:y_(e.expires_at)})}),(0,o().jsx)(Cw,{children:e.login_count}),(0,o().jsx)(Cw,{children:e.last_login?(t=e.last_login,r=new Date,n=new Date(t),i=r.getTime()-n.getTime(),a=Math.floor(i/864e5),s=Math.floor(i%864e5/36e5),l=Math.floor(i%36e5/6e4),a>0?"".concat(a,"d ").concat(s,"h ").concat(l,"m ago"):s>0?"".concat(s,"h ").concat(l,"m ago"):"".concat(l,"m ago")):"-"}),(0,o().jsx)(Cw,{children:(0,o().jsxs)(Nv,{children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{size:"sm",variant:"ghost",className:"vt-h-8 vt-w-8 vt-p-0",children:[(0,o().jsx)(I_,{className:"vt-h-4 vt-w-4"}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsxs)(Cv,{className:"vt-w-max vt-p-1 vt-flex vt-flex-col vt-align-center vt-justify-start",align:"end",children:[(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return A(e)},children:[f===e.id?(0,o().jsx)(Mv,{className:"vt-mr-2 vt-h-4 vt-w-4 vt-text-green-600"}):(0,o().jsx)(M_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Copy Login URL","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){m(e),b({display_name:e.display_name,email:e.email,role:e.role,redirect_url:e.redirect_url,expires_at:e.expires_at})}(e)},children:[(0,o().jsx)(L_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Edit","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){S(e),P("1_hour")}(e)},children:[(0,o().jsx)(V_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Extend Time","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return I(e.id,e.is_active)},children:[e.is_active?(0,o().jsx)($_,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,o().jsx)(_b,{className:"vt-mr-2 vt-h-4 vt-w-4"}),e.is_active?(0,mi.__)("Deactivate","versatile-toolkit"):(0,mi.__)("Activate","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start vt-text-red-600 hover:vt-text-red-700 hover:vt-bg-red-50",onClick:function(){return function(e){j(e)}(e)},children:[(0,o().jsx)(z_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Delete","versatile-toolkit")]})]})]})})]},e.id);var t,r,n,i,a,s,l}):(0,o().jsx)(Ew,{title:"No temporary logins found",description:"Try adjusting your search or filters"})})]})}),E&&E.total_pages>1&&(0,o().jsx)(zi,{className:"vt-pt-0",children:(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-space-x-2",children:[(0,o().jsx)(vs,{variant:"outline",disabled:1===E.page,onClick:function(){return X(E.page-1)},children:(0,mi.__)("Previous","versatile-toolkit")}),(0,o().jsxs)("span",{className:"vt-flex vt-items-center vt-px-4",children:[(0,mi.__)("Page","versatile-toolkit")," ",E.page," ",(0,mi.__)("of","versatile-toolkit")," ",E.total_pages]}),(0,o().jsx)(vs,{variant:"outline",disabled:E.page===E.total_pages,onClick:function(){return X(E.page+1)},children:(0,mi.__)("Next","versatile-toolkit")})]})})]}),(0,o().jsx)(Od,{open:!!h,onOpenChange:function(e){return!e&&B()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsxs)(Ad,{children:[(0,o().jsx)(Dd,{children:(0,mi.__)("Edit Temporary Login","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Note: Expiration date cannot be modified after creation.","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-display-name",children:(0,mi.__)("Display Name","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-display-name",value:g.display_name||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{display_name:e.target.value})})},placeholder:(0,mi.__)("Enter display name","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-email",children:(0,mi.__)("Email","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-email",type:"email",value:g.email||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{email:e.target.value})})},placeholder:(0,mi.__)("Enter email address","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-role",children:(0,mi.__)("Role","versatile-toolkit")}),(0,o().jsxs)(s_,{value:g.role||"",onValueChange:function(e){return b(function(t){return W_(W_({},t),{},{role:e})})},children:[(0,o().jsx)(c_,{children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select role","versatile-toolkit")})}),(0,o().jsx)(u_,{children:Object.entries(null!=J?J:{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})})]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-redirect-url",children:(0,mi.__)("Redirect URL","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-redirect-url",type:"url",value:g.redirect_url||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{redirect_url:e.target.value})})},placeholder:(0,mi.__)("Enter redirect URL","versatile-toolkit")})]})]}),(0,o().jsxs)(Td,{children:[(0,o().jsx)(vs,{variant:"outline",onClick:B,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:W,disabled:q,children:q?(0,mi.__)("Updating...","versatile-toolkit"):(0,mi.__)("Update","versatile-toolkit")})]})]})}),(0,o().jsx)(Od,{open:!!w,onOpenChange:function(e){return!e&&$()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsx)(Ad,{children:(0,o().jsx)(Dd,{className:"vt-text-red-600",children:(0,mi.__)("Delete Temporary Login","versatile-toolkit")})}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Are you sure you want to delete this temporary login? This action cannot be undone.","versatile-toolkit")}),w&&(0,o().jsxs)("div",{className:"vt-bg-gray-50 vt-p-3 vt-rounded-md",children:[(0,o().jsx)("p",{className:"vt-font-medium",children:w.display_name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:w.email}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:w.role})]})]}),(0,o().jsxs)(Td,{children:[(0,o().jsx)(vs,{variant:"outline",onClick:$,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{variant:"destructive",onClick:V,children:(0,mi.__)("Delete","versatile-toolkit")})]})]})}),(0,o().jsx)(Od,{open:!!k,onOpenChange:function(e){return!e&&Q()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsxs)(Ad,{children:[(0,o().jsx)(Dd,{children:(0,mi.__)("Extend Expiration Time","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Select how much time to add to the current expiration date.","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[k&&(0,o().jsxs)("div",{className:"vt-bg-gray-100 vt-p-3 vt-rounded-md",children:[(0,o().jsx)("p",{className:"vt-font-medium",children:k.display_name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:k.email}),(0,o().jsxs)("p",{className:"vt-text-sm vt-text-gray-600",children:[(0,mi.__)("Current expiration:","versatile-toolkit")," ",new Date(k.expires_at).toLocaleString()]})]}),(0,o().jsxs)("div",{children:[(0,o().jsx)(Kb,{htmlFor:"extend-time-select",className:"vt-block vt-mb-4",children:(0,mi.__)("Extend by","versatile-toolkit")}),(0,o().jsxs)(s_,{value:N,onValueChange:P,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select expires at","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll",children:T_.map(function(e){return(0,o().jsx)(d_,{value:e.value,children:e.label},e.value)})})]})]})]}),(0,o().jsxs)(Td,{className:"vt-mt-4",children:[(0,o().jsx)(vs,{variant:"outline",onClick:Q,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:K,disabled:Z,children:Z?(0,mi.__)("Extending...","versatile-toolkit"):(0,mi.__)("Extend Time","versatile-toolkit")})]})]})})]})},ek=dd("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function tk(e){return tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tk(e)}function rk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rk(Object(r),!0).forEach(function(t){ok(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ok(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=tk(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ak(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ak(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ak(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ak(d,"constructor",c),ak(c,"constructor",l),l.displayName="GeneratorFunction",ak(c,o,"GeneratorFunction"),ak(d),ak(d,o,"Generator"),ak(d,n,function(){return this}),ak(d,"toString",function(){return"[object Generator]"}),(ik=function(){return{w:i,m:f}})()}function ak(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ak=function(e,t,r,n){function i(t,r){ak(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ak(e,t,r,n)}function sk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function lk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ck(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ck(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ck(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(0,mi.__)("Administrator","versatile-toolkit"),(0,mi.__)("Editor","versatile-toolkit"),(0,mi.__)("Author","versatile-toolkit"),(0,mi.__)("Contributor","versatile-toolkit"),(0,mi.__)("Subscriber","versatile-toolkit");const uk=function(){var e=lk((0,a().useState)(!1),2),t=e[0],r=e[1],n=Ug({resolver:Kg(Im),defaultValues:{display_name:"",email:"",role:"",expires_at:"3_hours",redirect_url:Hi.admin_url}}),i=n.handleSubmit,s=(n.formState.errors,F_()),l=s.data,c=s.isLoading,u=function(){var e=Fn();return oa({mutationFn:D_.createTempLogin,onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login created successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while creating temporary login","versatile-toolkit"))}})}(),d=u.mutateAsync,f=function(){var e,t=(e=ik().m(function e(t){return ik().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,d(t,{onSuccess:function(){r(!1)}});case 1:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sk(i,n,o,a,s,"next",e)}function s(e){sk(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,o().jsx)(o().Fragment,{children:(0,o().jsxs)(Od,{open:t,onOpenChange:r,children:[(0,o().jsx)(Nd,{asChild:!0,children:(0,o().jsxs)(vs,{children:[(0,o().jsx)(ek,{className:"vt-w-4 vt-h-4 vt-mr-2"}),(0,mi.__)("Create Temp Login","versatile-toolkit")]})}),(0,o().jsxs)(Rd,{className:"vt-max-w-lg",children:[(0,o().jsx)(Ad,{children:(0,o().jsx)(Dd,{children:(0,mi.__)("Create Temporary Login","versatile-toolkit")})}),(0,o().jsx)(sx,nk(nk({},n),{},{children:(0,o().jsxs)("form",{onSubmit:i(f,function(e){}),className:"vt-flex vt-flex-col vt-gap-5",children:[(0,o().jsx)(cx,{control:n.control,name:"display_name",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Display Name","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Display Name","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"email",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Email","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Email","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"role",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Role","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsxs)(s_,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select role","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll-auto",children:c?(0,o().jsx)(ji,{size:"md",className:"vt-ml-2",text:(0,mi.__)("Loading roles","versatile-toolkit")}):Object.entries(null!=l?l:{}).map(function(e){var t=lk(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})})]})}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"expires_at",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Expires At","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsxs)(s_,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select expires at","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll",children:T_.map(function(e){return(0,o().jsx)(d_,{value:e.value,children:e.label},e.value)})})]})}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"redirect_url",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Redirect URL","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Redirect URL","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)("div",{className:"vt-flex vt-justify-end",children:(0,o().jsx)(vs,{type:"submit",children:(0,mi.__)("Create Temporary Login","versatile-toolkit")})})]})}))]})]})})};const dk=function(){return(0,o().jsxs)("div",{className:"vt-py-6 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("h2",{className:"vt-text-2xl vt-font-bold",children:(0,mi.__)("Temporary Logins","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-gray-600 vt-mt-2",children:(0,mi.__)("Create and manage temporary login access for users","versatile-toolkit")})]}),(0,o().jsx)("div",{children:(0,o().jsx)(uk,{})})]}),(0,o().jsx)(X_,{})]})};function fk(e){return fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fk(e)}var pk=["className"],vk=["side","className","children"],hk=["className"],mk=["className"],yk=["className"];function gk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gk(Object(r),!0).forEach(function(t){xk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=fk(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=fk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var jk=uu,_k=du,kk=hu,Sk=a().forwardRef(function(e,t){var r=e.className,n=wk(e,pk);return(0,o().jsx)(yu,bk(bk({className:hi("vt-ui vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n),{},{ref:t}))});Sk.displayName=yu.displayName;var Ok=ls("vt-fixed vt-z-50 vt-gap-4 vt-bg-background vt-p-6 vt-shadow-lg vt-transition vt-ease-in-out data-[state=closed]:vt-duration-300 data-[state=open]:vt-duration-500 data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out",{variants:{side:{top:"vt-inset-x-0 vt-top-0 vt-border-b data-[state=closed]:vt-slide-out-to-top data-[state=open]:vt-slide-in-from-top",bottom:"vt-inset-x-0 vt-bottom-0 vt-border-t data-[state=closed]:vt-slide-out-to-bottom data-[state=open]:vt-slide-in-from-bottom",left:"vt-inset-y-0 vt-left-0 vt-h-full vt-w-3/4 vt-border-r data-[state=closed]:vt-slide-out-to-left data-[state=open]:vt-slide-in-from-left sm:max-w-sm",right:"vt-inset-y-0 vt-right-0 vt-h-full vt-w-3/4 vt-border-l data-[state=closed]:vt-slide-out-to-right data-[state=open]:vt-slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Nk=a().forwardRef(function(e,t){var r=e.side,n=void 0===r?"right":r,i=e.className,a=e.children,s=wk(e,vk);return(0,o().jsxs)(kk,{children:[(0,o().jsx)(Sk,{}),(0,o().jsxs)(wu,bk(bk({ref:t,className:hi(Ok({side:n}),"vt-ui vt-z-[99999] sm:vt-max-w-[540px]",i)},s),{},{children:[(0,o().jsxs)(Nu,{className:Sd,children:[(0,o().jsx)(pd,{size:16}),(0,o().jsx)("span",{className:"vt-sr-only",children:"Close"})]}),a]}))]})});Nk.displayName=wu.displayName;var Pk=function(e){var t=e.className,r=wk(e,hk);return(0,o().jsx)("div",bk({className:hi("vt-flex vt-flex-col vt-space-y-2 vt-text-center sm:vt-text-left",t)},r))};Pk.displayName="SheetHeader";var Ck=a().forwardRef(function(e,t){var r=e.className,n=wk(e,mk);return(0,o().jsx)(Su,bk({ref:t,className:hi("vt-text-lg vt-font-semibold vt-text-foreground",r)},n))});Ck.displayName=Su.displayName,a().forwardRef(function(e,t){var r=e.className,n=wk(e,yk);return(0,o().jsx)(Ou,bk({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName=Ou.displayName;const Ek=dd("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]);function Rk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ak(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Tk=function(){var e,t,r=Rk((0,a().useState)(!1),2),n=r[0],i=r[1],s=Fn(),l=Se(),c=ra({queryKey:["getServiceList"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_service_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3}),u=c.data,d=c.isLoading,f=null==u?void 0:u.data,p=function(){if(!f||"/"===l.pathname)return null;var e=l.pathname.split("/").filter(Boolean)[0],t=Object.entries(f).find(function(t){var r=Rk(t,2);r[0];return r[1].path===e});return t?t[1]:null}(),v=oa({mutationFn:(t=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_service_status",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Service status updated!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to update service status","versatile-toolkit"))}});kb({isOpen:n,onClose:function(){i(!n)}}).handleBackdropClick;return(0,o().jsx)(o().Fragment,{children:(0,o().jsxs)("header",{className:"vt-bg-white vt-border-b vt-border-gray-200 vt-py-4 vt-flex vt-items-center vt-justify-between vt-relative",children:[(0,o().jsx)(Tt,{to:"/",className:"vt-flex vt-items-center vt-text-blue-600 vt-text-lg vt-font-semibold",children:(0,mi.__)("Versatile Toolkit","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-3",children:[p&&(0,o().jsx)(o().Fragment,{children:Object.keys((null==p?void 0:p.menus)||{}).map(function(e){var t,r,n="/".concat(null==p?void 0:p.path,"/").concat(null==p||null===(t=p.menus)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.slug);return n.endsWith("/")&&(n=n.slice(0,-1)),(0,o().jsx)(Tt,{to:n,onClick:function(){},className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-transition-colors vt-duration-200 ".concat(l.pathname===n?"vt-bg-blue-600 vt-text-white vt-border vt-border-blue-700 hover:vt-text-white focus:!vt-text-white":"vt-bg-blue-50 vt-border vt-border-blue-200"),children:null==p||null===(r=p.menus)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.label},e)})}),!d&&(null==f?void 0:f.troubleshoot.enable)&&!p&&(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(Tt,{to:"/troubleshoot",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,mi.__)("Deactivate Plugins","versatile-toolkit")}),(0,o().jsx)(Tt,{to:"/troubleshoot/debug-log",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,mi.__)("Debug Log","versatile-toolkit")})]}),(0,o().jsxs)(jk,{children:[(0,o().jsx)(_k,{asChild:!0,children:(0,o().jsx)("button",{className:"vt-p-1 vt-rounded-md vt-bg-blue-100 hover:vt-bg-blue-200 vt-transition-colors vt-duration-200","aria-label":(0,mi.__)("Toggle menu","versatile-toolkit"),children:(0,o().jsx)(Ek,{className:"vt-w-5 vt-h-5 vt-text-gray-600"})})}),(0,o().jsxs)(Nk,{children:[(0,o().jsx)(Pk,{children:(0,o().jsx)(Ck,{children:(0,mi.__)("Services","versatile-toolkit")})}),(0,o().jsx)("div",{className:"vt-space-y-3 vt-mt-6",children:Object.entries(f||{}).map(function(e){var t=Rk(e,2),r=t[0],n=t[1];return(0,o().jsxs)("div",{onClick:function(){return function(e,t){v.mutate({service_key:e,enable:!t.enable},{onSuccess:function(){"quickact"!==e?(s.invalidateQueries({queryKey:["getServiceList"]}),s.invalidateQueries({queryKey:["getEnableServiceList"]})):window.location.reload()}})}(r,n)},className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-rounded-md vt-border vt-border-gray-200 vt-bg-gray-50 hover:vt-bg-blue-100 hover:vt-border-blue-300 hover:vt-shadow-md vt-transition-all vt-duration-300 vt-cursor-pointer",children:[(0,o().jsx)("span",{className:"vt-text-blue-500 vt-font-medium hover:vt-text-blue-800 vt-transition-colors vt-duration-300",children:n.label}),(0,o().jsxs)("div",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:n.enable,onChange:function(){},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-relative vt-w-11 vt-h-6 vt-bg-[#c7c6c6] peer-focus:vt-outline-none peer-focus:vt-ring-4 peer-focus:vt-ring-blue-300 vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-gray-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]},n.label)})})]})]})]})]})})};var Dk=function(e){var t=e.children,r=Ta(),n=r.data,i=(r.isLoading,null==n?void 0:n.data),a=Se().pathname.split("/").filter(Boolean)[0];if(!i)return(0,o().jsx)(o().Fragment,{children:t});var s=Object.values(i).find(function(e){return e.path===a});return s&&s.enable?(0,o().jsx)(o().Fragment,{children:t}):(0,o().jsx)(Ze,{to:"/",replace:!0})};const Fk=dd("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),Ik=dd("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),Mk=dd("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Lk=dd("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function Vk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $k(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var zk=function(e,t,r,n,o){return{pathname:"/troubleshoot/debug-log",search:"?".concat(Uk(e,t,r,n,o))}},Uk=function(e,t,r,n,o){var i=new URLSearchParams;return i.append("paged",e.toString()),i.append("per_page",null==t?void 0:t.toString()),r&&i.append("search",r),n&&i.append("sort_key",n),o&&i.append("sort_dir",o),i.toString()};function qk(e){var t=e.order;return(0,o().jsxs)("span",{"aria-hidden":!0,className:"vt-inline-flex vt-flex-col vt-leading-none vt-ml-1",children:[""===t&&(0,o().jsx)(Fk,{className:"vt-h-3 vt-w-3"}),"asc"===t&&(0,o().jsx)(Fk,{className:"vt-h-3 vt-w-3"}),"desc"===t&&(0,o().jsx)(Ik,{className:"vt-h-3 vt-w-3"})]})}var Wk=function(e){return{page:parseInt(e.get("paged")||"1"),perPage:parseInt(e.get("per_page")||"10"),search:e.get("search")||"",sortKey:e.get("sort_key")||"",order:e.get("order")||""}};function Bk(e){var t=e.columns,r=e.fetchData,n=e.searchParams,i=Pe(),s=n,l=Wk(s),c=Vk((0,a().useState)(l.search),2),u=c[0],d=c[1],f=Vk((0,a().useState)(l.page),2),p=f[0],v=f[1],h=Vk((0,a().useState)(l.perPage||10),2),m=h[0],y=h[1],g=Vk((0,a().useState)({key:l.sortKey,order:l.order}),2),b=g[0],x=g[1],w=Vk((0,a().useState)(0),2),j=w[0],_=w[1];(0,a().useEffect)(function(){var e=Wk(s);v(e.page),y(e.perPage||10),d(e.search),x({key:e.sortKey,order:e.order})},[n]);var k=Vk((0,a().useState)([]),2),S=k[0],O=k[1],N=Vk((0,a().useState)(0),2),P=N[0],C=N[1],E=Vk((0,a().useState)(!1),2),R=E[0],A=E[1];return(0,a().useEffect)(function(){A(!0),r({page:p,perPage:m,search:u,sortKey:b.key,order:b.order}).then(function(e){O(e.data),C(e.total||0),_(e.totalPages||0)}).finally(function(){return A(!1)})},[p,m,u,b]),(0,o().jsxs)("div",{className:"vt-w-full",children:[(0,o().jsxs)("div",{className:"vt-mb-3 vt-flex vt-flex-col vt-gap-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,o().jsx)("div",{className:"vt-relative vt-max-w-md"}),(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-gap-2"})]}),(0,o().jsxs)("div",{className:"vt-overflow-hidden vt-rounded-2xl vt-border vt-border-slate-200 vt-bg-white vt-shadow-sm",children:[(0,o().jsx)("div",{className:"vt-overflow-x-auto",children:(0,o().jsxs)("table",{className:"vt-min-w-full vt-text-left vt-text-sm",children:[(0,o().jsx)("thead",{className:"vt-sticky vt-top-0 vt-bg-slate-50",children:(0,o().jsx)("tr",{className:"vt-text-slate-600",children:t.map(function(e){var t=b.key===e.key,r=t?"asc"===b.order?"ascending":"descending":"none",n="vt-px-4 vt-py-3 vt-font-semibold";return e.sortable?(0,o().jsx)("th",{scope:"col","aria-sort":r,className:n,children:(0,o().jsxs)("button",{className:"group vt-inline-flex vt-items-center vt-rounded-lg vt-px-1 vt-py-0.5 hover:vt-bg-slate-200 focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-slate-300",onClick:function(){return t=String(e.key),void x(function(e){return e.key!==t?{key:t,order:"asc"}:"asc"===e.order?{key:t,order:"desc"}:{key:t,order:"asc"}});var t},"aria-label":"Sort by ".concat(e.header),children:[(0,o().jsx)("span",{children:e.header}),(0,o().jsx)(qk,{order:t?b.order:""})]})},String(e.key)):(0,o().jsx)("th",{scope:"col",className:n,children:e.header},String(e.key))})})}),(0,o().jsx)("tbody",{children:R?(0,o().jsx)(Oi,{columns:t.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:m}):0===S.length?(0,o().jsx)(Ew,{}):S.map(function(e,r){return(0,o().jsx)("tr",{className:"vt-border-t vt-border-slate-100 hover:vt-bg-slate-50/60",children:t.map(function(t){var n;return(0,o().jsx)("td",{className:"vt-px-4 vt-py-3 vt-text-slate-700",children:t.render?t.render(e,t.key):e[t.key]===e.id?(p-1)*m+r+1:String(null!==(n=e[t.key])&&void 0!==n?n:"")},String(t.key))})},e.id)})})]})}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3 vt-border-t vt-border-slate-200 vt-p-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsxs)("div",{className:"vt-text-xs vt-text-slate-600",children:["Showing"," ",(0,o().jsx)("span",{className:"vt-font-semibold",children:S.length?(p-1)*m+1:0}),"–",(0,o().jsx)("span",{className:"vt-font-semibold",children:(p-1)*m+S.length})," of",(0,o().jsxs)("span",{className:"vt-font-semibold",children:[" ",P]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)("label",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("Per page","versatile-toolkit")}),(0,o().jsx)("select",{value:m,onChange:function(e){y(Number(e.target.value)),i(zk(p,Number(e.target.value),u,b.key,b.order))},className:"vt-rounded-xl vt-border vt-!vt-border-slate-200 vt-bg-white vt-pl-2 vt-pr-7 vt-py-1 vt-text-sm vt-shadow-sm",children:[5,10,20,50,100].map(function(e){return(0,o().jsx)("option",{value:e,children:e},e)})})]})]}),S.length>0&&(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-1",children:[(0,o().jsxs)(vs,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.max(1,p-1);v(e),i(zk(e,m,u,b.key,b.order))},disabled:1===p,children:[(0,o().jsx)(Mk,{className:"vt-h-4 vt-w-4 vt-pr-1"}),"Prev"]}),(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-gap-1 vt-mx-2",children:function(){var e=[],t=Math.max(1,p-Math.floor(1.5)),r=Math.min(j,t+3-1);r-t+1<3&&(t=Math.max(1,r-3+1)),t>1&&(e.push((0,o().jsx)(vs,{type:"button",size:"sm",variant:1===p?"default":"outline","aria-label":(0,mi.__)("Go to first page","versatile-toolkit"),onClick:function(){v(1),i(zk(1,m,u,b.key,b.order))},children:"1"},1)),t>2&&e.push((0,o().jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis1")));for(var n=function(t){e.push((0,o().jsx)(vs,{size:"sm",variant:t===p?"default":"outline",type:"button","aria-label":(0,mi.__)("Go to page","versatile-toolkit"),onClick:function(){v(t),i(zk(t,m,u,b.key,b.order))},children:t},t))},a=t;a<=r;a++)n(a);return r<j&&(r<j-1&&e.push((0,o().jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis2")),e.push((0,o().jsx)(vs,{size:"sm",variant:j===p?"default":"outline",type:"button","aria-label":(0,mi.__)("Go to last page","versatile-toolkit"),onClick:function(){v(j),i(zk(j,m,u,b.key,b.order))},children:j},j))),e}()}),(0,o().jsxs)(vs,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.min(j,p+1);v(e),i(zk(e,m,u,b.key,b.order))},disabled:p===j,children:[(0,mi.__)("Next","versatile-toolkit"),(0,o().jsx)(Lk,{className:"vt-h-4 vt-w-4 vt-pl-1"})]})]})]})]})]})}const Hk=function(e){var t=e.debugStatus,r=e.logFileInfo,n=e.isAutoRefresh,i=e.isLoading,a=e.statusLoading,s=e.onToggleDebugLog,l=e.onToggleAutoRefresh,c=e.onStopAutoRefresh;return(0,o().jsxs)("div",{className:"vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-3 vt-relative",children:[a?(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300 vt-animate-pulse"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2 vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-300 vt-rounded vt-w-32 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-300 vt-rounded-full vt-w-16 vt-animate-pulse"})]}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-slate-300 vt-rounded vt-w-48 vt-animate-pulse"})]})]}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 vt-rounded-full vt-animate-pulse"})]}):(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(t?"vt-bg-green-500":"vt-bg-red-500")}),(0,o().jsxs)("div",{children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,mi.__)("Debug Logging Status","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-px-3 vt-py-1 vt-rounded-full vt-text-xs vt-font-medium ".concat(t?"vt-bg-green-100 vt-text-green-800":"vt-bg-red-100 vt-text-red-800"),children:t?(0,mi.__)("Enabled","versatile-toolkit"):(0,mi.__)("Disabled","versatile-toolkit")})]}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-slate-600",children:t?(0,mi.__)("Debug logging is currently enabled","versatile-toolkit"):(0,mi.__)("Debug logging is currently disabled","versatile-toolkit")})]})]}),(0,o().jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:t,onClick:function(e){return s(e.target.checked)},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]}),i?(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200 vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,o().jsx)("div",{className:"vt-w-4 vt-h-4 vt-bg-blue-300 vt-rounded vt-animate-pulse"}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-1",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-blue-300 vt-rounded vt-w-20 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-blue-300 vt-rounded vt-w-12 vt-animate-pulse"})]})]}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-blue-300 vt-rounded-full vt-animate-pulse"})]}):(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4 vt-text-blue-600 ".concat(n?"vt-animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),(0,o().jsxs)("span",{className:"vt-text-sm vt-font-medium vt-text-blue-800",children:[(0,mi.__)("Auto Refresh","versatile-toolkit"),n&&(0,o().jsxs)("span",{className:"vt-ml-1 vt-text-xs",children:["(",(0,mi.__)("Active","versatile-toolkit"),")"]})]})]}),(0,o().jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:n,onChange:function(e){l(e.target.checked),e.target.checked||c()},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]})]}),(0,o().jsx)("div",{className:"vt-space-y-3",children:i?(0,o().jsxs)("div",{className:"vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsx)("div",{className:"vt-h-9 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-mb-3"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-20"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-12"})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-24"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-32"})]})]})]}):(0,o().jsxs)("div",{className:"vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-mb-3",children:(0,mi.__)("Log File Information","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("File Status:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium ".concat(r.exists?"vt-text-green-600":"vt-text-red-600"),children:r.exists?(0,mi.__)("Exists","versatile-toolkit"):(0,mi.__)("Not Found","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("File Size:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.size})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("Last Modified:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.lastModified})]})]})]})})]})};var Gk=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"text-red-500";case"PHP Warning":return"text-yellow-500";case"PHP Notice":return"text-blue-500";default:return"text-gray-500"}},Zk=function(e){var t=e.type,r=Gk(t),n=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"Error";case"PHP Warning":return"Warning";case"PHP Notice":return"Info";case"debug":return"Debug";default:return e}}(t);return(0,o().jsx)("span",{className:r,children:n})};function Kk(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Qk(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Qk(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qk(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Qk(d,"constructor",c),Qk(c,"constructor",l),l.displayName="GeneratorFunction",Qk(c,o,"GeneratorFunction"),Qk(d),Qk(d,o,"Generator"),Qk(d,n,function(){return this}),Qk(d,"toString",function(){return"[object Generator]"}),(Kk=function(){return{w:i,m:f}})()}function Qk(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Qk=function(e,t,r,n){function i(t,r){Qk(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Qk(e,t,r,n)}function Jk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Yk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xk(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eS=function(e){var t=e.row,r=t.raw_line,n=Yk((0,a().useState)(!1),2),i=n[0],s=n[1],l=Yk((0,a().useState)(!1),2),c=l[0],u=l[1],d=function(){var e,t=(e=Kk().m(function e(t){return Kk().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,va(r);case 1:t(!0),Lr.success((0,mi.__)("Log copied to clipboard","versatile-toolkit")),window.setTimeout(function(){return t(!1)},2e3),e.n=3;break;case 2:e.p=2,e.v,Lr.error((0,mi.__)("Failed to copy log","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Jk(i,n,o,a,s,"next",e)}function s(e){Jk(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-flex vt-gap-1",children:[(0,o().jsx)(vs,{size:"icon",variant:"ghost","aria-label":(0,mi.__)("Copy log","versatile-toolkit"),title:i?(0,mi.__)("Copied","versatile-toolkit"):(0,mi.__)("Copy log","versatile-toolkit"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",onClick:function(){return d(s)},children:i?(0,o().jsx)(Mv,{className:"vt-h-4 vt-w-4"}):(0,o().jsx)(M_,{className:"vt-h-4 vt-w-4"})}),(0,o().jsxs)(Od,{children:[(0,o().jsx)(Nd,{asChild:!0,children:(0,o().jsx)(vs,{size:"icon",variant:"ghost","aria-label":"View ".concat(t.type,"'s log"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",children:(0,o().jsx)(_b,{className:"vt-h-4 vt-w-4"})})}),(0,o().jsxs)(Rd,{children:[(0,o().jsxs)(Ad,{children:[(0,o().jsxs)(Dd,{children:["Warning Type: ",(0,o().jsx)("span",{className:Gk(t.type),children:t.type})]}),(0,o().jsx)(Fd,{className:"vt-mt-2 vt-hidden",children:t.timestamp})]}),(0,o().jsx)("div",{className:"vt-max-h-[70vh] vt-overflow-auto vt-bg-[#e5e5e5] vt-p-3 vt-my-2",children:(0,o().jsx)("pre",{className:"vt-whitespace-pre-wrap vt-font-mono vt-text-base",children:r})}),(0,o().jsxs)(Td,{className:"sm:vt-justify-end",children:[(0,o().jsxs)(vs,{type:"button",variant:"outline",onClick:function(){return d(u)},children:[c?(0,o().jsx)(Mv,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,o().jsx)(M_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),c?(0,mi.__)("Copied","versatile-toolkit"):(0,mi.__)("Copy","versatile-toolkit")]}),(0,o().jsx)(Cd,{asChild:!0,children:(0,o().jsx)(vs,{type:"button",variant:"secondary",children:(0,mi.__)("Close","versatile-toolkit")})})]})]})]})]})};function tS(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return rS(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(rS(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,rS(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,rS(d,"constructor",c),rS(c,"constructor",l),l.displayName="GeneratorFunction",rS(c,o,"GeneratorFunction"),rS(d),rS(d,o,"Generator"),rS(d,n,function(){return this}),rS(d,"toString",function(){return"[object Generator]"}),(tS=function(){return{w:i,m:f}})()}function rS(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}rS=function(e,t,r,n){function i(t,r){rS(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},rS(e,t,r,n)}function nS(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function oS(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){nS(i,n,o,a,s,"next",e)}function s(e){nS(i,n,o,a,s,"throw",e)}a(void 0)})}}var iS,aS,sS,lS,cS,uS,dS={getStatus:(uS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_get_debug_log_status",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to get debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return uS.apply(this,arguments)}),toggleDebugLog:(cS=oS(tS().m(function e(t){var r,n,o;return tS().w(function(e){for(;;)switch(e.n){case 0:return r=new URLSearchParams({action:"versatile_toggle_debug_log",versatile_nonce:Hi.nonce_value,enable:t.toString()}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r});case 1:return n=e.v,e.n=2,n.json();case 2:if(200===(o=e.v).status_code){e.n=3;break}throw new Error(o.message||"Failed to toggle debug log");case 3:return e.a(2,o.data)}},e)})),function(e){return cS.apply(this,arguments)}),clearLog:(lS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_clear_debug_log",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to clear debug log");case 3:return e.a(2)}},e)})),function(){return lS.apply(this,arguments)}),downloadLog:(sS=oS(tS().m(function e(){var t,r;return tS().w(function(e){for(;;)if(0===e.n)return t=new URLSearchParams({action:"versatile_download_debug_log",versatile_nonce:Hi.nonce_value}),r="".concat(Hi.ajax_url,"?").concat(t),window.open(r,"_blank"),e.a(2,Promise.resolve())},e)})),function(){return sS.apply(this,arguments)}),refreshStatus:(aS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_refresh_debug_log",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to refresh debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return aS.apply(this,arguments)}),loadLogContent:(iS=oS(tS().m(function e(t){var r,n,o,i,a,s,l,c,u,d,f,p;return tS().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.page,n=t.perPage,o=t.search,i=t.sortKey,a=t.order,s=t.source,e.p=1,c=new URLSearchParams({action:"versatile_get_debug_log_content",versatile_nonce:Hi.nonce_value,page:String(r),per_page:String(n),search:String(o||"").trim(),sortKey:String(i||"").trim(),order:String((null==a||null===(l=a.trim())||void 0===l?void 0:l.toLowerCase())||""),source:String(s||"all").trim()}),e.n=2,fetch("".concat(Hi.ajax_url,"?").concat(c));case 2:return u=e.v,e.n=3,u.json();case 3:if(200!==(d=e.v).status_code){e.n=4;break}return f=d.data,e.a(2,{data:f.entries,total:null==f?void 0:f.total_entries,totalPages:null==f?void 0:f.total_pages});case 4:throw new Error(d.message||"Error fetching debug log content");case 5:e.n=7;break;case 6:throw e.p=6,p=e.v,new Error((null==p?void 0:p.message)||"Unknown error fetching debug log content");case 7:return e.a(2)}},e,null,[[1,6]])})),function(e){return iS.apply(this,arguments)})};function fS(e){return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fS(e)}function pS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pS(Object(r),!0).forEach(function(t){hS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=fS(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=fS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mS(e){return function(e){if(Array.isArray(e))return bS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||gS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gS(e,t){if(e){if("string"==typeof e)return bS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bS(e,t):void 0}}function bS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const xS=function(){var e,t,r=yS(Mt(),1)[0],n=Pe(),i=yS((0,a().useState)(!1),2),s=i[0],l=i[1],c=yS((0,a().useState)(0),2),u=c[0],d=c[1],f=yS((0,a().useState)("all"),2),p=f[0],v=f[1],h=yS((0,a().useState)(!1),2),m=h[0],y=h[1],g=ra({queryKey:["debugLogStatus"],queryFn:dS.getStatus,refetchInterval:3e4,staleTime:1e4}),b=g.data,x=g.isLoading,w=g.refetch,j=function(){var e=Fn();return oa({mutationFn:dS.toggleDebugLog,onSuccess:function(t,r){e.invalidateQueries({queryKey:["debugLogStatus"]});var n=r?"enabled":"disabled";Lr.success((0,mi.__)("Debug logging ".concat(n," successfully"),"versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Failed to toggle debug logging","versatile-toolkit"))}})}(),_=function(){var e=Fn();return oa({mutationFn:dS.clearLog,onSuccess:function(){e.invalidateQueries({queryKey:["debugLogStatus"]}),Lr.success((0,mi.__)("Debug log cleared successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Failed to clear debug log","versatile-toolkit"))}})}(),k=Dv().data,S=Fv().data,O=(null==b?void 0:b.enabled)||!1,N=b?(t=(e=b).file_exists&&e.last_modified>0?new Date(1e3*e.last_modified).toLocaleString():"Never",{exists:e.file_exists,size:e.file_size_formatted,lastModified:t}):{size:"0 KB",lastModified:"Never",exists:!1},P=x||j.isPending||_.isPending;(0,a().useEffect)(function(){var e;return s&&(e=setInterval(function(){d(function(e){return e+1})},5e3)),function(){e&&clearInterval(e)}},[s]);var C=function(e){v(e),y(!1);var t=new URLSearchParams(r);t.set("paged","1"),n({pathname:"/troubleshoot/debug-log",search:"?".concat(t.toString())})},E=(0,a().useMemo)(function(){var e,t,r=new Map,n=new Map;return(null!==(e=null==k?void 0:k.data)&&void 0!==e?e:[]).forEach(function(e){var t,n;r.set("plugin:".concat((t=e.slug,(void 0===(n=yS(t.split("/"),1)[0])?t:n).replace(/\.php$/i,"").toLowerCase())),e.label)}),(null!==(t=null==S?void 0:S.data)&&void 0!==t?t:[]).forEach(function(e){n.set("theme:".concat(e.slug.toLowerCase()),e.label)}),{generalOptions:[{value:"all",label:(0,mi.__)("All Sources","versatile-toolkit"),group:"general"},{value:"wordpress-core",label:(0,mi.__)("WordPress Core","versatile-toolkit"),group:"general"},{value:"unknown",label:(0,mi.__)("Unknown","versatile-toolkit"),group:"general"}],pluginOptions:Array.from(r.entries()).map(function(e){var t=yS(e,2);return{value:t[0],label:t[1],group:"plugin"}}),themeOptions:Array.from(n.entries()).map(function(e){var t=yS(e,2);return{value:t[0],label:t[1],group:"theme"}})}},[k,S]),R=E.generalOptions,A=E.pluginOptions,T=E.themeOptions,D=(0,a().useMemo)(function(){return[].concat(mS(R),mS(A),mS(T)).find(function(e){return e.value===p})},[R,A,p,T]),F=(0,a().useCallback)(function(e){return dS.loadLogContent(vS(vS({},e),{},{source:p}))},[p]),I=[{key:"id",header:"No"},{key:"type",header:"Type",render:function(e){return(0,o().jsx)(Zk,{type:e.type})}},{key:"message",header:"Description",render:function(e){var t=e.raw_line.length>200?"".concat(e.raw_line.substring(0,200),"..."):e.raw_line;return(0,o().jsx)(o().Fragment,{children:t})}},{key:"log_from",header:"Log From",render:function(e){return(0,o().jsx)("div",{className:"vt-min-w-[11rem]",children:(0,o().jsx)(xs,{variant:"success",className:"vt-font-medium",children:e.log_from||(0,mi.__)("Unknown","versatile-toolkit")})})}},{key:"timestamp",header:"Timestamp",render:function(e){var t=e.timestamp;if(!t)return"Invalid Date";try{var r=t.replace(" UTC","");return new Date(r+" UTC").toLocaleString(void 0,{hour12:!0})}catch(e){return"Invalid Date"}}},{key:"actions",header:"Actions",render:function(e,t){return(0,o().jsx)(eS,{row:e},t)}}];return(0,o().jsxs)("div",{className:"vt-mx-auto vt-max-w-6xl vt-p-6",children:[x?(0,o().jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300"}),(0,o().jsxs)("div",{children:[(0,o().jsx)("div",{className:"vt-h-5 vt-bg-slate-300 vt-rounded vt-w-32 vt-mb-2"}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-slate-200 vt-rounded vt-w-24"})]})]}),(0,o().jsx)("div",{className:"vt-h-9 vt-bg-slate-300 vt-rounded-lg vt-w-20"})]})}):(0,o().jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(O?"vt-bg-green-500":"vt-bg-red-500")}),(0,o().jsxs)("div",{children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,mi.__)("Debug Logging","versatile-toolkit")}),(0,o().jsxs)("p",{className:"vt-text-sm vt-text-slate-600",children:[O?(0,mi.__)("Currently enabled","versatile-toolkit"):(0,mi.__)("Currently disabled","versatile-toolkit"),s&&(0,o().jsxs)("span",{className:"vt-ml-2 vt-text-blue-600",children:["• ",(0,mi.__)("Auto refresh active","versatile-toolkit")]})]})]})]}),(0,o().jsxs)(jk,{children:[(0,o().jsx)(_k,{asChild:!0,children:(0,o().jsxs)("button",{className:"vt-flex vt-items-center vt-space-x-2 vt-px-3 vt-py-2 vt-bg-slate-100 vt-text-slate-700 vt-rounded-lg hover:vt-bg-slate-200 vt-transition-colors",children:[(0,o().jsxs)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,o().jsx)("span",{className:"vt-text-sm",children:(0,mi.__)("Settings","versatile-toolkit")})]})}),(0,o().jsxs)(Nk,{children:[(0,o().jsx)(Pk,{children:(0,o().jsx)(Ck,{children:(0,mi.__)("Debug Log Settings","versatile-toolkit")})}),(0,o().jsx)("div",{className:"vt-mt-6",children:(0,o().jsx)(Hk,{debugStatus:O,logFileInfo:N,isAutoRefresh:s,isLoading:P,statusLoading:x,onToggleDebugLog:function(e){j.mutate(e)},onToggleAutoRefresh:function(e){l(e)},onStopAutoRefresh:function(){l(!1),Lr.success((0,mi.__)("Auto refresh stopped","versatile-toolkit"))}})})]})]})]})}),(0,o().jsxs)("div",{className:"vt-my-8",children:[(0,o().jsxs)("div",{className:" vt-bg-white vt-rounded-lg vt-border vt-p-2 vt-flex vt-items-center vt-justify-between",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-text-lg",children:(0,mi.__)("Debug Log","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-wrap vt-items-center vt-gap-3",children:[(0,o().jsxs)(Nv,{open:m,onOpenChange:y,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":m,"aria-label":(0,mi.__)("Filter debug logs by source","versatile-toolkit"),className:"vt-min-w-[12rem] vt-max-w-[20rem] vt-justify-between vt-gap-2 vt-bg-white vt-font-normal",children:[(0,o().jsx)("span",{className:"vt-truncate",children:(null==D?void 0:D.label)||(0,mi.__)("Select source...","versatile-toolkit")}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-[20rem] vt-p-0",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search source...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No source found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:R.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),A.length>0&&(0,o().jsx)(Jd,{heading:(0,mi.__)("Plugins","versatile-toolkit"),children:A.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),T.length>0&&(0,o().jsx)(Jd,{heading:(0,mi.__)("Themes","versatile-toolkit"),children:T.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})})]})]})})]}),(0,o().jsx)("button",{title:(0,mi.__)("Refresh Log","versatile-toolkit"),onClick:function(){w(),d(function(e){return e+1}),Lr.success((0,mi.__)("Debug log status and content refreshed","versatile-toolkit"))},disabled:P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-3 vt-px-2 vt-py-1 vt-bg-blue-500 vt-text-white vt-rounded-lg hover:vt-bg-blue-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),(0,o().jsx)("button",{title:(0,mi.__)("Download Log","versatile-toolkit"),onClick:function(){N.exists?dS.downloadLog():Lr.error((0,mi.__)("No log file to download","versatile-toolkit"))},disabled:!N.exists||P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-green-600 vt-text-white vt-rounded-lg hover:vt-bg-green-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,o().jsx)("button",{title:(0,mi.__)("Clear Log","versatile-toolkit"),onClick:function(){N.exists?window.confirm((0,mi.__)("Are you sure you want to clear the debug log? This action cannot be undone.","versatile-toolkit"))&&_.mutate(void 0,{onSuccess:function(){w(),d(function(e){return e+1})}}):Lr.error((0,mi.__)("No log file to clear","versatile-toolkit"))},disabled:!N.exists||P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-yellow-600 vt-text-white vt-rounded-lg hover:vt-bg-yellow-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]}),(0,o().jsx)(Bk,{columns:I,fetchData:F,searchParams:r},"".concat(u,"-").concat(p))]})]})};var wS=n().createRoot(document.getElementById("versatile-root")),jS=new class{#Q;#c;#x;#J;#Y;#X;#ee;#te;constructor(e={}){this.#Q=e.queryCache||new Tn,this.#c=e.mutationCache||new kn,this.#x=e.defaultOptions||{},this.#J=new Map,this.#Y=new Map,this.#X=0}mount(){this.#X++,1===this.#X&&(this.#ee=fn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onFocus())}),this.#te=hn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onOnline())}))}unmount(){this.#X--,0===this.#X&&(this.#ee?.(),this.#ee=void 0,this.#te?.(),this.#te=void 0)}isFetching(e){return this.#Q.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#c.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#Q.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Br(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#Q.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#Q.get(n.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return this.#Q.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return vn.batch(()=>this.#Q.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state}removeQueries(e){const t=this.#Q;vn.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#Q;return vn.batch(()=>{const n=r.findAll(e),o=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>o.has(e)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},n=vn.batch(()=>this.#Q.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Ur).catch(Ur)}invalidateQueries(e,t={}){return vn.batch(()=>(this.#Q.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=vn.batch(()=>this.#Q.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);const n="paused"===e.state.fetchStatus;return r.throwOnError&&!n||(t=t.catch(Ur)),n?Promise.resolve():t}));return Promise.all(n).then(Ur)}async query(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#Q.build(this,t),n=r.isStaleByTime(Br(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#Q.build(this,t);return r.isStaleByTime(Br(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ur).catch(Ur)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ur).catch(Ur)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return hn.isOnline()?this.#c.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#Q}getMutationCache(){return this.#c}getDefaultOptions(){return this.#x}setDefaultOptions(e){this.#x=e}setQueryDefaults(e,t){this.#J.set(Kr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#J.values()],r={};return t.forEach(t=>{Qr(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#Y.set(Kr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#Y.values()],r={};return t.forEach(t=>{Qr(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#x.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#x.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#Q.clear(),this.#c.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});wS.render((0,o().jsx)(bb,{onError:function(e,t){},children:(0,o().jsx)(In,{client:jS,children:(0,o().jsx)(bb,{onError:function(e,t){},children:(0,o().jsx)(At,{children:(0,o().jsxs)(bb,{onError:function(e,t){},children:[(0,o().jsx)(Tk,{}),(0,o().jsxs)(Je,{children:[(0,o().jsx)(Ke,{path:"/",element:(0,o().jsx)(bb,{children:(0,o().jsx)(Ia,{})})}),(0,o().jsx)(Ke,{path:"/troubleshoot",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(ab,{})})})}),(0,o().jsx)(Ke,{path:"/maintenance",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(Yx,{})})})}),(0,o().jsx)(Ke,{path:"/comingsoon",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(cw,{})})})}),(0,o().jsx)(Ke,{path:"/templogin",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(dk,{})})})}),(0,o().jsx)(Ke,{path:"/troubleshoot/debug-log",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(xS,{})})})})]}),(0,o().jsx)(Mr,{position:"bottom-right",containerClassName:"vt-ui !z-[9999999]",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}})]})})})})}))})();
  • versatile-toolkit/tags/1.0.12/assets/dist/js/versatile-quickact.min.js

    r3533621 r3798170  
    1 (()=>{"use strict";var e,t,r={338(e,t,r){var n=r(206);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},20(e,t,r){var n=r(594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},848(e,t,r){e.exports=r(20)},594(e){e.exports=React},206(e){e.exports=ReactDOM}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,o.d(i,s),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i=o(594),s=o.t(i,2);const a=wp.i18n,c=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const u=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:a,...u},f)=>(0,i.createElement)("svg",{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:c("lucide",o),...u},[...a.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(s)?s:[s]])),f=(e,t)=>{const r=(0,i.forwardRef)(({className:r,...n},o)=>{return(0,i.createElement)(u,{ref:o,iconNode:t,className:c(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var s});return r.displayName=`${e}`,r},d=f("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),p=f("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),h=f("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function m(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=m(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function v(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=m(e))&&(n&&(n+=" "),n+=t);return n}const y=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),b="-",g=[],w=e=>{const t=j(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return O(e);const r=e.split(b),n=""===r[0]&&r.length>1?1:0;return x(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||g}return r[e]||g}}},x=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=x(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const s=0===t?e.join(b):e.slice(t).join(b),a=i.length;for(let e=0;e<a;e++){const t=i[e];if(t.validator(s))return t.classGroupId}},O=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),j=e=>{const{theme:t,classGroups:r}=e;return k(r,t)},k=(e,t)=>{const r=y();for(const n in e){const o=e[n];S(o,r,n,t)}return r},S=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];P(o,t,r,n)}},P=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?N(e,t,r,n):C(e,t,r,n):E(e,t,r)},E=(e,t,r)=>{(""===e?t:_(t,e)).classGroupId=r},C=(e,t,r,n)=>{R(e)?S(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},N=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,s]=o[e];S(s,_(t,i),r,n)}},_=(e,t)=>{let r=e;const n=t.split(b),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=y(),r.nextPart.set(t,o)),r=o}return r},R=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,A=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},T=[],D=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),M=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const s=e.length;for(let a=0;a<s;a++){const s=e[a];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){r=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let c=a,l=!1;a.endsWith("!")?(c=a.slice(0,-1),l=!0):a.startsWith("!")&&(c=a.slice(1),l=!0);return D(t,l,c,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):D(T,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},F=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},q=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},L=/\s+/,I=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=I(e[n]))&&(r&&(r+=" "),r+=t);return r},z=(e,...t)=>{let r,n,o,i;const s=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],c=e.trim().split(L);let l="";for(let e=c.length-1;e>=0;e-=1){const t=c[e],{isExternal:u,modifiers:f,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let m,v=!!h;if(v){m=n(p.substring(0,h));const e=m&&s[m]?n(p):void 0;e&&e!==m&&(m=e,v=!1)}else m=n(p);if(!m){if(!v){l=t+(l.length>0?" "+l:l);continue}if(m=n(p),!m){l=t+(l.length>0?" "+l:l);continue}v=!1}const y=0===f.length?"":1===f.length?f[0]:i(f).join(":"),b=d?y+"!":y,g=b+m;if(a.indexOf(g)>-1)continue;a.push(g);const w=o(m,v);for(let e=0;e<w.length;++e){const t=w[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:A(e.cacheSize),parseClassName:M(e),sortModifiers:F(e),postfixLookupClassGroupIds:q(e),...w(e)}))(c),n=r.cache.get,o=r.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=I(t))&&(o&&(o+=" "),o+=r);return o})(...e))},G=[],W=e=>{const t=t=>t[e]||G;return t.isThemeGetter=!0,t},$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,B=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,U=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>B.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),J=e=>!!e&&Number.isInteger(Number(e)),ee=e=>e.endsWith("%")&&Z(e.slice(0,-1)),te=e=>U.test(e),re=()=>!0,ne=e=>K.test(e)&&!Q.test(e),oe=()=>!1,ie=e=>V.test(e),se=e=>Y.test(e),ae=e=>!ue(e)&&!be(e),ce=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),le=e=>Pe(e,_e,oe),ue=e=>$.test(e),fe=e=>Pe(e,Re,ne),de=e=>Pe(e,Ae,Z),pe=e=>Pe(e,De,re),he=e=>Pe(e,Te,oe),me=e=>Pe(e,Ce,oe),ve=e=>Pe(e,Ne,se),ye=e=>Pe(e,Me,ie),be=e=>H.test(e),ge=e=>Ee(e,Re),we=e=>Ee(e,Te),xe=e=>Ee(e,Ce),Oe=e=>Ee(e,_e),je=e=>Ee(e,Ne),ke=e=>Ee(e,Me,!0),Se=e=>Ee(e,De,!0),Pe=(e,t,r)=>{const n=$.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ee=(e,t,r=!1)=>{const n=H.exec(e);return!!n&&(n[1]?t(n[1]):r)},Ce=e=>"position"===e||"percentage"===e,Ne=e=>"image"===e||"url"===e,_e=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Ae=e=>"number"===e,Te=e=>"family-name"===e,De=e=>"number"===e||"weight"===e,Me=e=>"shadow"===e,Fe=(Symbol.toStringTag,()=>{const e=W("color"),t=W("font"),r=W("text"),n=W("font-weight"),o=W("tracking"),i=W("leading"),s=W("breakpoint"),a=W("container"),c=W("spacing"),l=W("radius"),u=W("shadow"),f=W("inset-shadow"),d=W("text-shadow"),p=W("drop-shadow"),h=W("blur"),m=W("perspective"),v=W("aspect"),y=W("ease"),b=W("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",be,ue],w=()=>[be,ue,c],x=()=>[X,"full","auto",...w()],O=()=>[J,"none","subgrid",be,ue],j=()=>["auto",{span:["full",J,be,ue]},J,be,ue],k=()=>[J,"auto",be,ue],S=()=>["auto","min","max","fr",be,ue],P=()=>["auto",...w()],E=()=>[X,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],C=()=>[X,"screen","full","dvw","lvw","svw","min","max","fit",...w()],N=()=>[X,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],_=()=>[e,be,ue],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",xe,me,{position:[be,ue]}],A=()=>["auto","cover","contain",Oe,le,{size:[be,ue]}],T=()=>[ee,ge,fe],D=()=>["","none","full",l,be,ue],M=()=>["",Z,ge,fe],F=()=>[Z,ee,xe,me],q=()=>["","none",h,be,ue],L=()=>["none",Z,be,ue],I=()=>["none",Z,be,ue],z=()=>[Z,be,ue],G=()=>[X,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[te],breakpoint:[te],color:[re],container:[te],"drop-shadow":[te],ease:["in","out","in-out"],font:[ae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[te],shadow:[te],spacing:["px",Z],text:[te],"text-shadow":[te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",X,ue,be,v]}],container:["container"],"container-type":[{"@container":["","normal","size",be,ue]}],"container-named":[ce],columns:[{columns:[Z,ue,be,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[J,"auto",be,ue]}],basis:[{basis:[X,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,X,"auto","initial","none",ue]}],grow:[{grow:["",Z,be,ue]}],shrink:[{shrink:["",Z,be,ue]}],order:[{order:[J,"first","last","none",be,ue]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",r,ge,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Se,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ee,ue]}],"font-family":[{font:[we,he,t]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,be,ue]}],"line-clamp":[{"line-clamp":[Z,"none",be,de]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",be,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",be,fe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Z,"auto",be,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[J,be,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},J,be,ue],radial:["",be,ue],conic:[J,be,ue]},je,ve]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Z,be,ue]}],"outline-w":[{outline:["",Z,ge,fe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,ke,ye]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,ke,ye]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Z,fe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,ke,ye]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Z,be,ue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[be,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ue]}],filter:[{filter:["","none",be,ue]}],blur:[{blur:q()}],brightness:[{brightness:[Z,be,ue]}],contrast:[{contrast:[Z,be,ue]}],"drop-shadow":[{"drop-shadow":["","none",p,ke,ye]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Z,be,ue]}],"hue-rotate":[{"hue-rotate":[Z,be,ue]}],invert:[{invert:["",Z,be,ue]}],saturate:[{saturate:[Z,be,ue]}],sepia:[{sepia:["",Z,be,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ue]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[Z,be,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Z,be,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,be,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,be,ue]}],"backdrop-invert":[{"backdrop-invert":["",Z,be,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Z,be,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Z,be,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,be,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",be,ue]}],ease:[{ease:["linear","initial",y,be,ue]}],delay:[{delay:[Z,be,ue]}],animate:[{animate:["none",b,be,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,be,ue]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[be,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],zoom:[{zoom:[J,be,ue]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,ue]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Z,ge,fe,de]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),qe=(e,t,r)=>{void 0!==r&&(e[t]=r)},Le=(e,t)=>{if(t)for(const r in t)qe(e,r,t[r])},Ie=(e,t)=>{if(t)for(const r in t)ze(e,t,r)},ze=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){He(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function He(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Be=((e,...t)=>"function"==typeof e?z(Fe,e,...t):z(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(qe(e,"cacheSize",t),qe(e,"prefix",r),qe(e,"experimentalParseClassName",n),Le(e.theme,i.theme),Le(e.classGroups,i.classGroups),Le(e.conflictingClassGroups,i.conflictingClassGroups),Le(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),qe(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),qe(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ie(e.theme,o.theme),Ie(e.classGroups,o.classGroups),Ie(e.conflictingClassGroups,o.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ze(e,o,"postfixLookupClassGroups"),ze(e,o,"orderSensitiveModifiers"),e))(Fe(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?$e($e({},r),{},{baseClassName:n.slice(3)}):r}});function Ue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Be(v(t))}function Ke(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qe(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Ke(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Ke(e[t],null)}}}}function Ve(...e){return i.useCallback(Qe(...e),e)}var Ye=o(848),Xe=Symbol.for("react.lazy"),Ze=s[" use ".trim().toString()];function Je(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function et(e){const t=rt(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;Je(n)&&"function"==typeof Ze&&(n=Ze(n._payload));const s=i.Children.toArray(n),a=s.find(ot);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var tt=et("Slot");function rt(e){const t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(Je(r)&&"function"==typeof Ze&&(r=Ze(r._payload)),i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nt=Symbol("radix.slottable");function ot(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===nt}const it=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,st=v;function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}var ct=["className","variant","size","asChild"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ut(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=at(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==at(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ft=((e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return st(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const s=it(t)||it(n);return o[e][s]}),a=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...a}[t]):{...i,...a}[t]===r})?[...e,r,n]:e},[]);return st(e,s,c,null==r?void 0:r.class,null==r?void 0:r.className)})("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),dt=i.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,i=e.asChild,s=void 0!==i&&i,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ct),c=s?tt:"button";return(0,Ye.jsx)(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach(function(t){ut(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:Ue(ft({variant:n,size:o,className:r})),ref:t},a))});function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}dt.displayName="Button";var ht=["className"],mt=["className"],vt=["className"],yt=["className"],bt=["className"],gt=["className"];function wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(t){Ot(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var kt=i.forwardRef(function(e,t){var r=e.className,n=jt(e,ht);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});kt.displayName="Card";var St=i.forwardRef(function(e,t){var r=e.className,n=jt(e,mt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});St.displayName="CardHeader";var Pt=i.forwardRef(function(e,t){var r=e.className,n=jt(e,vt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Pt.displayName="CardTitle",i.forwardRef(function(e,t){var r=e.className,n=jt(e,yt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var Et=i.forwardRef(function(e,t){var r=e.className,n=jt(e,bt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-p-4",r)},n))});function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mt(n.key),n)}}function _t(e,t,r){return t=At(t),function(e,t){if(t&&("object"==Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rt()?Reflect.construct(t,r||[],At(e).constructor):t.apply(e,r))}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rt=function(){return!!e})()}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function Dt(e,t,r){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ct(t)?t:t+""}Et.displayName="CardContent",i.forwardRef(function(e,t){var r=e.className,n=jt(e,gt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Ft=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(r=_t(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Dt(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(t,e),function(e,t,r){return t&&Nt(e.prototype,t),r&&Nt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,Ye.jsxs)(kt,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,Ye.jsxs)(St,{className:"vt-text-center",children:[(0,Ye.jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,Ye.jsx)(d,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,Ye.jsx)(Pt,{className:"vt-text-red-700",children:(0,a.__)("Something went wrong","versatile-toolkit")})]}),(0,Ye.jsxs)(Et,{className:"vt-space-y-4",children:[(0,Ye.jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,a.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,Ye.jsxs)(dt,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Ye.jsx)(p,{className:"vt-h-4 vt-w-4"}),(0,a.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,Ye.jsxs)(dt,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Ye.jsx)(h,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,a.__)("Hide Details","versatile-toolkit"):(0,a.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,Ye.jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,Ye.jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,a.__)("Error Details:","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Message:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Stack Trace:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Component Stack:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component);const qt=Ft;var Lt={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const It=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,o=e.size,i=void 0===o?"sm":o,s=e.className;if(!t)return(0,Ye.jsx)(Ye.Fragment,{children:n});var c=(0,a.__)("Loading","versatile-toolkit"),l=r||"".concat(c,"...");return(0,Ye.jsxs)("div",{className:Ue("vt-flex vt-items-center vt-gap-2",s),children:[(0,Ye.jsx)("div",{className:Ue(Lt[i],"vt-animate-spin"),children:(0,Ye.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ye.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Ye.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,Ye.jsx)("span",{children:l})]})};function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}var Gt=["className","type"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=zt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ht=i.forwardRef(function(e,t){var r=e.className,n=e.type,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Gt);return(0,Ye.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(t){$t(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:Ue("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},o))});Ht.displayName="Input";"undefined"==typeof window||!window.document||window.document.createElement;function Bt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function Ut(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>i.createContext(e));return function(r){const n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){const o=i.createContext(n),s=r.length;r=[...r,n];const a=t=>{const{scope:r,children:n,...a}=t,c=r?.[e]?.[s]||o,l=i.useMemo(()=>a,Object.values(a));return(0,Ye.jsx)(c.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){const c=a?.[e]?.[s]||o,l=i.useContext(c);if(l)return l;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},Kt(n,...t)]}function Kt(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}var Qt=o(206);function Vt(e){const t=Yt(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,s=i.Children.toArray(n),a=s.find(Zt);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Yt(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xt=Symbol("radix.slottable");function Zt(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xt}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Vt(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...i}=e,s=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ye.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function er(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var tr,rr="dismissableLayer.update",nr="dismissableLayer.pointerDownOutside",or="dismissableLayer.focusOutside",ir=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sr=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(ir),[f,d]=i.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=i.useState({}),m=Ve(t,e=>d(e)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),g=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=g>=b,O=function(e,t=globalThis?.document){const r=er(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){lr(nr,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));x&&!r&&(o?.(e),a?.(e),e.defaultPrevented||c?.())},p),j=function(e,t=globalThis?.document){const r=er(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){lr(or,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(s?.(e),a?.(e),e.defaultPrevented||c?.())},p);return function(e,t=globalThis?.document){const r=er(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{g===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),i.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(tr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),cr(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=tr)}},[f,p,r,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),cr())},[f,u]),i.useEffect(()=>{const e=()=>h({});return document.addEventListener(rr,e),()=>document.removeEventListener(rr,e)},[]),(0,Ye.jsx)(Jt.div,{...l,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,O.onPointerDownCapture)})});sr.displayName="DismissableLayer";var ar=i.forwardRef((e,t)=>{const r=i.useContext(ir),n=i.useRef(null),o=Ve(t,n);return i.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,Ye.jsx)(Jt.div,{...e,ref:o})});function cr(){const e=new CustomEvent(rr);document.dispatchEvent(e)}function lr(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&Qt.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}ar.displayName="DismissableLayerBranch";var ur=0;function fr(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dr()),document.body.insertAdjacentElement("beforeend",e[1]??dr()),ur++,()=>{1===ur&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ur--}},[])}function dr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pr="focusScope.autoFocusOnMount",hr="focusScope.autoFocusOnUnmount",mr={bubbles:!1,cancelable:!0},vr=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=er(o),f=er(s),d=i.useRef(null),p=Ve(t,e=>l(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?d.current=t:wr(d.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||wr(d.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&wr(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,c,h.paused]),i.useEffect(()=>{if(c){xr.add(h);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(pr,mr);c.addEventListener(pr,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wr(n,{select:t}),document.activeElement!==r)return}((e=yr(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&wr(c))}return()=>{c.removeEventListener(pr,u),setTimeout(()=>{const e=new CustomEvent(hr,mr);c.addEventListener(hr,f),c.dispatchEvent(e),e.defaultPrevented||wr(t??document.body,{select:!0}),c.removeEventListener(hr,f),xr.remove(h)},0)}}var e},[c,u,f,h]);const m=i.useCallback(e=>{if(!r&&!n)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=function(e){const t=yr(e),r=br(t,e),n=br(t.reverse(),e);return[r,n]}(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&wr(i,{select:!0})):(e.preventDefault(),r&&wr(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,h.paused]);return(0,Ye.jsx)(Jt.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})});function yr(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function br(e,t){for(const r of e)if(!gr(r,{upTo:t}))return r}function gr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function wr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}vr.displayName="FocusScope";var xr=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Or(e,t),e.unshift(t)},remove(t){e=Or(e,t),e[0]?.resume()}}}();function Or(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var jr=globalThis?.document?i.useLayoutEffect:()=>{},kr=s[" useId ".trim().toString()]||(()=>{}),Sr=0;function Pr(e){const[t,r]=i.useState(kr());return jr(()=>{e||r(e=>e??String(Sr++))},[e]),e||(t?`radix-${t}`:"")}const Er=["top","right","bottom","left"],Cr=Math.min,Nr=Math.max,_r=Math.round,Rr=Math.floor,Ar=e=>({x:e,y:e}),Tr={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e,t,r){return Nr(e,Cr(t,r))}function Mr(e,t){return"function"==typeof e?e(t):e}function Fr(e){return e.split("-")[0]}function qr(e){return e.split("-")[1]}function Lr(e){return"x"===e?"y":"x"}function Ir(e){return"y"===e?"height":"width"}function zr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Gr(e){return Lr(zr(e))}function Wr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const $r=["left","right"],Hr=["right","left"],Br=["top","bottom"],Ur=["bottom","top"];function Kr(e,t,r,n){const o=qr(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Hr:$r:t?$r:Hr;case"left":case"right":return t?Br:Ur;default:return[]}}(Fr(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Wr)))),i}function Qr(e){const t=Fr(e);return Tr[t]+e.slice(t.length)}function Vr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Yr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Xr(e,t,r){let{reference:n,floating:o}=e;const i=zr(t),s=Gr(t),a=Ir(s),c=Fr(t),l="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(qr(t)){case"start":p[s]-=d*(r&&l?-1:1);break;case"end":p[s]+=d*(r&&l?-1:1)}return p}async function Zr(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Mr(t,e),h=Vr(p),m=a[d?"floating"===f?"reference":"floating":f],v=Yr(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),g=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Yr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-w.top+h.top)/g.y,bottom:(w.bottom-v.bottom+h.bottom)/g.y,left:(v.left-w.left+h.left)/g.x,right:(w.right-v.right+h.right)/g.x}}function Jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function en(e){return Er.some(t=>e[t]>=0)}const tn=new Set(["left","top"]);function rn(){return"undefined"!=typeof window}function nn(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function sn(e){var t;return null==(t=(an(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function an(e){return!!rn()&&(e instanceof Node||e instanceof on(e).Node)}function cn(e){return!!rn()&&(e instanceof Element||e instanceof on(e).Element)}function ln(e){return!!rn()&&(e instanceof HTMLElement||e instanceof on(e).HTMLElement)}function un(e){return!(!rn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof on(e).ShadowRoot)}function fn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function dn(e){return/^(table|td|th)$/.test(nn(e))}function pn(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const hn=/transform|translate|scale|rotate|perspective|filter/,mn=/paint|layout|strict|content/,vn=e=>!!e&&"none"!==e;let yn;function bn(e){const t=cn(e)?xn(e):e;return vn(t.transform)||vn(t.translate)||vn(t.scale)||vn(t.rotate)||vn(t.perspective)||!gn()&&(vn(t.backdropFilter)||vn(t.filter))||hn.test(t.willChange||"")||mn.test(t.contain||"")}function gn(){return null==yn&&(yn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yn}function wn(e){return/^(html|body|#document)$/.test(nn(e))}function xn(e){return on(e).getComputedStyle(e)}function On(e){return cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if("html"===nn(e))return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||sn(e);return un(t)?t.host:t}function kn(e){const t=jn(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&fn(t)?t:kn(t)}function Sn(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=kn(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=on(o);if(i){const e=Pn(s);return t.concat(s,s.visualViewport||[],fn(o)?o:[],e&&r?Sn(e):[])}return t.concat(o,Sn(o,[],r))}function Pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function En(e){const t=xn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=_r(r)!==i||_r(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Cn(e){return cn(e)?e:e.contextElement}function Nn(e){const t=Cn(e);if(!ln(t))return Ar(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=En(t);let s=(i?_r(r.width):r.width)/n,a=(i?_r(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _n=Ar(0);function Rn(e){const t=on(e);return gn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_n}function An(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Cn(e);let s=Ar(1);t&&(n?cn(n)&&(s=Nn(n)):s=Nn(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==on(e))&&t}(i,r,n)?Rn(i):Ar(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const e=on(i),t=n&&cn(n)?on(n):n;let r=e,o=Pn(r);for(;o&&n&&t!==r;){const e=Nn(o),t=o.getBoundingClientRect(),n=xn(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=s,r=on(o),o=Pn(r)}}return Yr({width:u,height:f,x:c,y:l})}function Tn(e,t){const r=On(e).scrollLeft;return t?t.left+r:An(sn(e)).left+r}function Dn(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Tn(e,r),y:r.top+t.scrollTop}}function Mn(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=on(e),n=sn(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=gn();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}const l=Tn(n);if(l<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(n.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else l<=25&&(i+=l);return{width:i,height:s,x:a,y:c}}(e,r);else if("document"===t)n=function(e){const t=sn(e),r=On(e),n=e.ownerDocument.body,o=Nr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Nr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Tn(e);const a=-r.scrollTop;return"rtl"===xn(n).direction&&(s+=Nr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}(sn(e));else if(cn(t))n=function(e,t){const r=An(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ln(e)?Nn(e):Ar(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=Rn(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Yr(n)}function Fn(e,t){const r=jn(e);return!(r===t||!cn(r)||wn(r))&&("fixed"===xn(r).position||Fn(r,t))}function qn(e,t,r){const n=ln(t),o=sn(t),i="fixed"===r,s=An(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ar(0);function l(){c.x=Tn(o)}if(n||!n&&!i)if(("body"!==nn(t)||fn(o))&&(a=On(t)),n){const e=An(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=!o||n||i?Ar(0):Dn(o,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function Ln(e){return"static"===xn(e).position}function In(e,t){if(!ln(e)||"fixed"===xn(e).position)return null;if(t)return t(e);let r=e.offsetParent;return sn(e)===r&&(r=r.ownerDocument.body),r}function zn(e,t){const r=on(e);if(pn(e))return r;if(!ln(e)){let t=jn(e);for(;t&&!wn(t);){if(cn(t)&&!Ln(t))return t;t=jn(t)}return r}let n=In(e,t);for(;n&&dn(n)&&Ln(n);)n=In(n,t);return n&&wn(n)&&Ln(n)&&!bn(n)?r:n||function(e){let t=jn(e);for(;ln(t)&&!wn(t);){if(bn(t))return t;if(pn(t))return null;t=jn(t)}return null}(e)||r}const Gn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,s=sn(n),a=!!t&&pn(t.floating);if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Ar(1);const u=Ar(0),f=ln(n);if((f||!f&&!i)&&(("body"!==nn(n)||fn(s))&&(c=On(n)),f)){const e=An(n);l=Nn(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!s||f||i?Ar(0):Dn(s,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:r.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:sn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?pn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Sn(e,[],!1).filter(e=>cn(e)&&"body"!==nn(e)),o=null;const i="fixed"===xn(e).position;let s=i?jn(e):e;for(;cn(s)&&!wn(s);){const t=xn(s),r=bn(s);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||fn(s)&&!r&&Fn(e,s))?n=n.filter(e=>e!==s):o=t,s=jn(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=Mn(t,i[0],o);let a=s.top,c=s.right,l=s.bottom,u=s.left;for(let e=1;e<i.length;e++){const r=Mn(t,i[e],o);a=Nr(r.top,a),c=Cr(r.right,c),l=Cr(r.bottom,l),u=Nr(r.left,u)}return{width:c-u,height:l-a,x:u,y:a}},getOffsetParent:zn,getElementRects:async function(e){const t=this.getOffsetParent||zn,r=this.getDimensions,n=await r(e.floating);return{reference:qn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=En(e);return{width:t,height:r}},getScale:Nn,isElement:cn,isRTL:function(e){return"rtl"===xn(e).direction}};function Wn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $n(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=Cn(e),u=o||i?[...l?Sn(l):[],...t?Sn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=l&&a?function(e,t){let r,n=null;const o=sn(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(a||t(),!d||!p)return;const h={rootMargin:-Rr(f)+"px "+-Rr(o.clientWidth-(u+d))+"px "+-Rr(o.clientHeight-(f+p))+"px "+-Rr(u)+"px",threshold:Nr(0,Cr(1,c))||1};let m=!0;function v(t){const n=t[0].intersectionRatio;if(n!==c){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||Wn(l,e.getBoundingClientRect())||s(),m=!1}try{n=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(v,h)}n.observe(e)}(!0),i}(l,r):null;let d,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),l&&!c&&h.observe(l),t&&h.observe(t));let m=c?An(e):null;return c&&function t(){const n=An(e);m&&!Wn(m,n)&&r();m=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(d)}}const Hn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),s=Fr(r),a=qr(r),c="y"===zr(r),l=tn.has(s)?-1:1,u=i&&c?-1:1,f=Mr(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Bn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Mr(e,t),u={x:r,y:n},f=await i.detectOverflow(t,l),d=zr(Fr(o)),p=Lr(d);let h=u[p],m=u[d];if(s){const e="y"===p?"bottom":"right";h=Dr(h+f["y"===p?"top":"left"],h,h-f[e])}if(a){const e="y"===d?"bottom":"right";m=Dr(m+f["y"===d?"top":"left"],m,m-f[e])}const v=c.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:s,[d]:a}}}}}},Un=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=Mr(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Fr(o),b=zr(a),g=Fr(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(g||!m?[Qr(a)]:function(e){const t=Qr(e);return[Wr(e),t,Wr(t)]}(a)),O="none"!==h;!d&&O&&x.push(...Kr(a,m,h,w));const j=[a,...x],k=await c.detectOverflow(t,v),S=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=qr(e),o=Gr(e),i=Ir(o);let s="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Qr(s)),[s,Qr(s)]}(o,s,w);S.push(k[e[0]],k[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var E,C;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===f&&b!==zr(t))||P.every(e=>zr(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=zr(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}},Kn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Mr(e,t),u=await s.detectOverflow(t,l),f=Fr(o),d=qr(o),p="y"===zr(o),{width:h,height:m}=i.floating;let v,y;"top"===f||"bottom"===f?(v=f,y=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v="end"===d?"top":"bottom");const b=m-u.top-u.bottom,g=h-u.left-u.right,w=Cr(m-u[v],b),x=Cr(h-u[y],g),O=!t.middlewareData.shift;let j=w,k=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=g),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(j=b),O&&!d){const e=Nr(u.left,0),t=Nr(u.right,0),r=Nr(u.top,0),n=Nr(u.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Nr(u.left,u.right)):j=m-2*(0!==r||0!==n?r+n:Nr(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:j});const S=await s.getDimensions(a.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Qn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Mr(e,t);switch(o){case"referenceHidden":{const e=Jr(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:en(e)}}}case"escaped":{const e=Jr(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:en(e)}}}default:return{}}}}},Vn=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Mr(e,t)||{};if(null==l)return{};const f=Vr(u),d={x:r,y:n},p=Gr(o),h=Ir(p),m=await s.getDimensions(l),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",g=v?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let j=O?O[g]:0;j&&await(null==s.isElement?void 0:s.isElement(O))||(j=a.floating[g]||i.floating[h]);const k=w/2-x/2,S=j/2-m[h]/2-1,P=Cr(f[y],S),E=Cr(f[b],S),C=P,N=j-m[h]-E,_=j/2-m[h]/2+k,R=Dr(C,_,N),A=!c.arrow&&null!=qr(o)&&_!==R&&i.reference[h]/2-(_<C?P:E)-m[h]/2<0,T=A?_<C?_-C:_-N:0;return{[p]:d[p]+T,data:{[p]:R,centerOffset:_-R-T,...A&&{alignmentOffset:T}},reset:A}}}),Yn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Mr(e,t),u={x:r,y:n},f=zr(o),d=Lr(f);let p=u[d],h=u[f];const m=Mr(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,r=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>r&&(p=r)}if(l){var y,b;const e="y"===d?"width":"height",t=tn.has(Fr(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);h<r?h=r:h>n&&(h=n)}return{[d]:p,[f]:h}}}},Xn=(e,t,r)=>{const n=new Map,o={platform:Gn,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Zr},c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Xr(l,n,c),d=n,p=0;const h={};for(let r=0;r<i.length;r++){const m=i[r];if(!m)continue;const{name:v,fn:y}=m,{x:b,y:g,data:w,reset:x}=await y({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,f=null!=g?g:f,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=Xr(l,d,c))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Zn="undefined"!=typeof document?i.useLayoutEffect:function(){};function Jn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Jn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Jn(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function to(e,t){const r=eo(e);return Math.round(t*r)/r}function ro(e){const t=i.useRef(e);return Zn(()=>{t.current=e}),t}const no=(e,t)=>{const r=Hn(e);return{name:r.name,fn:r.fn,options:[e,t]}},oo=(e,t)=>{const r=Bn(e);return{name:r.name,fn:r.fn,options:[e,t]}},io=(e,t)=>({fn:Yn(e).fn,options:[e,t]}),so=(e,t)=>{const r=Un(e);return{name:r.name,fn:r.fn,options:[e,t]}},ao=(e,t)=>{const r=Kn(e);return{name:r.name,fn:r.fn,options:[e,t]}},co=(e,t)=>{const r=Qn(e);return{name:r.name,fn:r.fn,options:[e,t]}},lo=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Vn({element:r.current,padding:n}).fn(t):{}:r?Vn({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var uo=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return(0,Ye.jsx)(Jt.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Ye.jsx)("polygon",{points:"0,0 30,0 15,10"})})});uo.displayName="Arrow";var fo=uo;var po="Popper",[ho,mo]=Ut(po),[vo,yo]=ho(po),bo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,Ye.jsx)(vo,{scope:t,anchor:n,onAnchorChange:o,children:r})};bo.displayName=po;var go="PopperAnchor",wo=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=yo(go,r),a=i.useRef(null),c=Ve(t,a),l=i.useRef(null);return i.useEffect(()=>{const e=l.current;l.current=n?.current||a.current,e!==l.current&&s.onAnchorChange(l.current)}),n?null:(0,Ye.jsx)(Jt.div,{...o,ref:c})});wo.displayName=go;var xo="PopperContent",[Oo,jo]=ho(xo),ko=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:m,...v}=e,y=yo(xo,r),[b,g]=i.useState(null),w=Ve(t,e=>g(e)),[x,O]=i.useState(null),j=function(e){const[t,r]=i.useState(void 0);return jr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(x),k=j?.width??0,S=j?.height??0,P=n+("center"!==s?"-"+s:""),E="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},C=Array.isArray(u)?u:[u],N=C.length>0,_={padding:E,boundary:C.filter(Co),altBoundary:N},{refs:R,floatingStyles:A,placement:T,isPositioned:D,middlewareData:M}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(n);Jn(p,n)||h(n);const[m,v]=i.useState(null),[y,b]=i.useState(null),g=i.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),w=i.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=s||m,O=a||y,j=i.useRef(null),k=i.useRef(null),S=i.useRef(f),P=null!=l,E=ro(l),C=ro(o),N=ro(u),_=i.useCallback(()=>{if(!j.current||!k.current)return;const e={placement:t,strategy:r,middleware:p};C.current&&(e.platform=C.current),Xn(j.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!Jn(S.current,t)&&(S.current=t,Qt.flushSync(()=>{d(t)}))})},[p,t,r,C,N]);Zn(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const R=i.useRef(!1);Zn(()=>(R.current=!0,()=>{R.current=!1}),[]),Zn(()=>{if(x&&(j.current=x),O&&(k.current=O),x&&O){if(E.current)return E.current(x,O,_);_()}},[x,O,_,E,P]);const A=i.useMemo(()=>({reference:j,floating:k,setReference:g,setFloating:w}),[g,w]),T=i.useMemo(()=>({reference:x,floating:O}),[x,O]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=to(T.floating,f.x),n=to(T.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...eo(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,T.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:_,refs:A,elements:T,floatingStyles:D}),[f,_,A,T,D])}({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>$n(...e,{animationFrame:"always"===h}),elements:{reference:y.anchor},middleware:[no({mainAxis:o+S,alignmentAxis:a}),l&&oo({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?io():void 0,..._}),l&&so({..._}),ao({..._,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),x&&lo({element:x,padding:c}),No({arrowWidth:k,arrowHeight:S}),p&&co({strategy:"referenceHidden",..._})]}),[F,q]=_o(T),L=er(m);jr(()=>{D&&L?.()},[D,L]);const I=M.arrow?.x,z=M.arrow?.y,G=0!==M.arrow?.centerOffset,[W,$]=i.useState();return jr(()=>{b&&$(window.getComputedStyle(b).zIndex)},[b]),(0,Ye.jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Ye.jsx)(Oo,{scope:r,placedSide:F,onArrowChange:O,arrowX:I,arrowY:z,shouldHideArrow:G,children:(0,Ye.jsx)(Jt.div,{"data-side":F,"data-align":q,...v,ref:w,style:{...v.style,animation:D?void 0:"none"}})})})});ko.displayName=xo;var So="PopperArrow",Po={top:"bottom",right:"left",bottom:"top",left:"right"},Eo=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=jo(So,r),i=Po[o.placedSide];return(0,Ye.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Ye.jsx)(fo,{...n,ref:t,style:{...n.style,display:"block"}})})});function Co(e){return null!==e}Eo.displayName=So;var No=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=_o(r),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+s/2,d=(o.arrow?.y??0)+a/2;let p="",h="";return"bottom"===c?(p=i?u:`${f}px`,h=-a+"px"):"top"===c?(p=i?u:`${f}px`,h=`${n.floating.height+a}px`):"right"===c?(p=-a+"px",h=i?u:`${d}px`):"left"===c&&(p=`${n.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function _o(e){const[t,r="center"]=e.split("-");return[t,r]}var Ro=bo,Ao=wo,To=ko,Do=Eo,Mo=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,s]=i.useState(!1);jr(()=>s(!0),[]);const a=r||o&&globalThis?.document?.body;return a?Qt.createPortal((0,Ye.jsx)(Jt.div,{...n,ref:t}),a):null});Mo.displayName="Portal";var Fo=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=function(e,t){return i.useReducer((e,r)=>t[e][r]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const e=qo(n.current);s.current="mounted"===c?e:"none"},[c]),jr(()=>{const t=n.current,r=o.current;if(r!==e){const n=s.current,i=qo(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),jr(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,i=i=>{const s=qo(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(l("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},a=e=>{e.target===t&&(s.current=qo(n.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),s=Ve(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:s}):null};function qo(e){return e?.animationName||"none"}Fo.displayName="Presence";function Lo(e){const t=Io(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,s=i.Children.toArray(n),a=s.find(Go);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Io(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zo=Symbol("radix.slottable");function Go(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===zo}var Wo=s[" useInsertionEffect ".trim().toString()]||jr;function $o({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=function({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),s=i.useRef(t);return Wo(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}({defaultProp:t,onChange:r}),c=void 0!==e,l=c?e:o;{const t=i.useRef(void 0!==e);i.useEffect(()=>{const e=t.current;if(e!==c){}t.current=c},[c,n])}const u=i.useCallback(t=>{if(c){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&a.current?.(r)}else s(t)},[c,e,s,a]);return[l,u]}Symbol("RADIX:SYNC_STATE");var Ho=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Bo=new WeakMap,Uo=new WeakMap,Ko={},Qo=0,Vo=function(e){return e&&(e.host||Vo(e.parentNode))},Yo=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Vo(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Ko[r]||(Ko[r]=new WeakMap);var i=Ko[r],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(Bo.get(e)||0)+1,l=(i.get(e)||0)+1;Bo.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Uo.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),a.clear(),Qo++,function(){s.forEach(function(e){var t=Bo.get(e)-1,o=i.get(e)-1;Bo.set(e,t),i.set(e,o),t||(Uo.has(e)||e.removeAttribute(n),Uo.delete(e)),o||e.removeAttribute(r)}),--Qo||(Bo=new WeakMap,Bo=new WeakMap,Uo=new WeakMap,Ko={})}},Xo=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Ho(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Yo(n,o,r,"aria-hidden")):function(){return null}};var Zo=function(){return Zo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zo.apply(this,arguments)};function Jo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function ei(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var ti="right-scroll-bar-position",ri="width-before-scroll-bar";function ni(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var oi="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ii=new WeakMap;function si(e,t){var r,n,o,s=(r=t||null,n=function(t){return e.forEach(function(e){return ni(e,t)})},(o=(0,i.useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return oi(function(){var t=ii.get(s);if(t){var r=new Set(t),n=new Set(e),o=s.current;r.forEach(function(e){n.has(e)||ni(e,null)}),n.forEach(function(e){r.has(e)||ni(e,o)})}ii.set(s,e)},[e]),s}function ai(e){return e}function ci(e,t){void 0===t&&(t=ai);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}var li=function(e){void 0===e&&(e={});var t=ci(null);return t.options=Zo({async:!0,ssr:!1},e),t}(),ui=function(){},fi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ui,onWheelCapture:ui,onTouchMoveCapture:ui}),o=n[0],s=n[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,g=void 0===b?"div":b,w=e.gapMode,x=Jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,j=si([r,t]),k=Zo(Zo({},x),o);return i.createElement(i.Fragment,null,f&&i.createElement(O,{sideCar:li,removeScrollBar:u,shards:d,noRelative:h,noIsolation:m,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?i.cloneElement(i.Children.only(c),Zo(Zo({},k),{ref:j})):i.createElement(g,Zo({},k,{className:l,ref:j}),c))});fi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fi.classNames={fullWidth:ri,zeroRight:ti};var di,pi=function(e){var t=e.sideCar,r=Jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Zo({},r))};pi.isSideCarExport=!0;function hi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=di||o.nc;return t&&e.setAttribute("nonce",t),e}var mi=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=hi())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e,t=(e=mi(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},yi={left:0,top:0,right:0,gap:0},bi=function(e){return parseInt(e||"",10)||0},gi=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return yi;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[bi(r),bi(n),bi(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},wi=vi(),xi="data-scroll-locked",Oi=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(a,"px ").concat(n,";\n  }\n  body[").concat(xi,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ti," {\n    right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(ri," {\n    margin-right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(ti," .").concat(ti," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(ri," .").concat(ri," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(xi,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ji=function(){var e=parseInt(document.body.getAttribute(xi)||"0",10);return isFinite(e)?e:0},ki=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(xi,(ji()+1).toString()),function(){var e=ji()-1;e<=0?document.body.removeAttribute(xi):document.body.setAttribute(xi,e.toString())}},[]);var s=i.useMemo(function(){return gi(o)},[o]);return i.createElement(wi,{styles:Oi(s,!t,o,r?"":"!important")})},Si=!1;if("undefined"!=typeof window)try{var Pi=Object.defineProperty({},"passive",{get:function(){return Si=!0,!0}});window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch(e){Si=!1}var Ei=!!Si&&{passive:!1},Ci=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Ni=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_i(e,n)){var o=Ri(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_i=function(e,t){return"v"===e?function(e){return Ci(e,"overflowY")}(t):function(e){return Ci(e,"overflowX")}(t)},Ri=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Ai=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ti=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},Mi=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Fi=0,qi=[];function Li(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ii=(zi=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Fi++)[0],s=i.useState(vi)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ei([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ai(e),s=r.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=Ni(f,u);if(!h)return!0;if(h?o=f:(o="v"===f?"h":"v",h=Ni(f,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=o),!o)return!0;var m=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,f=0,d=0;do{if(!a)break;var p=Ri(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&_i(e,a)&&(f+=m,d+=h);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(f)<1||!o&&s>f)||!u&&(o&&Math.abs(d)<1||!o&&-s>d))&&(l=!0),l}(m,t,e,"h"===m?c:l,!0)},[]),l=i.useCallback(function(e){var r=e;if(qi.length&&qi[qi.length-1]===s){var n="deltaY"in r?Ti(r):Ai(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?c(r,i[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Li(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=i.useCallback(function(e){r.current=Ai(e),n.current=void 0},[]),d=i.useCallback(function(t){u(t.type,Ti(t),t.target,c(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,Ai(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ei),document.addEventListener("touchmove",l,Ei),document.addEventListener("touchstart",f,Ei),function(){qi=qi.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,Ei),document.removeEventListener("touchmove",l,Ei),document.removeEventListener("touchstart",f,Ei)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(s,{styles:Mi(o)}):null,h?i.createElement(ki,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},li.useMedium(zi),pi);var zi,Gi=i.forwardRef(function(e,t){return i.createElement(fi,Zo({},e,{ref:t,sideCar:Ii}))});Gi.classNames=fi.classNames;const Wi=Gi;var $i="Popover",[Hi,Bi]=Ut($i,[mo]),Ui=mo(),[Ki,Qi]=Hi($i),Vi=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=Ui(t),l=i.useRef(null),[u,f]=i.useState(!1),[d,p]=$o({prop:n,defaultProp:o??!1,onChange:s,caller:$i});return(0,Ye.jsx)(Ro,{...c,children:(0,Ye.jsx)(Ki,{scope:t,contentId:Pr(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:a,children:r})})};Vi.displayName=$i;var Yi="PopoverAnchor",Xi=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(Yi,r),s=Ui(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),(0,Ye.jsx)(Ao,{...s,...n,ref:t})});Xi.displayName=Yi;var Zi="PopoverTrigger",Ji=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(Zi,r),i=Ui(r),s=Ve(t,o.triggerRef),a=(0,Ye.jsx)(Jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ps(o.open),...n,ref:s,onClick:Bt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,Ye.jsx)(Ao,{asChild:!0,...i,children:a})});Ji.displayName=Zi;var es="PopoverPortal",[ts,rs]=Hi(es,{forceMount:void 0}),ns=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Qi(es,t);return(0,Ye.jsx)(ts,{scope:t,forceMount:r,children:(0,Ye.jsx)(Fo,{present:r||i.open,children:(0,Ye.jsx)(Mo,{asChild:!0,container:o,children:n})})})};ns.displayName=es;var os="PopoverContent",is=i.forwardRef((e,t)=>{const r=rs(os,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Qi(os,e.__scopePopover);return(0,Ye.jsx)(Fo,{present:n||i.open,children:i.modal?(0,Ye.jsx)(as,{...o,ref:t}):(0,Ye.jsx)(cs,{...o,ref:t})})});is.displayName=os;var ss=Lo("PopoverContent.RemoveScroll"),as=i.forwardRef((e,t)=>{const r=Qi(os,e.__scopePopover),n=i.useRef(null),o=Ve(t,n),s=i.useRef(!1);return i.useEffect(()=>{const e=n.current;if(e)return Xo(e)},[]),(0,Ye.jsx)(Wi,{as:ss,allowPinchZoom:!0,children:(0,Ye.jsx)(ls,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Bt(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:Bt(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),cs=i.forwardRef((e,t)=>{const r=Qi(os,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return(0,Ye.jsx)(ls,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,s=r.triggerRef.current?.contains(i);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ls=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...f}=e,d=Qi(os,r),p=Ui(r);return fr(),(0,Ye.jsx)(vr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,Ye.jsx)(sr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>d.onOpenChange(!1),children:(0,Ye.jsx)(To,{"data-state":ps(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),us="PopoverClose",fs=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(us,r);return(0,Ye.jsx)(Jt.button,{type:"button",...n,ref:t,onClick:Bt(e.onClick,()=>o.onOpenChange(!1))})});fs.displayName=us;var ds=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ui(r);return(0,Ye.jsx)(Do,{...o,...n,ref:t})});function ps(e){return e?"open":"closed"}ds.displayName="PopoverArrow";var hs=is;function ms(e){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(e)}var vs=["className","align","sideOffset"];function ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ms(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ms(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gs=Vi,ws=Ji,xs=i.forwardRef(function(e,t){var r=e.className,n=e.align,o=void 0===n?"center":n,i=e.sideOffset,s=void 0===i?4:i,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,vs);return(0,Ye.jsx)(hs,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(r),!0).forEach(function(t){bs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:o,sideOffset:s,className:Ue("vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},a))});function Os(e){return Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(e)}function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ks(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Os(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Os(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}xs.displayName=hs.displayName;var Ss=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?js(Object(r),!0).forEach(function(t){ks(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Ps=Ss;let Es={data:""},Cs=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Es},Ns=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_s=/\/\*[^]*?\*\/|  +/g,Rs=/\n+/g,As=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+s+";":n+="f"==i[1]?As(s,i):i+"{"+As(s,"k"==i[1]?"":t)+"}":"object"==typeof s?n+=As(s,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=s&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=As.p?As.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Ts={},Ds=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Ds(e[r]);return t}return e},Ms=(e,t,r,n,o)=>{let i=Ds(e),s=Ts[i]||(Ts[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!Ts[s]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=Ns.exec(e.replace(_s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(Rs," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(Rs," ").trim();return n[0]})(e);Ts[s]=As(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let a=r&&Ts.g;return r&&(Ts.g=Ts[s]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Ts[s],t,n,a),s};function Fs(e){let t=this||{},r=e.call?e(t.p):e;return Ms(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":As(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Cs(t.target),t.g,t.o,t.k)}Fs.bind({g:1});let qs,Ls,Is,zs=Fs.bind({k:1});function Gs(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;r.p=Object.assign({theme:Ls&&Ls()},a),r.o=/go\d/.test(c),a.className=Fs.apply(r,n)+(c?" "+c:""),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),Is&&l[0]&&Is(a),qs(l,a)}return t?t(o):o}}var Ws=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,$s=(()=>{let e=0;return()=>(++e).toString()})(),Hs=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Bs="default",Us=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Us(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Ks=[],Qs={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},Vs={},Ys=(e,t=Bs)=>{Vs[t]=Us(Vs[t]||Qs,e),Ks.forEach(([e,r])=>{e===t&&r(Vs[t])})},Xs=e=>Object.keys(Vs).forEach(t=>Ys(e,t)),Zs=(e=Bs)=>t=>{Ys(t,e)},Js={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ea=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||$s()}))(t,e,r);return Zs(n.toasterId||(e=>Object.keys(Vs).find(t=>Vs[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},ta=(e,t)=>ea("blank")(e,t);ta.error=ea("error"),ta.success=ea("success"),ta.loading=ea("loading"),ta.custom=ea("custom"),ta.dismiss=(e,t)=>{let r={type:3,toastId:e};t?Zs(t)(r):Xs(r)},ta.dismissAll=e=>ta.dismiss(void 0,e),ta.remove=(e,t)=>{let r={type:4,toastId:e};t?Zs(t)(r):Xs(r)},ta.removeAll=e=>ta.remove(void 0,e),ta.promise=(e,t,r)=>{let n=ta.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?Ws(t.success,e):void 0;return o?ta.success(o,{id:n,...r,...null==r?void 0:r.success}):ta.dismiss(n),e}).catch(e=>{let o=t.error?Ws(t.error,e):void 0;o?ta.error(o,{id:n,...r,...null==r?void 0:r.error}):ta.dismiss(n)}),e};var ra=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Bs)=>{let[r,n]=(0,i.useState)(Vs[t]||Qs),o=(0,i.useRef)(Vs[t]);(0,i.useEffect)(()=>(o.current!==Vs[t]&&n(Vs[t]),Ks.push([t,n]),()=>{let e=Ks.findIndex(([e])=>e===t);e>-1&&Ks.splice(e,1)}),[t]);let s=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Js[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:s}})(e,t),o=(0,i.useRef)(new Map).current,s=(0,i.useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),a({type:4,toastId:e})},t);o.set(e,r)},[]);(0,i.useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>ta.dismiss(r.id,t),n);r.visible&&ta.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let a=(0,i.useCallback)(Zs(t),[t]),c=(0,i.useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,i.useCallback)((e,t)=>{a({type:1,toast:{id:e,height:t}})},[a]),u=(0,i.useCallback)(()=>{n&&a({type:6,time:Date.now()})},[n,a]),f=(0,i.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},s=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=s.findIndex(t=>t.id===e.id),c=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,i.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)s(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,s]),{toasts:r,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:f}}},na=zs`
    2 from {
    3   transform: scale(0) rotate(45deg);
    4         opacity: 0;
    5 }
    6 to {
    7  transform: scale(1) rotate(45deg);
    8   opacity: 1;
    9 }`,oa=zs`
    10 from {
    11   transform: scale(0);
    12   opacity: 0;
    13 }
    14 to {
    15   transform: scale(1);
    16   opacity: 1;
    17 }`,ia=zs`
    18 from {
    19   transform: scale(0) rotate(90deg);
    20         opacity: 0;
    21 }
    22 to {
    23   transform: scale(1) rotate(90deg);
    24         opacity: 1;
    25 }`,sa=Gs("div")`
    26   width: 20px;
    27   opacity: 0;
    28   height: 20px;
    29   border-radius: 10px;
    30   background: ${e=>e.primary||"#ff4b4b"};
    31   position: relative;
    32   transform: rotate(45deg);
    33 
    34   animation: ${na} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    35     forwards;
    36   animation-delay: 100ms;
    37 
    38   &:after,
    39   &:before {
    40     content: '';
    41     animation: ${oa} 0.15s ease-out forwards;
    42     animation-delay: 150ms;
    43     position: absolute;
    44     border-radius: 3px;
    45     opacity: 0;
    46     background: ${e=>e.secondary||"#fff"};
    47     bottom: 9px;
    48     left: 4px;
    49     height: 2px;
    50     width: 12px;
    51   }
    52 
    53   &:before {
    54     animation: ${ia} 0.15s ease-out forwards;
    55     animation-delay: 180ms;
    56     transform: rotate(90deg);
    57   }
    58 `,aa=zs`
    59   from {
    60     transform: rotate(0deg);
    61   }
    62   to {
    63     transform: rotate(360deg);
    64   }
    65 `,ca=Gs("div")`
    66   width: 12px;
    67   height: 12px;
    68   box-sizing: border-box;
    69   border: 2px solid;
    70   border-radius: 100%;
    71   border-color: ${e=>e.secondary||"#e0e0e0"};
    72   border-right-color: ${e=>e.primary||"#616161"};
    73   animation: ${aa} 1s linear infinite;
    74 `,la=zs`
    75 from {
    76   transform: scale(0) rotate(45deg);
    77         opacity: 0;
    78 }
    79 to {
    80   transform: scale(1) rotate(45deg);
    81         opacity: 1;
    82 }`,ua=zs`
    83 0% {
    84         height: 0;
    85         width: 0;
    86         opacity: 0;
    87 }
    88 40% {
    89   height: 0;
    90         width: 6px;
    91         opacity: 1;
    92 }
    93 100% {
    94   opacity: 1;
    95   height: 10px;
    96 }`,fa=Gs("div")`
    97   width: 20px;
    98   opacity: 0;
    99   height: 20px;
    100   border-radius: 10px;
    101   background: ${e=>e.primary||"#61d345"};
    102   position: relative;
    103   transform: rotate(45deg);
    104 
    105   animation: ${la} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    106     forwards;
    107   animation-delay: 100ms;
    108   &:after {
    109     content: '';
    110     box-sizing: border-box;
    111     animation: ${ua} 0.2s ease-out forwards;
    112     opacity: 0;
    113     animation-delay: 200ms;
    114     position: absolute;
    115     border-right: 2px solid;
    116     border-bottom: 2px solid;
    117     border-color: ${e=>e.secondary||"#fff"};
    118     bottom: 6px;
    119     left: 6px;
    120     height: 10px;
    121     width: 6px;
    122   }
    123 `,da=Gs("div")`
    124   position: absolute;
    125 `,pa=Gs("div")`
    126   position: relative;
    127   display: flex;
    128   justify-content: center;
    129   align-items: center;
    130   min-width: 20px;
    131   min-height: 20px;
    132 `,ha=zs`
    133 from {
    134   transform: scale(0.6);
    135   opacity: 0.4;
    136 }
    137 to {
    138   transform: scale(1);
    139   opacity: 1;
    140 }`,ma=Gs("div")`
    141   position: relative;
    142   transform: scale(0.6);
    143   opacity: 0.4;
    144   min-width: 20px;
    145   animation: ${ha} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    146     forwards;
    147 `,va=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?i.createElement(ma,null,t):t:"blank"===r?null:i.createElement(pa,null,i.createElement(ca,{...n}),"loading"!==r&&i.createElement(da,null,"error"===r?i.createElement(sa,{...n}):i.createElement(fa,{...n})))},ya=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,ba=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,ga=Gs("div")`
    148   display: flex;
    149   align-items: center;
    150   background: #fff;
    151   color: #363636;
    152   line-height: 1.3;
    153   will-change: transform;
    154   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
    155   max-width: 350px;
    156   pointer-events: auto;
    157   padding: 8px 10px;
    158   border-radius: 8px;
    159 `,wa=Gs("div")`
    160   display: flex;
    161   justify-content: center;
    162   margin: 4px 10px;
    163   color: inherit;
    164   flex: 1 1 auto;
    165   white-space: pre-line;
    166 `,xa=i.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Hs()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ya(r),ba(r)];return{animation:t?`${zs(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${zs(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=i.createElement(va,{toast:e}),a=i.createElement(wa,{...e.ariaProps},Ws(e.message,e));return i.createElement(ga,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:s,message:a}):i.createElement(i.Fragment,null,s,a))});!function(e,t,r,n){As.p=t,qs=e,Ls=r,Is=n}(i.createElement);var Oa=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let s=i.useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return i.createElement("div",{ref:s,className:t,style:r},o)},ja=Fs`
    167   z-index: 9999;
    168   > * {
    169     pointer-events: auto;
    170   }
    171 `,ka=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:s,containerStyle:a,containerClassName:c})=>{let{toasts:l,handlers:u}=ra(r,s);return i.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(r=>{let s=r.position||t,a=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Hs()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return i.createElement(Oa,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?ja:"",style:a},"custom"===r.type?Ws(r.message,r):o?o(r):i.createElement(xa,{toast:r,position:s}))}))},Sa=ta;function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}var Ea=function(e){return e instanceof File||e instanceof Blob},Ca=function(e){return"string"==typeof e},Na=function(e){return"boolean"==typeof e},_a=function(e){return"number"==typeof e},Ra=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){Ea(e)||Ca(e)?t.append("".concat(r,"[").concat(n,"]"),e):Na(e)||_a(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===Pa(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):Ea(i)||Ca(i)?t.append(r,i):Na(i)?t.append(r,i.toString()):_a(i)?t.append(r,"".concat(i)):"object"===Pa(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t};function Aa(e){return Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(e)}function Ta(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Da(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Da(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Da(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Da(f,"constructor",l),Da(l,"constructor",c),c.displayName="GeneratorFunction",Da(l,o,"GeneratorFunction"),Da(f),Da(f,o,"Generator"),Da(f,n,function(){return this}),Da(f,"toString",function(){return"[object Generator]"}),(Ta=function(){return{w:i,m:d}})()}function Da(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Da=function(e,t,r,n){function i(t,r){Da(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Da(e,t,r,n)}function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(r),!0).forEach(function(t){qa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ma(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function qa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Aa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Aa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function La(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Ia(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){La(i,n,o,s,a,"next",e)}function a(e){La(i,n,o,s,a,"throw",e)}s(void 0)})}}function za(e,t){return Ga.apply(this,arguments)}function Ga(){return Ga=Ia(Ta().m(function e(t,r){var n,o,i,s,a,c,l,u,f,d,p,h,m;return Ta().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Ps.wp_rest_nonce,i=Ps.nonce_key,s=Ps.nonce_value,a="".concat(t),c=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",l=Fa({"X-WP-Nonce":o},r.headers||{}),u={method:c,headers:l},["GET","DELETE"].includes(c)?((f=new URLSearchParams(null==r?void 0:r.body)).append(i,s),a+="?".concat(f.toString())):r.body&&((d=Ra(r.body)).append(i,s),u.body=d),e.p=1,e.n=2,fetch(a,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(h=e.v).status_code){e.n=4;break}return e.a(2,h);case 4:throw new Error(h.message);case 5:e.n=7;break;case 6:throw e.p=6,m=e.v,new Error((null==m?void 0:m.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Ga.apply(this,arguments)}var Wa={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$a=new class{#e=Wa;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var Ha=function(e){setTimeout(e,0)};var Ba=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=Ha;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),Ua="undefined"==typeof window||"Deno"in globalThis;function Ka(){}function Qa(e,t){return"function"==typeof e?e(t):e}function Va(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Xa(s,t.options))return!1}else if(!Ja(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Ya(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Za(t.options.mutationKey)!==Za(i))return!1}else if(!Ja(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Xa(e,t){return(t?.queryKeyHashFn||Za)(e)}function Za(e){return JSON.stringify(e,(e,t)=>nc(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Ja(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>Ja(e[r],t[r])))}var ec=Object.prototype.hasOwnProperty;function tc(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=rc(e)&&rc(t);if(!(n||nc(e)&&nc(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const s=n?l:i[l],u=e[s],f=t[s];if(u===f){a[s]=u,(n?l<o:ec.call(e,s))&&c++;continue}if(null===u||null===f||"object"!=typeof u||"object"!=typeof f){a[s]=f;continue}const d=tc(u,f,r+1);a[s]=d,d===u&&c++}return o===s&&c===o?e:a}function rc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nc(e){if(!oc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!oc(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function oc(e){return"[object Object]"===Object.prototype.toString.call(e)}function ic(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?tc(e,t):t}function sc(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function ac(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cc=Symbol();function lc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==cc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var uc=(()=>{let e=()=>Ua;return{isServer:()=>e(),setIsServer(t){e=t}}})(),fc=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#r=$a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(uc.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#r&&($a.clearTimeout(this.#r),this.#r=void 0)}},dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pc=new class extends dc{#n;#o;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:"hidden"!==globalThis.document?.visibilityState}},hc=new class extends dc{#s=!0;#o;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function mc(e){return Math.min(1e3*2**e,3e4)}function vc(e){return"online"!==(e??"online")||hc.isOnline()}var yc=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function bc(e){let t,r=!1,n=0;const o=function(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}(),i=()=>"pending"!==o.status,s=()=>pc.isFocused()&&("always"===e.networkMode||hc.isOnline())&&e.canRun(),a=()=>vc(e.networkMode)&&e.canRun(),c=e=>{i()||(t?.(),o.resolve(e))},l=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||s())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),f=()=>{if(i())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{if(i())return;const o=e.retry??(uc.isServer()?0:3),a=e.retryDelay??mc,c="function"==typeof a?a(n,t):a,d=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&d?(n++,e.onFail?.(n,t),(p=c,new Promise(e=>{$a.setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{r?l(t):f()})):l(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const r=new yc(t);l(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?f():u().then(f),o)}}var gc=class extends fc{#a;#c;#l;#u;constructor(e){super(),this.#a=e.client,this.mutationId=e.mutationId,this.#l=e.mutationCache,this.#c=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#c.includes(e)||(this.#c.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#c=this.#c.filter(t=>t!==e),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#c.length||("pending"===this.state.status?this.scheduleGc():this.#l.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#f({type:"continue"})},r={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#u=bc({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const n="pending"===this.state.status,o=!this.#u.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:o}),this.#l.config.onMutate&&await this.#l.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#u.start();return await(this.#l.config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(this.#l.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),this.#f({type:"success",data:i}),i}catch(t){try{await(this.#l.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#l.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#f({type:"error",error:t}),t}finally{this.#l.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ba.batch(()=>{this.#c.forEach(t=>{t.onMutationUpdate(e)}),this.#l.notify({mutation:this,type:"updated",action:e})})}};var wc=class extends dc{#a;#d=void 0;#p;#h;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#m()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#a.defaultMutationOptions(e),function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&Za(t.mutationKey)!==Za(this.options.mutationKey)?this.reset():"pending"===this.#p?.state.status&&this.#p.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#m(),this.#v(e)}getCurrentResult(){return this.#d}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#m(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#a.getMutationCache().build(this.#a,this.options),this.#p.addObserver(this),this.#p.execute(e)}#m(){const e=this.#p?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){Ba.batch(()=>{if(this.#h&&this.hasListeners()){const t=this.#d.variables,r=this.#d.context,n={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#h.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#h.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#d)})})}},xc=i.createContext(void 0),Oc=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Ye.jsx)(xc.Provider,{value:e,children:t}));function jc(e,t){const r=(e=>{const t=i.useContext(xc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(t),[n]=i.useState(()=>new wc(r,e));i.useEffect(()=>{n.setOptions(e)},[n,e]);const o=i.useSyncExternalStore(i.useCallback(e=>n.subscribe(Ba.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=i.useCallback((e,t)=>{n.mutate(e,t).catch(Ka)},[n]);if(o.error&&(a=n.options.throwOnError,c=[o.error],"function"==typeof a?a(...c):a))throw o.error;var a,c;return{...o,mutate:s,mutateAsync:o.mutate}}function kc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Sc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Sc(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Sc(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Sc(f,"constructor",l),Sc(l,"constructor",c),c.displayName="GeneratorFunction",Sc(l,o,"GeneratorFunction"),Sc(f),Sc(f,o,"Generator"),Sc(f,n,function(){return this}),Sc(f,"toString",function(){return"[object Generator]"}),(kc=function(){return{w:i,m:d}})()}function Sc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sc=function(e,t,r,n){function i(t,r){Sc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Sc(e,t,r,n)}function Pc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Ec(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Pc(i,n,o,s,a,"next",e)}function a(e){Pc(i,n,o,s,a,"throw",e)}s(void 0)})}}var Cc=function(){var e=Ec(kc().m(function e(t){var r;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,za(Ps.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),Nc=function(){var e=Ec(kc().m(function e(){var t;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc({action:"versatile_quickact_plugins_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),_c=function(){var e=Ec(kc().m(function e(){var t;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc({action:"versatile_quickact_themes_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),Rc=function(){return jc({mutationFn:(e=Ec(kc().m(function e(t){var r;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc(t);case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){Sa.success(e.message||(0,a.__)("Quick action completed successfully!","versatile-toolkit"))},onError:function(e){Sa.error(e.message||(0,a.__)("Quick action failed","versatile-toolkit"))}});var e};function Ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dc(e,t){var r=Ac((0,i.useState)(e),2),n=r[0],o=r[1];return(0,i.useEffect)(function(){var r=window.setTimeout(function(){return o(e)},t);return function(){return window.clearTimeout(r)}},[e,t]),n}const Mc=f("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Fc=f("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),qc=f("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Lc(e){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(e)}function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(r),!0).forEach(function(t){Gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Gc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Lc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return $c(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):($c(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,$c(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,$c(f,"constructor",l),$c(l,"constructor",c),c.displayName="GeneratorFunction",$c(l,o,"GeneratorFunction"),$c(f),$c(f,o,"Generator"),$c(f,n,function(){return this}),$c(f,"toString",function(){return"[object Generator]"}),(Wc=function(){return{w:i,m:d}})()}function $c(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$c=function(e,t,r,n){function i(t,r){$c(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$c(e,t,r,n)}function Hc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Bc(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Hc(i,n,o,s,a,"next",e)}function a(e){Hc(i,n,o,s,a,"throw",e)}s(void 0)})}}function Uc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Qc=function(){var e=Uc((0,i.useState)([]),2),t=e[0],r=e[1],n=Uc((0,i.useState)(!1),2),o=n[0],s=n[1],c=Uc((0,i.useState)(null),2),l=c[0],u=c[1],f=Uc((0,i.useState)(null),2),d=f[0],p=f[1],h=Uc((0,i.useState)(""),2),m=h[0],v=h[1],y=Dc(m,300),b=Rc(),g=b.mutateAsync,w=b.isPending,x=(0,i.useCallback)(Bc(Wc().m(function e(){var t;return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:return s(!0),e.p=1,e.n=2,Nc();case 2:t=e.v,r(t);case 3:return e.p=3,s(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,i.useEffect)(function(){x()},[x]);var O=function(){var e=Bc(Wc().m(function e(t,n){return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:return u(t),e.p=1,e.n=2,g({action:n?"versatile_quickact_plugin_activate":"versatile_quickact_plugin_deactivate",plugin_file:t});case 2:r(function(e){return e.map(function(e){return e.file===t?zc(zc({},e),{},{is_active:n}):e})});case 3:return e.p=3,u(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Bc(Wc().m(function e(t){return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,a.__)("Are you sure you want to delete this plugin?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return p(t),e.p=2,e.n=3,g({action:"versatile_quickact_plugin_delete",plugin_file:t});case 3:r(function(e){return e.filter(function(e){return e.file!==t})});case 4:return e.p=4,p(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),k=(0,i.useMemo)(function(){var e=y.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.file," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,y]);return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-section-head",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Plugin List","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,Ye.jsx)(Mc,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Ye.jsx)(Ht,{type:"search",value:m,className:"vt-w-max vt-pl-8 vt-h-5",onChange:function(e){return v(e.target.value)},placeholder:(0,a.__)("Search plugins…","versatile-toolkit"),autoComplete:"off","aria-label":(0,a.__)("Search plugins","versatile-toolkit"),disabled:o})]})]}),o&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("Loading plugins...","versatile-toolkit")}),!o&&0===t.length&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("No plugins found.","versatile-toolkit")}),!o&&t.length>0&&0===k.length&&(0,Ye.jsx)("div",{style:{minHeight:"120px"},children:(0,a.__)("No plugins match your search.","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-section-list",children:k.map(function(e){return(0,Ye.jsxs)("div",{className:"vt-quickact-row ".concat(e.is_active?"vt-quickact-row-active":""),children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,Ye.jsxs)("div",{className:"vt-quickact-row-meta",children:[e.file," ",e.version?"(".concat(e.version,")"):""]})]}),(0,Ye.jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,Ye.jsx)(dt,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:w,onClick:function(){O(e.file,!e.is_active)},children:(0,Ye.jsx)(It,{isLoading:l===e.file,loadingText:"loading",size:"xs",children:e.is_active?(0,a.__)("Deactivate","versatile-toolkit"):(0,a.__)("Activate","versatile-toolkit")})}),(0,Ye.jsxs)(gs,{children:[(0,Ye.jsx)(ws,{asChild:!0,children:(0,Ye.jsxs)(dt,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,Ye.jsx)(Fc,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,Ye.jsx)("span",{className:"vt-sr-only",children:(0,a.__)("Open menu","versatile-toolkit")})]})}),(0,Ye.jsx)(xs,{className:"vt-w-max vt-p-1",align:"end",children:(0,Ye.jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,Ye.jsx)(dt,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:w,onClick:function(){j(e.file)},children:(0,Ye.jsxs)(It,{isLoading:d===e.file,loadingText:"loading",size:"xs",children:[(0,Ye.jsx)(qc,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,Ye.jsx)("span",{children:(0,a.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.file)})})]})};function Vc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Yc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Yc(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Yc(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Yc(f,"constructor",l),Yc(l,"constructor",c),c.displayName="GeneratorFunction",Yc(l,o,"GeneratorFunction"),Yc(f),Yc(f,o,"Generator"),Yc(f,n,function(){return this}),Yc(f,"toString",function(){return"[object Generator]"}),(Vc=function(){return{w:i,m:d}})()}function Yc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yc=function(e,t,r,n){function i(t,r){Yc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Yc(e,t,r,n)}function Xc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}const Zc=function(){var e=Rc(),t=e.mutateAsync,r=e.isPending,n=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Xc(i,n,o,s,a,"next",e)}function a(e){Xc(i,n,o,s,a,"throw",e)}s(void 0)})}}(Vc().m(function e(){return Vc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Settings","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-quickact-row vt-quickact-row-comfortable",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:(0,a.__)("Permalink Reset","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-row-meta",children:(0,a.__)("Flush and regenerate rewrite rules.","versatile-toolkit")})]}),(0,Ye.jsx)(dt,{variant:"softBlue",size:"softBlue",type:"button",disabled:r,onClick:function(){n()},children:(0,Ye.jsx)(It,{isLoading:r,loadingText:(0,a.__)("loading","versatile-toolkit"),size:"sm",children:(0,a.__)("Reset","versatile-toolkit")})})]})]})};function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?el(Object(r),!0).forEach(function(t){rl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Jc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return ol(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ol(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ol(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,ol(f,"constructor",l),ol(l,"constructor",c),c.displayName="GeneratorFunction",ol(l,o,"GeneratorFunction"),ol(f),ol(f,o,"Generator"),ol(f,n,function(){return this}),ol(f,"toString",function(){return"[object Generator]"}),(nl=function(){return{w:i,m:d}})()}function ol(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ol=function(e,t,r,n){function i(t,r){ol(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ol(e,t,r,n)}function il(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function sl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){il(i,n,o,s,a,"next",e)}function a(e){il(i,n,o,s,a,"throw",e)}s(void 0)})}}function al(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const ll=function(){var e=al((0,i.useState)([]),2),t=e[0],r=e[1],n=al((0,i.useState)(!1),2),o=n[0],s=n[1],c=al((0,i.useState)(null),2),l=c[0],u=c[1],f=al((0,i.useState)(null),2),d=f[0],p=f[1],h=al((0,i.useState)(""),2),m=h[0],v=h[1],y=Dc(m,300),b=Rc(),g=b.mutateAsync,w=b.isPending,x=(0,i.useCallback)(sl(nl().m(function e(){var t;return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:return s(!0),e.p=1,e.n=2,_c();case 2:t=e.v,r(t);case 3:return e.p=3,s(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,i.useEffect)(function(){x()},[x]);var O=function(){var e=sl(nl().m(function e(t,n){return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:return u(t),e.p=1,e.n=2,g({action:n?"versatile_quickact_theme_activate":"versatile_quickact_theme_deactivate",stylesheet:t});case 2:r(function(e){return e.map(function(e){return e.stylesheet===t?tl(tl({},e),{},{is_active:n}):n?tl(tl({},e),{},{is_active:!1}):e})});case 3:return e.p=3,u(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=sl(nl().m(function e(t){return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,a.__)("Are you sure you want to delete this theme?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return p(t),e.p=2,e.n=3,g({action:"versatile_quickact_theme_delete",stylesheet:t});case 3:r(function(e){return e.filter(function(e){return e.stylesheet!==t})});case 4:return e.p=4,p(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),k=(0,i.useMemo)(function(){var e=y.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.stylesheet," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,y]);return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-section-head",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Theme List","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,Ye.jsx)(Mc,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Ye.jsx)(Ht,{type:"search",className:"vt-w-max vt-pl-8 vt-h-5",value:m,onChange:function(e){return v(e.target.value)},placeholder:(0,a.__)("Search themes…","versatile-toolkit"),autoComplete:"off","aria-label":(0,a.__)("Search themes","versatile-toolkit"),disabled:o})]})]}),o&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("Loading themes...","versatile-toolkit")}),!o&&0===t.length&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("No themes found.","versatile-toolkit")}),!o&&t.length>0&&0===k.length&&(0,Ye.jsx)("div",{style:{minHeight:"120px"},children:(0,a.__)("No themes match your search.","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-section-list",children:k.map(function(e){return(0,Ye.jsxs)("div",{className:"vt-quickact-row".concat(e.is_active?" vt-quickact-row-active":""),children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,Ye.jsxs)("div",{className:"vt-quickact-row-meta",children:[e.stylesheet," ",e.version?"(".concat(e.version,")"):""]})]}),(0,Ye.jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,Ye.jsx)(dt,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:w,onClick:function(){O(e.stylesheet,!e.is_active)},children:(0,Ye.jsx)(It,{isLoading:l===e.stylesheet,loadingText:"loading",size:"xs",children:e.is_active?(0,a.__)("Deactivate","versatile-toolkit"):(0,a.__)("Activate","versatile-toolkit")})}),(0,Ye.jsxs)(gs,{children:[(0,Ye.jsx)(ws,{asChild:!0,children:(0,Ye.jsxs)(dt,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,Ye.jsx)(Fc,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,Ye.jsx)("span",{className:"vt-sr-only",children:(0,a.__)("Open menu","versatile-toolkit")})]})}),(0,Ye.jsx)(xs,{className:"vt-w-max vt-p-1",align:"end",children:(0,Ye.jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,Ye.jsx)(dt,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:w,onClick:function(){j(e.stylesheet)},children:(0,Ye.jsxs)(It,{isLoading:d===e.stylesheet,loadingText:"loading",size:"xs",children:[(0,Ye.jsx)(qc,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,Ye.jsx)("span",{children:(0,a.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.stylesheet)})})]})};Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function ul(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return fl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(fl(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,fl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,fl(f,"constructor",l),fl(l,"constructor",c),c.displayName="GeneratorFunction",fl(l,o,"GeneratorFunction"),fl(f),fl(f,o,"Generator"),fl(f,n,function(){return this}),fl(f,"toString",function(){return"[object Generator]"}),(ul=function(){return{w:i,m:d}})()}function fl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fl=function(e,t,r,n){function i(t,r){fl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},fl(e,t,r,n)}function dl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function pl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){dl(i,n,o,s,a,"next",e)}function a(e){dl(i,n,o,s,a,"throw",e)}s(void 0)})}}const hl=function(){var e=Rc(),t=e.mutateAsync,r=e.isPending,n=function(){var e=pl(ul().m(function e(){return ul().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Ye.jsxs)("div",{className:"vt-border-b vt-border-gray-200 vt-pb-3 vt-flex vt-gap-1 vt-justify-between vt-items-center",children:[(0,Ye.jsx)("h2",{className:"vt-mr-2 vt-text-sm vt-font-medium vt-text-gray-500",children:(0,a.__)("Top Actions","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-flex vt-gap-2 vt-justify-between",children:(0,Ye.jsx)(dt,{type:"button",variant:"softBlue",size:"softBlue",disabled:r,onClick:n,children:(0,Ye.jsx)(It,{isLoading:r,loadingText:(0,a.__)("Resetting...","versatile-toolkit"),size:"xs",children:(0,a.__)("Reset Permalink","versatile-toolkit")})})})]})};function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yl=function(e){return e instanceof Element&&Boolean(e.closest(".vt-quickact-menu-wrapper"))};const bl=function(){var e=ml((0,i.useState)("plugins"),2),t=e[0],r=e[1];return(0,Ye.jsxs)("div",{className:"vt-quickact-trigger",onClick:function(e){yl(e.target)||(e.preventDefault(),e.stopPropagation())},onMouseDown:function(e){yl(e.target)||(e.preventDefault(),e.stopPropagation())},children:[(0,Ye.jsxs)("div",{children:[(0,a.__)("Quick Actions","versatile-toolkit"),(0,Ye.jsx)("span",{className:"vt-quickact-arrow","aria-hidden":"true",children:"▼"})]}),(0,Ye.jsxs)("div",{className:"vt-quickact-menu-wrapper",children:[(0,Ye.jsx)(hl,{}),(0,Ye.jsxs)("div",{className:"vt-quickact-menu vt-pt-3",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-sidebar vt-border-r",children:[(0,Ye.jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("plugins"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("plugins")},children:(0,a.__)("Plugins","versatile-toolkit")}),(0,Ye.jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("themes"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("themes")},children:(0,a.__)("Themes","versatile-toolkit")})]}),(0,Ye.jsxs)("div",{className:"vt-quickact-content vt-pl-3",children:[(0,Ye.jsx)("div",{hidden:"plugins"!==t,children:(0,Ye.jsx)(Qc,{})}),(0,Ye.jsx)("div",{hidden:"themes"!==t,children:(0,Ye.jsx)(ll,{})}),(0,Ye.jsx)("div",{hidden:"settings"!==t,children:(0,Ye.jsx)(Zc,{})})]})]})]})]})};function gl(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let r=!1;const l=e=>{!function(e,t,r){let n,o=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=lc(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return l(e),e})(),s=await u(i),{maxPages:a}=t.options,c=o?ac:sc;return{pages:c(e.pages,s,a),pageParams:c(e.pageParams,n,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},r=(e?xl:wl)(n,t);a=await f(t,r,e)}else{const t=e??i.length;do{const e=0===c?s[0]??n.initialPageParam:wl(n,a);if(c>0&&null==e)break;a=await f(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function wl(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function xl(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Ol=class extends fc{#y;#b;#g;#w;#a;#u;#x;#O;constructor(e){super(),this.#O=!1,this.#x=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#w=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=Sl(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#y}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#x,...e},e?._type&&(this.#y=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=Sl(this.options);void 0!==e.data&&(this.setState(kl(e.data,e.dataUpdatedAt)),this.#b=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#w.remove(this)}setData(e,t){const r=ic(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#f({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#b}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,r=this,"function"==typeof t?t(r):t);var t,r})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Qa(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#w.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#O||this.#j()?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#w.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#j(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#O=!0,r.signal)})},o=()=>{const e=lc(this.options,t),r=(()=>{const e={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#O=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return n(e),e})(),s="infinite"===this.#y?gl(this.options.pages):this.options.behavior;s?.onFetch(i,this),this.#g=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#f({type:"fetch",meta:i.fetchOptions?.meta}),this.#u=bc({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof yc&&e.revert&&this.setState({...this.#g,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#u.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#w.config.onSuccess?.(e,this),this.#w.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof yc){if(e.silent)return this.#u.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:"error",error:e}),this.#w.config.onError?.(e,this),this.#w.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...jl(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...kl(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#g=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ba.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#w.notify({query:this,type:"updated",action:e})})}};function jl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vc(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function kl(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sl(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pl=class extends dc{constructor(e={}){super(),this.config=e,this.#k=new Map}#k;build(e,t,r){const n=t.queryKey,o=t.queryHash??Xa(n,t);let i=this.get(o);return i||(i=new Ol({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#k.has(e.queryHash)||(this.#k.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#k.get(e.queryHash);t&&(e.destroy(),t===e&&this.#k.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ba.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#k.get(e)}getAll(){return[...this.#k.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Va(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Va(e,t)):t}notify(e){Ba.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ba.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ba.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},El=class extends dc{constructor(e={}){super(),this.config=e,this.#S=new Set,this.#P=new Map,this.#E=0}#S;#P;#E;build(e,t,r){const n=new gc({client:e,mutationCache:this,mutationId:++this.#E,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#S.add(e);const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t);r?r.push(e):this.#P.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#S.delete(e)){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#P.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Ba.batch(()=>{this.#S.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#S.clear(),this.#P.clear()})}getAll(){return Array.from(this.#S)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ya(t,e))}findAll(e={}){return this.getAll().filter(t=>Ya(e,t))}notify(e){Ba.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Ba.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ka))))}};function Cl(e){return e.options.scope?.id}var Nl=o(338),_l=Nl.createRoot(document.getElementById("vt-quickact-container")),Rl="vt-quickact-toaster-root",Al=new class{#C;#l;#x;#N;#_;#R;#A;#T;constructor(e={}){this.#C=e.queryCache||new Pl,this.#l=e.mutationCache||new El,this.#x=e.defaultOptions||{},this.#N=new Map,this.#_=new Map,this.#R=0}mount(){this.#R++,1===this.#R&&(this.#A=pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#T=hc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#R--,0===this.#R&&(this.#A?.(),this.#A=void 0,this.#T?.(),this.#T=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#l.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#C.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Qa(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#C.get(n.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return this.#C.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Ba.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){const t=this.#C;Ba.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#C;return Ba.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ba.batch(()=>this.#C.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Ka).catch(Ka)}invalidateQueries(e,t={}){return Ba.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ba.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Ka)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Ka)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t);return r.isStaleByTime(Qa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return hc.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#l}getDefaultOptions(){return this.#x}setDefaultOptions(e){this.#x=e}setQueryDefaults(e,t){this.#N.set(Za(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#N.values()],r={};return t.forEach(t=>{Ja(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#_.set(Za(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#_.values()],r={};return t.forEach(t=>{Ja(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#x.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Xa(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#x.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#l.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});_l.render((0,Ye.jsx)(qt,{onError:function(e,t){},children:(0,Ye.jsx)(Oc,{client:Al,children:(0,Ye.jsx)(bl,{})})}));var Tl=document.getElementById(Rl);Tl||((Tl=document.createElement("div")).id=Rl,document.body.appendChild(Tl)),Nl.createRoot(Tl).render((0,Ye.jsx)(ka,{position:"bottom-right",containerClassName:"vt-quickact-toaster",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}}))})();
     1(()=>{"use strict";var e={};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const i=Object.create(null);r.r(i);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,r.d(i,s),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n=r.cw((e,t)=>{var r=a();t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot}),o=r.cw((e,t)=>{var r=s(),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var o,s={},l=null,u=null;for(o in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!c.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:n,type:e,key:l,ref:u,props:s,_owner:a.current}}t.Fragment=o,t.jsx=l,t.jsxs=l}),i=r.cw(e=>{e.exports=o()}),s=r.cw(e=>{e.exports=React}),a=r.cw(e=>{e.exports=ReactDOM});function c(){return c.c||(c.c=r.t(s(),2))}s();const l=wp.i18n,u=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const f=(0,s().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...c},l)=>(0,s().createElement)("svg",{ref:l,...d,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:u("lucide",o),...c},[...a.map(([e,t])=>(0,s().createElement)(e,t)),...Array.isArray(i)?i:[i]])),p=(e,t)=>{const r=(0,s().forwardRef)(({className:r,...n},o)=>{return(0,s().createElement)(f,{ref:o,iconNode:t,className:u(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i});return r.displayName=`${e}`,r},h=p("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),m=p("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),v=p("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function y(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=y(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function b(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=y(e))&&(n&&(n+=" "),n+=t);return n}const g=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),w="-",x=[],O=e=>{const t=S(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return j(e);const r=e.split(w),n=""===r[0]&&r.length>1?1:0;return k(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||x}return r[e]||x}}},k=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=k(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const s=0===t?e.join(w):e.slice(t).join(w),a=i.length;for(let e=0;e<a;e++){const t=i[e];if(t.validator(s))return t.classGroupId}},j=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),S=e=>{const{theme:t,classGroups:r}=e;return P(r,t)},P=(e,t)=>{const r=g();for(const n in e){const o=e[n];E(o,r,n,t)}return r},E=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];C(o,t,r,n)}},C=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?A(e,t,r,n):_(e,t,r,n):N(e,t,r)},N=(e,t,r)=>{(""===e?t:D(t,e)).classGroupId=r},_=(e,t,r,n)=>{R(e)?E(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},A=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,s]=o[e];E(s,D(t,i),r,n)}},D=(e,t)=>{let r=e;const n=t.split(w),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=g(),r.nextPart.set(t,o)),r=o}return r},R=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,T=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},M=[],F=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),L=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const s=e.length;for(let a=0;a<s;a++){const s=e[a];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){r=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let c=a,l=!1;a.endsWith("!")?(c=a.slice(0,-1),l=!0):a.startsWith("!")&&(c=a.slice(1),l=!0);return F(t,l,c,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):F(M,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},q=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},I=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},z=/\s+/,G=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=G(e[n]))&&(r&&(r+=" "),r+=t);return r},W=(e,...t)=>{let r,n,o,i;const s=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],c=e.trim().split(z);let l="";for(let e=c.length-1;e>=0;e-=1){const t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let m,v=!!h;if(v){m=n(p.substring(0,h));const e=m&&s[m]?n(p):void 0;e&&e!==m&&(m=e,v=!1)}else m=n(p);if(!m){if(!v){l=t+(l.length>0?" "+l:l);continue}if(m=n(p),!m){l=t+(l.length>0?" "+l:l);continue}v=!1}const y=0===d.length?"":1===d.length?d[0]:i(d).join(":"),b=f?y+"!":y,g=b+m;if(a.indexOf(g)>-1)continue;a.push(g);const w=o(m,v);for(let e=0;e<w.length;++e){const t=w[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:T(e.cacheSize),parseClassName:L(e),sortModifiers:q(e),postfixLookupClassGroupIds:I(e),...O(e)}))(c),n=r.cache.get,o=r.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=G(t))&&(o&&(o+=" "),o+=r);return o})(...e))},$=[],H=e=>{const t=t=>t[e]||$;return t.isThemeGetter=!0,t.themeKey=e,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,U=/^\((?:(\w[\w-]*):)?(.+)\)$/i,K=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,X=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>K.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),te=e=>!!e&&Number.isInteger(Number(e)),re=e=>e.endsWith("%")&&ee(e.slice(0,-1)),ne=e=>Q.test(e),oe=()=>!0,ie=e=>V.test(e)&&!Y.test(e),se=()=>!1,ae=e=>X.test(e),ce=e=>Z.test(e),le=e=>!fe(e)&&!we(e),ue=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),de=e=>Ce(e,De,se),fe=e=>B.test(e),pe=e=>Ce(e,Re,ie),he=e=>Ce(e,Te,ee),me=e=>Ce(e,Fe,oe),ve=e=>Ce(e,Me,se),ye=e=>Ce(e,_e,se),be=e=>Ce(e,Ae,ce),ge=e=>Ce(e,Le,ae),we=e=>U.test(e),xe=e=>Ne(e,Re),Oe=e=>Ne(e,Me),ke=e=>Ne(e,_e),je=e=>Ne(e,De),Se=e=>Ne(e,Ae),Pe=e=>Ne(e,Le,!0),Ee=e=>Ne(e,Fe,!0),Ce=(e,t,r)=>{const n=B.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ne=(e,t,r=!1)=>{const n=U.exec(e);return!!n&&(n[1]?t(n[1]):r)},_e=e=>"position"===e||"percentage"===e,Ae=e=>"image"===e||"url"===e,De=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Te=e=>"number"===e,Me=e=>"family-name"===e,Fe=e=>"number"===e||"weight"===e,Le=e=>"shadow"===e,qe=(Symbol.toStringTag,()=>{const e=H("color"),t=H("font"),r=H("text"),n=H("font-weight"),o=H("tracking"),i=H("leading"),s=H("breakpoint"),a=H("container"),c=H("spacing"),l=H("radius"),u=H("shadow"),d=H("inset-shadow"),f=H("text-shadow"),p=H("drop-shadow"),h=H("blur"),m=H("perspective"),v=H("aspect"),y=H("ease"),b=H("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",we,fe],w=()=>[we,fe,c],x=()=>[J,"full","auto",...w()],O=()=>[te,"none","subgrid",we,fe],k=()=>["auto",{span:["full",te,we,fe]},te,we,fe],j=()=>[te,"auto",we,fe],S=()=>["auto","min","max","fr",we,fe],P=()=>["auto",...w()],E=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],C=()=>[a,J,"screen","full","dvw","lvw","svw","min","max","fit",...w()],N=()=>[J,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],_=()=>[e,we,fe],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ke,ye,{position:[we,fe]}],D=()=>["auto","cover","contain",je,de,{size:[we,fe]}],R=()=>[re,xe,pe],T=()=>["","none","full",l,we,fe],M=()=>["",ee,xe,pe],F=()=>[ee,re,ke,ye],L=()=>["","none",h,we,fe],q=()=>["none",ee,we,fe],I=()=>["none",ee,we,fe],z=()=>[ee,we,fe],G=()=>[J,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[oe],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",ee],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,fe,we,v]}],container:["container"],"container-type":[{"@container":["","normal","size",we,fe]}],"container-named":[ue],columns:[{columns:[ee,"auto",fe,we,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",we,fe]}],basis:[{basis:[J,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,J,"auto","initial","none",fe]}],grow:[{grow:["",ee,we,fe]}],shrink:[{shrink:["",ee,we,fe]}],order:[{order:[te,"first","last","none",we,fe]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh","none",...E()]}],"font-size":[{text:["base",r,xe,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ee,me]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",re,fe]}],"font-family":[{font:[Oe,ve,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,we,fe]}],"line-clamp":[{"line-clamp":[ee,"none",we,he]}],leading:[{leading:["none",i,...w()]}],"list-image":[{"list-image":["none",we,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",we,pe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ee,"auto",we,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[te,we,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,we,fe],radial:["",we,fe],conic:["",te,we,fe]},Se,be]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ee,we,fe]}],"outline-w":[{outline:["",ee,xe,pe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","inner","none",u,Pe,ge]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Pe,ge]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ee,pe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,Pe,ge]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ee,we,fe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[we,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,fe]}],filter:[{filter:["","none",we,fe]}],blur:[{blur:L()}],brightness:[{brightness:[ee,we,fe]}],contrast:[{contrast:[ee,we,fe]}],"drop-shadow":[{"drop-shadow":["","none",p,Pe,ge]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ee,we,fe]}],"hue-rotate":[{"hue-rotate":[ee,we,fe]}],invert:[{invert:["",ee,we,fe]}],saturate:[{saturate:[ee,we,fe]}],sepia:[{sepia:["",ee,we,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,fe]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[ee,we,fe]}],"backdrop-contrast":[{"backdrop-contrast":[ee,we,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,we,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,we,fe]}],"backdrop-invert":[{"backdrop-invert":["",ee,we,fe]}],"backdrop-opacity":[{"backdrop-opacity":[ee,we,fe]}],"backdrop-saturate":[{"backdrop-saturate":[ee,we,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,we,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",we,fe]}],ease:[{ease:["linear","initial",y,we,fe]}],delay:[{delay:[ee,we,fe]}],animate:[{animate:["none",b,we,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,we,fe]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[we,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],zoom:[{zoom:[te,we,fe]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,fe]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ee,xe,pe,he]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Ie=(e,t,r)=>{void 0!==r&&(e[t]=r)},ze=(e,t)=>{if(t)for(const r in t)Ie(e,r,t[r])},Ge=(e,t)=>{if(t)for(const r in t)We(e,t,r)},We=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach(function(t){Ue(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ue(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=$e(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ke=((e,...t)=>"function"==typeof e?W(qe,e,...t):W(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Ie(e,"cacheSize",t),Ie(e,"prefix",r),Ie(e,"experimentalParseClassName",n),ze(e.theme,i.theme),ze(e.classGroups,i.classGroups),ze(e.conflictingClassGroups,i.conflictingClassGroups),ze(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ie(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),Ie(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ge(e.theme,o.theme),Ge(e.classGroups,o.classGroups),Ge(e.conflictingClassGroups,o.conflictingClassGroups),Ge(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),We(e,o,"postfixLookupClassGroups"),We(e,o,"orderSensitiveModifiers"),e))(qe(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?Be(Be({},r),{},{baseClassName:n.slice(3)}):r}});function Qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ke(b(t))}var Ve=Object.defineProperty,Ye=(e,t)=>Ve(e,"name",{value:t,configurable:!0});function Xe(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ze(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Xe(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Xe(e[t],null)}}}}function Je(...e){return s().useCallback(Ze(...e),e)}Ye(Xe,"setRef"),Ye(Ze,"composeRefs"),Ye(Je,"useComposedRefs");var et=Object.defineProperty,tt=(e,t)=>et(e,"name",{value:t,configurable:!0});function rt(e){const t=s().forwardRef((t,r)=>{let{children:n,...o}=t,i=null,a=!1;const c=[];n=pt(n),s().Children.forEach(n,e=>{if(lt(e)){a=!0;const t=e;let r="child"in t.props?t.props.child:t.props.children;for(;dt(r)&&"function"==typeof yt;)r=yt(r._payload);i=st(t,r),c.push(i?.props?.children)}else c.push(e)}),i?i=s().cloneElement(i,void 0,c):!a&&1===s().Children.count(n)&&s().isValidElement(n)&&(i=n);const l=i?ct(i):void 0,u=Je(r,l);if(!i){if(n||0===n)throw new Error(a?vt(e):mt(e));return n}const d=at(o,i.props??{});return i.type!==s().Fragment&&(d.ref=r?u:l),s().cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}tt(rt,"createSlot");var nt=rt("Slot"),ot=Symbol.for("radix.slottable");function it(e){const t=tt(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ot,t}tt(it,"createSlottable");var st=tt((e,t)=>"child"in e.props?s().isValidElement(t)?s().cloneElement(t,void 0,e.props.children(t.props.children)):null:s().isValidElement(t)?t:null,"getSlottableElementFromSlottable");function at(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n?r[n]=[o,i].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=ht(i,o))}return{...e,...r}}function ct(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lt(e){return s().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ot}tt(at,"mergeProps"),tt(ct,"getElementRef"),tt(lt,"isSlottable");var ut=Symbol.for("react.lazy");function dt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ut&&"_payload"in e&&ft(e._payload)}function ft(e){return"object"==typeof e&&null!==e&&"then"in e}function pt(e){let t=e;for(;dt(t)&&"function"==typeof yt;)t=yt(t._payload);return t}function ht(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}tt(dt,"isLazyComponent"),tt(ft,"isPromiseLike"),tt(pt,"useUnwrappedLazy"),tt(ht,"concatAriaDescribedby");var mt=tt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),vt=tt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),yt=c()[" use ".trim().toString()];const bt=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,gt=b;function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}i();var xt=["className","variant","size","asChild"];function Ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jt=((e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return gt(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const s=bt(t)||bt(n);return o[e][s]}),a=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...a}[t]):{...i,...a}[t]===r})?[...e,r,n]:e},[]);return gt(e,s,c,null==r?void 0:r.class,null==r?void 0:r.className)})("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),St=s().forwardRef(function(e,t){var r=e.className,n=e.variant,i=e.size,s=e.asChild,a=void 0!==s&&s,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,xt),l=a?nt:"button";return(0,o().jsx)(l,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach(function(t){kt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:Qe(jt({variant:n,size:i,className:r})),ref:t},c))});function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}St.displayName="Button";var Et=["className"],Ct=["className"],Nt=["className"],_t=["className"],At=["className"],Dt=["className"];function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach(function(t){Mt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Lt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Et);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Lt.displayName="Card";var qt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Ct);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});qt.displayName="CardHeader";var It=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Nt);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});It.displayName="CardTitle",s().forwardRef(function(e,t){var r=e.className,n=Ft(e,_t);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var zt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,At);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-p-4",r)},n))});function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Wt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qt(n.key),n)}}function $t(e,t,r){return t=Bt(t),function(e,t){if(t&&("object"==Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ht()?Reflect.construct(t,r||[],Bt(e).constructor):t.apply(e,r))}function Ht(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ht=function(){return!!e})()}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Ut(e,t){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ut(e,t)}function Kt(e,t,r){return(t=Qt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qt(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gt(t)?t:t+""}zt.displayName="CardContent",s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Dt);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Vt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Kt(r=$t(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Kt(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(t,e),function(e,t,r){return t&&Wt(e.prototype,t),r&&Wt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,o().jsxs)(Lt,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,o().jsxs)(qt,{className:"vt-text-center",children:[(0,o().jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,o().jsx)(h,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,o().jsx)(It,{className:"vt-text-red-700",children:(0,l.__)("Something went wrong","versatile-toolkit")})]}),(0,o().jsxs)(zt,{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,l.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,o().jsxs)(St,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(m,{className:"vt-h-4 vt-w-4"}),(0,l.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,o().jsxs)(St,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(v,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,l.__)("Hide Details","versatile-toolkit"):(0,l.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,o().jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,l.__)("Error Details:","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Message:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Stack Trace:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Component Stack:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(s().Component);const Yt=Vt;var Xt={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const Zt=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,i=e.size,s=void 0===i?"sm":i,a=e.className;if(!t)return(0,o().jsx)(o().Fragment,{children:n});var c=(0,l.__)("Loading","versatile-toolkit"),u=r||"".concat(c,"...");return(0,o().jsxs)("div",{className:Qe("vt-flex vt-items-center vt-gap-2",a),children:[(0,o().jsx)("div",{className:Qe(Xt[s],"vt-animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,o().jsx)("span",{children:u})]})};function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}var er=["className","type"];function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Jt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nr=s().forwardRef(function(e,t){var r=e.className,n=e.type,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,er);return(0,o().jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach(function(t){rr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:Qe("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},i))});nr.displayName="Input";var or=Object.defineProperty,ir=(e,t)=>or(e,"name",{value:t,configurable:!0}),sr=!("undefined"==typeof window||!window.document||!window.document.createElement);function ar(e,t,{checkForDefaultPrevented:r=!0}={}){return ir(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function cr(e){if(!sr)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function lr(e){return"IFRAME"===e.tagName}ir(ar,"composeEventHandlers"),ir(function(e){if(!sr)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),ir(cr,"getOwnerDocument"),ir(function e(t,r=!1){const{activeElement:n}=cr(t);if(!n?.nodeName)return null;if(lr(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){const e=n.getAttribute("aria-activedescendant");if(e){const t=cr(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),ir(lr,"isFrame");var ur=Object.defineProperty,dr=(e,t)=>ur(e,"name",{value:t,configurable:!0});function fr(e,t=[]){let r=[];function n(t,n){const i=s().createContext(n);i.displayName=t+"Context";const a=r.length;r=[...r,n];const c=dr(t=>{const{scope:r,children:n,...c}=t,l=r?.[e]?.[a]||i,u=s().useMemo(()=>c,Object.values(c));return(0,o().jsx)(l.Provider,{value:u,children:n})},"Provider");function l(r,o,c={}){const{optional:l=!1}=c,u=o?.[e]?.[a]||i,d=s().useContext(u);if(d)return d;if(void 0!==n)return n;if(!l)throw new Error(`\`${r}\` must be used within \`${t}\``)}return c.displayName=t+"Provider",dr(l,"useContext"),[c,l]}dr(n,"createContext");const i=dr(()=>{const t=r.map(e=>s().createContext(e));return dr(function(r){const n=r?.[e]||t;return s().useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return i.scopeName=e,[n,pr(i,...t)]}function pr(...e){const t=e[0];if(1===e.length)return t;const r=dr(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return dr(function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return s().useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}dr(function(e,t){const r=s().createContext(t);r.displayName=e+"Context";const n=dr(e=>{const{children:t,...n}=e,i=s().useMemo(()=>n,Object.values(n));return(0,o().jsx)(r.Provider,{value:i,children:t})},"Provider");function i(n,o={}){const{optional:i=!1}=o,a=s().useContext(r);if(a)return a;if(void 0!==t)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",dr(i,"useContext"),[n,i]},"createContext"),dr(fr,"createContextScope"),dr(pr,"composeContextScopes"),a();var hr=Object.defineProperty,mr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=rt(`Primitive.${t}`),n=s().forwardRef((e,n)=>{const{asChild:i,...s}=e,a=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o().jsx)(a,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vr(e,t){e&&a().flushSync(()=>e.dispatchEvent(t))}hr(vr,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var yr=globalThis?.document?s().useLayoutEffect:()=>{},br=Object.defineProperty,gr=c()[" useInsertionEffect ".trim().toString()];function wr(e){const t=s().useRef(e);return"function"==typeof gr?gr(()=>{t.current=e}):yr(()=>{t.current=e}),s().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{br(e,"name",{value:t,configurable:!0})})(wr,"useCallbackRef");var xr,Or=Object.defineProperty,kr=(e,t)=>Or(e,"name",{value:t,configurable:!0}),jr="dismissableLayer.update",Sr=s().createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Pr=s().forwardRef(kr(function(e,t){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...d}=e,f=s().useContext(Sr),[p,h]=s().useState(null),m=p?.ownerDocument??globalThis?.document,[,v]=s().useState({}),y=Je(t,h),b=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g?b.indexOf(g):-1,x=p?b.indexOf(p):-1,O=f.layersWithOutsidePointerEventsDisabled.size>0,k=x>=w,j=s().useRef(!1),S=Cr(e=>{a?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:m,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:j,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:s().useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...f.branches].some(t=>t.contains(e));return k&&!t},[f.branches,k])}),P=Nr(e=>{if(n&&j.current)return;const t=e.target;[...f.branches].some(e=>e.contains(t))||(c?.(e),l?.(e),e.defaultPrevented||u?.())},m),E=!!p&&x===b.length-1,C=wr(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return s().useEffect(()=>{if(E)return m.addEventListener("keydown",C,{capture:!0}),()=>m.removeEventListener("keydown",C,{capture:!0})},[m,E,C]),s().useEffect(()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(xr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),_r(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=xr))}},[p,m,r,f]),s().useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),_r())},[p,f]),s().useEffect(()=>{const e=kr(()=>v({}),"handleUpdate");return document.addEventListener(jr,e),()=>document.removeEventListener(jr,e)},[]),(0,o().jsx)(mr.div,{...d,ref:y,style:{pointerEvents:O?k?"auto":"none":void 0,...e.style},onFocusCapture:ar(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ar(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ar(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));kr(function(){const e=s().useContext(Sr),[t,r]=s().useState(null);return s().useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r},"useDismissableLayerSurface");var Er=kr(()=>!0,"IS_TRUE");function Cr(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=Er}=t,c=wr(e),l=s().useRef(!1),u=s().useRef(!1),d=s().useRef(new Map),f=s().useRef(()=>{});return s().useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function s(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}kr(e,"resetOutsideInteraction"),kr(t,"isOutsideInteractionIntercepted"),kr(s,"handleInteractionCapture"),kr(p,"handleInteractionBubble");const h=kr(i=>{if(i.target&&!l.current){let s=function(){r.removeEventListener("click",f.current);const n=t();e(),n||Ar("dismissableLayer.pointerDownOutside",c,p,{discrete:!0})};if(kr(s,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target))return r.removeEventListener("click",f.current),e(),void(l.current=!1);const p={originalEvent:i};u.current=!0,o.current=n&&0===i.button,d.current.clear(),n&&0===i.button?(r.removeEventListener("click",f.current),f.current=s,r.addEventListener("click",f.current,{once:!0})):s()}else r.removeEventListener("click",f.current),e();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of m)r.addEventListener(e,s,!0),r.addEventListener(e,p);const v=window.setTimeout(()=>{r.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),r.removeEventListener("pointerdown",h),r.removeEventListener("click",f.current);for(const e of m)r.removeEventListener(e,s,!0),r.removeEventListener(e,p)}},[r,c,n,o,i,a]),{onPointerDownCapture:kr(()=>l.current=!0,"onPointerDownCapture")}}function Nr(e,t=globalThis?.document){const r=wr(e),n=s().useRef(!1);return s().useEffect(()=>{const e=kr(e=>{if(e.target&&!n.current){Ar("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:kr(()=>n.current=!0,"onFocusCapture"),onBlurCapture:kr(()=>n.current=!1,"onBlurCapture")}}function _r(){const e=new CustomEvent(jr);document.dispatchEvent(e)}function Ar(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?vr(o,i):o.dispatchEvent(i)}kr(Cr,"usePointerDownOutside"),kr(Nr,"useFocusOutside"),kr(_r,"dispatchUpdate"),kr(Ar,"handleAndDispatchCustomEvent");var Dr=Object.defineProperty,Rr=(e,t)=>Dr(e,"name",{value:t,configurable:!0}),Tr=0,Mr=null;function Fr(){s().useEffect(()=>{Mr||(Mr={start:Lr(),end:Lr()});const{start:e,end:t}=Mr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Tr++,()=>{1===Tr&&(Mr?.start.remove(),Mr?.end.remove(),Mr=null),Tr=Math.max(0,Tr-1)}},[])}function Lr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Rr(function(e){return Fr(),e.children},"FocusGuards"),Rr(Fr,"useFocusGuards"),Rr(Lr,"createFocusGuard");var qr=Object.defineProperty,Ir=(e,t)=>qr(e,"name",{value:t,configurable:!0}),zr="focusScope.autoFocusOnMount",Gr="focusScope.autoFocusOnUnmount",Wr={bubbles:!1,cancelable:!0},$r=s().forwardRef(Ir(function(e,t){const{loop:r=!1,trapped:n=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:c,...l}=e,[u,d]=s().useState(null),f=wr(a),p=wr(c),h=s().useRef(null),m=Je(t,d),v=s().useRef(i);s().useEffect(()=>{v.current=i});const y=s().useCallback(e=>!!e&&(!!u?.contains(e)||Boolean(v.current?.some(t=>t.contains(e)))),[u]),b=s().useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s().useEffect(()=>{if(n){let e=function(e){if(b.paused||!u)return;const t=e.target;y(t)?h.current=t:en(h.current,{select:!0})},t=function(e){if(b.paused||!u)return;const t=e.relatedTarget;null!==t&&(y(t)||en(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&en(u)};Ir(e,"handleFocusIn"),Ir(t,"handleFocusOut"),Ir(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,u,b.paused,y]),s().useEffect(()=>{if(u){tn.add(b);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(zr,Wr);u.addEventListener(zr,f),u.dispatchEvent(t),t.defaultPrevented||(Qr(on(Yr(u)),{select:!0}),document.activeElement===e&&en(u))}return()=>{u.removeEventListener(zr,f);const t=u.ownerDocument,r=CustomEvent;setTimeout(()=>{const n=new r(Gr,Wr);u.addEventListener(Gr,p),u.dispatchEvent(n),n.defaultPrevented||en(e??t.body,{select:!0}),u.removeEventListener(Gr,p),tn.remove(b)},0)}}},[u,f,p,b]);const g=s().useCallback(e=>{if(!r&&!n)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=Vr(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&en(i,{select:!0})):(e.preventDefault(),r&&en(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,b.paused]);return(0,o().jsx)(mr.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})},"FocusScope")),Hr=s().createContext(null);function Br({registry:e,children:t}){return e?(0,o().jsx)(Hr.Provider,{value:e,children:t}):t}function Ur(){const[e,t]=s().useState([]);return{nodes:e,registry:s().useMemo(()=>({add:Ir(e=>t(t=>t.includes(e)?t:[...t,e]),"add"),remove:Ir(e=>t(t=>t.filter(t=>t!==e)),"remove")}),[])}}function Kr(e){const t=s().useContext(Hr);s().useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}function Qr(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(en(n,{select:t}),document.activeElement!==r)return}function Vr(e){const t=Yr(e);return[Xr(t,e),Xr(t.reverse(),e)]}function Yr(e){const t=[],r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ir(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function Xr(e,t){const r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e){if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):Zr(n,{upTo:t})))return n}}function Zr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Jr(e){return"INPUT"===e.tagName&&"function"==typeof e.select}function en(e,{select:t=!1}={}){if(e&&e.focus){const r=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==r&&Jr(e)&&t&&e.select()}}Ir(Br,"FocusScopeBranchProvider"),Ir(Ur,"useFocusScopeBranchRegistry"),Ir(Kr,"useFocusScopeBranch"),Ir(Qr,"focusFirst"),Ir(Vr,"getTabbableEdges"),Ir(Yr,"getTabbableCandidates"),Ir(Xr,"findVisible"),Ir(Zr,"isHidden"),Ir(Jr,"isSelectableInput"),Ir(en,"focus");var tn=rn();function rn(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=nn(e,t),e.unshift(t)},remove(t){e=nn(e,t),e[0]?.resume()}}}function nn(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function on(e){return e.filter(e=>"A"!==e.tagName)}Ir(rn,"createFocusScopesStack"),Ir(nn,"arrayRemove"),Ir(on,"removeLinks");var sn=Object.defineProperty,an=c()[" useId ".trim().toString()]||(()=>{}),cn=0;function ln(e){const[t,r]=s().useState(an());return yr(()=>{e||r(e=>e??String(cn++))},[e]),e||(t?`radix-${t}`:"")}((e,t)=>{sn(e,"name",{value:t,configurable:!0})})(ln,"useId");const un=["top","right","bottom","left"],dn=Math.min,fn=Math.max,pn=Math.round,hn=Math.floor,mn=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(e,t,r){return fn(e,dn(t,r))}function bn(e,t){return"function"==typeof e?e(t):e}function gn(e){return e.split("-")[0]}function wn(e){return e.split("-")[1]}function xn(e){return"x"===e?"y":"x"}function On(e){return"y"===e?"height":"width"}function kn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function jn(e){return xn(kn(e))}function Sn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pn=["left","right"],En=["right","left"],Cn=["top","bottom"],Nn=["bottom","top"];function _n(e,t,r,n){const o=wn(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?En:Pn:t?Pn:En;case"left":case"right":return t?Cn:Nn;default:return[]}}(gn(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Sn)))),i}function An(e){const t=gn(e);return vn[t]+e.slice(t.length)}function Dn(e){return"number"!=typeof e?function(e){var t,r,n,o;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Tn(e,t,r){let{reference:n,floating:o}=e;const i=kn(t),s=jn(t),a=On(s),c=gn(t),l="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}const h=wn(t);return h&&(p[s]+=f*("end"===h?1:-1)*(r&&l?-1:1)),p}async function Mn(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bn(t,e),h=Dn(p),m=a[f?"floating"===d?"reference":"floating":d],v=Rn(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),g=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-w.top+h.top)/g.y,bottom:(w.bottom-v.bottom+h.bottom)/g.y,left:(v.left-w.left+h.left)/g.x,right:(w.right-v.right+h.right)/g.x}}function Fn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ln(e){return un.some(t=>e[t]>=0)}const qn=new Set(["left","top"]);function In(){return"undefined"!=typeof window}function zn(e){return $n(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wn(e){var t;return null==(t=($n(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $n(e){return!!In()&&(e instanceof Node||e instanceof Gn(e).Node)}function Hn(e){return!!In()&&(e instanceof Element||e instanceof Gn(e).Element)}function Bn(e){return!!In()&&(e instanceof HTMLElement||e instanceof Gn(e).HTMLElement)}function Un(e){return!(!In()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot)}function Kn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Qn(e){return/^(table|td|th)$/.test(zn(e))}function Vn(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Yn=/transform|translate|scale|rotate|perspective|filter/,Xn=/paint|layout|strict|content/,Zn=e=>!!e&&"none"!==e;let Jn;function eo(e){const t=Hn(e)?no(e):e;return Zn(t.transform)||Zn(t.translate)||Zn(t.scale)||Zn(t.rotate)||Zn(t.perspective)||!to()&&(Zn(t.backdropFilter)||Zn(t.filter))||Yn.test(t.willChange||"")||Xn.test(t.contain||"")}function to(){return null==Jn&&(Jn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jn}function ro(e){return/^(html|body|#document)$/.test(zn(e))}function no(e){return Gn(e).getComputedStyle(e)}function oo(e){return Hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function io(e){if("html"===zn(e))return e;const t=e.assignedSlot||e.parentNode||Un(e)&&e.host||Wn(e);return Un(t)?t.host:t}function so(e){const t=io(e);return ro(t)?(e.ownerDocument||e).body:Bn(t)&&Kn(t)?t:so(t)}function ao(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=so(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=Gn(o);if(i){const e=co(s);return t.concat(s,s.visualViewport||[],Kn(o)?o:[],e&&r?ao(e):[])}return t.concat(o,ao(o,[],r))}function co(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lo(e){const t=no(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=pn(r)!==i||pn(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function uo(e){return Hn(e)?e:e.contextElement}function fo(e){const t=uo(e);if(!Bn(t))return mn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=lo(t);let s=(i?pn(r.width):r.width)/n,a=(i?pn(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const po=mn(0);function ho(e){const t=Gn(e);return to()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:po}function mo(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=uo(e);let s=mn(1);t&&(n?Hn(n)&&(s=fo(n)):s=fo(e));const a=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Gn(e)}(i,r,n)?ho(i):mn(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i&&n){const e=Gn(i),t=Hn(n)?Gn(n):n;let r=e,o=co(r);for(;o&&t!==r;){const e=fo(o),t=o.getBoundingClientRect(),n=no(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,r=Gn(o),o=co(r)}}return Rn({width:u,height:d,x:c,y:l})}function vo(e,t){const r=oo(e).scrollLeft;return t?t.left+r:mo(Wn(e)).left+r}function yo(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-vo(e,r),y:r.top+t.scrollTop}}function bo(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,o=Gn(e),i=Wn(e),s=o.visualViewport;let a=i.clientWidth,c=i.clientHeight,l=0,u=0;if(s){const e=!to()||"fixed"===t;n?e||(l=-s.offsetLeft,u=-s.offsetTop):(a=s.width,c=s.height,e&&(l=s.offsetLeft,u=s.offsetTop))}if(vo(i)<=0){const e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(a-=s)}return{width:a,height:c,x:l,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=oo(e),r=e.ownerDocument.body,n=fn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=fn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+vo(e);const s=-t.scrollTop;return"rtl"===no(r).direction&&(i+=fn(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:s}}(Wn(e));else if(Hn(t))n=function(e,t){const r=mo(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=fo(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=ho(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Rn(n)}function go(e,t,r){const n=Bn(t),o=Wn(t),i="fixed"===r,s=mo(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=mn(0);if((n||!i)&&(("body"!==zn(t)||Kn(o))&&(a=oo(t)),n)){const e=mo(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!n&&o&&(c.x=vo(o));const l=!o||n||i?mn(0):yo(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function wo(e){return"static"===no(e).position}function xo(e,t){if(!Bn(e)||"fixed"===no(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Wn(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){const r=Gn(e);if(Vn(e))return r;if(!Bn(e)){let t=io(e);for(;t&&!ro(t);){if(Hn(t)&&!wo(t))return t;t=io(t)}return r}let n=xo(e,t);for(;n&&Qn(n)&&wo(n);)n=xo(n,t);return n&&ro(n)&&wo(n)&&!eo(n)?r:n||function(e){let t=io(e);for(;Bn(t)&&!ro(t);){if(eo(t))return t;if(Vn(t))return null;t=io(t)}return null}(e)||r}const ko={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,s=Wn(n),a=!!t&&Vn(t.floating);if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=mn(1);const u=mn(0),d=Bn(n);if((d||!i)&&(("body"!==zn(n)||Kn(s))&&(c=oo(n)),d)){const e=mo(n);l=fo(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!s||d||i?mn(0):yo(s,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:r.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:Wn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Vn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=ao(e,[],!1).filter(e=>Hn(e)&&"body"!==zn(e)),o=null;const i="fixed"===no(e).position;let s=i?io(e):e;for(;Hn(s)&&!ro(s);){const e=no(s),t=eo(s),r=o?o.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?o=e:n=n.filter(e=>e!==s),s=io(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=bo(t,i[0],o);let a=s.top,c=s.right,l=s.bottom,u=s.left;for(let e=1;e<i.length;e++){const r=bo(t,i[e],o);a=fn(r.top,a),c=dn(r.right,c),l=dn(r.bottom,l),u=fn(r.left,u)}return{width:c-u,height:l-a,x:u,y:a}},getOffsetParent:Oo,getElementRects:async function(e){const t=this.getOffsetParent||Oo,r=this.getDimensions,n=await r(e.floating);return{reference:go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=lo(e);return{width:t,height:r}},getScale:fo,isElement:Hn,isRTL:function(e){return"rtl"===no(e).direction}};function jo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=uo(e),u=o||i?[...l?ao(l):[],...t?ao(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r),i&&e.addEventListener("resize",r)});const d=l&&a?function(e,t,r){let n,o=null;const i=Wn(e);function s(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function a(r,c){void 0===r&&(r=!1),void 0===c&&(c=1),s();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(r||t(),!f||!p)return;const h={rootMargin:-hn(d)+"px "+-hn(i.clientWidth-(u+f))+"px "+-hn(i.clientHeight-(d+p))+"px "+-hn(u)+"px",threshold:fn(0,dn(1,c))||1};let m=!0;function v(t){const r=t[0].intersectionRatio;if(!jo(l,e.getBoundingClientRect()))return a();if(r!==c){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}const c=Gn(e),l=()=>a(r);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),s()}}(l,r,i):null;let f,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),l&&!c&&h.observe(l),t&&h.observe(t));let m=c?mo(e):null;return c&&function t(){const n=mo(e);m&&!jo(m,n)&&r();m=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const Po=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),s=gn(r),a=wn(r),c="y"===kn(r),l=qn.has(s)?-1:1,u=i&&c?-1:1,d=bn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Eo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=bn(e,t),u={x:r,y:n},d=await i.detectOverflow(t,l),f=kn(o),p=xn(f);let h=u[p],m=u[f];const v=(e,t)=>yn(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);s&&(h=v(p,h)),a&&(m=v(f,m));const y=c.fn({...t,[p]:h,[f]:m});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:s,[f]:a}}}}}},Co=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=bn(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=gn(o),b=kn(a),g=gn(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=f||(g||!m?[An(a)]:function(e){const t=An(e);return[Sn(e),t,Sn(t)]}(a)),O="none"!==h;!f&&O&&x.push(..._n(a,m,h,w));const k=[a,...x],j=await c.detectOverflow(t,v),S=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(j[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=wn(e),o=jn(e),i=On(o);let s="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=An(s)),[s,An(s)]}(o,s,w);S.push(j[e[0]],j[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var E,C;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===d&&b!==kn(t))||P.every(e=>kn(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=kn(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}},No=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=bn(e,t),c=await o.detectOverflow(t,a),l=gn(r),u=wn(r),d="y"===kn(r),{width:f,height:p}=n.floating;let h,m;"top"===l||"bottom"===l?(h=l,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=l,h="end"===u?"top":"bottom");const v=p-c.top-c.bottom,y=f-c.left-c.right,b=dn(p-c[h],v),g=dn(f-c[m],y),w=t.middlewareData.shift,x=!w;let O=b,k=g;null!=w&&w.enabled.x&&(k=y),null!=w&&w.enabled.y&&(O=v),x&&!u&&(d?k=f-2*fn(c.left,c.right):O=p-2*fn(c.top,c.bottom)),await s({...t,availableWidth:k,availableHeight:O});const j=await o.getDimensions(i.floating);return f!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}},_o=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=bn(e,t);switch(o){case"referenceHidden":{const e=Fn(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ln(e)}}}case"escaped":{const e=Fn(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ln(e)}}}default:return{}}}}},Ao=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=bn(e,t)||{};if(null==l)return{};const d=Dn(u),f={x:r,y:n},p=jn(o),h=On(p),m=await s.getDimensions(l),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",g=v?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let k=O?O[g]:0;k&&await(null==s.isElement?void 0:s.isElement(O))||(k=a.floating[g]||i.floating[h]);const j=w/2-x/2,S=k/2-m[h]/2-1,P=dn(d[y],S),E=dn(d[b],S),C=k-m[h]-E,N=k/2-m[h]/2+j,_=yn(P,N,C),A=!c.arrow&&null!=wn(o)&&N!==_&&i.reference[h]/2-(N<P?P:E)-m[h]/2<0,D=A?N<P?N-P:N-C:0;return{[p]:f[p]+D,data:{[p]:_,centerOffset:N-_-D,...A&&{alignmentOffset:D}},reset:A}}}),Do=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,n;const{x:o,y:i,placement:s,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=bn(e,t),f={x:o,y:i},p=kn(s),h=xn(p);let m=f[h],v=f[p];const y=bn(l,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(r=y.mainAxis)?r:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(u){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+b.mainAxis,r=a.reference[h]+a.reference[e]-b.mainAxis;m<t?m=t:m>r&&(m=r)}if(d){var g,w;const e="y"===h?"width":"height",t=qn.has(gn(s)),r=a.reference[p]-a.floating[e]+(t&&(null==(g=c.offset)?void 0:g[p])||0)+(t?0:b.crossAxis),n=a.reference[p]+a.reference[e]+(t?0:(null==(w=c.offset)?void 0:w[p])||0)-(t?b.crossAxis:0);v<r?v=r:v>n&&(v=n)}return{[h]:m,[p]:v}}}},Ro=(e,t,r)=>{const n=new Map,o=null!=r?r:{},i={...ko,...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Mn},c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Tn(l,n,c),f=n,p=0;const h={};for(let r=0;r<i.length;r++){const m=i[r];if(!m)continue;const{name:v,fn:y}=m,{x:b,y:g,data:w,reset:x}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=g?g:d,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(l=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Tn(l,f,c))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var To="undefined"!=typeof document?s().useLayoutEffect:function(){};function Mo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Mo(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Mo(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Fo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lo(e,t){const r=Fo(e);return Math.round(t*r)/r}function qo(e){const t=s().useRef(e);return To(()=>{t.current=e}),t}const Io=(e,t)=>{const r=Po(e);return{name:r.name,fn:r.fn,options:[e,t]}},zo=(e,t)=>{const r=Eo(e);return{name:r.name,fn:r.fn,options:[e,t]}},Go=(e,t)=>({fn:Do(e).fn,options:[e,t]}),Wo=(e,t)=>{const r=Co(e);return{name:r.name,fn:r.fn,options:[e,t]}},$o=(e,t)=>{const r=No(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ho=(e,t)=>{const r=_o(e);return{name:r.name,fn:r.fn,options:[e,t]}},Bo=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&function(e){return{}.hasOwnProperty.call(e,"current")}(r)?null!=r.current?Ao({element:r.current,padding:n}).fn(t):{}:r?Ao({element:r,padding:n}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Uo=Object.defineProperty;function Ko(e){const[t,r]=s().useState(void 0);return yr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=0;const n=new ResizeObserver(n=>{if(!Array.isArray(n))return;if(!n.length)return;const o=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if("borderBoxSize"in o){const e=o.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,n=r.blockSize}else t=e.offsetWidth,n=e.offsetHeight;r({width:t,height:n})})});return n.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}r(void 0)},[e]),t}((e,t)=>{Uo(e,"name",{value:t,configurable:!0})})(Ko,"useSize");var Qo=Object.defineProperty,Vo=(e,t)=>Qo(e,"name",{value:t,configurable:!0}),Yo={Partial:"partial",Always:"always"},Xo={Optimized:"optimized",Always:"always"},Zo="Popper",[Jo,ei]=fr(Zo),[ti,ri]=Jo(Zo),ni=Vo(e=>{const{__scopePopper:t,children:r}=e,[n,i]=s().useState(null),[a,c]=s().useState(void 0);return(0,o().jsx)(ti,{scope:t,anchor:n,onAnchorChange:i,placementState:a,setPlacementState:c,children:r})},"Popper"),oi=s().forwardRef(Vo(function(e,t){const{__scopePopper:r,virtualRef:n,...i}=e,a=ri("PopperAnchor",r),c=s().useRef(null),l=a.onAnchorChange,u=Je(t,s().useCallback(e=>{c.current=e,e&&l(e)},[l])),d=s().useRef(null);s().useEffect(()=>{if(!n)return;const e=d.current;d.current=n.current,e!==d.current&&l(d.current)});const f=a.placementState&&di(a.placementState),p=f?.[0],h=f?.[1];return n?null:(0,o().jsx)(mr.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:u})},"PopperAnchor")),ii="PopperContent",[si,ai]=Jo(ii),ci=s().forwardRef(Vo(function(e,t){const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h=Yo.Partial,hideWhenDetached:m=!1,updatePositionStrategy:v=Xo.Optimized,onPlaced:y,...b}=e,g=ri(ii,r),[w,x]=s().useState(null),O=Je(t,x),[k,j]=s().useState(null),S=Ko(k),P=S?.width??0,E=S?.height??0,C=n+("center"!==c?"-"+c:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},_=Array.isArray(f)?f:[f],A=_.length>0,D={padding:N,boundary:_.filter(li),altBoundary:A},{refs:R,floatingStyles:T,placement:M,isPositioned:F,middlewareData:L}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=s().useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=s().useState(n);Mo(h,n)||m(n);const[v,y]=s().useState(null),[b,g]=s().useState(null),w=s().useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=s().useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),O=i||v,k=c||b,j=s().useRef(null),S=s().useRef(null),P=s().useRef(f),E=null!=u,C=qo(u),N=qo(o),_=qo(d),A=s().useCallback(()=>{if(!j.current||!S.current)return;const e={placement:t,strategy:r,middleware:h};N.current&&(e.platform=N.current),Ro(j.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==_.current};D.current&&!Mo(P.current,t)&&(P.current=t,a().flushSync(()=>{p(t)}))})},[h,t,r,N,_]);To(()=>{!1===d&&P.current.isPositioned&&(P.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const D=s().useRef(!1);To(()=>(D.current=!0,()=>{D.current=!1}),[]),To(()=>{if(O&&(j.current=O),k&&(S.current=k),O&&k){if(C.current)return C.current(O,k,A);A()}},[O,k,A,C,E]);const R=s().useMemo(()=>({reference:j,floating:S,setReference:w,setFloating:x}),[w,x]),T=s().useMemo(()=>({reference:O,floating:k}),[O,k]),M=s().useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Lo(T.floating,f.x),n=Lo(T.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Fo(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,T.floating,f.x,f.y]);return s().useMemo(()=>({...f,update:A,refs:R,elements:T,floatingStyles:M}),[f,A,R,T,M])}({strategy:"fixed",placement:C,whileElementsMounted:Vo((...e)=>So(...e,{animationFrame:v===Xo.Always}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[Io({mainAxis:i+E,alignmentAxis:l}),d&&zo({mainAxis:!0,crossAxis:!1,...h===Yo.Partial?{limiter:Go()}:{},...D}),d&&Wo({...D}),$o({...D,apply:Vo(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),k&&Bo({element:k,padding:u}),ui({arrowWidth:P,arrowHeight:E}),m&&Ho(A?{strategy:"referenceHidden",...D}:{strategy:"referenceHidden",padding:D.padding,altBoundary:D.altBoundary})]}),q=g.setPlacementState;yr(()=>(q(M),()=>{q(void 0)}),[M,q]);const[I,z]=di(M),G=wr(y);yr(()=>{F&&G?.()},[F,G]);const W=L.arrow?.x,$=L.arrow?.y,H=0!==L.arrow?.centerOffset,[B,U]=s().useState();return yr(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),(0,o().jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o().jsx)(si,{scope:r,placedSide:I,placedAlign:z,onArrowChange:j,arrowX:W,arrowY:$,shouldHideArrow:H,children:(0,o().jsx)(mr.div,{"data-side":I,"data-align":z,...b,ref:O,style:{...b.style,animation:F?b.style?.animation:"none"}})})})},"PopperContent"));function li(e){return null!==e}Vo(li,"isNotNull");var ui=Vo(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=di(r),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+a/2;let p="",h="";return"bottom"===c?(p=i?u:`${d}px`,h=-a+"px"):"top"===c?(p=i?u:`${d}px`,h=`${n.floating.height+a}px`):"right"===c?(p=-a+"px",h=i?u:`${f}px`):"left"===c&&(p=`${n.floating.width+a}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function di(e){const[t,r="center"]=e.split("-");return[t,r]}Vo(di,"getSideAndAlignFromPlacement");var fi=Object.defineProperty,pi=(e,t)=>fi(e,"name",{value:t,configurable:!0});function hi(e,t){return s().useReducer((e,r)=>t[e][r]??e,e)}pi(hi,"useStateMachine");var mi=pi(e=>{const{present:t,children:r}=e,n=vi(t),o="function"==typeof r?r({present:n.isPresent}):s().Children.only(r),i=bi(n.ref,wi(o));return"function"==typeof r||n.isPresent?s().cloneElement(o,{ref:i}):null},"Presence");function vi(e){const[t,r]=s().useState(),n=s().useRef(null),o=s().useRef(e),i=s().useRef("none"),a=s().useRef(void 0),c=e?"mounted":"unmounted",[l,u]=hi(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s().useEffect(()=>{"mounted"===l?(i.current=a.current??gi(n.current),a.current=void 0):i.current="none"},[l]),yr(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,s=gi(t);if(e)a.current=s,u("MOUNT");else if("none"===s||"none"===t?.display)u("UNMOUNT");else{u(r&&n!==s?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),yr(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,s=pi(i=>{const s=gi(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(u("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),a=pi(e=>{e.target===t&&(i.current=gi(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s().useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,a.current=gi(t)}else n.current=null;r(e)},[])}}function yi(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function bi(...e){const t=s().useRef(e);return t.current=e,s().useCallback(e=>{const r=t.current;let n=!1;const o=r.map(t=>{const r=yi(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():yi(r[e],null)}}},[])}function gi(e){return e?.animationName||"none"}function wi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}pi(vi,"usePresence"),pi(yi,"setRef"),pi(bi,"useStableComposedRefs"),pi(gi,"getAnimationName"),pi(wi,"getElementRef");var xi=Object.defineProperty,Oi=c()[" useEffectEvent ".trim().toString()],ki=c()[" useInsertionEffect ".trim().toString()];function ji(e){if("function"==typeof Oi)return Oi(e);const t=s().useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof ki?ki(()=>{t.current=e}):yr(()=>{t.current=e}),s().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{xi(e,"name",{value:t,configurable:!0})})(ji,"useEffectEvent");var Si=Object.defineProperty,Pi=(e,t)=>Si(e,"name",{value:t,configurable:!0}),Ei=c()[" useInsertionEffect ".trim().toString()]||yr;function Ci({prop:e,defaultProp:t,onChange:r=Pi(()=>{},"onChange"),caller:n}){const[o,i,a]=Ni({defaultProp:t,onChange:r}),c=void 0!==e;return[c?e:o,s().useCallback(t=>{if(c){const r=_i(t)?t(e):t;r!==e&&a.current?.(r)}else i(t)},[c,e,i,a])]}function Ni({defaultProp:e,onChange:t}){const[r,n]=s().useState(e),o=s().useRef(r),i=s().useRef(t);return Ei(()=>{i.current=t},[t]),s().useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function _i(e){return"function"==typeof e}Pi(Ci,"useControllableState"),Pi(Ni,"useUncontrolledState"),Pi(_i,"isFunction");var Ai=Symbol("RADIX:SYNC_STATE");Pi(function(e,t,r,n){const{prop:o,defaultProp:i,onChange:a,caller:c}=t,l=void 0!==o,u=ji(a),d=[{...r,state:i}];n&&d.push(n);const[f,p]=s().useReducer((t,r)=>{if(r.type===Ai)return{...t,state:r.state};const n=e(t,r);return l&&!Object.is(n.state,t.state)&&u(n.state),n},...d),h=f.state,m=s().useRef(h);s().useEffect(()=>{m.current!==h&&(m.current=h,l||u(h))},[h,m,l]);const v=s().useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return s().useEffect(()=>{l&&!Object.is(o,f.state)&&p({type:Ai,state:o})},[o,f.state,l]),[v,p]},"useControllableStateReducer");var Di=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ri=new WeakMap,Ti=new WeakMap,Mi={},Fi=0,Li=function(e){return e&&(e.host||Li(e.parentNode))},qi=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Li(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Mi[r]||(Mi[r]=new WeakMap);var i=Mi[r],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(Ri.get(e)||0)+1,l=(i.get(e)||0)+1;Ri.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Ti.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),a.clear(),Fi++,function(){s.forEach(function(e){var t=Ri.get(e)-1,o=i.get(e)-1;Ri.set(e,t),i.set(e,o),t||(Ti.has(e)||e.removeAttribute(n),Ti.delete(e)),o||e.removeAttribute(r)}),--Fi||(Ri=new WeakMap,Ri=new WeakMap,Ti=new WeakMap,Mi={})}},Ii=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Di(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),qi(n,o,r,"aria-hidden")):function(){return null}};var zi=function(){return zi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zi.apply(this,arguments)};function Gi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function Wi(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var $i="right-scroll-bar-position",Hi="width-before-scroll-bar";function Bi(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ui="undefined"!=typeof window?s().useLayoutEffect:s().useEffect,Ki=new WeakMap;function Qi(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return Bi(e,t)})},o=(0,s().useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0],o.callback=n,o.facade);return Ui(function(){var t=Ki.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||Bi(e,null)}),n.forEach(function(e){r.has(e)||Bi(e,o)})}Ki.set(i,e)},[e]),i}function Vi(e){return e}function Yi(e,t){void 0===t&&(t=Vi);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}var Xi=function(e){void 0===e&&(e={});var t=Yi(null);return t.options=zi({async:!0,ssr:!1},e),t}(),Zi=function(){},Ji=s().forwardRef(function(e,t){var r=s().useRef(null),n=s().useState({onScrollCapture:Zi,onWheelCapture:Zi,onTouchMoveCapture:Zi}),o=n[0],i=n[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,g=void 0===b?"div":b,w=e.gapMode,x=Gi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=Qi([r,t]),j=zi(zi({},x),o);return s().createElement(s().Fragment,null,d&&s().createElement(O,{sideCar:Xi,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?s().cloneElement(s().Children.only(c),zi(zi({},j),{ref:k})):s().createElement(g,zi({},j,{className:l,ref:k}),c))});Ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ji.classNames={fullWidth:Hi,zeroRight:$i};var es,ts=function(e){var t=e.sideCar,r=Gi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return s().createElement(n,zi({},r))};ts.isSideCarExport=!0;function rs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=es||r.nc;return t&&e.setAttribute("nonce",t),e}var ns=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=rs())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},os=function(){var e,t=(e=ns(),function(t,r){s().useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},is={left:0,top:0,right:0,gap:0},ss=function(e){return parseInt(e||"",10)||0},as=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return is;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ss(r),ss(n),ss(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cs=os(),ls="data-scroll-locked",us=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(a,"px ").concat(n,";\n  }\n  body[").concat(ls,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat($i," {\n    right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(Hi," {\n    margin-right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat($i," .").concat($i," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(Hi," .").concat(Hi," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(ls,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ds=function(){var e=parseInt(document.body.getAttribute(ls)||"0",10);return isFinite(e)?e:0},fs=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;s().useEffect(function(){return document.body.setAttribute(ls,(ds()+1).toString()),function(){var e=ds()-1;e<=0?document.body.removeAttribute(ls):document.body.setAttribute(ls,e.toString())}},[]);var i=s().useMemo(function(){return as(o)},[o]);return s().createElement(cs,{styles:us(i,!t,o,r?"":"!important")})},ps=!1;if("undefined"!=typeof window)try{var hs=Object.defineProperty({},"passive",{get:function(){return ps=!0,!0}});window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch(e){ps=!1}var ms=!!ps&&{passive:!1},vs=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},ys=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),bs(e,n)){var o=gs(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},bs=function(e,t){return"v"===e?function(e){return vs(e,"overflowY")}(t):function(e){return vs(e,"overflowX")}(t)},gs=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},ws=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xs=function(e){return[e.deltaX,e.deltaY]},Os=function(e){return e&&"current"in e?e.current:e},ks=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},js=0,Ss=[];function Ps(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Es=(Cs=function(e){var t=s().useRef([]),r=s().useRef([0,0]),n=s().useRef(),o=s().useState(js++)[0],i=s().useState(os)[0],a=s().useRef(e);s().useEffect(function(){a.current=e},[e]),s().useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Wi([e.lockRef.current],(e.shards||[]).map(Os),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s().useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=ws(e),s=r.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=ys(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=ys(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=o),!o)return!0;var m=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{if(!a)break;var p=gs(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&bs(e,a)&&(d+=m,f+=h);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(f)<1||!o&&-s>f))&&(l=!0),l}(m,t,e,"h"===m?c:l,!0)},[]),l=s().useCallback(function(e){var r=e;if(Ss.length&&Ss[Ss.length-1]===i){var n="deltaY"in r?xs(r):ws(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Os).filter(Boolean).filter(function(e){return e.contains(r.target)});(s.length>0?c(r,s[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=s().useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Ps(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=s().useCallback(function(e){r.current=ws(e),n.current=void 0},[]),f=s().useCallback(function(t){u(t.type,xs(t),t.target,c(t,e.lockRef.current))},[]),p=s().useCallback(function(t){u(t.type,ws(t),t.target,c(t,e.lockRef.current))},[]);s().useEffect(function(){return Ss.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ms),document.addEventListener("touchmove",l,ms),document.addEventListener("touchstart",d,ms),function(){Ss=Ss.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,ms),document.removeEventListener("touchmove",l,ms),document.removeEventListener("touchstart",d,ms)}},[]);var h=e.removeScrollBar,m=e.inert;return s().createElement(s().Fragment,null,m?s().createElement(i,{styles:ks(o)}):null,h?s().createElement(fs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Xi.useMedium(Cs),ts);var Cs,Ns=s().forwardRef(function(e,t){return s().createElement(Ji,zi({},e,{ref:t,sideCar:Es}))});Ns.classNames=Ji.classNames;const _s=Ns;var As=Object.defineProperty,Ds=(e,t)=>As(e,"name",{value:t,configurable:!0}),Rs="Popover",[Ts,Ms]=fr(Rs,[ei]),Fs=ei(),[Ls,qs]=Ts(Rs),Is=Ds(e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:c=!1}=e,l=Fs(t),u=s().useRef(null),[d,f]=s().useState(!1),[p,h]=s().useState(0),[m,v]=s().useState(0),[y,b]=Ci({prop:n,defaultProp:i??!1,onChange:a,caller:Rs});return(0,o().jsx)(ni,{...l,children:(0,o().jsx)(Ls,{scope:t,contentId:ln(),titleId:ln(),descriptionId:ln(),titlePresent:p>0,descriptionPresent:m>0,setTitleCount:h,setDescriptionCount:v,triggerRef:u,open:y,onOpenChange:b,onOpenToggle:s().useCallback(()=>b(e=>!e),[b]),hasCustomAnchor:d,onCustomAnchorAdd:s().useCallback(()=>f(!0),[]),onCustomAnchorRemove:s().useCallback(()=>f(!1),[]),modal:c,children:r})})},"Popover"),zs=s().forwardRef(Ds(function(e,t){const{__scopePopover:r,...n}=e,i=qs("PopoverTrigger",r),s=Fs(r),a=Je(t,i.triggerRef),c=(0,o().jsx)(mr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ys(i.open),...n,ref:a,onClick:ar(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,o().jsx)(oi,{asChild:!0,...s,children:c})},"PopoverTrigger")),Gs="PopoverPortal",[Ws,$s]=Ts(Gs,{forceMount:void 0}),Hs="PopoverContent",Bs=s().forwardRef(Ds(function(e,t){const r=$s(Hs,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,s=qs(Hs,e.__scopePopover);return(0,o().jsx)(mi,{present:n||s.open,children:s.modal?(0,o().jsx)(Ks,{...i,ref:t}):(0,o().jsx)(Qs,{...i,ref:t})})},"PopoverContent")),Us=rt("PopoverContent.RemoveScroll"),Ks=s().forwardRef(Ds(function(e,t){const r=qs(Hs,e.__scopePopover),n=s().useRef(null),i=Je(t,n),a=s().useRef(!1),{nodes:c,registry:l}=Ur();return s().useEffect(()=>{const e=n.current;if(e)return Ii(e)},[]),(0,o().jsx)(_s,{as:Us,allowPinchZoom:!0,shards:s().useMemo(()=>[n,...c.map(e=>({current:e}))],[n,c]),children:(0,o().jsx)(Vs,{...e,ref:i,branchNodes:c,branchRegistry:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ar(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ar(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:ar(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Qs=s().forwardRef(Ds(function(e,t){const r=qs(Hs,e.__scopePopover),n=s().useRef(!1),i=s().useRef(!1);return(0,o().jsx)(Vs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,s=r.triggerRef.current?.contains(o);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),Vs=s().forwardRef(Ds(function(e,t){const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,"aria-describedby":p,branchNodes:h,branchRegistry:m,...v}=e,y=qs(Hs,r),b=Fs(r),[g,w]=s().useState(null),x=Je(t,w);return Kr(g),Fr(),(0,o().jsx)(Br,{registry:m,children:(0,o().jsx)($r,{asChild:!0,loop:!0,trapped:n,branches:h,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o().jsx)(Pr,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>y.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o().jsx)(ci,{"data-state":Ys(y.open),role:"dialog",id:y.contentId,"aria-labelledby":y.titlePresent?y.titleId:void 0,"aria-describedby":y.descriptionPresent?Xs(p,y.descriptionId):p,...b,...v,ref:x,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function Ys(e){return e?"open":"closed"}function Xs(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}Ds(Ys,"getState"),Ds(Xs,"concatAriaDescribedby");var Js=["className","align","sideOffset"];function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ta(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Zs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ra=Is,na=zs,oa=s().forwardRef(function(e,t){var r=e.className,n=e.align,i=void 0===n?"center":n,s=e.sideOffset,a=void 0===s?4:s,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Js);return(0,o().jsx)(Bs,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach(function(t){ta(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:i,sideOffset:a,className:Qe("vt-ui vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},c))});function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ia(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}oa.displayName=Bs.displayName;var ca=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(r),!0).forEach(function(t){aa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const la=ca;let ua={data:""},da=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||ua},fa=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,pa=/\/\*[^]*?\*\/|  +/g,ha=/\n+/g,ma=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+s+";":n+="f"==i[1]?ma(s,i):i+"{"+ma(s,"k"==i[1]?"":t)+"}":"object"==typeof s?n+=ma(s,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=s&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ma.p?ma.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},va={},ya=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+ya(e[r]);return t}return e};function ba(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,o)=>{let i=ya(e),s=va[i]||(va[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!va[s]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=fa.exec(e.replace(pa,""));)t[4]?n.shift():t[3]?(r=t[3].replace(ha," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(ha," ").trim();return n[0]})(e);va[s]=ma(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let a=r&&va.g;return r&&(va.g=va[s]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(va[s],t,n,a),s})(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":ma(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,da(t.target),t.g,t.o,t.k)}ba.bind({g:1});let ga,wa,xa,Oa=ba.bind({k:1});function ka(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;r.p=Object.assign({theme:wa&&wa()},a),r.o=/go\d/.test(c),a.className=ba.apply(r,n)+(c?" "+c:""),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),xa&&l[0]&&xa(a),ga(l,a)}return t?t(o):o}}var ja=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Sa=(()=>{let e=0;return()=>(++e).toString()})(),Pa=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ea="default",Ca=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Ca(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Na=[],_a={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},Aa={},Da=(e,t=Ea)=>{Aa[t]=Ca(Aa[t]||_a,e),Na.forEach(([e,r])=>{e===t&&r(Aa[t])})},Ra=e=>Object.keys(Aa).forEach(t=>Da(e,t)),Ta=(e=Ea)=>t=>{Da(t,e)},Ma={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Fa=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Sa()}))(t,e,r);return Ta(n.toasterId||(e=>Object.keys(Aa).find(t=>Aa[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},La=(e,t)=>Fa("blank")(e,t);La.error=Fa("error"),La.success=Fa("success"),La.loading=Fa("loading"),La.custom=Fa("custom"),La.dismiss=(e,t)=>{let r={type:3,toastId:e};t?Ta(t)(r):Ra(r)},La.dismissAll=e=>La.dismiss(void 0,e),La.remove=(e,t)=>{let r={type:4,toastId:e};t?Ta(t)(r):Ra(r)},La.removeAll=e=>La.remove(void 0,e),La.promise=(e,t,r)=>{let n=La.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?ja(t.success,e):void 0;return o?La.success(o,{id:n,...r,...null==r?void 0:r.success}):La.dismiss(n),e}).catch(e=>{let o=t.error?ja(t.error,e):void 0;o?La.error(o,{id:n,...r,...null==r?void 0:r.error}):La.dismiss(n)}),e};var qa=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Ea)=>{let[r,n]=(0,s().useState)(Aa[t]||_a),o=(0,s().useRef)(Aa[t]);(0,s().useEffect)(()=>(o.current!==Aa[t]&&n(Aa[t]),Na.push([t,n]),()=>{let e=Na.findIndex(([e])=>e===t);e>-1&&Na.splice(e,1)}),[t]);let i=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Ma[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:i}})(e,t),o=(0,s().useRef)(new Map).current,i=(0,s().useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),a({type:4,toastId:e})},t);o.set(e,r)},[]);(0,s().useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>La.dismiss(r.id,t),n);r.visible&&La.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let a=(0,s().useCallback)(Ta(t),[t]),c=(0,s().useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,s().useCallback)((e,t)=>{a({type:1,toast:{id:e,height:t}})},[a]),u=(0,s().useCallback)(()=>{n&&a({type:6,time:Date.now()})},[n,a]),d=(0,s().useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},s=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=s.findIndex(t=>t.id===e.id),c=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,s().useEffect)(()=>{r.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,i]),{toasts:r,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:d}}},Ia=Oa` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,za=Oa` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Ga=Oa` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Wa=ka("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Ia} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${za} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Ga} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,$a=Oa` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Ha=ka("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${$a} 1s linear infinite; `,Ba=Oa` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Ua=Oa` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Ka=ka("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Ba} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Ua} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Qa=ka("div")` position: absolute; `,Va=ka("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Ya=Oa` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Xa=ka("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Ya} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Za=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?s().createElement(Xa,null,t):t:"blank"===r?null:s().createElement(Va,null,s().createElement(Ha,{...n}),"loading"!==r&&s().createElement(Qa,null,"error"===r?s().createElement(Wa,{...n}):s().createElement(Ka,{...n})))},Ja=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,ec=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} `,tc=ka("div")` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,rc=ka("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,nc=s().memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Pa()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Ja(r),ec(r)];return{animation:t?`${Oa(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Oa(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=s().createElement(Za,{toast:e}),a=s().createElement(rc,{...e.ariaProps},ja(e.message,e));return s().createElement(tc,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:a}):s().createElement(s().Fragment,null,i,a))});!function(e,t,r,n){ma.p=t,ga=e,wa=r,xa=n}(s().createElement);var oc=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=s().useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return s().createElement("div",{ref:i,className:t,style:r},o)},ic=ba` z-index: 9999; > * { pointer-events: auto; } `,sc=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:i,containerStyle:a,containerClassName:c})=>{let{toasts:l,handlers:u}=qa(r,i);return s().createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(r=>{let i=r.position||t,a=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Pa()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return s().createElement(oc,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?ic:"",style:a},"custom"===r.type?ja(r.message,r):o?o(r):s().createElement(nc,{toast:r,position:i}))}))},ac=La;function cc(e){return cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(e)}var lc=function(e){return e instanceof File||e instanceof Blob},uc=function(e){return"string"==typeof e},dc=function(e){return"boolean"==typeof e},fc=function(e){return"number"==typeof e},pc=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){lc(e)||uc(e)?t.append("".concat(r,"[").concat(n,"]"),e):dc(e)||fc(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===cc(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):lc(i)||uc(i)?t.append(r,i):dc(i)?t.append(r,i.toString()):fc(i)?t.append(r,"".concat(i)):"object"===cc(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t};function hc(e){return hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hc(e)}function mc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return vc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(vc(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,vc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,vc(d,"constructor",l),vc(l,"constructor",c),c.displayName="GeneratorFunction",vc(l,o,"GeneratorFunction"),vc(d),vc(d,o,"Generator"),vc(d,n,function(){return this}),vc(d,"toString",function(){return"[object Generator]"}),(mc=function(){return{w:i,m:f}})()}function vc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vc=function(e,t,r,n){function i(t,r){vc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},vc(e,t,r,n)}function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=hc(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function xc(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){wc(i,n,o,s,a,"next",e)}function a(e){wc(i,n,o,s,a,"throw",e)}s(void 0)})}}function Oc(e,t){return kc.apply(this,arguments)}function kc(){return kc=xc(mc().m(function e(t,r){var n,o,i,s,a,c,l,u,d,f,p,h,m;return mc().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=la.wp_rest_nonce,i=la.nonce_key,s=la.nonce_value,a="".concat(t),c=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",l=bc({"X-WP-Nonce":o},r.headers||{}),u={method:c,headers:l},["GET","DELETE"].includes(c)?((d=new URLSearchParams(null==r?void 0:r.body)).append(i,s),a+="?".concat(d.toString())):r.body&&((f=pc(r.body)).append(i,s),u.body=f),e.p=1,e.n=2,fetch(a,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(h=e.v).status_code){e.n=4;break}return e.a(2,h);case 4:throw new Error(h.message);case 5:e.n=7;break;case 6:throw e.p=6,m=e.v,new Error((null==m?void 0:m.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),kc.apply(this,arguments)}const jc=s().createContext(void 0),Sc=({client:e,children:t})=>(s().useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o().jsx)(jc.Provider,{value:e,children:t})),Pc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};const Ec=new class{#e=Pc;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const Cc="undefined"==typeof window||"Deno"in globalThis;function Nc(){}function _c(e,t){return"function"==typeof e?e(t):e}function Ac(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Rc(s,t.options))return!1}else if(!Mc(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Dc(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Tc(t.options.mutationKey)!==Tc(i))return!1}else if(!Mc(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Rc(e,t){return(t?.queryKeyHashFn||Tc)(e)}function Tc(e){return JSON.stringify(e,(e,t)=>Ic(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(!Mc(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!Mc(e[n],t[n]))return!1;return!0}return!1}const Fc=Object.prototype.hasOwnProperty;function Lc(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=qc(e)&&qc(t);if(!(n||Ic(e)&&Ic(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const s=n?l:i[l],u=e[s],d=t[s];if(u===d){a[s]=u,(n?l<o:Fc.call(e,s))&&c++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}const f=Lc(u,d,r+1);a[s]=f,f===u&&c++}return o===s&&c===o?e:a}function qc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ic(e){if(!zc(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;const n=r.prototype;return!!zc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&t===Object.prototype)}function zc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gc(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Lc(e,t):t}function Wc(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(-r):n}function $c(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,r):n}const Hc=Symbol();function Bc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Hc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}const Uc=Symbol();var Kc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};const Qc=function(e){setTimeout(e,0)};const Vc=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=Qc;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();let Yc=()=>Cc;const Xc=()=>Yc();const Zc=new class extends Kc{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}};const Jc=new class extends Kc{#i=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function el(e){return Math.min(1e3*2**e,3e4)}function tl(e){return"online"!==(e??"online")||Jc.isOnline()}var rl=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function nl(e){let t,r,n,o=!1,i=0,s="pending";const a=new Promise((e,t)=>{r=e,n=t});a.catch(Nc);const c=()=>"pending"!==s,l=()=>Zc.isFocused()&&("always"===e.networkMode||Jc.isOnline())&&e.canRun(),u=()=>tl(e.networkMode)&&e.canRun(),d=e=>{c()||(t?.(),s="resolved",r(e))},f=e=>{c()||(t?.(),s="rejected",n(e))},p=r=>new Promise(n=>{t=e=>{(c()||r())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,c()||e.onContinue?.()}),h=()=>{if(c())return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(d).catch(t=>{if(c())return;const r=e.retry??(Xc()?0:3),n=e.retryDelay??el,s="function"==typeof n?n(i,t):n,a=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&a?(i++,e.onFail?.(i,t),(u=s,new Promise(e=>{Ec.setTimeout(e,u)})).then(()=>c()||l()?void 0:p(l)).then(()=>{o?f(t):h()})):f(t)})};return{promise:a,status:()=>s,cancel:t=>{if(!c()){const r=new rl(t);f(r),e.onCancel?.(r)}},continue:()=>(t?.(),a),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:u,start:()=>(u()?h():p(u).then(h),a)}}var ol=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),function(e){return"number"==typeof e&&e>=0&&e!==1/0}(this.gcTime)&&(this.#s=Ec.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xc()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(Ec.clearTimeout(this.#s),this.#s=void 0)}},il=class extends ol{#a;#c;#l;#u;constructor(e){super(),this.#a=e.client,this.mutationId=e.mutationId,this.#l=e.mutationCache,this.#c=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#c.includes(e)||(this.#c.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#c=this.#c.filter(t=>t!==e),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#c.length||("pending"===this.state.status?this.scheduleGc():this.#l.remove(this))}continue(){return this.#u?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#d({type:"continue"})},r={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#u=nl({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)}),o="pending"===this.state.status,i=!n.canStart();try{if(o)t();else{this.#d({type:"pending",variables:e,isPaused:i}),this.#l.config.onMutate&&await this.#l.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:i})}this.state.isPaused&&n.canStart()&&t();const s=await n.start();return await(this.#l.config.onSuccess?.(s,e,this.state.context,this,r)),await(this.options.onSuccess?.(s,e,this.state.context,r)),await(this.#l.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(s,null,e,this.state.context,r)),this.#d({type:"success",data:s}),s}catch(t){try{await(this.#l.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#l.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#d({type:"error",error:t}),t}finally{this.#u===n&&(this.#u=void 0),this.#l.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Vc.batch(()=>{this.#c.forEach(t=>{t.onMutationUpdate(e)}),this.#l.notify({mutation:this,type:"updated",action:e})})}};var sl=class extends Kc{#a;#f=void 0;#p;#h;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#m()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#a.defaultMutationOptions(e),function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r of Object.keys(e))if(!Fc.call(t,r)||e[r]!==t[r])return!1;return!0}(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&Tc(t.mutationKey)!==Tc(this.options.mutationKey)?this.reset():"pending"===this.#p?.state.status&&this.#p.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#p&&(this.#p.addObserver(this),this.#m())}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#m(),this.#v(e)}getCurrentResult(){return this.#f}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#m(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#a.getMutationCache().build(this.#a,this.options),this.#p.addObserver(this),this.#p.execute(e)}#m(){const e=this.#p?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){Vc.batch(()=>{const t=this.#h;if(t&&this.hasListeners()){const r=this.#f.variables,n=this.#f.context,o={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{t.onSuccess?.(e.data,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,r,n,o)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{t.onError?.(e.error,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,r,n,o)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#f)})})}};function al(e,t){const r=(e=>{const t=s().useContext(jc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(t),[n]=s().useState(()=>new sl(r,e));s().useEffect(()=>{n.setOptions(e)},[n,e]);const o=s().useSyncExternalStore(s().useCallback(e=>n.subscribe(Vc.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=s().useCallback((...e)=>{n.mutate(e[0],e[1]).catch(Nc)},[n]);if(o.error&&(a=n.options.throwOnError,c=[o.error],"function"==typeof a?a(...c):a))throw o.error;var a,c;return{...o,mutate:i,mutateAsync:o.mutate}}function cl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return ll(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ll(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ll(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,ll(d,"constructor",l),ll(l,"constructor",c),c.displayName="GeneratorFunction",ll(l,o,"GeneratorFunction"),ll(d),ll(d,o,"Generator"),ll(d,n,function(){return this}),ll(d,"toString",function(){return"[object Generator]"}),(cl=function(){return{w:i,m:f}})()}function ll(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ll=function(e,t,r,n){function i(t,r){ll(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ll(e,t,r,n)}function ul(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function dl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ul(i,n,o,s,a,"next",e)}function a(e){ul(i,n,o,s,a,"throw",e)}s(void 0)})}}var fl=function(){var e=dl(cl().m(function e(t){var r;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Oc(la.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),pl=function(){var e=dl(cl().m(function e(){var t;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl({action:"versatile_quickact_plugins_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),hl=function(){var e=dl(cl().m(function e(){var t;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl({action:"versatile_quickact_themes_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),ml=function(){return al({mutationFn:(e=dl(cl().m(function e(t){var r;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl(t);case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){ac.success(e.message||(0,l.__)("Quick action completed successfully!","versatile-toolkit"))},onError:function(e){ac.error(e.message||(0,l.__)("Quick action failed","versatile-toolkit"))}});var e};function vl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function bl(e,t){var r=vl((0,s().useState)(e),2),n=r[0],o=r[1];return(0,s().useEffect)(function(){var r=window.setTimeout(function(){return o(e)},t);return function(){return window.clearTimeout(r)}},[e,t]),n}const gl=p("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),wl=p("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),xl=p("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Ol(e){return Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(e)}function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(r),!0).forEach(function(t){Sl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return El(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(El(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,El(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,El(d,"constructor",l),El(l,"constructor",c),c.displayName="GeneratorFunction",El(l,o,"GeneratorFunction"),El(d),El(d,o,"Generator"),El(d,n,function(){return this}),El(d,"toString",function(){return"[object Generator]"}),(Pl=function(){return{w:i,m:f}})()}function El(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}El=function(e,t,r,n){function i(t,r){El(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},El(e,t,r,n)}function Cl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Nl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Cl(i,n,o,s,a,"next",e)}function a(e){Cl(i,n,o,s,a,"throw",e)}s(void 0)})}}function _l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Al(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Al(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Al(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Dl=function(){var e=_l((0,s().useState)([]),2),t=e[0],r=e[1],n=_l((0,s().useState)(!1),2),i=n[0],a=n[1],c=_l((0,s().useState)(null),2),u=c[0],d=c[1],f=_l((0,s().useState)(null),2),p=f[0],h=f[1],m=_l((0,s().useState)(""),2),v=m[0],y=m[1],b=bl(v,300),g=ml(),w=g.mutateAsync,x=g.isPending,O=(0,s().useCallback)(Nl(Pl().m(function e(){var t;return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:return a(!0),e.p=1,e.n=2,pl();case 2:t=e.v,r(t);case 3:return e.p=3,a(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,s().useEffect)(function(){O()},[O]);var k=function(){var e=Nl(Pl().m(function e(t,n){return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:return d(t),e.p=1,e.n=2,w({action:n?"versatile_quickact_plugin_activate":"versatile_quickact_plugin_deactivate",plugin_file:t});case 2:r(function(e){return e.map(function(e){return e.file===t?jl(jl({},e),{},{is_active:n}):e})});case 3:return e.p=3,d(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Nl(Pl().m(function e(t){return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,l.__)("Are you sure you want to delete this plugin?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return h(t),e.p=2,e.n=3,w({action:"versatile_quickact_plugin_delete",plugin_file:t});case 3:r(function(e){return e.filter(function(e){return e.file!==t})});case 4:return e.p=4,h(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),S=(0,s().useMemo)(function(){var e=b.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.file," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,b]);return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsxs)("div",{className:"vt-quickact-section-head",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Plugin List","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,o().jsx)(gl,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(nr,{type:"search",value:v,className:"vt-w-max vt-pl-8 vt-h-5",onChange:function(e){return y(e.target.value)},placeholder:(0,l.__)("Search plugins…","versatile-toolkit"),autoComplete:"off","aria-label":(0,l.__)("Search plugins","versatile-toolkit"),disabled:i})]})]}),i&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("Loading plugins...","versatile-toolkit")}),!i&&0===t.length&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("No plugins found.","versatile-toolkit")}),!i&&t.length>0&&0===S.length&&(0,o().jsx)("div",{style:{minHeight:"120px"},children:(0,l.__)("No plugins match your search.","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-section-list",children:S.map(function(e){return(0,o().jsxs)("div",{className:"vt-quickact-row ".concat(e.is_active?"vt-quickact-row-active":""),children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,o().jsxs)("div",{className:"vt-quickact-row-meta",children:[e.file," ",e.version?"(".concat(e.version,")"):""]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,o().jsx)(St,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:x,onClick:function(){k(e.file,!e.is_active)},children:(0,o().jsx)(Zt,{isLoading:u===e.file,loadingText:"loading",size:"xs",children:e.is_active?(0,l.__)("Deactivate","versatile-toolkit"):(0,l.__)("Activate","versatile-toolkit")})}),(0,o().jsxs)(ra,{children:[(0,o().jsx)(na,{asChild:!0,children:(0,o().jsxs)(St,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,o().jsx)(wl,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,l.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsx)(oa,{className:"vt-w-max vt-p-1",align:"end",children:(0,o().jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,o().jsx)(St,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:x,onClick:function(){j(e.file)},children:(0,o().jsxs)(Zt,{isLoading:p===e.file,loadingText:"loading",size:"xs",children:[(0,o().jsx)(xl,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,o().jsx)("span",{children:(0,l.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.file)})})]})};function Rl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Tl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Tl(d,"constructor",l),Tl(l,"constructor",c),c.displayName="GeneratorFunction",Tl(l,o,"GeneratorFunction"),Tl(d),Tl(d,o,"Generator"),Tl(d,n,function(){return this}),Tl(d,"toString",function(){return"[object Generator]"}),(Rl=function(){return{w:i,m:f}})()}function Tl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tl=function(e,t,r,n){function i(t,r){Tl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tl(e,t,r,n)}function Ml(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}const Fl=function(){var e=ml(),t=e.mutateAsync,r=e.isPending,n=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ml(i,n,o,s,a,"next",e)}function a(e){Ml(i,n,o,s,a,"throw",e)}s(void 0)})}}(Rl().m(function e(){return Rl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Settings","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-quickact-row vt-quickact-row-comfortable",children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:(0,l.__)("Permalink Reset","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-row-meta",children:(0,l.__)("Flush and regenerate rewrite rules.","versatile-toolkit")})]}),(0,o().jsx)(St,{variant:"softBlue",size:"softBlue",type:"button",disabled:r,onClick:function(){n()},children:(0,o().jsx)(Zt,{isLoading:r,loadingText:(0,l.__)("loading","versatile-toolkit"),size:"sm",children:(0,l.__)("Reset","versatile-toolkit")})})]})]})};function Ll(e){return Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(e)}function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(t){zl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ll(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ll(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Wl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Wl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Wl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Wl(d,"constructor",l),Wl(l,"constructor",c),c.displayName="GeneratorFunction",Wl(l,o,"GeneratorFunction"),Wl(d),Wl(d,o,"Generator"),Wl(d,n,function(){return this}),Wl(d,"toString",function(){return"[object Generator]"}),(Gl=function(){return{w:i,m:f}})()}function Wl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wl=function(e,t,r,n){function i(t,r){Wl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Wl(e,t,r,n)}function $l(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Hl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){$l(i,n,o,s,a,"next",e)}function a(e){$l(i,n,o,s,a,"throw",e)}s(void 0)})}}function Bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ul(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ul(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Kl=function(){var e=Bl((0,s().useState)([]),2),t=e[0],r=e[1],n=Bl((0,s().useState)(!1),2),i=n[0],a=n[1],c=Bl((0,s().useState)(null),2),u=c[0],d=c[1],f=Bl((0,s().useState)(null),2),p=f[0],h=f[1],m=Bl((0,s().useState)(""),2),v=m[0],y=m[1],b=bl(v,300),g=ml(),w=g.mutateAsync,x=g.isPending,O=(0,s().useCallback)(Hl(Gl().m(function e(){var t;return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:return a(!0),e.p=1,e.n=2,hl();case 2:t=e.v,r(t);case 3:return e.p=3,a(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,s().useEffect)(function(){O()},[O]);var k=function(){var e=Hl(Gl().m(function e(t,n){return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:return d(t),e.p=1,e.n=2,w({action:n?"versatile_quickact_theme_activate":"versatile_quickact_theme_deactivate",stylesheet:t});case 2:r(function(e){return e.map(function(e){return e.stylesheet===t?Il(Il({},e),{},{is_active:n}):n?Il(Il({},e),{},{is_active:!1}):e})});case 3:return e.p=3,d(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Hl(Gl().m(function e(t){return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,l.__)("Are you sure you want to delete this theme?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return h(t),e.p=2,e.n=3,w({action:"versatile_quickact_theme_delete",stylesheet:t});case 3:r(function(e){return e.filter(function(e){return e.stylesheet!==t})});case 4:return e.p=4,h(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),S=(0,s().useMemo)(function(){var e=b.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.stylesheet," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,b]);return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsxs)("div",{className:"vt-quickact-section-head",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Theme List","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,o().jsx)(gl,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(nr,{type:"search",className:"vt-w-max vt-pl-8 vt-h-5",value:v,onChange:function(e){return y(e.target.value)},placeholder:(0,l.__)("Search themes…","versatile-toolkit"),autoComplete:"off","aria-label":(0,l.__)("Search themes","versatile-toolkit"),disabled:i})]})]}),i&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("Loading themes...","versatile-toolkit")}),!i&&0===t.length&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("No themes found.","versatile-toolkit")}),!i&&t.length>0&&0===S.length&&(0,o().jsx)("div",{style:{minHeight:"120px"},children:(0,l.__)("No themes match your search.","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-section-list",children:S.map(function(e){return(0,o().jsxs)("div",{className:"vt-quickact-row".concat(e.is_active?" vt-quickact-row-active":""),children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,o().jsxs)("div",{className:"vt-quickact-row-meta",children:[e.stylesheet," ",e.version?"(".concat(e.version,")"):""]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,o().jsx)(St,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:x,onClick:function(){k(e.stylesheet,!e.is_active)},children:(0,o().jsx)(Zt,{isLoading:u===e.stylesheet,loadingText:"loading",size:"xs",children:e.is_active?(0,l.__)("Deactivate","versatile-toolkit"):(0,l.__)("Activate","versatile-toolkit")})}),(0,o().jsxs)(ra,{children:[(0,o().jsx)(na,{asChild:!0,children:(0,o().jsxs)(St,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,o().jsx)(wl,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,l.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsx)(oa,{className:"vt-w-max vt-p-1",align:"end",children:(0,o().jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,o().jsx)(St,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:x,onClick:function(){j(e.stylesheet)},children:(0,o().jsxs)(Zt,{isLoading:p===e.stylesheet,loadingText:"loading",size:"xs",children:[(0,o().jsx)(xl,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,o().jsx)("span",{children:(0,l.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.stylesheet)})})]})};Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function Ql(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Vl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Vl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Vl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Vl(d,"constructor",l),Vl(l,"constructor",c),c.displayName="GeneratorFunction",Vl(l,o,"GeneratorFunction"),Vl(d),Vl(d,o,"Generator"),Vl(d,n,function(){return this}),Vl(d,"toString",function(){return"[object Generator]"}),(Ql=function(){return{w:i,m:f}})()}function Vl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vl=function(e,t,r,n){function i(t,r){Vl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Vl(e,t,r,n)}function Yl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Xl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Yl(i,n,o,s,a,"next",e)}function a(e){Yl(i,n,o,s,a,"throw",e)}s(void 0)})}}const Zl=function(){var e=ml(),t=e.mutateAsync,r=e.isPending,n=function(){var e=Xl(Ql().m(function e(){return Ql().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-border-b vt-border-gray-200 vt-pb-3 vt-flex vt-gap-1 vt-justify-between vt-items-center",children:[(0,o().jsx)("h2",{className:"vt-mr-2 vt-text-sm vt-font-medium vt-text-gray-500",children:(0,l.__)("Top Actions","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-flex vt-gap-2 vt-justify-between",children:(0,o().jsx)(St,{type:"button",variant:"softBlue",size:"softBlue",disabled:r,onClick:n,children:(0,o().jsx)(Zt,{isLoading:r,loadingText:(0,l.__)("Resetting...","versatile-toolkit"),size:"xs",children:(0,l.__)("Reset Permalink","versatile-toolkit")})})})]})};function Jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tu=function(e){return e instanceof Element&&Boolean(e.closest(".vt-quickact-menu-wrapper"))};const ru=function(){var e=Jl((0,s().useState)("plugins"),2),t=e[0],r=e[1];return(0,o().jsxs)("div",{className:"vt-quickact-trigger",onClick:function(e){tu(e.target)||(e.preventDefault(),e.stopPropagation())},onMouseDown:function(e){tu(e.target)||(e.preventDefault(),e.stopPropagation())},children:[(0,o().jsxs)("div",{children:[(0,l.__)("Quick Actions","versatile-toolkit"),(0,o().jsx)("span",{className:"vt-quickact-arrow","aria-hidden":"true",children:"▼"})]}),(0,o().jsxs)("div",{className:"vt-quickact-menu-wrapper",children:[(0,o().jsx)(Zl,{}),(0,o().jsxs)("div",{className:"vt-quickact-menu vt-pt-3",children:[(0,o().jsxs)("div",{className:"vt-quickact-sidebar vt-border-r",children:[(0,o().jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("plugins"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("plugins")},children:(0,l.__)("Plugins","versatile-toolkit")}),(0,o().jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("themes"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("themes")},children:(0,l.__)("Themes","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-quickact-content vt-pl-3",children:[(0,o().jsx)("div",{hidden:"plugins"!==t,children:(0,o().jsx)(Dl,{})}),(0,o().jsx)("div",{hidden:"themes"!==t,children:(0,o().jsx)(Kl,{})}),(0,o().jsx)("div",{hidden:"settings"!==t,children:(0,o().jsx)(Fl,{})})]})]})]})]})};var nu=class extends Kc{#y;#b;#g;constructor(e={}){super(),this.config=e,this.#y=new Set,this.#b=new Map,this.#g=0}build(e,t,r){const n=new il({client:e,mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#y.add(e);const t=ou(e);if("string"==typeof t){const r=this.#b.get(t);r?r.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#y.delete(e)){const t=ou(e);if("string"==typeof t){const r=this.#b.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ou(e);if("string"==typeof t){const r=this.#b.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=ou(e);return"string"==typeof t?(this.#b.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Vc.batch(()=>{const e=this.getAll();this.#y.clear(),this.#b.clear(),e.forEach(e=>{this.notify({type:"removed",mutation:e})})})}getAll(){return Array.from(this.#y)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Dc(t,e))}findAll(e={}){return this.getAll().filter(t=>Dc(e,t))}notify(e){Vc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Vc.batch(()=>Promise.all(e.map(e=>e.continue().catch(Nc))))}};function ou(e){return e.options.scope?.id}function iu(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let r=!1;const l=t,u=e=>{!function(e,t,r,n){let o,i=!1;Object.defineProperties(e,{[Uc]:{value:n},signal:{enumerable:!0,get:()=>(o??=t(),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}})}(e,()=>t.signal,()=>r=!0,l[Uc])},d=Bc(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return u(e),e})(),s=await d(i),{maxPages:a}=t.options,c=o?$c:Wc;return{pages:c(e.pages,s,a),pageParams:c(e.pageParams,n,a)}};if(o&&i.length){const e="backward"===o,t=e?au:su,r={pages:i,pageParams:s};a=await f(r,t(n,r),e)}else{const t=e??i.length;do{const e=0===c?void 0===s[0]?n.initialPageParam:s[0]:su(n,a);if(c>0&&null==e)break;a=await f(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function su(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function au(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var cu=class extends ol{#w;#x;#O;#k;#a;#u;#j;#S;#P;constructor(e){super(),this.#P=!1,this.#S=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#k=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#x=du(this.options),this.state=e.state??this.#x,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#w}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#S,...e},e?._type&&(this.#w=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=du(this.options);void 0!==e.data&&(this.setState(uu(e.data,e.dataUpdatedAt)),this.#x=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(e,t){const r=Gc(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#d({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Nc).catch(Nc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#x}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==_c(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return void 0!==this.state.data&&(this.getObserversCount()>0&&this.observers.some(e=>"static"===_c(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#u&&(this.#P||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u&&this.#j)return this.#u.continueRetry(),this.#j;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperties(e,{[Uc]:{value:r.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#P=!0,r.signal)}})},o=()=>{const e=Bc(this.options,t),r=(()=>{const e={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#P=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return n(e),e})();("infinite"===this.#w?iu(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#O=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const s=this.#u=nl({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof rl&&e.revert&&this.setState({...this.#O,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),a=(async()=>{try{const e=await s.promise;if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#k.config.onSuccess?.(e,this),this.#k.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof rl){if(e.silent){if(this.#u!==s&&this.#j)return this.#j;throw e}if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#k.config.onError?.(e,this),this.#k.config.onSettled?.(this.state.data,e,this),e}finally{this.#u===s&&(this.#u=void 0,this.#j=void 0),this.scheduleGc()}})();return this.#j=a,s.start(),a}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...lu(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...uu(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#O=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Vc.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#k.notify({query:this,type:"updated",action:e})})}};function lu(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tl(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function uu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function du(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var fu=class extends Kc{#E;constructor(e={}){super(),this.config=e,this.#E=new Map}build(e,t,r){const n=t.queryKey,o=t.queryHash??Rc(n,t);let i=this.get(o);return i||(i=new cu({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#E.has(e.queryHash)||(this.#E.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#E.get(e.queryHash)===e&&(e.destroy(),this.#E.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#E.get(e)}getAll(){return[...this.#E.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ac(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ac(e,t)):t}notify(e){Vc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Vc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};n();var pu=n().createRoot(document.getElementById("vt-quickact-container")),hu="vt-quickact-toaster-root",mu=new class{#C;#l;#S;#N;#_;#A;#D;#R;constructor(e={}){this.#C=e.queryCache||new fu,this.#l=e.mutationCache||new nu,this.#S=e.defaultOptions||{},this.#N=new Map,this.#_=new Map,this.#A=0}mount(){this.#A++,1===this.#A&&(this.#D=Zc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#R=Jc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#A--,0===this.#A&&(this.#D?.(),this.#D=void 0,this.#R?.(),this.#R=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#l.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#C.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(_c(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#C.get(n.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return this.#C.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Vc.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){const t=this.#C;Vc.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#C;return Vc.batch(()=>{const n=r.findAll(e),o=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>o.has(e)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},n=Vc.batch(()=>this.#C.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Nc).catch(Nc)}invalidateQueries(e,t={}){return Vc.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Vc.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);const n="paused"===e.state.fetchStatus;return r.throwOnError&&!n||(t=t.catch(Nc)),n?Promise.resolve():t}));return Promise.all(n).then(Nc)}async query(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t),n=r.isStaleByTime(_c(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t);return r.isStaleByTime(_c(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nc).catch(Nc)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nc).catch(Nc)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Jc.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#l}getDefaultOptions(){return this.#S}setDefaultOptions(e){this.#S=e}setQueryDefaults(e,t){this.#N.set(Tc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#N.values()],r={};return t.forEach(t=>{Mc(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#_.set(Tc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#_.values()],r={};return t.forEach(t=>{Mc(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#S.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#S.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#l.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});pu.render((0,o().jsx)(Yt,{onError:function(e,t){},children:(0,o().jsx)(Sc,{client:mu,children:(0,o().jsx)(ru,{})})}));var vu=document.getElementById(hu);vu||((vu=document.createElement("div")).id=hu,document.body.appendChild(vu)),n().createRoot(vu).render((0,o().jsx)(sc,{position:"bottom-right",containerClassName:"vt-ui vt-quickact-toaster",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}}))})();
  • versatile-toolkit/tags/1.0.12/constants.php

    r3534655 r3798170  
    1212}
    1313
    14 define( 'VERSATILE_VERSION', '1.0.11' );
     14define( 'VERSATILE_VERSION', '1.0.12' );
    1515define( 'VERSATILE_PLUGIN_NAME', 'versatile-toolkit' );
    1616define( 'VERSATILE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • versatile-toolkit/tags/1.0.12/languages/versatile-toolkit.pot

    r3534655 r3798170  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Versatile Toolkit 1.0.11\n"
     5"Project-Id-Version: Versatile Toolkit 1.0.12\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/versatile\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-05-17T15:51:49+00:00\n"
     12"POT-Creation-Date: 2026-11-12T11:28:38+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • versatile-toolkit/tags/1.0.12/readme.txt

    r3534655 r3798170  
    33Tags: troubleshooting, temporary login, maintenance mode, coming soon, IP control, WordPress toolkit
    44Requires at least: 5.3
    5 Tested up to: 6.9.4
     5Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.11
     7Stable tag: 1.0.12
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    9292== Changelog ==
    9393
     94= 1.0.12 =
     95* Scoped Tailwind preflight to the plugin UI so wp-admin styles stay intact.
     96* Copy debug log entries from the view log dialog.
     97
     98
    9499= 1.0.11 =
    95100* Quick Top actions like reset permalink, plugin & theme activate/deactivation also deletion.
  • versatile-toolkit/tags/1.0.12/versatile-toolkit.php

    r3534655 r3798170  
    22/**
    33 * Plugin Name: Versatile Toolkit
    4  * Version: 1.0.11
     4 * Version: 1.0.12
    55 * Requires at least: 5.3
    66 * Requires PHP: 7.4
  • versatile-toolkit/trunk/assets/dist/css/style.min.css

    r3534655 r3798170  
    1 *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
     1:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:where(#versatile-root,#vt-quickact-container,.vt-ui) ::backdrop,:where(#versatile-root,#vt-quickact-container,.vt-ui)::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
    22! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
    3 */*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:is(#versatile-root,#vt-quickact-container,body) .vt-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-pointer-events-none{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .vt-fixed{position:fixed}:is(#versatile-root,#vt-quickact-container,body) .vt-absolute{position:absolute}:is(#versatile-root,#vt-quickact-container,body) .vt-relative{position:relative}:is(#versatile-root,#vt-quickact-container,body) .vt-sticky{position:sticky}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-0{inset:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-x-0{left:0;right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-y-0{bottom:0;top:0}:is(#versatile-root,#vt-quickact-container,body) .vt--top-\[15px\]{top:-15px}:is(#versatile-root,#vt-quickact-container,body) .vt-bottom-0{bottom:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-0{left:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-2{left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-3{left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-\[50\%\]{left:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-right-0{right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-right-1{right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-2{right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-4{right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-0{top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-top-1\/2{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-top-2{top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-4{top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-\[50\%\]{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-z-10{z-index:10}:is(#versatile-root,#vt-quickact-container,body) .vt-z-50{z-index:50}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[1000000\]{z-index:1000000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[100000\]{z-index:100000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[999999\]{z-index:999999}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[99999\]{z-index:99999}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-1{margin-left:.25rem;margin-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-2{margin-left:.5rem;margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-auto{margin-left:auto;margin-right:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-my-2{margin-bottom:.5rem;margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-my-8{margin-bottom:2rem;margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-1{margin-bottom:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-2{margin-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-3{margin-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-4{margin-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-1{margin-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-2{margin-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-auto{margin-left:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-mr-2{margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-1{margin-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-10{margin-top:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-2{margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-3{margin-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-4{margin-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-5{margin-top:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-6{margin-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-8{margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(#versatile-root,#vt-quickact-container,body) .vt-block{display:block}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-block{display:inline-block}:is(#versatile-root,#vt-quickact-container,body) .vt-flex{display:flex}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-flex{display:inline-flex}:is(#versatile-root,#vt-quickact-container,body) .vt-grid{display:grid}:is(#versatile-root,#vt-quickact-container,body) .vt-hidden{display:none}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-\[4\/3\]{aspect-ratio:4/3}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-square{aspect-ratio:1/1}:is(#versatile-root,#vt-quickact-container,body) .vt-h-10{height:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-12{height:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-16{height:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-2\.5{height:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-3{height:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-32{height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-4{height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5{height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5\/6{height:83.333333%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-6{height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-8{height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-9{height:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[100px\]{height:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[1500px\]{height:1500px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[25px\]{height:25px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[45px\]{height:45px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-auto{height:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-h-full{height:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-min{height:-moz-min-content;height:min-content}:is(#versatile-root,#vt-quickact-container,body) .vt-h-px{height:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-32{max-height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-60{max-height:15rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[300px\]{max-height:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[70vh\]{max-height:70vh}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[42px\]{min-height:42px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[60px\]{min-height:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[unset\]{min-height:unset}:is(#versatile-root,#vt-quickact-container,body) .vt-w-1\/2{width:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-10{width:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11{width:2.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11\/12{width:91.666667%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-12{width:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-16{width:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-2\.5{width:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-20{width:5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-24{width:6rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3{width:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3\/4{width:75%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-32{width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-36{width:9rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-4{width:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-40{width:10rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-48{width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-5{width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-6{width:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-64{width:16rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-72{width:18rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-8{width:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-9{width:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[100px\]{width:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[200px\]{width:200px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[20rem\]{width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[300px\]{width:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[60px\]{width:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[80\%\]{width:80%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[900px\]{width:900px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-full{width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-max{width:-moz-max-content;width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[11rem\]{min-width:11rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[12rem\]{min-width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[8rem\]{min-width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-full{min-width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-2xl{max-width:42rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-4xl{max-width:56rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-6xl{max-width:72rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[20rem\]{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[800px\]{max-width:800px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-lg{max-width:32rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-max{max-width:-moz-max-content;max-width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-md{max-width:28rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-xs{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-1{flex:1 1 0%}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-caption-bottom{caption-side:bottom}:is(#versatile-root,#vt-quickact-container,body) .-vt-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-x-\[-50\%\]{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-y-\[-50\%\]{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-pulse{50%{opacity:.5}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-pulse{animation:vt-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes vt-spin{to{transform:rotate(1turn)}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-spin{animation:vt-spin 1s linear infinite}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-default{cursor:default}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-pointer{cursor:pointer}:is(#versatile-root,#vt-quickact-container,body) .vt-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-\[repeat\(auto-fill\,minmax\(300px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col{flex-direction:column}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col-reverse{flex-direction:column-reverse}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-wrap{flex-wrap:wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .\!vt-justify-start{justify-content:flex-start!important}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-start{justify-content:flex-start}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-center{justify-content:center}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-1{gap:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-10{gap:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-2{gap:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-3{gap:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-4{gap:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-5{gap:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-auto{overflow:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-hidden{overflow:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-auto{overflow-x:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-y-auto{overflow-y:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-hidden{overflow-x:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-scroll-auto{scroll-behavior:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-nowrap{white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-pre-wrap{white-space:pre-wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-break-words{overflow-wrap:break-word}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded{border-radius:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-2xl{border-radius:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-full{border-radius:9999px}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-md{border-radius:calc(var(--radius) - 2px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-sm{border-radius:calc(var(--radius) - 4px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-xl{border-radius:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-border{border-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-0{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .vt-border-2{border-width:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-b{border-bottom-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-l{border-left-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-r{border-right-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-t{border-top-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-700{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-input{border-color:hsl(var(--input))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-primary{border-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-transparent{border-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#c7c6c6\]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#e5e5e5\]{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background{background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background\/80{background-color:hsl(var(--background)/.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black\/80{background-color:rgba(0,0,0,.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-border{background-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-card{background-color:hsl(var(--card))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-destructive{background-color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted\/50{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-popover{background-color:hsl(var(--popover))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary\/10{background-color:hsl(var(--primary)/.1)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-secondary{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-transparent{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-opacity-85{--tw-bg-opacity:0.85}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}:is(#versatile-root,#vt-quickact-container,body) .vt-from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,246,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(#versatile-root,#vt-quickact-container,body) .vt-to-indigo-100{--tw-gradient-to:#e0e7ff var(--tw-gradient-to-position)}:is(#versatile-root,#vt-quickact-container,body) .vt-fill-current{fill:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-object-cover{-o-object-fit:cover;object-fit:cover}:is(#versatile-root,#vt-quickact-container,body) .vt-p-0{padding:0}:is(#versatile-root,#vt-quickact-container,body) .vt-p-1{padding:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-2{padding:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-3{padding:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-4{padding:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-6{padding:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-7{padding:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .\!vt-px-\[1px\]{padding-left:1px!important;padding-right:1px!important}:is(#versatile-root,#vt-quickact-container,body) .\!vt-py-\[1px\]{padding-bottom:1px!important;padding-top:1px!important}:is(#versatile-root,#vt-quickact-container,body) .vt-px-1{padding-left:.25rem;padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2{padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2\.5{padding-left:.625rem;padding-right:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-3{padding-left:.75rem;padding-right:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-4{padding-left:1rem;padding-right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-8{padding-left:2rem;padding-right:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-0\.5{padding-bottom:.125rem;padding-top:.125rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1{padding-bottom:.25rem;padding-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1\.5{padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-12{padding-bottom:3rem;padding-top:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-2{padding-bottom:.5rem;padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-3{padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-4{padding-bottom:1rem;padding-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-6{padding-bottom:1.5rem;padding-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-2{padding-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-3{padding-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-4{padding-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-5{padding-bottom:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-1{padding-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-10{padding-left:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-2{padding-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-3{padding-left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-7{padding-left:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-8{padding-left:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-1{padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-2{padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-7{padding-right:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-0{padding-top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-2{padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-3{padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-left{text-align:left}:is(#versatile-root,#vt-quickact-container,body) .vt-text-center{text-align:center}:is(#versatile-root,#vt-quickact-container,body) .vt-align-middle{vertical-align:middle}:is(#versatile-root,#vt-quickact-container,body) .vt-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:is(#versatile-root,#vt-quickact-container,body) .vt-text-2xl{font-size:1.5rem;line-height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-\[0\.8rem\]{font-size:.8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-base{font-size:1rem;line-height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-lg{font-size:1.125rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-sm{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xl{font-size:1.25rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xs{font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-font-bold{font-weight:700}:is(#versatile-root,#vt-quickact-container,body) .vt-font-medium{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .vt-font-normal{font-weight:400}:is(#versatile-root,#vt-quickact-container,body) .vt-font-semibold{font-weight:600}:is(#versatile-root,#vt-quickact-container,body) .vt-leading-none{line-height:1}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-tight{letter-spacing:-.025em}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-widest{letter-spacing:.1em}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-card-foreground{color:hsl(var(--card-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-current{color:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive-foreground{color:hsl(var(--destructive-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-foreground{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-muted-foreground{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-popover-foreground{color:hsl(var(--popover-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary{color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary-foreground{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary{color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary-foreground{color:hsl(var(--secondary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-underline-offset-4{text-underline-offset:4px}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-0{opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-100{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-20{opacity:.2}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-25{opacity:.25}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-50{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-70{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-75{opacity:.75}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-outline-none{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{transition-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{transition-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-in{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .vt-fade-in-0{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-zoom-in-95{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{animation-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{animation-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{animation-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{box-shadow:unset;color:unset;outline:unset}a:active,a:focus,a:hover{color:unset}#versatile-root{margin-right:20px}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-border-0::file-selector-button{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-bg-transparent::file-selector-button{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-font-medium::file-selector-button{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-foreground::file-selector-button{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-absolute:after{content:var(--tw-content);position:absolute}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-left-\[2px\]:after{content:var(--tw-content);left:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-top-\[2px\]:after{content:var(--tw-content);top:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-h-5:after{content:var(--tw-content);height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-w-5:after{content:var(--tw-content);width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-rounded-full:after{border-radius:9999px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border:after{border-width:1px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-gray-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-slate-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-bg-white:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-accent:hover{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-200\/80:hover{background-color:rgba(187,247,208,.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-50\/60:hover{background-color:rgba(248,250,252,.6)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-900:hover{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-destructive:hover{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-underline:hover{text-decoration-line:underline}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-opacity-100:hover{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-1:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-gray-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-bg-accent:focus{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .focus\:\!vt-text-white:focus{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-offset-2:focus{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-blue-300:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-pointer-events-none:disabled{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-cursor-not-allowed:disabled{cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-bg-slate-300:disabled{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-50:disabled{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-70:disabled{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-border-border){border-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-muted){background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-primary){background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-bg-background){background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-muted-foreground){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-primary-foreground){color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-text-foreground){color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-shadow-lg){--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:vt-bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-translate-x-full):after{content:var(--tw-content);--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-border-white):after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-outline-none){outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-4){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-blue-300){--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-cursor-not-allowed){cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-opacity-70){opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-pointer-events-none[data-disabled=true]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-pointer-events-none[data-disabled]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-translate-x-5[data-state=checked]{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-translate-x-0[data-state=unchecked]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-accordion-up[data-state=closed]{animation:vt-accordion-up .2s ease-out}@keyframes vt-accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-accordion-down[data-state=open]{animation:vt-accordion-down .2s ease-out}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-bg-accent[data-selected=true]{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-blue-600[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=selected\]\:vt-bg-muted[data-state=selected]{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-bg-\[\#c7c6c6\][data-state=unchecked]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-opacity-50[data-disabled=true]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-opacity-50[data-disabled]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-fade-out-0[data-state=closed]{--tw-exit-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-fade-in-0[data-state=open]{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-zoom-in-95[data-state=open]{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=bottom\]\:vt-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=left\]\:vt-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=right\]\:vt-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=top\]\:vt-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{animation-duration:.5s}@media (min-width:640px){:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[425px\]{max-width:425px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[540px\]{max-width:540px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) :is(.sm\:vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-text-left{text-align:left}}@media (min-width:768px){:is(#versatile-root,#vt-quickact-container,body) .md\:vt-text-sm{font-size:.875rem;line-height:1.25rem}}:is(#versatile-root,#vt-quickact-container,body) .\[\&\:has\(\[role\=checkbox\]\)\]\:vt-pr-0:has([role=checkbox]){padding-right:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>\[role\=checkbox\]\]\:vt-translate-y-\[2px\]>[role=checkbox]){--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>tr\]\:last\:vt-border-b-0:last-child>tr){border-bottom-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-py-1\.5 [cmdk-group-heading]){padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-font-medium [cmdk-group-heading]){font-weight:500}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:vt-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\]\:vt-px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-h-5 [cmdk-input-wrapper] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-w-5 [cmdk-input-wrapper] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input\]\]\:vt-h-12 [cmdk-input]){height:3rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-py-3 [cmdk-item]){padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-h-5 [cmdk-item] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-w-5 [cmdk-item] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-pointer-events-none svg){pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-size-4 svg){height:1rem;width:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-shrink-0 svg){flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\:last-child\]\:vt-border-0 tr:last-child){border-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\]\:vt-border-b tr){border-bottom-width:1px}
     3*/:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{border:0 solid #e5e7eb;box-sizing:border-box}:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{--tw-content:""}:where(#versatile-root,.vt-ui){line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}#versatile-root{line-height:inherit;margin:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) hr{border-top-width:1px;color:inherit;height:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(#versatile-root,#vt-quickact-container,.vt-ui) h1,:where(#versatile-root,#vt-quickact-container,.vt-ui) h2,:where(#versatile-root,#vt-quickact-container,.vt-ui) h3,:where(#versatile-root,#vt-quickact-container,.vt-ui) h4,:where(#versatile-root,#vt-quickact-container,.vt-ui) h5,:where(#versatile-root,#vt-quickact-container,.vt-ui) h6{font-size:inherit;font-weight:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) a{color:inherit;text-decoration:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) b,:where(#versatile-root,#vt-quickact-container,.vt-ui) strong{font-weight:bolder}:where(#versatile-root,#vt-quickact-container,.vt-ui) code,:where(#versatile-root,#vt-quickact-container,.vt-ui) kbd,:where(#versatile-root,#vt-quickact-container,.vt-ui) pre,:where(#versatile-root,#vt-quickact-container,.vt-ui) samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}:where(#versatile-root,#vt-quickact-container,.vt-ui) small{font-size:80%}:where(#versatile-root,#vt-quickact-container,.vt-ui) sub,:where(#versatile-root,#vt-quickact-container,.vt-ui) sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:where(#versatile-root,#vt-quickact-container,.vt-ui) sub{bottom:-.25em}:where(#versatile-root,#vt-quickact-container,.vt-ui) sup{top:-.5em}:where(#versatile-root,#vt-quickact-container,.vt-ui) table{border-collapse:collapse;border-color:inherit;text-indent:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) input,:where(#versatile-root,#vt-quickact-container,.vt-ui) optgroup,:where(#versatile-root,#vt-quickact-container,.vt-ui) select,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) select{text-transform:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) button,:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=button]),:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=reset]),:where(#versatile-root,#vt-quickact-container,.vt-ui) input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) :-moz-focusring{outline:auto}:where(#versatile-root,#vt-quickact-container,.vt-ui) :-moz-ui-invalid{box-shadow:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) progress{vertical-align:baseline}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-inner-spin-button,:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-outer-spin-button{height:auto}:where(#versatile-root,#vt-quickact-container,.vt-ui) [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-search-decoration{-webkit-appearance:none}:where(#versatile-root,#vt-quickact-container,.vt-ui) ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(#versatile-root,#vt-quickact-container,.vt-ui) summary{display:list-item}:where(#versatile-root,#vt-quickact-container,.vt-ui) blockquote,:where(#versatile-root,#vt-quickact-container,.vt-ui) dd,:where(#versatile-root,#vt-quickact-container,.vt-ui) dl,:where(#versatile-root,#vt-quickact-container,.vt-ui) figure,:where(#versatile-root,#vt-quickact-container,.vt-ui) h1,:where(#versatile-root,#vt-quickact-container,.vt-ui) h2,:where(#versatile-root,#vt-quickact-container,.vt-ui) h3,:where(#versatile-root,#vt-quickact-container,.vt-ui) h4,:where(#versatile-root,#vt-quickact-container,.vt-ui) h5,:where(#versatile-root,#vt-quickact-container,.vt-ui) h6,:where(#versatile-root,#vt-quickact-container,.vt-ui) hr,:where(#versatile-root,#vt-quickact-container,.vt-ui) p,:where(#versatile-root,#vt-quickact-container,.vt-ui) pre{margin:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) fieldset{margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) legend{padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) menu,:where(#versatile-root,#vt-quickact-container,.vt-ui) ol,:where(#versatile-root,#vt-quickact-container,.vt-ui) ul{list-style:none;margin:0;padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) dialog{padding:0}:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea{resize:vertical}:where(#versatile-root,#vt-quickact-container,.vt-ui) input::-moz-placeholder,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea::-moz-placeholder{color:#9ca3af;opacity:1}:where(#versatile-root,#vt-quickact-container,.vt-ui) input::placeholder,:where(#versatile-root,#vt-quickact-container,.vt-ui) textarea::placeholder{color:#9ca3af;opacity:1}:where(#versatile-root,#vt-quickact-container,.vt-ui) [role=button],:where(#versatile-root,#vt-quickact-container,.vt-ui) button{cursor:pointer}:where(#versatile-root,#vt-quickact-container,.vt-ui) :disabled{cursor:default}:where(#versatile-root,#vt-quickact-container,.vt-ui) audio,:where(#versatile-root,#vt-quickact-container,.vt-ui) canvas,:where(#versatile-root,#vt-quickact-container,.vt-ui) embed,:where(#versatile-root,#vt-quickact-container,.vt-ui) iframe,:where(#versatile-root,#vt-quickact-container,.vt-ui) img,:where(#versatile-root,#vt-quickact-container,.vt-ui) object,:where(#versatile-root,#vt-quickact-container,.vt-ui) svg,:where(#versatile-root,#vt-quickact-container,.vt-ui) video{display:block;vertical-align:middle}:where(#versatile-root,#vt-quickact-container,.vt-ui) img,:where(#versatile-root,#vt-quickact-container,.vt-ui) video{height:auto;max-width:100%}:where(#versatile-root,#vt-quickact-container,.vt-ui) [hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:12 76% 61%;--chart-2:173 58% 39%;--chart-3:197 37% 24%;--chart-4:43 74% 66%;--chart-5:27 87% 67%}:is(#versatile-root,#vt-quickact-container,body) .vt-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-pointer-events-none{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .vt-fixed{position:fixed}:is(#versatile-root,#vt-quickact-container,body) .vt-absolute{position:absolute}:is(#versatile-root,#vt-quickact-container,body) .vt-relative{position:relative}:is(#versatile-root,#vt-quickact-container,body) .vt-sticky{position:sticky}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-0{inset:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-x-0{left:0;right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-inset-y-0{bottom:0;top:0}:is(#versatile-root,#vt-quickact-container,body) .vt--top-\[15px\]{top:-15px}:is(#versatile-root,#vt-quickact-container,body) .vt-bottom-0{bottom:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-0{left:0}:is(#versatile-root,#vt-quickact-container,body) .vt-left-2{left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-3{left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-left-\[50\%\]{left:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-right-0{right:0}:is(#versatile-root,#vt-quickact-container,body) .vt-right-1{right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-2{right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-right-4{right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-0{top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-top-1\/2{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-top-2{top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-4{top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-top-\[50\%\]{top:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-z-10{z-index:10}:is(#versatile-root,#vt-quickact-container,body) .vt-z-50{z-index:50}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[1000000\]{z-index:1000000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[100000\]{z-index:100000}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[999999\]{z-index:999999}:is(#versatile-root,#vt-quickact-container,body) .vt-z-\[99999\]{z-index:99999}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-1{margin-left:.25rem;margin-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-2{margin-left:.5rem;margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mx-auto{margin-left:auto;margin-right:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-my-2{margin-bottom:.5rem;margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-my-8{margin-bottom:2rem;margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-1{margin-bottom:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-2{margin-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-3{margin-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mb-4{margin-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-1{margin-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-2{margin-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-ml-auto{margin-left:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-mr-2{margin-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-1{margin-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-10{margin-top:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-2{margin-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-3{margin-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-4{margin-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-5{margin-top:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-6{margin-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-mt-8{margin-top:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(#versatile-root,#vt-quickact-container,body) .vt-block{display:block}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-block{display:inline-block}:is(#versatile-root,#vt-quickact-container,body) .vt-flex{display:flex}:is(#versatile-root,#vt-quickact-container,body) .vt-inline-flex{display:inline-flex}:is(#versatile-root,#vt-quickact-container,body) .vt-grid{display:grid}:is(#versatile-root,#vt-quickact-container,body) .vt-hidden{display:none}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-\[4\/3\]{aspect-ratio:4/3}:is(#versatile-root,#vt-quickact-container,body) .vt-aspect-square{aspect-ratio:1/1}:is(#versatile-root,#vt-quickact-container,body) .vt-h-10{height:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-12{height:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-16{height:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-2\.5{height:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-3{height:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-32{height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-4{height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5{height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-5\/6{height:83.333333%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-6{height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-8{height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-9{height:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[100px\]{height:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[1500px\]{height:1500px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[25px\]{height:25px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-\[45px\]{height:45px}:is(#versatile-root,#vt-quickact-container,body) .vt-h-auto{height:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-h-full{height:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-h-min{height:-moz-min-content;height:min-content}:is(#versatile-root,#vt-quickact-container,body) .vt-h-px{height:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-32{max-height:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-60{max-height:15rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[300px\]{max-height:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-h-\[70vh\]{max-height:70vh}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[42px\]{min-height:42px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[60px\]{min-height:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-min-h-\[unset\]{min-height:unset}:is(#versatile-root,#vt-quickact-container,body) .vt-w-1\/2{width:50%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-10{width:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11{width:2.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-11\/12{width:91.666667%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-12{width:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-16{width:4rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-2\.5{width:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-20{width:5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-24{width:6rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3{width:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-3\/4{width:75%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-32{width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-36{width:9rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-4{width:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-40{width:10rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-48{width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-5{width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-6{width:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-64{width:16rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-72{width:18rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-8{width:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-9{width:2.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[100px\]{width:100px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[200px\]{width:200px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[20rem\]{width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[300px\]{width:300px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[60px\]{width:60px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[80\%\]{width:80%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-\[900px\]{width:900px}:is(#versatile-root,#vt-quickact-container,body) .vt-w-full{width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-w-max{width:-moz-max-content;width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[11rem\]{min-width:11rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[12rem\]{min-width:12rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-\[8rem\]{min-width:8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-min-w-full{min-width:100%}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-2xl{max-width:42rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-4xl{max-width:56rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-6xl{max-width:72rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[20rem\]{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-\[800px\]{max-width:800px}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-lg{max-width:32rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-max{max-width:-moz-max-content;max-width:max-content}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-md{max-width:28rem}:is(#versatile-root,#vt-quickact-container,body) .vt-max-w-xs{max-width:20rem}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-1{flex:1 1 0%}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-shrink-0{flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) .vt-caption-bottom{caption-side:bottom}:is(#versatile-root,#vt-quickact-container,body) .-vt-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-x-\[-50\%\]{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-translate-y-\[-50\%\]{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .vt-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-pulse{50%{opacity:.5}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-pulse{animation:vt-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes vt-spin{to{transform:rotate(1turn)}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-spin{animation:vt-spin 1s linear infinite}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-default{cursor:default}:is(#versatile-root,#vt-quickact-container,body) .vt-cursor-pointer{cursor:pointer}:is(#versatile-root,#vt-quickact-container,body) .vt-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-grid-cols-\[repeat\(auto-fill\,minmax\(300px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col{flex-direction:column}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-col-reverse{flex-direction:column-reverse}:is(#versatile-root,#vt-quickact-container,body) .vt-flex-wrap{flex-wrap:wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .\!vt-justify-start{justify-content:flex-start!important}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-start{justify-content:flex-start}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-center{justify-content:center}:is(#versatile-root,#vt-quickact-container,body) .vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-1{gap:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-10{gap:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-2{gap:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-3{gap:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-4{gap:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-gap-5{gap:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-auto{overflow:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-hidden{overflow:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-auto{overflow-x:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-y-auto{overflow-y:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-overflow-x-hidden{overflow-x:hidden}:is(#versatile-root,#vt-quickact-container,body) .vt-scroll-auto{scroll-behavior:auto}:is(#versatile-root,#vt-quickact-container,body) .vt-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-nowrap{white-space:nowrap}:is(#versatile-root,#vt-quickact-container,body) .vt-whitespace-pre-wrap{white-space:pre-wrap}:is(#versatile-root,#vt-quickact-container,body) .vt-break-words{overflow-wrap:break-word}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded{border-radius:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-2xl{border-radius:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-full{border-radius:9999px}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-md{border-radius:calc(var(--radius) - 2px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-sm{border-radius:calc(var(--radius) - 4px)}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-xl{border-radius:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .vt-border{border-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-0{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .vt-border-2{border-width:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-b{border-bottom-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-l{border-left-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-r{border-right-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-t{border-top-width:1px}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-blue-700{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-input{border-color:hsl(var(--input))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-primary{border-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-border-transparent{border-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#c7c6c6\]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-\[\#e5e5e5\]{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background{background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-background\/80{background-color:hsl(var(--background)/.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-black\/80{background-color:rgba(0,0,0,.8)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-border{background-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-card{background-color:hsl(var(--card))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-destructive{background-color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-muted\/50{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-popover{background-color:hsl(var(--popover))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-primary\/10{background-color:hsl(var(--primary)/.1)}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-secondary{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-transparent{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-opacity-85{--tw-bg-opacity:0.85}:is(#versatile-root,#vt-quickact-container,body) .vt-bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}:is(#versatile-root,#vt-quickact-container,body) .vt-from-blue-50{--tw-gradient-from:#eff6ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,246,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(#versatile-root,#vt-quickact-container,body) .vt-to-indigo-100{--tw-gradient-to:#e0e7ff var(--tw-gradient-to-position)}:is(#versatile-root,#vt-quickact-container,body) .vt-fill-current{fill:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-object-cover{-o-object-fit:cover;object-fit:cover}:is(#versatile-root,#vt-quickact-container,body) .vt-p-0{padding:0}:is(#versatile-root,#vt-quickact-container,body) .vt-p-1{padding:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-2{padding:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-3{padding:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-4{padding:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-6{padding:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-p-7{padding:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .\!vt-px-\[1px\]{padding-left:1px!important;padding-right:1px!important}:is(#versatile-root,#vt-quickact-container,body) .\!vt-py-\[1px\]{padding-bottom:1px!important;padding-top:1px!important}:is(#versatile-root,#vt-quickact-container,body) .vt-px-1{padding-left:.25rem;padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2{padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-2\.5{padding-left:.625rem;padding-right:.625rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-3{padding-left:.75rem;padding-right:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-4{padding-left:1rem;padding-right:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-px-8{padding-left:2rem;padding-right:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-0\.5{padding-bottom:.125rem;padding-top:.125rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1{padding-bottom:.25rem;padding-top:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-1\.5{padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-12{padding-bottom:3rem;padding-top:3rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-2{padding-bottom:.5rem;padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-3{padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-4{padding-bottom:1rem;padding-top:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-py-6{padding-bottom:1.5rem;padding-top:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-2{padding-bottom:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-3{padding-bottom:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-4{padding-bottom:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pb-5{padding-bottom:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-1{padding-left:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-10{padding-left:2.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-2{padding-left:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-3{padding-left:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-7{padding-left:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pl-8{padding-left:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-1{padding-right:.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-2{padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pr-7{padding-right:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-0{padding-top:0}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-2{padding-top:.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-pt-3{padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-left{text-align:left}:is(#versatile-root,#vt-quickact-container,body) .vt-text-center{text-align:center}:is(#versatile-root,#vt-quickact-container,body) .vt-align-middle{vertical-align:middle}:is(#versatile-root,#vt-quickact-container,body) .vt-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}:is(#versatile-root,#vt-quickact-container,body) .vt-text-2xl{font-size:1.5rem;line-height:2rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-\[0\.8rem\]{font-size:.8rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-base{font-size:1rem;line-height:1.5rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-lg{font-size:1.125rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-sm{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xl{font-size:1.25rem;line-height:1.75rem}:is(#versatile-root,#vt-quickact-container,body) .vt-text-xs{font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) .vt-font-bold{font-weight:700}:is(#versatile-root,#vt-quickact-container,body) .vt-font-medium{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .vt-font-normal{font-weight:400}:is(#versatile-root,#vt-quickact-container,body) .vt-font-semibold{font-weight:600}:is(#versatile-root,#vt-quickact-container,body) .vt-leading-none{line-height:1}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-tight{letter-spacing:-.025em}:is(#versatile-root,#vt-quickact-container,body) .vt-tracking-widest{letter-spacing:.1em}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-card-foreground{color:hsl(var(--card-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-current{color:currentColor}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-destructive-foreground{color:hsl(var(--destructive-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-foreground{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-muted-foreground{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-popover-foreground{color:hsl(var(--popover-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary{color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-primary-foreground{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary{color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-secondary-foreground{color:hsl(var(--secondary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-underline-offset-4{text-underline-offset:4px}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-0{opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-100{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-20{opacity:.2}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-25{opacity:.25}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-50{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-70{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .vt-opacity-75{opacity:.75}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .vt-outline-none{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .vt-ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) .vt-backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{transition-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{transition-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}:is(#versatile-root,#vt-quickact-container,body) .vt-animate-in{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .vt-fade-in-0{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .vt-zoom-in-95{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-1000{animation-duration:1s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-200{animation-duration:.2s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-300{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .vt-duration-500{animation-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .vt-ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}:where(#versatile-root,#vt-quickact-container,.vt-ui),:where(#versatile-root,#vt-quickact-container,.vt-ui) *,:where(#versatile-root,#vt-quickact-container,.vt-ui) :after,:where(#versatile-root,#vt-quickact-container,.vt-ui) :before,:where(#versatile-root,#vt-quickact-container,.vt-ui):after,:where(#versatile-root,#vt-quickact-container,.vt-ui):before{border-color:hsl(var(--border))}#versatile-root{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:20px}:where(#versatile-root,#vt-quickact-container,.vt-ui) .wp-person a:focus .gravatar,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus .media-icon img,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus .plugin-icon{box-shadow:unset;color:unset;outline:unset}:where(#versatile-root,#vt-quickact-container,.vt-ui) a:active,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:focus,:where(#versatile-root,#vt-quickact-container,.vt-ui) a:hover{color:unset}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-border-0::file-selector-button{border-width:0}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-bg-transparent::file-selector-button{background-color:transparent}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-font-medium::file-selector-button{font-weight:500}:is(#versatile-root,#vt-quickact-container,body) .file\:vt-text-foreground::file-selector-button{color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .placeholder\:vt-text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-absolute:after{content:var(--tw-content);position:absolute}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-left-\[2px\]:after{content:var(--tw-content);left:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-top-\[2px\]:after{content:var(--tw-content);top:2px}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-h-5:after{content:var(--tw-content);height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-w-5:after{content:var(--tw-content);width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-rounded-full:after{border-radius:9999px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border:after{border-width:1px;content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-gray-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-border-slate-300:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-bg-white:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(#versatile-root,#vt-quickact-container,body) .after\:vt-content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-border-blue-300:hover{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-accent:hover{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-200:hover{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-200\/80:hover{background-color:rgba(187,247,208,.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-slate-50\/60:hover{background-color:rgba(248,250,252,.6)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-bg-yellow-700:hover{--tw-bg-opacity:1;background-color:rgb(161 98 7/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-accent-foreground:hover{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-800:hover{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-blue-900:hover{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-destructive:hover{color:hsl(var(--destructive))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-underline:hover{text-decoration-line:underline}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-opacity-100:hover{opacity:1}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-1:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .hover\:vt-ring-gray-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-bg-accent:focus{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .focus\:\!vt-text-white:focus{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-text-accent-foreground:focus{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-ring:focus{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus\:vt-ring-offset-2:focus{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-blue-300:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}:is(#versatile-root,#vt-quickact-container,body) .focus-visible\:vt-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-pointer-events-none:disabled{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-cursor-not-allowed:disabled{cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-bg-slate-300:disabled{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-50:disabled{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .disabled\:vt-opacity-70:disabled{opacity:.7}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-border-border){border-color:hsl(var(--border))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-muted){background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-bg-primary){background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-bg-background){background-color:hsl(var(--background))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-muted-foreground){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toast .group-\[\.toast\]\:vt-text-primary-foreground){color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-text-foreground){color:hsl(var(--foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-group.toaster .group-\[\.toaster\]\:vt-shadow-lg){--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:vt-bg-blue-600){--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-translate-x-full):after{content:var(--tw-content);--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:checked~.peer-checked\:after\:vt-border-white):after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-outline-none){outline:2px solid transparent;outline-offset:2px}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-4){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:focus~.peer-focus\:vt-ring-blue-300){--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-cursor-not-allowed){cursor:not-allowed}:is(#versatile-root,#vt-quickact-container,body) :is(.vt-peer:disabled~.peer-disabled\:vt-opacity-70){opacity:.7}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-pointer-events-none[data-disabled=true]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-pointer-events-none[data-disabled]{pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-translate-x-5[data-state=checked]{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-translate-x-0[data-state=unchecked]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes vt-accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-accordion-up[data-state=closed]{animation:vt-accordion-up .2s ease-out}@keyframes vt-accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-accordion-down[data-state=open]{animation:vt-accordion-down .2s ease-out}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-bg-accent[data-selected=true]{background-color:hsl(var(--accent))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-blue-600[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-bg-primary[data-state=checked]{background-color:hsl(var(--primary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=selected\]\:vt-bg-muted[data-state=selected]{background-color:hsl(var(--muted))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=unchecked\]\:vt-bg-\[\#c7c6c6\][data-state=unchecked]{--tw-bg-opacity:1;background-color:rgb(199 198 198/var(--tw-bg-opacity,1))}:is(#versatile-root,#vt-quickact-container,body) .data-\[selected\=true\]\:vt-text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=checked\]\:vt-text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\=true\]\:vt-opacity-50[data-disabled=true]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[disabled\]\:vt-opacity-50[data-disabled]{opacity:.5}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{transition-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{transition-duration:.5s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-fade-out-0[data-state=closed]{--tw-exit-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-fade-in-0[data-state=open]{--tw-enter-opacity:0}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-zoom-out-95[data-state=closed]{--tw-exit-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-zoom-in-95[data-state=open]{--tw-enter-scale:.95}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=bottom\]\:vt-slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=left\]\:vt-slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=right\]\:vt-slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[side\=top\]\:vt-slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=closed\]\:vt-duration-300[data-state=closed]{animation-duration:.3s}:is(#versatile-root,#vt-quickact-container,body) .data-\[state\=open\]\:vt-duration-500[data-state=open]{animation-duration:.5s}@media (min-width:640px){:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[425px\]{max-width:425px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-max-w-\[540px\]{max-width:540px}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-flex-row{flex-direction:row}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-items-center{align-items:center}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-end{justify-content:flex-end}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-justify-between{justify-content:space-between}:is(#versatile-root,#vt-quickact-container,body) :is(.sm\:vt-space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-rounded-lg{border-radius:var(--radius)}:is(#versatile-root,#vt-quickact-container,body) .sm\:vt-text-left{text-align:left}}@media (min-width:768px){:is(#versatile-root,#vt-quickact-container,body) .md\:vt-text-sm{font-size:.875rem;line-height:1.25rem}}:is(#versatile-root,#vt-quickact-container,body) .\[\&\:has\(\[role\=checkbox\]\)\]\:vt-pr-0:has([role=checkbox]){padding-right:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>\[role\=checkbox\]\]\:vt-translate-y-\[2px\]>[role=checkbox]){--tw-translate-y:2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&\>tr\]\:last\:vt-border-b-0:last-child>tr){border-bottom-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-py-1\.5 [cmdk-group-heading]){padding-bottom:.375rem;padding-top:.375rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-font-medium [cmdk-group-heading]){font-weight:500}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group-heading\]\]\:vt-text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:vt-pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-group\]\]\:vt-px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-h-5 [cmdk-input-wrapper] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:vt-w-5 [cmdk-input-wrapper] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-input\]\]\:vt-h-12 [cmdk-input]){height:3rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]\]\:vt-py-3 [cmdk-item]){padding-bottom:.75rem;padding-top:.75rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-h-5 [cmdk-item] svg){height:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_\[cmdk-item\]_svg\]\:vt-w-5 [cmdk-item] svg){width:1.25rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-pointer-events-none svg){pointer-events:none}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-size-4 svg){height:1rem;width:1rem}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_svg\]\:vt-shrink-0 svg){flex-shrink:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\:last-child\]\:vt-border-0 tr:last-child){border-width:0}:is(#versatile-root,#vt-quickact-container,body) :is(.\[\&_tr\]\:vt-border-b tr){border-bottom-width:1px}
  • versatile-toolkit/trunk/assets/dist/js/versatile-js.min.js

    r3534655 r3798170  
    1 (()=>{"use strict";var e,t,r={338(e,t,r){var n=r(206);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},20(e,t,r){var n=r(594),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},848(e,t,r){e.exports=r(20)},594(e){e.exports=React},206(e){e.exports=ReactDOM}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,o.d(a,i),a},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a=o(338),i=o(594),s=o.t(i,2),l="popstate";function c(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){return y(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=m(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:h(t))},function(e,t){f("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function f(e,t){if(!e)try{throw new Error(t)}catch(e){}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function v(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:o}}function h({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",u=null,d=f();function f(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=f(),t=null==e?null:e-d;d=e,u&&u({action:s,location:y.location,delta:t})}function m(e){return g(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let y={get action(){return s},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(l,h),u=e,()=>{o.removeEventListener(l,h),u=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=c(e)?e:v(y.location,e,t);r&&r(n,e),d=f()+1;let l=p(n,d),h=y.createHref(n.mask||n);try{i.pushState(l,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}a&&u&&u({action:s,location:y.location,delta:1})},replace:function(e,t){s="REPLACE";let n=c(e)?e:v(y.location,e,t);r&&r(n,e),d=f();let o=p(n,d),l=y.createHref(n.mask||n);i.replaceState(o,"",l),a&&u&&u({action:s,location:y.location,delta:0})},go:e=>i.go(e)};return y}function g(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),d(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}new WeakMap;function b(e,t,r="/"){return x(e,t,r,!1)}function x(e,t,r,n,o){let a=I(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let i=o??w(e),s=null,l=F(a);for(let e=0;null==s&&e<i.length;++e)s=T(i[e],l,n);return s}function w(e){let t=j(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function j(e,t=[],r=[],n="",o=!1){let a=(e,a,i=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&i)return;d(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=W([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),j(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:R(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of _(e.path))a(e,t,!0,r);else a(e,t)}),t}function _(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=_(n.join("/")),s=[];return s.push(...i.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var k=/^:[\w-]+$/,O=3,S=2,N=1,E=10,P=-2,C=e=>"*"===e;function R(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=P),t&&(n+=S),r.filter(e=>!C(e)).reduce((e,t)=>e+(k.test(t)?O:""===t?N:E),n)}function T(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:W([a,u.pathname]),pathnameBase:H(W([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=W([a,u.pathnameBase]))}return i}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=D(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function D(e,t=!1,r=!0){f("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,o,a)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var M=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L(e,t){let r=B(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function V(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function z(e){let t=$(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function U(e,t,r,n=!1){let o;"string"==typeof e?o=m(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),V("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),V("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),V("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:a=""}="string"==typeof e?m(e):e;return n?(n=q(n),r=n.startsWith("/")?L(n.substring(1),"/"):L(n,t)):r=t,{pathname:r,search:Z(o),hash:K(a)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var q=e=>e.replace(/\/\/+/g,"/"),W=e=>q(e.join("/")),B=e=>e.replace(/\/+$/,""),H=e=>B(e).replace(/^\/*/,"/"),Z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var G=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function J(e){let t=e.map(e=>e.route.path).filter(Boolean);return W(t)||"/"}var Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function X(e,t){let r=e;if("string"!=typeof r||!M.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Y)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=I(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:o=!0}catch(e){f(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ee=["POST","PUT","PATCH","DELETE"],te=(new Set(ee),["GET",...ee]);new Set(te),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var re=i.createContext(null);re.displayName="DataRouter";var ne=i.createContext(null);ne.displayName="DataRouterState";var oe=i.createContext(!1);function ae(){return i.useContext(oe)}var ie=i.createContext({isTransitioning:!1});ie.displayName="ViewTransition";var se=i.createContext(new Map);se.displayName="Fetchers";var le=i.createContext(null);le.displayName="Await";var ce=i.createContext(null);ce.displayName="Navigation";var ue=i.createContext(null);ue.displayName="Location";var de=i.createContext({outlet:null,matches:[],isDataRoute:!1});de.displayName="Route";var fe=i.createContext(null);fe.displayName="RouteError";var pe="REACT_ROUTER_ERROR";function ve(){return null!=i.useContext(ue)}function he(){return d(ve(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(ue).location}var me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ye(e){i.useContext(ce).static||i.useLayoutEffect(e)}function ge(){let{isDataRoute:e}=i.useContext(de);return e?function(){let{router:e}=Pe("useNavigate"),t=Re("useNavigate"),r=i.useRef(!1);ye(()=>{r.current=!0});let n=i.useCallback(async(n,o={})=>{f(r.current,me),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t]);return n}():function(){d(ve(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(re),{basename:t,navigator:r}=i.useContext(ce),{matches:n}=i.useContext(de),{pathname:o}=he(),a=JSON.stringify(z(n)),s=i.useRef(!1);ye(()=>{s.current=!0});let l=i.useCallback((n,i={})=>{if(f(s.current,me),!s.current)return;if("number"==typeof n)return void r.go(n);let l=U(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,a,o,e]);return l}()}i.createContext(null);function be(e,{relative:t}={}){let{matches:r}=i.useContext(de),{pathname:n}=he(),o=JSON.stringify(z(r));return i.useMemo(()=>U(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function xe(e,t,r){d(ve(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=i.useContext(ce),{matches:o}=i.useContext(de),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;{let e=u&&u.path||"";De(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,v=he();if(t){let e="string"==typeof t?m(t):t;d("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=v;let h=p.pathname||"/",y=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):b(e,{pathname:y});f(u||null!=g,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),f(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=Ne(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:W([c,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:W([c,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&x?i.createElement(ue.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},x):x}function we(){let e=Te(),t=Q(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return s=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,s)}var je=i.createElement(we,null),_e=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${pe}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(de.Provider,{value:this.props.routeContext},i.createElement(fe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Oe,{error:e},t):t}};_e.contextType=oe;var ke=new WeakMap;function Oe({children:e,error:t}){let{basename:r}=i.useContext(ce);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${pe}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=ke.get(t);if(n)throw n;let o=X(e.location,r);if(Y&&!ke.get(t)){if(!o.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw ke.set(t,r),r}window.location.href=o.absoluteURL||o.to}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Se({routeContext:e,match:t,children:r}){let n=i.useContext(re);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(de.Provider,{value:e},r)}function Ne(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=n?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:a}=n,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=r?.onError,u=n&&c?(e,t)=>{c(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:J(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let d,f=!1,p=null,v=null;n&&(d=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||je,s&&(l<0&&0===c?(De("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,v=null):l===c&&(f=!0,v=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,c+1)),m=()=>{let t;return t=d?p:f?v:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(Se,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?i.createElement(_e,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):m()},null)}function Ee(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pe(e){let t=i.useContext(re);return d(t,Ee(e)),t}function Ce(e){let t=i.useContext(ne);return d(t,Ee(e)),t}function Re(e){let t=function(e){let t=i.useContext(de);return d(t,Ee(e)),t}(e),r=t.matches[t.matches.length-1];return d(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Te(){let e=i.useContext(fe),t=Ce("useRouteError"),r=Re("useRouteError");return void 0!==e?e:t.errors?.[r]}var Ae={};function De(e,t,r){t||Ae[e]||(Ae[e]=!0,f(!1,r))}var Fe={};function Ie(e,t){e||Fe[t]||(Fe[t]=!0)}s.useOptimistic;i.memo(Me);function Me({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:a}){return xe(e,void 0,{manifest:t,state:n,isStatic:o,onError:a,future:r})}function Le({to:e,replace:t,state:r,relative:n}){d(ve(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(ce);f(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(de),{pathname:s}=he(),l=ge(),c=U(e,z(a),s,"path"===n),u=JSON.stringify(c);return i.useEffect(()=>{l(JSON.parse(u),{replace:t,state:r,relative:n})},[l,u,n,t,r]),null}function Ve(e){d(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $e({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,useTransitions:s}){d(!ve(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:a,useTransitions:s,future:{}}),[l,o,a,s]);"string"==typeof r&&(r=m(r));let{pathname:u="/",search:p="",hash:v="",state:h=null,key:y="default",mask:g}=r,b=i.useMemo(()=>{let e=I(u,l);return null==e?null:{location:{pathname:e,search:p,hash:v,state:h,key:y,mask:g},navigationType:n}},[l,u,p,v,h,y,n,g]);return f(null!=b,`<Router basename="${l}"> is not able to match the URL "${u}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:i.createElement(ce.Provider,{value:c},i.createElement(ue.Provider,{children:t,value:b}))}function ze({children:e,location:t}){return xe(Ue(e),t)}i.Component;function Ue(e,t=[]){let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let o=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,Ue(e.props.children,o));d(e.type===Ve,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ue(e.props.children,o)),r.push(a)}),r}var qe="get",We="application/x-www-form-urlencoded";function Be(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function He(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var Ze=null;var Ke=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ge(e){return null==e||Ke.has(e)?e:(f(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${We}"`),null)}function Qe(e,t){let r,n,o,a,i;if(Be(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?I(i,t):null,r=e.getAttribute("method")||qe,o=Ge(e.getAttribute("enctype"))||We,a=new FormData(e)}else if(function(e){return Be(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Be(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?I(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||qe,o=Ge(e.getAttribute("formenctype"))||Ge(i.getAttribute("enctype"))||We,a=new FormData(i,e),!function(){if(null===Ze)try{new FormData(document.createElement("form"),0),Ze=!1}catch(e){Ze=!0}return Ze}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,n)}}else{if(Be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=qe,n=null,o=We,i=e}var s;return a&&"text/plain"===o&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Je(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ye(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===I(o.pathname,t)?o.pathname=`${B(t)}/_root.${n}`:o.pathname=`${B(o.pathname)}.${n}`,o}async function Xe(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(e){return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function et(e){return null!=e&&"string"==typeof e.page}function tt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function rt(e,t,r,n,o,a){let i=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===a?t.filter((t,a)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function nt(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function ot(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!et(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let a=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(a)||(r.add(a),e.push({key:a,link:o})),e},[])}function at(e,t){return"lazy"===e.mode&&!0===t}function it(){let e=i.useContext(re);return Je(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function st(){let e=i.useContext(ne);return Je(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var lt=i.createContext(void 0);function ct(){let e=i.useContext(lt);return Je(e,"You must render this element inside a <HydratedRouter> element"),e}function ut(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function dt(e,t,r){if(r&&!mt)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}lt.displayName="FrameworkContext";function ft({page:e,...t}){let r=ae(),{router:n}=it(),o=i.useMemo(()=>b(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?r?i.createElement(vt,{page:e,matches:o,...t}):i.createElement(ht,{page:e,matches:o,...t}):null}function pt(e){let{manifest:t,routeModules:r}=ct(),[n,o]=i.useState([]);return i.useEffect(()=>{let n=!1;return async function(e,t,r){return ot((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await Xe(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(tt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}function vt({page:e,matches:t,...r}){let n=he(),{future:o}=ct(),{basename:a}=it(),s=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=Ye(e,a,o.unstable_trailingSlashAwareDataRequests,"rsc"),i=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:s.push(e.route.id);return i&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,o.unstable_trailingSlashAwareDataRequests,e,n,t]);return i.createElement(i.Fragment,null,s.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function ht({page:e,matches:t,...r}){let n=he(),{future:o,manifest:a,routeModules:s}=ct(),{basename:l}=it(),{loaderData:c,matches:u}=st(),d=i.useMemo(()=>rt(e,t,u,a,n,"data"),[e,t,u,a,n]),f=i.useMemo(()=>rt(e,t,u,a,n,"assets"),[e,t,u,a,n]),p=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,i=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:r.add(e.route.id))}),0===r.size)return[];let u=Ye(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return i&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.unstable_trailingSlashAwareDataRequests,c,n,a,d,t,e,s]),v=i.useMemo(()=>nt(f,a),[f,a]),h=pt(f);return i.createElement(i.Fragment,null,p.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),v.map(e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>i.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}var mt=!1;function yt(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:a,ssr:s}=ct(),{router:l,static:c,staticContext:u}=it(),{matches:d}=st(),f=ae(),p=at(a,s);o&&(o.didRenderScripts=!0);let v=dt(d,null,n);i.useEffect(()=>{mt=!0},[]);let h=i.useMemo(()=>{if(f)return null;let n=u?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${v.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];Je(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...a?[{module:a,varName:`${n}_clientAction`}]:[],...i?[{module:i,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach(e=>{let t=x(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let i=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,l),null,2)};`:""}\n  window.__reactRouterRouteModules = {${v.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),m=mt||f?[]:[...new Set(t.entry.imports.concat(nt(v,t,{includeHydrateFallback:!0})))],y="object"==typeof t.sri?t.sri:{};return Ie(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),mt||f?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),m.map(t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function gt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}i.Component;function bt({error:e,isOutsideRemixApp:t}){let r,n=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Q(e))return i.createElement(xt,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return i.createElement(xt,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function xt({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=ct();return o.root?.Layout&&!r?n:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?i.createElement(yt,null):null)))}var wt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{wt&&(window.__reactRouterVersion="7.15.1")}catch(Tt){}function jt({basename:e,children:t,useTransitions:r,window:n}){let o=i.useRef();null==o.current&&(o.current=u({window:n,v5Compat:!0}));let a=o.current,[s,l]=i.useState({action:a.action,location:a.location}),c=i.useCallback(e=>{!1===r?l(e):i.startTransition(()=>l(e))},[r]);return i.useLayoutEffect(()=>a.listen(c),[a,c]),i.createElement($e,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}var _t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=i.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:a,mask:s,state:l,target:c,to:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y){let{basename:g,navigator:b,useTransitions:x}=i.useContext(ce),w="string"==typeof u&&_t.test(u),j=X(u,g),_=function(e,{relative:t}={}){d(ve(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(ce),{hash:o,pathname:a,search:s}=be(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:W([r,a])),n.createHref({pathname:l,search:s,hash:o})}(u=j.to,{relative:n}),k=he(),O=null;if(s){let e=U(s,[],k.mask?k.mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:W([g,e.pathname])),O=b.createHref(e)}let[S,N,E]=function(e,t){let r=i.useContext(lt),[n,o]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=i.useRef(null);i.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let v=()=>{o(!0)},h=()=>{o(!1),s(!1)};return r?"intent"!==e?[a,p,{}]:[a,p,{onFocus:ut(l,v),onBlur:ut(c,h),onMouseEnter:ut(u,v),onMouseLeave:ut(d,h),onTouchStart:ut(f,v)}]:[!1,p,{}]}(r,m),P=function(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=ge(),f=he(),p=be(e,{relative:s});return i.useCallback(v=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(v,t)){v.preventDefault();let t=void 0!==r?r:h(f)===h(p),m=()=>d(e,{replace:t,mask:n,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?i.startTransition(()=>m()):m()}},[f,d,p,r,n,o,t,e,a,s,l,c,u])}(u,{replace:a,mask:s,state:l,target:c,preventScrollReset:f,relative:n,viewTransition:p,defaultShouldRevalidate:v,useTransitions:x});let C=!(j.isExternal||o),R=i.createElement("a",{...m,...E,href:(C?O:void 0)||j.absoluteURL||_,onClick:C?function(t){e&&e(t),t.defaultPrevented||P(t)}:e,ref:gt(y,N),target:c,"data-discover":w||"render"!==t?void 0:"true"});return S&&!w?i.createElement(i.Fragment,null,R,i.createElement(ft,{page:_})):R});kt.displayName="Link",i.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:a,viewTransition:s,children:l,...c},u){let f=be(a,{relative:c.relative}),p=he(),v=i.useContext(ne),{navigator:h,basename:m}=i.useContext(ce),y=null!=v&&function(e,{relative:t}={}){let r=i.useContext(ie);d(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Nt("useViewTransitionState"),o=be(e,{relative:t});if(!r.isTransitioning)return!1;let a=I(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=I(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=A(o.pathname,s)||null!=A(o.pathname,a)}(f)&&!0===s,g=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,b=p.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=I(x,m)||x);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let j,_=b===g||!n&&b.startsWith(g)&&"/"===b.charAt(w),k=null!=x&&(x===g||!n&&x.startsWith(g)&&"/"===x.charAt(g.length)),O={isActive:_,isPending:k,isTransitioning:y},S=_?e:void 0;j="function"==typeof r?r(O):[r,_?"active":null,k?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(O):o;return i.createElement(kt,{...c,"aria-current":S,className:j,ref:u,style:N,to:a,viewTransition:s},"function"==typeof l?l(O):l)}).displayName="NavLink";var Ot=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:s=qe,action:l,onSubmit:c,relative:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y)=>{let{useTransitions:g}=i.useContext(ce),b=Rt(),x=function(e,{relative:t}={}){let{basename:r}=i.useContext(ce),n=i.useContext(de);d(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...be(e||".",{relative:t})},s=he();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index"),r=t.some(e=>""===e);if(r){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(a.pathname="/"===a.pathname?r:W([r,a.pathname]));return h(a)}(l,{relative:u}),w="get"===s.toLowerCase()?"get":"post",j="string"==typeof l&&_t.test(l);return i.createElement("form",{ref:y,method:w,action:x,onSubmit:n?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,d=()=>b(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:a,relative:u,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v});g&&!1!==r?i.startTransition(()=>d()):d()},...m,"data-discover":j||"render"!==e?void 0:"true"})});function St(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nt(e){let t=i.useContext(re);return d(t,St(e)),t}function Et(e){f("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=i.useRef(He(e)),r=i.useRef(!1),n=he(),o=i.useMemo(()=>function(e,t){let r=He(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),a=ge(),s=i.useCallback((e,t)=>{const n=He("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,a("?"+n,t)},[a,o]);return[o,s]}Ot.displayName="Form";var Pt=0,Ct=()=>`__${String(++Pt)}__`;function Rt(){let{router:e}=Nt("useSubmit"),{basename:t}=i.useContext(ce),r=Re("useRouteId"),n=e.fetch,o=e.navigate;return i.useCallback(async(e,a={})=>{let{action:i,method:s,encType:l,formData:c,body:u}=Qe(e,t);if(!1===a.navigate){let e=a.fetcherKey||Ct();await n(e,r,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:u,formMethod:a.method||s,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,o,t,r])}let Tt={data:""},At=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Tt},Dt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ft=/\/\*[^]*?\*\/|  +/g,It=/\n+/g,Mt=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?Mt(i,a):a+"{"+Mt(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=Mt(i,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a="-"==a[1]?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Mt.p?Mt.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Lt={},Vt=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Vt(e[r]);return t}return e},$t=(e,t,r,n,o)=>{let a=Vt(e),i=Lt[a]||(Lt[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!Lt[i]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=Dt.exec(e.replace(Ft,""));)t[4]?n.shift():t[3]?(r=t[3].replace(It," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(It," ").trim();return n[0]})(e);Lt[i]=Mt(o?{["@keyframes "+i]:t}:t,r?"":"."+i)}let s=r&&Lt.g;return r&&(Lt.g=Lt[i]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Lt[i],t,n,s),i};function zt(e){let t=this||{},r=e.call?e(t.p):e;return $t(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Mt(e,""):!1===e?"":e}return e+n+(a??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,At(t.target),t.g,t.o,t.k)}zt.bind({g:1});let Ut,qt,Wt,Bt=zt.bind({k:1});function Ht(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;r.p=Object.assign({theme:qt&&qt()},s),r.o=/go\d/.test(l),s.className=zt.apply(r,n)+(l?" "+l:""),t&&(s.ref=i);let c=e;return e[0]&&(c=s.as||e,delete s.as),Wt&&c[0]&&Wt(s),Ut(c,s)}return t?t(o):o}}var Zt=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Kt=(()=>{let e=0;return()=>(++e).toString()})(),Gt=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Qt="default",Jt=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Jt(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},Yt=[],Xt={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},er={},tr=(e,t=Qt)=>{er[t]=Jt(er[t]||Xt,e),Yt.forEach(([e,r])=>{e===t&&r(er[t])})},rr=e=>Object.keys(er).forEach(t=>tr(e,t)),nr=(e=Qt)=>t=>{tr(t,e)},or={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ar=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Kt()}))(t,e,r);return nr(n.toasterId||(e=>Object.keys(er).find(t=>er[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},ir=(e,t)=>ar("blank")(e,t);ir.error=ar("error"),ir.success=ar("success"),ir.loading=ar("loading"),ir.custom=ar("custom"),ir.dismiss=(e,t)=>{let r={type:3,toastId:e};t?nr(t)(r):rr(r)},ir.dismissAll=e=>ir.dismiss(void 0,e),ir.remove=(e,t)=>{let r={type:4,toastId:e};t?nr(t)(r):rr(r)},ir.removeAll=e=>ir.remove(void 0,e),ir.promise=(e,t,r)=>{let n=ir.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?Zt(t.success,e):void 0;return o?ir.success(o,{id:n,...r,...null==r?void 0:r.success}):ir.dismiss(n),e}).catch(e=>{let o=t.error?Zt(t.error,e):void 0;o?ir.error(o,{id:n,...r,...null==r?void 0:r.error}):ir.dismiss(n)}),e};var sr=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Qt)=>{let[r,n]=(0,i.useState)(er[t]||Xt),o=(0,i.useRef)(er[t]);(0,i.useEffect)(()=>(o.current!==er[t]&&n(er[t]),Yt.push([t,n]),()=>{let e=Yt.findIndex(([e])=>e===t);e>-1&&Yt.splice(e,1)}),[t]);let a=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||or[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:a}})(e,t),o=(0,i.useRef)(new Map).current,a=(0,i.useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,r)},[]);(0,i.useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>ir.dismiss(r.id,t),n);r.visible&&ir.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,i.useCallback)(nr(t),[t]),l=(0,i.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,i.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,i.useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,i.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=t||{},i=r.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=i.findIndex(t=>t.id===e.id),l=i.filter((e,t)=>t<s&&e.visible).length;return i.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,i.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},lr=Bt`
    2 from {
    3   transform: scale(0) rotate(45deg);
    4         opacity: 0;
    5 }
    6 to {
    7  transform: scale(1) rotate(45deg);
    8   opacity: 1;
    9 }`,cr=Bt`
    10 from {
    11   transform: scale(0);
    12   opacity: 0;
    13 }
    14 to {
    15   transform: scale(1);
    16   opacity: 1;
    17 }`,ur=Bt`
    18 from {
    19   transform: scale(0) rotate(90deg);
    20         opacity: 0;
    21 }
    22 to {
    23   transform: scale(1) rotate(90deg);
    24         opacity: 1;
    25 }`,dr=Ht("div")`
    26   width: 20px;
    27   opacity: 0;
    28   height: 20px;
    29   border-radius: 10px;
    30   background: ${e=>e.primary||"#ff4b4b"};
    31   position: relative;
    32   transform: rotate(45deg);
    33 
    34   animation: ${lr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    35     forwards;
    36   animation-delay: 100ms;
    37 
    38   &:after,
    39   &:before {
    40     content: '';
    41     animation: ${cr} 0.15s ease-out forwards;
    42     animation-delay: 150ms;
    43     position: absolute;
    44     border-radius: 3px;
    45     opacity: 0;
    46     background: ${e=>e.secondary||"#fff"};
    47     bottom: 9px;
    48     left: 4px;
    49     height: 2px;
    50     width: 12px;
    51   }
    52 
    53   &:before {
    54     animation: ${ur} 0.15s ease-out forwards;
    55     animation-delay: 180ms;
    56     transform: rotate(90deg);
    57   }
    58 `,fr=Bt`
    59   from {
    60     transform: rotate(0deg);
    61   }
    62   to {
    63     transform: rotate(360deg);
    64   }
    65 `,pr=Ht("div")`
    66   width: 12px;
    67   height: 12px;
    68   box-sizing: border-box;
    69   border: 2px solid;
    70   border-radius: 100%;
    71   border-color: ${e=>e.secondary||"#e0e0e0"};
    72   border-right-color: ${e=>e.primary||"#616161"};
    73   animation: ${fr} 1s linear infinite;
    74 `,vr=Bt`
    75 from {
    76   transform: scale(0) rotate(45deg);
    77         opacity: 0;
    78 }
    79 to {
    80   transform: scale(1) rotate(45deg);
    81         opacity: 1;
    82 }`,hr=Bt`
    83 0% {
    84         height: 0;
    85         width: 0;
    86         opacity: 0;
    87 }
    88 40% {
    89   height: 0;
    90         width: 6px;
    91         opacity: 1;
    92 }
    93 100% {
    94   opacity: 1;
    95   height: 10px;
    96 }`,mr=Ht("div")`
    97   width: 20px;
    98   opacity: 0;
    99   height: 20px;
    100   border-radius: 10px;
    101   background: ${e=>e.primary||"#61d345"};
    102   position: relative;
    103   transform: rotate(45deg);
    104 
    105   animation: ${vr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    106     forwards;
    107   animation-delay: 100ms;
    108   &:after {
    109     content: '';
    110     box-sizing: border-box;
    111     animation: ${hr} 0.2s ease-out forwards;
    112     opacity: 0;
    113     animation-delay: 200ms;
    114     position: absolute;
    115     border-right: 2px solid;
    116     border-bottom: 2px solid;
    117     border-color: ${e=>e.secondary||"#fff"};
    118     bottom: 6px;
    119     left: 6px;
    120     height: 10px;
    121     width: 6px;
    122   }
    123 `,yr=Ht("div")`
    124   position: absolute;
    125 `,gr=Ht("div")`
    126   position: relative;
    127   display: flex;
    128   justify-content: center;
    129   align-items: center;
    130   min-width: 20px;
    131   min-height: 20px;
    132 `,br=Bt`
    133 from {
    134   transform: scale(0.6);
    135   opacity: 0.4;
    136 }
    137 to {
    138   transform: scale(1);
    139   opacity: 1;
    140 }`,xr=Ht("div")`
    141   position: relative;
    142   transform: scale(0.6);
    143   opacity: 0.4;
    144   min-width: 20px;
    145   animation: ${br} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    146     forwards;
    147 `,wr=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?i.createElement(xr,null,t):t:"blank"===r?null:i.createElement(gr,null,i.createElement(pr,{...n}),"loading"!==r&&i.createElement(yr,null,"error"===r?i.createElement(dr,{...n}):i.createElement(mr,{...n})))},jr=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,_r=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,kr=Ht("div")`
    148   display: flex;
    149   align-items: center;
    150   background: #fff;
    151   color: #363636;
    152   line-height: 1.3;
    153   will-change: transform;
    154   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
    155   max-width: 350px;
    156   pointer-events: auto;
    157   padding: 8px 10px;
    158   border-radius: 8px;
    159 `,Or=Ht("div")`
    160   display: flex;
    161   justify-content: center;
    162   margin: 4px 10px;
    163   color: inherit;
    164   flex: 1 1 auto;
    165   white-space: pre-line;
    166 `,Sr=i.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Gt()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[jr(r),_r(r)];return{animation:t?`${Bt(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Bt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},a=i.createElement(wr,{toast:e}),s=i.createElement(Or,{...e.ariaProps},Zt(e.message,e));return i.createElement(kr,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:a,message:s}):i.createElement(i.Fragment,null,a,s))});!function(e,t,r,n){Mt.p=t,Ut=e,qt=r,Wt=n}(i.createElement);var Nr=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let a=i.useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return i.createElement("div",{ref:a,className:t,style:r},o)},Er=zt`
    167   z-index: 9999;
    168   > * {
    169     pointer-events: auto;
    170   }
    171 `,Pr=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:a,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=sr(r,a);return i.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(r=>{let a=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Gt()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(a,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return i.createElement(Nr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?Er:"",style:s},"custom"===r.type?Zt(r.message,r):o?o(r):i.createElement(Sr,{toast:r,position:a}))}))},Cr=ir,Rr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Tr=new class{#e=Rr;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var Ar="undefined"==typeof window||"Deno"in globalThis;function Dr(){}function Fr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ir(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mr(e,t){return"function"==typeof e?e(t):e}function Lr(e,t){return"function"==typeof e?e(t):e}function Vr(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(i)if(n){if(t.queryHash!==zr(i,t.options))return!1}else if(!qr(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function $r(e,t){const{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ur(t.options.mutationKey)!==Ur(a))return!1}else if(!qr(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function zr(e,t){return(t?.queryKeyHashFn||Ur)(e)}function Ur(e){return JSON.stringify(e,(e,t)=>Kr(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function qr(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>qr(e[r],t[r])))}var Wr=Object.prototype.hasOwnProperty;function Br(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Zr(e)&&Zr(t);if(!(n||Kr(e)&&Kr(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),i=a.length,s=n?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=n?c:a[c],u=e[i],d=t[i];if(u===d){s[i]=u,(n?c<o:Wr.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[i]=d;continue}const f=Br(u,d,r+1);s[i]=f,f===u&&l++}return o===i&&l===o?e:s}function Hr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Zr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kr(e){if(!Gr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!Gr(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Gr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Qr(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Br(e,t):t}function Jr(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Yr(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Xr=Symbol();function en(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Xr?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function tn(e,t){return"function"==typeof e?e(...t):!!e}var rn=function(e){setTimeout(e,0)};var nn=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=rn;const a=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),on=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},an=new class extends on{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},sn=new class extends on{#a=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};function ln(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var cn=(()=>{let e=()=>Ar;return{isServer:()=>e(),setIsServer(t){e=t}}})();function un(e){return Math.min(1e3*2**e,3e4)}function dn(e){return"online"!==(e??"online")||sn.isOnline()}var fn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pn(e){let t,r=!1,n=0;const o=ln(),a=()=>"pending"!==o.status,i=()=>an.isFocused()&&("always"===e.networkMode||sn.isOnline())&&e.canRun(),s=()=>dn(e.networkMode)&&e.canRun(),l=e=>{a()||(t?.(),o.resolve(e))},c=e=>{a()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(a()||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,a()||e.onContinue?.()}),d=()=>{if(a())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(a())return;const o=e.retry??(cn.isServer()?0:3),s=e.retryDelay??un,l="function"==typeof s?s(n,t):s,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&f?(n++,e.onFail?.(n,t),(p=l,new Promise(e=>{Tr.setTimeout(e,p)})).then(()=>i()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!a()){const r=new fn(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var vn=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fr(this.gcTime)&&(this.#i=Tr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cn.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(Tr.clearTimeout(this.#i),this.#i=void 0)}};function hn(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=e=>{!function(e,t,r){let n,o=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=en(t.options,t.fetchOptions),d=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return c(e),e})(),i=await u(a),{maxPages:s}=t.options,l=o?Yr:Jr;return{pages:l(e.pages,i,s),pageParams:l(e.pageParams,n,s)}};if(o&&a.length){const e="backward"===o,t={pages:a,pageParams:i},r=(e?yn:mn)(n,t);s=await d(t,r,e)}else{const t=e??a.length;do{const e=0===l?i[0]??n.initialPageParam:mn(n,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function mn(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function yn(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var gn=class extends vn{#s;#l;#c;#u;#d;#f;#p;#v;constructor(e){super(),this.#v=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#u=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=wn(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#f?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=wn(this.options);void 0!==e.data&&(this.setState(xn(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const r=Qr(this.state.data,e,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#h({type:"setState",state:e})}cancel(e){const t=this.#f?.promise;return this.#f?.cancel(e),t?t.then(Dr).catch(Dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Lr(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Mr(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Ir(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#f?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#f?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#f&&(this.#v||this.#m()?this.#f.cancel({revert:!0}):this.#f.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#f?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#f.continueRetry(),this.#f.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#v=!0,r.signal)})},o=()=>{const e=en(this.options,t),r=(()=>{const e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#v=!1,this.options.persister?this.options.persister(e,r,this):e(r)},a=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:o};return n(e),e})(),i="infinite"===this.#s?hn(this.options.pages):this.options.behavior;i?.onFetch(a,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===a.fetchOptions?.meta||this.#h({type:"fetch",meta:a.fetchOptions?.meta}),this.#f=pn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof fn&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const e=await this.#f.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof fn){if(e.silent)return this.#f.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#h({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...bn(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...xn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),nn.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function bn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function xn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wn(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jn=class extends on{constructor(e={}){super(),this.config=e,this.#y=new Map}#y;build(e,t,r){const n=t.queryKey,o=t.queryHash??zr(n,t);let a=this.get(o);return a||(a=new gn({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#y.has(e.queryHash)||(this.#y.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#y.get(e.queryHash);t&&(e.destroy(),t===e&&this.#y.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){nn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#y.get(e)}getAll(){return[...this.#y.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Vr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Vr(e,t)):t}notify(e){nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_n=class extends vn{#d;#g;#b;#f;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#b=e.mutationCache,this.#g=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#g.includes(e)||(this.#g.push(e),this.clearGcTimeout(),this.#b.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#g=this.#g.filter(t=>t!==e),this.scheduleGc(),this.#b.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#g.length||("pending"===this.state.status?this.scheduleGc():this.#b.remove(this))}continue(){return this.#f?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#h({type:"continue"})},r={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#f=pn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#b.canRun(this)});const n="pending"===this.state.status,o=!this.#f.canStart();try{if(n)t();else{this.#h({type:"pending",variables:e,isPaused:o}),this.#b.config.onMutate&&await this.#b.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#h({type:"pending",context:t,variables:e,isPaused:o})}const a=await this.#f.start();return await(this.#b.config.onSuccess?.(a,e,this.state.context,this,r)),await(this.options.onSuccess?.(a,e,this.state.context,r)),await(this.#b.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(a,null,e,this.state.context,r)),this.#h({type:"success",data:a}),a}catch(t){try{await(this.#b.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#b.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#h({type:"error",error:t}),t}finally{this.#b.runNext(this)}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),nn.batch(()=>{this.#g.forEach(t=>{t.onMutationUpdate(e)}),this.#b.notify({mutation:this,type:"updated",action:e})})}};var kn=class extends on{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#w=new Map,this.#j=0}#x;#w;#j;build(e,t,r){const n=new _n({client:e,mutationCache:this,mutationId:++this.#j,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#x.add(e);const t=On(e);if("string"==typeof t){const r=this.#w.get(t);r?r.push(e):this.#w.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){const t=On(e);if("string"==typeof t){const r=this.#w.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#w.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=On(e);if("string"==typeof t){const r=this.#w.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=On(e);if("string"==typeof t){const r=this.#w.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){nn.batch(()=>{this.#x.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#x.clear(),this.#w.clear()})}getAll(){return Array.from(this.#x)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>$r(t,e))}findAll(e={}){return this.getAll().filter(t=>$r(e,t))}notify(e){nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return nn.batch(()=>Promise.all(e.map(e=>e.continue().catch(Dr))))}};function On(e){return e.options.scope?.id}var Sn=o(848),Nn=i.createContext(void 0),En=e=>{const t=i.useContext(Nn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Pn=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Sn.jsx)(Nn.Provider,{value:e,children:t}));function Cn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cn(e))&&(n&&(n+=" "),n+=t);return n}const Tn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),An="-",Dn=[],Fn=e=>{const t=Ln(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Mn(e);const r=e.split(An),n=""===r[0]&&r.length>1?1:0;return In(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||Dn}return r[e]||Dn}}},In=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=In(e,t+1,o);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(An):e.slice(t).join(An),s=a.length;for(let e=0;e<s;e++){const t=a[e];if(t.validator(i))return t.classGroupId}},Mn=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),Ln=e=>{const{theme:t,classGroups:r}=e;return Vn(r,t)},Vn=(e,t)=>{const r=Tn();for(const n in e){const o=e[n];$n(o,r,n,t)}return r},$n=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const o=e[a];zn(o,t,r,n)}},zn=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Wn(e,t,r,n):qn(e,t,r,n):Un(e,t,r)},Un=(e,t,r)=>{(""===e?t:Bn(t,e)).classGroupId=r},qn=(e,t,r,n)=>{Hn(e)?$n(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Wn=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){const[a,i]=o[e];$n(i,Bn(t,a),r,n)}},Bn=(e,t)=>{let r=e;const n=t.split(An),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Tn(),r.nextPart.set(t,o)),r=o}return r},Hn=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,Zn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,a)=>{r[o]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},Kn=[],Gn=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Qn=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,a=0;const i=e.length;for(let s=0;s<i;s++){const i=e[s];if(0===n&&0===o){if(":"===i){t.push(e.slice(a,s)),a=s+1;continue}if("/"===i){r=s;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return Gn(t,c,l,r&&r>a?r-a:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):Gn(Kn,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},Jn=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const a=e[o],i="["===a[0],s=t.has(a);i||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(a)):n.push(a)}return n.length>0&&(n.sort(),r.push(...n)),r}},Yn=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},Xn=/\s+/,eo=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=eo(e[n]))&&(r&&(r+=" "),r+=t);return r},to=(e,...t)=>{let r,n,o,a;const i=e=>{const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(Xn);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=r(t);if(u){c=t+(c.length>0?" "+c:c);continue}let h,m=!!v;if(m){h=n(p.substring(0,v));const e=h&&i[h]?n(p):void 0;e&&e!==h&&(h=e,m=!1)}else h=n(p);if(!h){if(!m){c=t+(c.length>0?" "+c:c);continue}if(h=n(p),!h){c=t+(c.length>0?" "+c:c);continue}m=!1}const y=0===d.length?"":1===d.length?d[0]:a(d).join(":"),g=f?y+"!":y,b=g+h;if(s.indexOf(b)>-1)continue;s.push(b);const x=o(h,m);for(let e=0;e<x.length;++e){const t=x[e];s.push(g+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return o(e,a),a};return a=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Zn(e.cacheSize),parseClassName:Qn(e),sortModifiers:Jn(e),postfixLookupClassGroupIds:Yn(e),...Fn(e)}))(l),n=r.cache.get,o=r.cache.set,a=i,i(s)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=eo(t))&&(o&&(o+=" "),o+=r);return o})(...e))},ro=[],no=e=>{const t=t=>t[e]||ro;return t.isThemeGetter=!0,t},oo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,io=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,so=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,co=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,po=e=>io.test(e),vo=e=>!!e&&!Number.isNaN(Number(e)),ho=e=>!!e&&Number.isInteger(Number(e)),mo=e=>e.endsWith("%")&&vo(e.slice(0,-1)),yo=e=>so.test(e),go=()=>!0,bo=e=>lo.test(e)&&!co.test(e),xo=()=>!1,wo=e=>uo.test(e),jo=e=>fo.test(e),_o=e=>!So(e)&&!Do(e),ko=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Oo=e=>Uo(e,Ho,xo),So=e=>oo.test(e),No=e=>Uo(e,Zo,bo),Eo=e=>Uo(e,Ko,vo),Po=e=>Uo(e,Qo,go),Co=e=>Uo(e,Go,xo),Ro=e=>Uo(e,Wo,xo),To=e=>Uo(e,Bo,jo),Ao=e=>Uo(e,Jo,wo),Do=e=>ao.test(e),Fo=e=>qo(e,Zo),Io=e=>qo(e,Go),Mo=e=>qo(e,Wo),Lo=e=>qo(e,Ho),Vo=e=>qo(e,Bo),$o=e=>qo(e,Jo,!0),zo=e=>qo(e,Qo,!0),Uo=(e,t,r)=>{const n=oo.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},qo=(e,t,r=!1)=>{const n=ao.exec(e);return!!n&&(n[1]?t(n[1]):r)},Wo=e=>"position"===e||"percentage"===e,Bo=e=>"image"===e||"url"===e,Ho=e=>"length"===e||"size"===e||"bg-size"===e,Zo=e=>"length"===e,Ko=e=>"number"===e,Go=e=>"family-name"===e,Qo=e=>"number"===e||"weight"===e,Jo=e=>"shadow"===e,Yo=(Symbol.toStringTag,()=>{const e=no("color"),t=no("font"),r=no("text"),n=no("font-weight"),o=no("tracking"),a=no("leading"),i=no("breakpoint"),s=no("container"),l=no("spacing"),c=no("radius"),u=no("shadow"),d=no("inset-shadow"),f=no("text-shadow"),p=no("drop-shadow"),v=no("blur"),h=no("perspective"),m=no("aspect"),y=no("ease"),g=no("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Do,So],x=()=>[Do,So,l],w=()=>[po,"full","auto",...x()],j=()=>[ho,"none","subgrid",Do,So],_=()=>["auto",{span:["full",ho,Do,So]},ho,Do,So],k=()=>[ho,"auto",Do,So],O=()=>["auto","min","max","fr",Do,So],S=()=>["auto",...x()],N=()=>[po,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],E=()=>[po,"screen","full","dvw","lvw","svw","min","max","fit",...x()],P=()=>[po,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[e,Do,So],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Mo,Ro,{position:[Do,So]}],T=()=>["auto","cover","contain",Lo,Oo,{size:[Do,So]}],A=()=>[mo,Fo,No],D=()=>["","none","full",c,Do,So],F=()=>["",vo,Fo,No],I=()=>[vo,mo,Mo,Ro],M=()=>["","none",v,Do,So],L=()=>["none",vo,Do,So],V=()=>["none",vo,Do,So],$=()=>[vo,Do,So],z=()=>[po,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yo],breakpoint:[yo],color:[go],container:[yo],"drop-shadow":[yo],ease:["in","out","in-out"],font:[_o],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yo],shadow:[yo],spacing:["px",vo],text:[yo],"text-shadow":[yo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",po,So,Do,m]}],container:["container"],"container-type":[{"@container":["","normal","size",Do,So]}],"container-named":[ko],columns:[{columns:[vo,So,Do,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ho,"auto",Do,So]}],basis:[{basis:[po,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vo,po,"auto","initial","none",So]}],grow:[{grow:["",vo,Do,So]}],shrink:[{shrink:["",vo,Do,So]}],order:[{order:[ho,"first","last","none",Do,So]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...E()]}],"min-inline-size":[{"min-inline":["auto",...E()]}],"max-inline-size":[{"max-inline":["none",...E()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,Fo,No]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,zo,Po]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mo,So]}],"font-family":[{font:[Io,Co,t]}],"font-features":[{"font-features":[So]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Do,So]}],"line-clamp":[{"line-clamp":[vo,"none",Do,Eo]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":["none",Do,So]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Do,So]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[vo,"from-font","auto",Do,No]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[vo,"auto",Do,So]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[ho,Do,So]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Do,So]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Do,So]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ho,Do,So],radial:["",Do,So],conic:[ho,Do,So]},Vo,To]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[vo,Do,So]}],"outline-w":[{outline:["",vo,Fo,No]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,$o,Ao]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",d,$o,Ao]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[vo,No]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",f,$o,Ao]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[vo,Do,So]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[vo]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Do,So]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[vo]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Do,So]}],filter:[{filter:["","none",Do,So]}],blur:[{blur:M()}],brightness:[{brightness:[vo,Do,So]}],contrast:[{contrast:[vo,Do,So]}],"drop-shadow":[{"drop-shadow":["","none",p,$o,Ao]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",vo,Do,So]}],"hue-rotate":[{"hue-rotate":[vo,Do,So]}],invert:[{invert:["",vo,Do,So]}],saturate:[{saturate:[vo,Do,So]}],sepia:[{sepia:["",vo,Do,So]}],"backdrop-filter":[{"backdrop-filter":["","none",Do,So]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[vo,Do,So]}],"backdrop-contrast":[{"backdrop-contrast":[vo,Do,So]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vo,Do,So]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vo,Do,So]}],"backdrop-invert":[{"backdrop-invert":["",vo,Do,So]}],"backdrop-opacity":[{"backdrop-opacity":[vo,Do,So]}],"backdrop-saturate":[{"backdrop-saturate":[vo,Do,So]}],"backdrop-sepia":[{"backdrop-sepia":["",vo,Do,So]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Do,So]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vo,"initial",Do,So]}],ease:[{ease:["linear","initial",y,Do,So]}],delay:[{delay:[vo,Do,So]}],animate:[{animate:["none",g,Do,So]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Do,So]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[Do,So,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[ho,Do,So]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Do,So]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Do,So]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[vo,Fo,No,Eo]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Xo=(e,t,r)=>{void 0!==r&&(e[t]=r)},ea=(e,t)=>{if(t)for(const r in t)Xo(e,r,t[r])},ta=(e,t)=>{if(t)for(const r in t)ra(e,t,r)},ra=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function na(e){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},na(e)}function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(r),!0).forEach(function(t){ia(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ia(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=na(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=na(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==na(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa=((e,...t)=>"function"==typeof e?to(Yo,e,...t):to(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(Xo(e,"cacheSize",t),Xo(e,"prefix",r),Xo(e,"experimentalParseClassName",n),ea(e.theme,a.theme),ea(e.classGroups,a.classGroups),ea(e.conflictingClassGroups,a.conflictingClassGroups),ea(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Xo(e,"postfixLookupClassGroups",a.postfixLookupClassGroups),Xo(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ta(e.theme,o.theme),ta(e.classGroups,o.classGroups),ta(e.conflictingClassGroups,o.conflictingClassGroups),ta(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ra(e,o,"postfixLookupClassGroups"),ra(e,o,"orderSensitiveModifiers"),e))(Yo(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?aa(aa({},r),{},{baseClassName:n.slice(3)}):r}});function la(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return sa(Rn(t))}const ca=wp.i18n;const ua=function(e){var t=e.lines,r=void 0===t?1:t,n=e.rows,o=void 0===n?1:n,a=e.height,i=void 0===a?"vt-h-4":a,s=e.width,l=void 0===s?"vt-w-[100px]":s,c=e.className,u=e.animate,d=void 0===u||u;return(0,Sn.jsx)("div",{className:la("vt-flex vt-flex-col vt-gap-2",c),children:Array.from({length:o}).map(function(e,t){return(0,Sn.jsx)("div",{className:la("vt-flex vt-gap-2",l),children:Array.from({length:r}).map(function(e,t){return(0,Sn.jsx)("div",{className:la("vt-bg-muted vt-rounded",i,d&&"vt-animate-pulse",t===r-1&&r>1?"vt-w-3/4":"vt-w-full")},t)})},t)})})};var da={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const fa=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,o=e.size,a=void 0===o?"sm":o,i=e.className;if(!t)return(0,Sn.jsx)(Sn.Fragment,{children:n});var s=(0,ca.__)("Loading","versatile-toolkit"),l=r||"".concat(s,"...");return(0,Sn.jsxs)("div",{className:la("vt-flex vt-items-center vt-gap-2",i),children:[(0,Sn.jsx)("div",{className:la(da[a],"vt-animate-spin"),children:(0,Sn.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,Sn.jsx)("span",{children:l})]})};var pa={xs:"vt-w-3 vt-h-3 vt-text-xs",sm:"w-4 h-4 text-sm",md:"vt-w-5 vt-h-5 vt-text-base",lg:"vt-w-6 vt-h-6 vt-text-lg",xl:"vt-w-8 vt-h-8 vt-text-xl"},va={default:"text-foreground",primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"};const ha=function(e){var t=e.size,r=void 0===t?"sm":t,n=e.variant,o=void 0===n?"muted":n,a=e.className,i=e.text,s=e.showText,l=void 0===s||s,c=i||(0,ca.__)("Loading","versatile-toolkit");return(0,Sn.jsxs)("div",{className:la("flex items-center gap-2 py-2",va[o],a),children:[(0,Sn.jsx)("div",{className:la(pa[r],"animate-spin"),children:(0,Sn.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Sn.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),l&&(0,Sn.jsxs)("span",{className:pa[r].split(" ")[2],children:[c,"..."]})]})};const ma=function(e){var t=e.className,r=e.animate,n=void 0===r||r;return(0,Sn.jsxs)("div",{className:la("space-y-6",t),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center vt-pb-5",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-6",height:"h-6",animate:n}),(0,Sn.jsx)(ua,{width:"w-48",height:"h-8",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-24",height:"h-10",animate:n})]})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-5",animate:n}),(0,Sn.jsx)("div",{className:"vt-grid vt-grid-cols-6 vt-gap-4",children:Array.from({length:6}).map(function(e,t){return(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)("div",{className:la("vt-aspect-[4/3] vt-bg-muted vt-rounded-lg vt-border-2",n&&"vt-animate-pulse")}),(0,Sn.jsx)(ua,{width:"w-16",height:"h-4",animate:n}),(0,Sn.jsx)(ua,{rows:2,lines:1,width:"w-full",height:"h-3",animate:n}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-6",animate:n}),(0,Sn.jsx)(ua,{width:"w-14",height:"h-6",animate:n})]})]},t)})}),(0,Sn.jsx)(ua,{width:"w-80",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10",children:[(0,Sn.jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(ua,{width:"w-40",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-12",height:"h-6",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-64",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-72",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-16",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-48",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-20",height:"h-5",animate:n}),(0,Sn.jsx)(ua,{width:"w-full",height:"h-24",animate:n}),(0,Sn.jsx)(ua,{width:"w-64",height:"h-4",animate:n})]})]}),(0,Sn.jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-5",animate:n}),(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)(ua,{width:"w-48",height:"h-10",animate:n}),(0,Sn.jsx)("div",{className:la("vt-w-40 vt-h-32 vt-bg-muted vt-rounded-lg",n&&"animate-pulse")}),(0,Sn.jsx)(ua,{width:"w-24",height:"h-4",animate:n}),(0,Sn.jsx)(ua,{width:"w-80",height:"h-4",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-72",height:"h-4",animate:n})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(ua,{width:"w-12",height:"h-5",animate:n}),(0,Sn.jsxs)("div",{className:"vt-space-y-3",children:[(0,Sn.jsx)(ua,{width:"w-32",height:"h-10",animate:n}),(0,Sn.jsx)(ua,{width:"w-16",height:"h-4",animate:n})]}),(0,Sn.jsx)(ua,{width:"w-68",height:"h-4",animate:n})]})]})]})]})};const ya=function(){return(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-justify-center vt-h-full vt-bg-gray-50 vt-rounded-lg vt-border vt-border-gray-200 vt-p-6",children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-2xl vt-shadow-lg vt-p-6 vt-w-72 vt-text-center",children:[(0,Sn.jsx)("div",{className:"vt-w-16 vt-h-16 vt-bg-gray-200 vt-rounded-full vt-mx-auto vt-mb-4 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-5 vt-bg-gray-300 vt-rounded vt-w-32 vt-mx-auto vt-mb-2 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-gray-200 vt-rounded vt-w-40 vt-mx-auto vt-mb-1 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-gray-100 vt-rounded vt-w-36 vt-mx-auto vt-animate-pulse"})]})})};var ga=Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function ba(e){var t=e.columns,r=void 0===t?ga:t,n=e.rows,o=void 0===n?10:n,a=e.className,i=void 0===a?"":a,s=e.animate,l=void 0===s||s,c=function(e){switch(e){case"id":return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-6"});case"type":return(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-full vt-w-16"});case"message":return(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-full"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-3/4"})]});case"timestamp":return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-32"});case"actions":return(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-lg vt-w-[80%]"});default:return(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-24"})}};return(0,Sn.jsx)(Sn.Fragment,{children:Array.from({length:o}).map(function(e,t){return(0,Sn.jsx)("tr",{className:"vt-border-t vt-border-slate-100 ".concat(l?"vt-animate-pulse":""," ").concat(i),children:r.map(function(e,r){return(0,Sn.jsx)("td",{className:"vt-px-4 vt-py-3",children:c(e.label||e.key)},"skeleton-".concat(t,"-").concat(r))})},"skeleton-".concat(t))})})}function xa(e){return xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(e)}var wa=["className"],ja=["className"],_a=["className"],ka=["className"],Oa=["className"],Sa=["className"];function Na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(r),!0).forEach(function(t){Pa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Na(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=xa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ca(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ra=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,wa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Ra.displayName="Card";var Ta=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,ja);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});Ta.displayName="CardHeader";var Aa=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,_a);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Aa.displayName="CardTitle",i.forwardRef(function(e,t){var r=e.className,n=Ca(e,ka);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var Da=i.forwardRef(function(e,t){var r=e.className,n=Ca(e,Oa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-p-4",r)},n))});function Fa(e){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(e)}function Ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ma(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Da.displayName="CardContent",i.forwardRef(function(e,t){var r=e.className,n=Ca(e,Sa);return(0,Sn.jsx)("div",Ea({ref:t,className:la("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var La=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(r),!0).forEach(function(t){Ma(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ia(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Va=La;var $a=class extends on{constructor(e,t){super(),this.options=t,this.#d=e,this.#_=null,this.#k=ln(),this.bindMethods(),this.setOptions(t)}#d;#O=void 0;#S=void 0;#N=void 0;#E;#P;#k;#_;#C;#R;#T;#A;#D;#F;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),za(this.#O,this.options)?this.#M():this.updateResult(),this.#L())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ua(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ua(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#V(),this.#$(),this.#O.removeObserver(this)}setOptions(e){const t=this.options,r=this.#O;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Lr(this.options.enabled,this.#O))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#z(),this.#O.setOptions(this.options),t._defaulted&&!Hr(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});const n=this.hasListeners();n&&qa(this.#O,r,this.options,t)&&this.#M(),this.updateResult(),!n||this.#O===r&&Lr(this.options.enabled,this.#O)===Lr(t.enabled,this.#O)&&Mr(this.options.staleTime,this.#O)===Mr(t.staleTime,this.#O)||this.#U();const o=this.#q();!n||this.#O===r&&Lr(this.options.enabled,this.#O)===Lr(t.enabled,this.#O)&&o===this.#F||this.#W(o)}getOptimisticResult(e){const t=this.#d.getQueryCache().build(this.#d,e),r=this.createResult(t,e);return function(e,t){if(!Hr(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#N=r,this.#P=this.options,this.#E=this.#O.state),r}getCurrentResult(){return this.#N}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#k.status||this.#k.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#d.defaultQueryOptions(e),r=this.#d.getQueryCache().build(this.#d,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#N))}#M(e){this.#z();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Dr)),t}#U(){this.#V();const e=Mr(this.options.staleTime,this.#O);if(cn.isServer()||this.#N.isStale||!Fr(e))return;const t=Ir(this.#N.dataUpdatedAt,e)+1;this.#A=Tr.setTimeout(()=>{this.#N.isStale||this.updateResult()},t)}#q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#W(e){this.#$(),this.#F=e,!cn.isServer()&&!1!==Lr(this.options.enabled,this.#O)&&Fr(this.#F)&&0!==this.#F&&(this.#D=Tr.setInterval(()=>{(this.options.refetchIntervalInBackground||an.isFocused())&&this.#M()},this.#F))}#L(){this.#U(),this.#W(this.#q())}#V(){void 0!==this.#A&&(Tr.clearTimeout(this.#A),this.#A=void 0)}#$(){void 0!==this.#D&&(Tr.clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const r=this.#O,n=this.options,o=this.#N,a=this.#E,i=this.#P,s=e!==r?e.state:this.#S,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&za(e,t),i=o&&qa(e,r,t,n);(a||i)&&(u={...u,...bn(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:v}=u;c=u.data;let h=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===v){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,h=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(v="success",c=Qr(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!h)if(o&&c===a?.data&&t.select===this.#C)c=this.#R;else try{this.#C=t.select,c=t.select(c),c=Qr(o?.data,c,t),this.#R=c,this.#_=null}catch(e){this.#_=e}this.#_&&(f=this.#_,c=this.#R,p=Date.now(),v="error");const m="fetching"===u.fetchStatus,y="pending"===v,g="error"===v,b=y&&m,x=void 0!==c,w={status:v,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===v,isError:g,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:g&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:g&&x,isStale:Wa(e,t),refetch:this.refetch,promise:this.#k,isEnabled:!1!==Lr(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==w.data,n="error"===w.status&&!t,o=e=>{n?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{const e=this.#k=w.promise=ln();o(e)},i=this.#k;switch(i.status){case"pending":e.queryHash===r.queryHash&&o(i);break;case"fulfilled":(n||w.data!==i.value)&&a();break;case"rejected":n&&w.error===i.reason||a()}}return w}updateResult(){const e=this.#N,t=this.createResult(this.#O,this.options);if(this.#E=this.#O.state,this.#P=this.options,void 0!==this.#E.data&&(this.#T=this.#O),Hr(t,e))return;this.#N=t;this.#B({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#I.size)return!0;const n=new Set(r??this.#I);return this.options.throwOnError&&n.add("error"),Object.keys(this.#N).some(t=>{const r=t;return this.#N[r]!==e[r]&&n.has(r)})})()})}#z(){const e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#O)return;const t=this.#O;this.#O=e,this.#S=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#L()}#B(e){nn.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#N)}),this.#d.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function za(e,t){return function(e,t){return!1!==Lr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===Lr(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Ua(e,t,t.refetchOnMount)}function Ua(e,t,r){if(!1!==Lr(t.enabled,e)&&"static"!==Mr(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Wa(e,t)}return!1}function qa(e,t,r,n){return(e!==t||!1===Lr(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Wa(e,r)}function Wa(e,t){return!1!==Lr(t.enabled,e)&&e.isStaleByTime(Mr(t.staleTime,e))}function Ba(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ha=i.createContext(Ba()),Za=i.createContext(!1),Ka=(Za.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function Ga(e,t,r){const n=i.useContext(Za),o=i.useContext(Ha),a=En(r),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s);const l=a.getQueryCache().get(s.queryHash);s._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?tn(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(s,o,l),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const c=!a.getQueryCache().get(s.queryHash),[u]=i.useState(()=>new t(a,s)),d=u.getOptimisticResult(s),f=!n&&!1!==e.subscribed;if(i.useSyncExternalStore(i.useCallback(e=>{const t=f?u.subscribe(nn.batchCalls(e)):Dr;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),i.useEffect(()=>{u.setOptions(s)},[s,u]),((e,t)=>e?.suspense&&t.isPending)(s,d))throw Ka(s,u,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||tn(r,[e.error,n])))({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw d.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!cn.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,n)){const e=c?Ka(s,u,o):l?.promise;e?.catch(Dr).finally(()=>{u.updateResult()})}return s.notifyOnChangeProps?d:u.trackResult(d)}function Qa(e,t){return Ga(e,$a,t)}var Ja=class extends on{#d;#N=void 0;#H;#Z;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#d.defaultMutationOptions(e),Hr(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#H,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ur(t.mutationKey)!==Ur(this.options.mutationKey)?this.reset():"pending"===this.#H?.state.status&&this.#H.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#H?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#B(e)}getCurrentResult(){return this.#N}reset(){this.#H?.removeObserver(this),this.#H=void 0,this.#K(),this.#B()}mutate(e,t){return this.#Z=t,this.#H?.removeObserver(this),this.#H=this.#d.getMutationCache().build(this.#d,this.options),this.#H.addObserver(this),this.#H.execute(e)}#K(){const e=this.#H?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#N={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#B(e){nn.batch(()=>{if(this.#Z&&this.hasListeners()){const t=this.#N.variables,r=this.#N.context,n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#Z.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#Z.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#Z.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#Z.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#N)})})}};function Ya(e,t){const r=En(t),[n]=i.useState(()=>new Ja(r,e));i.useEffect(()=>{n.setOptions(e)},[n,e]);const o=i.useSyncExternalStore(i.useCallback(e=>n.subscribe(nn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=i.useCallback((e,t)=>{n.mutate(e,t).catch(Dr)},[n]);if(o.error&&tn(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Xa(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ei(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ei(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ei(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ei(d,"constructor",c),ei(c,"constructor",l),l.displayName="GeneratorFunction",ei(c,o,"GeneratorFunction"),ei(d),ei(d,o,"Generator"),ei(d,n,function(){return this}),ei(d,"toString",function(){return"[object Generator]"}),(Xa=function(){return{w:a,m:f}})()}function ei(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ei=function(e,t,r,n){function a(t,r){ei(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},ei(e,t,r,n)}function ti(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}var ni=function(e){return e instanceof File||e instanceof Blob},oi=function(e){return"string"==typeof e},ai=function(e){return"boolean"==typeof e},ii=function(e){return"number"==typeof e},si=function(e){for(var t=new FormData,r=function(){var r=o[n],a=e[r];Array.isArray(a)?a.forEach(function(e,n){ni(e)||oi(e)?t.append("".concat(r,"[").concat(n,"]"),e):ai(e)||ii(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===ri(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):ni(a)||oi(a)?t.append(r,a):ai(a)?t.append(r,a.toString()):ii(a)?t.append(r,"".concat(a)):"object"===ri(a)&&null!==a?t.append(r,JSON.stringify(a)):t.append(r,a)},n=0,o=Object.keys(e);n<o.length;n++)r();return t},li=function(e){return new Promise(function(t,r){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(function(){return t()}).catch(function(e){return r(e)});else{var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select();try{document.execCommand("copy"),t()}catch(e){r(e)}finally{document.body.removeChild(n)}}})},ci=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ti(a,n,o,i,s,"next",e)}function s(e){ti(a,n,o,i,s,"throw",e)}i(void 0)})}}(Xa().m(function e(t){return Xa().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,li(t);case 1:Cr.success((0,ca.__)("URL copied to clipboard!","versatile-toolkit")),e.n=3;break;case 2:e.p=2,e.v,Cr.error((0,ca.__)("Failed to copy URL","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return fi(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(fi(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fi(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,fi(d,"constructor",c),fi(c,"constructor",l),l.displayName="GeneratorFunction",fi(c,o,"GeneratorFunction"),fi(d),fi(d,o,"Generator"),fi(d,n,function(){return this}),fi(d,"toString",function(){return"[object Generator]"}),(di=function(){return{w:a,m:f}})()}function fi(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fi=function(e,t,r,n){function a(t,r){fi(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},fi(e,t,r,n)}function pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(r),!0).forEach(function(t){hi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function yi(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){mi(a,n,o,i,s,"next",e)}function s(e){mi(a,n,o,i,s,"throw",e)}i(void 0)})}}function gi(e,t){return bi.apply(this,arguments)}function bi(){return bi=yi(di().m(function e(t,r){var n,o,a,i,s,l,c,u,d,f,p,v,h;return di().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Va.wp_rest_nonce,a=Va.nonce_key,i=Va.nonce_value,s="".concat(t),l=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",c=vi({"X-WP-Nonce":o},r.headers||{}),u={method:l,headers:c},["GET","DELETE"].includes(l)?((d=new URLSearchParams(null==r?void 0:r.body)).append(a,i),s+="?".concat(d.toString())):r.body&&((f=si(r.body)).append(a,i),u.body=f),e.p=1,e.n=2,fetch(s,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(v=e.v).status_code){e.n=4;break}return e.a(2,v);case 4:throw new Error(v.message);case 5:e.n=7;break;case 6:throw e.p=6,h=e.v,new Error((null==h?void 0:h.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),bi.apply(this,arguments)}function xi(e,t){return wi.apply(this,arguments)}function wi(){return wi=yi(di().m(function e(t,r){var n,o,a,i,s,l,c,u,d;return di().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=Va.wp_rest_nonce,o=Va.nonce_key,a=Va.nonce_value,i="".concat(t),s={method:r.method||"POST",headers:vi({"X-WP-Nonce":n},r.headers||{}),body:r.body},r.body&&((l=si(r.body)).append(o,a),s.body=l),e.p=1,e.n=2,fetch(i,s);case 2:return c=e.v,e.n=3,c.json();case 3:if(200!==(u=e.v).status_code){e.n=4;break}return e.a(2,u);case 4:throw new Error(u.message);case 5:e.n=7;break;case 6:throw e.p=6,d=e.v,new Error((null==d?void 0:d.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),wi.apply(this,arguments)}function ji(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return _i(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(_i(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_i(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_i(d,"constructor",c),_i(c,"constructor",l),l.displayName="GeneratorFunction",_i(c,o,"GeneratorFunction"),_i(d),_i(d,o,"Generator"),_i(d,n,function(){return this}),_i(d,"toString",function(){return"[object Generator]"}),(ji=function(){return{w:a,m:f}})()}function _i(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_i=function(e,t,r,n){function a(t,r){_i(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},_i(e,t,r,n)}function ki(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Oi(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ki(a,n,o,i,s,"next",e)}function s(e){ki(a,n,o,i,s,"throw",e)}i(void 0)})}}var Si=function(){return Qa({queryKey:["getMoodInfo"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_mood_info",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Ni=function(){return Qa({queryKey:["getEnableServiceList"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_enable_service_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};function Ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ci=function(){var e=Ni(),t=e.data,r=e.isLoading,n=null==t?void 0:t.data;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)("div",{className:"vt-mt-10 vt-grid vt-grid-cols-[repeat(auto-fill,minmax(300px,1fr))] vt-gap-3",children:r?(0,Sn.jsx)(ua,{lines:3,height:"vt-h-[100px]",width:"vt-w-[900px]"}):n&&Object.entries(n).filter(function(e){var t=Ei(e,2),r=t[0];return t[1].enable&&"quickact"!==r}).map(function(e){var t=Ei(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Ra,{className:"hover:vt-bg-gray-100 vt-rounded-sm",children:(0,Sn.jsxs)(kt,{to:"/".concat(n.path),className:"vt-block vt-p-3",children:[(0,Sn.jsx)(Ta,{className:"vt-p-0",children:(0,Sn.jsx)(Aa,{className:"vt-text-xl",children:n.label})}),(0,Sn.jsx)(Da,{className:"vt-p-0 vt-pt-2",children:(0,Sn.jsx)("p",{children:n.description})})]})},r)})})})};function Ri(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ti(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Ri(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Ri(e[t],null)}}}}function Ai(...e){return i.useCallback(Ti(...e),e)}var Di=Symbol.for("react.lazy"),Fi=s[" use ".trim().toString()];function Ii(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Di&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Mi(e){const t=Vi(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;Ii(n)&&"function"==typeof Fi&&(n=Fi(n._payload));const a=i.Children.toArray(n),s=a.find(zi);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var Li=Mi("Slot");function Vi(e){const t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(Ii(r)&&"function"==typeof Fi&&(r=Fi(r._payload)),i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $i=Symbol("radix.slottable");function zi(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===$i}const Ui=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,qi=Rn,Wi=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return qi(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;const i=Ui(t)||Ui(n);return o[e][i]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...s}[t]):{...a,...s}[t]===r})?[...e,r,n]:e},[]);return qi(e,i,l,null==r?void 0:r.class,null==r?void 0:r.className)};function Bi(e){return Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(e)}var Hi=["className","variant","size","asChild"];function Zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ki(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Bi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gi=Wi("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),Qi=i.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,a=e.asChild,i=void 0!==a&&a,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Hi),l=i?Li:"button";return(0,Sn.jsx)(l,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach(function(t){Ki(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la(Gi({variant:n,size:o,className:r})),ref:t},s))});function Ji(e){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(e)}Qi.displayName="Button";var Yi=["className","variant"];function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function es(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ji(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ji(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ts=Wi("vt-inline-flex vt-items-center vt-rounded-full vt-px-2.5 vt-py-0.5 vt-text-xs vt-font-semibold vt-transition-colors focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground hover:vt-bg-primary/80",success:"vt-bg-green-100 vt-text-green-800 hover:vt-bg-green-200/80",destructive:"vt-bg-destructive vt-text-destructive-foreground hover:vt-bg-destructive/80",outline:"vt-text-foreground vt-border vt-border-input vt-bg-background hover:vt-bg-accent hover:vt-text-accent-foreground"}},defaultVariants:{variant:"default"}});function rs(e){var t=e.className,r=e.variant,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Yi);return(0,Sn.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach(function(t){es(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la(ts({variant:r}),t)},n))}var ns=.999,os=/[\\\/_+.#"@\[\(\{&]/,as=/[\\\/_+.#"@\[\(\{&]/g,is=/[\s-]/,ss=/[\s-]/g;function ls(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?1:.99;var s=`${o},${a}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,f=n.charAt(a),p=r.indexOf(f,o),v=0;p>=0;)(l=ls(e,t,r,n,p+1,a+1,i))>v&&(p===o?l*=1:os.test(e.charAt(p-1))?(l*=.8,(u=e.slice(o,p-1).match(as))&&o>0&&(l*=Math.pow(ns,u.length))):is.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(ss))&&o>0&&(l*=Math.pow(ns,d.length))):(l*=.17,o>0&&(l*=Math.pow(ns,p-o))),e.charAt(p)!==t.charAt(a)&&(l*=.9999)),(l<.1&&r.charAt(p-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(p-1)!==n.charAt(a))&&(.1*(c=ls(e,t,r,n,p+1,a+2,i))>l&&(l=.1*c)),l>v&&(v=l),p=r.indexOf(f,p+1);return i[s]=v,v}function cs(e){return e.toLowerCase().replace(ss," ")}function us(e,t,r){return ls(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,cs(e),cs(t),0,0,{})}"undefined"==typeof window||!window.document||window.document.createElement;function ds(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function fs(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>i.createContext(e));return function(r){const n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){const o=i.createContext(n),a=r.length;r=[...r,n];const s=t=>{const{scope:r,children:n,...s}=t,l=r?.[e]?.[a]||o,c=i.useMemo(()=>s,Object.values(s));return(0,Sn.jsx)(l.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,s){const l=s?.[e]?.[a]||o,c=i.useContext(l);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},ps(n,...t)]}function ps(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}var vs=globalThis?.document?i.useLayoutEffect:()=>{},hs=s[" useId ".trim().toString()]||(()=>{}),ms=0;function ys(e){const[t,r]=i.useState(hs());return vs(()=>{e||r(e=>e??String(ms++))},[e]),e||(t?`radix-${t}`:"")}var gs=s[" useInsertionEffect ".trim().toString()]||vs;function bs({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=function({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return gs(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:o;{const t=i.useRef(void 0!==e);i.useEffect(()=>{const e=t.current;if(e!==l){}t.current=l},[l,n])}const u=i.useCallback(t=>{if(l){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&s.current?.(r)}else a(t)},[l,e,a,s]);return[c,u]}Symbol("RADIX:SYNC_STATE");var xs=o(206);function ws(e){const t=js(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(ks);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function js(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _s=Symbol("radix.slottable");function ks(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_s}var Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=ws(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...a}=e,i=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Sn.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ss(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ns,Es="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",Cs="dismissableLayer.focusOutside",Rs=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ts=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=i.useContext(Rs),[d,f]=i.useState(null),p=d?.ownerDocument??globalThis?.document,[,v]=i.useState({}),h=Ai(t,e=>f(e)),m=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(y),b=d?m.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=g,j=function(e,t=globalThis?.document){const r=Ss(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){Fs(Ps,r,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));w&&!r&&(o?.(e),s?.(e),e.defaultPrevented||l?.())},p),_=function(e,t=globalThis?.document){const r=Ss(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){Fs(Cs,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},p);return function(e,t=globalThis?.document){const r=Ss(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{b===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),i.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ds(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Ns)}},[d,p,r,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ds())},[d,u]),i.useEffect(()=>{const e=()=>v({});return document.addEventListener(Es,e),()=>document.removeEventListener(Es,e)},[]),(0,Sn.jsx)(Os.div,{...c,ref:h,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:ds(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ds(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ds(e.onPointerDownCapture,j.onPointerDownCapture)})});Ts.displayName="DismissableLayer";var As=i.forwardRef((e,t)=>{const r=i.useContext(Rs),n=i.useRef(null),o=Ai(t,n);return i.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,Sn.jsx)(Os.div,{...e,ref:o})});function Ds(){const e=new CustomEvent(Es);document.dispatchEvent(e)}function Fs(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&xs.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}As.displayName="DismissableLayerBranch";var Is="focusScope.autoFocusOnMount",Ms="focusScope.autoFocusOnUnmount",Ls={bubbles:!1,cancelable:!0},Vs=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,c]=i.useState(null),u=Ss(o),d=Ss(a),f=i.useRef(null),p=Ai(t,e=>c(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(v.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:qs(f.current,{select:!0})},t=function(e){if(v.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||qs(f.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qs(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,l,v.paused]),i.useEffect(()=>{if(l){Ws.add(v);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(Is,Ls);l.addEventListener(Is,u),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(qs(n,{select:t}),document.activeElement!==r)return}((e=$s(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&qs(l))}return()=>{l.removeEventListener(Is,u),setTimeout(()=>{const e=new CustomEvent(Ms,Ls);l.addEventListener(Ms,d),l.dispatchEvent(e),e.defaultPrevented||qs(t??document.body,{select:!0}),l.removeEventListener(Ms,d),Ws.remove(v)},0)}}var e},[l,u,d,v]);const h=i.useCallback(e=>{if(!r&&!n)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,a]=function(e){const t=$s(e),r=zs(t,e),n=zs(t.reverse(),e);return[r,n]}(t);n&&a?e.shiftKey||o!==a?e.shiftKey&&o===n&&(e.preventDefault(),r&&qs(a,{select:!0})):(e.preventDefault(),r&&qs(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,v.paused]);return(0,Sn.jsx)(Os.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});function $s(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zs(e,t){for(const r of e)if(!Us(r,{upTo:t}))return r}function Us(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function qs(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Vs.displayName="FocusScope";var Ws=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Bs(e,t),e.unshift(t)},remove(t){e=Bs(e,t),e[0]?.resume()}}}();function Bs(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var Hs=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=i.useState(!1);vs(()=>a(!0),[]);const s=r||o&&globalThis?.document?.body;return s?xs.createPortal((0,Sn.jsx)(Os.div,{...n,ref:t}),s):null});Hs.displayName="Portal";var Zs=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return i.useReducer((e,r)=>t[e][r]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const e=Ks(n.current);a.current="mounted"===l?e:"none"},[l]),vs(()=>{const t=n.current,r=o.current;if(r!==e){const n=a.current,i=Ks(t);if(e)c("MOUNT");else if("none"===i||"none"===t?.display)c("UNMOUNT");else{c(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,c]),vs(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,i=a=>{const i=Ks(n.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(c("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},s=e=>{e.target===t&&(a.current=Ks(n.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),a=Ai(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:a}):null};function Ks(e){return e?.animationName||"none"}Zs.displayName="Presence";var Gs=0;function Qs(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Js()),document.body.insertAdjacentElement("beforeend",e[1]??Js()),Gs++,()=>{1===Gs&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Gs--}},[])}function Js(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ys=function(){return Ys=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ys.apply(this,arguments)};function Xs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function el(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var tl="right-scroll-bar-position",rl="width-before-scroll-bar";function nl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ol="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,al=new WeakMap;function il(e,t){var r,n,o,a=(r=t||null,n=function(t){return e.forEach(function(e){return nl(e,t)})},(o=(0,i.useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return ol(function(){var t=al.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach(function(e){n.has(e)||nl(e,null)}),n.forEach(function(e){r.has(e)||nl(e,o)})}al.set(a,e)},[e]),a}function sl(e){return e}function ll(e,t){void 0===t&&(t=sl);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}};return o}var cl=function(e){void 0===e&&(e={});var t=ll(null);return t.options=Ys({async:!0,ssr:!1},e),t}(),ul=function(){},dl=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,x=e.gapMode,w=Xs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,_=il([r,t]),k=Ys(Ys({},w),o);return i.createElement(i.Fragment,null,d&&i.createElement(j,{sideCar:cl,removeScrollBar:u,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:x}),s?i.cloneElement(i.Children.only(l),Ys(Ys({},k),{ref:_})):i.createElement(b,Ys({},k,{className:c,ref:_}),l))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dl.classNames={fullWidth:rl,zeroRight:tl};var fl,pl=function(e){var t=e.sideCar,r=Xs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Ys({},r))};pl.isSideCarExport=!0;function vl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fl||o.nc;return t&&e.setAttribute("nonce",t),e}var hl=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=vl())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ml=function(){var e,t=(e=hl(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},yl={left:0,top:0,right:0,gap:0},gl=function(e){return parseInt(e||"",10)||0},bl=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return yl;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[gl(r),gl(n),gl(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},xl=ml(),wl="data-scroll-locked",jl=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(wl,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tl," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(rl," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(tl," .").concat(tl," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(rl," .").concat(rl," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(wl,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},_l=function(){var e=parseInt(document.body.getAttribute(wl)||"0",10);return isFinite(e)?e:0},kl=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(wl,(_l()+1).toString()),function(){var e=_l()-1;e<=0?document.body.removeAttribute(wl):document.body.setAttribute(wl,e.toString())}},[]);var a=i.useMemo(function(){return bl(o)},[o]);return i.createElement(xl,{styles:jl(a,!t,o,r?"":"!important")})},Ol=!1;if("undefined"!=typeof window)try{var Sl=Object.defineProperty({},"passive",{get:function(){return Ol=!0,!0}});window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch(e){Ol=!1}var Nl=!!Ol&&{passive:!1},El=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Pl=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Cl(e,n)){var o=Rl(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Cl=function(e,t){return"v"===e?function(e){return El(e,"overflowY")}(t):function(e){return El(e,"overflowX")}(t)},Rl=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Al=function(e){return[e.deltaX,e.deltaY]},Dl=function(e){return e&&"current"in e?e.current:e},Fl=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Il=0,Ml=[];function Ll(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vl=($l=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Il++)[0],a=i.useState(ml)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=el([e.lockRef.current],(e.shards||[]).map(Dl),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,a=Tl(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var v=Pl(d,u);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=Pl(d,u)),!v)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var h=n.current||o;return function(e,t,r,n,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,l=t.contains(s),c=!1,u=i>0,d=0,f=0;do{if(!s)break;var p=Rl(e,s),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&Cl(e,s)&&(d+=h,f+=v);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),c=i.useCallback(function(e){var r=e;if(Ml.length&&Ml[Ml.length-1]===a){var n="deltaY"in r?Al(r):Tl(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Dl).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?l(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:Ll(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){r.current=Tl(e),n.current=void 0},[]),f=i.useCallback(function(t){u(t.type,Al(t),t.target,l(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,Tl(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return Ml.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Nl),document.addEventListener("touchmove",c,Nl),document.addEventListener("touchstart",d,Nl),function(){Ml=Ml.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,Nl),document.removeEventListener("touchmove",c,Nl),document.removeEventListener("touchstart",d,Nl)}},[]);var v=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(a,{styles:Fl(o)}):null,v?i.createElement(kl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},cl.useMedium($l),pl);var $l,zl=i.forwardRef(function(e,t){return i.createElement(dl,Ys({},e,{ref:t,sideCar:Vl}))});zl.classNames=dl.classNames;const Ul=zl;var ql=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Wl=new WeakMap,Bl=new WeakMap,Hl={},Zl=0,Kl=function(e){return e&&(e.host||Kl(e.parentNode))},Gl=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Kl(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Hl[r]||(Hl[r]=new WeakMap);var a=Hl[r],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(Wl.get(e)||0)+1,c=(a.get(e)||0)+1;Wl.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Bl.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),s.clear(),Zl++,function(){i.forEach(function(e){var t=Wl.get(e)-1,o=a.get(e)-1;Wl.set(e,t),a.set(e,o),t||(Bl.has(e)||e.removeAttribute(n),Bl.delete(e)),o||e.removeAttribute(r)}),--Zl||(Wl=new WeakMap,Wl=new WeakMap,Bl=new WeakMap,Hl={})}},Ql=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||ql(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Gl(n,o,r,"aria-hidden")):function(){return null}};function Jl(e){const t=Yl(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(ec);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Yl(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xl=Symbol("radix.slottable");function ec(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xl}var tc="Dialog",[rc,nc]=fs(tc),[oc,ac]=rc(tc),ic=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=i.useRef(null),c=i.useRef(null),[u,d]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:tc});return(0,Sn.jsx)(oc,{scope:t,triggerRef:l,contentRef:c,contentId:ys(),titleId:ys(),descriptionId:ys(),open:u,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};ic.displayName=tc;var sc="DialogTrigger",lc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(sc,r),a=Ai(t,o.triggerRef);return(0,Sn.jsx)(Os.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ec(o.open),...n,ref:a,onClick:ds(e.onClick,o.onOpenToggle)})});lc.displayName=sc;var cc="DialogPortal",[uc,dc]=rc(cc,{forceMount:void 0}),fc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ac(cc,t);return(0,Sn.jsx)(uc,{scope:t,forceMount:r,children:i.Children.map(n,e=>(0,Sn.jsx)(Zs,{present:r||a.open,children:(0,Sn.jsx)(Hs,{asChild:!0,container:o,children:e})}))})};fc.displayName=cc;var pc="DialogOverlay",vc=i.forwardRef((e,t)=>{const r=dc(pc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ac(pc,e.__scopeDialog);return a.modal?(0,Sn.jsx)(Zs,{present:n||a.open,children:(0,Sn.jsx)(mc,{...o,ref:t})}):null});vc.displayName=pc;var hc=Jl("DialogOverlay.RemoveScroll"),mc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(pc,r);return(0,Sn.jsx)(Ul,{as:hc,allowPinchZoom:!0,shards:[o.contentRef],children:(0,Sn.jsx)(Os.div,{"data-state":Ec(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),yc="DialogContent",gc=i.forwardRef((e,t)=>{const r=dc(yc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ac(yc,e.__scopeDialog);return(0,Sn.jsx)(Zs,{present:n||a.open,children:a.modal?(0,Sn.jsx)(bc,{...o,ref:t}):(0,Sn.jsx)(xc,{...o,ref:t})})});gc.displayName=yc;var bc=i.forwardRef((e,t)=>{const r=ac(yc,e.__scopeDialog),n=i.useRef(null),o=Ai(t,r.contentRef,n);return i.useEffect(()=>{const e=n.current;if(e)return Ql(e)},[]),(0,Sn.jsx)(wc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ds(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ds(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:ds(e.onFocusOutside,e=>e.preventDefault())})}),xc=i.forwardRef((e,t)=>{const r=ac(yc,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return(0,Sn.jsx)(wc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=r.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),wc=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=ac(yc,r),c=i.useRef(null),u=Ai(t,c);return Qs(),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Vs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,Sn.jsx)(Ts,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ec(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Tc,{titleId:l.titleId}),(0,Sn.jsx)(Ac,{contentRef:c,descriptionId:l.descriptionId})]})]})}),jc="DialogTitle",_c=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(jc,r);return(0,Sn.jsx)(Os.h2,{id:o.titleId,...n,ref:t})});_c.displayName=jc;var kc="DialogDescription",Oc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(kc,r);return(0,Sn.jsx)(Os.p,{id:o.descriptionId,...n,ref:t})});Oc.displayName=kc;var Sc="DialogClose",Nc=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ac(Sc,r);return(0,Sn.jsx)(Os.button,{type:"button",...n,ref:t,onClick:ds(e.onClick,()=>o.onOpenChange(!1))})});function Ec(e){return e?"open":"closed"}Nc.displayName=Sc;var Pc="DialogTitleWarning",[Cc,Rc]=function(e,t){const r=i.createContext(t),n=e=>{const{children:t,...n}=e,o=i.useMemo(()=>n,Object.values(n));return(0,Sn.jsx)(r.Provider,{value:o,children:t})};return n.displayName=e+"Provider",[n,function(n){const o=i.useContext(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}]}(Pc,{contentName:yc,titleName:jc,docsSlug:"dialog"}),Tc=({titleId:e})=>{const t=Rc(Pc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{if(e){document.getElementById(e)}},[r,e]),null},Ac=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rc("DialogDescriptionWarning").contentName}}.`;return i.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)}},[r,e,t]),null},Dc=ic,Fc=lc,Ic=fc,Mc=vc,Lc=gc,Vc=_c,$c=Oc,zc=Nc,Uc='[cmdk-group=""]',qc='[cmdk-group-items=""]',Wc='[cmdk-item=""]',Bc=`${Wc}:not([aria-disabled="true"])`,Hc="cmdk-item-select",Zc="data-value",Kc=(e,t,r)=>us(e,t,r),Gc=i.createContext(void 0),Qc=()=>i.useContext(Gc),Jc=i.createContext(void 0),Yc=()=>i.useContext(Jc),Xc=i.createContext(void 0),eu=i.forwardRef((e,t)=>{let r=vu(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=vu(()=>new Set),o=vu(()=>new Map),a=vu(()=>new Map),s=vu(()=>new Set),l=fu(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=ys(),x=ys(),w=ys(),j=i.useRef(null),_=yu();pu(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,k.emit()}},[d]),pu(()=>{_(6,C)},[]);let k=i.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,a,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)P(),N(),_(1,E);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(_(7,()=>{var e;r.current.selectedItemId=null==(e=R())?void 0:e.id,k.emit()}),n||_(5,C),void 0!==(null==(a=l.current)?void 0:a.value)){let e=null!=t?t:"";return void(null==(s=(i=l.current).onValueChange)||s.call(i,e))}}k.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),O=i.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,S(t,n)),_(2,()=>{N(),k.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,()=>{P(),N(),r.current.value||E(),k.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=R();_(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&E(),k.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:w,labelId:x,listInnerRef:j}),[]);function S(e,t){var n,o;let a=null!=(o=null==(n=l.current)?void 0:n.filter)?o:Kc;return e?a(e,r.current.search,t):0}function N(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),a=0;n.forEach(t=>{let r=e.get(t);a=Math.max(r,a)}),t.push([r,a])});let n=j.current;T().sort((t,r)=>{var n,o;let a=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(qc);t?t.appendChild(e.parentElement===t?e:e.closest(`${qc} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${qc} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=j.current)?void 0:t.querySelector(`${Uc}[${Zc}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function E(){let e=T().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Zc);k.setState("value",t||void 0)}function P(){var e,t,i,s;if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let c=0;for(let o of n.current){let n=S(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=a.current.get(o))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(o,n),n>0&&c++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function C(){var e,t,r;let n=R();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(Uc))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=j.current)?void 0:e.querySelector(`${Wc}[aria-selected="true"]`)}function T(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(Bc))||[])}function A(e){let t=T()[e];t&&k.setState("value",t.getAttribute(Zc))}function D(e){var t;let r=R(),n=T(),o=n.findIndex(e=>e===r),a=n[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),a&&k.setState("value",a.getAttribute(Zc))}function F(e){let t,r=R(),n=null==r?void 0:r.closest(Uc);for(;n&&!t;)n=e>0?uu(n,Uc):du(n,Uc),t=null==n?void 0:n.querySelector(Bc);t?k.setState("value",t.getAttribute(Zc)):D(e)}let I=()=>A(T().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):D(1)},L=e=>{e.preventDefault(),e.metaKey?A(0):e.altKey?F(-1):D(-1)};return i.createElement(Os.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":y&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":y&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),A(0);break;case"End":e.preventDefault(),I();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Hc);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:bu},c),gu(e,e=>i.createElement(Jc.Provider,{value:k},i.createElement(Gc.Provider,{value:O},e))))}),tu=i.forwardRef((e,t)=>{var r,n;let o=ys(),a=i.useRef(null),s=i.useContext(Xc),l=Qc(),c=fu(e),u=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;pu(()=>{if(!u)return l.item(o,null==s?void 0:s.id)},[u]);let d=mu(o,a,[e.value,e.children,a],e.keywords),f=Yc(),p=hu(e=>e.value&&e.value===d.current),v=hu(e=>!(!u&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(i.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(Hc,h),()=>t.removeEventListener(Hc,h)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:y,value:g,onSelect:b,forceMount:x,keywords:w,...j}=e;return i.createElement(Os.div,{ref:Ti(a,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:m,onClick:y?void 0:h},e.children)}),ru=i.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ys(),l=i.useRef(null),c=i.useRef(null),u=ys(),d=Qc(),f=hu(e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(s)));pu(()=>d.group(s),[]),mu(s,l,[e.value,e.heading,c]);let p=i.useMemo(()=>({id:s,forceMount:o}),[o]);return i.createElement(Os.div,{ref:Ti(l,t),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),gu(e,e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},i.createElement(Xc.Provider,{value:p},e))))}),nu=i.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=i.useRef(null),a=hu(e=>!e.search);return r||a?i.createElement(Os.div,{ref:Ti(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),ou=i.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,a=Yc(),s=hu(e=>e.search),l=hu(e=>e.selectedItemId),c=Qc();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement(Os.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),au=i.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=i.useRef(null),s=i.useRef(null),l=hu(e=>e.selectedItemId),c=Qc();return i.useEffect(()=>{if(s.current&&a.current){let e,t=s.current,r=a.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),i.createElement(Os.div,{ref:Ti(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},gu(e,e=>i.createElement("div",{ref:Ti(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),iu=i.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...l}=e;return i.createElement(Dc,{open:r,onOpenChange:n},i.createElement(Ic,{container:s},i.createElement(Mc,{"cmdk-overlay":"",className:o}),i.createElement(Lc,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(eu,{ref:t,...l}))))}),su=i.forwardRef((e,t)=>hu(e=>0===e.filtered.count)?i.createElement(Os.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),lu=i.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return i.createElement(Os.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},gu(e,e=>i.createElement("div",{"aria-hidden":!0},e)))}),cu=Object.assign(eu,{List:au,Item:tu,Input:ou,Group:ru,Separator:nu,Dialog:iu,Empty:su,Loading:lu});function uu(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function du(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function fu(e){let t=i.useRef(e);return pu(()=>{t.current=e}),t}var pu="undefined"==typeof window?i.useEffect:i.useLayoutEffect;function vu(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function hu(e){let t=Yc(),r=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,r,r)}function mu(e,t,r,n=[]){let o=i.useRef(),a=Qc();return pu(()=>{var i;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=n.map(e=>e.trim());a.value(e,s,l),null==(i=t.current)||i.setAttribute(Zc,s),o.current=s}),o}var yu=()=>{let[e,t]=i.useState(),r=vu(()=>new Map);return pu(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function gu({asChild:e,children:t},r){return e&&i.isValidElement(t)?i.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var bu={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const xu=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var wu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ju=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...l},c)=>(0,i.createElement)("svg",{ref:c,...wu,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:xu("lucide",o),...l},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(a)?a:[a]])),_u=(e,t)=>{const r=(0,i.forwardRef)(({className:r,...n},o)=>{return(0,i.createElement)(ju,{ref:o,iconNode:t,className:xu(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var a});return r.displayName=`${e}`,r},ku=_u("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ou=_u("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Su(e){return Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Su(e)}var Nu=["className"],Eu=["className","children"],Pu=["className"],Cu=["className"],Ru=["className"],Tu=["className"];function Au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Du(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Au(Object(r),!0).forEach(function(t){Fu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Au(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Su(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Mu="vt-absolute vt-top-4 vt-right-4 vt-p-2 vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-50 hover:vt-bg-accent hover:vt-text-accent-foreground",Lu=Dc,Vu=Fc,$u=Ic,zu=zc,Uu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Nu);return(0,Sn.jsx)(Mc,Du({ref:t,className:la("vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0",r)},n))});Uu.displayName=Mc.displayName;var qu=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Iu(e,Eu);return(0,Sn.jsxs)($u,{children:[(0,Sn.jsx)(Uu,{}),(0,Sn.jsxs)(Lc,Du(Du({ref:t,className:la("vt-fixed vt-left-[50%] vt-top-[50%] vt-grid vt-w-full vt-translate-x-[-50%] vt-translate-y-[-50%] vt-gap-4 vt-border vt-bg-background vt-p-6 vt-shadow-lg vt-duration-200 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0 vt-data-[state=closed]:vt-zoom-out-95 vt-data-[state=open]:vt-zoom-in-95 vt-data-[state=closed]:vt-slide-out-to-left-1/2 vt-data-[state=closed]:vt-slide-out-to-top-[48%] vt-data-[state=open]:vt-slide-in-from-left-1/2 vt-data-[state=open]:vt-slide-in-from-top-[48%] sm:vt-rounded-lg","vt-max-w-4xl vt-z-[99999]",r)},o),{},{children:[n,(0,Sn.jsxs)(zc,{className:Mu,children:[(0,Sn.jsx)(Ou,{size:16}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Close","trigger")})]})]}))]})});qu.displayName=Lc.displayName;var Wu=function(e){var t=e.className,r=Iu(e,Pu);return(0,Sn.jsx)("div",Du({className:la("vt-flex vt-flex-col vt-space-y-1.5 vt-text-center sm:vt-text-left",t)},r))};Wu.displayName="DialogHeader";var Bu=function(e){var t=e.className,r=Iu(e,Cu);return(0,Sn.jsx)("div",Du({className:la("vt-flex vt-flex-col-reverse sm:vt-flex-row sm:vt-justify-end sm:vt-space-x-2",t)},r))};Bu.displayName="DialogFooter";var Hu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Ru);return(0,Sn.jsx)(Vc,Du({ref:t,className:la("vt-text-lg vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Hu.displayName=Vc.displayName;var Zu=i.forwardRef(function(e,t){var r=e.className,n=Iu(e,Tu);return(0,Sn.jsx)($c,Du({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))});function Ku(e){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(e)}Zu.displayName=$c.displayName;var Gu=["className"],Qu=["className"],Ju=["className"],Yu=["className"],Xu=["className"],ed=["className"];function td(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?td(Object(r),!0).forEach(function(t){nd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ku(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ku(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ku(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function od(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ad=i.forwardRef(function(e,t){var r=e.className,n=od(e,Gu);return(0,Sn.jsx)(cu,rd({ref:t,className:la("vt-flex vt-h-full vt-w-full vt-flex-col vt-overflow-hidden vt-rounded-md vt-bg-popover vt-text-popover-foreground",r)},n))});ad.displayName=cu.displayName;var id=i.forwardRef(function(e,t){var r=e.className,n=od(e,Qu);return(0,Sn.jsxs)("div",{className:"vt-relative vt-flex vt-items-center vt-border-b vt-pb-2","cmdk-input-wrapper":"",children:[(0,Sn.jsx)(ku,{className:"vt-absolute vt-left-2 vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"}),(0,Sn.jsx)(cu.Input,rd({ref:t,className:la("vt-flex vt-h-10 vt-w-full vt-rounded-md vt-bg-transparent vt-py-3 vt-pl-7 vt-text-sm vt-outline-none vt-placeholder:vt-text-muted-foreground disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},n))]})});id.displayName=cu.Input.displayName;var sd=i.forwardRef(function(e,t){var r=e.className,n=od(e,Ju);return(0,Sn.jsx)(cu.List,rd({ref:t,className:la("vt-max-h-[300px] vt-pt-2 vt-overflow-y-auto vt-overflow-x-hidden",r)},n))});sd.displayName=cu.List.displayName;var ld=i.forwardRef(function(e,t){return(0,Sn.jsx)(cu.Empty,rd({ref:t,className:"vt-py-6 vt-text-center vt-text-sm"},e))});ld.displayName=cu.Empty.displayName;var cd=i.forwardRef(function(e,t){var r=e.className,n=od(e,Yu);return(0,Sn.jsx)(cu.Group,rd({ref:t,className:la("vt-overflow-hidden vt-p-1 vt-text-foreground [&_[cmdk-group-heading]]:vt-px-2 [&_[cmdk-group-heading]]:vt-py-1.5 [&_[cmdk-group-heading]]:vt-text-xs [&_[cmdk-group-heading]]:vt-font-medium [&_[cmdk-group-heading]]:vt-text-muted-foreground",r)},n))});cd.displayName=cu.Group.displayName,i.forwardRef(function(e,t){var r=e.className,n=od(e,Xu);return(0,Sn.jsx)(cu.Separator,rd({ref:t,className:la("vt-mx-1 vt-h-px vt-bg-border",r)},n))}).displayName=cu.Separator.displayName;var ud=i.forwardRef(function(e,t){var r=e.className,n=od(e,ed);return(0,Sn.jsx)(cu.Item,rd({ref:t,className:la("vt-relative vt-flex vt-cursor-default vt-gap-2 vt-select-none vt-items-center vt-rounded-sm vt-px-2 vt-py-1.5 vt-text-sm vt-outline-none data-[disabled=true]:vt-pointer-events-none data-[selected=true]:vt-bg-accent data-[selected=true]:vt-text-accent-foreground data-[disabled=true]:vt-opacity-50 [&_svg]:vt-pointer-events-none [&_svg]:vt-size-4 [&_svg]:vt-shrink-0",r)},n))});ud.displayName=cu.Item.displayName;const dd=["top","right","bottom","left"],fd=Math.min,pd=Math.max,vd=Math.round,hd=Math.floor,md=e=>({x:e,y:e}),yd={left:"right",right:"left",bottom:"top",top:"bottom"};function gd(e,t,r){return pd(e,fd(t,r))}function bd(e,t){return"function"==typeof e?e(t):e}function xd(e){return e.split("-")[0]}function wd(e){return e.split("-")[1]}function jd(e){return"x"===e?"y":"x"}function _d(e){return"y"===e?"height":"width"}function kd(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Od(e){return jd(kd(e))}function Sd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Nd=["left","right"],Ed=["right","left"],Pd=["top","bottom"],Cd=["bottom","top"];function Rd(e,t,r,n){const o=wd(e);let a=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Ed:Nd:t?Nd:Ed;case"left":case"right":return t?Pd:Cd;default:return[]}}(xd(e),"start"===r,n);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(Sd)))),a}function Td(e){const t=xd(e);return yd[t]+e.slice(t.length)}function Ad(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Dd(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Fd(e,t,r){let{reference:n,floating:o}=e;const a=kd(t),i=Od(t),s=_d(i),l=xd(t),c="y"===a,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(wd(t)){case"start":p[i]-=f*(r&&c?-1:1);break;case"end":p[i]+=f*(r&&c?-1:1)}return p}async function Id(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bd(t,e),v=Ad(p),h=s[f?"floating"===d?"reference":"floating":d],m=Dd(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(h)))||r?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(g))&&await(null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},x=Dd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-x.top+v.top)/b.y,bottom:(x.bottom-m.bottom+v.bottom)/b.y,left:(m.left-x.left+v.left)/b.x,right:(x.right-m.right+v.right)/b.x}}function Md(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ld(e){return dd.some(t=>e[t]>=0)}const Vd=new Set(["left","top"]);function $d(){return"undefined"!=typeof window}function zd(e){return Wd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ud(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qd(e){var t;return null==(t=(Wd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wd(e){return!!$d()&&(e instanceof Node||e instanceof Ud(e).Node)}function Bd(e){return!!$d()&&(e instanceof Element||e instanceof Ud(e).Element)}function Hd(e){return!!$d()&&(e instanceof HTMLElement||e instanceof Ud(e).HTMLElement)}function Zd(e){return!(!$d()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ud(e).ShadowRoot)}function Kd(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=of(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Gd(e){return/^(table|td|th)$/.test(zd(e))}function Qd(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Jd=/transform|translate|scale|rotate|perspective|filter/,Yd=/paint|layout|strict|content/,Xd=e=>!!e&&"none"!==e;let ef;function tf(e){const t=Bd(e)?of(e):e;return Xd(t.transform)||Xd(t.translate)||Xd(t.scale)||Xd(t.rotate)||Xd(t.perspective)||!rf()&&(Xd(t.backdropFilter)||Xd(t.filter))||Jd.test(t.willChange||"")||Yd.test(t.contain||"")}function rf(){return null==ef&&(ef="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ef}function nf(e){return/^(html|body|#document)$/.test(zd(e))}function of(e){return Ud(e).getComputedStyle(e)}function af(e){return Bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sf(e){if("html"===zd(e))return e;const t=e.assignedSlot||e.parentNode||Zd(e)&&e.host||qd(e);return Zd(t)?t.host:t}function lf(e){const t=sf(e);return nf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hd(t)&&Kd(t)?t:lf(t)}function cf(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=lf(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Ud(o);if(a){const e=uf(i);return t.concat(i,i.visualViewport||[],Kd(o)?o:[],e&&r?cf(e):[])}return t.concat(o,cf(o,[],r))}function uf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function df(e){const t=of(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Hd(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=vd(r)!==a||vd(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ff(e){return Bd(e)?e:e.contextElement}function pf(e){const t=ff(e);if(!Hd(t))return md(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=df(t);let i=(a?vd(r.width):r.width)/n,s=(a?vd(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const vf=md(0);function hf(e){const t=Ud(e);return rf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:vf}function mf(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),a=ff(e);let i=md(1);t&&(n?Bd(n)&&(i=pf(n)):i=pf(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ud(e))&&t}(a,r,n)?hf(a):md(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Ud(a),t=n&&Bd(n)?Ud(n):n;let r=e,o=uf(r);for(;o&&n&&t!==r;){const e=pf(o),t=o.getBoundingClientRect(),n=of(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,r=Ud(o),o=uf(r)}}return Dd({width:u,height:d,x:l,y:c})}function yf(e,t){const r=af(e).scrollLeft;return t?t.left+r:mf(qd(e)).left+r}function gf(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-yf(e,r),y:r.top+t.scrollTop}}function bf(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Ud(e),n=qd(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=rf();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=yf(n);if(c<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=qd(e),r=af(e),n=e.ownerDocument.body,o=pd(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=pd(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+yf(e);const s=-r.scrollTop;return"rtl"===of(n).direction&&(i+=pd(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}(qd(e));else if(Bd(t))n=function(e,t){const r=mf(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Hd(e)?pf(e):md(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{const r=hf(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Dd(n)}function xf(e,t){const r=sf(e);return!(r===t||!Bd(r)||nf(r))&&("fixed"===of(r).position||xf(r,t))}function wf(e,t,r){const n=Hd(t),o=qd(t),a="fixed"===r,i=mf(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=md(0);function c(){l.x=yf(o)}if(n||!n&&!a)if(("body"!==zd(t)||Kd(o))&&(s=af(t)),n){const e=mf(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!n&&o&&c();const u=!o||n||a?md(0):gf(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function jf(e){return"static"===of(e).position}function _f(e,t){if(!Hd(e)||"fixed"===of(e).position)return null;if(t)return t(e);let r=e.offsetParent;return qd(e)===r&&(r=r.ownerDocument.body),r}function kf(e,t){const r=Ud(e);if(Qd(e))return r;if(!Hd(e)){let t=sf(e);for(;t&&!nf(t);){if(Bd(t)&&!jf(t))return t;t=sf(t)}return r}let n=_f(e,t);for(;n&&Gd(n)&&jf(n);)n=_f(n,t);return n&&nf(n)&&jf(n)&&!tf(n)?r:n||function(e){let t=sf(e);for(;Hd(t)&&!nf(t);){if(tf(t))return t;if(Qd(t))return null;t=sf(t)}return null}(e)||r}const Of={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a="fixed"===o,i=qd(n),s=!!t&&Qd(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=md(1);const u=md(0),d=Hd(n);if((d||!d&&!a)&&(("body"!==zd(n)||Kd(i))&&(l=af(n)),d)){const e=mf(n);c=pf(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!i||d||a?md(0):gf(i,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:qd,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[..."clippingAncestors"===r?Qd(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=cf(e,[],!1).filter(e=>Bd(e)&&"body"!==zd(e)),o=null;const a="fixed"===of(e).position;let i=a?sf(e):e;for(;Bd(i)&&!nf(i);){const t=of(i),r=tf(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Kd(i)&&!r&&xf(e,i))?n=n.filter(e=>e!==i):o=t,i=sf(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=bf(t,a[0],o);let s=i.top,l=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const r=bf(t,a[e],o);s=pd(r.top,s),l=fd(r.right,l),c=fd(r.bottom,c),u=pd(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:kf,getElementRects:async function(e){const t=this.getOffsetParent||kf,r=this.getDimensions,n=await r(e.floating);return{reference:wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=df(e);return{width:t,height:r}},getScale:pf,isElement:Bd,isRTL:function(e){return"rtl"===of(e).direction}};function Sf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nf(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ff(e),u=o||a?[...c?cf(c):[],...t?cf(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});const d=c&&s?function(e,t){let r,n=null;const o=qd(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const v={rootMargin:-hd(d)+"px "+-hd(o.clientWidth-(u+f))+"px "+-hd(o.clientHeight-(d+p))+"px "+-hd(u)+"px",threshold:pd(0,fd(1,l))||1};let h=!0;function m(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||Sf(c,e.getBoundingClientRect())||i(),h=!1}try{n=new IntersectionObserver(m,{...v,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(m,v)}n.observe(e)}(!0),a}(c,r):null;let f,p=-1,v=null;i&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),c&&!l&&v.observe(c),t&&v.observe(t));let h=l?mf(e):null;return l&&function t(){const n=mf(e);h&&!Sf(h,n)&&r();h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}const Ef=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,a=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=xd(r),s=wd(r),l="y"===kd(r),c=Vd.has(i)?-1:1,u=a&&l?-1:1,d=bd(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(p="end"===s?-1*v:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Pf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=bd(e,t),u={x:r,y:n},d=await a.detectOverflow(t,c),f=kd(xd(o)),p=jd(f);let v=u[p],h=u[f];if(i){const e="y"===p?"bottom":"right";v=gd(v+d["y"===p?"top":"left"],v,v-d[e])}if(s){const e="y"===f?"bottom":"right";h=gd(h+d["y"===f?"top":"left"],h,h-d[e])}const m=l.fn({...t,[p]:v,[f]:h});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[p]:i,[f]:s}}}}}},Cf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=bd(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const y=xd(o),g=kd(s),b=xd(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[Td(s)]:function(e){const t=Td(e);return[Sd(e),t,Sd(t)]}(s)),j="none"!==v;!f&&j&&w.push(...Rd(s,h,v,x));const _=[s,...w],k=await l.detectOverflow(t,m),O=[];let S=(null==(n=a.flip)?void 0:n.overflows)||[];if(u&&O.push(k[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=wd(e),o=Od(e),a=_d(o);let i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Td(i)),[i,Td(i)]}(o,i,x);O.push(k[e[0]],k[e[1]])}if(S=[...S,{placement:o,overflows:O}],!O.every(e=>e<=0)){var N,E;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&g!==kd(t))||S.every(e=>kd(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let r=null==(E=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!r)switch(p){case"bestFit":{var P;const e=null==(P=S.filter(e=>{if(j){const t=kd(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Rf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=bd(e,t),u=await i.detectOverflow(t,c),d=xd(o),f=wd(o),p="y"===kd(o),{width:v,height:h}=a.floating;let m,y;"top"===d||"bottom"===d?(m=d,y=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,m="end"===f?"top":"bottom");const g=h-u.top-u.bottom,b=v-u.left-u.right,x=fd(h-u[m],g),w=fd(v-u[y],b),j=!t.middlewareData.shift;let _=x,k=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(_=g),j&&!f){const e=pd(u.left,0),t=pd(u.right,0),r=pd(u.top,0),n=pd(u.bottom,0);p?k=v-2*(0!==e||0!==t?e+t:pd(u.left,u.right)):_=h-2*(0!==r||0!==n?r+n:pd(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:_});const O=await i.getDimensions(s.floating);return v!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}},Tf=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...a}=bd(e,t);switch(o){case"referenceHidden":{const e=Md(await n.detectOverflow(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ld(e)}}}case"escaped":{const e=Md(await n.detectOverflow(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ld(e)}}}default:return{}}}}},Af=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=bd(e,t)||{};if(null==c)return{};const d=Ad(u),f={x:r,y:n},p=Od(o),v=_d(p),h=await i.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",x=a.reference[v]+a.reference[p]-f[p]-a.floating[v],w=f[p]-a.reference[p],j=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let _=j?j[b]:0;_&&await(null==i.isElement?void 0:i.isElement(j))||(_=s.floating[b]||a.floating[v]);const k=x/2-w/2,O=_/2-h[v]/2-1,S=fd(d[y],O),N=fd(d[g],O),E=S,P=_-h[v]-N,C=_/2-h[v]/2+k,R=gd(E,C,P),T=!l.arrow&&null!=wd(o)&&C!==R&&a.reference[v]/2-(C<E?S:N)-h[v]/2<0,A=T?C<E?C-E:C-P:0;return{[p]:f[p]+A,data:{[p]:R,centerOffset:C-R-A,...T&&{alignmentOffset:A}},reset:T}}}),Df=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=bd(e,t),u={x:r,y:n},d=kd(o),f=jd(d);let p=u[f],v=u[d];const h=bd(s,t),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+m.mainAxis,r=a.reference[f]+a.reference[e]-m.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var y,g;const e="y"===f?"width":"height",t=Vd.has(xd(o)),r=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:m.crossAxis),n=a.reference[d]+a.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);v<r?v=r:v>n&&(v=n)}return{[f]:p,[d]:v}}}},Ff=(e,t,r)=>{const n=new Map,o={platform:Of,...r},a={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:Id},l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fd(c,n,l),f=n,p=0;const v={};for(let r=0;r<a.length;r++){const h=a[r];if(!h)continue;const{name:m,fn:y}=h,{x:g,y:b,data:x,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,v[m]={...v[m],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Fd(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:v}})(e,t,{...o,platform:a})};var If="undefined"!=typeof document?i.useLayoutEffect:function(){};function Mf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Mf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Mf(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Lf(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(e,t){const r=Lf(e);return Math.round(t*r)/r}function $f(e){const t=i.useRef(e);return If(()=>{t.current=e}),t}const zf=(e,t)=>{const r=Ef(e);return{name:r.name,fn:r.fn,options:[e,t]}},Uf=(e,t)=>{const r=Pf(e);return{name:r.name,fn:r.fn,options:[e,t]}},qf=(e,t)=>({fn:Df(e).fn,options:[e,t]}),Wf=(e,t)=>{const r=Cf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Bf=(e,t)=>{const r=Rf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Hf=(e,t)=>{const r=Tf(e);return{name:r.name,fn:r.fn,options:[e,t]}},Zf=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Af({element:r.current,padding:n}).fn(t):{}:r?Af({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Kf=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return(0,Sn.jsx)(Os.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Sn.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Kf.displayName="Arrow";var Gf=Kf;function Qf(e){const[t,r]=i.useState(void 0);return vs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}var Jf="Popper",[Yf,Xf]=fs(Jf),[ep,tp]=Yf(Jf),rp=e=>{const{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,Sn.jsx)(ep,{scope:t,anchor:n,onAnchorChange:o,children:r})};rp.displayName=Jf;var np="PopperAnchor",op=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=tp(np,r),s=i.useRef(null),l=Ai(t,s),c=i.useRef(null);return i.useEffect(()=>{const e=c.current;c.current=n?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)}),n?null:(0,Sn.jsx)(Os.div,{...o,ref:l})});op.displayName=np;var ap="PopperContent",[ip,sp]=Yf(ap),lp=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:h,...m}=e,y=tp(ap,r),[g,b]=i.useState(null),x=Ai(t,e=>b(e)),[w,j]=i.useState(null),_=Qf(w),k=_?.width??0,O=_?.height??0,S=n+("center"!==a?"-"+a:""),N="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},E=Array.isArray(u)?u:[u],P=E.length>0,C={padding:N,boundary:E.filter(fp),altBoundary:P},{refs:R,floatingStyles:T,placement:A,isPositioned:D,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=i.useState(n);Mf(p,n)||v(n);const[h,m]=i.useState(null),[y,g]=i.useState(null),b=i.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),x=i.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),w=a||h,j=s||y,_=i.useRef(null),k=i.useRef(null),O=i.useRef(d),S=null!=c,N=$f(c),E=$f(o),P=$f(u),C=i.useCallback(()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:r,middleware:p};E.current&&(e.platform=E.current),Ff(_.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};R.current&&!Mf(O.current,t)&&(O.current=t,xs.flushSync(()=>{f(t)}))})},[p,t,r,E,P]);If(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const R=i.useRef(!1);If(()=>(R.current=!0,()=>{R.current=!1}),[]),If(()=>{if(w&&(_.current=w),j&&(k.current=j),w&&j){if(N.current)return N.current(w,j,C);C()}},[w,j,C,N,S]);const T=i.useMemo(()=>({reference:_,floating:k,setReference:b,setFloating:x}),[b,x]),A=i.useMemo(()=>({reference:w,floating:j}),[w,j]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!A.floating)return e;const t=Vf(A.floating,d.x),n=Vf(A.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Lf(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,A.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:C,refs:T,elements:A,floatingStyles:D}),[d,C,T,A,D])}({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>Nf(...e,{animationFrame:"always"===v}),elements:{reference:y.anchor},middleware:[zf({mainAxis:o+O,alignmentAxis:s}),c&&Uf({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?qf():void 0,...C}),c&&Wf({...C}),Bf({...C,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),w&&Zf({element:w,padding:l}),pp({arrowWidth:k,arrowHeight:O}),p&&Hf({strategy:"referenceHidden",...C})]}),[I,M]=vp(A),L=Ss(h);vs(()=>{D&&L?.()},[D,L]);const V=F.arrow?.x,$=F.arrow?.y,z=0!==F.arrow?.centerOffset,[U,q]=i.useState();return vs(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]),(0,Sn.jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Sn.jsx)(ip,{scope:r,placedSide:I,onArrowChange:j,arrowX:V,arrowY:$,shouldHideArrow:z,children:(0,Sn.jsx)(Os.div,{"data-side":I,"data-align":M,...m,ref:x,style:{...m.style,animation:D?void 0:"none"}})})})});lp.displayName=ap;var cp="PopperArrow",up={top:"bottom",right:"left",bottom:"top",left:"right"},dp=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=sp(cp,r),a=up[o.placedSide];return(0,Sn.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Sn.jsx)(Gf,{...n,ref:t,style:{...n.style,display:"block"}})})});function fp(e){return null!==e}dp.displayName=cp;var pp=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=vp(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",v="";return"bottom"===l?(p=a?u:`${d}px`,v=-s+"px"):"top"===l?(p=a?u:`${d}px`,v=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",v=a?u:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,v=a?u:`${f}px`),{data:{x:p,y:v}}}});function vp(e){const[t,r="center"]=e.split("-");return[t,r]}var hp=rp,mp=op,yp=lp,gp=dp;function bp(e){const t=xp(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(_p);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function xp(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jp=Symbol("radix.slottable");function _p(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===jp}var kp="Popover",[Op,Sp]=fs(kp,[Xf]),Np=Xf(),[Ep,Pp]=Op(kp),Cp=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=Np(t),c=i.useRef(null),[u,d]=i.useState(!1),[f,p]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:kp});return(0,Sn.jsx)(hp,{...l,children:(0,Sn.jsx)(Ep,{scope:t,contentId:ys(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:s,children:r})})};Cp.displayName=kp;var Rp="PopoverAnchor",Tp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Rp,r),a=Np(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return i.useEffect(()=>(s(),()=>l()),[s,l]),(0,Sn.jsx)(mp,{...a,...n,ref:t})});Tp.displayName=Rp;var Ap="PopoverTrigger",Dp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Ap,r),a=Np(r),i=Ai(t,o.triggerRef),s=(0,Sn.jsx)(Os.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kp(o.open),...n,ref:i,onClick:ds(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:(0,Sn.jsx)(mp,{asChild:!0,...a,children:s})});Dp.displayName=Ap;var Fp="PopoverPortal",[Ip,Mp]=Op(Fp,{forceMount:void 0}),Lp=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Pp(Fp,t);return(0,Sn.jsx)(Ip,{scope:t,forceMount:r,children:(0,Sn.jsx)(Zs,{present:r||a.open,children:(0,Sn.jsx)(Hs,{asChild:!0,container:o,children:n})})})};Lp.displayName=Fp;var Vp="PopoverContent",$p=i.forwardRef((e,t)=>{const r=Mp(Vp,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Pp(Vp,e.__scopePopover);return(0,Sn.jsx)(Zs,{present:n||a.open,children:a.modal?(0,Sn.jsx)(Up,{...o,ref:t}):(0,Sn.jsx)(qp,{...o,ref:t})})});$p.displayName=Vp;var zp=bp("PopoverContent.RemoveScroll"),Up=i.forwardRef((e,t)=>{const r=Pp(Vp,e.__scopePopover),n=i.useRef(null),o=Ai(t,n),a=i.useRef(!1);return i.useEffect(()=>{const e=n.current;if(e)return Ql(e)},[]),(0,Sn.jsx)(Ul,{as:zp,allowPinchZoom:!0,children:(0,Sn.jsx)(Wp,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ds(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ds(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:ds(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),qp=i.forwardRef((e,t)=>{const r=Pp(Vp,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return(0,Sn.jsx)(Wp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=r.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Wp=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Pp(Vp,r),p=Np(r);return Qs(),(0,Sn.jsx)(Vs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,Sn.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:(0,Sn.jsx)(yp,{"data-state":Kp(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Bp="PopoverClose",Hp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Pp(Bp,r);return(0,Sn.jsx)(Os.button,{type:"button",...n,ref:t,onClick:ds(e.onClick,()=>o.onOpenChange(!1))})});Hp.displayName=Bp;var Zp=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Np(r);return(0,Sn.jsx)(gp,{...o,...n,ref:t})});function Kp(e){return e?"open":"closed"}Zp.displayName="PopoverArrow";var Gp=$p;function Qp(e){return Qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qp(e)}var Jp=["className","align","sideOffset"];function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Qp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ev=Cp,tv=Dp,rv=i.forwardRef(function(e,t){var r=e.className,n=e.align,o=void 0===n?"center":n,a=e.sideOffset,i=void 0===a?4:a,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Jp);return(0,Sn.jsx)(Gp,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(t){Xp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:o,sideOffset:i,className:la("vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},s))});function nv(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ov(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ov(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ov(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ov(d,"constructor",c),ov(c,"constructor",l),l.displayName="GeneratorFunction",ov(c,o,"GeneratorFunction"),ov(d),ov(d,o,"Generator"),ov(d,n,function(){return this}),ov(d,"toString",function(){return"[object Generator]"}),(nv=function(){return{w:a,m:f}})()}function ov(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ov=function(e,t,r,n){function a(t,r){ov(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},ov(e,t,r,n)}function av(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function iv(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){av(a,n,o,i,s,"next",e)}function s(e){av(a,n,o,i,s,"throw",e)}i(void 0)})}}rv.displayName=Gp.displayName;var sv=function(){return Qa({queryKey:["getPluginList"],queryFn:(e=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},lv=function(){return Qa({queryKey:["getThemeList"],queryFn:(e=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_theme_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};const cv=_u("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),uv=_u("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);function dv(e){return function(e){if(Array.isArray(e))return vv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||pv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pv(e,t){if(e){if("string"==typeof e)return vv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vv(e,t):void 0}}function vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function hv(e){var t=e.selectedPlugin,r=e.onChange,n=fv((0,i.useState)([]),2),o=n[0],a=n[1],s=fv((0,i.useState)(!1),2),l=s[0],c=s[1],u=sv().data;(0,i.useEffect)(function(){u&&a(u.data)},[u]);var d=o.filter(function(e){return t.includes(e.slug)}),f=o.filter(function(e){return!t.includes(e.slug)});return(0,Sn.jsx)("div",{children:(0,Sn.jsxs)(ev,{open:l,onOpenChange:c,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":l,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-2 vt-bg-transparent",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-flex-1",children:[d.map(function(e){return(0,Sn.jsxs)(rs,{variant:"default",className:"vt-gap-1 vt-mb-1",children:[e.label,(0,Sn.jsx)(Qi,{variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(n){var o;n.preventDefault(),n.stopPropagation(),o=e.slug,r(t.filter(function(e){return e!==o}))},children:(0,Sn.jsx)(Ou,{size:12})})]},e.slug)}),0===d.length&&(0,Sn.jsx)("span",{className:"vt-text-muted-foreground",children:(0,ca.__)("Select plugins you like...","versatile-toolkit")})]}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-full",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search plugin...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No plugin found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:[].concat(dv(f),dv(d)).map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return n=e.slug,void(t.includes(n)?r(t.filter(function(e){return e!==n})):r([].concat(dv(t),[n])));var n},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",t.includes(e.slug)?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}function mv(e){return mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mv(e)}var yv=["className","type"];function gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=mv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xv,wv,jv=i.forwardRef(function(e,t){var r=e.className,n=e.type,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,yv);return(0,Sn.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gv(Object(r),!0).forEach(function(t){bv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:la("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},o))});jv.displayName="Input",function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(xv||(xv={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(wv||(wv={}));const _v=xv.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),kv=e=>{switch(typeof e){case"undefined":return _v.undefined;case"string":return _v.string;case"number":return Number.isNaN(e)?_v.nan:_v.number;case"boolean":return _v.boolean;case"function":return _v.function;case"bigint":return _v.bigint;case"symbol":return _v.symbol;case"object":return Array.isArray(e)?_v.array:null===e?_v.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?_v.promise:"undefined"!=typeof Map&&e instanceof Map?_v.map:"undefined"!=typeof Set&&e instanceof Set?_v.set:"undefined"!=typeof Date&&e instanceof Date?_v.date:_v.object;default:return _v.unknown}},Ov=xv.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Sv extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(n);else if("invalid_return_type"===o.code)n(o.returnTypeError);else if("invalid_arguments"===o.code)n(o.argumentsError);else if(0===o.path.length)r._errors.push(t(o));else{let e=r,n=0;for(;n<o.path.length;){const r=o.path[n];n===o.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(o))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof Sv))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xv.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)if(n.path.length>0){const r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Sv.create=e=>new Sv(e);const Nv=(e,t)=>{let r;switch(e.code){case Ov.invalid_type:r=e.received===_v.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ov.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,xv.jsonStringifyReplacer)}`;break;case Ov.unrecognized_keys:r=`Unrecognized key(s) in object: ${xv.joinValues(e.keys,", ")}`;break;case Ov.invalid_union:r="Invalid input";break;case Ov.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${xv.joinValues(e.options)}`;break;case Ov.invalid_enum_value:r=`Invalid enum value. Expected ${xv.joinValues(e.options)}, received '${e.received}'`;break;case Ov.invalid_arguments:r="Invalid function arguments";break;case Ov.invalid_return_type:r="Invalid function return type";break;case Ov.invalid_date:r="Invalid date";break;case Ov.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:xv.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ov.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ov.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ov.custom:r="Invalid input";break;case Ov.invalid_intersection_types:r="Intersection results could not be merged";break;case Ov.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Ov.not_finite:r="Number must be finite";break;default:r=t.defaultError,xv.assertNever(e)}return{message:r}};let Ev=Nv;function Pv(){return Ev}var Cv;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(Cv||(Cv={}));const Rv=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,a=[...r,...o.path||[]],i={...o,path:a};if(void 0!==o.message)return{...o,path:a,message:o.message};let s="";const l=n.filter(e=>!!e).slice().reverse();for(const e of l)s=e(i,{data:t,defaultError:s}).message;return{...o,path:a,message:s}};function Tv(e,t){const r=Pv(),n=Rv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Nv?void 0:Nv].filter(e=>!!e)});e.common.issues.push(n)}class Av{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return Dv;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return Av.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:o}=n;if("aborted"===t.status)return Dv;if("aborted"===o.status)return Dv;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!n.alwaysSet||(r[t.value]=o.value)}return{status:e.value,value:r}}}const Dv=Object.freeze({status:"aborted"}),Fv=e=>({status:"dirty",value:e}),Iv=e=>({status:"valid",value:e}),Mv=e=>"aborted"===e.status,Lv=e=>"dirty"===e.status,Vv=e=>"valid"===e.status,$v=e=>"undefined"!=typeof Promise&&e instanceof Promise;class zv{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Uv=(e,t)=>{if(Vv(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Sv(e.common.issues);return this._error=t,this._error}}};function qv(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{const{message:a}=e;return"invalid_enum_value"===t.code?{message:a??o.defaultError}:void 0===o.data?{message:a??n??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:a??r??o.defaultError}},description:o}}class Wv{get description(){return this._def.description}_getType(e){return kv(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:kv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Av,ctx:{common:e.parent.common,data:e.data,parsedType:kv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if($v(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)},n=this._parseSync({data:e,path:r.path,parent:r});return Uv(r,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:t});return Vv(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>Vv(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kv(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await($v(n)?n:Promise.resolve(n));return Uv(r,o)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{const o=e(t),a=()=>n.addIssue({code:Ov.custom,...r(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(a(),!1)):!!o||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new Uh({schema:this,typeName:Jh.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return qh.create(this,this._def)}nullable(){return Wh.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nh.create(this)}promise(){return zh.create(this,this._def)}or(e){return Ch.create([this,e],this._def)}and(e){return Th.create(this,e,this._def)}transform(e){return new Uh({...qv(this._def),schema:this,typeName:Jh.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Bh({...qv(this._def),innerType:this,defaultValue:t,typeName:Jh.ZodDefault})}brand(){return new Kh({typeName:Jh.ZodBranded,type:this,...qv(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Hh({...qv(this._def),innerType:this,catchValue:t,typeName:Jh.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Gh.create(this,e)}readonly(){return Qh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bv=/^c[^\s-]{8,}$/i,Hv=/^[0-9a-z]+$/,Zv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Kv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Gv=/^[a-z0-9_-]{21}$/i,Qv=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Jv=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Xv;const eh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,th=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,oh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ah=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ih="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",sh=new RegExp(`^${ih}$`);function lh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function ch(e){return new RegExp(`^${lh(e)}$`)}function uh(e){let t=`${ih}T${lh(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function dh(e,t){return!("v4"!==t&&t||!eh.test(e))||!("v6"!==t&&t||!rh.test(e))}function fh(e,t){if(!Qv.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return"object"==typeof o&&null!==o&&((!("typ"in o)||"JWT"===o?.typ)&&(!!o.alg&&(!t||o.alg===t)))}catch{return!1}}function ph(e,t){return!("v4"!==t&&t||!th.test(e))||!("v6"!==t&&t||!nh.test(e))}class vh extends Wv{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==_v.string){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.string,received:t.parsedType}),Dv}const t=new Av;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,a=e.data.length<n.value;(o||a)&&(r=this._getOrReturnCtx(e,r),o?Tv(r,{code:Ov.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):a&&Tv(r,{code:Ov.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)Yv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"email",code:Ov.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)Xv||(Xv=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Xv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"emoji",code:Ov.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)Kv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"uuid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)Gv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"nanoid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)Bv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cuid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)Hv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cuid2",code:Ov.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)Zv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"ulid",code:Ov.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),Tv(r,{validation:"url",code:Ov.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"regex",code:Ov.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){uh(n).test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){sh.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){ch(n).test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?Jv.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"duration",code:Ov.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?dh(e.data,n.version)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"ip",code:Ov.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?fh(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"jwt",code:Ov.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?ph(e.data,n.version)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"cidr",code:Ov.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?oh.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"base64",code:Ov.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?ah.test(e.data)||(r=this._getOrReturnCtx(e,r),Tv(r,{validation:"base64url",code:Ov.invalid_string,message:n.message}),t.dirty()):xv.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:Ov.invalid_string,...Cv.errToObj(r)})}_addCheck(e){return new vh({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Cv.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Cv.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Cv.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Cv.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Cv.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Cv.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Cv.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Cv.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Cv.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Cv.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Cv.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Cv.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Cv.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Cv.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...Cv.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Cv.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Cv.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...Cv.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Cv.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Cv.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Cv.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Cv.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Cv.errToObj(t)})}nonempty(e){return this.min(1,Cv.errToObj(e))}trim(){return new vh({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vh({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vh({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function hh(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}vh.create=e=>new vh({checks:[],typeName:Jh.ZodString,coerce:e?.coerce??!1,...qv(e)});class mh extends Wv{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==_v.number){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.number,received:t.parsedType}),Dv}let t;const r=new Av;for(const n of this._def.checks)if("int"===n.kind)xv.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==hh(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_finite,message:n.message}),r.dirty()):xv.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Cv.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Cv.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Cv.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Cv.toString(t))}setLimit(e,t,r,n){return new mh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:Cv.toString(n)}]})}_addCheck(e){return new mh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Cv.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Cv.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Cv.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Cv.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Cv.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Cv.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Cv.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Cv.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Cv.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&xv.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}mh.create=e=>new mh({checks:[],typeName:Jh.ZodNumber,coerce:e?.coerce||!1,...qv(e)});class yh extends Wv{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==_v.bigint)return this._getInvalidInput(e);let t;const r=new Av;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Tv(t,{code:Ov.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):xv.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.bigint,received:t.parsedType}),Dv}gte(e,t){return this.setLimit("min",e,!0,Cv.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Cv.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Cv.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Cv.toString(t))}setLimit(e,t,r,n){return new yh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:Cv.toString(n)}]})}_addCheck(e){return new yh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Cv.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Cv.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Cv.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Cv.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Cv.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}yh.create=e=>new yh({checks:[],typeName:Jh.ZodBigInt,coerce:e?.coerce??!1,...qv(e)});class gh extends Wv{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==_v.boolean){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.boolean,received:t.parsedType}),Dv}return Iv(e.data)}}gh.create=e=>new gh({typeName:Jh.ZodBoolean,coerce:e?.coerce||!1,...qv(e)});class bh extends Wv{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==_v.date){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.date,received:t.parsedType}),Dv}if(Number.isNaN(e.data.getTime())){return Tv(this._getOrReturnCtx(e),{code:Ov.invalid_date}),Dv}const t=new Av;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),Tv(r,{code:Ov.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):xv.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new bh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Cv.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Cv.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}bh.create=e=>new bh({checks:[],coerce:e?.coerce||!1,typeName:Jh.ZodDate,...qv(e)});class xh extends Wv{_parse(e){if(this._getType(e)!==_v.symbol){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.symbol,received:t.parsedType}),Dv}return Iv(e.data)}}xh.create=e=>new xh({typeName:Jh.ZodSymbol,...qv(e)});class wh extends Wv{_parse(e){if(this._getType(e)!==_v.undefined){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.undefined,received:t.parsedType}),Dv}return Iv(e.data)}}wh.create=e=>new wh({typeName:Jh.ZodUndefined,...qv(e)});class jh extends Wv{_parse(e){if(this._getType(e)!==_v.null){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.null,received:t.parsedType}),Dv}return Iv(e.data)}}jh.create=e=>new jh({typeName:Jh.ZodNull,...qv(e)});class _h extends Wv{constructor(){super(...arguments),this._any=!0}_parse(e){return Iv(e.data)}}_h.create=e=>new _h({typeName:Jh.ZodAny,...qv(e)});class kh extends Wv{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Iv(e.data)}}kh.create=e=>new kh({typeName:Jh.ZodUnknown,...qv(e)});class Oh extends Wv{_parse(e){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.never,received:t.parsedType}),Dv}}Oh.create=e=>new Oh({typeName:Jh.ZodNever,...qv(e)});class Sh extends Wv{_parse(e){if(this._getType(e)!==_v.undefined){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.void,received:t.parsedType}),Dv}return Iv(e.data)}}Sh.create=e=>new Sh({typeName:Jh.ZodVoid,...qv(e)});class Nh extends Wv{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==_v.array)return Tv(t,{code:Ov.invalid_type,expected:_v.array,received:t.parsedType}),Dv;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(e||o)&&(Tv(t,{code:e?Ov.too_big:Ov.too_small,minimum:o?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(Tv(t,{code:Ov.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(Tv(t,{code:Ov.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new zv(t,e,t.path,r)))).then(e=>Av.mergeArray(r,e));const o=[...t.data].map((e,r)=>n.type._parseSync(new zv(t,e,t.path,r)));return Av.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new Nh({...this._def,minLength:{value:e,message:Cv.toString(t)}})}max(e,t){return new Nh({...this._def,maxLength:{value:e,message:Cv.toString(t)}})}length(e,t){return new Nh({...this._def,exactLength:{value:e,message:Cv.toString(t)}})}nonempty(e){return this.min(1,e)}}function Eh(e){if(e instanceof Ph){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=qh.create(Eh(n))}return new Ph({...e._def,shape:()=>t})}return e instanceof Nh?new Nh({...e._def,type:Eh(e.element)}):e instanceof qh?qh.create(Eh(e.unwrap())):e instanceof Wh?Wh.create(Eh(e.unwrap())):e instanceof Ah?Ah.create(e.items.map(e=>Eh(e))):e}Nh.create=(e,t)=>new Nh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Jh.ZodArray,...qv(t)});class Ph extends Wv{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=xv.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==_v.object){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.object,received:t.parsedType}),Dv}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Oh&&"strip"===this._def.unknownKeys))for(const e in r.data)o.includes(e)||a.push(e);const i=[];for(const e of o){const t=n[e],o=r.data[e];i.push({key:{status:"valid",value:e},value:t._parse(new zv(r,o,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Oh){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)i.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(Tv(r,{code:Ov.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const n=r.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new zv(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>Av.mergeObjectSync(t,e)):Av.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return Cv.errToObj,new Ph({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{const n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:Cv.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Ph({...this._def,unknownKeys:"strip"})}passthrough(){return new Ph({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ph({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ph({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Jh.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ph({...this._def,catchall:e})}pick(e){const t={};for(const r of xv.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Ph({...this._def,shape:()=>t})}omit(e){const t={};for(const r of xv.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Ph({...this._def,shape:()=>t})}deepPartial(){return Eh(this)}partial(e){const t={};for(const r of xv.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Ph({...this._def,shape:()=>t})}required(e){const t={};for(const r of xv.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof qh;)e=e._def.innerType;t[r]=e}return new Ph({...this._def,shape:()=>t})}keyof(){return Lh(xv.objectKeys(this.shape))}}Ph.create=(e,t)=>new Ph({shape:()=>e,unknownKeys:"strip",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)}),Ph.strictCreate=(e,t)=>new Ph({shape:()=>e,unknownKeys:"strict",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)}),Ph.lazycreate=(e,t)=>new Ph({shape:e,unknownKeys:"strip",catchall:Oh.create(),typeName:Jh.ZodObject,...qv(t)});class Ch extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map(e=>new Sv(e.ctx.common.issues));return Tv(t,{code:Ov.invalid_union,unionErrors:r}),Dv});{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},a=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map(e=>new Sv(e));return Tv(t,{code:Ov.invalid_union,unionErrors:o}),Dv}}get options(){return this._def.options}}Ch.create=(e,t)=>new Ch({options:e,typeName:Jh.ZodUnion,...qv(t)});function Rh(e,t){const r=kv(e),n=kv(t);if(e===t)return{valid:!0,data:e};if(r===_v.object&&n===_v.object){const r=xv.objectKeys(t),n=xv.objectKeys(e).filter(e=>-1!==r.indexOf(e)),o={...e,...t};for(const r of n){const n=Rh(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(r===_v.array&&n===_v.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const o=Rh(e[n],t[n]);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return r===_v.date&&n===_v.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class Th extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(Mv(e)||Mv(n))return Dv;const o=Rh(e.value,n.value);return o.valid?((Lv(e)||Lv(n))&&t.dirty(),{status:t.value,value:o.data}):(Tv(r,{code:Ov.invalid_intersection_types}),Dv)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Th.create=(e,t,r)=>new Th({left:e,right:t,typeName:Jh.ZodIntersection,...qv(r)});class Ah extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.array)return Tv(r,{code:Ov.invalid_type,expected:_v.array,received:r.parsedType}),Dv;if(r.data.length<this._def.items.length)return Tv(r,{code:Ov.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Dv;!this._def.rest&&r.data.length>this._def.items.length&&(Tv(r,{code:Ov.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new zv(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>Av.mergeArray(t,e)):Av.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Ah({...this._def,rest:e})}}Ah.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ah({items:e,typeName:Jh.ZodTuple,rest:null,...qv(t)})};class Dh extends Wv{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.map)return Tv(r,{code:Ov.invalid_type,expected:_v.map,received:r.parsedType}),Dv;const n=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new zv(r,e,r.path,[a,"key"])),value:o._parse(new zv(r,t,r.path,[a,"value"]))}));if(r.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const r of a){const n=await r.key,o=await r.value;if("aborted"===n.status||"aborted"===o.status)return Dv;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}})}{const e=new Map;for(const r of a){const n=r.key,o=r.value;if("aborted"===n.status||"aborted"===o.status)return Dv;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}}}}Dh.create=(e,t,r)=>new Dh({valueType:t,keyType:e,typeName:Jh.ZodMap,...qv(r)});class Fh extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==_v.set)return Tv(r,{code:Ov.invalid_type,expected:_v.set,received:r.parsedType}),Dv;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(Tv(r,{code:Ov.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(Tv(r,{code:Ov.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const r=new Set;for(const n of e){if("aborted"===n.status)return Dv;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const i=[...r.data.values()].map((e,t)=>o._parse(new zv(r,e,r.path,t)));return r.common.async?Promise.all(i).then(e=>a(e)):a(i)}min(e,t){return new Fh({...this._def,minSize:{value:e,message:Cv.toString(t)}})}max(e,t){return new Fh({...this._def,maxSize:{value:e,message:Cv.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Fh.create=(e,t)=>new Fh({valueType:e,minSize:null,maxSize:null,typeName:Jh.ZodSet,...qv(t)});class Ih extends Wv{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ih.create=(e,t)=>new Ih({getter:e,typeName:Jh.ZodLazy,...qv(t)});class Mh extends Wv{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Tv(t,{received:t.data,code:Ov.invalid_literal,expected:this._def.value}),Dv}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Lh(e,t){return new Vh({values:e,typeName:Jh.ZodEnum,...qv(t)})}Mh.create=(e,t)=>new Mh({value:e,typeName:Jh.ZodLiteral,...qv(t)});class Vh extends Wv{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return Tv(t,{expected:xv.joinValues(r),received:t.parsedType,code:Ov.invalid_type}),Dv}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return Tv(t,{received:t.data,code:Ov.invalid_enum_value,options:r}),Dv}return Iv(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Vh.create(e,{...this._def,...t})}exclude(e,t=this._def){return Vh.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}Vh.create=Lh;class $h extends Wv{_parse(e){const t=xv.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==_v.string&&r.parsedType!==_v.number){const e=xv.objectValues(t);return Tv(r,{expected:xv.joinValues(e),received:r.parsedType,code:Ov.invalid_type}),Dv}if(this._cache||(this._cache=new Set(xv.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=xv.objectValues(t);return Tv(r,{received:r.data,code:Ov.invalid_enum_value,options:e}),Dv}return Iv(e.data)}get enum(){return this._def.values}}$h.create=(e,t)=>new $h({values:e,typeName:Jh.ZodNativeEnum,...qv(t)});class zh extends Wv{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==_v.promise&&!1===t.common.async)return Tv(t,{code:Ov.invalid_type,expected:_v.promise,received:t.parsedType}),Dv;const r=t.parsedType===_v.promise?t.data:Promise.resolve(t.data);return Iv(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}zh.create=(e,t)=>new zh({type:e,typeName:Jh.ZodPromise,...qv(t)});class Uh extends Wv{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Jh.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:e=>{Tv(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===n.type){const e=n.transform(r.data,o);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return Dv;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?Dv:"dirty"===n.status||"dirty"===t.value?Fv(n.value):n});{if("aborted"===t.value)return Dv;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?Dv:"dirty"===n.status||"dirty"===t.value?Fv(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,o);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?Dv:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?Dv:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vv(e))return Dv;const a=n.transform(e.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>Vv(e)?Promise.resolve(n.transform(e.value,o)).then(e=>({status:t.value,value:e})):Dv)}xv.assertNever(n)}}Uh.create=(e,t,r)=>new Uh({schema:e,typeName:Jh.ZodEffects,effect:t,...qv(r)}),Uh.createWithPreprocess=(e,t,r)=>new Uh({schema:t,effect:{type:"preprocess",transform:e},typeName:Jh.ZodEffects,...qv(r)});class qh extends Wv{_parse(e){return this._getType(e)===_v.undefined?Iv(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}qh.create=(e,t)=>new qh({innerType:e,typeName:Jh.ZodOptional,...qv(t)});class Wh extends Wv{_parse(e){return this._getType(e)===_v.null?Iv(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Wh.create=(e,t)=>new Wh({innerType:e,typeName:Jh.ZodNullable,...qv(t)});class Bh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===_v.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bh.create=(e,t)=>new Bh({innerType:e,typeName:Jh.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...qv(t)});class Hh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return $v(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Sv(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Sv(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Hh.create=(e,t)=>new Hh({innerType:e,typeName:Jh.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...qv(t)});class Zh extends Wv{_parse(e){if(this._getType(e)!==_v.nan){const t=this._getOrReturnCtx(e);return Tv(t,{code:Ov.invalid_type,expected:_v.nan,received:t.parsedType}),Dv}return{status:"valid",value:e.data}}}Zh.create=e=>new Zh({typeName:Jh.ZodNaN,...qv(e)});Symbol("zod_brand");class Kh extends Wv{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class Gh extends Wv{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Dv:"dirty"===e.status?(t.dirty(),Fv(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Dv:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new Gh({in:e,out:t,typeName:Jh.ZodPipeline})}}class Qh extends Wv{_parse(e){const t=this._def.innerType._parse(e),r=e=>(Vv(e)&&(e.value=Object.freeze(e.value)),e);return $v(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}Qh.create=(e,t)=>new Qh({innerType:e,typeName:Jh.ZodReadonly,...qv(t)});Ph.lazycreate;var Jh;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Jh||(Jh={}));const Yh=vh.create,Xh=(mh.create,Zh.create,yh.create,gh.create),em=(bh.create,xh.create,wh.create,jh.create,_h.create,kh.create,Oh.create,Sh.create,Nh.create),tm=Ph.create,rm=(Ph.strictCreate,Ch.create,Th.create,Ah.create,Dh.create,Fh.create,Ih.create,Mh.create,Vh.create),nm=($h.create,zh.create,Uh.create,qh.create,Wh.create,Uh.createWithPreprocess,Gh.create,e=>mh.create({...e,coerce:!0}));var om=/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/,am=tm({chosen_plugins:em(Yh()),ip_tags:em(Yh().refine(function(e){return om.test(e)},{message:"Invalid IP address"})).min(1,{message:"At least one IP address is required"})}),im=tm({enable_maintenance:Xh(),show_subscribers_only:Xh(),title:Yh().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Yh().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Yh().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Yh().optional(),background_image_id:nm().optional(),logo:Yh().optional(),logo_id:nm().optional(),template:Yh().optional()}),sm=tm({enable_comingsoon:Xh(),show_subscribers_only:Xh(),title:Yh().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Yh().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Yh().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Yh().optional(),background_image_id:nm().optional(),logo:Yh().optional(),logo_id:nm().optional(),template:Yh().optional()}),lm=tm({activeTheme:Yh().min(1,{message:"Please select a theme"})}),cm=tm({display_name:Yh().min(1,{message:"Display name is required"}),email:Yh().email({message:"Invalid email address"}),role:Yh().min(1,{message:"Please select a role"}),expires_at:rm(["1_hour","3_hours","6_hours","12_hours","1_day","3_days","1_week","2_weeks","1_month","3_months","6_months","1_year","custom"],{message:"Please select an expiration time"}),redirect_url:Yh().url({message:"Invalid URL format"}),ip_address:Yh().optional().refine(function(e){return!e||om.test(e)},{message:"Invalid IP address"})});function um(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return dm(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(dm(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,dm(d,"constructor",c),dm(c,"constructor",l),l.displayName="GeneratorFunction",dm(c,o,"GeneratorFunction"),dm(d),dm(d,o,"Generator"),dm(d,n,function(){return this}),dm(d,"toString",function(){return"[object Generator]"}),(um=function(){return{w:a,m:f}})()}function dm(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dm=function(e,t,r,n){function a(t,r){dm(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},dm(e,t,r,n)}function fm(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function pm(e){return function(e){if(Array.isArray(e))return mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||hm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hm(e,t){if(e){if("string"==typeof e)return mm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mm(e,t):void 0}}function mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ym(e){var t,r=e.tags,n=e.onChange,o=vm((0,i.useState)(""),2),a=o[0],s=o[1],l=vm((0,i.useState)(null),2),c=l[0],u=l[1],d=function(){var e=a.trim();e&&(om.test(e)?r.includes(e)||(n([].concat(pm(r),[e])),s(""),u(null)):u((0,ca.__)("Invalid IP address","versatile-toolkit")))},f=Ya({mutationFn:(t=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_add_my_ip",e.n=1,xi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to add IP","versatile-toolkit"))}}),p=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){fm(a,n,o,i,s,"next",e)}function s(e){fm(a,n,o,i,s,"throw",e)}i(void 0)})}}(um().m(function e(){var t,o,a;return um().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,f.mutateAsync({});case 1:if(t=e.v,o=t.data,a=null==o?void 0:o.ip,!r.includes(a)){e.n=2;break}return Cr.success((0,ca.__)("System Ip already added!","versatile-toolkit")),e.a(2);case 2:!r.includes(a)&&a&&(n([].concat(pm(r),[a])),Cr.success((0,ca.__)("System Ip address added","versatile-toolkit")));case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)("div",{className:"vt-relative",children:[(0,Sn.jsx)(jv,{type:"text",placeholder:(0,ca.__)("Enter IP address","versatile-toolkit"),value:a,onChange:function(e){s(e.target.value),c&&u(null)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),d())},onBlur:function(e){d()}}),(0,Sn.jsx)(Qi,{type:"button",size:"xs",className:"vt-absolute vt-right-1 vt-top-1/2 -vt-translate-y-1/2",onClick:p,children:(0,Sn.jsx)(fa,{isLoading:f.isPending,loadingText:(0,ca.__)("Add My IP","versatile-toolkit"),size:"xs",children:(0,ca.__)("Add My IP","versatile-toolkit")})})]}),c&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:c}),(0,Sn.jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-mt-2",children:r.map(function(e){return(0,Sn.jsxs)(rs,{variant:"default",className:"vt-flex vt-items-center vt-gap-1",children:[e,(0,Sn.jsxs)(Qi,{type:"button",variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(){return t=e,void n(r.filter(function(e){return e!==t}));var t},"aria-label":(0,ca.__)("Remove IP address","versatile-toolkit"),children:[(0,Sn.jsx)(Ou,{size:12,"aria-hidden":!0}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Remove","versatile-toolkit")})]})]},e)})})]})}function gm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xm(e){var t=e.selectedTheme,r=e.onChange,n=gm((0,i.useState)([]),2),o=n[0],a=n[1],s=gm((0,i.useState)(!1),2),l=s[0],c=s[1],u=lv().data;(0,i.useEffect)(function(){u&&a(u.data)},[u]);var d=o.find(function(e){return e.slug===t});return(0,Sn.jsx)("div",{children:(0,Sn.jsxs)(ev,{open:l,onOpenChange:c,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":l,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-3 vt-bg-transparent",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-1 vt-flex-1 vt-text-left",children:d?(0,Sn.jsx)("span",{className:"vt-font-medium",children:d.label}):(0,Sn.jsx)("span",{className:"vt-text-muted-foreground",children:(0,ca.__)("Select a theme...","versatile-toolkit")})}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-full vt-p-0",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search theme...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No theme found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:o.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return t=e.slug,r(t),void c(!1);var t},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",t===e.slug?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}var wm=e=>"checkbox"===e.type,jm=e=>e instanceof Date,_m=e=>null==e;const km=e=>"object"==typeof e;var Om=e=>!_m(e)&&!Array.isArray(e)&&km(e)&&!jm(e),Sm=e=>Om(e)&&e.target?wm(e.target)?e.target.checked:e.target.value:e,Nm=(e,t)=>{const r=t.split("."),n=[];let o=r[0];for(let t=1;t<r.length;o+="."+r[t++])!isNaN(+r[t])&&e.has(o)&&n.push(o);return n},Em="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Pm(e){if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(Em&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!(r||Om(e)&&(e=>{const t=e.constructor&&e.constructor.prototype;return Om(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=Pm(e[t]));return n}var Cm=e=>/^\w*$/.test(e),Rm=e=>void 0===e,Tm=e=>Array.isArray(e)?e.filter(Boolean):[],Am=e=>Tm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dm=(e,t,r)=>{if(!t||!Om(e))return r;const n=(Cm(t)?[t]:Am(t)).reduce((e,t)=>_m(e)?void 0:e[t],e);return Rm(n)||n===e?Rm(e[t])?r:e[t]:n},Fm=e=>"boolean"==typeof e,Im=e=>"function"==typeof e,Mm=(e,t,r)=>{let n=-1;const o=Cm(t)?[t]:Am(t),a=o.length,i=a-1;for(;++n<a;){const t=o[n];let a=r;if(n!==i){const r=e[t];a=Om(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=a,e=e[t]}};const Lm="blur",Vm="focusout",$m="change",zm="submit",Um="trigger",qm="valid",Wm="onBlur",Bm="onChange",Hm="onSubmit",Zm="onTouched",Km="all",Gm="max",Qm="min",Jm="maxLength",Ym="minLength",Xm="pattern",ey="required",ty="validate",ry="form",ny="root",oy=i.createContext(null);oy.displayName="HookFormControlContext";const ay=()=>i.useContext(oy);var iy=(e,t,r,n=!0)=>{const o={};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Km&&(t._proxyFormState[o]=!n||Km),r&&(r[o]=!0),e[o]}});return o};const sy="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ly(e){const t=ay(),{control:r=t,disabled:n,name:o,exact:a}=e||{},[s,l]=i.useState(()=>({...r._formState,defaultValues:r._defaultValues})),c=i.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sy(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:e=>{!n&&l({...r._formState,...e,defaultValues:r._defaultValues})}}),[o,n,a]),i.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),i.useMemo(()=>iy(s,r,c.current,!1),[s,r])}var cy=e=>"string"==typeof e,uy=(e,t,r,n,o)=>cy(e)?(n&&t.watch.add(e),Dm(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),Dm(r,e))):(n&&(t.watchAll=!0),r),dy=e=>_m(e)||!km(e);function fy(e,t,r=new WeakSet){if(e===t)return!0;if(dy(e)||dy(t))return Object.is(e,t);if(jm(e)&&jm(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const n=e[o];if(!(o in t))return!1;if("ref"!==o){const e=t[o];if(jm(n)&&jm(e)||(Om(n)||Array.isArray(n))&&(Om(e)||Array.isArray(e))?!fy(n,e,r):!Object.is(n,e))return!1}}return!0}function py(e){const t=ay(),{control:r=t,name:n,defaultValue:o,disabled:a,exact:s,compute:l}=e||{},c=i.useRef(o),u=i.useRef(l),d=i.useRef(void 0),f=i.useRef(r),p=i.useRef(n);u.current=l;const[v,h]=i.useState(()=>{const e=r._getWatch(n,c.current);return u.current?u.current(e):e}),m=i.useCallback(e=>{const t=uy(n,r._names,e||r._formValues,!1,c.current);return u.current?u.current(t):t},[r._formValues,r._names,n]),y=i.useCallback(e=>{if(!a){const t=uy(n,r._names,e||r._formValues,!1,c.current);if(u.current){const e=u.current(t);fy(e,d.current)||(h(e),d.current=e)}else h(t)}},[r._formValues,r._names,a,n]);sy(()=>(f.current===r&&fy(p.current,n)||(f.current=r,p.current=n,y()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:e=>{y(e.values)}})),[r,s,n,y]),i.useEffect(()=>r._removeUnmounted());const g=f.current!==r,b=p.current,x=i.useMemo(()=>{if(a)return null;const e=!g&&!fy(b,n);return g||e?m():null},[a,g,n,b,m]);return null!==x?x:v}const vy=e=>e.render(function(e){const t=ay(),{name:r,disabled:n,control:o=t,shouldUnregister:a,defaultValue:s,exact:l=!0}=e,c=!!Nm(o._names.array,r).length,u=i.useMemo(()=>Dm(o._formValues,r,Dm(o._defaultValues,r,s)),[o,r,s]),d=py({control:o,name:r,defaultValue:u,exact:l}),f=ly({control:o,name:r,exact:l}),p=i.useRef(e),v=i.useRef(o.register(r,{...e.rules,value:d,...Fm(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const h=i.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Dm(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Dm(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Dm(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Dm(f.validatingFields,r)},error:{enumerable:!0,get:()=>Dm(f.errors,r)}}),[f,r]),m=i.useCallback(e=>v.current.onChange({target:{value:Sm(e),name:r},type:$m}),[r]),y=i.useCallback(()=>v.current.onBlur({target:{value:Dm(o._formValues,r),name:r},type:Lm}),[r,o._formValues]),g=i.useCallback(e=>{const t=Dm(o._fields,r);t&&t._f&&e&&(t._f.ref={focus:()=>Im(e.focus)&&e.focus(),select:()=>Im(e.select)&&e.select(),setCustomValidity:t=>Im(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Im(e.reportValidity)&&e.reportValidity()})},[o._fields,r]),b=i.useMemo(()=>({name:r,value:d,...Fm(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:m,onBlur:y,ref:g}),[r,n,f.disabled,m,y,g,d]);return i.useEffect(()=>{const e=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...Fm(p.current.disabled)?{disabled:p.current.disabled}:{}});const t=(e,t)=>{const r=Dm(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=Pm(Dm(o._defaultValues,r,Dm(o._options.defaultValues,r,p.current.defaultValue)));Mm(o._defaultValues,r,e),Rm(Dm(o._formValues,r))&&Mm(o._formValues,r,e)}return!c&&o.register(r),()=>{(c?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}},[r,o,c,a]),i.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),i.useMemo(()=>({field:b,formState:f,fieldState:h}),[b,f,h])}(e)),hy=i.createContext(null);hy.displayName="HookFormContext";const my=()=>i.useContext(hy);var yy=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},gy=e=>Array.isArray(e)?e:[e],by=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function xy(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],a=t[n];if(o&&Om(o)&&a){const e=xy(o,a);Om(e)&&(r[n]=e)}else e[n]&&(r[n]=a)}return r}var wy=e=>Om(e)&&!Object.keys(e).length,jy=e=>"file"===e.type,_y=e=>{if(!Em)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ky=e=>"select-multiple"===e.type,Oy=e=>"radio"===e.type,Sy=e=>_y(e)&&e.isConnected;function Ny(e,t){if(cy(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Cm(t)?[t]:Am(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;){if(_m(e)){e=void 0;break}e=e[t[n]],n++}return e}(e,r),o=r.length-1,a=r[o];return n&&delete n[a],0!==o&&(Om(n)&&wy(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Rm(e[t]))return!1;return!0}(n))&&Ny(e,r.slice(0,-1)),e}function Ey(e){return Array.isArray(e)||Om(e)&&!(e=>{for(const t in e)if(Im(e[t]))return!0;return!1})(e)}function Py(e,t={}){for(const r in e){const n=e[r];Ey(n)?(t[r]=Array.isArray(n)?[]:{},Py(n,t[r])):Rm(n)||(t[r]=!0)}return t}function Cy(e){if(!1!==e){if(!0===e)return!0;if(Array.isArray(e)){const t=e.map(e=>Cy(e));return t.some(e=>void 0!==e)?t:void 0}if(Om(e)){const t={};for(const r in e){const n=Cy(e[r]);Rm(n)||(t[r]=n)}return Object.keys(t).length?t:void 0}}}function Ry(e,t,r){r||(r=Py(t));for(const n in e){const o=e[n];if(Ey(o))Rm(t)||dy(r[n])?r[n]=Py(o,Array.isArray(o)?[]:{}):Ry(o,_m(t)?{}:t[n],r[n]);else{const e=t[n];r[n]=!fy(o,e)}}return Cy(r)||{}}const Ty={value:!1,isValid:!1},Ay={value:!0,isValid:!0};var Dy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Rm(e[0].attributes.value)?Rm(e[0].value)||""===e[0].value?Ay:{value:e[0].value,isValid:!0}:Ay:Ty}return Ty},Fy=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Rm(e)?e:t?""===e?NaN:e?+e:e:r&&cy(e)?new Date(e):n?n(e):e;const Iy={isValid:!1,value:null};var My=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Iy):Iy;function Ly(e){const t=e.ref;return jy(t)?t.files:Oy(t)?My(e.refs).value:ky(t)?[...t.selectedOptions].map(({value:e})=>e):wm(t)?Dy(e.refs).value:Fy(Rm(t.value)?e.ref.value:t.value,e)}var Vy=e=>e instanceof RegExp,$y=e=>Rm(e)?e:Vy(e)?e.source:Om(e)?Vy(e.value)?e.value.source:e.value:e,zy=e=>({isOnSubmit:!e||e===Hm,isOnBlur:e===Wm,isOnChange:e===Bm,isOnAll:e===Km,isOnTouch:e===Zm});const Uy="AsyncFunction";var qy=e=>!!e&&!!e.validate&&!!(Im(e.validate)&&e.validate.constructor.name===Uy||Om(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Uy)),Wy=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const By=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Dm(e,o);if(r){const{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(By(a,t))break}else if(Om(a)&&By(a,t))break}}};function Hy(e,t,r){const n=Dm(e,r);if(n||Cm(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),a=Dm(t,n),i=Dm(e,n);if(a&&!Array.isArray(a)&&r!==n)return{name:r};if(i&&i.type)return{name:n,error:i};if(i&&i.root&&i.root.type)return{name:`${n}.root`,error:i.root};o.pop()}return{name:r}}var Zy=(e,t,r)=>{const n=gy(Dm(e,r));return Mm(n,ny,t[r]),Mm(e,r,n),e};function Ky(e,t,r="validate"){if(cy(e)||Array.isArray(e)&&e.every(cy)||Fm(e)&&!e)return{type:r,message:cy(e)?e:"",ref:t}}var Gy=e=>Om(e)&&!Vy(e)?e:{value:e,message:""},Qy=async(e,t,r,n,o,a)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:v,name:h,valueAsNumber:m,mount:y}=e._f,g=Dm(r,h);if(!y||t.has(h))return{};const b=s?s[0]:i,x=e=>{o&&b.reportValidity&&(b.setCustomValidity(Fm(e)?"":e||""),b.reportValidity())},w={},j=Oy(i),_=wm(i),k=j||_,O=(m||jy(i))&&Rm(i.value)&&Rm(g)||_y(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length||m&&"number"==typeof g&&isNaN(g),S=yy.bind(null,h,n,w),N=(e,t,r,n=Jm,o=Ym)=>{const a=e?t:r;w[h]={type:e?n:o,message:a,ref:i,...S(e?n:o,a)}};if(a?!Array.isArray(g)||!g.length:l&&(!k&&(O||_m(g))||Fm(g)&&!g||_&&!Dy(s).isValid||j&&!My(s).isValid)){const{value:e,message:t}=cy(l)?{value:!!l,message:l}:Gy(l);if(e&&(w[h]={type:ey,message:t,ref:b,...S(ey,t)},!n))return x(t),w}if(!(O||_m(d)&&_m(f))){let e,t;const r=Gy(f),o=Gy(d);if(_m(g)||isNaN(g)){const n=i.valueAsDate||new Date(g),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;cy(r.value)&&g&&(e=s?a(g)>a(r.value):l?g>r.value:n>new Date(r.value)),cy(o.value)&&g&&(t=s?a(g)<a(o.value):l?g<o.value:n<new Date(o.value))}else{const n=i.valueAsNumber||(g?+g:g);_m(r.value)||(e=n>r.value),_m(o.value)||(t=n<o.value)}if((e||t)&&(N(!!e,r.message,o.message,Gm,Qm),!n))return x(w[h].message),w}if((c||u)&&!O&&(cy(g)||a&&Array.isArray(g))){const e=Gy(c),t=Gy(u),r=!_m(e.value)&&g.length>+e.value,o=!_m(t.value)&&g.length<+t.value;if((r||o)&&(N(r,e.message,t.message),!n))return x(w[h].message),w}if(p&&!O&&cy(g)){const{value:e,message:t}=Gy(p);if(Vy(e)&&!g.match(e)&&(w[h]={type:Xm,message:t,ref:i,...S(Xm,t)},!n))return x(t),w}if(v)if(Im(v)){const e=Ky(await v(g,r),b);if(e&&(w[h]={...e,...S(ty,e.message)},!n))return x(e.message),w}else if(Om(v)){let e={};for(const t in v){if(!wy(e)&&!n)break;const o=Ky(await v[t](g,r),b,t);o&&(e={...o,...S(t,o.message)},x(o.message),n&&(w[h]=e))}if(!wy(e)&&(w[h]={ref:b,...e},!n))return w}return x(!0),w};const Jy={mode:Hm,reValidateMode:Bm,shouldFocusError:!0},Yy={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Xy(e={}){let t,r={...Jy,...e},n={...Pm(Yy),isLoading:Im(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},o={},a=(Om(r.defaultValues)||Om(r.values))&&Pm(r.defaultValues||r.values)||{},i=r.shouldUnregister?{}:Pm(a),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u};let f={...d};const p={array:by(),state:by()},v=r.criteriaMode===Km,h=async e=>{if(!s.keepIsValid&&!r.disabled&&(d.isValid||f.isValid||e)){let e;r.resolver?(e=wy((await w()).errors),m()):e=await _({fields:o,onlyCheckValid:!0,eventType:qm}),e!==n.isValid&&p.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?Mm(n.validatingFields,e,t):Ny(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!wy(n.validatingFields)}))},y=()=>{n.dirtyFields=Ry(a,i)},g=(e,t,r,l)=>{const c=Dm(o,e);if(c){if((e=>{const t=Cm(e)?[e]:Am(e);let r=i,n=a;for(let e=0;e<t.length-1;e++){const o=t[e];if(r=_m(r)?r:r[o],n=_m(n)?n:n[o],null===r&&null!==n)return!0}return!1})(e))return;const o=Rm(Dm(i,e)),u=Dm(i,e,Rm(r)?Dm(a,e):r);if(Rm(u)||l&&l.defaultChecked||t?Mm(i,e,t?u:Ly(c._f)):S(e,u),s.mount&&!s.action&&(h(),o&&n.isDirty&&(d.isDirty||f.isDirty))){k()||(n.isDirty=!1,p.state.next({...n}))}}},b=(e,t,o,s,l)=>{let c=!1,u=!1;const v={name:e};if(!r.disabled){if(!o||s){(d.isDirty||f.isDirty)&&(u=n.isDirty,n.isDirty=v.isDirty=k(),c=u!==v.isDirty);const r=fy(Dm(a,e),t);u=!!Dm(n.dirtyFields,e),r!==n.isDirty?n.dirtyFields=Ry(a,i):r?Ny(n.dirtyFields,e):Mm(n.dirtyFields,e,!0),v.dirtyFields=n.dirtyFields,c=c||(d.dirtyFields||f.dirtyFields)&&u!==!r}if(o){const t=Dm(n.touchedFields,e);t||(Mm(n.touchedFields,e,o),v.touchedFields=n.touchedFields,c=c||(d.touchedFields||f.touchedFields)&&t!==o)}c&&l&&p.state.next(v)}return c?v:{}},x=(e,o,a,i)=>{const s=Dm(n.errors,e),l=(d.isValid||f.isValid)&&Fm(o)&&n.isValid!==o;var u;if(r.delayError&&a?(u=()=>((e,t)=>{Mm(n.errors,e,t),p.state.next({errors:n.errors})})(e,a),t=e=>{clearTimeout(c),c=setTimeout(u,e)},t(r.delayError)):(clearTimeout(c),t=null,a?Mm(n.errors,e,a):Ny(n.errors,e)),(a?!fy(s,a):s)||!wy(i)||l){const t={...i,...l&&Fm(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},w=async e=>(m(e,!0),await r.resolver(i,r.context,((e,t,r,n)=>{const o={};for(const r of e){const e=Dm(t,r);e&&Mm(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation))),j=async({name:t,eventType:r})=>{if(e.validate){const o=await e.validate({formValues:i,formState:n,name:t,eventType:r});if(Om(o))for(const e in o){const t=o[e];t&&F(`${ry}.${e}`,{message:cy(t.message)?t.message:"",type:t.type||ty})}else cy(o)||!o?F(ry,{message:o||"",type:ty}):D(ry);return o}return!0},_=async({fields:t,onlyCheckValid:o,name:a,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate){c.runRootValidation=!0;if(!await j({name:a,eventType:s})&&(c.valid=!1,o))return c.valid}for(const a in t){const u=t[a];if(u){const{_f:t,...p}=u;if(t){const a=l.array.has(t.name),s=u._f&&qy(u._f),p=d.validatingFields||d.isValidating||f.validatingFields||f.isValidating;s&&p&&m([t.name],!0);const h=await Qy(u,l.disabled,i,v,r.shouldUseNativeValidation&&!o,a);if(s&&p&&m([t.name]),h[t.name]&&(c.valid=!1,o))break;if(!o&&(Dm(h,t.name)?a?Zy(n.errors,h,t.name):Mm(n.errors,t.name,h[t.name]):Ny(n.errors,t.name)),e.shouldUseNativeValidation&&h[t.name])break}!wy(p)&&await _({context:c,onlyCheckValid:o,fields:p,name:a,eventType:s})}}return c.valid},k=(e,t)=>!r.disabled&&(e&&t&&Mm(i,e,t),!fy(T(),a)),O=(e,t,r)=>uy(e,l,{...s.mount?i:Rm(t)?a:cy(e)?{[e]:t}:t},r,t),S=(e,t,r={})=>{const n=Dm(o,e);let a=t;if(n){const r=n._f;r&&(!r.disabled&&Mm(i,e,Fy(t,r)),a=_y(r.ref)&&_m(t)?"":t,ky(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?wm(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(a)?e.checked=!!a.find(t=>t===e.value):e.checked=a===e.value||!!a)}):r.refs.forEach(e=>e.checked=e.value===a):jy(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||p.state.next({name:e,values:Pm(i)})))}(r.shouldDirty||r.shouldTouch)&&b(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&R(e)},N=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const a=t[n],i=e+"."+n,s=Dm(o,i);(l.array.has(e)||Om(a)||s&&!s._f)&&!jm(a)?N(i,a,r):S(i,a,r)}},E=(e,t,r={})=>{const a=Dm(o,e),c=l.array.has(e),u=Pm(t),v=fy(Dm(i,e),u);if(v||Mm(i,e,u),c)p.array.next({name:e,values:Pm(i)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&r.shouldDirty&&(y(),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:k(e,u)}));else{const t=Array.isArray(u)&&!u.length||wy(u);!a||a._f||_m(u)||t?S(e,u,r):N(e,u,r)}if(!v){const t=Wy(e,l),r=Pm(i);if(!c)for(const t of Nm(l.array,e))p.array.next({name:t,values:r});p.state.next({...t&&n,name:s.mount||t?e:void 0,values:r})}},P=async a=>{s.mount=!0;const c=a.target;let u=c.name,y=!0;const g=Dm(o,u),k=e=>{y=Number.isNaN(e)||jm(e)&&isNaN(e.getTime())||fy(e,Dm(i,u,e))},O=zy(r.mode),S=zy(r.reValidateMode);if(g){let s,N;const E=c.type?Ly(g._f):Sm(a),P=a.type===Lm||a.type===Vm,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(g._f)&&!e.validate&&!r.resolver&&!Dm(n.errors,u)&&!g._f.deps||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(P,Dm(n.touchedFields,u),n.isSubmitted,S,O),T=Wy(u,l,P);Mm(i,u,E),P?c&&c.readOnly||(g._f.onBlur&&g._f.onBlur(a),t&&t(0)):g._f.onChange&&g._f.onChange(a);const A=b(u,E,P),D=!wy(A)||T;if(!P&&p.state.next({name:u,type:a.type,values:Pm(i)}),C)return(d.isValid||f.isValid)&&("onBlur"===r.mode?P&&h():P||h()),D&&p.state.next({name:u,...T?{}:A});if(!r.resolver&&e.validate&&await j({name:u,eventType:a.type}),!P&&T&&p.state.next({...n}),r.resolver){const{errors:e}=await w([u]);if(m([u]),k(E),y){const t=Hy(n.errors,o,u),r=Hy(e,o,t.name||u);s=r.error,u=r.name,N=wy(e)}}else m([u],!0),s=(await Qy(g,l.disabled,i,v,r.shouldUseNativeValidation))[u],m([u]),k(E),y&&(s?N=!1:(d.isValid||f.isValid)&&(N=await _({fields:o,onlyCheckValid:!0,name:u,eventType:a.type})));y&&(g._f.deps&&(!Array.isArray(g._f.deps)||g._f.deps.length>0)&&R(g._f.deps),x(u,N,s,A))}},C=(e,t)=>{if(Dm(n.errors,t)&&e.focus)return e.focus(),1},R=async(e,t={})=>{let a,i;const s=gy(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(m(e),e)for(const r of e){const e=Dm(t,r);e?l.array.has(r)&&Om(e)?Zy(n.errors,{[r]:e},r):Mm(n.errors,r,e):Ny(n.errors,r)}else n.errors=t;return t})(Rm(e)?e:s);a=wy(t),i=e?!s.some(e=>Dm(t,e)):a}else e?(i=(await Promise.all(s.map(async e=>{const t=Dm(o,e);return await _({fields:t&&t._f?{[e]:t}:t,eventType:Um})}))).every(Boolean),(i||n.isValid)&&h()):i=a=await _({fields:o,name:e,eventType:Um});return p.state.next({...!cy(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:a}:{},errors:n.errors}),t.shouldFocus&&!i&&By(o,C,e?s:l.mount),i},T=(e,t)=>{let r={...s.mount?i:a};return t&&(r=xy(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Rm(e)?r:cy(e)?Dm(r,e):e.map(e=>Dm(r,e))},A=(e,t)=>({invalid:!!Dm((t||n).errors,e),isDirty:!!Dm((t||n).dirtyFields,e),error:Dm((t||n).errors,e),isValidating:!!Dm(n.validatingFields,e),isTouched:!!Dm((t||n).touchedFields,e)}),D=e=>{const t=e?gy(e):void 0;null==t||t.forEach(e=>Ny(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},F=(e,t,r)=>{const a=(Dm(o,e,{_f:{}})._f||{}).ref,i=Dm(n.errors,e)||{},{ref:s,message:l,type:c,...u}=i;Mm(n.errors,e,{...u,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},I=e=>p.state.subscribe({next:t=>{if(r=e.name,o=t.name,s=e.exact,(!r||!o||r===o||gy(r).some(e=>e&&(s?e===o:e.startsWith(o)||o.startsWith(e))))&&((e,t,r,n)=>{r(e);const{name:o,...a}=e;return wy(a)||n&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||Km))})(t,e.formState||d,W,e.reRenderRoot)){const r={...i};e.callback({values:r,...n,...t,defaultValues:a})}var r,o,s}}).unsubscribe,M=(e,t={})=>{for(const s of e?gy(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Ny(o,s),Ny(i,s)),!t.keepError&&Ny(n.errors,s),!t.keepDirty&&Ny(n.dirtyFields,s),!t.keepTouched&&Ny(n.touchedFields,s),!t.keepIsValidating&&Ny(n.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&Ny(a,s);p.state.next({values:Pm(i)}),p.state.next({...n,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&h()},L=({disabled:e,name:t})=>{if(Fm(e)&&s.mount||e||l.disabled.has(t)){const r=l.disabled.has(t)!==!!e;e?l.disabled.add(t):l.disabled.delete(t),r&&s.mount&&!s.action&&h()}},V=(e,t={})=>{let n=Dm(o,e);const i=Fm(t.disabled)||Fm(r.disabled),c=!l.registerName.has(e)&&n&&n._f&&!n._f.mount;return Mm(o,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),n&&!c?L({disabled:Fm(t.disabled)?t.disabled:r.disabled,name:e}):g(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:$y(t.min),max:$y(t.max),minLength:$y(t.minLength),maxLength:$y(t.maxLength),pattern:$y(t.pattern)}:{},name:e,onChange:P,onBlur:P,ref:i=>{if(i){l.registerName.add(e),V(e,t),l.registerName.delete(e),n=Dm(o,e);const r=Rm(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>Oy(e)||wm(e))(r),c=n._f.refs||[];if(s?c.find(e=>e===r):r===n._f.ref)return;Mm(o,e,{_f:{...n._f,...s?{refs:[...c.filter(Sy),r,...Array.isArray(Dm(a,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),g(e,!1,void 0,r)}else n=Dm(o,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!Nm(l.array,e).length||!s.action)&&l.unMount.add(e)}}},$=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&By(o,C,l.mount),z=(e,t)=>async a=>{let s;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let c=Pm(i);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await w();m(),n.errors=e,c=Pm(t)}else await _({fields:o,eventType:zm});if(l.disabled.size)for(const e of l.disabled)Ny(c,e);if(Ny(n.errors,ny),wy(n.errors)){p.state.next({errors:{}});try{await e(c,a)}catch(e){s=e}}else t&&await t({...n.errors},a),$(),setTimeout($);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:wy(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},U=(e,t={})=>{const c=e?Pm(e):a,u=Pm(c),f=wy(e),v=f?a:u;if(t.keepDefaultValues||(a=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(Ry(a,i))]);for(const t of Array.from(e)){const e=Dm(n.dirtyFields,t),r=Dm(i,t),o=Dm(v,t);e&&!Rm(r)?Mm(v,t,r):e||Rm(o)||E(t,o)}}else{if(Em&&Rm(e))for(const e of l.mount){const t=Dm(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(_y(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)E(e,Dm(v,e));else o={}}i=r.shouldUnregister?t.keepDefaultValues?Pm(a):{}:Pm(v),p.array.next({values:{...v}}),p.state.next({values:{...v}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!wy(v),s.watch=!!r.shouldUnregister,s.keepIsValid=!!t.keepIsValid,s.action=!1,t.keepErrors||(n.errors={}),p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!f&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||fy(e,a))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?Ry(a,i):n.dirtyFields:t.keepDefaultValues&&e?Ry(a,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:a})},q=(e,t)=>U(Im(e)?e(i):e,{...r.resetOptions,...t}),W=e=>{n={...n,...e}},B={control:{register:V,unregister:M,getFieldState:A,handleSubmit:z,setError:F,_subscribe:I,_runSchema:w,_updateIsValidating:m,_focusError:$,_getWatch:O,_getDirty:k,_setValid:h,_setFieldArray:(e,t=[],a,l,c=!0,u=!0)=>{if(l&&a&&!r.disabled){if(s.action=!0,u&&Array.isArray(Dm(o,e))){const t=a(Dm(o,e),l.argA,l.argB);c&&Mm(o,e,t)}if(u&&Array.isArray(Dm(n.errors,e))){const t=a(Dm(n.errors,e),l.argA,l.argB);c&&Mm(n.errors,e,t),((e,t)=>{!Tm(Dm(e,t)).length&&Ny(e,t)})(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray(Dm(n.touchedFields,e))){const t=a(Dm(n.touchedFields,e),l.argA,l.argB);c&&Mm(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&y(),p.state.next({name:e,isDirty:k(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Mm(i,e,t)},_setDisabledField:L,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Tm(Dm(s.mount?i:a,e,r.shouldUnregister?Dm(a,e,[]):[])),_reset:U,_resetDefaultValues:()=>Im(r.defaultValues)&&r.defaultValues().then(e=>{q(e,r.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Dm(o,e);t&&(t._f.refs?t._f.refs.every(e=>!Sy(e)):!Sy(t._f.ref))&&M(e)}l.unMount=new Set},_disableForm:e=>{Fm(e)&&(p.state.next({disabled:e}),By(o,(t,r)=>{const n=Dm(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:p,_proxyFormState:d,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(s.mount=!0,f={...f,...e.formState},I({...e,formState:{...u,...e.formState}})),trigger:R,register:V,handleSubmit:z,watch:(e,t)=>Im(e)?p.state.subscribe({next:r=>"values"in r&&e(r.values||O(void 0,t),r)}):O(e,t,!0),setValue:E,setValues:e=>{const t=Im(e)?e(i):e;if(!fy(i,t)){i={...i,...t};for(const e of l.mount)E(e,Dm(t,e));p.state.next({...n,values:i})}},getValues:T,reset:q,resetField:(e,t={})=>{Dm(o,e)&&(Rm(t.defaultValue)?E(e,Pm(Dm(a,e))):(E(e,t.defaultValue),Mm(a,e,Pm(t.defaultValue))),t.keepTouched||Ny(n.touchedFields,e),t.keepDirty||(Ny(n.dirtyFields,e),n.isDirty=t.defaultValue?k(e,Pm(Dm(a,e))):k()),t.keepError||(Ny(n.errors,e),d.isValid&&h()),p.state.next({...n}))},clearErrors:D,unregister:M,setError:F,setFocus:(e,t={})=>{const r=Dm(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Im(e.select)&&e.select()})}},getFieldState:A};return{...B,formControl:B}}function eg(e={}){const t=i.useRef(void 0),r=i.useRef(void 0),[n,o]=i.useState(()=>({...Pm(Yy),isLoading:Im(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Im(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Im(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...o}=Xy(e);t.current={...o,formState:n}}const a=t.current.control;return a._options=e,sy(()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState,defaultValues:a._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),i.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),i.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),i.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),i.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),i.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}},[a,n.isDirty]),i.useEffect(()=>{var t;e.values&&!fy(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),(null===(t=a._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||a._setValid(),r.current=e.values,o(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),i.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=i.useMemo(()=>iy(n,a),[a,n]),t.current}const tg=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Dm(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},rg=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?tg(n.ref,r,e):n.refs&&n.refs.forEach(t=>tg(t,r,e))}},ng=(e,t)=>{t.shouldUseNativeValidation&&rg(e,t);const r={};for(const n in e){const o=Dm(t.fields,n),a=Object.assign(e[n]||{},{ref:o&&o.ref});if(og(t.names||Object.keys(e),n)){const e=Object.assign({},Dm(r,n));Mm(e,"root",a),Mm(r,n,e)}else Mm(r,n,a)}return r},og=(e,t)=>e.some(e=>e.startsWith(t+"."));var ag=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,a=n.message,i=n.path.join(".");if(!r[i])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[i]={message:s.message,type:s.code}}else r[i]={message:a,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=r[i].types,c=l&&l[n.code];r[i]=yy(i,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},ig=function(e,t,r){return void 0===r&&(r={}),function(n,o,a){try{return Promise.resolve(function(o,i){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return a.shouldUseNativeValidation&&rg({},a),{errors:{},values:r.raw?n:e}})}catch(e){return i(e)}return s&&s.then?s.then(void 0,i):s}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:ng(ag(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e}))}catch(e){return Promise.reject(e)}}};const sg=_u("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);const lg=function(e){var t=e.link,r=void 0===t?"/":t;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsx)(kt,{to:r,className:"vt-flex vt-items-center vt-justify-center vt-text-slate-700 vt-bg-slate-200 hover:vt-bg-slate-300 vt-px-2 vt-rounded-sm vt-transition-colors",children:(0,Sn.jsx)(sg,{className:"vt-w-4"})})})};function cg(e){return cg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cg(e)}function ug(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return dg(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(dg(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dg(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,dg(d,"constructor",c),dg(c,"constructor",l),l.displayName="GeneratorFunction",dg(c,o,"GeneratorFunction"),dg(d),dg(d,o,"Generator"),dg(d,n,function(){return this}),dg(d,"toString",function(){return"[object Generator]"}),(ug=function(){return{w:a,m:f}})()}function dg(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dg=function(e,t,r,n){function a(t,r){dg(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},dg(e,t,r,n)}function fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function pg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(r),!0).forEach(function(t){vg(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vg(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hg(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function mg(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){hg(a,n,o,i,s,"next",e)}function s(e){hg(a,n,o,i,s,"throw",e)}i(void 0)})}}const yg=function(){var e,t,r,n,o,a=eg({resolver:ig(am),defaultValues:{chosen_plugins:[],ip_tags:[]}}),s=a.handleSubmit,l=a.control,c=a.formState.errors,u=Ya({mutationFn:(n=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_disable_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return n.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Plugin disabled successfully!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to disable plugin","versatile-toolkit"))}}),d=function(){var e=mg(ug().m(function e(t){return ug().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u.mutateAsync(pg({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),f=Qa({queryKey:["getDisablePluginList"],queryFn:(o=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_disable_plugin_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return o.apply(this,arguments)}),staleTime:5e3}),p=f.data,v=f.isFetching,h=(f.isLoading,f.isError,null==p?void 0:p.data.chosen_plugins),m=null==p?void 0:p.data.ip_tags;(0,i.useEffect)(function(){(h||m)&&l._reset({chosen_plugins:h||[],ip_tags:m||[]})},[h,m,l]);var y,g,b=eg({resolver:ig(lm),defaultValues:{activeTheme:""}}),x=b.handleSubmit,w=b.control,j=b.formState.errors,_=Ya({mutationFn:(y=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_active_theme",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return y.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Theme activated successfully!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to activate theme","versatile-toolkit"))}}),k=function(){var e=mg(ug().m(function e(t){return ug().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_.mutateAsync(pg({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=Qa({queryKey:["getActiveTheme"],queryFn:(g=iv(nv().m(function e(t){var r;return nv().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_active_theme",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return g.apply(this,arguments)}),staleTime:5e3}),S=O.data,N=O.isFetching,E=null==S?void 0:S.data.activeTheme;return(0,i.useEffect)(function(){E&&w._reset({activeTheme:E})},[E,w]),(0,Sn.jsxs)("div",{className:"vt-py-4 vt-space-y-6 vt-max-w-[800px]",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{link:"/"}),(0,ca.__)("Deactivate Plugins","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,ca.__)("Disable Plugin by IP address","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,ca.__)("Select plugins to disable for specific IP addresses. This is useful for troubleshooting plugin conflicts.","versatile-toolkit")}),(0,Sn.jsxs)("form",{onSubmit:s(d),children:[(0,Sn.jsxs)("div",{className:"vt-min-h-[42px]",children:[v?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading plugins","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"chosen_plugins",control:l,render:function(e){var t=e.field;return(0,Sn.jsx)(hv,{selectedPlugin:t.value,onChange:t.onChange})}}),c.chosen_plugins&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==c||null===(e=c.chosen_plugins)||void 0===e?void 0:e.message})]}),(0,Sn.jsxs)("div",{className:"vt-min-h-[42px] vt-mt-2",children:[v?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading settings","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"ip_tags",control:l,render:function(e){var t=e.field;return(0,Sn.jsx)(ym,{tags:t.value,onChange:t.onChange})}}),(null==c?void 0:c.ip_tags)&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==c||null===(t=c.ip_tags)||void 0===t?void 0:t.message})]}),(0,Sn.jsx)(Qi,{type:"submit",className:"vt-mt-6",disabled:u.isPending,children:u.isPending?(0,ca.__)("Saving...","versatile-toolkit"):(0,ca.__)("Save List","versatile-toolkit")})]})]}),(0,Sn.jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,ca.__)("Switch Theme","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,ca.__)("Select and activate a theme.","versatile-toolkit")}),(0,Sn.jsxs)("form",{onSubmit:x(k),children:[(0,Sn.jsxs)("div",{className:"vt-min-h-[42px]",children:[N?(0,Sn.jsx)(ha,{size:"md",text:(0,ca.__)("Loading themes","versatile-toolkit")}):(0,Sn.jsx)(vy,{name:"activeTheme",control:w,render:function(e){var t=e.field;return(0,Sn.jsx)(xm,{selectedTheme:t.value,onChange:t.onChange})}}),(null==j?void 0:j.activeTheme)&&(0,Sn.jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==j||null===(r=j.activeTheme)||void 0===r?void 0:r.message})]}),(0,Sn.jsx)(Qi,{type:"submit",className:"vt-mt-6",disabled:_.isPending,children:(0,Sn.jsx)(fa,{isLoading:_.isPending,loadingText:(0,ca.__)("Activating","versatile-toolkit"),children:(0,ca.__)("Activate Theme","versatile-toolkit")})})]})]})]})},gg=_u("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),bg=_u("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),xg=_u("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function wg(e){return wg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(e)}function jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Eg(n.key),n)}}function _g(e,t,r){return t=Og(t),function(e,t){if(t&&("object"==wg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kg()?Reflect.construct(t,r||[],Og(e).constructor):t.apply(e,r))}function kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kg=function(){return!!e})()}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Og(e)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sg(e,t)}function Ng(e,t,r){return(t=Eg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eg(e){var t=function(e,t){if("object"!=wg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wg(t)?t:t+""}var Pg=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ng(r=_g(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Ng(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sg(e,t)}(t,e),function(e,t,r){return t&&jg(e.prototype,t),r&&jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,Sn.jsxs)(Ra,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,Sn.jsxs)(Ta,{className:"vt-text-center",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,Sn.jsx)(gg,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,Sn.jsx)(Aa,{className:"vt-text-red-700",children:(0,ca.__)("Something went wrong","versatile-toolkit")})]}),(0,Sn.jsxs)(Da,{className:"vt-space-y-4",children:[(0,Sn.jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,ca.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,Sn.jsxs)(Qi,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(bg,{className:"vt-h-4 vt-w-4"}),(0,ca.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,Sn.jsxs)(Qi,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(xg,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,ca.__)("Hide Details","versatile-toolkit"):(0,ca.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,Sn.jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,ca.__)("Error Details:","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Message:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Stack Trace:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("strong",{children:(0,ca.__)("Component Stack:","versatile-toolkit")}),(0,Sn.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component);const Cg=Pg;function Rg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ag=function(e){var t=e.value,r=void 0===t?"":t,n=e.onChange,o=e.buttonText,a=void 0===o?(0,ca.__)("Upload Image","versatile-toolkit"):o,s=e.allowedTypes,l=void 0===s?["image"]:s,c=e.multiple,u=void 0!==c&&c,d=Rg((0,i.useState)(r),2),f=d[0],p=d[1],v=Rg((0,i.useState)(0),2),h=(v[0],v[1]);(0,i.useEffect)(function(){p(r)},[r]);return(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(Qi,{type:"button",variant:"outline",onClick:function(){if(void 0!==window.wp&&window.wp.media){var e=window.wp.media({title:(0,ca.__)("Select Image","versatile-toolkit"),button:{text:(0,ca.__)("Use this image","versatile-toolkit")},multiple:u,library:{type:l}});e.on("select",function(){var t=e.state().get("selection").first().toJSON();p(t.url),h(t.id),n(t.url,t.id)}),e.open()}},children:a}),f&&(0,Sn.jsx)(Qi,{type:"button",variant:"destructive",size:"sm",onClick:function(){p(""),h(0),n("",0)},children:(0,ca.__)("Remove","versatile-toolkit")})]}),f&&(0,Sn.jsxs)("div",{className:"vt-mt-4",children:[(0,Sn.jsx)("div",{className:"vt-border vt-rounded-lg vt-p-2 vt-inline-block vt-bg-gray-50",children:(0,Sn.jsx)("img",{src:f,alt:(0,ca.__)("Preview","versatile-toolkit"),className:"vt-max-w-xs vt-max-h-32 vt-object-cover vt-rounded"})}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600 vt-mt-2",children:(0,ca.__)("Image selected","versatile-toolkit")})]})]})},Dg=_u("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var Fg=function(e){var t=e.isOpen,r=e.onClose;(0,i.useEffect)(function(){var e=function(e){"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[t,r]);return{handleBackdropClick:function(e){e.target===e.currentTarget&&r()}}};function Ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Lg=function(e){var t,r,n,o,a=e.type,s=e.disabled,l=void 0!==s&&s,c=e.getFormData,u=Ig((0,i.useState)(!1),2),d=u[0],f=u[1],p=Ig((0,i.useState)(!1),2),v=p[0],h=p[1],m=function(){f(!1),h(!1)},y=Fg({isOpen:d,onClose:m}).handleBackdropClick;return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)(Qi,{type:"button",variant:"outline",onClick:function(){f(!0),h(!0)},disabled:l,className:"vt-flex vt-items-center vt-gap-2 vt-border-gray-400",children:[(0,Sn.jsx)(Dg,{size:16}),(0,ca.__)("Preview","versatile-toolkit")]}),d&&(0,Sn.jsx)("div",{className:"vt-fixed vt-inset-x-0 vt-bottom-0 vt--top-[15px] vt-z-[999999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:y,children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-semibold",children:"maintenance"===a?(0,ca.__)("Maintenance Page Preview","versatile-toolkit"):(0,ca.__)("Coming Soon Page Preview","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",variant:"ghost",size:"sm",onClick:m,children:(0,Sn.jsx)(Ou,{size:16})})]}),(0,Sn.jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50",children:[v&&(0,Sn.jsx)(ya,{}),(0,Sn.jsx)("iframe",{src:(t=null==Va?void 0:Va.ajax_url,r=null==Va?void 0:Va.nonce_value,n="maintenance"===a?"versatile_preview_maintenance":"versatile_preview_comingsoon",o=JSON.stringify(c()),"".concat(t,"?action=").concat(n,"&versatile_nonce=").concat(r,"&type=").concat(a,"&preview_data=").concat(encodeURIComponent(o))),className:"vt-w-full vt-h-full vt-border-0",title:"maintenance"===a?(0,ca.__)("Maintenance Preview","versatile-toolkit"):(0,ca.__)("Coming Soon Preview","versatile-toolkit"),onLoad:function(){return h(!1)},style:{display:v?"none":"block"}})]})}),(0,Sn.jsx)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-rounded-b-lg",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:(0,ca.__)("This is how your page will look to visitors.","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:m,variant:"outline",children:(0,ca.__)("Close Preview","versatile-toolkit")})]})})]})})]})};function Vg(e){return Vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vg(e)}var $g=["className"];function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ug(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Vg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qg(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,$g);return(0,Sn.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(t){Ug(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la("vt-animate-pulse vt-rounded-md vt-bg-primary/10",t)},r))}function Wg(){return(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-space-y-3",children:[(0,Sn.jsx)(qg,{className:"vt-h-[45px] vt-w-[200px] vt-rounded-xl"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)(qg,{className:"vt-h-4 vt-w-[200px]"}),(0,Sn.jsx)(qg,{className:"vt-h-4 vt-w-[200px]"})]})]})}function Bg(e){return function(e){if(Array.isArray(e))return Kg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||Zg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zg(e,t){if(e){if("string"==typeof e)return Kg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kg(e,t):void 0}}function Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Gg=[{id:"classic",name:(0,ca.__)("Classic","versatile-toolkit"),description:(0,ca.__)("Clean and professional design with centered content","versatile-toolkit")},{id:"modern",name:(0,ca.__)("Modern","versatile-toolkit"),description:(0,ca.__)("Sleek design with gradient backgrounds and modern typography","versatile-toolkit")},{id:"minimal",name:(0,ca.__)("Minimal","versatile-toolkit"),description:(0,ca.__)("Simple and elegant with focus on content","versatile-toolkit")},{id:"creative",name:(0,ca.__)("Creative","versatile-toolkit"),description:(0,ca.__)("Bold design with creative layouts and animations","versatile-toolkit")},{id:"corporate",name:(0,ca.__)("Corporate","versatile-toolkit"),description:(0,ca.__)("Professional business design with elegant typography","versatile-toolkit")},{id:"neon",name:(0,ca.__)("Neon","versatile-toolkit"),description:(0,ca.__)("Cyberpunk-inspired design with glowing neon effects","versatile-toolkit")}],Qg=function(e){return"maintenance"===e?"versatile_maintenance_template_preview":"versatile_comingsoon_template_preview"};const Jg=function(e){var t,r,n=e.selectedTemplate,o=e.onTemplateSelect,a=e.type,s=e.formData,l=e.getFormData,c=Hg((0,i.useState)(null),2),u=c[0],d=c[1],f=Hg((0,i.useState)(!1),2),p=f[0],v=f[1],h=(0,i.useState)(function(){var e=Gg.findIndex(function(e){return e.id===n});if(-1===e)return Gg;var t=Gg[e],r=Gg.filter(function(t,r){return r!==e});return[t].concat(Bg(r))}),m=Hg(h,1)[0],y=function(e){o(e)},g=function(){d(null),v(!1)},b=(0,i.useMemo)(function(){var e=l();return e?JSON.stringify(e):""},[s]);(0,i.useEffect)(function(){var e=setTimeout(function(){document.querySelectorAll(".vt-iframe-loading").forEach(function(e){var t=e;"none"!==t.style.display&&(t.style.display="none")})},3e3);return function(){return clearTimeout(e)}},[b]);var x=Fg({isOpen:!!u,onClose:g}).handleBackdropClick;return(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)("div",{className:"vt-flex vt-gap-4 vt-overflow-x-auto vt-p-2 vt-scrollbar-thin vt-scrollbar-thumb-gray-300 vt-scrollbar-track-gray-100",children:m.map(function(e){return(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)(Ra,{className:"vt-cursor-pointer vt-flex-shrink-0 vt-w-64 vt-border-red-200 vt-bg-red-50",children:(0,Sn.jsxs)(Da,{className:"vt-p-4",children:[(0,Sn.jsx)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-red-100 vt-flex vt-items-center vt-justify-center",children:(0,Sn.jsx)("p",{className:"vt-text-red-600 vt-text-sm",children:(0,ca.__)("Template Error","versatile-toolkit")})}),(0,Sn.jsx)("h3",{className:"vt-font-medium vt-mt-2 vt-text-red-700",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-red-600",children:(0,ca.__)("Failed to load template","versatile-toolkit")})]})}),children:(0,Sn.jsx)(Ra,{className:"vt-cursor-pointer vt-transition-all vt-duration-200 hover:vt-shadow-lg vt-flex-shrink-0 vt-w-64 ".concat(n===e.id?"vt-ring-2 vt-ring-blue-500 vt-shadow-lg":"hover:vt-ring-1 hover:vt-ring-gray-300"),onClick:function(){return y(e.id)},children:(0,Sn.jsxs)(Da,{children:[(0,Sn.jsxs)("div",{className:"vt-relative vt-mb-3",children:[(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-gray-100 vt-overflow-hidden vt-border vt-relative",children:[(0,Sn.jsx)("div",{className:"vt-w-full vt-h-full vt-flex vt-items-center vt-justify-center vt-bg-gradient-to-br vt-from-blue-50 vt-to-indigo-100",children:(0,Sn.jsxs)("div",{className:"vt-text-center vt-p-4",children:[(0,Sn.jsxs)("div",{className:"vt-text-2xl vt-mb-2",children:["classic"===e.id&&"📄","modern"===e.id&&"🎨","minimal"===e.id&&"✨","creative"===e.id&&"🎭","corporate"===e.id&&"🏢","neon"===e.id&&"⚡"]}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-font-medium vt-text-gray-700",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-text-gray-500 vt-mt-1",children:(null==s?void 0:s.title)||"Preview"}),(null==s?void 0:s.background_image)&&(0,Sn.jsx)("div",{className:"vt-absolute vt-inset-0 vt-opacity-20",children:(0,Sn.jsx)("img",{src:s.background_image,alt:"",className:"vt-w-full vt-h-full vt-object-cover"})})]})}),(0,Sn.jsx)(Cg,{fallback:null,onError:function(t){var r=document.querySelector(".template-".concat(e.id," .vt-iframe-loading"));r&&(r.style.display="none")},children:(0,Sn.jsx)("iframe",{src:"".concat(Va.ajax_url,"?action=").concat(Qg(a),"&versatile_nonce=").concat(Va.nonce_value,"&template_id=").concat(e.id,"&type=").concat(a,"&preview_mode=thumbnail").concat(s?"&preview_data=".concat(encodeURIComponent(b)):""),className:"vt-w-full vt-h-full vt-border-0 vt-pointer-events-none vt-absolute vt-top-0 vt-left-0 vt-hidden",title:"".concat(e.name," Preview"),style:{transform:"scale(0.25)",transformOrigin:"top left",width:"400%",height:"400%"},onLoad:function(e){var t,r,n=e.currentTarget,o=null===(t=n.parentElement)||void 0===t?void 0:t.querySelector("div:not(.vt-iframe-loading)");o&&n&&(o.style.display="none",n.classList.remove("vt-hidden"));var a=null===(r=n.parentElement)||void 0===r?void 0:r.querySelector(".vt-iframe-loading");a&&(a.style.display="none")},onError:function(e){var t,r=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.querySelector(".vt-iframe-loading");r&&(r.style.display="none")}},"".concat(e.id,"-").concat(b))})]}),n===e.id&&(0,Sn.jsx)("div",{className:"vt-absolute vt-top-2 vt-right-2 vt-bg-blue-500 vt-text-white vt-rounded-full vt-p-1 vt-z-10",children:(0,Sn.jsx)(uv,{size:16})}),(0,Sn.jsx)("div",{className:"vt-absolute vt-inset-0 vt-bg-gray-100 vt-flex vt-items-center vt-justify-center vt-rounded-md vt-iframe-loading",children:(0,Sn.jsx)(Wg,{})})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsx)("h4",{className:"vt-font-semibold vt-text-sm",children:e.name}),(0,Sn.jsx)("p",{className:"vt-text-xs vt-text-gray-600 vt-line-clamp-2",children:e.description}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2 vt-pt-2",children:[(0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:n===e.id?"default":"outline",onClick:function(t){t.stopPropagation(),y(e.id)},className:"vt-flex-1 vt-text-xs",children:n===e.id?(0,ca.__)("Selected","versatile-toolkit"):(0,ca.__)("Select","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:"ghost",onClick:function(t){var r;t.stopPropagation(),r=e.id,d(r),v(!0)},className:"vt-text-xs",children:(0,ca.__)("Preview","versatile-toolkit")})]})]})]})})},e.id)})}),u&&(0,Sn.jsx)("div",{className:"vt-template-preview-wrapper vt-fixed vt-inset-x-0 vt--top-[15px] vt-bottom-0 vt-z-[99999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:x,children:(0,Sn.jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,Sn.jsxs)("h3",{className:"vt-text-lg vt-font-semibold",children:[null===(t=Gg.find(function(e){return e.id===u}))||void 0===t?void 0:t.name," -"," ",(0,ca.__)(" Template Preview","versatile-toolkit")]}),(0,Sn.jsx)(Qi,{type:"button",variant:"ghost",size:"sm",onClick:g,children:(0,Sn.jsx)(Ou,{size:16})})]}),(0,Sn.jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,Sn.jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50 vt-relative",children:[p&&(0,Sn.jsx)(ya,{}),(0,Sn.jsx)("iframe",{src:"".concat(Va.ajax_url,"?action=").concat(Qg(a),"&versatile_nonce=").concat(Va.nonce_value,"&template_id=").concat(u,"&type=").concat(a,"&preview_mode=thumbnail&preview_data=").concat(encodeURIComponent(JSON.stringify(l()))),className:"vt-w-full vt-h-full vt-border-0",title:(0,ca.__)("Template Preview","versatile-toolkit"),onLoad:function(){return v(!1)},style:{display:p?"none":"block"}})]})}),(0,Sn.jsxs)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:null===(r=Gg.find(function(e){return e.id===u}))||void 0===r?void 0:r.description}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)(Qi,{type:"button",variant:"outline",onClick:g,children:(0,ca.__)("Close","versatile-toolkit")}),(0,Sn.jsx)(Qi,{type:"button",onClick:function(){u&&(y(u),g())},children:(0,ca.__)("Use This Template","versatile-toolkit")})]})]})]})})]})};var Yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Mi(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...a}=e,i=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Sn.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});var Xg=i.forwardRef((e,t)=>(0,Sn.jsx)(Yg.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Xg.displayName="Label";var eb=Xg;function tb(e){return tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(e)}var rb=["className"];function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ob(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=tb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ab=Wi("vt-text-sm vt-font-medium vt-leading-none peer-disabled:vt-cursor-not-allowed peer-disabled:vt-opacity-70"),ib=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,rb);return(0,Sn.jsx)(eb,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(t){ob(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:la(ab(),r)},n))});function sb(e){return sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sb(e)}ib.displayName=eb.displayName;var lb=["className"],cb=["className"],ub=["className"],db=["className","children"];function fb(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(t){hb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=sb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mb(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yb.apply(null,arguments)}var gb=e=>{const{children:t,watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,handleSubmit:v,unregister:h,control:m,register:y,setFocus:g,subscribe:b}=e,x=i.useMemo(()=>({watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,handleSubmit:v,unregister:h,control:m,register:y,setFocus:g,subscribe:b}),[s,m,d,o,n,v,y,p,f,a,g,l,c,b,u,h,r]);return i.createElement(hy.Provider,{value:x},i.createElement(oy.Provider,{value:x.control},t))},bb=i.createContext({}),xb=function(e){var t=yb({},(mb(e),e));return(0,Sn.jsx)(bb.Provider,{value:{name:t.name},children:(0,Sn.jsx)(vy,vb({},t))})},wb=function(){var e=i.useContext(bb),t=i.useContext(jb),r=my(),n=r.getFieldState,o=r.formState,a=n(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");var s=t.id;return vb({id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message")},a)},jb=i.createContext({}),_b=i.forwardRef(function(e,t){var r=e.className,n=fb(e,lb),o=i.useId();return(0,Sn.jsx)(jb.Provider,{value:{id:o},children:(0,Sn.jsx)("div",vb({ref:t,className:la("vt-space-y-2",r)},n))})});_b.displayName="FormItem";var kb=i.forwardRef(function(e,t){var r=e.className,n=fb(e,cb),o=wb(),a=o.error,i=o.formItemId;return(0,Sn.jsx)(ib,vb({ref:t,className:la(a&&"vt-text-destructive",r),htmlFor:i},n))});kb.displayName="FormLabel";var Ob=i.forwardRef(function(e,t){var r=yb({},(mb(e),e)),n=wb(),o=n.error,a=n.formItemId,i=n.formDescriptionId,s=n.formMessageId;return(0,Sn.jsx)(Li,vb({ref:t,id:a,"aria-describedby":o?"".concat(i," ").concat(s):"".concat(i),"aria-invalid":!!o},r))});Ob.displayName="FormControl";var Sb=i.forwardRef(function(e,t){var r=e.className,n=fb(e,ub),o=wb().formDescriptionId;return(0,Sn.jsx)("p",vb({ref:t,id:o,className:la("vt-text-[0.8rem] vt-text-muted-foreground",r)},n))});Sb.displayName="FormDescription";var Nb=i.forwardRef(function(e,t){var r,n=e.className,o=e.children,a=fb(e,db),i=wb(),s=i.error,l=i.formMessageId,c=s?String(null!==(r=null==s?void 0:s.message)&&void 0!==r?r:""):o;return c?(0,Sn.jsx)("p",vb(vb({ref:t,id:l,className:la("vt-text-[0.8rem] vt-font-medium vt-text-destructive",n)},a),{},{children:c})):null});function Eb(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Nb.displayName="FormMessage";var Pb="Switch",[Cb,Rb]=fs(Pb),[Tb,Ab]=Cb(Pb),Db=i.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:u,form:d,...f}=e,[p,v]=i.useState(null),h=Ai(t,e=>v(e)),m=i.useRef(!1),y=!p||(d||!!p.closest("form")),[g,b]=bs({prop:o,defaultProp:a??!1,onChange:u,caller:Pb});return(0,Sn.jsxs)(Tb,{scope:r,checked:g,disabled:l,children:[(0,Sn.jsx)(Os.button,{type:"button",role:"switch","aria-checked":g,"aria-required":s,"data-state":Lb(g),"data-disabled":l?"":void 0,disabled:l,value:c,...f,ref:h,onClick:ds(e.onClick,e=>{b(e=>!e),y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),y&&(0,Sn.jsx)(Mb,{control:p,bubbles:!m.current,name:n,value:c,checked:g,required:s,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});Db.displayName=Pb;var Fb="SwitchThumb",Ib=i.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Ab(Fb,r);return(0,Sn.jsx)(Os.span,{"data-state":Lb(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Ib.displayName=Fb;var Mb=i.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=i.useRef(null),l=Ai(s,a),c=Eb(r),u=Qf(t);return i.useEffect(()=>{const e=s.current;if(!e)return;const t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==r&&o){const t=new Event("click",{bubbles:n});o.call(e,r),e.dispatchEvent(t)}},[c,r,n]),(0,Sn.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Lb(e){return e?"checked":"unchecked"}Mb.displayName="SwitchBubbleInput";var Vb=Db,$b=Ib;function zb(e){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(e)}var Ub=["className"];function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(t){Bb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Hb=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ub);return(0,Sn.jsx)(Vb,Wb(Wb({className:la("vt-peer vt-inline-flex vt-h-6 vt-w-11 vt-shrink-0 vt-cursor-pointer vt-items-center vt-rounded-full vt-border-2 vt-border-transparent vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-4 focus-visible:vt-ring-blue-300 disabled:vt-cursor-not-allowed disabled:vt-opacity-50 data-[state=checked]:vt-bg-blue-600 data-[state=unchecked]:vt-bg-[#c7c6c6]",r)},n),{},{ref:t,children:(0,Sn.jsx)($b,{className:la("vt-pointer-events-none vt-block vt-h-5 vt-w-5 vt-rounded-full vt-bg-white vt-border vt-border-gray-300 vt-shadow-lg vt-ring-0 vt-transition-transform data-[state=checked]:vt-translate-x-5 data-[state=unchecked]:vt-translate-x-0")})}))});function Zb(e){return Zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zb(e)}Hb.displayName=Vb.displayName;var Kb=["className"];function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Zb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jb=i.forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Kb);return(0,Sn.jsx)("textarea",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(t){Qb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:la("vt-flex vt-min-h-[60px] vt-w-full vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-px-3 vt-py-2 vt-text-base vt-shadow-sm vt-placeholder:text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:text-sm",r),ref:t},n))});function Yb(e){return Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yb(e)}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(t){tx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Yb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rx(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return nx(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(nx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,nx(d,"constructor",c),nx(c,"constructor",l),l.displayName="GeneratorFunction",nx(c,o,"GeneratorFunction"),nx(d),nx(d,o,"Generator"),nx(d,n,function(){return this}),nx(d,"toString",function(){return"[object Generator]"}),(rx=function(){return{w:a,m:f}})()}function nx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}nx=function(e,t,r,n){function a(t,r){nx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},nx(e,t,r,n)}function ox(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ax(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ix(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ix(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Jb.displayName="Textarea";const sx=function(){var e=ax((0,i.useState)(!1),2),t=e[0],r=e[1],n=ax((0,i.useState)(void 0),2),o=n[0],a=n[1],s=function(){return l.getValues()},l=eg({resolver:ig(im),defaultValues:{enable_maintenance:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),c=l.handleSubmit,u=function(){var e,t=En();return Ya({mutationFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_maintenance_mood",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Cr.success(null!==(r=e.message)&&void 0!==r?r:(0,ca.__)("Maintenance Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed while updating maintenance mood","versatile-toolkit"))}})}(),d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){ox(a,n,o,i,s,"next",e)}function s(e){ox(a,n,o,i,s,"throw",e)}i(void 0)})}}(rx().m(function e(t){return rx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),f=Si(),p=f.data,v=f.isLoading,h=null==p?void 0:p.data.maintenance;return(0,i.useEffect)(function(){h&&(l.reset({enable_maintenance:null==p?void 0:p.data.enable_maintenance,show_subscribers_only:h.show_subscribers_only||!1,title:h.title||"",description:h.description||"",subtitle:h.subtitle||"",template:h.template||"classic",background_image:h.background_image||"",background_image_id:h.background_image_id||0,logo:h.logo||"",logo_id:h.logo_id||0}),r(!0))},[h]),(0,Sn.jsx)("div",{className:"",children:v||!t?(0,Sn.jsx)(ma,{}):(0,Sn.jsx)(Cg,{onError:function(e,t){},fallback:(0,Sn.jsxs)("div",{className:"vt-p-6 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:[(0,Sn.jsx)("h3",{className:"vt-text-lg vt-font-medium vt-text-red-700 vt-mb-2",children:(0,ca.__)("Form Error","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-red-600",children:(0,ca.__)("There was a problem loading the maintenance settings form. Please try refreshing the page or contact support.","versatile-toolkit")}),(0,Sn.jsx)(Qi,{className:"vt-mt-4",onClick:function(){return window.location.reload()},children:(0,ca.__)("Refresh Page","versatile-toolkit")})]}),children:(0,Sn.jsx)(gb,ex(ex({},l),{},{children:(0,Sn.jsxs)("form",{onSubmit:c(d,function(e){}),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{}),(0,ca.__)("Maintenance Mood","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(Qi,{type:"submit",disabled:u.isPending,children:u.isPending?(0,ca.__)("Saving...","versatile-toolkit"):(0,ca.__)("Save Settings","versatile-toolkit")}),(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)(Qi,{variant:"outline",disabled:!0,children:(0,ca.__)("Preview Unavailable","versatile-toolkit")}),children:(0,Sn.jsx)(Lg,{type:"maintenance",disabled:u.isPending,getFormData:s})})]})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(xb,{control:l.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Choose Template","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Template selector failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Jg,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"maintenance",formData:o,getFormData:s})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Select a design template for your maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:l.control,name:"enable_maintenance",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"enable_maintenance",children:(0,ca.__)("Enable Maintenance Mood","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"enable_maintenance",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Enable or disable maintenance mode for your site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,ca.__)("Show Only for Users","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("When enabled, maintenance mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Title","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,ex({placeholder:(0,ca.__)("Enter maintenance title","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Subtitle","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,ex({placeholder:(0,ca.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Description","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jb,ex({placeholder:(0,ca.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Provide more details about the maintenance.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]}),(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:l.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Background Image","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(l.getValues())},buttonText:(0,ca.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a background image for the maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:l.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Logo","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Cg,{fallback:(0,Sn.jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,Sn.jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,ca.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(l.getValues())},buttonText:(0,ca.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a logo to display on the maintenance page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]})]})]})}))})})};const lx=function(){return(0,Sn.jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,Sn.jsx)(sx,{})})};function cx(e){return cx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cx(e)}function ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ux(Object(r),!0).forEach(function(t){fx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ux(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return vx(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(vx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,vx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,vx(d,"constructor",c),vx(c,"constructor",l),l.displayName="GeneratorFunction",vx(c,o,"GeneratorFunction"),vx(d),vx(d,o,"Generator"),vx(d,n,function(){return this}),vx(d,"toString",function(){return"[object Generator]"}),(px=function(){return{w:a,m:f}})()}function vx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vx=function(e,t,r,n){function a(t,r){vx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},vx(e,t,r,n)}function hx(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function mx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const gx=function(){var e=mx((0,i.useState)(!1),2),t=e[0],r=e[1],n=mx((0,i.useState)(void 0),2),o=n[0],a=n[1],s=eg({resolver:ig(sm),defaultValues:{enable_comingsoon:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),l=s.handleSubmit,c=function(){return s.getValues()},u=function(){var e,t=En();return Ya({mutationFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_comingsoon_mood",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Cr.success(null!==(r=e.message)&&void 0!==r?r:(0,ca.__)("Comingsoon Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed while updating Comingsoon mood","versatile-toolkit"))}})}(),d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){hx(a,n,o,i,s,"next",e)}function s(e){hx(a,n,o,i,s,"throw",e)}i(void 0)})}}(px().m(function e(t){return px().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),f=Si(),p=f.data,v=f.isLoading,h=null==p?void 0:p.data.comingsoon;return(0,i.useEffect)(function(){h&&(s.reset({enable_comingsoon:null==p?void 0:p.data.enable_comingsoon,show_subscribers_only:h.show_subscribers_only||!1,title:h.title||"",description:h.description||"",subtitle:h.subtitle||"",template:h.template||"classic",background_image:h.background_image||"",background_image_id:h.background_image_id||0,logo:h.logo||"",logo_id:h.logo_id||0}),r(!0))},[h]),(0,Sn.jsx)("div",{className:"",children:v||!t?(0,Sn.jsx)(ma,{}):(0,Sn.jsx)(gb,dx(dx({},s),{},{children:(0,Sn.jsxs)("form",{onSubmit:l(d,function(e){}),children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,Sn.jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,Sn.jsx)(lg,{}),(0,ca.__)("Comingsoon Mood","versatile-toolkit")]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,Sn.jsx)(Qi,{type:"submit",disabled:u.isPending,children:(0,Sn.jsx)(fa,{isLoading:u.isPending,loadingText:(0,ca.__)("Saving","versatile-toolkit"),children:(0,ca.__)("Save Settings","versatile-toolkit")})}),(0,Sn.jsx)(Lg,{type:"comingsoon",disabled:u.isPending,getFormData:c})]})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(xb,{control:s.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Choose Template","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jg,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"comingsoon",formData:o,getFormData:c})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Select a design template for your coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:s.control,name:"enable_comingsoon",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"enable_comingsoon",children:(0,ca.__)("Enable Comingsoon Mood","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"enable_comingsoon",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsxs)(Sb,{children:[(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit"),(0,ca.__)("Enable the coming soon page for your website.","versatile-toolkit")]}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,ca.__)("Show Only for Users","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Hb,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("When enabled, coming soon mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Title","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,dx({placeholder:(0,ca.__)("Enter coming soon title","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Subtitle","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,dx({placeholder:(0,ca.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Description","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Jb,dx({placeholder:(0,ca.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Provide more details about the coming soon.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]}),(0,Sn.jsxs)("div",{className:"vt-w-1/2",children:[(0,Sn.jsx)(xb,{control:s.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Background Image","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(s.getValues())},buttonText:(0,ca.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a background image for the coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:s.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,Sn.jsxs)(_b,{className:"vt-mt-6",children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Logo","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(Ag,{value:t.value||"",onChange:function(e,r){t.onChange(e),a(s.getValues())},buttonText:(0,ca.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,Sn.jsx)(Sb,{children:(0,ca.__)("Upload a logo to display on the coming soon page.","versatile-toolkit")}),(0,Sn.jsx)(Nb,{})]})}})]})]})]})}))})};const bx=function(){return(0,Sn.jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,Sn.jsx)(gx,{})})};var xx=function(e){var t=e.className;return(0,Sn.jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Sn.jsxs)("g",{opacity:"0.6",children:[(0,Sn.jsx)("path",{d:"M8 12C8 10.8954 8.89543 10 10 10H18L22 14H38C39.1046 14 40 14.8954 40 16V34C40 35.1046 39.1046 36 38 36H10C8.89543 36 8 35.1046 8 34V12Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,Sn.jsx)("path",{d:"M14 22H20M14 26H24M14 30H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.4"}),(0,Sn.jsx)("circle",{cx:"32",cy:"24",r:"4",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.5"}),(0,Sn.jsx)("path",{d:"M35 27L37 29",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]})})};function wx(e){return wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wx(e)}var jx=["className"],_x=["className"],kx=["className"],Ox=["className"],Sx=["className"],Nx=["className"],Ex=["className"],Px=["className"];function Cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Rx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(t){Tx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=wx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ax(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Dx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,jx);return(0,Sn.jsx)("div",{className:"vt-relative vt-w-full vt-overflow-auto",children:(0,Sn.jsx)("table",Rx({ref:t,className:la("vt-w-full vt-caption-bottom vt-text-sm",r)},n))})});Dx.displayName="Table";var Fx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,_x);return(0,Sn.jsx)("thead",Rx({ref:t,className:la("[&_tr]:vt-border-b",r)},n))});Fx.displayName="TableHeader";var Ix=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,kx);return(0,Sn.jsx)("tbody",Rx({ref:t,className:la("[&_tr:last-child]:vt-border-0",r)},n))});Ix.displayName="TableBody",i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Ox);return(0,Sn.jsx)("tfoot",Rx({ref:t,className:la("vt-border-t vt-bg-muted/50 vt-font-medium [&>tr]:last:vt-border-b-0",r)},n))}).displayName="TableFooter";var Mx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Sx);return(0,Sn.jsx)("tr",Rx({ref:t,className:la("vt-border-b vt-transition-colors hover:vt-bg-muted/50 data-[state=selected]:vt-bg-muted",r)},n))});Mx.displayName="TableRow";var Lx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Nx);return(0,Sn.jsx)("th",Rx({ref:t,className:la("vt-h-10 vt-px-2 vt-text-left vt-align-middle vt-font-medium vt-text-muted-foreground [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Lx.displayName="TableHead";var Vx=i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Ex);return(0,Sn.jsx)("td",Rx({ref:t,className:la("vt-p-2 vt-align-middle [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Vx.displayName="TableCell",i.forwardRef(function(e,t){var r=e.className,n=Ax(e,Px);return(0,Sn.jsx)("caption",Rx({ref:t,className:la("vt-mt-4 vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="TableCaption";const $x=function(e){var t=e.colSpan,r=void 0===t?9:t,n=e.title,o=void 0===n?"":n,a=e.description,i=void 0===a?"":a;return(0,Sn.jsx)(Mx,{children:(0,Sn.jsx)(Vx,{colSpan:r,className:"vt-text-center vt-py-12",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-items-center vt-space-y-3 vt-text-muted-foreground",children:[(0,Sn.jsx)(xx,{className:"vt-w-12 vt-h-12"}),(0,Sn.jsxs)("div",{className:"vt-space-y-1",children:[(0,Sn.jsx)("p",{className:"vt-text-lg vt-font-medium",children:o||(0,ca.__)("Empty!! No data found","versatile-toolkit")}),i&&(0,Sn.jsx)("p",{className:"vt-text-sm",children:i})]})]})})})};function zx(e,[t,r]){return Math.min(r,Math.max(t,e))}function Ux(e){const t=qx(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(Bx);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function qx(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wx=Symbol("radix.slottable");function Bx(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Wx}var Hx=new WeakMap;Map;function Zx(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=function(e,t){const r=e.length,n=Kx(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return-1===r?void 0:e[r]}function Kx(e){return e!=e||0===e?0:Math.trunc(e)}var Gx=i.createContext(void 0);function Qx(e){const t=Jx(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(Xx);if(s){const e=s.props.children,n=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Sn.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Sn.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Jx(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Ti(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yx=Symbol("radix.slottable");function Xx(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Yx}var ew=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tw=i.forwardRef((e,t)=>(0,Sn.jsx)(Os.span,{...e,ref:t,style:{...ew,...e.style}}));tw.displayName="VisuallyHidden";var rw=[" ","Enter","ArrowUp","ArrowDown"],nw=[" ","Enter"],ow="Select",[aw,iw,sw]=function(e){const t=e+"CollectionProvider",[r,n]=fs(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,Sn.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;const l=e+"CollectionSlot",c=Ux(l),u=i.forwardRef((e,t)=>{const{scope:r,children:n}=e,o=Ai(t,a(l,r).collectionRef);return(0,Sn.jsx)(c,{ref:o,children:n})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=Ux(d),v=i.forwardRef((e,t)=>{const{scope:r,children:n,...o}=e,s=i.useRef(null),l=Ai(t,s),c=a(d,r);return i.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,Sn.jsx)(p,{[f]:"",ref:l,children:n})});return v.displayName=d,[{Provider:s,Slot:u,ItemSlot:v},function(t){const r=a(e+"CollectionConsumer",t),n=i.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return n},[r.collectionRef,r.itemMap]);return n},n]}(ow),[lw,cw]=fs(ow,[sw,Xf]),uw=Xf(),[dw,fw]=lw(ow),[pw,vw]=lw(ow),hw=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:p,required:v,form:h}=e,m=uw(t),[y,g]=i.useState(null),[b,x]=i.useState(null),[w,j]=i.useState(!1),_=function(e){const t=i.useContext(Gx);return e||t||"ltr"}(u),[k,O]=bs({prop:n,defaultProp:o??!1,onChange:a,caller:ow}),[S,N]=bs({prop:s,defaultProp:l,onChange:c,caller:ow}),E=i.useRef(null),P=!y||(h||!!y.closest("form")),[C,R]=i.useState(new Set),T=Array.from(C).map(e=>e.props.value).join(";");return(0,Sn.jsx)(hp,{...m,children:(0,Sn.jsxs)(dw,{required:v,scope:t,trigger:y,onTriggerChange:g,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:j,contentId:ys(),value:S,onValueChange:N,open:k,onOpenChange:O,dir:_,triggerPointerDownPosRef:E,disabled:p,children:[(0,Sn.jsx)(aw.Provider,{scope:t,children:(0,Sn.jsx)(pw,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{R(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{R(t=>{const r=new Set(t);return r.delete(e),r})},[]),children:r})}),P?(0,Sn.jsxs)(nj,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:f,value:S,onChange:e=>N(e.target.value),disabled:p,form:h,children:[void 0===S?(0,Sn.jsx)("option",{value:""}):null,Array.from(C)]},T):null]})})};hw.displayName=ow;var mw="SelectTrigger",yw=i.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=uw(r),s=fw(mw,r),l=s.disabled||n,c=Ai(t,s.onTriggerChange),u=iw(r),d=i.useRef("touch"),[f,p,v]=aj(e=>{const t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=ij(t,e,r);void 0!==n&&s.onValueChange(n.value)}),h=e=>{l||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,Sn.jsx)(mp,{asChild:!0,...a,children:(0,Sn.jsx)(Os.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":oj(s.value)?"":void 0,...o,ref:c,onClick:ds(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&h(e)}),onPointerDown:ds(o.onPointerDown,e=>{d.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:ds(o.onKeyDown,e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||rw.includes(e.key)&&(h(),e.preventDefault())})})})});yw.displayName=mw;var gw="SelectValue",bw=i.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...s}=e,l=fw(gw,r),{onValueNodeHasChildrenChange:c}=l,u=void 0!==a,d=Ai(t,l.onValueNodeChange);return vs(()=>{c(u)},[c,u]),(0,Sn.jsx)(Os.span,{...s,ref:d,style:{pointerEvents:"none"},children:oj(l.value)?(0,Sn.jsx)(Sn.Fragment,{children:i}):a})});bw.displayName=gw;var xw=i.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return(0,Sn.jsx)(Os.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});xw.displayName="SelectIcon";var ww=e=>(0,Sn.jsx)(Hs,{asChild:!0,...e});ww.displayName="SelectPortal";var jw="SelectContent",_w=i.forwardRef((e,t)=>{const r=fw(jw,e.__scopeSelect),[n,o]=i.useState();if(vs(()=>{o(new DocumentFragment)},[]),!r.open){const t=n;return t?xs.createPortal((0,Sn.jsx)(Ow,{scope:e.__scopeSelect,children:(0,Sn.jsx)(aw.Slot,{scope:e.__scopeSelect,children:(0,Sn.jsx)("div",{children:e.children})})}),t):null}return(0,Sn.jsx)(Ew,{...e,ref:t})});_w.displayName=jw;var kw=10,[Ow,Sw]=lw(jw),Nw=Qx("SelectContent.RemoveScroll"),Ew=i.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:h,hideWhenDetached:m,avoidCollisions:y,...g}=e,b=fw(jw,r),[x,w]=i.useState(null),[j,_]=i.useState(null),k=Ai(t,e=>w(e)),[O,S]=i.useState(null),[N,E]=i.useState(null),P=iw(r),[C,R]=i.useState(!1),T=i.useRef(!1);i.useEffect(()=>{if(x)return Ql(x)},[x]),Qs();const A=i.useCallback(e=>{const[t,...r]=P().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(const r of e){if(r===o)return;if(r?.scrollIntoView({block:"nearest"}),r===t&&j&&(j.scrollTop=0),r===n&&j&&(j.scrollTop=j.scrollHeight),r?.focus(),document.activeElement!==o)return}},[P,j]),D=i.useCallback(()=>A([O,x]),[A,O,x]);i.useEffect(()=>{C&&D()},[C,D]);const{onOpenChange:F,triggerPointerDownPosRef:I}=b;i.useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(I.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():x.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[x,F,I]),i.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[M,L]=aj(e=>{const t=P().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=ij(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),V=i.useCallback((e,t,r)=>{const n=!T.current&&!r;(void 0!==b.value&&b.value===t||n)&&(S(e),n&&(T.current=!0))},[b.value]),$=i.useCallback(()=>x?.focus(),[x]),z=i.useCallback((e,t,r)=>{const n=!T.current&&!r;(void 0!==b.value&&b.value===t||n)&&E(e)},[b.value]),U="popper"===n?Cw:Pw,q=U===Cw?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:h,hideWhenDetached:m,avoidCollisions:y}:{};return(0,Sn.jsx)(Ow,{scope:r,content:x,viewport:j,onViewportChange:_,itemRefCallback:V,selectedItem:O,onItemLeave:$,itemTextRefCallback:z,focusSelectedItem:D,selectedItemText:N,position:n,isPositioned:C,searchRef:M,children:(0,Sn.jsx)(Ul,{as:Nw,allowPinchZoom:!0,children:(0,Sn.jsx)(Vs,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ds(o,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,Sn.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,Sn.jsx)(U,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...g,...q,onPlaced:()=>R(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ds(g.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});Ew.displayName="SelectContentImpl";var Pw=i.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=fw(jw,r),s=Sw(jw,r),[l,c]=i.useState(null),[u,d]=i.useState(null),f=Ai(t,e=>d(e)),p=iw(r),v=i.useRef(!1),h=i.useRef(!0),{viewport:m,selectedItem:y,selectedItemText:g,focusSelectedItem:b}=s,x=i.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&y&&g){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==a.dir){const n=o.left-t.left,a=r.left-n,i=e.left-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-kw,d=zx(a,[kw,Math.max(kw,u-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{const n=t.right-o.right,a=window.innerWidth-r.right-n,i=window.innerWidth-e.right-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-kw,d=zx(a,[kw,Math.max(kw,u-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}const i=p(),s=window.innerHeight-2*kw,c=m.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),x=f+h+c+parseInt(d.paddingBottom,10)+b,w=Math.min(5*y.offsetHeight,x),j=window.getComputedStyle(m),_=parseInt(j.paddingTop,10),k=parseInt(j.paddingBottom,10),O=e.top+e.height/2-kw,S=s-O,N=y.offsetHeight/2,E=f+h+(y.offsetTop+N),P=x-E;if(E<=O){const e=i.length>0&&y===i[i.length-1].ref.current;l.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,r=E+Math.max(S,N+(e?k:0)+t+b);l.style.height=r+"px"}else{const e=i.length>0&&y===i[0].ref.current;l.style.top="0px";const t=Math.max(O,f+m.offsetTop+(e?_:0)+N)+P;l.style.height=t+"px",m.scrollTop=E-O+m.offsetTop}l.style.margin=`${kw}px 0`,l.style.minHeight=w+"px",l.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,a.trigger,a.valueNode,l,u,m,y,g,a.dir,n]);vs(()=>x(),[x]);const[w,j]=i.useState();vs(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const _=i.useCallback(e=>{e&&!0===h.current&&(x(),b?.(),h.current=!1)},[x,b]);return(0,Sn.jsx)(Rw,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:_,children:(0,Sn.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,Sn.jsx)(Os.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Pw.displayName="SelectItemAlignedPosition";var Cw=i.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=kw,...a}=e,i=uw(r);return(0,Sn.jsx)(yp,{...i,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cw.displayName="SelectPopperPosition";var[Rw,Tw]=lw(jw,{}),Aw="SelectViewport",Dw=i.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Sw(Aw,r),s=Tw(Aw,r),l=Ai(t,a.onViewportChange),c=i.useRef(0);return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,Sn.jsx)(aw.Slot,{scope:r,children:(0,Sn.jsx)(Os.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ds(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if(n?.current&&r){const e=Math.abs(c.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*kw,o=parseFloat(r.style.minHeight),a=parseFloat(r.style.height),i=Math.max(o,a);if(i<n){const o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});Dw.displayName=Aw;var Fw="SelectGroup",[Iw,Mw]=lw(Fw),Lw=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ys();return(0,Sn.jsx)(Iw,{scope:r,id:o,children:(0,Sn.jsx)(Os.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Lw.displayName=Fw;var Vw="SelectLabel",$w=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Mw(Vw,r);return(0,Sn.jsx)(Os.div,{id:o.id,...n,ref:t})});$w.displayName=Vw;var zw="SelectItem",[Uw,qw]=lw(zw),Ww=i.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,l=fw(zw,r),c=Sw(zw,r),u=l.value===n,[d,f]=i.useState(a??""),[p,v]=i.useState(!1),h=Ai(t,e=>c.itemRefCallback?.(e,n,o)),m=ys(),y=i.useRef("touch"),g=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,Sn.jsx)(Uw,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,Sn.jsx)(aw.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:(0,Sn.jsx)(Os.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:h,onFocus:ds(s.onFocus,()=>v(!0)),onBlur:ds(s.onBlur,()=>v(!1)),onClick:ds(s.onClick,()=>{"mouse"!==y.current&&g()}),onPointerUp:ds(s.onPointerUp,()=>{"mouse"===y.current&&g()}),onPointerDown:ds(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:ds(s.onPointerMove,e=>{y.current=e.pointerType,o?c.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ds(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ds(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(nw.includes(e.key)&&g()," "===e.key&&e.preventDefault())})})})})});Ww.displayName=zw;var Bw="SelectItemText",Hw=i.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=fw(Bw,r),l=Sw(Bw,r),c=qw(Bw,r),u=vw(Bw,r),[d,f]=i.useState(null),p=Ai(t,e=>f(e),c.onItemTextChange,e=>l.itemTextRefCallback?.(e,c.value,c.disabled)),v=d?.textContent,h=i.useMemo(()=>(0,Sn.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return vs(()=>(m(h),()=>y(h)),[m,y,h]),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(Os.span,{id:c.textId,...a,ref:p}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?xs.createPortal(a.children,s.valueNode):null]})});Hw.displayName=Bw;var Zw="SelectItemIndicator",Kw=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return qw(Zw,r).isSelected?(0,Sn.jsx)(Os.span,{"aria-hidden":!0,...n,ref:t}):null});Kw.displayName=Zw;var Gw="SelectScrollUpButton",Qw=i.forwardRef((e,t)=>{const r=Sw(Gw,e.__scopeSelect),n=Tw(Gw,e.__scopeSelect),[o,a]=i.useState(!1),s=Ai(t,n.onScrollButtonChange);return vs(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,Sn.jsx)(Xw,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Qw.displayName=Gw;var Jw="SelectScrollDownButton",Yw=i.forwardRef((e,t)=>{const r=Sw(Jw,e.__scopeSelect),n=Tw(Jw,e.__scopeSelect),[o,a]=i.useState(!1),s=Ai(t,n.onScrollButtonChange);return vs(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,r=Math.ceil(t.scrollTop)<e;a(r)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,Sn.jsx)(Xw,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Yw.displayName=Jw;var Xw=i.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Sw("SelectScrollButton",r),s=i.useRef(null),l=iw(r),c=i.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),vs(()=>{const e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,Sn.jsx)(Os.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ds(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(n,50))}),onPointerMove:ds(o.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(n,50))}),onPointerLeave:ds(o.onPointerLeave,()=>{c()})})}),ej=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return(0,Sn.jsx)(Os.div,{"aria-hidden":!0,...n,ref:t})});ej.displayName="SelectSeparator";var tj="SelectArrow",rj=i.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=uw(r),a=fw(tj,r),i=Sw(tj,r);return a.open&&"popper"===i.position?(0,Sn.jsx)(gp,{...o,...n,ref:t}):null});rj.displayName=tj;var nj=i.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=i.useRef(null),a=Ai(n,o),s=Eb(t);return i.useEffect(()=>{const e=o.current;if(!e)return;const r=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(r,"value").set;if(s!==t&&n){const r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[s,t]),(0,Sn.jsx)(Os.select,{...r,style:{...ew,...r.style},ref:a,defaultValue:t})});function oj(e){return""===e||void 0===e}function aj(e){const t=Ss(e),r=i.useRef(""),n=i.useRef(0),o=i.useCallback(e=>{const o=r.current+e;t(o),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=i.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ij(e,t,r){const n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===n.length&&(a=a.filter(e=>e!==r));const l=a.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return l!==r?l:void 0}nj.displayName="SelectBubbleInput";var sj=hw,lj=yw,cj=bw,uj=xw,dj=ww,fj=_w,pj=Dw,vj=Ww,hj=Hw,mj=Kw;const yj=_u("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function gj(e){return gj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gj(e)}var bj=["className","children"],xj=["className","children","position"],wj=["className","children"];function jj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jj(Object(r),!0).forEach(function(t){kj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=gj(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oj(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Sj=sj,Nj=cj,Ej=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Oj(e,bj);return(0,Sn.jsxs)(lj,_j(_j({ref:t,className:la("vt-flex vt-h-10 vt-items-center vt-justify-between vt-rounded-md vt-border vt-border-input vt-bg-background vt-px-3 vt-py-2 vt-text-sm vt-ring-offset-background placeholder:vt-text-muted-foreground focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2 disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},o),{},{children:[n,(0,Sn.jsx)(uj,{asChild:!0,children:(0,Sn.jsx)(yj,{className:"vt-h-4 vt-w-4 vt-opacity-50"})})]}))});Ej.displayName=lj.displayName;var Pj=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=e.position,a=void 0===o?"popper":o,i=Oj(e,xj);return(0,Sn.jsx)(dj,{children:(0,Sn.jsx)(fj,_j(_j({ref:t,className:la("vt-relative vt-z-[100000] vt-min-w-[8rem] vt-overflow-hidden vt-rounded-md vt-border vt-bg-popover vt-text-popover-foreground vt-shadow-md data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out data-[state=closed]:vt-fade-out-0 data-[state=open]:vt-fade-in-0 data-[state=closed]:vt-zoom-out-95 data-[state=open]:vt-zoom-in-95 data-[side=bottom]:vt-slide-in-from-top-2 data-[side=left]:vt-slide-in-from-right-2 data-[side=right]:vt-slide-in-from-left-2 data-[side=top]:vt-slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a},i),{},{children:(0,Sn.jsx)(pj,{className:la("vt-p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})}))})});Pj.displayName=fj.displayName;var Cj=i.forwardRef(function(e,t){var r=e.className,n=e.children,o=Oj(e,wj);return(0,Sn.jsxs)(vj,_j(_j({ref:t,className:la("vt-relative vt-flex vt-w-full vt-cursor-default vt-select-none vt-items-center vt-rounded-sm vt-py-1.5 vt-pl-8 vt-pr-2 vt-text-sm vt-outline-none focus:vt-bg-accent focus:vt-text-accent-foreground data-[disabled]:vt-pointer-events-none data-[disabled]:vt-opacity-50",r)},o),{},{children:[(0,Sn.jsx)("span",{className:"vt-absolute vt-left-2 vt-flex h-3.5 w-3.5 vt-items-center vt-justify-center",children:(0,Sn.jsx)(mj,{children:(0,Sn.jsx)(uv,{className:"vt-h-4 vt-w-4"})})}),(0,Sn.jsx)(hj,{children:n})]}))});function Rj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tj(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Cj.displayName=vj.displayName;var Aj=function(e){return new Date(e)<new Date},Dj=function(e){var t=new Date(e);return t<new Date?(0,ca.__)("Expired","versatile-toolkit"):t.toLocaleString()},Fj=function(e){var t=new Date,r={"1_hour":36e5,"3_hours":108e5,"6_hours":216e5,"12_hours":432e5,"1_day":864e5,"3_days":2592e5,"1_week":6048e5,"2_weeks":12096e5,"1_month":2592e6,"3_months":7776e6,"6_months":15552e6,"1_year":31536e6}[e]||0;return new Date(t.getTime()+r).toString()},Ij=function(e){var t=new Date(e),r=new Date,n=t.getTime()-r.getTime();if(n<=0)return(0,ca.__)("Expired","versatile-toolkit");var o=Math.floor(n/864e5),a=Math.floor(n%864e5/36e5),i=Math.floor(n%36e5/6e4);return o>0?"".concat(o,"d ").concat(a,"h ").concat(i,"m remaining"):a>0?"".concat(a,"h ").concat(i,"m remaining"):"".concat(i,"m remaining")};function Mj(e){return Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mj(e)}function Lj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(r),!0).forEach(function(t){$j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Mj(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zj(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Uj(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Uj(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Uj(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Uj(d,"constructor",c),Uj(c,"constructor",l),l.displayName="GeneratorFunction",Uj(c,o,"GeneratorFunction"),Uj(d),Uj(d,o,"Generator"),Uj(d,n,function(){return this}),Uj(d,"toString",function(){return"[object Generator]"}),(zj=function(){return{w:a,m:f}})()}function Uj(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Uj=function(e,t,r,n){function a(t,r){Uj(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},Uj(e,t,r,n)}function qj(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Wj(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){qj(a,n,o,i,s,"next",e)}function s(e){qj(a,n,o,i,s,"throw",e)}i(void 0)})}}var Bj,Hj,Zj,Kj,Gj,Qj,Jj,Yj=[{value:"1_hour",label:(0,ca.__)("1 Hour","versatile-toolkit")},{value:"3_hours",label:(0,ca.__)("3 Hours","versatile-toolkit")},{value:"6_hours",label:(0,ca.__)("6 Hours","versatile-toolkit")},{value:"12_hours",label:(0,ca.__)("12 Hours","versatile-toolkit")},{value:"1_day",label:(0,ca.__)("1 Day","versatile-toolkit")},{value:"3_days",label:(0,ca.__)("3 Days","versatile-toolkit")},{value:"1_week",label:(0,ca.__)("1 Week","versatile-toolkit")},{value:"2_weeks",label:(0,ca.__)("2 Weeks","versatile-toolkit")},{value:"1_month",label:(0,ca.__)("1 Month","versatile-toolkit")},{value:"3_months",label:(0,ca.__)("3 Months","versatile-toolkit")},{value:"6_months",label:(0,ca.__)("6 Months","versatile-toolkit")},{value:"1_year",label:(0,ca.__)("1 Year","versatile-toolkit")}],Xj={getAvailableRoles:(Jj=Wj(zj().m(function e(){var t,r;return zj().w(function(e){for(;;)switch(e.n){case 0:return t={action:"versatile_get_available_roles"},e.n=1,gi(Va.ajax_url,{body:t});case 1:if(200===(r=e.v).status_code){e.n=2;break}throw new Error(r.message||(0,ca.__)("Failed to get available roles","versatile-toolkit"));case 2:return e.a(2,r.data)}},e)})),function(){return Jj.apply(this,arguments)}),createTempLogin:(Qj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj(Vj({action:"versatile_create_temp_login"},t),{},{expires_at:Dj(Fj(t.expires_at))}),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to create temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Qj.apply(this,arguments)}),getTempLoginList:(Gj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_get_temp_login_list"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to get temporary login list","versatile-toolkit"));case 2:return e.a(2,n.data)}},e)})),function(e){return Gj.apply(this,arguments)}),toggleTempLoginStatus:(Kj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_toggle_temp_login_status"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to toggle temporary login status","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Kj.apply(this,arguments)}),deleteTempLogin:(Zj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_delete_temp_login"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to delete temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Zj.apply(this,arguments)}),updateTempLogin:(Hj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj({action:"versatile_update_temp_login"},t),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to update temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Hj.apply(this,arguments)}),extendTempLoginTime:(Bj=Wj(zj().m(function e(t){var r,n;return zj().w(function(e){for(;;)switch(e.n){case 0:return r=Vj(Vj({action:"versatile_extend_temp_login_time"},t),{},{extend_by:Dj(Fj(t.extend_by))}),e.n=1,gi(Va.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,ca.__)("Failed to extend temporary login time","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return Bj.apply(this,arguments)})},e_=function(){return Qa({queryKey:["available-roles"],queryFn:Xj.getAvailableRoles,refetchOnWindowFocus:!1})};const t_=_u("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),r_=_u("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),n_=_u("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),o_=_u("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),a_=_u("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),i_=_u("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function s_(e){return s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s_(e)}function l_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l_(Object(r),!0).forEach(function(t){u_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f_(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(f_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,f_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,f_(d,"constructor",c),f_(c,"constructor",l),l.displayName="GeneratorFunction",f_(c,o,"GeneratorFunction"),f_(d),f_(d,o,"Generator"),f_(d,n,function(){return this}),f_(d,"toString",function(){return"[object Generator]"}),(d_=function(){return{w:a,m:f}})()}function f_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}f_=function(e,t,r,n){function a(t,r){f_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},f_(e,t,r,n)}function p_(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function v_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){p_(a,n,o,i,s,"next",e)}function s(e){p_(a,n,o,i,s,"throw",e)}i(void 0)})}}function h_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y_=[{key:"name",label:"Name"},{key:"email",label:"Email"},{key:"role",label:"Role"},{key:"status",label:"Status"},{key:"expires_at",label:"Expires At"},{key:"login_count",label:"Login Count"},{key:"last_login",label:"Last Login"},{key:"actions",label:"Actions"}];const g_=function(){var e,t,r=h_((0,i.useState)({page:1,per_page:10,order:"desc",orderby:"created_at",role:"",status:"all"}),2),n=r[0],o=r[1],a=h_((0,i.useState)(""),2),s=a[0],l=a[1],c=function(e,t){var r=Rj((0,i.useState)(e),2),n=r[0],o=r[1];return(0,i.useEffect)(function(){var r=setTimeout(function(){o(e)},t);return function(){clearTimeout(r)}},[e,t]),n}(s,500),u=h_((0,i.useState)(null),2),d=u[0],f=u[1],p=h_((0,i.useState)(null),2),v=p[0],h=p[1],m=h_((0,i.useState)({}),2),y=m[0],g=m[1],b=h_((0,i.useState)(null),2),x=b[0],w=b[1],j=h_((0,i.useState)(null),2),_=j[0],k=j[1],O=h_((0,i.useState)("1_hour"),2),S=O[0],N=O[1],E=Qa({queryKey:["get-temp-logins",t=n],queryFn:function(){return Xj.getTempLoginList(t)},refetchOnWindowFocus:!1}),P=E.data,C=E.isLoading,R=function(){var e=v_(d_().m(function e(t){return d_().w(function(e){for(;;)switch(e.n){case 0:return f(t.id),e.n=1,ci(t.login_url);case 1:setTimeout(function(){f(null)},2e3);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e){return e.is_active?Aj(e.expires_at)?(0,Sn.jsx)(rs,{variant:"destructive",children:(0,ca.__)("Expired","versatile-toolkit")}):(0,Sn.jsx)(rs,{variant:"default",children:(0,ca.__)("Active","versatile-toolkit")}):(0,Sn.jsx)(rs,{variant:"outline",children:(0,ca.__)("Inactive","versatile-toolkit")})},A=function(){var e=En();return Ya({mutationFn:function(e){return Xj.toggleTempLoginStatus(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login status updated successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while updating temporary login status","versatile-toolkit"))}})}(),D=A.mutateAsync,F=function(){var e=v_(d_().m(function e(t,r){return d_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,D({id:t,is_active:!r});case 1:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),I=function(){var e=En();return Ya({mutationFn:function(e){return Xj.deleteTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login deleted successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while deleting temporary login","versatile-toolkit"))}})}(),M=I.mutateAsync,L=function(){var e=v_(d_().m(function e(){return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(x){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,M({id:x.id});case 2:w(null),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),V=function(){w(null)},$=function(){var e=En();return Ya({mutationFn:function(e){return Xj.updateTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login updated successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while updating temporary login","versatile-toolkit"))}})}(),z=$.mutateAsync,U=$.isPending,q=function(){var e=v_(d_().m(function e(){var t,r;return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(v){e.n=1;break}return e.a(2);case 1:if(null!==(t=y.display_name)&&void 0!==t&&t.trim()){e.n=2;break}return Cr.error((0,ca.__)("Display name is required","versatile-toolkit")),e.a(2);case 2:if(null!==(r=y.email)&&void 0!==r&&r.trim()){e.n=3;break}return Cr.error((0,ca.__)("Email is required","versatile-toolkit")),e.a(2);case 3:return e.p=3,e.n=4,z(c_({id:v.id},y));case 4:h(null),g({}),e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),W=function(){h(null),g({})},B=function(){var e=En();return Ya({mutationFn:function(e){return Xj.extendTempLoginTime(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login time extended successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while extending temporary login time","versatile-toolkit"))}})}(),H=B.mutateAsync,Z=B.isPending,K=function(){var e=v_(d_().m(function e(){return d_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(_){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,H({id:_.id,extend_by:S});case 2:k(null),N("1_hour"),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),G=function(){k(null),N("1_hour")},Q=e_().data;(0,i.useEffect)(function(){o(function(e){return c_(c_({},e),{},{search:c,page:1})})},[c]);var J=function(e,t){o(function(r){return c_(c_({},r),{},u_({},e,t))})},Y=function(e){o(function(t){return c_(c_({},t),{},{page:e})})};return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)(Ra,{children:[(0,Sn.jsx)(Ta,{children:(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-row vt-items-center vt-gap-4 vt-justify-end",children:[(0,Sn.jsxs)("div",{className:"vt-w-[300px] vt-relative",children:[(0,Sn.jsx)(ku,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Sn.jsx)(jv,{placeholder:(0,ca.__)("Search by name or email...","versatile-toolkit"),value:s,onChange:function(e){return t=e.target.value,void l(t);var t},className:"vt-pl-10 vt-w-full"})]}),(0,Sn.jsxs)(Sj,{value:n.role||"all_roles",onValueChange:function(e){return J("role","all_roles"===e?"":e)},children:[(0,Sn.jsx)(Ej,{className:"vt-w-48",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("All Roles","versatile-toolkit")})}),(0,Sn.jsxs)(Pj,{children:[(0,Sn.jsx)(Cj,{value:"all_roles",children:(0,ca.__)("All Roles","versatile-toolkit")}),Object.entries(null!=Q?Q:{}).map(function(e){var t=h_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})]})]}),(0,Sn.jsxs)(Sj,{value:n.status,onValueChange:function(e){return J("status",e)},children:[(0,Sn.jsx)(Ej,{className:"vt-w-48",children:(0,Sn.jsx)(Nj,{})}),(0,Sn.jsxs)(Pj,{children:[(0,Sn.jsx)(Cj,{value:"all",children:(0,ca.__)("All Status","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"active",children:(0,ca.__)("Active","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"inactive",children:(0,ca.__)("Inactive","versatile-toolkit")}),(0,Sn.jsx)(Cj,{value:"expired",children:(0,ca.__)("Expired","versatile-toolkit")})]})]})]})}),(0,Sn.jsx)(Da,{children:(0,Sn.jsxs)(Dx,{children:[(0,Sn.jsx)(Fx,{children:(0,Sn.jsx)(Mx,{children:y_.map(function(e){return(0,Sn.jsx)(Lx,{children:e.label},e.key)})})}),(0,Sn.jsx)(Ix,{children:C?(0,Sn.jsx)(ba,{columns:y_.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:5}):P&&(null==P||null===(e=P.temp_logins)||void 0===e?void 0:e.length)>0?P.temp_logins.map(function(e){return(0,Sn.jsxs)(Mx,{children:[(0,Sn.jsx)(Vx,{children:e.display_name}),(0,Sn.jsx)(Vx,{children:e.email}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsx)(rs,{children:e.role})}),(0,Sn.jsx)(Vx,{children:T(e)}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsx)("span",{className:"".concat(Aj(e.expires_at)?"text-red-500 font-semibold":""),children:Ij(e.expires_at)})}),(0,Sn.jsx)(Vx,{children:e.login_count}),(0,Sn.jsx)(Vx,{children:e.last_login?(t=e.last_login,r=new Date,n=new Date(t),o=r.getTime()-n.getTime(),a=Math.floor(o/864e5),i=Math.floor(o%864e5/36e5),s=Math.floor(o%36e5/6e4),a>0?"".concat(a,"d ").concat(i,"h ").concat(s,"m ago"):i>0?"".concat(i,"h ").concat(s,"m ago"):"".concat(s,"m ago")):"-"}),(0,Sn.jsx)(Vx,{children:(0,Sn.jsxs)(ev,{children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{size:"sm",variant:"ghost",className:"vt-h-8 vt-w-8 vt-p-0",children:[(0,Sn.jsx)(t_,{className:"vt-h-4 vt-w-4"}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:(0,ca.__)("Open menu","versatile-toolkit")})]})}),(0,Sn.jsxs)(rv,{className:"vt-w-max vt-p-1 vt-flex vt-flex-col vt-align-center vt-justify-start",align:"end",children:[(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return R(e)},children:[d===e.id?(0,Sn.jsx)(uv,{className:"vt-mr-2 vt-h-4 vt-w-4 vt-text-green-600"}):(0,Sn.jsx)(r_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Copy Login URL","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){h(e),g({display_name:e.display_name,email:e.email,role:e.role,redirect_url:e.redirect_url,expires_at:e.expires_at})}(e)},children:[(0,Sn.jsx)(n_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Edit","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){k(e),N("1_hour")}(e)},children:[(0,Sn.jsx)(o_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Extend Time","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return F(e.id,e.is_active)},children:[e.is_active?(0,Sn.jsx)(a_,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,Sn.jsx)(Dg,{className:"vt-mr-2 vt-h-4 vt-w-4"}),e.is_active?(0,ca.__)("Deactivate","versatile-toolkit"):(0,ca.__)("Activate","versatile-toolkit")]}),(0,Sn.jsxs)(Qi,{variant:"ghost",size:"sm",className:"!vt-justify-start vt-text-red-600 hover:vt-text-red-700 hover:vt-bg-red-50",onClick:function(){return function(e){w(e)}(e)},children:[(0,Sn.jsx)(i_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,ca.__)("Delete","versatile-toolkit")]})]})]})})]},e.id);var t,r,n,o,a,i,s}):(0,Sn.jsx)($x,{title:"No temporary logins found",description:"Try adjusting your search or filters"})})]})}),P&&P.total_pages>1&&(0,Sn.jsx)(Da,{className:"vt-pt-0",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-center vt-space-x-2",children:[(0,Sn.jsx)(Qi,{variant:"outline",disabled:1===P.page,onClick:function(){return Y(P.page-1)},children:(0,ca.__)("Previous","versatile-toolkit")}),(0,Sn.jsxs)("span",{className:"vt-flex vt-items-center vt-px-4",children:[(0,ca.__)("Page","versatile-toolkit")," ",P.page," ",(0,ca.__)("of","versatile-toolkit")," ",P.total_pages]}),(0,Sn.jsx)(Qi,{variant:"outline",disabled:P.page===P.total_pages,onClick:function(){return Y(P.page+1)},children:(0,ca.__)("Next","versatile-toolkit")})]})})]}),(0,Sn.jsx)(Lu,{open:!!v,onOpenChange:function(e){return!e&&W()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsx)(Hu,{children:(0,ca.__)("Edit Temporary Login","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Note: Expiration date cannot be modified after creation.","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-display-name",children:(0,ca.__)("Display Name","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-display-name",value:y.display_name||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{display_name:e.target.value})})},placeholder:(0,ca.__)("Enter display name","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-email",children:(0,ca.__)("Email","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-email",type:"email",value:y.email||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{email:e.target.value})})},placeholder:(0,ca.__)("Enter email address","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-role",children:(0,ca.__)("Role","versatile-toolkit")}),(0,Sn.jsxs)(Sj,{value:y.role||"",onValueChange:function(e){return g(function(t){return c_(c_({},t),{},{role:e})})},children:[(0,Sn.jsx)(Ej,{children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select role","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{children:Object.entries(null!=Q?Q:{}).map(function(e){var t=h_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})})]})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,Sn.jsx)(ib,{htmlFor:"edit-redirect-url",children:(0,ca.__)("Redirect URL","versatile-toolkit")}),(0,Sn.jsx)(jv,{id:"edit-redirect-url",type:"url",value:y.redirect_url||"",onChange:function(e){return g(function(t){return c_(c_({},t),{},{redirect_url:e.target.value})})},placeholder:(0,ca.__)("Enter redirect URL","versatile-toolkit")})]})]}),(0,Sn.jsxs)(Bu,{children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:W,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:q,disabled:U,children:U?(0,ca.__)("Updating...","versatile-toolkit"):(0,ca.__)("Update","versatile-toolkit")})]})]})}),(0,Sn.jsx)(Lu,{open:!!x,onOpenChange:function(e){return!e&&V()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsx)(Wu,{children:(0,Sn.jsx)(Hu,{className:"vt-text-red-600",children:(0,ca.__)("Delete Temporary Login","versatile-toolkit")})}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Are you sure you want to delete this temporary login? This action cannot be undone.","versatile-toolkit")}),x&&(0,Sn.jsxs)("div",{className:"vt-bg-gray-50 vt-p-3 vt-rounded-md",children:[(0,Sn.jsx)("p",{className:"vt-font-medium",children:x.display_name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:x.email}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:x.role})]})]}),(0,Sn.jsxs)(Bu,{children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:V,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{variant:"destructive",onClick:L,children:(0,ca.__)("Delete","versatile-toolkit")})]})]})}),(0,Sn.jsx)(Lu,{open:!!_,onOpenChange:function(e){return!e&&G()},children:(0,Sn.jsxs)(qu,{className:"vt-max-w-md",children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsx)(Hu,{children:(0,ca.__)("Extend Expiration Time","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,ca.__)("Select how much time to add to the current expiration date.","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-space-y-4",children:[_&&(0,Sn.jsxs)("div",{className:"vt-bg-gray-100 vt-p-3 vt-rounded-md",children:[(0,Sn.jsx)("p",{className:"vt-font-medium",children:_.display_name}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:_.email}),(0,Sn.jsxs)("p",{className:"vt-text-sm vt-text-gray-600",children:[(0,ca.__)("Current expiration:","versatile-toolkit")," ",new Date(_.expires_at).toLocaleString()]})]}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)(ib,{htmlFor:"extend-time-select",className:"vt-block vt-mb-4",children:(0,ca.__)("Extend by","versatile-toolkit")}),(0,Sn.jsxs)(Sj,{value:S,onValueChange:N,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select expires at","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll",children:Yj.map(function(e){return(0,Sn.jsx)(Cj,{value:e.value,children:e.label},e.value)})})]})]})]}),(0,Sn.jsxs)(Bu,{className:"vt-mt-4",children:[(0,Sn.jsx)(Qi,{variant:"outline",onClick:G,children:(0,ca.__)("Cancel","versatile-toolkit")}),(0,Sn.jsx)(Qi,{onClick:K,disabled:Z,children:Z?(0,ca.__)("Extending...","versatile-toolkit"):(0,ca.__)("Extend Time","versatile-toolkit")})]})]})})]})},b_=_u("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function x_(e){return x_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x_(e)}function w_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w_(Object(r),!0).forEach(function(t){__(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function __(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=x_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=x_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return O_(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(O_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,O_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,O_(d,"constructor",c),O_(c,"constructor",l),l.displayName="GeneratorFunction",O_(c,o,"GeneratorFunction"),O_(d),O_(d,o,"Generator"),O_(d,n,function(){return this}),O_(d,"toString",function(){return"[object Generator]"}),(k_=function(){return{w:a,m:f}})()}function O_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}O_=function(e,t,r,n){function a(t,r){O_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},O_(e,t,r,n)}function S_(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function N_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(0,ca.__)("Administrator","versatile-toolkit"),(0,ca.__)("Editor","versatile-toolkit"),(0,ca.__)("Author","versatile-toolkit"),(0,ca.__)("Contributor","versatile-toolkit"),(0,ca.__)("Subscriber","versatile-toolkit");const P_=function(){var e=N_((0,i.useState)(!1),2),t=e[0],r=e[1],n=eg({resolver:ig(cm),defaultValues:{display_name:"",email:"",role:"",expires_at:"3_hours",redirect_url:Va.admin_url}}),o=n.handleSubmit,a=(n.formState.errors,e_()),s=a.data,l=a.isLoading,c=function(){var e=En();return Ya({mutationFn:Xj.createTempLogin,onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Cr.success(t.message||(0,ca.__)("Temporary login created successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Error: while creating temporary login","versatile-toolkit"))}})}(),u=c.mutateAsync,d=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){S_(a,n,o,i,s,"next",e)}function s(e){S_(a,n,o,i,s,"throw",e)}i(void 0)})}}(k_().m(function e(t){return k_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u(t,{onSuccess:function(){r(!1)}});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)(Lu,{open:t,onOpenChange:r,children:[(0,Sn.jsx)(Vu,{asChild:!0,children:(0,Sn.jsxs)(Qi,{children:[(0,Sn.jsx)(b_,{className:"vt-w-4 vt-h-4 vt-mr-2"}),(0,ca.__)("Create Temp Login","versatile-toolkit")]})}),(0,Sn.jsxs)(qu,{className:"vt-max-w-lg",children:[(0,Sn.jsx)(Wu,{children:(0,Sn.jsx)(Hu,{children:(0,ca.__)("Create Temporary Login","versatile-toolkit")})}),(0,Sn.jsx)(gb,j_(j_({},n),{},{children:(0,Sn.jsxs)("form",{onSubmit:o(d,function(e){}),className:"vt-flex vt-flex-col vt-gap-5",children:[(0,Sn.jsx)(xb,{control:n.control,name:"display_name",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Display Name","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Display Name","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"email",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Email","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Email","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"role",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Role","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsxs)(Sj,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select role","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll-auto",children:l?(0,Sn.jsx)(ha,{size:"md",className:"vt-ml-2",text:(0,ca.__)("Loading roles","versatile-toolkit")}):Object.entries(null!=s?s:{}).map(function(e){var t=N_(e,2),r=t[0],n=t[1];return(0,Sn.jsx)(Cj,{value:r,children:String(n)},r)})})]})}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"expires_at",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Expires At","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsxs)(Sj,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,Sn.jsx)(Ej,{className:"vt-w-full",children:(0,Sn.jsx)(Nj,{placeholder:(0,ca.__)("Select expires at","versatile-toolkit")})}),(0,Sn.jsx)(Pj,{className:"vt-w-full vt-max-h-60 vt-scroll",children:Yj.map(function(e){return(0,Sn.jsx)(Cj,{value:e.value,children:e.label},e.value)})})]})}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)(xb,{control:n.control,name:"redirect_url",render:function(e){var t=e.field;return(0,Sn.jsxs)(_b,{children:[(0,Sn.jsx)(kb,{className:"vt-text-foreground",children:(0,ca.__)("Redirect URL","versatile-toolkit")}),(0,Sn.jsx)(Ob,{children:(0,Sn.jsx)(jv,j_({placeholder:(0,ca.__)("Redirect URL","versatile-toolkit")},t))}),(0,Sn.jsx)(Nb,{})]})}}),(0,Sn.jsx)("div",{className:"vt-flex vt-justify-end",children:(0,Sn.jsx)(Qi,{type:"submit",children:(0,ca.__)("Create Temporary Login","versatile-toolkit")})})]})}))]})]})})};const C_=function(){return(0,Sn.jsxs)("div",{className:"vt-py-6 vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("h2",{className:"vt-text-2xl vt-font-bold",children:(0,ca.__)("Temporary Logins","versatile-toolkit")}),(0,Sn.jsx)("p",{className:"vt-text-gray-600 vt-mt-2",children:(0,ca.__)("Create and manage temporary login access for users","versatile-toolkit")})]}),(0,Sn.jsx)("div",{children:(0,Sn.jsx)(P_,{})})]}),(0,Sn.jsx)(g_,{})]})};function R_(e){return R_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R_(e)}var T_=["className"],A_=["side","className","children"],D_=["className"],F_=["className"],I_=["className"];function M_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function L_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M_(Object(r),!0).forEach(function(t){V_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=R_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=R_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var z_=Dc,U_=Fc,q_=Ic,W_=i.forwardRef(function(e,t){var r=e.className,n=$_(e,T_);return(0,Sn.jsx)(Mc,L_(L_({className:la("vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n),{},{ref:t}))});W_.displayName=Mc.displayName;var B_=Wi("vt-fixed vt-z-50 vt-gap-4 vt-bg-background vt-p-6 vt-shadow-lg vt-transition vt-ease-in-out data-[state=closed]:vt-duration-300 data-[state=open]:vt-duration-500 data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out",{variants:{side:{top:"vt-inset-x-0 vt-top-0 vt-border-b data-[state=closed]:vt-slide-out-to-top data-[state=open]:vt-slide-in-from-top",bottom:"vt-inset-x-0 vt-bottom-0 vt-border-t data-[state=closed]:vt-slide-out-to-bottom data-[state=open]:vt-slide-in-from-bottom",left:"vt-inset-y-0 vt-left-0 vt-h-full vt-w-3/4 vt-border-r data-[state=closed]:vt-slide-out-to-left data-[state=open]:vt-slide-in-from-left sm:max-w-sm",right:"vt-inset-y-0 vt-right-0 vt-h-full vt-w-3/4 vt-border-l data-[state=closed]:vt-slide-out-to-right data-[state=open]:vt-slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),H_=i.forwardRef(function(e,t){var r=e.side,n=void 0===r?"right":r,o=e.className,a=e.children,i=$_(e,A_);return(0,Sn.jsxs)(q_,{children:[(0,Sn.jsx)(W_,{}),(0,Sn.jsxs)(Lc,L_(L_({ref:t,className:la(B_({side:n}),"vt-z-[99999] sm:vt-max-w-[540px]",o)},i),{},{children:[(0,Sn.jsxs)(zc,{className:Mu,children:[(0,Sn.jsx)(Ou,{size:16}),(0,Sn.jsx)("span",{className:"vt-sr-only",children:"Close"})]}),a]}))]})});H_.displayName=Lc.displayName;var Z_=function(e){var t=e.className,r=$_(e,D_);return(0,Sn.jsx)("div",L_({className:la("vt-flex vt-flex-col vt-space-y-2 vt-text-center sm:vt-text-left",t)},r))};Z_.displayName="SheetHeader";var K_=i.forwardRef(function(e,t){var r=e.className,n=$_(e,F_);return(0,Sn.jsx)(Vc,L_({ref:t,className:la("vt-text-lg vt-font-semibold vt-text-foreground",r)},n))});K_.displayName=Vc.displayName,i.forwardRef(function(e,t){var r=e.className,n=$_(e,I_);return(0,Sn.jsx)($c,L_({ref:t,className:la("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName=$c.displayName;const G_=_u("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]);function Q_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Y_=function(){var e,t,r=Q_((0,i.useState)(!1),2),n=r[0],o=r[1],a=En(),s=he(),l=Qa({queryKey:["getServiceList"],queryFn:(e=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_service_list",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3}),c=l.data,u=l.isLoading,d=null==c?void 0:c.data,f=function(){if(!d||"/"===s.pathname)return null;var e=s.pathname.split("/").filter(Boolean)[0],t=Object.entries(d).find(function(t){var r=Q_(t,2);r[0];return r[1].path===e});return t?t[1]:null}(),p=Ya({mutationFn:(t=Oi(ji().m(function e(t){var r;return ji().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_service_status",e.n=1,gi(Va.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){var t;Cr.success(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Service status updated!","versatile-toolkit"))},onError:function(e){var t;Cr.error(null!==(t=e.message)&&void 0!==t?t:(0,ca.__)("Failed to update service status","versatile-toolkit"))}});Fg({isOpen:n,onClose:function(){o(!n)}}).handleBackdropClick;return(0,Sn.jsx)(Sn.Fragment,{children:(0,Sn.jsxs)("header",{className:"vt-bg-white vt-border-b vt-border-gray-200 vt-py-4 vt-flex vt-items-center vt-justify-between vt-relative",children:[(0,Sn.jsx)(kt,{to:"/",className:"vt-flex vt-items-center vt-text-blue-600 vt-text-lg vt-font-semibold",children:(0,ca.__)("Versatile Toolkit","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-3",children:[f&&(0,Sn.jsx)(Sn.Fragment,{children:Object.keys((null==f?void 0:f.menus)||{}).map(function(e){var t,r,n="/".concat(null==f?void 0:f.path,"/").concat(null==f||null===(t=f.menus)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.slug);return n.endsWith("/")&&(n=n.slice(0,-1)),(0,Sn.jsx)(kt,{to:n,onClick:function(){},className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-transition-colors vt-duration-200 ".concat(s.pathname===n?"vt-bg-blue-600 vt-text-white vt-border vt-border-blue-700 hover:vt-text-white focus:!vt-text-white":"vt-bg-blue-50 vt-border vt-border-blue-200"),children:null==f||null===(r=f.menus)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.label},e)})}),!u&&(null==d?void 0:d.troubleshoot.enable)&&!f&&(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(kt,{to:"/troubleshoot",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,ca.__)("Deactivate Plugins","versatile-toolkit")}),(0,Sn.jsx)(kt,{to:"/troubleshoot/debug-log",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,ca.__)("Debug Log","versatile-toolkit")})]}),(0,Sn.jsxs)(z_,{children:[(0,Sn.jsx)(U_,{asChild:!0,children:(0,Sn.jsx)("button",{className:"vt-p-1 vt-rounded-md vt-bg-blue-100 hover:vt-bg-blue-200 vt-transition-colors vt-duration-200","aria-label":(0,ca.__)("Toggle menu","versatile-toolkit"),children:(0,Sn.jsx)(G_,{className:"vt-w-5 vt-h-5 vt-text-gray-600"})})}),(0,Sn.jsxs)(H_,{children:[(0,Sn.jsx)(Z_,{children:(0,Sn.jsx)(K_,{children:(0,ca.__)("Services","versatile-toolkit")})}),(0,Sn.jsx)("div",{className:"vt-space-y-3 vt-mt-6",children:Object.entries(d||{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,Sn.jsxs)("div",{onClick:function(){return function(e,t){p.mutate({service_key:e,enable:!t.enable},{onSuccess:function(){"quickact"!==e?(a.invalidateQueries({queryKey:["getServiceList"]}),a.invalidateQueries({queryKey:["getEnableServiceList"]})):window.location.reload()}})}(r,n)},className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-rounded-md vt-border vt-border-gray-200 vt-bg-gray-50 hover:vt-bg-blue-100 hover:vt-border-blue-300 hover:vt-shadow-md vt-transition-all vt-duration-300 vt-cursor-pointer",children:[(0,Sn.jsx)("span",{className:"vt-text-blue-500 vt-font-medium hover:vt-text-blue-800 vt-transition-colors vt-duration-300",children:n.label}),(0,Sn.jsxs)("div",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:n.enable,onChange:function(){},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-relative vt-w-11 vt-h-6 vt-bg-[#c7c6c6] peer-focus:vt-outline-none peer-focus:vt-ring-4 peer-focus:vt-ring-blue-300 vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-gray-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]},n.label)})})]})]})]})]})})};var X_=function(e){var t=e.children,r=Ni(),n=r.data,o=(r.isLoading,null==n?void 0:n.data),a=he().pathname.split("/").filter(Boolean)[0];if(!o)return(0,Sn.jsx)(Sn.Fragment,{children:t});var i=Object.values(o).find(function(e){return e.path===a});return i&&i.enable?(0,Sn.jsx)(Sn.Fragment,{children:t}):(0,Sn.jsx)(Le,{to:"/",replace:!0})};const ek=_u("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),tk=_u("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),rk=_u("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),nk=_u("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function ok(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ak(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ik=function(e,t,r,n,o){return{pathname:"/troubleshoot/debug-log",search:"?".concat(sk(e,t,r,n,o))}},sk=function(e,t,r,n,o){var a=new URLSearchParams;return a.append("paged",e.toString()),a.append("per_page",null==t?void 0:t.toString()),r&&a.append("search",r),n&&a.append("sort_key",n),o&&a.append("sort_dir",o),a.toString()};function lk(e){var t=e.order;return(0,Sn.jsxs)("span",{"aria-hidden":!0,className:"vt-inline-flex vt-flex-col vt-leading-none vt-ml-1",children:[""===t&&(0,Sn.jsx)(ek,{className:"vt-h-3 vt-w-3"}),"asc"===t&&(0,Sn.jsx)(ek,{className:"vt-h-3 vt-w-3"}),"desc"===t&&(0,Sn.jsx)(tk,{className:"vt-h-3 vt-w-3"})]})}var ck=function(e){return{page:parseInt(e.get("paged")||"1"),perPage:parseInt(e.get("per_page")||"10"),search:e.get("search")||"",sortKey:e.get("sort_key")||"",order:e.get("order")||""}};function uk(e){var t=e.columns,r=e.fetchData,n=e.searchParams,o=ge(),a=n,s=ck(a),l=ok((0,i.useState)(s.search),2),c=l[0],u=l[1],d=ok((0,i.useState)(s.page),2),f=d[0],p=d[1],v=ok((0,i.useState)(s.perPage||10),2),h=v[0],m=v[1],y=ok((0,i.useState)({key:s.sortKey,order:s.order}),2),g=y[0],b=y[1],x=ok((0,i.useState)(0),2),w=x[0],j=x[1];(0,i.useEffect)(function(){var e=ck(a);p(e.page),m(e.perPage||10),u(e.search),b({key:e.sortKey,order:e.order})},[n]);var _=ok((0,i.useState)([]),2),k=_[0],O=_[1],S=ok((0,i.useState)(0),2),N=S[0],E=S[1],P=ok((0,i.useState)(!1),2),C=P[0],R=P[1];return(0,i.useEffect)(function(){R(!0),r({page:f,perPage:h,search:c,sortKey:g.key,order:g.order}).then(function(e){O(e.data),E(e.total||0),j(e.totalPages||0)}).finally(function(){return R(!1)})},[f,h,c,g]),(0,Sn.jsxs)("div",{className:"vt-w-full",children:[(0,Sn.jsxs)("div",{className:"vt-mb-3 vt-flex vt-flex-col vt-gap-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,Sn.jsx)("div",{className:"vt-relative vt-max-w-md"}),(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-gap-2"})]}),(0,Sn.jsxs)("div",{className:"vt-overflow-hidden vt-rounded-2xl vt-border vt-border-slate-200 vt-bg-white vt-shadow-sm",children:[(0,Sn.jsx)("div",{className:"vt-overflow-x-auto",children:(0,Sn.jsxs)("table",{className:"vt-min-w-full vt-text-left vt-text-sm",children:[(0,Sn.jsx)("thead",{className:"vt-sticky vt-top-0 vt-bg-slate-50",children:(0,Sn.jsx)("tr",{className:"vt-text-slate-600",children:t.map(function(e){var t=g.key===e.key,r=t?"asc"===g.order?"ascending":"descending":"none",n="vt-px-4 vt-py-3 vt-font-semibold";return e.sortable?(0,Sn.jsx)("th",{scope:"col","aria-sort":r,className:n,children:(0,Sn.jsxs)("button",{className:"group vt-inline-flex vt-items-center vt-rounded-lg vt-px-1 vt-py-0.5 hover:vt-bg-slate-200 focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-slate-300",onClick:function(){return t=String(e.key),void b(function(e){return e.key!==t?{key:t,order:"asc"}:"asc"===e.order?{key:t,order:"desc"}:{key:t,order:"asc"}});var t},"aria-label":"Sort by ".concat(e.header),children:[(0,Sn.jsx)("span",{children:e.header}),(0,Sn.jsx)(lk,{order:t?g.order:""})]})},String(e.key)):(0,Sn.jsx)("th",{scope:"col",className:n,children:e.header},String(e.key))})})}),(0,Sn.jsx)("tbody",{children:C?(0,Sn.jsx)(ba,{columns:t.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:h}):0===k.length?(0,Sn.jsx)($x,{}):k.map(function(e,r){return(0,Sn.jsx)("tr",{className:"vt-border-t vt-border-slate-100 hover:vt-bg-slate-50/60",children:t.map(function(t){var n;return(0,Sn.jsx)("td",{className:"vt-px-4 vt-py-3 vt-text-slate-700",children:t.render?t.render(e,t.key):e[t.key]===e.id?(f-1)*h+r+1:String(null!==(n=e[t.key])&&void 0!==n?n:"")},String(t.key))})},e.id)})})]})}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3 vt-border-t vt-border-slate-200 vt-p-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsxs)("div",{className:"vt-text-xs vt-text-slate-600",children:["Showing"," ",(0,Sn.jsx)("span",{className:"vt-font-semibold",children:k.length?(f-1)*h+1:0}),"–",(0,Sn.jsx)("span",{className:"vt-font-semibold",children:(f-1)*h+k.length})," of",(0,Sn.jsxs)("span",{className:"vt-font-semibold",children:[" ",N]})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,Sn.jsx)("label",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("Per page","versatile-toolkit")}),(0,Sn.jsx)("select",{value:h,onChange:function(e){m(Number(e.target.value)),o(ik(f,Number(e.target.value),c,g.key,g.order))},className:"vt-rounded-xl vt-border vt-!vt-border-slate-200 vt-bg-white vt-pl-2 vt-pr-7 vt-py-1 vt-text-sm vt-shadow-sm",children:[5,10,20,50,100].map(function(e){return(0,Sn.jsx)("option",{value:e,children:e},e)})})]})]}),k.length>0&&(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-gap-1",children:[(0,Sn.jsxs)(Qi,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.max(1,f-1);p(e),o(ik(e,h,c,g.key,g.order))},disabled:1===f,children:[(0,Sn.jsx)(rk,{className:"vt-h-4 vt-w-4 vt-pr-1"}),"Prev"]}),(0,Sn.jsx)("div",{className:"vt-flex vt-items-center vt-gap-1 vt-mx-2",children:function(){var e=[],t=Math.max(1,f-Math.floor(1.5)),r=Math.min(w,t+3-1);r-t+1<3&&(t=Math.max(1,r-3+1)),t>1&&(e.push((0,Sn.jsx)(Qi,{type:"button",size:"sm",variant:1===f?"default":"outline","aria-label":(0,ca.__)("Go to first page","versatile-toolkit"),onClick:function(){p(1),o(ik(1,h,c,g.key,g.order))},children:"1"},1)),t>2&&e.push((0,Sn.jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis1")));for(var n=function(t){e.push((0,Sn.jsx)(Qi,{size:"sm",variant:t===f?"default":"outline",type:"button","aria-label":(0,ca.__)("Go to page","versatile-toolkit"),onClick:function(){p(t),o(ik(t,h,c,g.key,g.order))},children:t},t))},a=t;a<=r;a++)n(a);return r<w&&(r<w-1&&e.push((0,Sn.jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis2")),e.push((0,Sn.jsx)(Qi,{size:"sm",variant:w===f?"default":"outline",type:"button","aria-label":(0,ca.__)("Go to last page","versatile-toolkit"),onClick:function(){p(w),o(ik(w,h,c,g.key,g.order))},children:w},w))),e}()}),(0,Sn.jsxs)(Qi,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.min(w,f+1);p(e),o(ik(e,h,c,g.key,g.order))},disabled:f===w,children:[(0,ca.__)("Next","versatile-toolkit"),(0,Sn.jsx)(nk,{className:"vt-h-4 vt-w-4 vt-pl-1"})]})]})]})]})]})}const dk=function(e){var t=e.debugStatus,r=e.logFileInfo,n=e.isAutoRefresh,o=e.isLoading,a=e.statusLoading,i=e.onToggleDebugLog,s=e.onToggleAutoRefresh,l=e.onStopAutoRefresh;return(0,Sn.jsxs)("div",{className:"vt-space-y-6",children:[(0,Sn.jsxs)("div",{className:"vt-space-y-3 vt-relative",children:[a?(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300 vt-animate-pulse"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2 vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-300 vt-rounded vt-w-32 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-6 vt-bg-slate-300 vt-rounded-full vt-w-16 vt-animate-pulse"})]}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-slate-300 vt-rounded vt-w-48 vt-animate-pulse"})]})]}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 vt-rounded-full vt-animate-pulse"})]}):(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(t?"vt-bg-green-500":"vt-bg-red-500")}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,ca.__)("Debug Logging Status","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-px-3 vt-py-1 vt-rounded-full vt-text-xs vt-font-medium ".concat(t?"vt-bg-green-100 vt-text-green-800":"vt-bg-red-100 vt-text-red-800"),children:t?(0,ca.__)("Enabled","versatile-toolkit"):(0,ca.__)("Disabled","versatile-toolkit")})]}),(0,Sn.jsx)("p",{className:"vt-text-sm vt-text-slate-600",children:t?(0,ca.__)("Debug logging is currently enabled","versatile-toolkit"):(0,ca.__)("Debug logging is currently disabled","versatile-toolkit")})]})]}),(0,Sn.jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:t,onClick:function(e){return i(e.target.checked)},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]}),o?(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200 vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,Sn.jsx)("div",{className:"vt-w-4 vt-h-4 vt-bg-blue-300 vt-rounded vt-animate-pulse"}),(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-1",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-blue-300 vt-rounded vt-w-20 vt-animate-pulse"}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-blue-300 vt-rounded vt-w-12 vt-animate-pulse"})]})]}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-blue-300 vt-rounded-full vt-animate-pulse"})]}):(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4 vt-text-blue-600 ".concat(n?"vt-animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),(0,Sn.jsxs)("span",{className:"vt-text-sm vt-font-medium vt-text-blue-800",children:[(0,ca.__)("Auto Refresh","versatile-toolkit"),n&&(0,Sn.jsxs)("span",{className:"vt-ml-1 vt-text-xs",children:["(",(0,ca.__)("Active","versatile-toolkit"),")"]})]})]}),(0,Sn.jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,Sn.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){s(e.target.checked),e.target.checked||l()},className:"vt-sr-only vt-peer"}),(0,Sn.jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]})]}),(0,Sn.jsx)("div",{className:"vt-space-y-3",children:o?(0,Sn.jsxs)("div",{className:"vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("div",{className:"vt-h-9 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-mb-3"}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-20"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-12"})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-24"}),(0,Sn.jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-32"})]})]})]}):(0,Sn.jsxs)("div",{className:"vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-mb-3",children:(0,ca.__)("Log File Information","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-space-y-2",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("File Status:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium ".concat(r.exists?"vt-text-green-600":"vt-text-red-600"),children:r.exists?(0,ca.__)("Exists","versatile-toolkit"):(0,ca.__)("Not Found","versatile-toolkit")})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("File Size:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.size})]}),(0,Sn.jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,Sn.jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,ca.__)("Last Modified:","versatile-toolkit")}),(0,Sn.jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.lastModified})]})]})]})})]})};var fk=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"text-red-500";case"PHP Warning":return"text-yellow-500";case"PHP Notice":return"text-blue-500";default:return"text-gray-500"}},pk=function(e){var t=e.type,r=fk(t),n=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"Error";case"PHP Warning":return"Warning";case"PHP Notice":return"Info";case"debug":return"Debug";default:return e}}(t);return(0,Sn.jsx)("span",{className:r,children:n})},vk=function(e){var t=e.row,r=t.raw_line;return(0,Sn.jsx)("div",{className:"vt-flex vt-gap-1",children:(0,Sn.jsxs)(Lu,{children:[(0,Sn.jsx)(Vu,{asChild:!0,children:(0,Sn.jsx)(Qi,{size:"icon",variant:"ghost","aria-label":"View ".concat(t.type,"'s log"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",children:(0,Sn.jsx)(Dg,{className:"vt-h-4 vt-w-4"})})}),(0,Sn.jsxs)(qu,{children:[(0,Sn.jsxs)(Wu,{children:[(0,Sn.jsxs)(Hu,{children:["Warning Type: ",(0,Sn.jsx)("span",{className:fk(t.type),children:t.type})]}),(0,Sn.jsx)(Zu,{className:"vt-mt-2 vt-hidden",children:t.timestamp})]}),(0,Sn.jsx)("div",{className:"vt-max-h-[70vh] vt-overflow-auto vt-bg-[#e5e5e5] vt-p-3 vt-my-2",children:(0,Sn.jsx)("pre",{className:"vt-whitespace-pre-wrap vt-font-mono vt-text-base",children:r})}),(0,Sn.jsx)(Bu,{className:"sm:vt-justify-end",children:(0,Sn.jsx)(zu,{asChild:!0,children:(0,Sn.jsx)(Qi,{type:"button",variant:"secondary",children:(0,ca.__)("Close","versatile-toolkit")})})})]})]})})};function hk(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return mk(c,"_invoke",function(r,n,o){var a,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,s=0,l=e,f.n=r,i}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,a=u[t],p=f.p,v=a[2];r>3?(o=v===n)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=r<2&&p<a[1])?(s=0,f.v=n,f.n=a[1]):p<v&&(o=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,f.n=v,s=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==i)break}catch(t){a=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,a),!0),c}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(mk(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,mk(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,mk(d,"constructor",c),mk(c,"constructor",l),l.displayName="GeneratorFunction",mk(c,o,"GeneratorFunction"),mk(d),mk(d,o,"Generator"),mk(d,n,function(){return this}),mk(d,"toString",function(){return"[object Generator]"}),(hk=function(){return{w:a,m:f}})()}function mk(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}mk=function(e,t,r,n){function a(t,r){mk(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},mk(e,t,r,n)}function yk(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function gk(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){yk(a,n,o,i,s,"next",e)}function s(e){yk(a,n,o,i,s,"throw",e)}i(void 0)})}}var bk,xk,wk,jk,_k,kk,Ok={getStatus:(kk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_get_debug_log_status",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to get debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return kk.apply(this,arguments)}),toggleDebugLog:(_k=gk(hk().m(function e(t){var r,n,o;return hk().w(function(e){for(;;)switch(e.n){case 0:return r=new URLSearchParams({action:"versatile_toggle_debug_log",versatile_nonce:Va.nonce_value,enable:t.toString()}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r});case 1:return n=e.v,e.n=2,n.json();case 2:if(200===(o=e.v).status_code){e.n=3;break}throw new Error(o.message||"Failed to toggle debug log");case 3:return e.a(2,o.data)}},e)})),function(e){return _k.apply(this,arguments)}),clearLog:(jk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_clear_debug_log",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to clear debug log");case 3:return e.a(2)}},e)})),function(){return jk.apply(this,arguments)}),downloadLog:(wk=gk(hk().m(function e(){var t,r;return hk().w(function(e){for(;;)if(0===e.n)return t=new URLSearchParams({action:"versatile_download_debug_log",versatile_nonce:Va.nonce_value}),r="".concat(Va.ajax_url,"?").concat(t),window.open(r,"_blank"),e.a(2,Promise.resolve())},e)})),function(){return wk.apply(this,arguments)}),refreshStatus:(xk=gk(hk().m(function e(){var t,r,n;return hk().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_refresh_debug_log",versatile_nonce:Va.nonce_value}),e.n=1,fetch(Va.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to refresh debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return xk.apply(this,arguments)}),loadLogContent:(bk=gk(hk().m(function e(t){var r,n,o,a,i,s,l,c,u,d,f,p;return hk().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.page,n=t.perPage,o=t.search,a=t.sortKey,i=t.order,s=t.source,e.p=1,c=new URLSearchParams({action:"versatile_get_debug_log_content",versatile_nonce:Va.nonce_value,page:String(r),per_page:String(n),search:String(o||"").trim(),sortKey:String(a||"").trim(),order:String((null==i||null===(l=i.trim())||void 0===l?void 0:l.toLowerCase())||""),source:String(s||"all").trim()}),e.n=2,fetch("".concat(Va.ajax_url,"?").concat(c));case 2:return u=e.v,e.n=3,u.json();case 3:if(200!==(d=e.v).status_code){e.n=4;break}return f=d.data,e.a(2,{data:f.entries,total:null==f?void 0:f.total_entries,totalPages:null==f?void 0:f.total_pages});case 4:throw new Error(d.message||"Error fetching debug log content");case 5:e.n=7;break;case 6:throw e.p=6,p=e.v,new Error((null==p?void 0:p.message)||"Unknown error fetching debug log content");case 7:return e.a(2)}},e,null,[[1,6]])})),function(e){return bk.apply(this,arguments)})};function Sk(e){return Sk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sk(e)}function Nk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nk(Object(r),!0).forEach(function(t){Pk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Sk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Sk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ck(e){return function(e){if(Array.isArray(e))return Ak(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tk(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||Tk(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tk(e,t){if(e){if("string"==typeof e)return Ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ak(e,t):void 0}}function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Dk=function(){var e,t,r=Rk(Et(),1)[0],n=ge(),o=Rk((0,i.useState)(!1),2),a=o[0],s=o[1],l=Rk((0,i.useState)(0),2),c=l[0],u=l[1],d=Rk((0,i.useState)("all"),2),f=d[0],p=d[1],v=Rk((0,i.useState)(!1),2),h=v[0],m=v[1],y=Qa({queryKey:["debugLogStatus"],queryFn:Ok.getStatus,refetchInterval:3e4,staleTime:1e4}),g=y.data,b=y.isLoading,x=y.refetch,w=function(){var e=En();return Ya({mutationFn:Ok.toggleDebugLog,onSuccess:function(t,r){e.invalidateQueries({queryKey:["debugLogStatus"]});var n=r?"enabled":"disabled";Cr.success((0,ca.__)("Debug logging ".concat(n," successfully"),"versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Failed to toggle debug logging","versatile-toolkit"))}})}(),j=function(){var e=En();return Ya({mutationFn:Ok.clearLog,onSuccess:function(){e.invalidateQueries({queryKey:["debugLogStatus"]}),Cr.success((0,ca.__)("Debug log cleared successfully","versatile-toolkit"))},onError:function(e){Cr.error(e.message||(0,ca.__)("Failed to clear debug log","versatile-toolkit"))}})}(),_=sv().data,k=lv().data,O=(null==g?void 0:g.enabled)||!1,S=g?(t=(e=g).file_exists&&e.last_modified>0?new Date(1e3*e.last_modified).toLocaleString():"Never",{exists:e.file_exists,size:e.file_size_formatted,lastModified:t}):{size:"0 KB",lastModified:"Never",exists:!1},N=b||w.isPending||j.isPending;(0,i.useEffect)(function(){var e;return a&&(e=setInterval(function(){u(function(e){return e+1})},5e3)),function(){e&&clearInterval(e)}},[a]);var E=function(e){p(e),m(!1);var t=new URLSearchParams(r);t.set("paged","1"),n({pathname:"/troubleshoot/debug-log",search:"?".concat(t.toString())})},P=(0,i.useMemo)(function(){var e,t,r=new Map,n=new Map;return(null!==(e=null==_?void 0:_.data)&&void 0!==e?e:[]).forEach(function(e){var t,n;r.set("plugin:".concat((t=e.slug,(void 0===(n=Rk(t.split("/"),1)[0])?t:n).replace(/\.php$/i,"").toLowerCase())),e.label)}),(null!==(t=null==k?void 0:k.data)&&void 0!==t?t:[]).forEach(function(e){n.set("theme:".concat(e.slug.toLowerCase()),e.label)}),{generalOptions:[{value:"all",label:(0,ca.__)("All Sources","versatile-toolkit"),group:"general"},{value:"wordpress-core",label:(0,ca.__)("WordPress Core","versatile-toolkit"),group:"general"},{value:"unknown",label:(0,ca.__)("Unknown","versatile-toolkit"),group:"general"}],pluginOptions:Array.from(r.entries()).map(function(e){var t=Rk(e,2);return{value:t[0],label:t[1],group:"plugin"}}),themeOptions:Array.from(n.entries()).map(function(e){var t=Rk(e,2);return{value:t[0],label:t[1],group:"theme"}})}},[_,k]),C=P.generalOptions,R=P.pluginOptions,T=P.themeOptions,A=(0,i.useMemo)(function(){return[].concat(Ck(C),Ck(R),Ck(T)).find(function(e){return e.value===f})},[C,R,f,T]),D=(0,i.useCallback)(function(e){return Ok.loadLogContent(Ek(Ek({},e),{},{source:f}))},[f]),F=[{key:"id",header:"No"},{key:"type",header:"Type",render:function(e){return(0,Sn.jsx)(pk,{type:e.type})}},{key:"message",header:"Description",render:function(e){var t=e.raw_line.length>200?"".concat(e.raw_line.substring(0,200),"..."):e.raw_line;return(0,Sn.jsx)(Sn.Fragment,{children:t})}},{key:"log_from",header:"Log From",render:function(e){return(0,Sn.jsx)("div",{className:"vt-min-w-[11rem]",children:(0,Sn.jsx)(rs,{variant:"success",className:"vt-font-medium",children:e.log_from||(0,ca.__)("Unknown","versatile-toolkit")})})}},{key:"timestamp",header:"Timestamp",render:function(e){var t=e.timestamp;if(!t)return"Invalid Date";try{var r=t.replace(" UTC","");return new Date(r+" UTC").toLocaleString()}catch(e){return"Invalid Date"}}},{key:"actions",header:"Actions",render:function(e,t){return(0,Sn.jsx)(vk,{row:e},t)}}];return(0,Sn.jsxs)("div",{className:"vt-mx-auto vt-max-w-6xl vt-p-6",children:[b?(0,Sn.jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-animate-pulse",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300"}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("div",{className:"vt-h-5 vt-bg-slate-300 vt-rounded vt-w-32 vt-mb-2"}),(0,Sn.jsx)("div",{className:"vt-h-3 vt-bg-slate-200 vt-rounded vt-w-24"})]})]}),(0,Sn.jsx)("div",{className:"vt-h-9 vt-bg-slate-300 vt-rounded-lg vt-w-20"})]})}):(0,Sn.jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between",children:[(0,Sn.jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,Sn.jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(O?"vt-bg-green-500":"vt-bg-red-500")}),(0,Sn.jsxs)("div",{children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,ca.__)("Debug Logging","versatile-toolkit")}),(0,Sn.jsxs)("p",{className:"vt-text-sm vt-text-slate-600",children:[O?(0,ca.__)("Currently enabled","versatile-toolkit"):(0,ca.__)("Currently disabled","versatile-toolkit"),a&&(0,Sn.jsxs)("span",{className:"vt-ml-2 vt-text-blue-600",children:["• ",(0,ca.__)("Auto refresh active","versatile-toolkit")]})]})]})]}),(0,Sn.jsxs)(z_,{children:[(0,Sn.jsx)(U_,{asChild:!0,children:(0,Sn.jsxs)("button",{className:"vt-flex vt-items-center vt-space-x-2 vt-px-3 vt-py-2 vt-bg-slate-100 vt-text-slate-700 vt-rounded-lg hover:vt-bg-slate-200 vt-transition-colors",children:[(0,Sn.jsxs)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,Sn.jsx)("span",{className:"vt-text-sm",children:(0,ca.__)("Settings","versatile-toolkit")})]})}),(0,Sn.jsxs)(H_,{children:[(0,Sn.jsx)(Z_,{children:(0,Sn.jsx)(K_,{children:(0,ca.__)("Debug Log Settings","versatile-toolkit")})}),(0,Sn.jsx)("div",{className:"vt-mt-6",children:(0,Sn.jsx)(dk,{debugStatus:O,logFileInfo:S,isAutoRefresh:a,isLoading:N,statusLoading:b,onToggleDebugLog:function(e){w.mutate(e)},onToggleAutoRefresh:function(e){s(e)},onStopAutoRefresh:function(){s(!1),Cr.success((0,ca.__)("Auto refresh stopped","versatile-toolkit"))}})})]})]})]})}),(0,Sn.jsxs)("div",{className:"vt-my-8",children:[(0,Sn.jsxs)("div",{className:" vt-bg-white vt-rounded-lg vt-border vt-p-2 vt-flex vt-items-center vt-justify-between",children:[(0,Sn.jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-text-lg",children:(0,ca.__)("Debug Log","versatile-toolkit")}),(0,Sn.jsxs)("div",{className:"vt-flex vt-flex-wrap vt-items-center vt-gap-3",children:[(0,Sn.jsxs)(ev,{open:h,onOpenChange:m,children:[(0,Sn.jsx)(tv,{asChild:!0,children:(0,Sn.jsxs)(Qi,{variant:"outline",role:"combobox","aria-expanded":h,"aria-label":(0,ca.__)("Filter debug logs by source","versatile-toolkit"),className:"vt-min-w-[12rem] vt-max-w-[20rem] vt-justify-between vt-gap-2 vt-bg-white vt-font-normal",children:[(0,Sn.jsx)("span",{className:"vt-truncate",children:(null==A?void 0:A.label)||(0,ca.__)("Select source...","versatile-toolkit")}),(0,Sn.jsx)(cv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,Sn.jsx)(rv,{className:"vt-w-[20rem] vt-p-0",align:"start",children:(0,Sn.jsxs)(ad,{children:[(0,Sn.jsx)(id,{placeholder:(0,ca.__)("Search source...","versatile-toolkit")}),(0,Sn.jsxs)(sd,{children:[(0,Sn.jsx)(ld,{children:(0,ca.__)("No source found.","versatile-toolkit")}),(0,Sn.jsx)(cd,{children:C.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),R.length>0&&(0,Sn.jsx)(cd,{heading:(0,ca.__)("Plugins","versatile-toolkit"),children:R.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),T.length>0&&(0,Sn.jsx)(cd,{heading:(0,ca.__)("Themes","versatile-toolkit"),children:T.map(function(e){return(0,Sn.jsxs)(ud,{value:e.label,onSelect:function(){return E(e.value)},children:[(0,Sn.jsx)(uv,{className:la("vt-mr-2 vt-h-4 vt-w-4",f===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})})]})]})})]}),(0,Sn.jsx)("button",{title:(0,ca.__)("Refresh Log","versatile-toolkit"),onClick:function(){x(),u(function(e){return e+1}),Cr.success((0,ca.__)("Debug log status and content refreshed","versatile-toolkit"))},disabled:N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-3 vt-px-2 vt-py-1 vt-bg-blue-500 vt-text-white vt-rounded-lg hover:vt-bg-blue-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),(0,Sn.jsx)("button",{title:(0,ca.__)("Download Log","versatile-toolkit"),onClick:function(){S.exists?Ok.downloadLog():Cr.error((0,ca.__)("No log file to download","versatile-toolkit"))},disabled:!S.exists||N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-green-600 vt-text-white vt-rounded-lg hover:vt-bg-green-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,Sn.jsx)("button",{title:(0,ca.__)("Clear Log","versatile-toolkit"),onClick:function(){S.exists?window.confirm((0,ca.__)("Are you sure you want to clear the debug log? This action cannot be undone.","versatile-toolkit"))&&j.mutate(void 0,{onSuccess:function(){x(),u(function(e){return e+1})}}):Cr.error((0,ca.__)("No log file to clear","versatile-toolkit"))},disabled:!S.exists||N,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-yellow-600 vt-text-white vt-rounded-lg hover:vt-bg-yellow-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,Sn.jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Sn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]}),(0,Sn.jsx)(uk,{columns:F,fetchData:D,searchParams:r},"".concat(c,"-").concat(f))]})]})};var Fk=a.createRoot(document.getElementById("versatile-root")),Ik=new class{#G;#b;#p;#Q;#J;#Y;#X;#ee;constructor(e={}){this.#G=e.queryCache||new jn,this.#b=e.mutationCache||new kn,this.#p=e.defaultOptions||{},this.#Q=new Map,this.#J=new Map,this.#Y=0}mount(){this.#Y++,1===this.#Y&&(this.#X=an.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onFocus())}),this.#ee=sn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onOnline())}))}unmount(){this.#Y--,0===this.#Y&&(this.#X?.(),this.#X=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#G.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#b.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#G.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Mr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#G.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#G.get(n.queryHash),a=o?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==i)return this.#G.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return nn.batch(()=>this.#G.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state}removeQueries(e){const t=this.#G;nn.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#G;return nn.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=nn.batch(()=>this.#G.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Dr).catch(Dr)}invalidateQueries(e,t={}){return nn.batch(()=>(this.#G.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=nn.batch(()=>this.#G.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Dr)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#G.build(this,t);return r.isStaleByTime(Mr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dr).catch(Dr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dr).catch(Dr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return sn.isOnline()?this.#b.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#G}getMutationCache(){return this.#b}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#Q.set(Ur(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Q.values()],r={};return t.forEach(t=>{qr(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#J.set(Ur(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#J.values()],r={};return t.forEach(t=>{qr(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=zr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#G.clear(),this.#b.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});Fk.render((0,Sn.jsx)(Cg,{onError:function(e,t){},children:(0,Sn.jsx)(Pn,{client:Ik,children:(0,Sn.jsx)(Cg,{onError:function(e,t){},children:(0,Sn.jsx)(jt,{children:(0,Sn.jsxs)(Cg,{onError:function(e,t){},children:[(0,Sn.jsx)(Y_,{}),(0,Sn.jsxs)(ze,{children:[(0,Sn.jsx)(Ve,{path:"/",element:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(Ci,{})})}),(0,Sn.jsx)(Ve,{path:"/troubleshoot",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(yg,{})})})}),(0,Sn.jsx)(Ve,{path:"/maintenance",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(lx,{})})})}),(0,Sn.jsx)(Ve,{path:"/comingsoon",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(bx,{})})})}),(0,Sn.jsx)(Ve,{path:"/templogin",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(C_,{})})})}),(0,Sn.jsx)(Ve,{path:"/troubleshoot/debug-log",element:(0,Sn.jsx)(X_,{children:(0,Sn.jsx)(Cg,{children:(0,Sn.jsx)(Dk,{})})})})]}),(0,Sn.jsx)(Pr,{position:"bottom-right",containerClassName:"!z-[9999999]",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}})]})})})})}))})();
     1(()=>{"use strict";var e={};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const i=Object.create(null);r.r(i);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,r.d(i,a),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n=r.cw((e,t)=>{var r=s();t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot}),o=r.cw((e,t)=>{var r=a(),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,a={},c=null,u=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}),i=r.cw(e=>{e.exports=o()}),a=r.cw(e=>{e.exports=React}),s=r.cw(e=>{e.exports=ReactDOM});function l(){return l.c||(l.c=r.t(a(),2))}s(),n(),a();var c=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,u=/^[\\/]{2}/;function d(e,t){return t+e.replace(/\\/g,"/")}var f="popstate";function p(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function v(e={}){return w(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=x(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),g("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:b(t))},function(e,t){m("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function h(e,t){if(!1===e||null==e)throw new Error(t)}function m(e,t){if(!e)try{throw new Error(t)}catch(e){}}function y(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function g(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?x(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:o}}function b({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function x(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function w(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function v(e){return j(o,e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let h={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(f,d),l=e,()=>{o.removeEventListener(f,d),l=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=p(e)?e:g(h.location,e,t);r&&r(n,e),c=u()+1;let d=y(n,c),f=h.createHref(n.mask||n);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let n=p(e)?e:g(h.location,e,t);r&&r(n,e),c=u();let o=y(n,c),d=h.createHref(n.mask||n);a.replaceState(o,"",d),i&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}function j(e,t,r=!1){let n="http://localhost";e&&(n="null"!==e.location.origin?e.location.origin:e.location.href),h(n,"No window.location.(origin|href) available to create URL");let o="string"==typeof t?t:b(t);return o=o.replace(/ $/,"%20"),!r&&u.test(o)&&(o=n+o),new URL(o,n)}new WeakMap;function _(e,t,r="/"){return k(e,t,r,!1)}function k(e,t,r,n,o){let i=z(("string"==typeof t?x(t):t).pathname||"/",r);if(null==i)return null;let a=o??S(e),s=null,l=$(i);for(let e=0;null==s&&e<a.length;++e)s=I(a[e],l,n);return s}function S(e){let t=O(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function O(e,t=[],r=[],n="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;h(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=Z([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(h(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),O(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:F(c,e.index),routesMeta:u.map((e,t)=>{let[r,n]=V(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:r,compiledParams:n}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of N(e.path))i(e,t,!0,r);else i(e,t)}),t}function N(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=N(n.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var P=/^:[\w-]+$/,C=3,E=2,R=1,A=10,T=-2,D=e=>"*"===e;function F(e,t){let r=e.split("/"),n=r.length;return r.some(D)&&(n+=T),t&&(n+=E),r.filter(e=>!D(e)).reduce((e,t)=>e+(P.test(t)?C:""===t?R:A),n)}function I(e,t,r=!1){let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},d=s.matcher&&s.compiledParams?L(u,c,s.matcher,s.compiledParams):M(u,c),f=s.route;if(!d&&l&&r&&!n[n.length-1].route.index&&(d=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:Z([i,d.pathname]),pathnameBase:Q(Z([i,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(i=Z([i,d.pathnameBase]))}return a}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=V(e.path,e.caseSensitive,e.end);return L(e,t,r,n)}function L(e,t,r,n){let o=t.match(r);if(!o)return null;let i=o[0],a=K(i,1),s=o.slice(1),l=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=K(i.slice(0,i.length-e.length),1)}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function V(e,t=!1,r=!0){m("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,o,i)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function $(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return m(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t){let r=K(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function q(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function B(e){let t=W(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function H(e,t,r,n=!1){let o;"string"==typeof e?o=x(e):(o={...e},h(!o.pathname||!o.pathname.includes("?"),q("?","pathname","search",o)),h(!o.pathname||!o.pathname.includes("#"),q("#","pathname","hash",o)),h(!o.search||!o.search.includes("#"),q("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:i=""}="string"==typeof e?x(e):e;return n?(n=G(n),r=n.startsWith("/")||n.startsWith("\\")?U(n.substring(1),"/"):U(n,t)):r=t,{pathname:r,search:J(o),hash:Y(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var G=e=>e.replace(/[\\/]{2,}/g,"/"),Z=e=>G(e.join("/"));function K(e,t=0){let r=e.length;for(;r>t&&47===e.charCodeAt(r-1);)r--;return r===e.length?e:e.slice(0,r)}var Q=e=>K(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var X=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function te(e){let t=e.map(e=>e.route.path).filter(Boolean);return Z(t)||"/"}var re="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let r=e;if("string"!=typeof r||!c.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(re)try{let e=new URL(window.location.href),n=u.test(r)?new URL(d(r,e.protocol)):new URL(r),i=z(n.pathname,t);n.origin===e.origin&&null!=i?r=i+n.search+n.hash:o=!0}catch(e){m(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var oe=new URL("http://localhost");function ie(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),oe)}catch{return oe}}function ae(e,t){return e.origin===t.origin&&("null"!==e.origin||e.protocol===t.protocol&&e.host===t.host)}function se(e,t,r,n){let o=null;try{o=null==e?null:new URL(e,r)}catch{}let i=new URL(t,r),a=null!=o&&!ae(o,r),s=!ae(i,r);if("reject"===n){if(a||s)throw new Error("External navigation is not allowed")}else if(s&&(null==o||!function(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return!!e.toLowerCase().startsWith(r)&&(""===t.host||e.slice(r.length).startsWith("//"))}(e,o)||!ae(o,i)))throw new Error("External navigation is not allowed")}var le=["POST","PUT","PATCH","DELETE"],ce=(new Set(le),["GET",...le]);new Set(ce),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var ue=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function de(e){try{return ue.includes(new URL(e).protocol)}catch{return!1}}var fe=a().createContext(null);fe.displayName="DataRouter";var pe=a().createContext(null);pe.displayName="DataRouterState";var ve=a().createContext(!1);function he(){return a().useContext(ve)}var me=a().createContext({isTransitioning:!1});me.displayName="ViewTransition";var ye=a().createContext(new Map);ye.displayName="Fetchers";var ge=a().createContext(null);ge.displayName="Await";var be=a().createContext(null);be.displayName="Navigation";var xe=a().createContext(null);xe.displayName="Location";var we=a().createContext({outlet:null,matches:[],isDataRoute:!1});we.displayName="Route";var je=a().createContext(null);je.displayName="RouteError";var _e="REACT_ROUTER_ERROR";function ke(){return null!=a().useContext(xe)}function Se(){return h(ke(),"useLocation() may be used only in the context of a <Router> component."),a().useContext(xe).location}var Oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ne(e){a().useContext(be).static||a().useLayoutEffect(e)}function Pe(){let{isDataRoute:e}=a().useContext(we);return e?function(){let{router:e}=Ve("useNavigate"),t=ze("useNavigate"),r=a().useRef(!1);Ne(()=>{r.current=!0});let n=a().useCallback(async(n,o={})=>{m(r.current,Oe),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t]);return n}():function(){h(ke(),"useNavigate() may be used only in the context of a <Router> component.");let e=a().useContext(fe),{basename:t,navigator:r}=a().useContext(be),{matches:n}=a().useContext(we),{pathname:o}=Se(),i=JSON.stringify(B(n)),s=a().useRef(!1);Ne(()=>{s.current=!0});let l=a().useCallback((n,a={})=>{if(m(s.current,Oe),!s.current)return;if("number"==typeof n)return void r.go(n);let l=H(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Z([t,l.pathname])),se("string"==typeof n?n:b(n),r.createHref(l),ie(r),"reject"),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e]);return l}()}a().createContext(null);function Ce(e,{relative:t}={}){let{matches:r}=a().useContext(we),{pathname:n}=Se(),o=JSON.stringify(B(r));return a().useMemo(()=>H(e,JSON.parse(o),n,"path"===t),[e,o,n,t])}function Ee(e,t,r){h(ke(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=a().useContext(be),{matches:o}=a().useContext(we),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";We(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,f=Se();if(t){let e="string"==typeof t?x(t):t;h("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=f;let p=d.pathname||"/",v=p;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):_(e,{pathname:v});m(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),m(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Me(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Z([c,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Z([c,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&g?a().createElement(xe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function Re(){let e=Ue(),t=ee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return s=a().createElement(a().Fragment,null,a().createElement("p",null,"💿 Hey developer 👋"),a().createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a().createElement("code",{style:i},"ErrorBoundary")," or"," ",a().createElement("code",{style:i},"errorElement")," prop on your route.")),a().createElement(a().Fragment,null,a().createElement("h2",null,"Unexpected Application Error!"),a().createElement("h3",{style:{fontStyle:"italic"}},t),r?a().createElement("pre",{style:o},r):null,s)}var Ae=a().createElement(Re,null),Te=class extends a().Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${_e}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new X(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a().createElement(we.Provider,{value:this.props.routeContext},a().createElement(je.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a().createElement(Fe,{error:e},t):t}};Te.contextType=ve;var De=new WeakMap;function Fe({children:e,error:t}){let{basename:r,navigator:n}=a().useContext(be);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${_e}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let o=De.get(t);if(o)throw o;let i=ne(e.location,r),s=i.absoluteURL||i.to;if(se(e.location,s,ie(n),"allow-explicit"),de(s))throw new Error("Invalid redirect location");if(re&&!De.get(t)){if(!i.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw De.set(t,r),r}window.location.href=s}return a().createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function Ie({routeContext:e,match:t,children:r}){let n=a().useContext(fe);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),a().createElement(we.Provider,{value:e},r)}function Me(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,i=n?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);h(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:i}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||void 0===i[t.route.id]);if(t.route.lazy||a){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=r?.onError,u=n&&c?(e,t)=>{c(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:te(n.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let d,f=!1,p=null,v=null;n&&(d=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||Ae,s&&(l<0&&0===c?(We("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,v=null):l===c&&(f=!0,v=r.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,c+1)),m=()=>{let t;return t=d?p:f?v:r.route.Component?a().createElement(r.route.Component,null):r.route.element?r.route.element:e,a().createElement(Ie,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?a().createElement(Te,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):m()},null)}function Le(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ve(e){let t=a().useContext(fe);return h(t,Le(e)),t}function $e(e){let t=a().useContext(pe);return h(t,Le(e)),t}function ze(e){let t=function(e){let t=a().useContext(we);return h(t,Le(e)),t}(e),r=t.matches[t.matches.length-1];return h(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Ue(){let e=a().useContext(je),t=$e("useRouteError"),r=ze("useRouteError");return void 0!==e?e:t.errors?.[r]}var qe={};function We(e,t,r){t||qe[e]||(qe[e]=!0,m(!1,r))}var Be={};function He(e,t){e||Be[t]||(Be[t]=!0)}l().useOptimistic;a().memo(Ge);function Ge({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:i}){return Ee(e,void 0,{manifest:t,state:n,isStatic:o,onError:i,future:r})}function Ze({to:e,replace:t,state:r,relative:n}){h(ke(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:i}=a().useContext(be);m(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=a().useContext(we),{pathname:l}=Se(),c=Pe(),u=H(e,B(s),l,"path"===n);se("string"==typeof e?e:b(e),i.createHref(u),ie(i),"reject");let d=JSON.stringify(u);return a().useEffect(()=>{c(JSON.parse(d),{replace:t,state:r,relative:n})},[c,d,n,t,r]),null}function Ke(e){h(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Qe({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:i=!1,useTransitions:s}){h(!ke(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=a().useMemo(()=>({basename:l,navigator:o,static:i,useTransitions:s,future:{}}),[l,o,i,s]);"string"==typeof r&&(r=x(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:v="default",mask:y}=r,g=a().useMemo(()=>{let e=z(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:v,mask:y},navigationType:n}},[l,u,d,f,p,v,n,y]);return m(null!=g,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:a().createElement(be.Provider,{value:c},a().createElement(xe.Provider,{children:t,value:g}))}function Je({children:e,location:t}){return Ee(Ye(e),t)}a().Component;function Ye(e,t=[]){let r=[];return a().Children.forEach(e,(e,n)=>{if(!a().isValidElement(e))return;let o=[...t,n];if(e.type===a().Fragment)return void r.push.apply(r,Ye(e.props.children,o));h(e.type===Ke,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),h(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=Ye(e.props.children,o)),r.push(i)}),r}var Xe="get",et="application/x-www-form-urlencoded";function tt(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function rt(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var nt=null;var ot=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function it(e){return null==e||ot.has(e)?e:(m(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${et}"`),null)}function at(e,t){let r,n,o,i,a;if(tt(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?z(a,t):null,r=e.getAttribute("method")||Xe,o=it(e.getAttribute("enctype"))||et,i=new FormData(e)}else if(function(e){return tt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return tt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?z(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Xe,o=it(e.getAttribute("formenctype"))||it(a.getAttribute("enctype"))||et,i=new FormData(a,e),!function(){if(null===nt)try{new FormData(document.createElement("form"),0),nt=!1}catch(e){nt=!0}return nt}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(tt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Xe,n=null,o=et,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function st(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function lt(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===z(o.pathname,t)?o.pathname=`${K(t)}/_root.${n}`:o.pathname=`${K(o.pathname)}.${n}`,o}async function ct(e,t){if(e.id in t)return t[e.id];try{let r=await(import(e.module));return t[e.id]=r,r}catch(e){return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ut(e){return null!=e&&"string"==typeof e.page}function dt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ft(e,t,r,n,o,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function pt(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function vt(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!ut(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let i=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(i)||(r.add(i),e.push({key:i,link:o})),e},[])}function ht(e,t){return"lazy"===e.mode&&!0===t}function mt(){let e=a().useContext(fe);return st(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function yt(){let e=a().useContext(pe);return st(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gt=a().createContext(void 0);function bt(){let e=a().useContext(gt);return st(e,"You must render this element inside a <HydratedRouter> element"),e}function xt(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function wt(e,t,r){if(r&&!Ot)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}gt.displayName="FrameworkContext";function jt({page:e,...t}){let r=he(),{nonce:n}=bt(),{router:o}=mt(),i=a().useMemo(()=>_(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(null==t.nonce&&n&&(t={...t,nonce:n}),r?a().createElement(kt,{page:e,matches:i,...t}):a().createElement(St,{page:e,matches:i,...t})):null}function _t(e){let{manifest:t,routeModules:r}=bt(),[n,o]=a().useState([]);return a().useEffect(()=>{let n=!1;return async function(e,t,r){return vt((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await ct(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(dt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),n}function kt({page:e,matches:t,...r}){let n=Se(),{future:o}=bt(),{basename:i}=mt(),s=a().useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=lt(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:s.push(e.route.id);return a&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[i,o.v8_trailingSlashAwareDataRequests,e,n,t]);return a().createElement(a().Fragment,null,s.map(e=>a().createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function St({page:e,matches:t,...r}){let n=Se(),{future:o,manifest:i,routeModules:s}=bt(),{basename:l}=mt(),{loaderData:c,matches:u}=yt(),d=a().useMemo(()=>ft(e,t,u,i,n,"data"),[e,t,u,i,n]),f=a().useMemo(()=>ft(e,t,u,i,n,"assets"),[e,t,u,i,n]),p=a().useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:r.add(e.route.id))}),0===r.size)return[];let u=lt(e,l,o.v8_trailingSlashAwareDataRequests,"data");return a&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.v8_trailingSlashAwareDataRequests,c,n,i,d,t,e,s]),v=a().useMemo(()=>pt(f,i),[f,i]),h=_t(f);return a().createElement(a().Fragment,null,p.map(e=>a().createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),v.map(e=>a().createElement("link",{key:e,rel:"modulepreload",href:e,...r})),h.map(({key:e,link:t})=>a().createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}var Ot=!1;function Nt(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:o,routeDiscovery:i,ssr:s,nonce:l}=bt(),{router:c,static:u,staticContext:d}=mt(),{matches:f}=yt(),p=he(),v=ht(i,s);null==e.nonce&&l&&(e={...e,nonce:l}),o&&(o.didRenderScripts=!0);let h=wt(f,null,n);a().useEffect(()=>{Ot=!0},[]);let m=a().useMemo(()=>{if(p)return null;let n=d?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${v?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];st(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...i?[{module:i,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${v?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=k(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n  window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a().createElement(a().Fragment,null,a().createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),a().createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),y=Ot||p?[]:[...new Set(t.entry.imports.concat(pt(h,t,{includeHydrateFallback:!0})))],g="object"==typeof t.sri?t.sri:{};return He(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Ot||p?null:a().createElement(a().Fragment,null,"object"==typeof t.sri?a().createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,v?null:a().createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),a().createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),y.map(t=>a().createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:g[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function Pt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a().Component;function Ct({error:e,isOutsideRemixApp:t}){let r,{nonce:n}=bt(),o=a().createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(ee(e))return a().createElement(Et,{title:"Unhandled Thrown Response!"},a().createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a().createElement(Et,{title:"Application Error!",isOutsideRemixApp:t},a().createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a().createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function Et({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:o}=bt();return o.root?.Layout&&!r?n:a().createElement("html",{lang:"en"},a().createElement("head",null,a().createElement("meta",{charSet:"utf-8"}),a().createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a().createElement("title",null,e)),a().createElement("body",null,a().createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?a().createElement(Nt,null):null)))}var Rt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Rt&&(window.__reactRouterVersion="7.18.5")}catch(e){}function At({basename:e,children:t,useTransitions:r,window:n}){let o=a().useRef();null==o.current&&(o.current=v({window:n,v5Compat:!0}));let i=o.current,[s,l]=a().useState({action:i.action,location:i.location}),c=a().useCallback(e=>{!1===r?l(e):a().startTransition(()=>l(e))},[r]);return a().useLayoutEffect(()=>i.listen(c),[i,c]),a().createElement(Qe,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:r})}var Tt=a().forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:o,replace:i,mask:s,state:l,target:u,to:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y){let{basename:g,navigator:x,useTransitions:w}=a().useContext(be),j="string"==typeof d&&c.test(d),_=ne(d,g),k=function(e,{relative:t}={}){h(ke(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=a().useContext(be),{hash:o,pathname:i,search:s}=Ce(e,{relative:t}),l=i;return"/"!==r&&(l="/"===i?r:Z([r,i])),n.createHref({pathname:l,search:s,hash:o})}(d=_.to,{relative:n}),S=Se(),O=null;if(s){let e=H(s,[],S.mask?S.mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:Z([g,e.pathname])),O=x.createHref(e)}let[N,P,C]=function(e,t){let r=a().useContext(gt),[n,o]=a().useState(!1),[i,s]=a().useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a().useRef(null);a().useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a().useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let v=()=>{o(!0)},h=()=>{o(!1),s(!1)};return r?"intent"!==e?[i,p,{}]:[i,p,{onFocus:xt(l,v),onBlur:xt(c,h),onMouseEnter:xt(u,v),onMouseLeave:xt(d,h),onTouchStart:xt(f,v)}]:[!1,p,{}]}(r,m),E=function(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:i,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=Pe(),f=Se(),p=Ce(e,{relative:s});return a().useCallback(v=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(v,t)){v.preventDefault();let t=void 0!==r?r:b(f)===b(p),h=()=>d(e,{replace:t,mask:n,state:o,preventScrollReset:i,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?a().startTransition(()=>h()):h()}},[f,d,p,r,n,o,t,e,i,s,l,c,u])}(d,{replace:i,mask:s,state:l,target:u,preventScrollReset:f,relative:n,viewTransition:p,defaultShouldRevalidate:v,useTransitions:w});let R=!(_.isExternal||o),A=a().createElement("a",{...m,...C,href:(R?O:void 0)||_.absoluteURL||k,onClick:R?function(t){e&&e(t),t.defaultPrevented||E(t)}:e,ref:Pt(y,P),target:u,"data-discover":j||"render"!==t?void 0:"true"});return N&&!j?a().createElement(a().Fragment,null,A,a().createElement(jt,{page:k})):A});Tt.displayName="Link",a().forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:o,to:i,viewTransition:s,children:l,...c},u){let d=Ce(i,{relative:c.relative}),f=Se(),p=a().useContext(pe),{navigator:v,basename:m}=a().useContext(be),y=null!=p&&function(e,{relative:t}={}){let r=a().useContext(me);h(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=It("useViewTransitionState"),o=Ce(e,{relative:t});if(!r.isTransitioning)return!1;let i=z(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=z(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=M(o.pathname,s)||null!=M(o.pathname,i)}(d)&&!0===s,g=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,b=f.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=z(x,m)||x);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let j,_=b===g||!n&&b.startsWith(g)&&"/"===b.charAt(w),k=null!=x&&(x===g||!n&&x.startsWith(g)&&"/"===x.charAt(g.length)),S={isActive:_,isPending:k,isTransitioning:y},O=_?e:void 0;j="function"==typeof r?r(S):[r,_?"active":null,k?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(S):o;return a().createElement(Tt,{...c,"aria-current":O,className:j,ref:u,style:N,to:i,viewTransition:s},"function"==typeof l?l(S):l)}).displayName="NavLink";var Dt=a().forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:i,method:s=Xe,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v,...m},y)=>{let{useTransitions:g}=a().useContext(be),x=$t(),w=function(e,{relative:t}={}){let{basename:r}=a().useContext(be),n=a().useContext(we);h(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Ce(e||".",{relative:t})},s=Se();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index"),r=t.some(e=>""===e);if(r){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?`?${r}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(i.pathname="/"===i.pathname?r:Z([r,i.pathname]));return b(i)}(l,{relative:d}),j="get"===s.toLowerCase()?"get":"post",_="string"==typeof l&&c.test(l);return a().createElement("form",{ref:y,method:j,action:w,onSubmit:n?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,c=()=>x(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:i,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:v});g&&!1!==r?a().startTransition(()=>c()):c()},...m,"data-discover":_||"render"!==e?void 0:"true"})});function Ft(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=a().useContext(fe);return h(t,Ft(e)),t}function Mt(e){m("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a().useRef(rt(e)),r=a().useRef(!1),n=Se(),o=a().useMemo(()=>function(e,t){let r=rt(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=Pe(),s=a().useCallback((e,t)=>{const n=rt("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,i("?"+n,t)},[i,o]);return[o,s]}Dt.displayName="Form";var Lt=0,Vt=()=>`__${String(++Lt)}__`;function $t(){let{router:e}=It("useSubmit"),{basename:t}=a().useContext(be),r=ze("useRouteId"),n=e.fetch,o=e.navigate;return a().useCallback(async(e,i={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=at(e,t);if(!1===i.navigate){let e=i.fetcherKey||Vt();await n(e,r,i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||s,formEncType:i.encType||l,flushSync:i.flushSync})}else await o(i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||s,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,o,t,r])}let zt={data:""},Ut=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||zt},qt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Wt=/\/\*[^]*?\*\/|  +/g,Bt=/\n+/g,Ht=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?Ht(a,i):i+"{"+Ht(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=Ht(a,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ht.p?Ht.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Gt={},Zt=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Zt(e[r]);return t}return e};function Kt(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,o)=>{let i=Zt(e),a=Gt[i]||(Gt[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!Gt[a]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=qt.exec(e.replace(Wt,""));)t[4]?n.shift():t[3]?(r=t[3].replace(Bt," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(Bt," ").trim();return n[0]})(e);Gt[a]=Ht(o?{["@keyframes "+a]:t}:t,r?"":"."+a)}let s=r&&Gt.g;return r&&(Gt.g=Gt[a]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Gt[a],t,n,s),a})(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Ht(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Ut(t.target),t.g,t.o,t.k)}Kt.bind({g:1});let Qt,Jt,Yt,Xt=Kt.bind({k:1});function er(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;r.p=Object.assign({theme:Jt&&Jt()},s),r.o=/go\d/.test(l),s.className=Kt.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),Yt&&c[0]&&Yt(s),Qt(c,s)}return t?t(o):o}}var tr=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,rr=(()=>{let e=0;return()=>(++e).toString()})(),nr=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),or="default",ir=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return ir(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},ar=[],sr={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},lr={},cr=(e,t=or)=>{lr[t]=ir(lr[t]||sr,e),ar.forEach(([e,r])=>{e===t&&r(lr[t])})},ur=e=>Object.keys(lr).forEach(t=>cr(e,t)),dr=(e=or)=>t=>{cr(t,e)},fr={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pr=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||rr()}))(t,e,r);return dr(n.toasterId||(e=>Object.keys(lr).find(t=>lr[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},vr=(e,t)=>pr("blank")(e,t);vr.error=pr("error"),vr.success=pr("success"),vr.loading=pr("loading"),vr.custom=pr("custom"),vr.dismiss=(e,t)=>{let r={type:3,toastId:e};t?dr(t)(r):ur(r)},vr.dismissAll=e=>vr.dismiss(void 0,e),vr.remove=(e,t)=>{let r={type:4,toastId:e};t?dr(t)(r):ur(r)},vr.removeAll=e=>vr.remove(void 0,e),vr.promise=(e,t,r)=>{let n=vr.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?tr(t.success,e):void 0;return o?vr.success(o,{id:n,...r,...null==r?void 0:r.success}):vr.dismiss(n),e}).catch(e=>{let o=t.error?tr(t.error,e):void 0;o?vr.error(o,{id:n,...r,...null==r?void 0:r.error}):vr.dismiss(n)}),e};var hr=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=or)=>{let[r,n]=(0,a().useState)(lr[t]||sr),o=(0,a().useRef)(lr[t]);(0,a().useEffect)(()=>(o.current!==lr[t]&&n(lr[t]),ar.push([t,n]),()=>{let e=ar.findIndex(([e])=>e===t);e>-1&&ar.splice(e,1)}),[t]);let i=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||fr[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:i}})(e,t),o=(0,a().useRef)(new Map).current,i=(0,a().useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,r)},[]);(0,a().useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>vr.dismiss(r.id,t),n);r.visible&&vr.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let s=(0,a().useCallback)(dr(t),[t]),l=(0,a().useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,a().useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,a().useCallback)(()=>{n&&s({type:6,time:Date.now()})},[n,s]),d=(0,a().useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},a=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,a().useEffect)(()=>{r.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,i]),{toasts:r,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},mr=Xt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,yr=Xt` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,gr=Xt` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,br=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${mr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${yr} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${gr} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,xr=Xt` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,wr=er("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${xr} 1s linear infinite; `,jr=Xt` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,_r=Xt` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,kr=er("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${jr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${_r} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Sr=er("div")` position: absolute; `,Or=er("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Nr=Xt` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Pr=er("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Nr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Cr=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?a().createElement(Pr,null,t):t:"blank"===r?null:a().createElement(Or,null,a().createElement(wr,{...n}),"loading"!==r&&a().createElement(Sr,null,"error"===r?a().createElement(br,{...n}):a().createElement(kr,{...n})))},Er=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,Rr=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} `,Ar=er("div")` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,Tr=er("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Dr=a().memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=nr()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Er(r),Rr(r)];return{animation:t?`${Xt(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Xt(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=a().createElement(Cr,{toast:e}),s=a().createElement(Tr,{...e.ariaProps},tr(e.message,e));return a().createElement(Ar,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:s}):a().createElement(a().Fragment,null,i,s))});!function(e,t,r,n){Ht.p=t,Qt=e,Jt=r,Yt=n}(a().createElement);var Fr=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=a().useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return a().createElement("div",{ref:i,className:t,style:r},o)},Ir=Kt` z-index: 9999; > * { pointer-events: auto; } `,Mr=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:i,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=hr(r,i);return a().createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(r=>{let i=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:nr()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return a().createElement(Fr,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?Ir:"",style:s},"custom"===r.type?tr(r.message,r):o?o(r):a().createElement(Dr,{toast:r,position:i}))}))},Lr=vr;const Vr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};const $r=new class{#e=Vr;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const zr="undefined"==typeof window||"Deno"in globalThis;function Ur(){}function qr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Wr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Br(e,t){return"function"==typeof e?e(t):e}function Hr(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==Zr(a,t.options))return!1}else if(!Qr(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Gr(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Kr(t.options.mutationKey)!==Kr(i))return!1}else if(!Qr(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Zr(e,t){return(t?.queryKeyHashFn||Kr)(e)}function Kr(e){return JSON.stringify(e,(e,t)=>tn(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(!Qr(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!Qr(e[n],t[n]))return!1;return!0}return!1}const Jr=Object.prototype.hasOwnProperty;function Yr(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=en(e)&&en(t);if(!(n||tn(e)&&tn(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const a=n?c:i[c],u=e[a],d=t[a];if(u===d){s[a]=u,(n?c<o:Jr.call(e,a))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[a]=d;continue}const f=Yr(u,d,r+1);s[a]=f,f===u&&l++}return o===a&&l===o?e:s}function Xr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r of Object.keys(e))if(!Jr.call(t,r)||e[r]!==t[r])return!1;return!0}function en(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tn(e){if(!rn(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;const n=r.prototype;return!!rn(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&t===Object.prototype)}function rn(e){return"[object Object]"===Object.prototype.toString.call(e)}function nn(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Yr(e,t):t}function on(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(-r):n}function an(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,r):n}const sn=Symbol();function ln(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==sn?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function cn(e,t){return"function"==typeof e?e(...t):!!e}const un=Symbol();var dn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};const fn=new class extends dn{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},pn=function(e){setTimeout(e,0)};const vn=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=pn;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();const hn=new class extends dn{#i=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};let mn=()=>zr;const yn=()=>mn();function gn(e){return Math.min(1e3*2**e,3e4)}function bn(e){return"online"!==(e??"online")||hn.isOnline()}var xn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function wn(e){let t,r,n,o=!1,i=0,a="pending";const s=new Promise((e,t)=>{r=e,n=t});s.catch(Ur);const l=()=>"pending"!==a,c=()=>fn.isFocused()&&("always"===e.networkMode||hn.isOnline())&&e.canRun(),u=()=>bn(e.networkMode)&&e.canRun(),d=e=>{l()||(t?.(),a="resolved",r(e))},f=e=>{l()||(t?.(),a="rejected",n(e))},p=r=>new Promise(n=>{t=e=>{(l()||r())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,l()||e.onContinue?.()}),v=()=>{if(l())return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(d).catch(t=>{if(l())return;const r=e.retry??(yn()?0:3),n=e.retryDelay??gn,a="function"==typeof n?n(i,t):n,s=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&s?(i++,e.onFail?.(i,t),(u=a,new Promise(e=>{$r.setTimeout(e,u)})).then(()=>l()||c()?void 0:p(c)).then(()=>{o?f(t):v()})):f(t)})};return{promise:s,status:()=>a,cancel:t=>{if(!l()){const r=new xn(t);f(r),e.onCancel?.(r)}},continue:()=>(t?.(),s),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:u,start:()=>(u()?v():p(u).then(v),s)}}var jn=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qr(this.gcTime)&&(this.#a=$r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yn()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&($r.clearTimeout(this.#a),this.#a=void 0)}},_n=class extends jn{#s;#l;#c;#u;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#c=e.mutationCache,this.#l=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#l.includes(e)||(this.#l.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#l=this.#l.filter(t=>t!==e),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#l.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#u?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#d({type:"continue"})},r={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#u=wn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)}),o="pending"===this.state.status,i=!n.canStart();try{if(o)t();else{this.#d({type:"pending",variables:e,isPaused:i}),this.#c.config.onMutate&&await this.#c.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:i})}this.state.isPaused&&n.canStart()&&t();const a=await n.start();return await(this.#c.config.onSuccess?.(a,e,this.state.context,this,r)),await(this.options.onSuccess?.(a,e,this.state.context,r)),await(this.#c.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(a,null,e,this.state.context,r)),this.#d({type:"success",data:a}),a}catch(t){try{await(this.#c.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#c.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#d({type:"error",error:t}),t}finally{this.#u===n&&(this.#u=void 0),this.#c.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),vn.batch(()=>{this.#l.forEach(t=>{t.onMutationUpdate(e)}),this.#c.notify({mutation:this,type:"updated",action:e})})}};var kn=class extends dn{#f;#p;#v;constructor(e={}){super(),this.config=e,this.#f=new Set,this.#p=new Map,this.#v=0}build(e,t,r){const n=new _n({client:e,mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#f.add(e);const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t);r?r.push(e):this.#p.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#f.delete(e)){const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#p.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Sn(e);if("string"==typeof t){const r=this.#p.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Sn(e);return"string"==typeof t?(this.#p.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){vn.batch(()=>{const e=this.getAll();this.#f.clear(),this.#p.clear(),e.forEach(e=>{this.notify({type:"removed",mutation:e})})})}getAll(){return Array.from(this.#f)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Gr(t,e))}findAll(e={}){return this.getAll().filter(t=>Gr(e,t))}notify(e){vn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return vn.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ur))))}};function Sn(e){return e.options.scope?.id}function On(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=t,u=e=>{!function(e,t,r,n){let o,i=!1;Object.defineProperties(e,{[un]:{value:n},signal:{enumerable:!0,get:()=>(o??=t(),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}})}(e,()=>t.signal,()=>r=!0,c[un])},d=ln(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return u(e),e})(),a=await d(i),{maxPages:s}=t.options,l=o?an:on;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};if(o&&i.length){const e="backward"===o,t=e?Pn:Nn,r={pages:i,pageParams:a};s=await f(r,t(n,r),e)}else{const t=e??i.length;do{const e=0===l?void 0===a[0]?n.initialPageParam:a[0]:Nn(n,s);if(l>0&&null==e)break;s=await f(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Nn(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Pn(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Cn=class extends jn{#h;#m;#y;#g;#s;#u;#b;#x;#w;constructor(e){super(),this.#w=!1,this.#x=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#g=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#m=An(this.options),this.state=e.state??this.#m,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#h}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#x,...e},e?._type&&(this.#h=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=An(this.options);void 0!==e.data&&(this.setState(Rn(e.data,e.dataUpdatedAt)),this.#m=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#g.remove(this)}setData(e,t){const r=nn(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#d({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Ur).catch(Ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#m}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Br(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return void 0!==this.state.data&&(this.getObserversCount()>0&&this.observers.some(e=>"static"===Br(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Wr(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#u&&(this.#w||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#g.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u&&this.#b)return this.#u.continueRetry(),this.#b;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperties(e,{[un]:{value:r.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#w=!0,r.signal)}})},o=()=>{const e=ln(this.options,t),r=(()=>{const e={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#w=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return n(e),e})();("infinite"===this.#h?On(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#y=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const a=this.#u=wn({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof xn&&e.revert&&this.setState({...this.#y,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),s=(async()=>{try{const e=await a.promise;if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#g.config.onSuccess?.(e,this),this.#g.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof xn){if(e.silent){if(this.#u!==a&&this.#b)return this.#b;throw e}if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#g.config.onError?.(e,this),this.#g.config.onSettled?.(this.state.data,e,this),e}finally{this.#u===a&&(this.#u=void 0,this.#b=void 0),this.scheduleGc()}})();return this.#b=s,a.start(),s}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...En(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...Rn(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#y=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vn.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#g.notify({query:this,type:"updated",action:e})})}};function En(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function Rn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function An(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Tn=class extends dn{#j;constructor(e={}){super(),this.config=e,this.#j=new Map}build(e,t,r){const n=t.queryKey,o=t.queryHash??Zr(n,t);let i=this.get(o);return i||(i=new Cn({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#j.has(e.queryHash)||(this.#j.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#j.get(e.queryHash)===e&&(e.destroy(),this.#j.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#j.get(e)}getAll(){return[...this.#j.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Hr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Hr(e,t)):t}notify(e){vn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){vn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){vn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};i();const Dn=a().createContext(void 0),Fn=e=>{const t=a().useContext(Dn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},In=({client:e,children:t})=>(a().useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o().jsx)(Dn.Provider,{value:e,children:t}));function Mn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Mn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ln(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Mn(e))&&(n&&(n+=" "),n+=t);return n}const Vn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),$n="-",zn=[],Un=e=>{const t=Bn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return Wn(e);const r=e.split($n),n=""===r[0]&&r.length>1?1:0;return qn(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||zn}return r[e]||zn}}},qn=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=qn(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join($n):e.slice(t).join($n),s=i.length;for(let e=0;e<s;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},Wn=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),Bn=e=>{const{theme:t,classGroups:r}=e;return Hn(r,t)},Hn=(e,t)=>{const r=Vn();for(const n in e){const o=e[n];Gn(o,r,n,t)}return r},Gn=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];Zn(o,t,r,n)}},Zn=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?Jn(e,t,r,n):Qn(e,t,r,n):Kn(e,t,r)},Kn=(e,t,r)=>{(""===e?t:Yn(t,e)).classGroupId=r},Qn=(e,t,r,n)=>{Xn(e)?Gn(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},Jn=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];Gn(a,Yn(t,i),r,n)}},Yn=(e,t)=>{let r=e;const n=t.split($n),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=Vn(),r.nextPart.set(t,o)),r=o}return r},Xn=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},to=[],ro=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),no=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let s=0;s<a;s++){const a=e[s];if(0===n&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){r=s;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.slice(i);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return ro(t,c,l,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):ro(to,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},oo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a="["===i[0],s=t.has(i);a||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},io=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},ao=/\s+/,so=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=so(e[n]))&&(r&&(r+=" "),r+=t);return r},lo=(e,...t)=>{let r,n,o,i;const a=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(ao);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:v}=r(t);if(u){c=t+(c.length>0?" "+c:c);continue}let h,m=!!v;if(m){h=n(p.substring(0,v));const e=h&&a[h]?n(p):void 0;e&&e!==h&&(h=e,m=!1)}else h=n(p);if(!h){if(!m){c=t+(c.length>0?" "+c:c);continue}if(h=n(p),!h){c=t+(c.length>0?" "+c:c);continue}m=!1}const y=0===d.length?"":1===d.length?d[0]:i(d).join(":"),g=f?y+"!":y,b=g+h;if(s.indexOf(b)>-1)continue;s.push(b);const x=o(h,m);for(let e=0;e<x.length;++e){const t=x[e];s.push(g+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return o(e,i),i};return i=s=>{const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:eo(e.cacheSize),parseClassName:no(e),sortModifiers:oo(e),postfixLookupClassGroupIds:io(e),...Un(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=so(t))&&(o&&(o+=" "),o+=r);return o})(...e))},co=[],uo=e=>{const t=t=>t[e]||co;return t.isThemeGetter=!0,t.themeKey=e,t},fo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,po=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,go=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xo=e=>vo.test(e),wo=e=>!!e&&!Number.isNaN(Number(e)),jo=e=>!!e&&Number.isInteger(Number(e)),_o=e=>e.endsWith("%")&&wo(e.slice(0,-1)),ko=e=>ho.test(e),So=()=>!0,Oo=e=>mo.test(e)&&!yo.test(e),No=()=>!1,Po=e=>go.test(e),Co=e=>bo.test(e),Eo=e=>!To(e)&&!zo(e),Ro=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Ao=e=>Ko(e,Xo,No),To=e=>fo.test(e),Do=e=>Ko(e,ei,Oo),Fo=e=>Ko(e,ti,wo),Io=e=>Ko(e,ni,So),Mo=e=>Ko(e,ri,No),Lo=e=>Ko(e,Jo,No),Vo=e=>Ko(e,Yo,Co),$o=e=>Ko(e,oi,Po),zo=e=>po.test(e),Uo=e=>Qo(e,ei),qo=e=>Qo(e,ri),Wo=e=>Qo(e,Jo),Bo=e=>Qo(e,Xo),Ho=e=>Qo(e,Yo),Go=e=>Qo(e,oi,!0),Zo=e=>Qo(e,ni,!0),Ko=(e,t,r)=>{const n=fo.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Qo=(e,t,r=!1)=>{const n=po.exec(e);return!!n&&(n[1]?t(n[1]):r)},Jo=e=>"position"===e||"percentage"===e,Yo=e=>"image"===e||"url"===e,Xo=e=>"length"===e||"size"===e||"bg-size"===e,ei=e=>"length"===e,ti=e=>"number"===e,ri=e=>"family-name"===e,ni=e=>"number"===e||"weight"===e,oi=e=>"shadow"===e,ii=(Symbol.toStringTag,()=>{const e=uo("color"),t=uo("font"),r=uo("text"),n=uo("font-weight"),o=uo("tracking"),i=uo("leading"),a=uo("breakpoint"),s=uo("container"),l=uo("spacing"),c=uo("radius"),u=uo("shadow"),d=uo("inset-shadow"),f=uo("text-shadow"),p=uo("drop-shadow"),v=uo("blur"),h=uo("perspective"),m=uo("aspect"),y=uo("ease"),g=uo("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",zo,To],x=()=>[zo,To,l],w=()=>[xo,"full","auto",...x()],j=()=>[jo,"none","subgrid",zo,To],_=()=>["auto",{span:["full",jo,zo,To]},jo,zo,To],k=()=>[jo,"auto",zo,To],S=()=>["auto","min","max","fr",zo,To],O=()=>["auto",...x()],N=()=>[xo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],P=()=>[s,xo,"screen","full","dvw","lvw","svw","min","max","fit",...x()],C=()=>[xo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],E=()=>[e,zo,To],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Wo,Lo,{position:[zo,To]}],A=()=>["auto","cover","contain",Bo,Ao,{size:[zo,To]}],T=()=>[_o,Uo,Do],D=()=>["","none","full",c,zo,To],F=()=>["",wo,Uo,Do],I=()=>[wo,_o,Wo,Lo],M=()=>["","none",v,zo,To],L=()=>["none",wo,zo,To],V=()=>["none",wo,zo,To],$=()=>[wo,zo,To],z=()=>[xo,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ko],breakpoint:[ko],color:[So],container:[ko],"drop-shadow":[ko],ease:["in","out","in-out"],font:[Eo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ko],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ko],shadow:[ko],spacing:["px",wo],text:[ko],"text-shadow":[ko],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xo,To,zo,m]}],container:["container"],"container-type":[{"@container":["","normal","size",zo,To]}],"container-named":[Ro],columns:[{columns:[wo,"auto",To,zo,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[jo,"auto",zo,To]}],basis:[{basis:[xo,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[wo,xo,"auto","initial","none",To]}],grow:[{grow:["",wo,zo,To]}],shrink:[{shrink:["",wo,zo,To]}],order:[{order:[jo,"first","last","none",zo,To]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh","none",...N()]}],"font-size":[{text:["base",r,Uo,Do]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Zo,Io]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_o,To]}],"font-family":[{font:[qo,Mo,t]}],"font-features":[{"font-features":[To]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,zo,To]}],"line-clamp":[{"line-clamp":[wo,"none",zo,Fo]}],leading:[{leading:["none",i,...x()]}],"list-image":[{"list-image":["none",zo,To]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",zo,To]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[wo,"from-font","auto",zo,Do]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[wo,"auto",zo,To]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[jo,zo,To]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",zo,To]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",zo,To]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jo,zo,To],radial:["",zo,To],conic:["",jo,zo,To]},Ho,Vo]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[wo,zo,To]}],"outline-w":[{outline:["",wo,Uo,Do]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","inner","none",u,Go,$o]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,Go,$o]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[wo,Do]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",f,Go,$o]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[wo,zo,To]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[wo]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[zo,To]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[wo]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",zo,To]}],filter:[{filter:["","none",zo,To]}],blur:[{blur:M()}],brightness:[{brightness:[wo,zo,To]}],contrast:[{contrast:[wo,zo,To]}],"drop-shadow":[{"drop-shadow":["","none",p,Go,$o]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",wo,zo,To]}],"hue-rotate":[{"hue-rotate":[wo,zo,To]}],invert:[{invert:["",wo,zo,To]}],saturate:[{saturate:[wo,zo,To]}],sepia:[{sepia:["",wo,zo,To]}],"backdrop-filter":[{"backdrop-filter":["","none",zo,To]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[wo,zo,To]}],"backdrop-contrast":[{"backdrop-contrast":[wo,zo,To]}],"backdrop-grayscale":[{"backdrop-grayscale":["",wo,zo,To]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wo,zo,To]}],"backdrop-invert":[{"backdrop-invert":["",wo,zo,To]}],"backdrop-opacity":[{"backdrop-opacity":[wo,zo,To]}],"backdrop-saturate":[{"backdrop-saturate":[wo,zo,To]}],"backdrop-sepia":[{"backdrop-sepia":["",wo,zo,To]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",zo,To]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[wo,"initial",zo,To]}],ease:[{ease:["linear","initial",y,zo,To]}],delay:[{delay:[wo,zo,To]}],animate:[{animate:["none",g,zo,To]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,zo,To]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[zo,To,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],zoom:[{zoom:[jo,zo,To]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",zo,To]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",zo,To]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[wo,Uo,Do,Fo]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ai=(e,t,r)=>{void 0!==r&&(e[t]=r)},si=(e,t)=>{if(t)for(const r in t)ai(e,r,t[r])},li=(e,t)=>{if(t)for(const r in t)ci(e,t,r)},ci=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(Object(r),!0).forEach(function(t){pi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vi=((e,...t)=>"function"==typeof e?lo(ii,e,...t):lo(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(ai(e,"cacheSize",t),ai(e,"prefix",r),ai(e,"experimentalParseClassName",n),si(e.theme,i.theme),si(e.classGroups,i.classGroups),si(e.conflictingClassGroups,i.conflictingClassGroups),si(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ai(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),ai(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),li(e.theme,o.theme),li(e.classGroups,o.classGroups),li(e.conflictingClassGroups,o.conflictingClassGroups),li(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ci(e,o,"postfixLookupClassGroups"),ci(e,o,"orderSensitiveModifiers"),e))(ii(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?fi(fi({},r),{},{baseClassName:n.slice(3)}):r}});function hi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vi(Ln(t))}const mi=wp.i18n;const yi=function(e){var t=e.lines,r=void 0===t?1:t,n=e.rows,i=void 0===n?1:n,a=e.height,s=void 0===a?"vt-h-4":a,l=e.width,c=void 0===l?"vt-w-[100px]":l,u=e.className,d=e.animate,f=void 0===d||d;return(0,o().jsx)("div",{className:hi("vt-flex vt-flex-col vt-gap-2",u),children:Array.from({length:i}).map(function(e,t){return(0,o().jsx)("div",{className:hi("vt-flex vt-gap-2",c),children:Array.from({length:r}).map(function(e,t){return(0,o().jsx)("div",{className:hi("vt-bg-muted vt-rounded",s,f&&"vt-animate-pulse",t===r-1&&r>1?"vt-w-3/4":"vt-w-full")},t)})},t)})})};var gi={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const bi=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,i=e.size,a=void 0===i?"sm":i,s=e.className;if(!t)return(0,o().jsx)(o().Fragment,{children:n});var l=(0,mi.__)("Loading","versatile-toolkit"),c=r||"".concat(l,"...");return(0,o().jsxs)("div",{className:hi("vt-flex vt-items-center vt-gap-2",s),children:[(0,o().jsx)("div",{className:hi(gi[a],"vt-animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,o().jsx)("span",{children:c})]})};var xi={xs:"vt-w-3 vt-h-3 vt-text-xs",sm:"w-4 h-4 text-sm",md:"vt-w-5 vt-h-5 vt-text-base",lg:"vt-w-6 vt-h-6 vt-text-lg",xl:"vt-w-8 vt-h-8 vt-text-xl"},wi={default:"text-foreground",primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"};const ji=function(e){var t=e.size,r=void 0===t?"sm":t,n=e.variant,i=void 0===n?"muted":n,a=e.className,s=e.text,l=e.showText,c=void 0===l||l,u=s||(0,mi.__)("Loading","versatile-toolkit");return(0,o().jsxs)("div",{className:hi("flex items-center gap-2 py-2",wi[i],a),children:[(0,o().jsx)("div",{className:hi(xi[r],"animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),c&&(0,o().jsxs)("span",{className:xi[r].split(" ")[2],children:[u,"..."]})]})};const _i=function(e){var t=e.className,r=e.animate,n=void 0===r||r;return(0,o().jsxs)("div",{className:hi("space-y-6",t),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center vt-pb-5",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-6",height:"h-6",animate:n}),(0,o().jsx)(yi,{width:"w-48",height:"h-8",animate:n})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-24",height:"h-10",animate:n})]})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-5",animate:n}),(0,o().jsx)("div",{className:"vt-grid vt-grid-cols-6 vt-gap-4",children:Array.from({length:6}).map(function(e,t){return(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)("div",{className:hi("vt-aspect-[4/3] vt-bg-muted vt-rounded-lg vt-border-2",n&&"vt-animate-pulse")}),(0,o().jsx)(yi,{width:"w-16",height:"h-4",animate:n}),(0,o().jsx)(yi,{rows:2,lines:1,width:"w-full",height:"h-3",animate:n}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-6",animate:n}),(0,o().jsx)(yi,{width:"w-14",height:"h-6",animate:n})]})]},t)})}),(0,o().jsx)(yi,{width:"w-80",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10",children:[(0,o().jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(yi,{width:"w-40",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-12",height:"h-6",animate:n})]}),(0,o().jsx)(yi,{width:"w-64",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-72",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-16",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-48",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-20",height:"h-5",animate:n}),(0,o().jsx)(yi,{width:"w-full",height:"h-24",animate:n}),(0,o().jsx)(yi,{width:"w-64",height:"h-4",animate:n})]})]}),(0,o().jsxs)("div",{className:"w-1/2 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-5",animate:n}),(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)(yi,{width:"w-48",height:"h-10",animate:n}),(0,o().jsx)("div",{className:hi("vt-w-40 vt-h-32 vt-bg-muted vt-rounded-lg",n&&"animate-pulse")}),(0,o().jsx)(yi,{width:"w-24",height:"h-4",animate:n}),(0,o().jsx)(yi,{width:"w-80",height:"h-4",animate:n})]}),(0,o().jsx)(yi,{width:"w-72",height:"h-4",animate:n})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(yi,{width:"w-12",height:"h-5",animate:n}),(0,o().jsxs)("div",{className:"vt-space-y-3",children:[(0,o().jsx)(yi,{width:"w-32",height:"h-10",animate:n}),(0,o().jsx)(yi,{width:"w-16",height:"h-4",animate:n})]}),(0,o().jsx)(yi,{width:"w-68",height:"h-4",animate:n})]})]})]})]})};const ki=function(){return(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-justify-center vt-h-full vt-bg-gray-50 vt-rounded-lg vt-border vt-border-gray-200 vt-p-6",children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-2xl vt-shadow-lg vt-p-6 vt-w-72 vt-text-center",children:[(0,o().jsx)("div",{className:"vt-w-16 vt-h-16 vt-bg-gray-200 vt-rounded-full vt-mx-auto vt-mb-4 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-5 vt-bg-gray-300 vt-rounded vt-w-32 vt-mx-auto vt-mb-2 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-gray-200 vt-rounded vt-w-40 vt-mx-auto vt-mb-1 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-gray-100 vt-rounded vt-w-36 vt-mx-auto vt-animate-pulse"})]})})};var Si=Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function Oi(e){var t=e.columns,r=void 0===t?Si:t,n=e.rows,i=void 0===n?10:n,a=e.className,s=void 0===a?"":a,l=e.animate,c=void 0===l||l,u=function(e){switch(e){case"id":return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-6"});case"type":return(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-full vt-w-16"});case"message":return(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-full"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-3/4"})]});case"timestamp":return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-32"});case"actions":return(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-200 vt-rounded-lg vt-w-[80%]"});default:return(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-w-24"})}};return(0,o().jsx)(o().Fragment,{children:Array.from({length:i}).map(function(e,t){return(0,o().jsx)("tr",{className:"vt-border-t vt-border-slate-100 ".concat(c?"vt-animate-pulse":""," ").concat(s),children:r.map(function(e,r){return(0,o().jsx)("td",{className:"vt-px-4 vt-py-3",children:u(e.label||e.key)},"skeleton-".concat(t,"-").concat(r))})},"skeleton-".concat(t))})})}function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}var Pi=["className"],Ci=["className"],Ei=["className"],Ri=["className"],Ai=["className"],Ti=["className"];function Di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(r),!0).forEach(function(t){Ii(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Di(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ii(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ni(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ni(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Li=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Pi);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Li.displayName="Card";var Vi=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ci);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});Vi.displayName="CardHeader";var $i=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ei);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});$i.displayName="CardTitle",a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ri);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var zi=a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ai);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-p-4",r)},n))});function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ui(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ui(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}zi.displayName="CardContent",a().forwardRef(function(e,t){var r=e.className,n=Mi(e,Ti);return(0,o().jsx)("div",Fi({ref:t,className:hi("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Bi=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(r),!0).forEach(function(t){Wi(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qi(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Hi=Bi,Gi=a().createContext(!1);Gi.Provider;function Zi(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Ki=a().createContext(Zi());function Qi(e,t,r){const n=a().useContext(Gi),o=a().useContext(Ki),i=Fn(r),s=i.defaultQueryOptions(e),l=i.getQueryCache().get(s.queryHash);const c=!1!==e.subscribed;s._optimisticResults=n?"isRestoring":c?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(s),((e,t,r)=>{const n="error"===r?.state.status&&"function"==typeof e.throwOnError?cn(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||n)&&(t.isReset()||(e.retryOnMount=!1))})(s,o,l),(e=>{a().useEffect(()=>{e.clearReset()},[e])})(o);const[u]=a().useState(()=>new t(i,s)),d=u.getOptimisticResult(s);a().useEffect(()=>{u.setOptions(s)},[s,u]);const f=!n&&c;if(a().useSyncExternalStore(a().useCallback(e=>{const t=f?u.subscribe(vn.batchCalls(e)):Ur;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),((e,t)=>e?.suspense&&t.isPending)(s,d))throw((e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}))(s,u,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||cn(r,[e.error,n])))({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:l,suspense:s.suspense}))throw d.error;return s.notifyOnChangeProps?d:u.trackResult(d)}var Ji=class extends dn{#s;#_=void 0;#k=void 0;#S=void 0;#O;#N;#P;#C;#E;#R;#A;#T;#D;#F=new Set;constructor(e,t){super(),this.options=t,this.#s=e,this.#P=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#_.addObserver(this),Yi(this.#_,this.options)?this.#I():this.updateResult(),this.#M())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xi(this.#_,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xi(this.#_,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#V(),this.#_.removeObserver(this)}setOptions(e){const t=this.options,r=this.#_;if(this.options=this.#s.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Br(this.options.enabled,this.#_))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#$(),this.#_.setOptions(this.options),t._defaulted&&!Xr(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#_,observer:this});const n=this.hasListeners();n&&ea(this.#_,r,this.options,t)&&this.#I(),this.updateResult(),!n||this.#_===r&&Br(this.options.enabled,this.#_)===Br(t.enabled,this.#_)&&Br(this.options.staleTime,this.#_)===Br(t.staleTime,this.#_)||this.#z();const o=this.#U();!n||this.#_===r&&Br(this.options.enabled,this.#_)===Br(t.enabled,this.#_)&&o===this.#D||this.#q(o)}getOptimisticResult(e){const t=this.#s.getQueryCache().build(this.#s,e),r=this.createResult(t,e);return Xr(this.getCurrentResult(),r)||(this.#S=r,this.#N=this.options,this.#O=this.#_.state),r}getCurrentResult(){return this.#S}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#_}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#s.defaultQueryOptions(e),r=this.#s.getQueryCache().build(this.#s,t);let n,o=()=>{};const i=new Promise(e=>{n=e,o=this.#s.getQueryCache().subscribe(n=>{"updated"===n.type&&n.query.queryHash===r.queryHash&&void 0!==r.state.data&&(o(),e(this.createResult(r,t)))})});return Promise.race([r.fetch(t).then(()=>{const e=this.createResult(r,t);return n?.(e),e}).finally(()=>{o()}),i])}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#S))}#I(e){this.#$();let t=this.#_.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ur)),t}#W(e){return!yn()&&!1!==Br(this.options.enabled,this.#_)&&qr(e)}#z(){this.#L();const e=Br(this.options.staleTime,this.#_);if(this.#S.isStale||!this.#W(e))return;const t=Wr(this.#S.dataUpdatedAt,e)+1;this.#A=$r.setTimeout(()=>{this.#S.isStale||this.updateResult()},t)}#U(){return Br(this.options.refetchInterval,this.#_)??!1}#q(e){this.#V(),this.#D=e,0!==this.#D&&this.#W(this.#D)&&(this.#T=$r.setInterval(()=>{(this.options.refetchIntervalInBackground||fn.isFocused())&&this.#I()},this.#D))}#M(){this.#z(),this.#q(this.#U())}#L(){void 0!==this.#A&&($r.clearTimeout(this.#A),this.#A=void 0)}#V(){void 0!==this.#T&&($r.clearInterval(this.#T),this.#T=void 0)}createResult(e,t){const r=this.#_,n=this.options,o=this.#S,i=this.#O,a=this.#N,s=e!==r?e.state:this.#k,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&Yi(e,t),a=o&&ea(e,r,t,n);(i||a)&&(u={...u,...En(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:v}=u;c=u.data;let h=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===v){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,h=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#R?.state.data,this.#R):t.placeholderData,void 0!==e&&(v="success",c=nn(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!h)if(o&&c===i?.data&&t.select===this.#C)c=this.#E;else try{this.#C=t.select,c=t.select(c),c=nn(o?.data,c,t),this.#E=c,this.#P=null}catch(e){this.#P=e}else void 0===c&&(this.#P=null);this.#P&&(f=this.#P,c=this.#E,p=o?.error===f?o.errorUpdatedAt:Date.now(),v="error",d=!1);const m="fetching"===u.fetchStatus,y="pending"===v,g="error"===v,b=y&&m,x=void 0!==c;return{status:v,fetchStatus:u.fetchStatus,isPending:y,isSuccess:"success"===v,isError:g,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:g&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:g&&x,isStale:ta(e,t),refetch:this.refetch,isEnabled:!1!==Br(t.enabled,e)}}updateResult(){const e=this.#S,t=this.createResult(this.#_,this.options);if(this.#O=this.#_.state,this.#N=this.options,void 0!==this.#O.data&&(this.#R=this.#_),Xr(t,e))return;this.#S=t;const r=(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#F.size)return!0;if(this.options.throwOnError&&this.#S.error!==e.error)return!0;for(const t of r??this.#F)if(this.#S[t]!==e[t])return!0;return!1})();vn.batch(()=>{r&&this.listeners.forEach(e=>{e(this.#S)}),this.#s.getQueryCache().notify({query:this.#_,type:"observerResultsUpdated"})})}#$(){const e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#_)return;const t=this.#_;this.#_=e,this.#k=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#M()}};function Yi(e,t){return function(e,t){return!1!==Br(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===Br(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Xi(e,t,t.refetchOnMount)}function Xi(e,t,r){if(!1!==Br(t.enabled,e)&&"static"!==Br(t.staleTime,e)){const n=Br(r,e);return"always"===n||!1!==n&&ta(e,t)}return!1}function ea(e,t,r,n){return(e!==t||!1===Br(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&ta(e,r)}function ta(e,t){return!1!==Br(t.enabled,e)&&e.isStaleByTime(Br(t.staleTime,e))}function ra(e,t){return Qi(e,Ji,t)}var na=class extends dn{#s;#S=void 0;#B;#H;constructor(e,t){super(),this.#s=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#s.defaultMutationOptions(e),Xr(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#B,observer:this}),t?.mutationKey&&this.options.mutationKey&&Kr(t.mutationKey)!==Kr(this.options.mutationKey)?this.reset():"pending"===this.#B?.state.status&&this.#B.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#B&&(this.#B.addObserver(this),this.#G())}onUnsubscribe(){this.hasListeners()||this.#B?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#Z(e)}getCurrentResult(){return this.#S}reset(){this.#B?.removeObserver(this),this.#B=void 0,this.#G(),this.#Z()}mutate(e,t){return this.#H=t,this.#B?.removeObserver(this),this.#B=this.#s.getMutationCache().build(this.#s,this.options),this.#B.addObserver(this),this.#B.execute(e)}#G(){const e=this.#B?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#S={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Z(e){vn.batch(()=>{const t=this.#H;if(t&&this.hasListeners()){const r=this.#S.variables,n=this.#S.context,o={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{t.onSuccess?.(e.data,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,r,n,o)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{t.onError?.(e.error,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,r,n,o)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#S)})})}};function oa(e,t){const r=Fn(t),[n]=a().useState(()=>new na(r,e));a().useEffect(()=>{n.setOptions(e)},[n,e]);const o=a().useSyncExternalStore(a().useCallback(e=>n.subscribe(vn.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=a().useCallback((...e)=>{n.mutate(e[0],e[1]).catch(Ur)},[n]);if(o.error&&cn(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function ia(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return aa(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(aa(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,aa(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,aa(d,"constructor",c),aa(c,"constructor",l),l.displayName="GeneratorFunction",aa(c,o,"GeneratorFunction"),aa(d),aa(d,o,"Generator"),aa(d,n,function(){return this}),aa(d,"toString",function(){return"[object Generator]"}),(ia=function(){return{w:i,m:f}})()}function aa(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}aa=function(e,t,r,n){function i(t,r){aa(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},aa(e,t,r,n)}function sa(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function la(e){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la(e)}var ca=function(e){return e instanceof File||e instanceof Blob},ua=function(e){return"string"==typeof e},da=function(e){return"boolean"==typeof e},fa=function(e){return"number"==typeof e},pa=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){ca(e)||ua(e)?t.append("".concat(r,"[").concat(n,"]"),e):da(e)||fa(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===la(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):ca(i)||ua(i)?t.append(r,i):da(i)?t.append(r,i.toString()):fa(i)?t.append(r,"".concat(i)):"object"===la(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t},va=function(e){return new Promise(function(t,r){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(function(){return t()}).catch(function(e){return r(e)});else{var n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select();try{document.execCommand("copy"),t()}catch(e){r(e)}finally{document.body.removeChild(n)}}})},ha=function(){var e,t=(e=ia().m(function e(t){return ia().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,va(t);case 1:Lr.success((0,mi.__)("URL copied to clipboard!","versatile-toolkit")),e.n=3;break;case 2:e.p=2,e.v,Lr.error((0,mi.__)("Failed to copy URL","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sa(i,n,o,a,s,"next",e)}function s(e){sa(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function ma(e){return ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ma(e)}function ya(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ga(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ga(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ga(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ga(d,"constructor",c),ga(c,"constructor",l),l.displayName="GeneratorFunction",ga(c,o,"GeneratorFunction"),ga(d),ga(d,o,"Generator"),ga(d,n,function(){return this}),ga(d,"toString",function(){return"[object Generator]"}),(ya=function(){return{w:i,m:f}})()}function ga(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ga=function(e,t,r,n){function i(t,r){ga(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ga(e,t,r,n)}function ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(r),!0).forEach(function(t){wa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ma(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ma(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ma(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ja(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function _a(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ja(i,n,o,a,s,"next",e)}function s(e){ja(i,n,o,a,s,"throw",e)}a(void 0)})}}function ka(e,t){return Sa.apply(this,arguments)}function Sa(){return Sa=_a(ya().m(function e(t,r){var n,o,i,a,s,l,c,u,d,f,p,v,h;return ya().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Hi.wp_rest_nonce,i=Hi.nonce_key,a=Hi.nonce_value,s="".concat(t),l=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",c=xa({"X-WP-Nonce":o},r.headers||{}),u={method:l,headers:c},["GET","DELETE"].includes(l)?((d=new URLSearchParams(null==r?void 0:r.body)).append(i,a),s+="?".concat(d.toString())):r.body&&((f=pa(r.body)).append(i,a),u.body=f),e.p=1,e.n=2,fetch(s,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(v=e.v).status_code){e.n=4;break}return e.a(2,v);case 4:throw new Error(v.message);case 5:e.n=7;break;case 6:throw e.p=6,h=e.v,new Error((null==h?void 0:h.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Sa.apply(this,arguments)}function Oa(e,t){return Na.apply(this,arguments)}function Na(){return Na=_a(ya().m(function e(t,r){var n,o,i,a,s,l,c,u,d;return ya().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=Hi.wp_rest_nonce,o=Hi.nonce_key,i=Hi.nonce_value,a="".concat(t),s={method:r.method||"POST",headers:xa({"X-WP-Nonce":n},r.headers||{}),body:r.body},r.body&&((l=pa(r.body)).append(o,i),s.body=l),e.p=1,e.n=2,fetch(a,s);case 2:return c=e.v,e.n=3,c.json();case 3:if(200!==(u=e.v).status_code){e.n=4;break}return e.a(2,u);case 4:throw new Error(u.message);case 5:e.n=7;break;case 6:throw e.p=6,d=e.v,new Error((null==d?void 0:d.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Na.apply(this,arguments)}function Pa(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Ca(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Ca(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ca(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ca(d,"constructor",c),Ca(c,"constructor",l),l.displayName="GeneratorFunction",Ca(c,o,"GeneratorFunction"),Ca(d),Ca(d,o,"Generator"),Ca(d,n,function(){return this}),Ca(d,"toString",function(){return"[object Generator]"}),(Pa=function(){return{w:i,m:f}})()}function Ca(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ca=function(e,t,r,n){function i(t,r){Ca(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Ca(e,t,r,n)}function Ea(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ra(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Ea(i,n,o,a,s,"next",e)}function s(e){Ea(i,n,o,a,s,"throw",e)}a(void 0)})}}var Aa=function(){return ra({queryKey:["getMoodInfo"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_mood_info",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Ta=function(){return ra({queryKey:["getEnableServiceList"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_enable_service_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};function Da(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fa(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ia=function(){var e=Ta(),t=e.data,r=e.isLoading,n=null==t?void 0:t.data;return(0,o().jsx)(o().Fragment,{children:(0,o().jsx)("div",{className:"vt-mt-10 vt-grid vt-grid-cols-[repeat(auto-fill,minmax(300px,1fr))] vt-gap-3",children:r?(0,o().jsx)(yi,{lines:3,height:"vt-h-[100px]",width:"vt-w-[900px]"}):n&&Object.entries(n).filter(function(e){var t=Da(e,2),r=t[0];return t[1].enable&&"quickact"!==r}).map(function(e){var t=Da(e,2),r=t[0],n=t[1];return(0,o().jsx)(Li,{className:"hover:vt-bg-gray-100 vt-rounded-sm",children:(0,o().jsxs)(Tt,{to:"/".concat(n.path),className:"vt-block vt-p-3",children:[(0,o().jsx)(Vi,{className:"vt-p-0",children:(0,o().jsx)($i,{className:"vt-text-xl",children:n.label})}),(0,o().jsx)(zi,{className:"vt-p-0 vt-pt-2",children:(0,o().jsx)("p",{children:n.description})})]})},r)})})})};var Ma=Object.defineProperty,La=(e,t)=>Ma(e,"name",{value:t,configurable:!0});function Va(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function $a(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Va(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Va(e[t],null)}}}}function za(...e){return a().useCallback($a(...e),e)}La(Va,"setRef"),La($a,"composeRefs"),La(za,"useComposedRefs");var Ua=Object.defineProperty,qa=(e,t)=>Ua(e,"name",{value:t,configurable:!0});function Wa(e){const t=a().forwardRef((t,r)=>{let{children:n,...o}=t,i=null,s=!1;const l=[];n=ts(n),a().Children.forEach(n,e=>{if(Ja(e)){s=!0;const t=e;let r="child"in t.props?t.props.child:t.props.children;for(;Xa(r)&&"function"==typeof is;)r=is(r._payload);i=Za(t,r),l.push(i?.props?.children)}else l.push(e)}),i?i=a().cloneElement(i,void 0,l):!s&&1===a().Children.count(n)&&a().isValidElement(n)&&(i=n);const c=i?Qa(i):void 0,u=za(r,c);if(!i){if(n||0===n)throw new Error(s?os(e):ns(e));return n}const d=Ka(o,i.props??{});return i.type!==a().Fragment&&(d.ref=r?u:c),a().cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}qa(Wa,"createSlot");var Ba=Wa("Slot"),Ha=Symbol.for("radix.slottable");function Ga(e){const t=qa(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Ha,t}qa(Ga,"createSlottable");var Za=qa((e,t)=>"child"in e.props?a().isValidElement(t)?a().cloneElement(t,void 0,e.props.children(t.props.children)):null:a().isValidElement(t)?t:null,"getSlottableElementFromSlottable");function Ka(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n?r[n]=[o,i].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=rs(i,o))}return{...e,...r}}function Qa(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ja(e){return a().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ha}qa(Ka,"mergeProps"),qa(Qa,"getElementRef"),qa(Ja,"isSlottable");var Ya=Symbol.for("react.lazy");function Xa(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Ya&&"_payload"in e&&es(e._payload)}function es(e){return"object"==typeof e&&null!==e&&"then"in e}function ts(e){let t=e;for(;Xa(t)&&"function"==typeof is;)t=is(t._payload);return t}function rs(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}qa(Xa,"isLazyComponent"),qa(es,"isPromiseLike"),qa(ts,"useUnwrappedLazy"),qa(rs,"concatAriaDescribedby");var ns=qa(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),os=qa(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),is=l()[" use ".trim().toString()];const as=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,ss=Ln,ls=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return ss(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=as(t)||as(n);return o[e][a]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):{...i,...s}[t]===r})?[...e,r,n]:e},[]);return ss(e,a,l,null==r?void 0:r.class,null==r?void 0:r.className)};function cs(e){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(e)}var us=["className","variant","size","asChild"];function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=cs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ps=ls("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),vs=a().forwardRef(function(e,t){var r=e.className,n=e.variant,i=e.size,a=e.asChild,s=void 0!==a&&a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,us),c=s?Ba:"button";return(0,o().jsx)(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(t){fs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi(ps({variant:n,size:i,className:r})),ref:t},l))});function hs(e){return hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hs(e)}vs.displayName="Button";var ms=["className","variant"];function ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=hs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bs=ls("vt-inline-flex vt-items-center vt-rounded-full vt-px-2.5 vt-py-0.5 vt-text-xs vt-font-semibold vt-transition-colors focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground hover:vt-bg-primary/80",success:"vt-bg-green-100 vt-text-green-800 hover:vt-bg-green-200/80",destructive:"vt-bg-destructive vt-text-destructive-foreground hover:vt-bg-destructive/80",outline:"vt-text-foreground vt-border vt-border-input vt-bg-background hover:vt-bg-accent hover:vt-text-accent-foreground"}},defaultVariants:{variant:"default"}});function xs(e){var t=e.className,r=e.variant,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ms);return(0,o().jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(r),!0).forEach(function(t){gs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi(bs({variant:r}),t)},n))}var ws=.999,js=/[\\\/_+.#"@\[\(\{&]/,_s=/[\\\/_+.#"@\[\(\{&]/g,ks=/[\s-]/,Ss=/[\s-]/g;function Os(e,t,r,n,o,i,a){if(i===t.length)return o===e.length?1:.99;var s=`${o},${i}`;if(void 0!==a[s])return a[s];for(var l,c,u,d,f=n.charAt(i),p=r.indexOf(f,o),v=0;p>=0;)(l=Os(e,t,r,n,p+1,i+1,a))>v&&(p===o?l*=1:js.test(e.charAt(p-1))?(l*=.8,(u=e.slice(o,p-1).match(_s))&&o>0&&(l*=Math.pow(ws,u.length))):ks.test(e.charAt(p-1))?(l*=.9,(d=e.slice(o,p-1).match(Ss))&&o>0&&(l*=Math.pow(ws,d.length))):(l*=.17,o>0&&(l*=Math.pow(ws,p-o))),e.charAt(p)!==t.charAt(i)&&(l*=.9999)),(l<.1&&r.charAt(p-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(p-1)!==n.charAt(i))&&(.1*(c=Os(e,t,r,n,p+1,i+2,a))>l&&(l=.1*c)),l>v&&(v=l),p=r.indexOf(f,p+1);return a[s]=v,v}function Ns(e){return e.toLowerCase().replace(Ss," ")}function Ps(e,t,r){return Os(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,Ns(e),Ns(t),0,0,{})}var Cs=Object.defineProperty,Es=(e,t)=>Cs(e,"name",{value:t,configurable:!0}),Rs=!("undefined"==typeof window||!window.document||!window.document.createElement);function As(e,t,{checkForDefaultPrevented:r=!0}={}){return Es(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function Ts(e){if(!Rs)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function Ds(e){return"IFRAME"===e.tagName}Es(As,"composeEventHandlers"),Es(function(e){if(!Rs)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Es(Ts,"getOwnerDocument"),Es(function e(t,r=!1){const{activeElement:n}=Ts(t);if(!n?.nodeName)return null;if(Ds(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){const e=n.getAttribute("aria-activedescendant");if(e){const t=Ts(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),Es(Ds,"isFrame");var Fs=Object.defineProperty,Is=(e,t)=>Fs(e,"name",{value:t,configurable:!0});function Ms(e,t=[]){let r=[];function n(t,n){const i=a().createContext(n);i.displayName=t+"Context";const s=r.length;r=[...r,n];const l=Is(t=>{const{scope:r,children:n,...l}=t,c=r?.[e]?.[s]||i,u=a().useMemo(()=>l,Object.values(l));return(0,o().jsx)(c.Provider,{value:u,children:n})},"Provider");function c(r,o,l={}){const{optional:c=!1}=l,u=o?.[e]?.[s]||i,d=a().useContext(u);if(d)return d;if(void 0!==n)return n;if(!c)throw new Error(`\`${r}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",Is(c,"useContext"),[l,c]}Is(n,"createContext");const i=Is(()=>{const t=r.map(e=>a().createContext(e));return Is(function(r){const n=r?.[e]||t;return a().useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return i.scopeName=e,[n,Ls(i,...t)]}function Ls(...e){const t=e[0];if(1===e.length)return t;const r=Is(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Is(function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return a().useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}Is(function(e,t){const r=a().createContext(t);r.displayName=e+"Context";const n=Is(e=>{const{children:t,...n}=e,i=a().useMemo(()=>n,Object.values(n));return(0,o().jsx)(r.Provider,{value:i,children:t})},"Provider");function i(n,o={}){const{optional:i=!1}=o,s=a().useContext(r);if(s)return s;if(void 0!==t)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",Is(i,"useContext"),[n,i]},"createContext"),Is(Ms,"createContextScope"),Is(Ls,"composeContextScopes");var Vs=globalThis?.document?a().useLayoutEffect:()=>{},$s=Object.defineProperty,zs=l()[" useId ".trim().toString()]||(()=>{}),Us=0;function qs(e){const[t,r]=a().useState(zs());return Vs(()=>{e||r(e=>e??String(Us++))},[e]),e||(t?`radix-${t}`:"")}$s(qs,"name",{value:"useId",configurable:!0});var Ws=Object.defineProperty,Bs=l()[" useEffectEvent ".trim().toString()],Hs=l()[" useInsertionEffect ".trim().toString()];function Gs(e){if("function"==typeof Bs)return Bs(e);const t=a().useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof Hs?Hs(()=>{t.current=e}):Vs(()=>{t.current=e}),a().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{Ws(e,"name",{value:t,configurable:!0})})(Gs,"useEffectEvent");var Zs=Object.defineProperty,Ks=(e,t)=>Zs(e,"name",{value:t,configurable:!0}),Qs=l()[" useInsertionEffect ".trim().toString()]||Vs;function Js({prop:e,defaultProp:t,onChange:r=Ks(()=>{},"onChange"),caller:n}){const[o,i,s]=Ys({defaultProp:t,onChange:r}),l=void 0!==e;return[l?e:o,a().useCallback(t=>{if(l){const r=Xs(t)?t(e):t;r!==e&&s.current?.(r)}else i(t)},[l,e,i,s])]}function Ys({defaultProp:e,onChange:t}){const[r,n]=a().useState(e),o=a().useRef(r),i=a().useRef(t);return Qs(()=>{i.current=t},[t]),a().useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function Xs(e){return"function"==typeof e}Ks(Js,"useControllableState"),Ks(Ys,"useUncontrolledState"),Ks(Xs,"isFunction");var el=Symbol("RADIX:SYNC_STATE");Ks(function(e,t,r,n){const{prop:o,defaultProp:i,onChange:s,caller:l}=t,c=void 0!==o,u=Gs(s),d=[{...r,state:i}];n&&d.push(n);const[f,p]=a().useReducer((t,r)=>{if(r.type===el)return{...t,state:r.state};const n=e(t,r);return c&&!Object.is(n.state,t.state)&&u(n.state),n},...d),v=f.state,h=a().useRef(v);a().useEffect(()=>{h.current!==v&&(h.current=v,c||u(v))},[v,h,c]);const m=a().useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return a().useEffect(()=>{c&&!Object.is(o,f.state)&&p({type:el,state:o})},[o,f.state,c]),[m,p]},"useControllableStateReducer");var tl=Object.defineProperty,rl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Wa(`Primitive.${t}`),n=a().forwardRef((e,n)=>{const{asChild:i,...a}=e,s=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o().jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function nl(e,t){e&&s().flushSync(()=>e.dispatchEvent(t))}((e,t)=>{tl(e,"name",{value:t,configurable:!0})})(nl,"dispatchDiscreteCustomEvent");var ol=Object.defineProperty,il=l()[" useInsertionEffect ".trim().toString()];function al(e){const t=a().useRef(e);return"function"==typeof il?il(()=>{t.current=e}):Vs(()=>{t.current=e}),a().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{ol(e,"name",{value:t,configurable:!0})})(al,"useCallbackRef");var sl,ll=Object.defineProperty,cl=(e,t)=>ll(e,"name",{value:t,configurable:!0}),ul="dismissableLayer.update",dl=a().createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),fl=a().forwardRef(cl(function(e,t){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...d}=e,f=a().useContext(dl),[p,v]=a().useState(null),h=p?.ownerDocument??globalThis?.document,[,m]=a().useState({}),y=za(t,v),g=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?g.indexOf(b):-1,w=p?g.indexOf(p):-1,j=f.layersWithOutsidePointerEventsDisabled.size>0,_=w>=x,k=a().useRef(!1),S=hl(e=>{s?.(e),c?.(e),e.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:a().useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...f.branches].some(t=>t.contains(e));return _&&!t},[f.branches,_])}),O=ml(e=>{if(n&&k.current)return;const t=e.target;[...f.branches].some(e=>e.contains(t))||(l?.(e),c?.(e),e.defaultPrevented||u?.())},h),N=!!p&&w===g.length-1,P=al(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return a().useEffect(()=>{if(N)return h.addEventListener("keydown",P,{capture:!0}),()=>h.removeEventListener("keydown",P,{capture:!0})},[h,N,P]),a().useEffect(()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(sl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),yl(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=sl))}},[p,h,r,f]),a().useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),yl())},[p,f]),a().useEffect(()=>{const e=cl(()=>m({}),"handleUpdate");return document.addEventListener(ul,e),()=>document.removeEventListener(ul,e)},[]),(0,o().jsx)(rl.div,{...d,ref:y,style:{pointerEvents:j?_?"auto":"none":void 0,...e.style},onFocusCapture:As(e.onFocusCapture,O.onFocusCapture),onBlurCapture:As(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:As(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));function pl(){const e=a().useContext(dl),[t,r]=a().useState(null);return a().useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}cl(pl,"useDismissableLayerSurface");var vl=cl(()=>!0,"IS_TRUE");function hl(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=vl}=t,l=al(e),c=a().useRef(!1),u=a().useRef(!1),d=a().useRef(new Map),f=a().useRef(()=>{});return a().useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function a(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}cl(e,"resetOutsideInteraction"),cl(t,"isOutsideInteractionIntercepted"),cl(a,"handleInteractionCapture"),cl(p,"handleInteractionBubble");const v=cl(i=>{if(i.target&&!c.current){let a=function(){r.removeEventListener("click",f.current);const n=t();e(),n||gl("dismissableLayer.pointerDownOutside",l,p,{discrete:!0})};if(cl(a,"handleAndDispatchPointerDownOutsideEvent"),!s(i.target))return r.removeEventListener("click",f.current),e(),void(c.current=!1);const p={originalEvent:i};u.current=!0,o.current=n&&0===i.button,d.current.clear(),n&&0===i.button?(r.removeEventListener("click",f.current),f.current=a,r.addEventListener("click",f.current,{once:!0})):a()}else r.removeEventListener("click",f.current),e();c.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of h)r.addEventListener(e,a,!0),r.addEventListener(e,p);const m=window.setTimeout(()=>{r.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",v),r.removeEventListener("click",f.current);for(const e of h)r.removeEventListener(e,a,!0),r.removeEventListener(e,p)}},[r,l,n,o,i,s]),{onPointerDownCapture:cl(()=>c.current=!0,"onPointerDownCapture")}}function ml(e,t=globalThis?.document){const r=al(e),n=a().useRef(!1);return a().useEffect(()=>{const e=cl(e=>{if(e.target&&!n.current){gl("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:cl(()=>n.current=!0,"onFocusCapture"),onBlurCapture:cl(()=>n.current=!1,"onBlurCapture")}}function yl(){const e=new CustomEvent(ul);document.dispatchEvent(e)}function gl(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?nl(o,i):o.dispatchEvent(i)}cl(hl,"usePointerDownOutside"),cl(ml,"useFocusOutside"),cl(yl,"dispatchUpdate"),cl(gl,"handleAndDispatchCustomEvent");var bl=Object.defineProperty,xl=(e,t)=>bl(e,"name",{value:t,configurable:!0}),wl="focusScope.autoFocusOnMount",jl="focusScope.autoFocusOnUnmount",_l={bubbles:!1,cancelable:!0},kl=a().forwardRef(xl(function(e,t){const{loop:r=!1,trapped:n=!1,branches:i,onMountAutoFocus:s,onUnmountAutoFocus:l,...c}=e,[u,d]=a().useState(null),f=al(s),p=al(l),v=a().useRef(null),h=za(t,d),m=a().useRef(i);a().useEffect(()=>{m.current=i});const y=a().useCallback(e=>!!e&&(!!u?.contains(e)||Boolean(m.current?.some(t=>t.contains(e)))),[u]),g=a().useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a().useEffect(()=>{if(n){let e=function(e){if(g.paused||!u)return;const t=e.target;y(t)?v.current=t:Fl(v.current,{select:!0})},t=function(e){if(g.paused||!u)return;const t=e.relatedTarget;null!==t&&(y(t)||Fl(v.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Fl(u)};xl(e,"handleFocusIn"),xl(t,"handleFocusOut"),xl(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,u,g.paused,y]),a().useEffect(()=>{if(u){Il.add(g);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(wl,_l);u.addEventListener(wl,f),u.dispatchEvent(t),t.defaultPrevented||(Cl(Vl(Rl(u)),{select:!0}),document.activeElement===e&&Fl(u))}return()=>{u.removeEventListener(wl,f);const t=u.ownerDocument,r=CustomEvent;setTimeout(()=>{const n=new r(jl,_l);u.addEventListener(jl,p),u.dispatchEvent(n),n.defaultPrevented||Fl(e??t.body,{select:!0}),u.removeEventListener(jl,p),Il.remove(g)},0)}}},[u,f,p,g]);const b=a().useCallback(e=>{if(!r&&!n)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=El(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&Fl(i,{select:!0})):(e.preventDefault(),r&&Fl(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,g.paused]);return(0,o().jsx)(rl.div,{tabIndex:-1,...c,ref:h,onKeyDown:b})},"FocusScope")),Sl=a().createContext(null);function Ol({registry:e,children:t}){return e?(0,o().jsx)(Sl.Provider,{value:e,children:t}):t}function Nl(){const[e,t]=a().useState([]);return{nodes:e,registry:a().useMemo(()=>({add:xl(e=>t(t=>t.includes(e)?t:[...t,e]),"add"),remove:xl(e=>t(t=>t.filter(t=>t!==e)),"remove")}),[])}}function Pl(e){const t=a().useContext(Sl);a().useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}function Cl(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Fl(n,{select:t}),document.activeElement!==r)return}function El(e){const t=Rl(e);return[Al(t,e),Al(t.reverse(),e)]}function Rl(e){const t=[],r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xl(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function Al(e,t){const r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e){if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):Tl(n,{upTo:t})))return n}}function Tl(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Dl(e){return"INPUT"===e.tagName&&"function"==typeof e.select}function Fl(e,{select:t=!1}={}){if(e&&e.focus){const r=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==r&&Dl(e)&&t&&e.select()}}xl(Ol,"FocusScopeBranchProvider"),xl(Nl,"useFocusScopeBranchRegistry"),xl(Pl,"useFocusScopeBranch"),xl(Cl,"focusFirst"),xl(El,"getTabbableEdges"),xl(Rl,"getTabbableCandidates"),xl(Al,"findVisible"),xl(Tl,"isHidden"),xl(Dl,"isSelectableInput"),xl(Fl,"focus");var Il=Ml();function Ml(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Ll(e,t),e.unshift(t)},remove(t){e=Ll(e,t),e[0]?.resume()}}}function Ll(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function Vl(e){return e.filter(e=>"A"!==e.tagName)}xl(Ml,"createFocusScopesStack"),xl(Ll,"arrayRemove"),xl(Vl,"removeLinks");var $l=Object.defineProperty,zl=(e,t)=>$l(e,"name",{value:t,configurable:!0}),Ul=a().forwardRef(zl(function(e,t){const{container:r,...n}=e,[i,l]=a().useState(!1);Vs(()=>l(!0),[]);const c=r||i&&globalThis?.document?.body;return c?s().createPortal((0,o().jsx)(rl.div,{...n,ref:t}),c):null},"Portal")),ql=Object.defineProperty,Wl=(e,t)=>ql(e,"name",{value:t,configurable:!0});function Bl(e,t){return a().useReducer((e,r)=>t[e][r]??e,e)}Wl(Bl,"useStateMachine");var Hl=Wl(e=>{const{present:t,children:r}=e,n=Gl(t),o="function"==typeof r?r({present:n.isPresent}):a().Children.only(r),i=Kl(n.ref,Jl(o));return"function"==typeof r||n.isPresent?a().cloneElement(o,{ref:i}):null},"Presence");function Gl(e){const[t,r]=a().useState(),n=a().useRef(null),o=a().useRef(e),i=a().useRef("none"),s=a().useRef(void 0),l=e?"mounted":"unmounted",[c,u]=Bl(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a().useEffect(()=>{"mounted"===c?(i.current=s.current??Ql(n.current),s.current=void 0):i.current="none"},[c]),Vs(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,a=Ql(t);if(e)s.current=a,u("MOUNT");else if("none"===a||"none"===t?.display)u("UNMOUNT");else{u(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),Vs(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,a=Wl(i=>{const a=Ql(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),s=Wl(e=>{e.target===t&&(i.current=Ql(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a().useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,s.current=Ql(t)}else n.current=null;r(e)},[])}}function Zl(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Kl(...e){const t=a().useRef(e);return t.current=e,a().useCallback(e=>{const r=t.current;let n=!1;const o=r.map(t=>{const r=Zl(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():Zl(r[e],null)}}},[])}function Ql(e){return e?.animationName||"none"}function Jl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}Wl(Gl,"usePresence"),Wl(Zl,"setRef"),Wl(Kl,"useStableComposedRefs"),Wl(Ql,"getAnimationName"),Wl(Jl,"getElementRef");var Yl=Object.defineProperty,Xl=(e,t)=>Yl(e,"name",{value:t,configurable:!0}),ec=0,tc=null;function rc(){a().useEffect(()=>{tc||(tc={start:nc(),end:nc()});const{start:e,end:t}=tc;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ec++,()=>{1===ec&&(tc?.start.remove(),tc?.end.remove(),tc=null),ec=Math.max(0,ec-1)}},[])}function nc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Xl(function(e){return rc(),e.children},"FocusGuards"),Xl(rc,"useFocusGuards"),Xl(nc,"createFocusGuard");var oc=function(){return oc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oc.apply(this,arguments)};function ic(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function ac(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var sc="right-scroll-bar-position",lc="width-before-scroll-bar";function cc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var uc="undefined"!=typeof window?a().useLayoutEffect:a().useEffect,dc=new WeakMap;function fc(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return cc(e,t)})},o=(0,a().useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0],o.callback=n,o.facade);return uc(function(){var t=dc.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||cc(e,null)}),n.forEach(function(e){r.has(e)||cc(e,o)})}dc.set(i,e)},[e]),i}function pc(e){return e}function vc(e,t){void 0===t&&(t=pc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return o}var hc=function(e){void 0===e&&(e={});var t=vc(null);return t.options=oc({async:!0,ssr:!1},e),t}(),mc=function(){},yc=a().forwardRef(function(e,t){var r=a().useRef(null),n=a().useState({onScrollCapture:mc,onWheelCapture:mc,onTouchMoveCapture:mc}),o=n[0],i=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,x=e.gapMode,w=ic(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,_=fc([r,t]),k=oc(oc({},w),o);return a().createElement(a().Fragment,null,d&&a().createElement(j,{sideCar:hc,removeScrollBar:u,shards:f,noRelative:v,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:x}),s?a().cloneElement(a().Children.only(l),oc(oc({},k),{ref:_})):a().createElement(b,oc({},k,{className:c,ref:_}),l))});yc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yc.classNames={fullWidth:lc,zeroRight:sc};var gc,bc=function(e){var t=e.sideCar,r=ic(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return a().createElement(n,oc({},r))};bc.isSideCarExport=!0;function xc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gc||r.nc;return t&&e.setAttribute("nonce",t),e}var wc=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=xc())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jc=function(){var e,t=(e=wc(),function(t,r){a().useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},_c={left:0,top:0,right:0,gap:0},kc=function(e){return parseInt(e||"",10)||0},Sc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _c;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[kc(r),kc(n),kc(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Oc=jc(),Nc="data-scroll-locked",Pc=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(Nc,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(sc," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(lc," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(sc," .").concat(sc," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(lc," .").concat(lc," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(Nc,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Cc=function(){var e=parseInt(document.body.getAttribute(Nc)||"0",10);return isFinite(e)?e:0},Ec=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;a().useEffect(function(){return document.body.setAttribute(Nc,(Cc()+1).toString()),function(){var e=Cc()-1;e<=0?document.body.removeAttribute(Nc):document.body.setAttribute(Nc,e.toString())}},[]);var i=a().useMemo(function(){return Sc(o)},[o]);return a().createElement(Oc,{styles:Pc(i,!t,o,r?"":"!important")})},Rc=!1;if("undefined"!=typeof window)try{var Ac=Object.defineProperty({},"passive",{get:function(){return Rc=!0,!0}});window.addEventListener("test",Ac,Ac),window.removeEventListener("test",Ac,Ac)}catch(e){Rc=!1}var Tc=!!Rc&&{passive:!1},Dc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Fc=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ic(e,n)){var o=Mc(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Ic=function(e,t){return"v"===e?function(e){return Dc(e,"overflowY")}(t):function(e){return Dc(e,"overflowX")}(t)},Mc=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vc=function(e){return[e.deltaX,e.deltaY]},$c=function(e){return e&&"current"in e?e.current:e},zc=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Uc=0,qc=[];function Wc(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bc=(Hc=function(e){var t=a().useRef([]),r=a().useRef([0,0]),n=a().useRef(),o=a().useState(Uc++)[0],i=a().useState(jc)[0],s=a().useRef(e);a().useEffect(function(){s.current=e},[e]),a().useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ac([e.lockRef.current],(e.shards||[]).map($c),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a().useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Lc(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var v=Fc(d,u);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=Fc(d,u)),!v)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var h=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var p=Mc(e,s),v=p[0],h=p[1]-p[2]-i*v;(v||h)&&Ic(e,s)&&(d+=h,f+=v);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&a>d)||!u&&(o&&Math.abs(f)<1||!o&&-a>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),c=a().useCallback(function(e){var r=e;if(qc.length&&qc[qc.length-1]===i){var n="deltaY"in r?Vc(r):Lc(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var a=(s.current.shards||[]).map($c).filter(Boolean).filter(function(e){return e.contains(r.target)});(a.length>0?l(r,a[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=a().useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Wc(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a().useCallback(function(e){r.current=Lc(e),n.current=void 0},[]),f=a().useCallback(function(t){u(t.type,Vc(t),t.target,l(t,e.lockRef.current))},[]),p=a().useCallback(function(t){u(t.type,Lc(t),t.target,l(t,e.lockRef.current))},[]);a().useEffect(function(){return qc.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Tc),document.addEventListener("touchmove",c,Tc),document.addEventListener("touchstart",d,Tc),function(){qc=qc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Tc),document.removeEventListener("touchmove",c,Tc),document.removeEventListener("touchstart",d,Tc)}},[]);var v=e.removeScrollBar,h=e.inert;return a().createElement(a().Fragment,null,h?a().createElement(i,{styles:zc(o)}):null,v?a().createElement(Ec,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},hc.useMedium(Hc),bc);var Hc,Gc=a().forwardRef(function(e,t){return a().createElement(yc,oc({},e,{ref:t,sideCar:Bc}))});Gc.classNames=yc.classNames;const Zc=Gc;var Kc=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Qc=new WeakMap,Jc=new WeakMap,Yc={},Xc=0,eu=function(e){return e&&(e.host||eu(e.parentNode))},tu=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=eu(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Yc[r]||(Yc[r]=new WeakMap);var i=Yc[r],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(Qc.get(e)||0)+1,c=(i.get(e)||0)+1;Qc.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Jc.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),s.clear(),Xc++,function(){a.forEach(function(e){var t=Qc.get(e)-1,o=i.get(e)-1;Qc.set(e,t),i.set(e,o),t||(Jc.has(e)||e.removeAttribute(n),Jc.delete(e)),o||e.removeAttribute(r)}),--Xc||(Qc=new WeakMap,Qc=new WeakMap,Jc=new WeakMap,Yc={})}},ru=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Kc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),tu(n,o,r,"aria-hidden")):function(){return null}},nu=Object.defineProperty,ou=(e,t)=>nu(e,"name",{value:t,configurable:!0}),iu="Dialog",[au,su]=Ms(iu),[lu,cu]=au(iu),uu=ou(e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=a().useRef(null),u=a().useRef(null),{nodes:d,registry:f}=Nl(),[p,v]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:iu}),[h,m]=a().useState(0),[y,g]=a().useState(0);return(0,o().jsx)(lu,{scope:t,triggerRef:c,contentRef:u,contentId:qs(),titleId:qs(),descriptionId:qs(),titlePresent:h>0,descriptionPresent:y>0,setTitleCount:m,setDescriptionCount:g,open:p,onOpenChange:v,onOpenToggle:a().useCallback(()=>v(e=>!e),[v]),modal:l,branchNodes:d,branchRegistry:f,children:r})},"Dialog"),du=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogTrigger",r),a=za(t,i.triggerRef);return(0,o().jsx)(rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Cu(i.open),...n,ref:a,onClick:As(e.onClick,i.onOpenToggle)})},"DialogTrigger")),fu="DialogPortal",[pu,vu]=au(fu,{forceMount:void 0}),hu=ou(e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=cu(fu,t);return(0,o().jsx)(pu,{scope:t,forceMount:r,children:a().Children.map(n,e=>(0,o().jsx)(Hl,{present:r||s.open,children:(0,o().jsx)(Ul,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),mu="DialogOverlay",yu=a().forwardRef(ou(function(e,t){const r=vu(mu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=cu(mu,e.__scopeDialog);return a.modal?(0,o().jsx)(Hl,{present:n||a.open,children:(0,o().jsx)(bu,{...i,ref:t})}):null},"DialogOverlay")),gu=Wa("DialogOverlay.RemoveScroll"),bu=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu(mu,r),s=za(t,pl());return(0,o().jsx)(Zc,{as:gu,allowPinchZoom:!0,shards:a().useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,o().jsx)(rl.div,{"data-state":Cu(i.open),...n,ref:s,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),xu="DialogContent",wu=a().forwardRef(ou(function(e,t){const r=vu(xu,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=cu(xu,e.__scopeDialog);return(0,o().jsx)(Hl,{present:n||a.open,children:a.modal?(0,o().jsx)(ju,{...i,ref:t}):(0,o().jsx)(_u,{...i,ref:t})})},"DialogContent")),ju=a().forwardRef(ou(function(e,t){const r=cu(xu,e.__scopeDialog),n=a().useRef(null),i=za(t,r.contentRef,n);return a().useEffect(()=>{const e=n.current;if(e)return ru(e)},[]),(0,o().jsx)(ku,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:As(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:As(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:As(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),_u=a().forwardRef(ou(function(e,t){const r=cu(xu,e.__scopeDialog),n=a().useRef(!1),i=a().useRef(!1);return(0,o().jsx)(ku,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=r.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),ku=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":s,children:l,...c}=e,u=cu(xu,r);return rc(),(0,o().jsx)(Ol,{registry:u.branchRegistry,children:(0,o().jsx)(kl,{asChild:!0,loop:!0,trapped:n,branches:u.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o().jsx)(fl,{role:"dialog",id:u.contentId,"aria-labelledby":u.titlePresent?u.titleId:void 0,"aria-describedby":u.descriptionPresent?Pu(s,u.descriptionId):s,"data-state":Cu(u.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1),children:l})})})},"DialogContentImpl")),Su=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogTitle",r),{setTitleCount:a}=i;return Vs(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,o().jsx)(rl.h2,{id:i.titleId,...n,ref:t})},"DialogTitle")),Ou=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogDescription",r),{setDescriptionCount:a}=i;return Vs(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,o().jsx)(rl.p,{id:i.descriptionId,...n,ref:t})},"DialogDescription")),Nu=a().forwardRef(ou(function(e,t){const{__scopeDialog:r,...n}=e,i=cu("DialogClose",r);return(0,o().jsx)(rl.button,{type:"button",...n,ref:t,onClick:As(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function Pu(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function Cu(e){return e?"open":"closed"}ou(Pu,"concatAriaDescribedby"),ou(Cu,"getState");var Eu='[cmdk-group=""]',Ru='[cmdk-group-items=""]',Au='[cmdk-item=""]',Tu=`${Au}:not([aria-disabled="true"])`,Du="cmdk-item-select",Fu="data-value",Iu=(e,t,r)=>Ps(e,t,r),Mu=a().createContext(void 0),Lu=()=>a().useContext(Mu),Vu=a().createContext(void 0),$u=()=>a().useContext(Vu),zu=a().createContext(void 0),Uu=a().forwardRef((e,t)=>{let r=rd(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=rd(()=>new Set),o=rd(()=>new Map),i=rd(()=>new Map),s=rd(()=>new Set),l=ed(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:v,loop:h,disablePointerSelection:m=!1,vimBindings:y=!0,...g}=e,b=qs(),x=qs(),w=qs(),j=a().useRef(null),_=id();td(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,k.emit()}},[d]),td(()=>{_(6,E)},[]);let k=a().useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,i,a,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)C(),N(),_(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(_(7,()=>{var e;r.current.selectedItemId=null==(e=R())?void 0:e.id,k.emit()}),n||_(5,E),void 0!==(null==(i=l.current)?void 0:i.value)){let e=null!=t?t:"";return void(null==(s=(a=l.current).onValueChange)||s.call(a,e))}}k.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),S=a().useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,O(t,n)),_(2,()=>{N(),k.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),_(3,()=>{C(),N(),r.current.value||P(),k.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=R();_(4,()=>{C(),(null==t?void 0:t.getAttribute("id"))===e&&P(),k.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:w,labelId:x,listInnerRef:j}),[]);function O(e,t){var n,o;let i=null!=(o=null==(n=l.current)?void 0:n.filter)?o:Iu;return e?i(e,r.current.search,t):0}function N(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),i=0;n.forEach(t=>{let r=e.get(t);i=Math.max(r,i)}),t.push([r,i])});let n=j.current;A().sort((t,r)=>{var n,o;let i=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(Ru);t?t.appendChild(e.parentElement===t?e:e.closest(`${Ru} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${Ru} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=j.current)?void 0:t.querySelector(`${Eu}[${Fu}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function P(){let e=A().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Fu);k.setState("value",t||void 0)}function C(){var e,t,a,s;if(!r.current.search||!1===l.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let c=0;for(let o of n.current){let n=O(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(a=i.current.get(o))?void 0:a.keywords)?s:[]);r.current.filtered.items.set(o,n),n>0&&c++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function E(){var e,t,r;let n=R();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(Eu))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function R(){var e;return null==(e=j.current)?void 0:e.querySelector(`${Au}[aria-selected="true"]`)}function A(){var e;return Array.from((null==(e=j.current)?void 0:e.querySelectorAll(Tu))||[])}function T(e){let t=A()[e];t&&k.setState("value",t.getAttribute(Fu))}function D(e){var t;let r=R(),n=A(),o=n.findIndex(e=>e===r),i=n[o+e];null!=(t=l.current)&&t.loop&&(i=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),i&&k.setState("value",i.getAttribute(Fu))}function F(e){let t,r=R(),n=null==r?void 0:r.closest(Eu);for(;n&&!t;)n=e>0?Yu(n,Eu):Xu(n,Eu),t=null==n?void 0:n.querySelector(Tu);t?k.setState("value",t.getAttribute(Fu)):D(e)}let I=()=>T(A().length-1),M=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):D(1)},L=e=>{e.preventDefault(),e.metaKey?T(0):e.altKey?F(-1):D(-1)};return a().createElement(rl.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":y&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":y&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),T(0);break;case"End":e.preventDefault(),I();break;case"Enter":{e.preventDefault();let t=R();if(t){let e=new Event(Du);t.dispatchEvent(e)}}}}},a().createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:sd},c),ad(e,e=>a().createElement(Vu.Provider,{value:k},a().createElement(Mu.Provider,{value:S},e))))}),qu=a().forwardRef((e,t)=>{var r,n;let o=qs(),i=a().useRef(null),s=a().useContext(zu),l=Lu(),c=ed(e),u=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;td(()=>{if(!u)return l.item(o,null==s?void 0:s.id)},[u]);let d=od(o,i,[e.value,e.children,i],e.keywords),f=$u(),p=nd(e=>e.value&&e.value===d.current),v=nd(e=>!(!u&&!1!==l.filter())||(!e.search||e.filtered.items.get(o)>0));function h(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(a().useEffect(()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Du,h),()=>t.removeEventListener(Du,h)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:y,value:g,onSelect:b,forceMount:x,keywords:w,...j}=e;return a().createElement(rl.div,{ref:$a(i,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||l.getDisablePointerSelection()?void 0:m,onClick:y?void 0:h},e.children)}),Wu=a().forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=qs(),l=a().useRef(null),c=a().useRef(null),u=qs(),d=Lu(),f=nd(e=>!(!o&&!1!==d.filter())||(!e.search||e.filtered.groups.has(s)));td(()=>d.group(s),[]),od(s,l,[e.value,e.heading,c]);let p=a().useMemo(()=>({id:s,forceMount:o}),[o]);return a().createElement(rl.div,{ref:$a(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&a().createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),ad(e,e=>a().createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},a().createElement(zu.Provider,{value:p},e))))}),Bu=a().forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=a().useRef(null),i=nd(e=>!e.search);return r||i?a().createElement(rl.div,{ref:$a(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),Hu=a().forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,i=$u(),s=nd(e=>e.search),l=nd(e=>e.selectedItemId),c=Lu();return a().useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),a().createElement(rl.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),Gu=a().forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=a().useRef(null),s=a().useRef(null),l=nd(e=>e.selectedItemId),c=Lu();return a().useEffect(()=>{if(s.current&&i.current){let e,t=s.current,r=i.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),a().createElement(rl.div,{ref:$a(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},ad(e,e=>a().createElement("div",{ref:$a(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),Zu=a().forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...l}=e;return a().createElement(uu,{open:r,onOpenChange:n},a().createElement(hu,{container:s},a().createElement(yu,{"cmdk-overlay":"",className:o}),a().createElement(wu,{"aria-label":e.label,"cmdk-dialog":"",className:i},a().createElement(Uu,{ref:t,...l}))))}),Ku=a().forwardRef((e,t)=>nd(e=>0===e.filtered.count)?a().createElement(rl.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Qu=a().forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return a().createElement(rl.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ad(e,e=>a().createElement("div",{"aria-hidden":!0},e)))}),Ju=Object.assign(Uu,{List:Gu,Item:qu,Input:Hu,Group:Wu,Separator:Bu,Dialog:Zu,Empty:Ku,Loading:Qu});function Yu(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Xu(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function ed(e){let t=a().useRef(e);return td(()=>{t.current=e}),t}var td="undefined"==typeof window?a().useEffect:a().useLayoutEffect;function rd(e){let t=a().useRef();return void 0===t.current&&(t.current=e()),t}function nd(e){let t=$u(),r=()=>e(t.snapshot());return a().useSyncExternalStore(t.subscribe,r,r)}function od(e,t,r,n=[]){let o=a().useRef(),i=Lu();return td(()=>{var a;let s=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=n.map(e=>e.trim());i.value(e,s,l),null==(a=t.current)||a.setAttribute(Fu,s),o.current=s}),o}var id=()=>{let[e,t]=a().useState(),r=rd(()=>new Map);return td(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function ad({asChild:e,children:t},r){return e&&a().isValidElement(t)?a().cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var sd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ld=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var cd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ud=(0,a().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>(0,a().createElement)("svg",{ref:c,...cd,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:ld("lucide",o),...l},[...s.map(([e,t])=>(0,a().createElement)(e,t)),...Array.isArray(i)?i:[i]])),dd=(e,t)=>{const r=(0,a().forwardRef)(({className:r,...n},o)=>{return(0,a().createElement)(ud,{ref:o,iconNode:t,className:ld(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i});return r.displayName=`${e}`,r},fd=dd("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),pd=dd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function vd(e){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vd(e)}var hd=["className"],md=["className","children"],yd=["className"],gd=["className"],bd=["className"],xd=["className"];function wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(r),!0).forEach(function(t){_d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=vd(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Sd="vt-absolute vt-top-4 vt-right-4 vt-p-2 vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-50 hover:vt-bg-accent hover:vt-text-accent-foreground",Od=uu,Nd=du,Pd=hu,Cd=Nu,Ed=a().forwardRef(function(e,t){var r=e.className,n=kd(e,hd);return(0,o().jsx)(yu,jd({ref:t,className:hi("vt-ui vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0",r)},n))});Ed.displayName=yu.displayName;var Rd=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=kd(e,md);return(0,o().jsxs)(Pd,{children:[(0,o().jsx)(Ed,{}),(0,o().jsxs)(wu,jd(jd({ref:t,className:hi("vt-ui vt-fixed vt-left-[50%] vt-top-[50%] vt-grid vt-w-full vt-translate-x-[-50%] vt-translate-y-[-50%] vt-gap-4 vt-border vt-bg-background vt-p-6 vt-shadow-lg vt-duration-200 vt-data-[state=open]:vt-animate-in vt-data-[state=closed]:vt-animate-out vt-data-[state=closed]:vt-fade-out-0 vt-data-[state=open]:vt-fade-in-0 vt-data-[state=closed]:vt-zoom-out-95 vt-data-[state=open]:vt-zoom-in-95 vt-data-[state=closed]:vt-slide-out-to-left-1/2 vt-data-[state=closed]:vt-slide-out-to-top-[48%] vt-data-[state=open]:vt-slide-in-from-left-1/2 vt-data-[state=open]:vt-slide-in-from-top-[48%] sm:vt-rounded-lg","vt-max-w-4xl vt-z-[99999]",r)},i),{},{children:[n,(0,o().jsxs)(Nu,{className:Sd,children:[(0,o().jsx)(pd,{size:16}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Close","trigger")})]})]}))]})});Rd.displayName=wu.displayName;var Ad=function(e){var t=e.className,r=kd(e,yd);return(0,o().jsx)("div",jd({className:hi("vt-flex vt-flex-col vt-space-y-1.5 vt-text-center sm:vt-text-left",t)},r))};Ad.displayName="DialogHeader";var Td=function(e){var t=e.className,r=kd(e,gd);return(0,o().jsx)("div",jd({className:hi("vt-flex vt-flex-col-reverse sm:vt-flex-row sm:vt-justify-end sm:vt-space-x-2",t)},r))};Td.displayName="DialogFooter";var Dd=a().forwardRef(function(e,t){var r=e.className,n=kd(e,bd);return(0,o().jsx)(Su,jd({ref:t,className:hi("vt-text-lg vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Dd.displayName=Su.displayName;var Fd=a().forwardRef(function(e,t){var r=e.className,n=kd(e,xd);return(0,o().jsx)(Ou,jd({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))});function Id(e){return Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Id(e)}Fd.displayName=Ou.displayName;var Md=["className"],Ld=["className"],Vd=["className"],$d=["className"],zd=["className"],Ud=["className"];function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(t){Bd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Id(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Id(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hd(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Gd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Md);return(0,o().jsx)(Ju,Wd({ref:t,className:hi("vt-flex vt-h-full vt-w-full vt-flex-col vt-overflow-hidden vt-rounded-md vt-bg-popover vt-text-popover-foreground",r)},n))});Gd.displayName=Ju.displayName;var Zd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Ld);return(0,o().jsxs)("div",{className:"vt-relative vt-flex vt-items-center vt-border-b vt-pb-2","cmdk-input-wrapper":"",children:[(0,o().jsx)(fd,{className:"vt-absolute vt-left-2 vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"}),(0,o().jsx)(Ju.Input,Wd({ref:t,className:hi("vt-flex vt-h-10 vt-w-full vt-rounded-md vt-bg-transparent vt-py-3 vt-pl-7 vt-text-sm vt-outline-none vt-placeholder:vt-text-muted-foreground disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},n))]})});Zd.displayName=Ju.Input.displayName;var Kd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Vd);return(0,o().jsx)(Ju.List,Wd({ref:t,className:hi("vt-max-h-[300px] vt-pt-2 vt-overflow-y-auto vt-overflow-x-hidden",r)},n))});Kd.displayName=Ju.List.displayName;var Qd=a().forwardRef(function(e,t){return(0,o().jsx)(Ju.Empty,Wd({ref:t,className:"vt-py-6 vt-text-center vt-text-sm"},e))});Qd.displayName=Ju.Empty.displayName;var Jd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,$d);return(0,o().jsx)(Ju.Group,Wd({ref:t,className:hi("vt-overflow-hidden vt-p-1 vt-text-foreground [&_[cmdk-group-heading]]:vt-px-2 [&_[cmdk-group-heading]]:vt-py-1.5 [&_[cmdk-group-heading]]:vt-text-xs [&_[cmdk-group-heading]]:vt-font-medium [&_[cmdk-group-heading]]:vt-text-muted-foreground",r)},n))});Jd.displayName=Ju.Group.displayName,a().forwardRef(function(e,t){var r=e.className,n=Hd(e,zd);return(0,o().jsx)(Ju.Separator,Wd({ref:t,className:hi("vt-mx-1 vt-h-px vt-bg-border",r)},n))}).displayName=Ju.Separator.displayName;var Yd=a().forwardRef(function(e,t){var r=e.className,n=Hd(e,Ud);return(0,o().jsx)(Ju.Item,Wd({ref:t,className:hi("vt-relative vt-flex vt-cursor-default vt-gap-2 vt-select-none vt-items-center vt-rounded-sm vt-px-2 vt-py-1.5 vt-text-sm vt-outline-none data-[disabled=true]:vt-pointer-events-none data-[selected=true]:vt-bg-accent data-[selected=true]:vt-text-accent-foreground data-[disabled=true]:vt-opacity-50 [&_svg]:vt-pointer-events-none [&_svg]:vt-size-4 [&_svg]:vt-shrink-0",r)},n))});Yd.displayName=Ju.Item.displayName;const Xd=["top","right","bottom","left"],ef=Math.min,tf=Math.max,rf=Math.round,nf=Math.floor,of=e=>({x:e,y:e}),af={left:"right",right:"left",bottom:"top",top:"bottom"};function sf(e,t,r){return tf(e,ef(t,r))}function lf(e,t){return"function"==typeof e?e(t):e}function cf(e){return e.split("-")[0]}function uf(e){return e.split("-")[1]}function df(e){return"x"===e?"y":"x"}function ff(e){return"y"===e?"height":"width"}function pf(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function vf(e){return df(pf(e))}function hf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const mf=["left","right"],yf=["right","left"],gf=["top","bottom"],bf=["bottom","top"];function xf(e,t,r,n){const o=uf(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?yf:mf:t?mf:yf;case"left":case"right":return t?gf:bf;default:return[]}}(cf(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(hf)))),i}function wf(e){const t=cf(e);return af[t]+e.slice(t.length)}function jf(e){return"number"!=typeof e?function(e){var t,r,n,o;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function _f(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function kf(e,t,r){let{reference:n,floating:o}=e;const i=pf(t),a=vf(t),s=ff(a),l=cf(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}const v=uf(t);return v&&(p[a]+=f*("end"===v?1:-1)*(r&&c?-1:1)),p}async function Sf(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lf(t,e),v=jf(p),h=s[f?"floating"===d?"reference":"floating":d],m=_f(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=_f(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-x.top+v.top)/b.y,bottom:(x.bottom-m.bottom+v.bottom)/b.y,left:(m.left-x.left+v.left)/b.x,right:(x.right-m.right+v.right)/b.x}}function Of(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nf(e){return Xd.some(t=>e[t]>=0)}const Pf=new Set(["left","top"]);function Cf(){return"undefined"!=typeof window}function Ef(e){return Tf(e)?(e.nodeName||"").toLowerCase():"#document"}function Rf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Af(e){var t;return null==(t=(Tf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Tf(e){return!!Cf()&&(e instanceof Node||e instanceof Rf(e).Node)}function Df(e){return!!Cf()&&(e instanceof Element||e instanceof Rf(e).Element)}function Ff(e){return!!Cf()&&(e instanceof HTMLElement||e instanceof Rf(e).HTMLElement)}function If(e){return!(!Cf()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Rf(e).ShadowRoot)}function Mf(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Gf(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Lf(e){return/^(table|td|th)$/.test(Ef(e))}function Vf(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const $f=/transform|translate|scale|rotate|perspective|filter/,zf=/paint|layout|strict|content/,Uf=e=>!!e&&"none"!==e;let qf;function Wf(e){const t=Df(e)?Gf(e):e;return Uf(t.transform)||Uf(t.translate)||Uf(t.scale)||Uf(t.rotate)||Uf(t.perspective)||!Bf()&&(Uf(t.backdropFilter)||Uf(t.filter))||$f.test(t.willChange||"")||zf.test(t.contain||"")}function Bf(){return null==qf&&(qf="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qf}function Hf(e){return/^(html|body|#document)$/.test(Ef(e))}function Gf(e){return Rf(e).getComputedStyle(e)}function Zf(e){return Df(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kf(e){if("html"===Ef(e))return e;const t=e.assignedSlot||e.parentNode||If(e)&&e.host||Af(e);return If(t)?t.host:t}function Qf(e){const t=Kf(e);return Hf(t)?(e.ownerDocument||e).body:Ff(t)&&Mf(t)?t:Qf(t)}function Jf(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Qf(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Rf(o);if(i){const e=Yf(a);return t.concat(a,a.visualViewport||[],Mf(o)?o:[],e&&r?Jf(e):[])}return t.concat(o,Jf(o,[],r))}function Yf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xf(e){const t=Gf(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ff(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=rf(r)!==i||rf(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function ep(e){return Df(e)?e:e.contextElement}function tp(e){const t=ep(e);if(!Ff(t))return of(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Xf(t);let a=(i?rf(r.width):r.width)/n,s=(i?rf(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rp=of(0);function np(e){const t=Rf(e);return Bf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rp}function op(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=ep(e);let a=of(1);t&&(n?Df(n)&&(a=tp(n)):a=tp(e));const s=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Rf(e)}(i,r,n)?np(i):of(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i&&n){const e=Rf(i),t=Df(n)?Rf(n):n;let r=e,o=Yf(r);for(;o&&t!==r;){const e=tp(o),t=o.getBoundingClientRect(),n=Gf(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Rf(o),o=Yf(r)}}return _f({width:u,height:d,x:l,y:c})}function ip(e,t){const r=Zf(e).scrollLeft;return t?t.left+r:op(Af(e)).left+r}function ap(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ip(e,r),y:r.top+t.scrollTop}}function sp(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,o=Rf(e),i=Af(e),a=o.visualViewport;let s=i.clientWidth,l=i.clientHeight,c=0,u=0;if(a){const e=!Bf()||"fixed"===t;n?e||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(c=a.offsetLeft,u=a.offsetTop))}if(ip(i)<=0){const e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n),a="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;a<=25&&(s-=a)}return{width:s,height:l,x:c,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=Zf(e),r=e.ownerDocument.body,n=tf(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=tf(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+ip(e);const a=-t.scrollTop;return"rtl"===Gf(r).direction&&(i+=tf(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:a}}(Af(e));else if(Df(t))n=function(e,t){const r=op(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=tp(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=np(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _f(n)}function lp(e,t,r){const n=Ff(t),o=Af(t),i="fixed"===r,a=op(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=of(0);if((n||!i)&&(("body"!==Ef(t)||Mf(o))&&(s=Zf(t)),n)){const e=op(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&o&&(l.x=ip(o));const c=!o||n||i?of(0):ap(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function cp(e){return"static"===Gf(e).position}function up(e,t){if(!Ff(e)||"fixed"===Gf(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Af(e)===r&&(r=r.ownerDocument.body),r}function dp(e,t){const r=Rf(e);if(Vf(e))return r;if(!Ff(e)){let t=Kf(e);for(;t&&!Hf(t);){if(Df(t)&&!cp(t))return t;t=Kf(t)}return r}let n=up(e,t);for(;n&&Lf(n)&&cp(n);)n=up(n,t);return n&&Hf(n)&&cp(n)&&!Wf(n)?r:n||function(e){let t=Kf(e);for(;Ff(t)&&!Hf(t);){if(Wf(t))return t;if(Vf(t))return null;t=Kf(t)}return null}(e)||r}const fp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Af(n),s=!!t&&Vf(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=of(1);const u=of(0),d=Ff(n);if((d||!i)&&(("body"!==Ef(n)||Mf(a))&&(l=Zf(n)),d)){const e=op(n);c=tp(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||i?of(0):ap(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Af,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Vf(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Jf(e,[],!1).filter(e=>Df(e)&&"body"!==Ef(e)),o=null;const i="fixed"===Gf(e).position;let a=i?Kf(e):e;for(;Df(a)&&!Hf(a);){const e=Gf(a),t=Wf(a),r=o?o.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?o=e:n=n.filter(e=>e!==a),a=Kf(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=sp(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const r=sp(t,i[e],o);s=tf(r.top,s),l=ef(r.right,l),c=ef(r.bottom,c),u=tf(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:dp,getElementRects:async function(e){const t=this.getOffsetParent||dp,r=this.getDimensions,n=await r(e.floating);return{reference:lp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=Xf(e);return{width:t,height:r}},getScale:tp,isElement:Df,isRTL:function(e){return"rtl"===Gf(e).direction}};function pp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vp(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=ep(e),u=o||i?[...c?Jf(c):[],...t?Jf(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r),i&&e.addEventListener("resize",r)});const d=c&&s?function(e,t,r){let n,o=null;const i=Af(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(r||t(),!f||!p)return;const v={rootMargin:-nf(d)+"px "+-nf(i.clientWidth-(u+f))+"px "+-nf(i.clientHeight-(d+p))+"px "+-nf(u)+"px",threshold:tf(0,ef(1,l))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(!pp(c,e.getBoundingClientRect()))return s();if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(m,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(m,v)}o.observe(e)}const l=Rf(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(c,r,i):null;let f,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),c&&!l&&v.observe(c),t&&v.observe(t));let h=l?op(e):null;return l&&function t(){const n=op(e);h&&!pp(h,n)&&r();h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=v)||e.disconnect(),v=null,l&&cancelAnimationFrame(f)}}const hp=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=cf(r),s=uf(r),l="y"===pf(r),c=Pf.has(a)?-1:1,u=i&&l?-1:1,d=lf(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(p="end"===s?-1*v:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},mp=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=lf(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),f=pf(o),p=df(f);let v=u[p],h=u[f];const m=(e,t)=>sf(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);a&&(v=m(p,v)),s&&(h=m(f,h));const y=l.fn({...t,[p]:v,[f]:h});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:a,[f]:s}}}}}},yp=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=lf(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=cf(o),g=pf(s),b=cf(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[wf(s)]:function(e){const t=wf(e);return[hf(e),t,hf(t)]}(s)),j="none"!==v;!f&&j&&w.push(...xf(s,h,v,x));const _=[s,...w],k=await l.detectOverflow(t,m),S=[];let O=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=uf(e),o=vf(e),i=ff(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wf(a)),[a,wf(a)]}(o,a,x);S.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every(e=>e<=0)){var N,P;const e=((null==(N=i.flip)?void 0:N.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&g!==pf(t))||O.every(e=>pf(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let r=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!r)switch(p){case"bestFit":{var C;const e=null==(C=O.filter(e=>{if(j){const t=pf(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:C[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},gp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=lf(e,t),l=await o.detectOverflow(t,s),c=cf(r),u=uf(r),d="y"===pf(r),{width:f,height:p}=n.floating;let v,h;"top"===c||"bottom"===c?(v=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,v="end"===u?"top":"bottom");const m=p-l.top-l.bottom,y=f-l.left-l.right,g=ef(p-l[v],m),b=ef(f-l[h],y),x=t.middlewareData.shift,w=!x;let j=g,_=b;null!=x&&x.enabled.x&&(_=y),null!=x&&x.enabled.y&&(j=m),w&&!u&&(d?_=f-2*tf(l.left,l.right):j=p-2*tf(l.top,l.bottom)),await a({...t,availableWidth:_,availableHeight:j});const k=await o.getDimensions(i.floating);return f!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}},bp=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=lf(e,t);switch(o){case"referenceHidden":{const e=Of(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Nf(e)}}}case"escaped":{const e=Of(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Nf(e)}}}default:return{}}}}},xp=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=lf(e,t)||{};if(null==c)return{};const d=jf(u),f={x:r,y:n},p=vf(o),v=ff(p),h=await a.getDimensions(c),m="y"===p,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[p]-f[p]-i.floating[v],w=f[p]-i.reference[p],j=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=j?j[b]:0;_&&await(null==a.isElement?void 0:a.isElement(j))||(_=s.floating[b]||i.floating[v]);const k=x/2-w/2,S=_/2-h[v]/2-1,O=ef(d[y],S),N=ef(d[g],S),P=_-h[v]-N,C=_/2-h[v]/2+k,E=sf(O,C,P),R=!l.arrow&&null!=uf(o)&&C!==E&&i.reference[v]/2-(C<O?O:N)-h[v]/2<0,A=R?C<O?C-O:C-P:0;return{[p]:f[p]+A,data:{[p]:E,centerOffset:C-E-A,...R&&{alignmentOffset:A}},reset:R}}}),jp=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,n;const{x:o,y:i,placement:a,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=lf(e,t),f={x:o,y:i},p=pf(a),v=df(p);let h=f[v],m=f[p];const y=lf(c,t),g="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(r=y.mainAxis)?r:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(u){const e="y"===v?"height":"width",t=s.reference[v]-s.floating[e]+g.mainAxis,r=s.reference[v]+s.reference[e]-g.mainAxis;h<t?h=t:h>r&&(h=r)}if(d){var b,x;const e="y"===v?"width":"height",t=Pf.has(cf(a)),r=s.reference[p]-s.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:g.crossAxis),n=s.reference[p]+s.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[p])||0)-(t?g.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[v]:h,[p]:m}}}},_p=(e,t,r)=>{const n=new Map,o=null!=r?r:{},i={...fp,...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Sf},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kf(c,n,l),f=n,p=0;const v={};for(let r=0;r<i.length;r++){const h=i[r];if(!h)continue;const{name:m,fn:y}=h,{x:g,y:b,data:x,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,v[m]={...v[m],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=kf(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:v}})(e,t,{...o,platform:i})};var kp="undefined"!=typeof document?a().useLayoutEffect:function(){};function Sp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Sp(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Sp(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Op(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Np(e,t){const r=Op(e);return Math.round(t*r)/r}function Pp(e){const t=a().useRef(e);return kp(()=>{t.current=e}),t}const Cp=(e,t)=>{const r=hp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ep=(e,t)=>{const r=mp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Rp=(e,t)=>({fn:jp(e).fn,options:[e,t]}),Ap=(e,t)=>{const r=yp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Tp=(e,t)=>{const r=gp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Dp=(e,t)=>{const r=bp(e);return{name:r.name,fn:r.fn,options:[e,t]}},Fp=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&function(e){return{}.hasOwnProperty.call(e,"current")}(r)?null!=r.current?xp({element:r.current,padding:n}).fn(t):{}:r?xp({element:r,padding:n}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Ip=Object.defineProperty;function Mp(e){const[t,r]=a().useState(void 0);return Vs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=0;const n=new ResizeObserver(n=>{if(!Array.isArray(n))return;if(!n.length)return;const o=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if("borderBoxSize"in o){const e=o.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,n=r.blockSize}else t=e.offsetWidth,n=e.offsetHeight;r({width:t,height:n})})});return n.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}r(void 0)},[e]),t}((e,t)=>{Ip(e,"name",{value:t,configurable:!0})})(Mp,"useSize");var Lp=Object.defineProperty,Vp=(e,t)=>Lp(e,"name",{value:t,configurable:!0}),$p={Partial:"partial",Always:"always"},zp={Optimized:"optimized",Always:"always"},Up="Popper",[qp,Wp]=Ms(Up),[Bp,Hp]=qp(Up),Gp=Vp(e=>{const{__scopePopper:t,children:r}=e,[n,i]=a().useState(null),[s,l]=a().useState(void 0);return(0,o().jsx)(Bp,{scope:t,anchor:n,onAnchorChange:i,placementState:s,setPlacementState:l,children:r})},"Popper"),Zp=a().forwardRef(Vp(function(e,t){const{__scopePopper:r,virtualRef:n,...i}=e,s=Hp("PopperAnchor",r),l=a().useRef(null),c=s.onAnchorChange,u=za(t,a().useCallback(e=>{l.current=e,e&&c(e)},[c])),d=a().useRef(null);a().useEffect(()=>{if(!n)return;const e=d.current;d.current=n.current,e!==d.current&&c(d.current)});const f=s.placementState&&tv(s.placementState),p=f?.[0],v=f?.[1];return n?null:(0,o().jsx)(rl.div,{"data-radix-popper-side":p,"data-radix-popper-align":v,...i,ref:u})},"PopperAnchor")),Kp="PopperContent",[Qp,Jp]=qp(Kp),Yp=a().forwardRef(Vp(function(e,t){const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:v=$p.Partial,hideWhenDetached:h=!1,updatePositionStrategy:m=zp.Optimized,onPlaced:y,...g}=e,b=Hp(Kp,r),[x,w]=a().useState(null),j=za(t,w),[_,k]=a().useState(null),S=Mp(_),O=S?.width??0,N=S?.height??0,P=n+("center"!==l?"-"+l:""),C="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},E=Array.isArray(f)?f:[f],R=E.length>0,A={padding:C,boundary:E.filter(Xp),altBoundary:R},{refs:T,floatingStyles:D,placement:F,isPositioned:I,middlewareData:M}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=a().useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=a().useState(n);Sp(v,n)||h(n);const[m,y]=a().useState(null),[g,b]=a().useState(null),x=a().useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=a().useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),j=i||m,_=l||g,k=a().useRef(null),S=a().useRef(null),O=a().useRef(f),N=null!=u,P=Pp(u),C=Pp(o),E=Pp(d),R=a().useCallback(()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:r,middleware:v};C.current&&(e.platform=C.current),_p(k.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};A.current&&!Sp(O.current,t)&&(O.current=t,s().flushSync(()=>{p(t)}))})},[v,t,r,C,E]);kp(()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const A=a().useRef(!1);kp(()=>(A.current=!0,()=>{A.current=!1}),[]),kp(()=>{if(j&&(k.current=j),_&&(S.current=_),j&&_){if(P.current)return P.current(j,_,R);R()}},[j,_,R,P,N]);const T=a().useMemo(()=>({reference:k,floating:S,setReference:x,setFloating:w}),[x,w]),D=a().useMemo(()=>({reference:j,floating:_}),[j,_]),F=a().useMemo(()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=Np(D.floating,f.x),n=Np(D.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...Op(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,D.floating,f.x,f.y]);return a().useMemo(()=>({...f,update:R,refs:T,elements:D,floatingStyles:F}),[f,R,T,D,F])}({strategy:"fixed",placement:P,whileElementsMounted:Vp((...e)=>vp(...e,{animationFrame:m===zp.Always}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Cp({mainAxis:i+N,alignmentAxis:c}),d&&Ep({mainAxis:!0,crossAxis:!1,...v===$p.Partial?{limiter:Rp()}:{},...A}),d&&Ap({...A}),Tp({...A,apply:Vp(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),_&&Fp({element:_,padding:u}),ev({arrowWidth:O,arrowHeight:N}),h&&Dp(R?{strategy:"referenceHidden",...A}:{strategy:"referenceHidden",padding:A.padding,altBoundary:A.altBoundary})]}),L=b.setPlacementState;Vs(()=>(L(F),()=>{L(void 0)}),[F,L]);const[V,$]=tv(F),z=al(y);Vs(()=>{I&&z?.()},[I,z]);const U=M.arrow?.x,q=M.arrow?.y,W=0!==M.arrow?.centerOffset,[B,H]=a().useState();return Vs(()=>{x&&H(window.getComputedStyle(x).zIndex)},[x]),(0,o().jsx)("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:I?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o().jsx)(Qp,{scope:r,placedSide:V,placedAlign:$,onArrowChange:k,arrowX:U,arrowY:q,shouldHideArrow:W,children:(0,o().jsx)(rl.div,{"data-side":V,"data-align":$,...g,ref:j,style:{...g.style,animation:I?g.style?.animation:"none"}})})})},"PopperContent"));function Xp(e){return null!==e}Vp(Xp,"isNotNull");var ev=Vp(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=tv(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",v="";return"bottom"===l?(p=i?u:`${d}px`,v=-s+"px"):"top"===l?(p=i?u:`${d}px`,v=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",v=i?u:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,v=i?u:`${f}px`),{data:{x:p,y:v}}}}),"transformOrigin");function tv(e){const[t,r="center"]=e.split("-");return[t,r]}Vp(tv,"getSideAndAlignFromPlacement");var rv=Object.defineProperty,nv=(e,t)=>rv(e,"name",{value:t,configurable:!0}),ov="Popover",[iv,av]=Ms(ov,[Wp]),sv=Wp(),[lv,cv]=iv(ov),uv=nv(e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=sv(t),u=a().useRef(null),[d,f]=a().useState(!1),[p,v]=a().useState(0),[h,m]=a().useState(0),[y,g]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:ov});return(0,o().jsx)(Gp,{...c,children:(0,o().jsx)(lv,{scope:t,contentId:qs(),titleId:qs(),descriptionId:qs(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:v,setDescriptionCount:m,triggerRef:u,open:y,onOpenChange:g,onOpenToggle:a().useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:d,onCustomAnchorAdd:a().useCallback(()=>f(!0),[]),onCustomAnchorRemove:a().useCallback(()=>f(!1),[]),modal:l,children:r})})},"Popover"),dv=a().forwardRef(nv(function(e,t){const{__scopePopover:r,...n}=e,i=cv("PopoverTrigger",r),a=sv(r),s=za(t,i.triggerRef),l=(0,o().jsx)(rl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":wv(i.open),...n,ref:s,onClick:As(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,o().jsx)(Zp,{asChild:!0,...a,children:l})},"PopoverTrigger")),fv="PopoverPortal",[pv,vv]=iv(fv,{forceMount:void 0}),hv="PopoverContent",mv=a().forwardRef(nv(function(e,t){const r=vv(hv,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,a=cv(hv,e.__scopePopover);return(0,o().jsx)(Hl,{present:n||a.open,children:a.modal?(0,o().jsx)(gv,{...i,ref:t}):(0,o().jsx)(bv,{...i,ref:t})})},"PopoverContent")),yv=Wa("PopoverContent.RemoveScroll"),gv=a().forwardRef(nv(function(e,t){const r=cv(hv,e.__scopePopover),n=a().useRef(null),i=za(t,n),s=a().useRef(!1),{nodes:l,registry:c}=Nl();return a().useEffect(()=>{const e=n.current;if(e)return ru(e)},[]),(0,o().jsx)(Zc,{as:yv,allowPinchZoom:!0,shards:a().useMemo(()=>[n,...l.map(e=>({current:e}))],[n,l]),children:(0,o().jsx)(xv,{...e,ref:i,branchNodes:l,branchRegistry:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:As(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:As(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),bv=a().forwardRef(nv(function(e,t){const r=cv(hv,e.__scopePopover),n=a().useRef(!1),i=a().useRef(!1);return(0,o().jsx)(xv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=r.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),xv=a().forwardRef(nv(function(e,t){const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,"aria-describedby":p,branchNodes:v,branchRegistry:h,...m}=e,y=cv(hv,r),g=sv(r),[b,x]=a().useState(null),w=za(t,x);return Pl(b),rc(),(0,o().jsx)(Ol,{registry:h,children:(0,o().jsx)(kl,{asChild:!0,loop:!0,trapped:n,branches:v,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,o().jsx)(fl,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>y.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o().jsx)(Yp,{"data-state":wv(y.open),role:"dialog",id:y.contentId,"aria-labelledby":y.titlePresent?y.titleId:void 0,"aria-describedby":y.descriptionPresent?jv(p,y.descriptionId):p,...g,...m,ref:w,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function wv(e){return e?"open":"closed"}function jv(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function _v(e){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(e)}nv(wv,"getState"),nv(jv,"concatAriaDescribedby");var kv=["className","align","sideOffset"];function Sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ov(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=_v(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=_v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Nv=uv,Pv=dv,Cv=a().forwardRef(function(e,t){var r=e.className,n=e.align,i=void 0===n?"center":n,a=e.sideOffset,s=void 0===a?4:a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,kv);return(0,o().jsx)(mv,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(t){Ov(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:i,sideOffset:s,className:hi("vt-ui vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},l))});function Ev(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Rv(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Rv(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Rv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Rv(d,"constructor",c),Rv(c,"constructor",l),l.displayName="GeneratorFunction",Rv(c,o,"GeneratorFunction"),Rv(d),Rv(d,o,"Generator"),Rv(d,n,function(){return this}),Rv(d,"toString",function(){return"[object Generator]"}),(Ev=function(){return{w:i,m:f}})()}function Rv(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Rv=function(e,t,r,n){function i(t,r){Rv(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Rv(e,t,r,n)}function Av(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Tv(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Av(i,n,o,a,s,"next",e)}function s(e){Av(i,n,o,a,s,"throw",e)}a(void 0)})}}Cv.displayName=mv.displayName;var Dv=function(){return ra({queryKey:["getPluginList"],queryFn:(e=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e},Fv=function(){return ra({queryKey:["getThemeList"],queryFn:(e=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_theme_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3});var e};const Iv=dd("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Mv=dd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);function Lv(e){return function(e){if(Array.isArray(e))return zv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||$v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(e,t){if(e){if("string"==typeof e)return zv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(e,t):void 0}}function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Uv(e){var t=e.selectedPlugin,r=e.onChange,n=Vv((0,a().useState)([]),2),i=n[0],s=n[1],l=Vv((0,a().useState)(!1),2),c=l[0],u=l[1],d=Dv().data;(0,a().useEffect)(function(){d&&s(d.data)},[d]);var f=i.filter(function(e){return t.includes(e.slug)}),p=i.filter(function(e){return!t.includes(e.slug)});return(0,o().jsx)("div",{children:(0,o().jsxs)(Nv,{open:c,onOpenChange:u,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":c,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-2 vt-bg-transparent",children:[(0,o().jsxs)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-flex-1",children:[f.map(function(e){return(0,o().jsxs)(xs,{variant:"default",className:"vt-gap-1 vt-mb-1",children:[e.label,(0,o().jsx)(vs,{variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(n){n.preventDefault(),n.stopPropagation(),function(e){r(t.filter(function(t){return t!==e}))}(e.slug)},children:(0,o().jsx)(pd,{size:12})})]},e.slug)}),0===f.length&&(0,o().jsx)("span",{className:"vt-text-muted-foreground",children:(0,mi.__)("Select plugins you like...","versatile-toolkit")})]}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-full",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search plugin...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No plugin found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:[].concat(Lv(p),Lv(f)).map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return function(e){t.includes(e)?r(t.filter(function(t){return t!==e})):r([].concat(Lv(t),[e]))}(e.slug)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",t.includes(e.slug)?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}function qv(e){return qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qv(e)}var Wv=["className","type"];function Bv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Hv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=qv(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=qv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gv,Zv,Kv=a().forwardRef(function(e,t){var r=e.className,n=e.type,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Wv);return(0,o().jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(t){Hv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:hi("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},i))});Kv.displayName="Input",function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Gv||(Gv={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Zv||(Zv={}));const Qv=Gv.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Jv=e=>{switch(typeof e){case"undefined":return Qv.undefined;case"string":return Qv.string;case"number":return Number.isNaN(e)?Qv.nan:Qv.number;case"boolean":return Qv.boolean;case"function":return Qv.function;case"bigint":return Qv.bigint;case"symbol":return Qv.symbol;case"object":return Array.isArray(e)?Qv.array:null===e?Qv.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Qv.promise:"undefined"!=typeof Map&&e instanceof Map?Qv.map:"undefined"!=typeof Set&&e instanceof Set?Qv.set:"undefined"!=typeof Date&&e instanceof Date?Qv.date:Qv.object;default:return Qv.unknown}},Yv=Gv.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Xv extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(n);else if("invalid_return_type"===o.code)n(o.returnTypeError);else if("invalid_arguments"===o.code)n(o.argumentsError);else if(0===o.path.length)r._errors.push(t(o));else{let e=r,n=0;for(;n<o.path.length;){const r=o.path[n];n===o.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(o))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof Xv))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Gv.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)if(n.path.length>0){const r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Xv.create=e=>new Xv(e);const eh=(e,t)=>{let r;switch(e.code){case Yv.invalid_type:r=e.received===Qv.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Yv.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Gv.jsonStringifyReplacer)}`;break;case Yv.unrecognized_keys:r=`Unrecognized key(s) in object: ${Gv.joinValues(e.keys,", ")}`;break;case Yv.invalid_union:r="Invalid input";break;case Yv.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Gv.joinValues(e.options)}`;break;case Yv.invalid_enum_value:r=`Invalid enum value. Expected ${Gv.joinValues(e.options)}, received '${e.received}'`;break;case Yv.invalid_arguments:r="Invalid function arguments";break;case Yv.invalid_return_type:r="Invalid function return type";break;case Yv.invalid_date:r="Invalid date";break;case Yv.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Gv.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Yv.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Yv.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Yv.custom:r="Invalid input";break;case Yv.invalid_intersection_types:r="Intersection results could not be merged";break;case Yv.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Yv.not_finite:r="Number must be finite";break;default:r=t.defaultError,Gv.assertNever(e)}return{message:r}};let th=eh;function rh(){return th}var nh;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(nh||(nh={}));const oh=e=>{const{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=n.filter(e=>!!e).slice().reverse();for(const e of l)s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function ih(e,t){const r=rh(),n=oh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===eh?void 0:eh].filter(e=>!!e)});e.common.issues.push(n)}class ah{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return sh;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return ah.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:o}=n;if("aborted"===t.status)return sh;if("aborted"===o.status)return sh;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!n.alwaysSet||(r[t.value]=o.value)}return{status:e.value,value:r}}}const sh=Object.freeze({status:"aborted"}),lh=e=>({status:"dirty",value:e}),ch=e=>({status:"valid",value:e}),uh=e=>"aborted"===e.status,dh=e=>"dirty"===e.status,fh=e=>"valid"===e.status,ph=e=>"undefined"!=typeof Promise&&e instanceof Promise;class vh{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hh=(e,t)=>{if(fh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Xv(e.common.issues);return this._error=t,this._error}}};function mh(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{const{message:i}=e;return"invalid_enum_value"===t.code?{message:i??o.defaultError}:void 0===o.data?{message:i??n??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:i??r??o.defaultError}},description:o}}class yh{get description(){return this._def.description}_getType(e){return Jv(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Jv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ah,ctx:{common:e.parent.common,data:e.data,parsedType:Jv(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ph(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){const r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)},n=this._parseSync({data:e,path:r.path,parent:r});return hh(r,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:t});return fh(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>fh(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Jv(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(ph(n)?n:Promise.resolve(n));return hh(r,o)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{const o=e(t),i=()=>n.addIssue({code:Yv.custom,...r(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(i(),!1)):!!o||(i(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new hm({schema:this,typeName:km.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return mm.create(this,this._def)}nullable(){return ym.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return em.create(this)}promise(){return vm.create(this,this._def)}or(e){return nm.create([this,e],this._def)}and(e){return im.create(this,e,this._def)}transform(e){return new hm({...mh(this._def),schema:this,typeName:km.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new gm({...mh(this._def),innerType:this,defaultValue:t,typeName:km.ZodDefault})}brand(){return new wm({typeName:km.ZodBranded,type:this,...mh(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new bm({...mh(this._def),innerType:this,catchValue:t,typeName:km.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return jm.create(this,e)}readonly(){return _m.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const gh=/^c[^\s-]{8,}$/i,bh=/^[0-9a-z]+$/,xh=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wh=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,jh=/^[a-z0-9_-]{21}$/i,_h=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kh=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Sh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Oh;const Nh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ph=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ch=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Eh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ah=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Th="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Dh=new RegExp(`^${Th}$`);function Fh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Ih(e){return new RegExp(`^${Fh(e)}$`)}function Mh(e){let t=`${Th}T${Fh(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Lh(e,t){return!("v4"!==t&&t||!Nh.test(e))||!("v6"!==t&&t||!Ch.test(e))}function Vh(e,t){if(!_h.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return"object"==typeof o&&null!==o&&((!("typ"in o)||"JWT"===o?.typ)&&(!!o.alg&&(!t||o.alg===t)))}catch{return!1}}function $h(e,t){return!("v4"!==t&&t||!Ph.test(e))||!("v6"!==t&&t||!Eh.test(e))}class zh extends yh{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Qv.string){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.string,received:t.parsedType}),sh}const t=new ah;let r;for(const n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("max"===n.kind)e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),t.dirty());else if("length"===n.kind){const o=e.data.length>n.value,i=e.data.length<n.value;(o||i)&&(r=this._getOrReturnCtx(e,r),o?ih(r,{code:Yv.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&ih(r,{code:Yv.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),t.dirty())}else if("email"===n.kind)Sh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"email",code:Yv.invalid_string,message:n.message}),t.dirty());else if("emoji"===n.kind)Oh||(Oh=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Oh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"emoji",code:Yv.invalid_string,message:n.message}),t.dirty());else if("uuid"===n.kind)wh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"uuid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("nanoid"===n.kind)jh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"nanoid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("cuid"===n.kind)gh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cuid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("cuid2"===n.kind)bh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cuid2",code:Yv.invalid_string,message:n.message}),t.dirty());else if("ulid"===n.kind)xh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"ulid",code:Yv.invalid_string,message:n.message}),t.dirty());else if("url"===n.kind)try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),ih(r,{validation:"url",code:Yv.invalid_string,message:n.message}),t.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"regex",code:Yv.invalid_string,message:n.message}),t.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),t.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{startsWith:n.value},message:n.message}),t.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:{endsWith:n.value},message:n.message}),t.dirty());else if("datetime"===n.kind){Mh(n).test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"datetime",message:n.message}),t.dirty())}else if("date"===n.kind){Dh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"date",message:n.message}),t.dirty())}else if("time"===n.kind){Ih(n).test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.invalid_string,validation:"time",message:n.message}),t.dirty())}else"duration"===n.kind?kh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"duration",code:Yv.invalid_string,message:n.message}),t.dirty()):"ip"===n.kind?Lh(e.data,n.version)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"ip",code:Yv.invalid_string,message:n.message}),t.dirty()):"jwt"===n.kind?Vh(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"jwt",code:Yv.invalid_string,message:n.message}),t.dirty()):"cidr"===n.kind?$h(e.data,n.version)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"cidr",code:Yv.invalid_string,message:n.message}),t.dirty()):"base64"===n.kind?Rh.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"base64",code:Yv.invalid_string,message:n.message}),t.dirty()):"base64url"===n.kind?Ah.test(e.data)||(r=this._getOrReturnCtx(e,r),ih(r,{validation:"base64url",code:Yv.invalid_string,message:n.message}),t.dirty()):Gv.assertNever(n);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:Yv.invalid_string,...nh.errToObj(r)})}_addCheck(e){return new zh({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...nh.errToObj(e)})}url(e){return this._addCheck({kind:"url",...nh.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...nh.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...nh.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...nh.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...nh.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...nh.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...nh.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...nh.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...nh.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...nh.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...nh.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...nh.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...nh.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...nh.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...nh.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...nh.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...nh.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...nh.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...nh.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...nh.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...nh.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...nh.errToObj(t)})}nonempty(e){return this.min(1,nh.errToObj(e))}trim(){return new zh({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zh({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zh({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Uh(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}zh.create=e=>new zh({checks:[],typeName:km.ZodString,coerce:e?.coerce??!1,...mh(e)});class qh extends yh{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Qv.number){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.number,received:t.parsedType}),sh}let t;const r=new ah;for(const n of this._def.checks)if("int"===n.kind)Gv.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==Uh(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_finite,message:n.message}),r.dirty()):Gv.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,nh.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nh.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nh.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nh.toString(t))}setLimit(e,t,r,n){return new qh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nh.toString(n)}]})}_addCheck(e){return new qh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:nh.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nh.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nh.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nh.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nh.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nh.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:nh.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nh.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nh.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&Gv.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}qh.create=e=>new qh({checks:[],typeName:km.ZodNumber,coerce:e?.coerce||!1,...mh(e)});class Wh extends yh{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Qv.bigint)return this._getInvalidInput(e);let t;const r=new ah;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),ih(t,{code:Yv.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):Gv.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.bigint,received:t.parsedType}),sh}gte(e,t){return this.setLimit("min",e,!0,nh.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nh.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nh.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nh.toString(t))}setLimit(e,t,r,n){return new Wh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nh.toString(n)}]})}_addCheck(e){return new Wh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nh.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nh.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nh.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nh.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nh.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Wh.create=e=>new Wh({checks:[],typeName:km.ZodBigInt,coerce:e?.coerce??!1,...mh(e)});class Bh extends yh{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Qv.boolean){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.boolean,received:t.parsedType}),sh}return ch(e.data)}}Bh.create=e=>new Bh({typeName:km.ZodBoolean,coerce:e?.coerce||!1,...mh(e)});class Hh extends yh{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Qv.date){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.date,received:t.parsedType}),sh}if(Number.isNaN(e.data.getTime())){return ih(this._getOrReturnCtx(e),{code:Yv.invalid_date}),sh}const t=new ah;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),ih(r,{code:Yv.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):Gv.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Hh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:nh.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:nh.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Hh.create=e=>new Hh({checks:[],coerce:e?.coerce||!1,typeName:km.ZodDate,...mh(e)});class Gh extends yh{_parse(e){if(this._getType(e)!==Qv.symbol){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.symbol,received:t.parsedType}),sh}return ch(e.data)}}Gh.create=e=>new Gh({typeName:km.ZodSymbol,...mh(e)});class Zh extends yh{_parse(e){if(this._getType(e)!==Qv.undefined){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.undefined,received:t.parsedType}),sh}return ch(e.data)}}Zh.create=e=>new Zh({typeName:km.ZodUndefined,...mh(e)});class Kh extends yh{_parse(e){if(this._getType(e)!==Qv.null){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.null,received:t.parsedType}),sh}return ch(e.data)}}Kh.create=e=>new Kh({typeName:km.ZodNull,...mh(e)});class Qh extends yh{constructor(){super(...arguments),this._any=!0}_parse(e){return ch(e.data)}}Qh.create=e=>new Qh({typeName:km.ZodAny,...mh(e)});class Jh extends yh{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ch(e.data)}}Jh.create=e=>new Jh({typeName:km.ZodUnknown,...mh(e)});class Yh extends yh{_parse(e){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.never,received:t.parsedType}),sh}}Yh.create=e=>new Yh({typeName:km.ZodNever,...mh(e)});class Xh extends yh{_parse(e){if(this._getType(e)!==Qv.undefined){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.void,received:t.parsedType}),sh}return ch(e.data)}}Xh.create=e=>new Xh({typeName:km.ZodVoid,...mh(e)});class em extends yh{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==Qv.array)return ih(t,{code:Yv.invalid_type,expected:Qv.array,received:t.parsedType}),sh;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(e||o)&&(ih(t,{code:e?Yv.too_big:Yv.too_small,minimum:o?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(ih(t,{code:Yv.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(ih(t,{code:Yv.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new vh(t,e,t.path,r)))).then(e=>ah.mergeArray(r,e));const o=[...t.data].map((e,r)=>n.type._parseSync(new vh(t,e,t.path,r)));return ah.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new em({...this._def,minLength:{value:e,message:nh.toString(t)}})}max(e,t){return new em({...this._def,maxLength:{value:e,message:nh.toString(t)}})}length(e,t){return new em({...this._def,exactLength:{value:e,message:nh.toString(t)}})}nonempty(e){return this.min(1,e)}}function tm(e){if(e instanceof rm){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=mm.create(tm(n))}return new rm({...e._def,shape:()=>t})}return e instanceof em?new em({...e._def,type:tm(e.element)}):e instanceof mm?mm.create(tm(e.unwrap())):e instanceof ym?ym.create(tm(e.unwrap())):e instanceof am?am.create(e.items.map(e=>tm(e))):e}em.create=(e,t)=>new em({type:e,minLength:null,maxLength:null,exactLength:null,typeName:km.ZodArray,...mh(t)});class rm extends yh{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Gv.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==Qv.object){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.object,received:t.parsedType}),sh}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof Yh&&"strip"===this._def.unknownKeys))for(const e in r.data)o.includes(e)||i.push(e);const a=[];for(const e of o){const t=n[e],o=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new vh(r,o,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Yh){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)i.length>0&&(ih(r,{code:Yv.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new vh(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of a){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>ah.mergeObjectSync(t,e)):ah.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return nh.errToObj,new rm({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{const n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:nh.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new rm({...this._def,unknownKeys:"strip"})}passthrough(){return new rm({...this._def,unknownKeys:"passthrough"})}extend(e){return new rm({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new rm({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:km.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new rm({...this._def,catchall:e})}pick(e){const t={};for(const r of Gv.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new rm({...this._def,shape:()=>t})}omit(e){const t={};for(const r of Gv.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new rm({...this._def,shape:()=>t})}deepPartial(){return tm(this)}partial(e){const t={};for(const r of Gv.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new rm({...this._def,shape:()=>t})}required(e){const t={};for(const r of Gv.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof mm;)e=e._def.innerType;t[r]=e}return new rm({...this._def,shape:()=>t})}keyof(){return dm(Gv.objectKeys(this.shape))}}rm.create=(e,t)=>new rm({shape:()=>e,unknownKeys:"strip",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)}),rm.strictCreate=(e,t)=>new rm({shape:()=>e,unknownKeys:"strict",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)}),rm.lazycreate=(e,t)=>new rm({shape:e,unknownKeys:"strip",catchall:Yh.create(),typeName:km.ZodObject,...mh(t)});class nm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map(e=>new Xv(e.ctx.common.issues));return ih(t,{code:Yv.invalid_union,unionErrors:r}),sh});{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=n.map(e=>new Xv(e));return ih(t,{code:Yv.invalid_union,unionErrors:o}),sh}}get options(){return this._def.options}}nm.create=(e,t)=>new nm({options:e,typeName:km.ZodUnion,...mh(t)});function om(e,t){const r=Jv(e),n=Jv(t);if(e===t)return{valid:!0,data:e};if(r===Qv.object&&n===Qv.object){const r=Gv.objectKeys(t),n=Gv.objectKeys(e).filter(e=>-1!==r.indexOf(e)),o={...e,...t};for(const r of n){const n=om(e[r],t[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(r===Qv.array&&n===Qv.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const o=om(e[n],t[n]);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return r===Qv.date&&n===Qv.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class im extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(uh(e)||uh(n))return sh;const o=om(e.value,n.value);return o.valid?((dh(e)||dh(n))&&t.dirty(),{status:t.value,value:o.data}):(ih(r,{code:Yv.invalid_intersection_types}),sh)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}im.create=(e,t,r)=>new im({left:e,right:t,typeName:km.ZodIntersection,...mh(r)});class am extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.array)return ih(r,{code:Yv.invalid_type,expected:Qv.array,received:r.parsedType}),sh;if(r.data.length<this._def.items.length)return ih(r,{code:Yv.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),sh;!this._def.rest&&r.data.length>this._def.items.length&&(ih(r,{code:Yv.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new vh(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>ah.mergeArray(t,e)):ah.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new am({...this._def,rest:e})}}am.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new am({items:e,typeName:km.ZodTuple,rest:null,...mh(t)})};class sm extends yh{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.map)return ih(r,{code:Yv.invalid_type,expected:Qv.map,received:r.parsedType}),sh;const n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new vh(r,e,r.path,[i,"key"])),value:o._parse(new vh(r,t,r.path,[i,"value"]))}));if(r.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const r of i){const n=await r.key,o=await r.value;if("aborted"===n.status||"aborted"===o.status)return sh;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}})}{const e=new Map;for(const r of i){const n=r.key,o=r.value;if("aborted"===n.status||"aborted"===o.status)return sh;"dirty"!==n.status&&"dirty"!==o.status||t.dirty(),e.set(n.value,o.value)}return{status:t.value,value:e}}}}sm.create=(e,t,r)=>new sm({valueType:t,keyType:e,typeName:km.ZodMap,...mh(r)});class lm extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Qv.set)return ih(r,{code:Yv.invalid_type,expected:Qv.set,received:r.parsedType}),sh;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(ih(r,{code:Yv.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(ih(r,{code:Yv.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const o=this._def.valueType;function i(e){const r=new Set;for(const n of e){if("aborted"===n.status)return sh;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map((e,t)=>o._parse(new vh(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>i(e)):i(a)}min(e,t){return new lm({...this._def,minSize:{value:e,message:nh.toString(t)}})}max(e,t){return new lm({...this._def,maxSize:{value:e,message:nh.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}lm.create=(e,t)=>new lm({valueType:e,minSize:null,maxSize:null,typeName:km.ZodSet,...mh(t)});class cm extends yh{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}cm.create=(e,t)=>new cm({getter:e,typeName:km.ZodLazy,...mh(t)});class um extends yh{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return ih(t,{received:t.data,code:Yv.invalid_literal,expected:this._def.value}),sh}return{status:"valid",value:e.data}}get value(){return this._def.value}}function dm(e,t){return new fm({values:e,typeName:km.ZodEnum,...mh(t)})}um.create=(e,t)=>new um({value:e,typeName:km.ZodLiteral,...mh(t)});class fm extends yh{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return ih(t,{expected:Gv.joinValues(r),received:t.parsedType,code:Yv.invalid_type}),sh}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return ih(t,{received:t.data,code:Yv.invalid_enum_value,options:r}),sh}return ch(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return fm.create(e,{...this._def,...t})}exclude(e,t=this._def){return fm.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}fm.create=dm;class pm extends yh{_parse(e){const t=Gv.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Qv.string&&r.parsedType!==Qv.number){const e=Gv.objectValues(t);return ih(r,{expected:Gv.joinValues(e),received:r.parsedType,code:Yv.invalid_type}),sh}if(this._cache||(this._cache=new Set(Gv.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=Gv.objectValues(t);return ih(r,{received:r.data,code:Yv.invalid_enum_value,options:e}),sh}return ch(e.data)}get enum(){return this._def.values}}pm.create=(e,t)=>new pm({values:e,typeName:km.ZodNativeEnum,...mh(t)});class vm extends yh{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Qv.promise&&!1===t.common.async)return ih(t,{code:Yv.invalid_type,expected:Qv.promise,received:t.parsedType}),sh;const r=t.parsedType===Qv.promise?t.data:Promise.resolve(t.data);return ch(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}vm.create=(e,t)=>new vm({type:e,typeName:km.ZodPromise,...mh(t)});class hm extends yh{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===km.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:e=>{ih(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===n.type){const e=n.transform(r.data,o);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return sh;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?sh:"dirty"===n.status||"dirty"===t.value?lh(n.value):n});{if("aborted"===t.value)return sh;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?sh:"dirty"===n.status||"dirty"===t.value?lh(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,o);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?sh:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?sh:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fh(e))return sh;const i=n.transform(e.value,o);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>fh(e)?Promise.resolve(n.transform(e.value,o)).then(e=>({status:t.value,value:e})):sh)}Gv.assertNever(n)}}hm.create=(e,t,r)=>new hm({schema:e,typeName:km.ZodEffects,effect:t,...mh(r)}),hm.createWithPreprocess=(e,t,r)=>new hm({schema:t,effect:{type:"preprocess",transform:e},typeName:km.ZodEffects,...mh(r)});class mm extends yh{_parse(e){return this._getType(e)===Qv.undefined?ch(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}mm.create=(e,t)=>new mm({innerType:e,typeName:km.ZodOptional,...mh(t)});class ym extends yh{_parse(e){return this._getType(e)===Qv.null?ch(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ym.create=(e,t)=>new ym({innerType:e,typeName:km.ZodNullable,...mh(t)});class gm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Qv.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}gm.create=(e,t)=>new gm({innerType:e,typeName:km.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...mh(t)});class bm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ph(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Xv(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Xv(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}bm.create=(e,t)=>new bm({innerType:e,typeName:km.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...mh(t)});class xm extends yh{_parse(e){if(this._getType(e)!==Qv.nan){const t=this._getOrReturnCtx(e);return ih(t,{code:Yv.invalid_type,expected:Qv.nan,received:t.parsedType}),sh}return{status:"valid",value:e.data}}}xm.create=e=>new xm({typeName:km.ZodNaN,...mh(e)});Symbol("zod_brand");class wm extends yh{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class jm extends yh{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?sh:"dirty"===e.status?(t.dirty(),lh(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?sh:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new jm({in:e,out:t,typeName:km.ZodPipeline})}}class _m extends yh{_parse(e){const t=this._def.innerType._parse(e),r=e=>(fh(e)&&(e.value=Object.freeze(e.value)),e);return ph(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}_m.create=(e,t)=>new _m({innerType:e,typeName:km.ZodReadonly,...mh(t)});rm.lazycreate;var km;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(km||(km={}));const Sm=zh.create,Om=(qh.create,xm.create,Wh.create,Bh.create),Nm=(Hh.create,Gh.create,Zh.create,Kh.create,Qh.create,Jh.create,Yh.create,Xh.create,em.create),Pm=rm.create,Cm=(rm.strictCreate,nm.create,im.create,am.create,sm.create,lm.create,cm.create,um.create,fm.create),Em=(pm.create,vm.create,hm.create,mm.create,ym.create,hm.createWithPreprocess,jm.create,e=>qh.create({...e,coerce:!0}));var Rm=/^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/,Am=Pm({chosen_plugins:Nm(Sm()),ip_tags:Nm(Sm().refine(function(e){return Rm.test(e)},{message:"Invalid IP address"})).min(1,{message:"At least one IP address is required"})}),Tm=Pm({enable_maintenance:Om(),show_subscribers_only:Om(),title:Sm().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Sm().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Sm().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Sm().optional(),background_image_id:Em().optional(),logo:Sm().optional(),logo_id:Em().optional(),template:Sm().optional()}),Dm=Pm({enable_comingsoon:Om(),show_subscribers_only:Om(),title:Sm().min(1,{message:"Title is required"}).min(3,{message:"Title must be at least 3 characters"}),description:Sm().min(1,{message:"Description is required"}).min(10,{message:"Description must be at least 10 characters"}),subtitle:Sm().min(1,{message:"Subtitle is required"}).min(3,{message:"Subtitle must be at least 3 characters"}),background_image:Sm().optional(),background_image_id:Em().optional(),logo:Sm().optional(),logo_id:Em().optional(),template:Sm().optional()}),Fm=Pm({activeTheme:Sm().min(1,{message:"Please select a theme"})}),Im=Pm({display_name:Sm().min(1,{message:"Display name is required"}),email:Sm().email({message:"Invalid email address"}),role:Sm().min(1,{message:"Please select a role"}),expires_at:Cm(["1_hour","3_hours","6_hours","12_hours","1_day","3_days","1_week","2_weeks","1_month","3_months","6_months","1_year","custom"],{message:"Please select an expiration time"}),redirect_url:Sm().url({message:"Invalid URL format"}),ip_address:Sm().optional().refine(function(e){return!e||Rm.test(e)},{message:"Invalid IP address"})});function Mm(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Lm(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Lm(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Lm(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Lm(d,"constructor",c),Lm(c,"constructor",l),l.displayName="GeneratorFunction",Lm(c,o,"GeneratorFunction"),Lm(d),Lm(d,o,"Generator"),Lm(d,n,function(){return this}),Lm(d,"toString",function(){return"[object Generator]"}),(Mm=function(){return{w:i,m:f}})()}function Lm(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Lm=function(e,t,r,n){function i(t,r){Lm(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Lm(e,t,r,n)}function Vm(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function $m(e){return function(e){if(Array.isArray(e))return qm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Um(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Um(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Um(e,t){if(e){if("string"==typeof e)return qm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qm(e,t):void 0}}function qm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Wm(e){var t,r=e.tags,n=e.onChange,i=zm((0,a().useState)(""),2),s=i[0],l=i[1],c=zm((0,a().useState)(null),2),u=c[0],d=c[1],f=function(){var e=s.trim();e&&(Rm.test(e)?r.includes(e)||(n([].concat($m(r),[e])),l(""),d(null)):d((0,mi.__)("Invalid IP address","versatile-toolkit")))},p=oa({mutationFn:(t=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_add_my_ip",e.n=1,Oa(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to add IP","versatile-toolkit"))}}),v=function(){var e,t=(e=Mm().m(function e(){var t,o,i;return Mm().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,p.mutateAsync({});case 1:if(t=e.v,o=t.data,i=null==o?void 0:o.ip,!r.includes(i)){e.n=2;break}return Lr.success((0,mi.__)("System Ip already added!","versatile-toolkit")),e.a(2);case 2:!r.includes(i)&&i&&(n([].concat($m(r),[i])),Lr.success((0,mi.__)("System Ip address added","versatile-toolkit")));case 3:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Vm(i,n,o,a,s,"next",e)}function s(e){Vm(i,n,o,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)("div",{className:"vt-relative",children:[(0,o().jsx)(Kv,{type:"text",placeholder:(0,mi.__)("Enter IP address","versatile-toolkit"),value:s,onChange:function(e){l(e.target.value),u&&d(null)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),f())},onBlur:function(e){f()}}),(0,o().jsx)(vs,{type:"button",size:"xs",className:"vt-absolute vt-right-1 vt-top-1/2 -vt-translate-y-1/2",onClick:v,children:(0,o().jsx)(bi,{isLoading:p.isPending,loadingText:(0,mi.__)("Add My IP","versatile-toolkit"),size:"xs",children:(0,mi.__)("Add My IP","versatile-toolkit")})})]}),u&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:u}),(0,o().jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-2 vt-mt-2",children:r.map(function(e){return(0,o().jsxs)(xs,{variant:"default",className:"vt-flex vt-items-center vt-gap-1",children:[e,(0,o().jsxs)(vs,{type:"button",variant:"ghost",size:"xs",className:"vt-h-min !vt-px-[1px] !vt-py-[1px]",onClick:function(){return t=e,void n(r.filter(function(e){return e!==t}));var t},"aria-label":(0,mi.__)("Remove IP address","versatile-toolkit"),children:[(0,o().jsx)(pd,{size:12,"aria-hidden":!0}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Remove","versatile-toolkit")})]})]},e)})})]})}function Bm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Gm(e){var t=e.selectedTheme,r=e.onChange,n=Bm((0,a().useState)([]),2),i=n[0],s=n[1],l=Bm((0,a().useState)(!1),2),c=l[0],u=l[1],d=Fv().data;(0,a().useEffect)(function(){d&&s(d.data)},[d]);var f=i.find(function(e){return e.slug===t});return(0,o().jsx)("div",{children:(0,o().jsxs)(Nv,{open:c,onOpenChange:u,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":c,className:"vt-w-full vt-justify-between min-h-[2.5rem] vt-h-auto vt-p-3 vt-bg-transparent",children:[(0,o().jsx)("div",{className:"vt-flex vt-flex-wrap vt-gap-1 vt-flex-1 vt-text-left",children:f?(0,o().jsx)("span",{className:"vt-font-medium",children:f.label}):(0,o().jsx)("span",{className:"vt-text-muted-foreground",children:(0,mi.__)("Select a theme...","versatile-toolkit")})}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-full vt-p-0",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search theme...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No theme found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:i.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return function(e){r(e),u(!1)}(e.slug)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",t===e.slug?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.slug)})})]})]})})]})})}var Zm=e=>"checkbox"===e.type,Km=e=>"file"===e.type,Qm=e=>e instanceof Date,Jm=e=>null==e;const Ym=e=>"object"==typeof e;var Xm=e=>!Jm(e)&&!Array.isArray(e)&&Ym(e)&&!Qm(e),ey=e=>Xm(e)&&e.target?Zm(e.target)?e.target.checked:Km(e.target)?e.target.files:e.target.value:e;const ty=/[.[\]'"]/;var ry=e=>e.split(ty).filter(Boolean);var ny=(e,t)=>t.split(".").some((t,r,n)=>!isNaN(Number(t))&&e.has(n.slice(0,r).join("."))),oy="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function iy(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);const t="undefined"!=typeof Blob&&e instanceof Blob,r="undefined"!=typeof FileList&&e instanceof FileList;if(oy&&(t||r))return e;const n=Array.isArray(e),o=Object.getPrototypeOf(e);if(!n&&o&&o.constructor!==Object)return e;const i=n?new Array(e.length):Object.create(o);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=iy(e[t]));return i}const ay="blur",sy="focusout",ly="change",cy="submit",uy="trigger",dy="valid",fy="onBlur",py="onChange",vy="onSubmit",hy="onTouched",my="all",yy="max",gy="min",by="maxLength",xy="minLength",wy="pattern",jy="required",_y="validate",ky=[jy,gy,yy,xy,by,wy,_y],Sy="form",Oy="root",Ny=["__proto__","constructor","prototype"],Py=/^\w*$/;var Cy=e=>Py.test(e),Ey=e=>void 0===e,Ry=(e,t,r)=>{if(!t||!Xm(e))return r;const n=Cy(t)?[t]:ry(t);if(n.some(e=>Ny.includes(e)))return r;const o=n.reduce((e,t)=>Jm(e)?void 0:e[t],e);return Ey(o)||o===e?Ey(e[t])?r:e[t]:o},Ay=e=>"boolean"==typeof e,Ty=e=>"function"==typeof e,Dy=(e,t,r)=>{let n=-1;const o=Cy(t)?[t]:ry(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=Xm(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if(Ny.includes(t))return;e[t]=i,e=e[t]}};const Fy=a().createContext(null);Fy.displayName="HookFormControlContext";const Iy=()=>a().useContext(Fy);var My=(e,t,r,n=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==my&&(t._proxyFormState[o]=!n||my),r&&(r[o]=!0),e[o]}});return o};const Ly="undefined"!=typeof window?a().useLayoutEffect:a().useEffect;var Vy=e=>Jm(e)||!Ym(e);const $y=(e,t)=>0===t.length&&!Array.isArray(e)&&null!==Object.getPrototypeOf(e)&&!(e=>{const t=e.constructor&&e.constructor.prototype;return Xm(t)&&t.hasOwnProperty("isPrototypeOf")})(e);function zy(e,t,r=!1,n=new WeakMap){if(e===t)return!0;if(Vy(e)||Vy(t))return Object.is(e,t);if(Qm(e)&&Qm(t))return Object.is(e.getTime(),t.getTime());if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return!1;const o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;if($y(e,o)||$y(t,i))return Object.is(e,t);if(!o.length&&Array.isArray(e)!==Array.isArray(t))return!1;const a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{const r=new WeakSet;r.add(t),n.set(e,r)}for(const i of o){const o=e[i];if(!Object.prototype.hasOwnProperty.call(t,i))return!1;if(!r||"ref"!==i){const e=t[i];if(Qm(o)&&Qm(e)||(Xm(o)||Array.isArray(o))&&(Xm(e)||Array.isArray(e))?!zy(o,e,r,n):!Object.is(o,e))return!1}}return!0}const Uy=({defaultValues:e,...t})=>({...iy(t),defaultValues:e});function qy(e,t=iy){const r=a().useRef(!1),n=a().useRef(!1),o=a().useRef(void 0),i=a().useRef(0);i.current++,!n.current&&e&&(n.current=!0,o.current=t(e()));return{resyncIfNeeded:a().useCallback((e,t,a)=>{if(e&&(r.current||n.current&&i.current>1)){const e=t();zy(o.current,e)||a(e)}r.current=!0},[]),snapshot:a().useCallback((e,r)=>{e&&(o.current=t(r()))},[t])}}function Wy(e){const t=Iy(),{control:r=t,disabled:n,name:o,exact:i}=e||{},s=()=>({...r._formState,defaultValues:r._defaultValues}),[l,c]=a().useState(s),u=a().useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:d,snapshot:f}=qy(s,Uy);return Ly(()=>{d(!n,s,c);const e=r._subscribe({name:o,formState:u.current,exact:i,callback:e=>{!n&&c({...r._formState,...e,defaultValues:r._defaultValues})}});return()=>{e(),f(!n,s)}},[r,o,n,i,d,f]),a().useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),a().useMemo(()=>My(l,r,u.current,!1),[l,r])}var By=e=>"string"==typeof e,Hy=(e,t,r,n,o)=>By(e)?(n&&t.watch.add(e),Ry(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),Ry(r,e,Ry(o,e)))):(n&&(t.watchAll=!0),r);function Gy(e){const t=Iy(),{control:r=t,name:n,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},c=a().useRef(o),u=a().useRef(l),d=a().useRef(r),f=a().useRef(n);u.current=l;const p=()=>{const e=r._getWatch(n,c.current);return u.current?u.current(e):e},[v,h]=a().useState(p),m=a().useRef(v),y=a().useCallback(e=>{const t=Hy(n,r._names,e||r._formValues,!1,c.current);return u.current?u.current(t):t},[r._formValues,r._names,n]),g=a().useCallback(e=>{if(!i){const t=Hy(n,r._names,e||r._formValues,!1,c.current);if(u.current){const e=u.current(t);zy(e,m.current)||(h(e),m.current=e)}else h(t),m.current=t}},[r._formValues,r._names,i,n]),{resyncIfNeeded:b,snapshot:x}=qy(p),w=a().useRef(g);w.current=g;const j=a().useRef(y);j.current=y,Ly(()=>{d.current===r&&zy(f.current,n)?b(!i,()=>j.current(),e=>{const t=iy(e);h(t),m.current=t}):(d.current=r,f.current=n,w.current());const e=r._subscribe({name:n,formState:{values:!0},exact:s,callback:e=>{w.current(e.values)}});return()=>{e(),x(!i,()=>j.current())}},[r,s,n,i,b,x]),a().useEffect(()=>r._removeUnmounted());const _=d.current!==r,k=f.current,S=a().useMemo(()=>!_&&!zy(k,n),[_,n,k]);(_||S)&&(c.current=o);return!i&&(_||S)?y():v}function Zy(e){const t=Iy(),{name:r,disabled:n,control:o=t,shouldUnregister:i,defaultValue:s,exact:l=!0}=e,c=ny(o._names.array,r),u=a().useMemo(()=>{const e=Ry(o._formValues,r,Ry(o._defaultValues,r,s));return Ey(e)?function(e,t){const r=ry(t);let n=e._formValues,o=e._defaultValues;for(let e=0;e<r.length-1;e++){const t=r[e];if(n=null==n?n:n[t],o=null==o?o:o[t],null===n||null===o)return null}}(o,r):e},[o,r,s]),d=Gy({control:o,name:r,defaultValue:u,exact:l}),f=Wy({control:o,name:r,exact:l}),p=a().useRef(e),v=a().useRef(i),h=a().useRef(null),m=a().useRef(void 0),y=a().useRef(o.register(r,{...e.rules,value:m.current!==r||Ry(o._fields,r)?d:void 0,...Ay(e.disabled)?{disabled:e.disabled}:{}}));m.current=r,p.current=e;const g=a().useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ry(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ry(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ry(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ry(f.validatingFields,r)},error:{enumerable:!0,get:()=>Ry(f.errors,r)}}),[f,r]),b=a().useCallback(e=>{const t=ey(e);return Ry(o._fields,r)||(y.current=o.register(r,{...p.current.rules,value:t})),y.current.onChange({target:{value:ey(e),name:r},type:ly})},[r,o]),x=a().useCallback(()=>{const e=Ry(o._formValues,r);return Ry(o._fields,r)||(y.current=o.register(r,{...p.current.rules,value:e})),y.current.onBlur({target:{value:e,name:r},type:ay})},[r,o]),w=a().useCallback(e=>{e&&(h.current={focus:()=>Ty(e.focus)&&e.focus(),select:()=>Ty(e.select)&&e.select(),setCustomValidity:t=>Ty(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Ty(e.reportValidity)&&e.reportValidity()});const t=Ry(o._fields,r);t&&t._f&&e&&(t._f.ref=h.current,t._f._c=!0)},[o._fields,r]),j=a().useMemo(()=>({name:r,value:d,...Ay(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:b,onBlur:x,ref:w}),[r,n,f.disabled,b,x,w,d]);return a().useEffect(()=>{if(v.current=i,o._options.shouldUnregister||i){const e=iy(Ry(i?o._defaultValues:o._options.values||o._defaultValues,r,Ry(o._options.defaultValues,r,p.current.defaultValue)));Dy(o._defaultValues,r,e),Ey(Ry(o._formValues,r))&&Dy(o._formValues,r,e)}else c||Ey(p.current.defaultValue)||!Ey(Ry(o._defaultValues,r))||(Dy(o._defaultValues,r,iy(p.current.defaultValue)),o._subjects.state.next({defaultValues:o._defaultValues}))},[o,r,c,i]),a().useEffect(()=>{y.current=o.register(r,{...p.current.rules,...Ay(p.current.disabled)?{disabled:p.current.disabled}:{}});const e=(e,t)=>{const r=Ry(o._fields,e);r&&r._f&&(r._f.mount=t,r._f._c=t)};if(e(r,!0),!c&&o.register(r,{...p.current.rules,...Ay(p.current.disabled)?{disabled:p.current.disabled}:{}}),h.current){const e=Ry(o._fields,r);e&&e._f&&(e._f.ref=h.current)}return()=>{const t=o._options.shouldUnregister||v.current;(c?t&&!o._state.action:t)?o.unregister(r):e(r,!1)}},[r,o,c]),a().useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),a().useMemo(()=>({field:j,formState:f,fieldState:g}),[j,f,g])}const Ky=e=>e.render(Zy(e));var Qy=e=>({isOnSubmit:!e||e===vy,isOnBlur:e===fy,isOnChange:e===py,isOnAll:e===my,isOnTouch:e===hy}),Jy=(e,t,r)=>{if(r)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const r of t.watch)if(e.startsWith(r)&&"."===e.charAt(r.length))return!0;return!1};const Yy=(e,t,r)=>{var n;for(const o of r||Object.keys(e)){if("_f"===o)continue;const i=r?Ry(e,o):e[o];if(i){const{_f:e}=i;if(e){const r=null===(n=e.refs)||void 0===n?void 0:n.find(e=>!e.disabled);if(r&&t(r,e.name))return!0;if(e.ref&&t(e.ref,e.name))return!0;if(Yy(i,t))return!0}else if((Xm(i)||Array.isArray(i))&&Yy(i,t))return!0}}};var Xy=(e,t,r)=>{const n=Ry(e,r),o=Array.isArray(n)?n:[];return Dy(o,Oy,Ry(t[r],Oy,t[r])),Dy(e,r,o),e},eg=e=>Xm(e)&&!Object.keys(e).length,tg=e=>{if(!oy)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rg=e=>"radio"===e.type,ng=e=>e instanceof RegExp,og=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const ig={value:!1,isValid:!1},ag={value:!0,isValid:!0};var sg=e=>{if(!Array.isArray(e))return ig;if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}const t=e[0];return t&&t.checked&&!t.disabled?t.attributes&&"value"in t.attributes?Ey(t.value)||""===t.value?ag:{value:t.value,isValid:!0}:ag:ig};const lg={isValid:!1,value:null};var cg=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,lg):lg;function ug(e,t,r="validate"){if(By(e)||Array.isArray(e)&&e.length&&e.every(By)||Ay(e)&&!e)return{type:r,message:By(e)?e:"",ref:t}}var dg=e=>Xm(e)&&!ng(e)?e:{value:e,message:""},fg=async(e,t,r,n,o,i)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:v,name:h,valueAsNumber:m,mount:y,_c:g}=e._f,b=Ry(r,h);if(!y||t.has(h))return{};const x=s?s[0]:a,w=e=>{if(o&&x.reportValidity){const t=Ay(e)?"":e||"";s?s.forEach(e=>Ty(e.setCustomValidity)&&e.setCustomValidity(t)):x.setCustomValidity(t),x.reportValidity()}},j={},_=!g&&rg(a),k=!g&&Zm(a),S=_||k,O=(m||Km(a))&&Ey(a.value)&&Ey(b)||tg(a)&&""===a.value&&!g||""===b||Array.isArray(b)&&!b.length,N=og.bind(null,h,n,j),P=(e,t,r,n=by,o=xy)=>{const i=e?t:r;j[h]={type:e?n:o,message:i,ref:a,...N(e?n:o,i)}};if(i?!Array.isArray(b)||!b.length:l&&(!S&&(O||Jm(b))||Ay(b)&&!b||k&&!sg(s).isValid||_&&!cg(s).isValid)){const{value:e,message:t}=By(l)?{value:!!l,message:l}:dg(l);if(e&&(j[h]={type:jy,message:t,ref:x,...N(jy,t)},!n))return w(t),j}if(!(O||Jm(d)&&Jm(f))){let e,t;const r=dg(f),o=dg(d);if(Jm(b)||Qm(b)||isNaN(b)){const n=!g&&a.valueAsDate||new Date(b),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;By(r.value)&&b&&(e=s?i(b)>i(r.value):l?b>r.value:n>new Date(r.value)),By(o.value)&&b&&(t=s?i(b)<i(o.value):l?b<o.value:n<new Date(o.value))}else{const n=!g&&a.valueAsNumber||(b?+b:b);Jm(r.value)||(e=n>r.value),Jm(o.value)||(t=n<o.value)}if((e||t)&&(P(!!e,r.message,o.message,yy,gy),!n))return w(j[h].message),j}if((!Jm(c)||!Jm(u))&&!O&&(By(b)||i&&Array.isArray(b))){const e=dg(c),t=dg(u),r=!Jm(e.value)&&b.length>+e.value,o=!Jm(t.value)&&b.length<+t.value;if((r||o)&&(P(r,e.message,t.message),!n))return w(j[h].message),j}if(p&&!O&&By(b)){const{value:e,message:t}=dg(p);if(ng(e)&&!b.match(e)&&(j[h]={type:wy,message:t,ref:a,...N(wy,t)},!n))return w(t),j}if(v)if(Ty(v)){const e=ug(await v(b,r),x);if(e&&(j[h]={...e,...N(_y,e.message)},!n))return w(e.message),j}else if(Xm(v)){let e={};for(const t in v){if(!eg(e)&&!n)break;const o=ug(await v[t](b,r),x,t);o&&(e={...o,...N(t,o.message)},n||w(o.message),n&&(j[h]=e))}if(!eg(e)&&(j[h]={ref:x,...e},!n))return j}const C=j[h];return w(!C||C.message),j},pg=e=>Array.isArray(e)?e:[e];var vg=e=>Array.isArray(e)?e.filter(Boolean):[];function hg(e,t){if(!Xm(e)&&!Array.isArray(e))return e;if(By(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:Cy(t)?[t]:ry(t);if(r.some(e=>Ny.includes(String(e))))return e;const n=1===r.length?e:function(e,t){const r=t.length-1;let n=0;for(;n<r;){if(Jm(e)){e=void 0;break}e=e[t[n]],n++}return e}(e,r),o=r.length-1,i=r[o];return n&&(Xm(n)||Array.isArray(n))&&delete n[i],0!==o&&(Xm(n)&&eg(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ey(e[t]))return!1;return!0}(n))&&hg(e,r.slice(0,-1)),e}var mg=()=>{let e=new Set,t=0;return{get observers(){return Array.from(e)},next:r=>{const n=e;t++;for(const e of n)e.next&&e.next(r);n===e&&t--},subscribe:r=>(e.add(r),{unsubscribe:()=>{t&&(e=new Set(e),t=0),e.delete(r)}}),unsubscribe:()=>{e=new Set,t=0}}};function yg(e,t){const r=Array.isArray(e)?[]:{};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n],i=t[n];o&&(Xm(o)||Array.isArray(o))&&i?r[n]=yg(o,i):e[n]&&(r[n]=i)}return r}const gg=(e,t)=>null!==e&&Ym(e)&&Object.prototype.hasOwnProperty.call(e,t);var bg=(e,t)=>{if(!t)return!1;let r=e;for(const n of Cy(t)?[t]:ry(t)){if(!gg(r,n))return gg(e,t);r=r[n]}return!0},xg=e=>"select-multiple"===e.type;var wg=e=>tg(e)&&e.isConnected;function jg(e){return Array.isArray(e)||Xm(e)}function _g(e,t,r="",n=[]){for(const o in e){const i=r?`${r}.${o}`:o,a=e[o];jg(a)&&jg(Ry(t,i))?_g(a,t,i,n):a&&n.push(i)}return n}function kg(e){return Array.isArray(e)||Xm(e)&&!(e=>{for(const t in e)if(Ty(e[t]))return!0;return!1})(e)}function Sg(e){return!(!e||!("_f"in e))}function Og(e){return Array.isArray(e)?!e.some(e=>!Ey(e)):!Object.keys(e).length}function Ng(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Pg(e,t={},r){for(const n in e){const o=e[n],i=r&&r[n];!kg(o)||Array.isArray(o)&&Sg(i)?Ey(o)||(t[n]=!0):(t[n]=Array.isArray(o)?[]:{},Pg(o,t[n],i),Og(t[n])&&Ng(t,n))}return t}function Cg(e,t,r,n){r||(r=Pg(t,Array.isArray(Jm(t)?e:t)?[]:{},n));for(const o in e){const i=e[o],a=n&&n[o];!kg(i)||Array.isArray(i)&&Sg(a)?zy(i,Jm(t)?void 0:t[o])?Ng(r,o):r[o]=!0:(Ey(t)||Vy(r[o])?r[o]=Pg(i,Array.isArray(i)?[]:{},a):Cg(i,Jm(t)?{}:t[o],r[o],a),Og(r[o])&&Ng(r,o))}return r}var Eg=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ey(e)?e:t?""===e?NaN:e?+e:e:r&&By(e)?new Date(e):n?n(e):e;function Rg(e){const t=e.ref;return Km(t)?t.files:rg(t)?cg(e.refs).value:xg(t)?[...t.selectedOptions].filter(e=>{var t;return!e.disabled&&!(null===(t=e.closest)||void 0===t?void 0:t.call(e,"optgroup[disabled]"))}).map(({value:e})=>e):Zm(t)?sg(e.refs).value:Eg(t.value,e)}var Ag=e=>Ey(e)?e:ng(e)?e.source:Xm(e)?ng(e.value)?e.value.source:e.value:e;const Tg="AsyncFunction";var Dg=e=>{if(!e||!e.validate)return!1;if(Ty(e.validate))return e.validate.constructor.name===Tg;if(Xm(e.validate))for(const t in e.validate)if(e.validate[t].constructor.name===Tg)return!0;return!1};function Fg(e,t,r){const n=Ry(e,r);if(n&&(n.type||n.message)||Array.isArray(n))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=Ry(t,n),a=Ry(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};o.pop()}return{name:r}}const Ig=(e,t,r)=>r?e===t||e.startsWith(t+"."):e.startsWith(t)||t.startsWith(e);var Mg=(e,t,r)=>{if(!e||!t||e===t)return!0;if(!Array.isArray(e))return Ig(e,t,r);for(const n of e)if(n&&Ig(n,t,r))return!0;return!1};const Lg={mode:vy,reValidateMode:py,shouldFocusError:!0},Vg={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function $g(e={}){let t={...Lg,...e},r={...iy(Vg),isLoading:Ty(t.defaultValues),errors:iy(t.errors)||{},disabled:t.disabled||!1},n={},o=(Xm(t.defaultValues)||Xm(t.values))&&iy(t.defaultValues||t.values)||{},i=t.shouldUnregister?{}:iy(o),a={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s=!1,l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const c={},u={},d=new Set;let f=Qy(t.mode),p=Qy(t.reValidateMode);const v={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...v},m={},y=(...e)=>e.some(e=>h[e]||m[e]),g=e=>{for(const t of d)if(Mg(t.name,e,t.exact))return!0;return!1},b={array:mg(),state:mg()};let x=0,w=0,j=0,_=0;const k={};let S=t.criteriaMode===my;const O=(e,t)=>r=>{clearTimeout(u[e]),u[e]=setTimeout(t,r)},N=e=>{clearTimeout(u[e]),delete u[e],delete c[e]},P=e=>{N(e);const t=`${e}.`;for(const e of Object.keys(c))e.startsWith(t)&&N(e)},C=async e=>{if(!a.keepIsValid&&!t.disabled&&(y("isValid")||e)){const o=++x,i=j;let a;if(t.resolver?(a=eg((await M()).errors),o===x&&R()):a=await V({fields:n,onlyCheckValid:!0,eventType:dy}),o!==x)return;if(i!==j)return C(e);a!==r.isValid&&b.state.next({isValid:a})}},E=(e,t)=>{const n=[...e];if(!n.some(e=>e&&(t?!0!==Ry(r.validatingFields,e):bg(r.validatingFields,e))))return;const o=iy(r.validatingFields);for(const e of n)e&&(t?Dy(o,e,!0):hg(o,e));zy(r.validatingFields,o)||(r.validatingFields=o)},R=(e,n)=>{!t.disabled&&y("isValidating","validatingFields")&&(E(e||l.mount,n),b.state.next({validatingFields:r.validatingFields,isValidating:!eg(r.validatingFields)}))},A=()=>{r.dirtyFields=Cg(o,i,void 0,n)},T=(e,t)=>{Dy(r.errors,e,t),r.errors={...r.errors},b.state.next({errors:r.errors})},D=e=>Cy(e)?[e]:ry(e),F=(e,c,u,d)=>{const f=Ry(n,e);if(f){if((e=>{const t=D(e);let r=i,n=o;for(let e=0;e<t.length-1;e++){const o=t[e];if(r=Jm(r)?r:r[o],n=Jm(n)?n:n[o],null===r&&null!==n)return!0}return!1})(e)||(e=>{if(!a.actionArrayLengths.size)return!1;const t=D(e);let r=i,n="",o=-1,s=0;for(let e=0;e<t.length;e++){if(Jm(r))return!1;const i=t[e];if(n=n?`${n}.${i}`:i,Array.isArray(r)&&+i>=r.length)return-1!==o&&(e!==o||+i<s);if(a.actionArrayLengths.has(n)&&(o=e+1,s=a.actionArrayLengths.get(n)),r=r[i],Ey(r)&&-1!==o&&e>o&&+t[o]<s)return!0}return!1})(e))return;const n=Ey(Ry(i,e)),p=Ry(i,e,Ey(u)?Ry(o,e):u),v=!!d&&!r.isReady&&(e=>Zm(e)?e.checked!==e.defaultChecked:"select-one"===e.type||xg(e)?(e=>{const t=[...e.options];return!e.multiple&&e.size<2&&!t.some(e=>e.defaultSelected)?e.selectedIndex!==t.findIndex(e=>{var t;return!e.disabled&&!(null===(t=e.parentElement)||void 0===t?void 0:t.matches("optgroup[disabled]"))}):t.some(e=>e.selected!==e.defaultSelected)})(e):!rg(e)&&"range"!==e.type&&"color"!==e.type&&"defaultValue"in e&&e.value!==e.defaultValue)(d);if(Ey(p)||d&&d.defaultChecked||v||c){const t=c?p:Rg(f._f);Ey(t)&&(e=>{let t=i;for(const r of D(e)){if(Array.isArray(t)&&+r>=t.length)return!0;t=t&&t[r]}return!1})(e)||(y("dirtyFields")&&!zy(Ry(i,e),t)&&(s=!0),Dy(i,e,t),v&&I(e,t))}else U(e,p);if(a.mount&&!a.action){if(t.resolver&&y("isValidating","validatingFields")?Promise.resolve().then(()=>C()):C(),n&&r.isDirty&&y("isDirty")){$()||(r.isDirty=!1,b.state.next({...r}))}t.shouldUnregister&&n&&!Ey(Ry(i,e))&&Jy(e,l)&&(a.watch=!0)}}},I=(e,a,l,c,u)=>{let d=!1,f=!1;const p={name:e};if(!t.disabled||!0===c){if(!l||c){const t=zy(Ry(o,e),a);if(y("isDirty")&&(f=r.isDirty,r.isDirty=p.isDirty=!t||$(),d=f!==p.isDirty),f=!!Ry(r.dirtyFields,e),t)hg(r.dirtyFields,e);else{const t=Ry(o,e),i=Ry(n,e),s=!!(i&&i._f||!Xm(t)&&!Array.isArray(t))||Cg(t,a,void 0,i);Dy(r.dirtyFields,e,s)}let l=!1;if(s||t&&(y("isDirty")?r.isDirty:$())){s=!1;const e=Cg(o,i,void 0,n);zy(r.dirtyFields,e)||(l=!0,((e,t)=>{for(const t in e)delete e[t];Object.assign(e,t)})(r.dirtyFields,e))}p.dirtyFields=r.dirtyFields,d=d||y("dirtyFields")&&(l||f!==!t)}if(l){const t=bg(r.touchedFields,e)?Ry(r.touchedFields,e):void 0;t||(Dy(r.touchedFields,e,l),p.touchedFields=r.touchedFields,d=d||y("touchedFields")&&t!==l)}d&&u&&b.state.next(p)}return d?p:{}},M=async e=>(R(e,!0),await t.resolver(i,t.context,((e,t,r,n)=>{const o={};for(const r of e){const e=Ry(t,r);e&&Dy(o,r,iy(e._f))}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),L=async({name:e,eventType:n,onlyCheckValid:o})=>{if(t.validate){const a=j,s=++w,l=await t.validate({formValues:i,formState:r,name:e,eventType:n});if(a!==j||n!==cy&&s!==w)return!0;if(o&&(Xm(l)?Object.values(l).some(Boolean):By(l)||!l))return!1;if(Xm(l)){let e=!0;Q(Sy);for(const t in l){const r=l[t];r&&(e=!1,J(`${Sy}.${t}`,{message:By(r.message)?r.message:"",type:r.type||_y}))}return e}return By(l)||!l?(Q(Sy),J(Sy,{message:l||"",type:_y}),!1):(Q(Sy),!0)}return!0},V=async({fields:e,onlyCheckValid:o,name:a,eventType:s,context:c={valid:!0,runRootValidation:!1}})=>{const u=j;if(t.validate&&!c.runRootValidation){c.runRootValidation=!0;if(!await L({name:a,eventType:s,onlyCheckValid:o})&&(c.valid=!1,o))return c.valid}for(const a in e){const d=e[a];if(d){const{_f:e,...f}=d;if(e){const a=l.array.has(e.name),s=d._f&&Dg(d._f),f=y("isValidating","validatingFields");s&&f&&R([e.name],!0);const p=_,v=await fg(d,l.disabled,i,S,t.shouldUseNativeValidation&&!o,a);if(u!==j)return c.valid;if(s&&f&&R([e.name]),!Ry(n,e.name)||k[e.name]>p)continue;if(v[e.name]&&(c.valid=!1,o))break;if(o||(N(e.name),Ry(v,e.name)?a?Xy(r.errors,v,e.name):Dy(r.errors,e.name,v[e.name]):hg(r.errors,e.name)),t.shouldUseNativeValidation&&v[e.name])break}!eg(f)&&await V({context:c,onlyCheckValid:o,fields:f,name:a,eventType:s})}}return c.valid},$=(e,t)=>(e&&!Ey(t)&&Dy(i,e,t),!zy(a.mount?i:o,o)),z=(e,t,r)=>{const n=a.mount?i:Ey(t)||!Ey(e)?o:t;return Hy(e,l,Ey(e)?{...n}:n,r,t)},U=(e,t,r={},o=!1,a=!1,s=!1)=>{const l=Ry(n,e);let c=t;if(l){const r=l._f;r&&(!r.disabled&&Dy(i,e,Eg(t,r)),c=tg(r.ref)&&Jm(t)?"":t,xg(r.ref)?[...r.ref.options].forEach(e=>e.selected=c.includes(e.value)):r.refs?Zm(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(c)?e.checked=!Ey(e.value)&&c.includes(e.value):e.checked=c===e.value||!!c)}):r.refs.forEach(e=>e.checked=e.value===c):Km(r.ref)?r.ref.value="":(r.ref.value=c,r.ref.type||a||s||b.state.next({name:e,values:o?i:g(e)?iy(i):void 0})))}(r.shouldDirty||r.shouldTouch)&&I(e,l&&l._f&&!l._f.disabled&&(l._f.valueAsNumber||l._f.valueAsDate||l._f.setValueAs)?Eg(t,l._f):c,r.shouldTouch,r.shouldDirty,!a),r.shouldValidate&&Z(e,{delayError:r.delayError}),r.shouldValidate&&l&&l._f&&l._f.deps&&(!Array.isArray(l._f.deps)||l._f.deps.length>0)&&Z(l._f.deps)},q=(e,t,r,o=!1,a=!1,s=!1)=>{for(const c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;const u=t[c],d=e+"."+c,f=Ry(n,d);l.array.has(d)&&b.array.next({name:d,values:o?i:iy(i)}),(l.array.has(e)||Xm(u)||f&&!f._f)&&!Qm(u)?q(d,u,r,o,a,s):U(d,u,r,o,a,s)}},W=(e,t,o,s,c=!1)=>{const u=Ry(n,e),d=l.array.has(e),f=s?t:iy(t),p=zy(Ry(i,e),f);if(p||Dy(i,e,f),d)b.array.next({name:e,values:s?i:iy(i)}),y("isDirty","dirtyFields")&&o.shouldDirty&&(A(),r.isDirty=$(e,f),c||b.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:r.isDirty})),o.shouldValidate&&Z(e,{delayError:o.delayError});else{const t=Array.isArray(f)&&!f.length||eg(f),r=!p&&!c;!u||u._f||Jm(f)||t?U(e,f,o,s,c,r):q(e,f,o,s,c,r)}if(!p&&!c){const t=Jy(e,l),n=a.mount||t?e:void 0,o=d?[]:((e,t)=>{const r=t.split("."),n=[];let o=r[0];for(let t=1;t<r.length;o+="."+r[t++])!isNaN(+r[t])&&e.has(o)&&n.push(`${o}.${r[t]}`);return n})(l.array,e),c=s?i:g(n)||o.some(g)?iy(i):void 0;b.state.next({...t&&r,name:n,values:c});for(const e of o)b.state.next({name:e,values:c&&iy(i)})}},B=(e,t,r={})=>W(e,t,r,!1),H=async e=>{a.mount=!0;const o=e.target;let s=o.name,u=!0;const d=Ry(n,s),v=_,h=e=>{u=!!Ry(n,s)&&!(k[s]>v)&&zy(e,Ry(i,s,e))};if(d){let v,m;a.keepIsValid=!1;let w=!1;const _=o.type?Rg(d._f):ey(e),k=e.type===ay||e.type===sy,P=!((e=>e.mount&&(e.required||!Ey(e.required)&&!1!==e.required||!Ey(e.min)||!Ey(e.max)||!Ey(e.maxLength)||!Ey(e.minLength)||e.pattern||e.validate))(d._f)||t.validate||t.resolver||Ry(r.errors,s)||d._f.deps),E=P||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(k,Ry(r.touchedFields,s),r.isSubmitted,p,f),A=Jy(s,l,k);Dy(i,s,iy(_)),k?o&&o.readOnly||(d._f.onBlur&&d._f.onBlur(e),Object.prototype.hasOwnProperty.call(c,s)&&(w=!0,c[s](0))):d._f.onChange&&d._f.onChange(e);const D=I(s,_,k),F=!eg(D)||A;if(!k&&b.state.next({name:s,type:e.type,...g(s)?{values:iy(i)}:{}}),E)return P&&r.isValid||!y("isValid")||("onBlur"===t.mode?k&&C():k||C()),F&&b.state.next({name:s,...A?{}:D});if(!t.resolver&&t.validate&&await L({name:s,eventType:e.type}),!k&&A&&b.state.next({...r}),t.resolver){const e=j,{errors:t}=await M([s]);if(e!==j)return;if(R([s]),h(_),!u)return void(!eg(D)&&b.state.next(D));const o=Fg(r.errors,n,s),i=Fg(t,n,o.name||s);v=i.error,s=i.name,m=eg(t)}else{const r=j,o=++x;if(R([s],!0),v=(await fg(d,l.disabled,i,S,t.shouldUseNativeValidation))[s],r!==j)return;if(R([s]),h(_),u)if(v)m=!1;else if(y("isValid")){if(m=await V({fields:n,onlyCheckValid:!0,name:s,eventType:e.type}),r!==j)return;h(_),o!==x&&(m=void 0)}}u&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&Z(d._f.deps),((e,n,o,i)=>{const a=Ry(r.errors,e),s=y("isValid")&&Ay(n)&&r.isValid!==n;if(t.delayError&&o?(c[e]=O(e,()=>T(e,o)),c[e](t.delayError)):(N(e),o?Dy(r.errors,e,o):hg(r.errors,e),r.errors={...r.errors}),(o?!zy(a,o,!0):a)||!eg(i)||s){const t={...i,...s&&Ay(n)?{isValid:n}:{},errors:r.errors,name:e};b.state.next(t)}})(s,m,v,D),w&&Object.prototype.hasOwnProperty.call(c,s)&&c[s](0))}},G=(e,t)=>{if(Ry(r.errors,t)&&e.focus)return e.focus(),1},Z=async(e,o={})=>{let i,s;a.keepIsValid=!1;const u=pg(e),d=j;if(t.resolver){const t=await(async e=>{const t=j,o=_,i=e?e.filter(e=>Ry(n,e)):[],{errors:a}=await M(e);if(t!==j)return a;if(R(e),e){for(const t of e){if(i.includes(t)&&(!Ry(n,t)||k[t]>o)){hg(a,t);continue}const e=Ry(a,t);P(t);const s=l.array.has(t)&&Xm(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e))),c=Ry(n,t),u=Xm(c)&&Object.keys(c).some(e=>"_f"!==e);s?Xy(r.errors,{[t]:e},t):e&&(e.type||e.message)||Array.isArray(e)||Xm(e)&&u?Dy(r.errors,t,e):hg(r.errors,t)}r.errors={...r.errors}}else Object.keys(c).forEach(N),r.errors=a;return a})(Ey(e)?e:u);i=eg(t),s=e?!u.some(e=>Ry(t,e)):i}else e?(s=(await Promise.all(u.map(async e=>{const t=Ry(n,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:uy})}))).every(Boolean),(s||r.isValid)&&C()):s=i=await V({fields:n,name:e,eventType:uy});if(d!==j)return s;if(o.delayError&&t.delayError&&By(e)){const n=Ry(r.errors,e);n?(hg(r.errors,e),c[e]=O(e,()=>T(e,n)),c[e](t.delayError)):N(e)}if(o.shouldTouch){const t=e=>{!l.array.has(e)&&Dy(r.touchedFields,e,!0)};for(const r of e?u:l.mount){const e=Ry(n,r);Xm(e)||Array.isArray(e)?Yy(n,(e,r)=>t(r),[r]):t(r)}}return r.errors={...r.errors},b.state.next({...!By(e)||y("isValid")&&i!==r.isValid?{}:{name:e},...t.resolver||!e?{isValid:i}:{},...o.shouldTouch&&y("touchedFields")?{touchedFields:r.touchedFields}:{},errors:r.errors}),o.shouldFocus&&!s&&Yy(n,G,e?u:l.mount),s},K=(e,t)=>{const n=t||r,o=Ry(n.errors,e);return{invalid:!!o,isDirty:!!Ry(n.dirtyFields,e),error:o,isValidating:!!Ry(n.validatingFields,e),isTouched:!!Ry(n.touchedFields,e)}},Q=e=>{const t=e?pg(e):void 0;t?t.forEach(e=>{P(e),hg(r.errors,e),r.errors={...r.errors},b.state.next({name:e,errors:r.errors})}):(Object.keys(c).forEach(N),r.errors={},b.state.next({errors:r.errors}))},J=(e,t,o)=>{var i;P(e);const a=Ry(n,e,{_f:{}}),s=a._f&&a._f.ref,l=Ry(r.errors,e)||{},{ref:c,message:u,type:d,types:f,...p}=l;if(Dy(r.errors,e,{...p,...t,ref:s}),r.errors={...r.errors},b.state.next({name:e,errors:r.errors,isValid:!1}),o&&o.shouldFocus){const e=(null===(i=a._f)||void 0===i?void 0:i.refs)?a._f.refs.find(e=>!e.disabled)||a._f.refs[0]:s;e&&e.focus&&e.focus()}},Y=e=>{const t={name:e.name,exact:e.exact};e.formState&&e.formState.values&&d.add(t);const{unsubscribe:n}=b.state.subscribe({next:t=>{if(Mg(e.name,t.name,e.exact)&&((e,t,r)=>{const n=Object.keys(e).filter(e=>"name"!==e);return!n.length||r&&n.length>=Object.keys(t).length||n.find(e=>t[e]===(!r||my))})(t,e.formState||h,e.reRenderRoot)){const n=t.values||{...i};e.callback({...r,...t,validatingFields:r.validatingFields,isValidating:r.isValidating,values:n,defaultValues:o})}}});return()=>{d.delete(t),n()}},X=(e,a={})=>{const s=e?pg(e):[...l.mount],c=new Set(s);if(e)for(const e of l.mount)s.some(t=>e.startsWith(`${t}.`))&&c.add(e);a.keepIsValidating||E(c);for(const e of c)l.mount.delete(e),l.array.delete(e),l.disabled.delete(e),hg(n,e),!a.keepValue&&hg(i,e),a.keepError||(P(e),hg(r.errors,e)),!a.keepDirty&&hg(r.dirtyFields,e),!a.keepTouched&&hg(r.touchedFields,e),!t.shouldUnregister&&!a.keepDefaultValue&&hg(o,e);a.keepError||(r.errors={...r.errors}),d.size&&b.state.next({values:iy(i)}),b.state.next({...r,...a.keepDirty?{}:{isDirty:$()},...a.keepIsValidating?{}:{isValidating:!eg(r.validatingFields)}}),!a.keepIsValid&&C()},ee=({disabled:e,name:t})=>{if(Ay(e)&&a.mount||e||l.disabled.has(t)){const r=l.disabled.has(t)!==!!e;e?l.disabled.add(t):l.disabled.delete(t),r&&a.mount&&!a.action&&C()}},te=(e,r={})=>{let i=Ry(n,e);const s=Ay(r.disabled)||Ay(t.disabled),c=!l.registerName.has(e)&&i&&i._f&&!i._f.mount;if(i&&i._f||(k[e]=++_),Dy(n,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...r}}),l.mount.add(e),i&&i._f){const t=Ry(n,e);for(const e of ky)e in r||delete t._f[e]}return i&&!c?ee({disabled:Ay(r.disabled)?r.disabled:t.disabled,name:e}):F(e,!0,r.value),{...s?{disabled:r.disabled||t.disabled}:{},...t.progressive?{required:!!Ag(r.required),min:Ag(r.min),max:Ag(r.max),minLength:Ag(r.minLength),maxLength:Ag(r.maxLength),pattern:Ag(r.pattern)}:{},name:e,onChange:H,onBlur:H,ref:s=>{if(s){l.registerName.add(e),te(e,r),l.registerName.delete(e),i=Ry(n,e);const t=Ey(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,a=(e=>rg(e)||Zm(e))(t),c=i._f.refs||[];if(a?c.find(e=>e===t):t===i._f.ref)return;const u={...i._f};a?(u.refs=[...c.filter(wg),t,...Array.isArray(Ry(o,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),Dy(n,e,{_f:u}),F(e,!1,void 0,t)}else i=Ry(n,e,{}),i._f&&(i._f.mount=!1),(t.shouldUnregister||r.shouldUnregister)&&(!ny(l.array,e)||!a.action)&&l.unMount.add(e)}}},re=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Yy(n,G,l.mount),ne=(e,o)=>async a=>{let s,u,d=!1;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let f=iy(i);b.state.next({isSubmitting:!0});const p=j,v=e=>{throw p===j&&b.state.next({isSubmitting:!1}),e};if(t.resolver){let e;try{e=await M()}catch(e){v(e)}const{errors:t,values:n}=e;if(p!==j)return;R(),Object.keys(c).forEach(N),r.errors=t,f=iy(n)}else{try{await V({fields:n,eventType:cy})}catch(e){v(e)}if(p!==j)return;hg(r.errors,Oy),r.errors={...r.errors}}if(l.disabled.size&&(Xm(f)||Array.isArray(f)))for(const e of l.disabled)hg(f,e);if(eg(r.errors)){b.state.next({errors:{}});try{s=await e(f,a)}catch(e){d=!0,u=e}}else{if(o)try{await o({...r.errors},a)}catch(e){v(e)}p===j&&(re(),setTimeout(re))}if(p===j&&b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eg(r.errors)&&!d,submitCount:r.submitCount+1,errors:r.errors}),d)throw u;return s},oe=(e,u={})=>{j++;const d=e?iy(e):o,f=iy(d),p=eg(e),v=f,m=n;if(Object.keys(c).forEach(N),u.keepDefaultValues||(o=d),!u.keepValues){if(u.keepDirtyValues){const e=new Set([...l.mount,..._g(Cg(o,i,void 0,m),r.dirtyFields)]);for(const t of e){const e=Ry(r.dirtyFields,t),n=Ry(i,t),o=Ry(v,t);e&&!Ey(n)?Dy(v,t,n):e||Ey(o)||B(t,o)}}else{if(oy&&Ey(e))for(const e of l.mount){const t=Ry(n,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(tg(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(u.keepFieldsRef)for(const e of l.mount)B(e,Ry(v,e));else n={}}if(t.shouldUnregister){if(i=u.keepDefaultValues?iy(o):{},u.keepFieldsRef)for(const e of l.mount)Dy(i,e,Ry(v,e))}else i=iy(v);b.array.next({values:{...v}}),b.state.next({name:void 0,type:void 0,values:{...v}})}l={mount:u.keepDirtyValues||u.keepFieldsRef?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:u.keepValues||u.keepDirtyValues||u.keepFieldsRef?new Set([...l.disabled].filter(e=>Ry(n,e))):new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!u.keepIsValid||!!u.keepDirtyValues||!t.shouldUnregister&&!eg(v),a.watch=!!t.shouldUnregister,a.keepIsValid=!!u.keepIsValid,a.action=!1,a.actionArrayLengths.clear(),s=!1,u.keepErrors||(r.errors={}),b.state.next({submitCount:u.keepSubmitCount?r.submitCount:0,isDirty:!p&&(u.keepDirty?r.isDirty:u.keepValues?$():!(!u.keepDefaultValues||!e||zy(e,o))),isSubmitted:!!u.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?{}:u.keepDirtyValues?u.keepDefaultValues&&i?Cg(o,i,void 0,m):r.dirtyFields:u.keepDefaultValues&&e?Cg(o,e,void 0,m):u.keepDirty?r.dirtyFields:u.keepValues?Cg(o,i,void 0,m):{},touchedFields:u.keepTouched?r.touchedFields:{},...u.keepIsValidating||!r.isValidating&&eg(r.validatingFields)?null:{validatingFields:{},isValidating:!1},errors:u.keepErrors?r.errors:{},isSubmitSuccessful:!!u.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},ie=(e,r)=>oe(Ty(e)?e(i):e,{...t.resetOptions,...r});b.state.subscribe({next:e=>{const{name:t,type:n,values:o,...i}=e;Object.keys(i).length&&(r={...r,...i})}});const ae={control:{register:te,unregister:X,getFieldState:K,handleSubmit:ne,setError:J,_subscribe:Y,_runSchema:M,_updateIsValidating:R,_focusError:re,_getWatch:z,_getDirty:$,_setValid:C,_setFieldArray:(e,o=[],l,c,u=!0,d=!0)=>{if(c&&l&&!t.disabled){a.action=!0,a.keepIsValid=!1;const t=Ry(n,e),i=t&&t._f,f=i?Object.assign([],t):t;if(a.actionArrayLengths.has(e)||a.actionArrayLengths.set(e,Array.isArray(f)?f.length:0),d&&Array.isArray(f)){const t=l(f,c.argA,c.argB)||f;i?Dy(n,e,{...t,_f:i}):u&&Dy(n,e,t)}const p=Ry(r.errors,e);if(d&&Array.isArray(p)){const t=p.root,n=l(p,c.argA,c.argB)||p;t&&(n.root=t),u&&Dy(r.errors,e,n),((e,t)=>{const r=Ry(e,t);!vg(r).length&&(!r||!r.root)&&hg(e,t)})(r.errors,e),r.errors={...r.errors}}const v=Ry(r.touchedFields,e),h=d&&Array.isArray(v);if(h){const t=l(v,c.argA,c.argB);u&&Dy(r.touchedFields,e,t)}const m=Ry(r.dirtyFields,e);if(d&&Array.isArray(m)){const t=l(m,c.argA,c.argB)||m;u&&Dy(r.dirtyFields,e,t)}y("dirtyFields")?A():s=!0,b.state.next({name:e,isDirty:$(e,o),dirtyFields:r.dirtyFields,...h&&{touchedFields:r.touchedFields},errors:r.errors,isValid:r.isValid})}else Dy(i,e,o)},_setDisabledField:ee,_setErrors:e=>{Object.keys(c).forEach(N);const t=!eg(e);r.errors=iy(e),b.state.next({errors:r.errors,...t?{isValid:!1}:{}}),!t&&a.mount&&C()},_getFieldArray:e=>vg(Ry(a.mount?i:o,e,t.shouldUnregister?Ry(o,e,[]):[])),_reset:oe,_resetDefaultValues:()=>Ty(t.defaultValues)&&t.defaultValues().then(e=>{ie(e,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Ry(n,e);t&&(t._f.refs?t._f.refs.every(e=>!wg(e)):!wg(t._f.ref))&&X(e)}l.unMount=new Set},_disableForm:e=>{Ay(e)&&(b.state.next({disabled:e}),Yy(n,(t,r)=>{const o=Ry(n,r);o&&(t.disabled=o._f.disabled||e,Array.isArray(o._f.refs)&&o._f.refs.forEach(t=>{t.disabled=o._f.disabled||e}))},0))},_subjects:b,_proxyFormState:h,get _fields(){return n},get _formValues(){return i},get _state(){return a},set _state(e){a=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},get _options(){return t},set _options(e){t={...t,...e},f=Qy(t.mode),p=Qy(t.reValidateMode),S=t.criteriaMode===my}},subscribe:e=>{a.mount=!0;const t=Object.keys(e.formState||{}).filter(t=>e.formState&&e.formState[t]);for(const e of t)m[e]=(m[e]||0)+1;const r=Y({...e,formState:{...v,...e.formState}});return()=>{for(const e of t.splice(0))m[e]--;r()}},trigger:Z,register:te,handleSubmit:ne,watch:(e,t)=>{if(Ty(e)){const r={};d.add(r);const{unsubscribe:n}=b.state.subscribe({next:r=>"values"in r&&e(r.values||z(void 0,t),r)});return{unsubscribe:()=>{d.delete(r),n()}}}return z(e,t,!0)},setValue:B,setValues:(e,t={})=>{const n=Ty(e)?e(i):e;if(!zy(i,n)||t.shouldValidate||t.shouldDirty||t.shouldTouch){i={...i,...n};for(const e of new Set([...l.mount,...l.array]))bg(n,e)&&W(e,Ry(n,e),t,!0,!0);if(t.shouldDirty&&y("isDirty","dirtyFields"))for(const e of Object.keys(n))I(e,i[e],!1,!0);b.state.next({...r,name:void 0,type:void 0,...d.size?{values:i}:{}}),t.shouldValidate&&C()}},getValues:(e,t)=>{let n=Ey(e)&&!t?{...a.mount?i:o}:a.mount?i:o;return t&&(n=yg(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),Ey(e)?n:By(e)?Ry(n,e):e.map(e=>Ry(n,e))},getErrors:e=>Ey(e)?{...r.errors}:By(e)?Ry(r.errors,e):e.map(e=>Ry(r.errors,e)),reset:ie,resetField:(e,t={})=>{Ry(n,e)&&(E([e]),Ey(t.defaultValue)?B(e,iy(Ry(o,e))):(B(e,t.defaultValue),o=iy(o),Dy(o,e,iy(t.defaultValue))),t.keepTouched||hg(r.touchedFields,e),t.keepDirty||(hg(r.dirtyFields,e),r.isDirty=Ey(t.defaultValue)?$():$(e,iy(Ry(o,e)))),t.keepError||(P(e),hg(r.errors,e),r.errors={...r.errors},C()),b.state.next({...r,isValidating:!eg(r.validatingFields)}))},resetDefaultValues:(e,t={})=>{if(o=iy(e),!t.keepDirty){const e=Cg(o,i,void 0,n);r.dirtyFields=e,r.isDirty=!eg(e)}t.keepIsValid||C(),b.state.next({...r,defaultValues:o})},clearErrors:Q,unregister:X,setError:J,setFocus:(e,t={})=>{const r=Ry(n,e),o=r&&r._f;if(o){const e=o.refs?o.refs.find(e=>!e.disabled)||o.refs[0]:o.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Ty(e.select)&&e.select()})}},getFieldState:K};return{...ae,formControl:ae}}const zg={mode:Lg.mode,reValidateMode:Lg.reValidateMode,shouldFocusError:Lg.shouldFocusError,resolver:void 0,criteriaMode:void 0,delayError:void 0,shouldUnregister:void 0,shouldUseNativeValidation:void 0,context:void 0,progressive:void 0,resetOptions:void 0};function Ug(e={}){const t=a().useRef(void 0),r=a().useRef(void 0),n=a().useRef(e.formControl),o=a().useRef(!1),i=a().useRef(!!e.validate),s=a().useRef(!!e.errors),l=a().useRef(!1),[c,u]=a().useState(()=>({...iy(Vg),isLoading:Ty(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ty(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&n.current!==e.formControl)if(n.current=e.formControl,o.current=!1,e.formControl)t.current={...e.formControl,formState:c},e.defaultValues&&!Ty(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...n}=$g(e);t.current={...n,formState:c}}const d=t.current.control,f=d._options,p={};for(const t in zg)t in f&&!(t in e)&&(p[t]=zg[t]);o.current&&!e.disabled&&(p.disabled=!1),d._options={...p,...e,validate:e.validate};const v=()=>({...d._formState,defaultValues:d._defaultValues}),{resyncIfNeeded:h,snapshot:m}=qy(v,Uy);return Ly(()=>{h(!0,v,u);const e=d._subscribe({formState:d._proxyFormState,callback:()=>u({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return u(e=>({...e,isReady:!0})),d._formState.isReady=!0,d._subjects.state.next({isReady:!0}),()=>{e(),m(!0,v)}},[d,h,m]),a().useEffect(()=>{d._disableForm(!(o.current&&!e.disabled)&&e.disabled),o.current=!!e.disabled},[d,e.disabled]),a().useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),a().useEffect(()=>{e.errors?(d._setErrors(e.errors),d._focusError()):s.current&&d._setErrors({}),s.current=!!e.errors},[d,e.errors]),a().useEffect(()=>{i.current&&!e.validate&&t.current&&t.current.clearErrors(Sy),i.current=!!e.validate},[e.validate]),a().useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),a().useEffect(()=>{if(d._proxyFormState.isDirty){const e=d._getDirty();e!==c.isDirty&&d._subjects.state.next({isDirty:e})}},[d,c.isDirty]),a().useEffect(()=>{e.values&&!zy(e.values,r.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),d._options.resetOptions&&d._options.resetOptions.keepIsValid||d._setValid(),r.current=e.values,u(e=>({...e}))):d._resetDefaultValues()},[d,e.values]),a().useEffect(()=>{d._state.mount&&(l.current||e.values)||(d._setValid(),d._state.mount=!0),l.current=!0,d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=a().useMemo(()=>My(c,d),[d,c]),t.current}const qg=a().createContext(null);qg.displayName="HookFormContext";const Wg=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Ry(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Bg=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?Wg(n.ref,r,e):n.refs&&n.refs.forEach(t=>Wg(t,r,e))}},Hg=(e,t)=>{t.shouldUseNativeValidation&&Bg(e,t);const r={};for(const n in e){const o=Ry(t.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(Gg(t.names||Object.keys(e),n)){const e=Object.assign({},Ry(r,n));Dy(e,"root",i),Dy(r,n,e)}else Dy(r,n,i)}return r},Gg=(e,t)=>e.some(e=>e.startsWith(t+"."));var Zg=function(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=r[a].types,c=l&&l[n.code];r[a]=og(a,t,r,o,c?[].concat(c,n.message):n.message)}e.shift()}return r},Kg=function(e,t,r){return void 0===r&&(r={}),function(n,o,i){try{return Promise.resolve(function(o,a){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return i.shouldUseNativeValidation&&Bg({},i),{errors:{},values:r.raw?n:e}})}catch(e){return a(e)}return s&&s.then?s.then(void 0,a):s}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:Hg(Zg(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e}))}catch(e){return Promise.reject(e)}}};const Qg=dd("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);const Jg=function(e){var t=e.link,r=void 0===t?"/":t;return(0,o().jsx)(o().Fragment,{children:(0,o().jsx)(Tt,{to:r,className:"vt-flex vt-items-center vt-justify-center vt-text-slate-700 vt-bg-slate-200 hover:vt-bg-slate-300 vt-px-2 vt-rounded-sm vt-transition-colors",children:(0,o().jsx)(Qg,{className:"vt-w-4"})})})};function Yg(e){return Yg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yg(e)}function Xg(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return eb(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(eb(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eb(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,eb(d,"constructor",c),eb(c,"constructor",l),l.displayName="GeneratorFunction",eb(c,o,"GeneratorFunction"),eb(d),eb(d,o,"Generator"),eb(d,n,function(){return this}),eb(d,"toString",function(){return"[object Generator]"}),(Xg=function(){return{w:i,m:f}})()}function eb(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}eb=function(e,t,r,n){function i(t,r){eb(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},eb(e,t,r,n)}function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tb(Object(r),!0).forEach(function(t){nb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Yg(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Yg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ob(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ib(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){ob(i,n,o,a,s,"next",e)}function s(e){ob(i,n,o,a,s,"throw",e)}a(void 0)})}}const ab=function(){var e,t,r,n,i,s=Ug({resolver:Kg(Am),defaultValues:{chosen_plugins:[],ip_tags:[]}}),l=s.handleSubmit,c=s.control,u=s.formState.errors,d=oa({mutationFn:(n=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_disable_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return n.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Plugin disabled successfully!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to disable plugin","versatile-toolkit"))}}),f=function(){var e=ib(Xg().m(function e(t){return Xg().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,d.mutateAsync(rb({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),p=ra({queryKey:["getDisablePluginList"],queryFn:(i=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_disable_plugin_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return i.apply(this,arguments)}),staleTime:5e3}),v=p.data,h=p.isFetching,m=(p.isLoading,p.isError,null==v?void 0:v.data.chosen_plugins),y=null==v?void 0:v.data.ip_tags;(0,a().useEffect)(function(){(m||y)&&c._reset({chosen_plugins:m||[],ip_tags:y||[]})},[m,y,c]);var g,b,x=Ug({resolver:Kg(Fm),defaultValues:{activeTheme:""}}),w=x.handleSubmit,j=x.control,_=x.formState.errors,k=oa({mutationFn:(g=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_save_active_theme",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return g.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Theme activated successfully!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to activate theme","versatile-toolkit"))}}),S=function(){var e=ib(Xg().m(function e(t){return Xg().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,k.mutateAsync(rb({},t));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=ra({queryKey:["getActiveTheme"],queryFn:(b=Tv(Ev().m(function e(t){var r;return Ev().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_active_theme",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return b.apply(this,arguments)}),staleTime:5e3}),N=O.data,P=O.isFetching,C=null==N?void 0:N.data.activeTheme;return(0,a().useEffect)(function(){C&&j._reset({activeTheme:C})},[C,j]),(0,o().jsxs)("div",{className:"vt-py-4 vt-space-y-6 vt-max-w-[800px]",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{link:"/"}),(0,mi.__)("Deactivate Plugins","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,mi.__)("Disable Plugin by IP address","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,mi.__)("Select plugins to disable for specific IP addresses. This is useful for troubleshooting plugin conflicts.","versatile-toolkit")}),(0,o().jsxs)("form",{onSubmit:l(f),children:[(0,o().jsxs)("div",{className:"vt-min-h-[42px]",children:[h?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading plugins","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"chosen_plugins",control:c,render:function(e){var t=e.field;return(0,o().jsx)(Uv,{selectedPlugin:t.value,onChange:t.onChange})}}),u.chosen_plugins&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==u||null===(e=u.chosen_plugins)||void 0===e?void 0:e.message})]}),(0,o().jsxs)("div",{className:"vt-min-h-[42px] vt-mt-2",children:[h?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading settings","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"ip_tags",control:c,render:function(e){var t=e.field;return(0,o().jsx)(Wm,{tags:t.value,onChange:t.onChange})}}),(null==u?void 0:u.ip_tags)&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==u||null===(t=u.ip_tags)||void 0===t?void 0:t.message})]}),(0,o().jsx)(vs,{type:"submit",className:"vt-mt-6",disabled:d.isPending,children:d.isPending?(0,mi.__)("Saving...","versatile-toolkit"):(0,mi.__)("Save List","versatile-toolkit")})]})]}),(0,o().jsxs)("div",{className:"vt-border vt-rounded-lg vt-p-4",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold vt-mb-2",children:(0,mi.__)("Switch Theme","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground vt-mb-4",children:(0,mi.__)("Select and activate a theme.","versatile-toolkit")}),(0,o().jsxs)("form",{onSubmit:w(S),children:[(0,o().jsxs)("div",{className:"vt-min-h-[42px]",children:[P?(0,o().jsx)(ji,{size:"md",text:(0,mi.__)("Loading themes","versatile-toolkit")}):(0,o().jsx)(Ky,{name:"activeTheme",control:j,render:function(e){var t=e.field;return(0,o().jsx)(Gm,{selectedTheme:t.value,onChange:t.onChange})}}),(null==_?void 0:_.activeTheme)&&(0,o().jsx)("p",{className:"vt-text-red-500 vt-text-sm vt-mt-1",children:null==_||null===(r=_.activeTheme)||void 0===r?void 0:r.message})]}),(0,o().jsx)(vs,{type:"submit",className:"vt-mt-6",disabled:k.isPending,children:(0,o().jsx)(bi,{isLoading:k.isPending,loadingText:(0,mi.__)("Activating","versatile-toolkit"),children:(0,mi.__)("Activate Theme","versatile-toolkit")})})]})]})]})},sb=dd("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),lb=dd("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),cb=dd("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function ub(e){return ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ub(e)}function db(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yb(n.key),n)}}function fb(e,t,r){return t=vb(t),function(e,t){if(t&&("object"==ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pb()?Reflect.construct(t,r||[],vb(e).constructor):t.apply(e,r))}function pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pb=function(){return!!e})()}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vb(e)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hb(e,t)}function mb(e,t,r){return(t=yb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yb(e){var t=function(e,t){if("object"!=ub(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ub(t)?t:t+""}var gb=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mb(r=fb(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),mb(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hb(e,t)}(t,e),function(e,t,r){return t&&db(e.prototype,t),r&&db(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,o().jsxs)(Li,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,o().jsxs)(Vi,{className:"vt-text-center",children:[(0,o().jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,o().jsx)(sb,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,o().jsx)($i,{className:"vt-text-red-700",children:(0,mi.__)("Something went wrong","versatile-toolkit")})]}),(0,o().jsxs)(zi,{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,mi.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,o().jsxs)(vs,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(lb,{className:"vt-h-4 vt-w-4"}),(0,mi.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,o().jsxs)(vs,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(cb,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,mi.__)("Hide Details","versatile-toolkit"):(0,mi.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,o().jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,mi.__)("Error Details:","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Message:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Stack Trace:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,mi.__)("Component Stack:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(a().Component);const bb=gb;function xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const jb=function(e){var t=e.value,r=void 0===t?"":t,n=e.onChange,i=e.buttonText,s=void 0===i?(0,mi.__)("Upload Image","versatile-toolkit"):i,l=e.allowedTypes,c=void 0===l?["image"]:l,u=e.multiple,d=void 0!==u&&u,f=xb((0,a().useState)(r),2),p=f[0],v=f[1],h=xb((0,a().useState)(0),2),m=(h[0],h[1]);(0,a().useEffect)(function(){v(r)},[r]);return(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(vs,{type:"button",variant:"outline",onClick:function(){if(void 0!==window.wp&&window.wp.media){var e=window.wp.media({title:(0,mi.__)("Select Image","versatile-toolkit"),button:{text:(0,mi.__)("Use this image","versatile-toolkit")},multiple:d,library:{type:c}});e.on("select",function(){var t=e.state().get("selection").first().toJSON();v(t.url),m(t.id),n(t.url,t.id)}),e.open()}},children:s}),p&&(0,o().jsx)(vs,{type:"button",variant:"destructive",size:"sm",onClick:function(){v(""),m(0),n("",0)},children:(0,mi.__)("Remove","versatile-toolkit")})]}),p&&(0,o().jsxs)("div",{className:"vt-mt-4",children:[(0,o().jsx)("div",{className:"vt-border vt-rounded-lg vt-p-2 vt-inline-block vt-bg-gray-50",children:(0,o().jsx)("img",{src:p,alt:(0,mi.__)("Preview","versatile-toolkit"),className:"vt-max-w-xs vt-max-h-32 vt-object-cover vt-rounded"})}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600 vt-mt-2",children:(0,mi.__)("Image selected","versatile-toolkit")})]})]})},_b=dd("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var kb=function(e){var t=e.isOpen,r=e.onClose;(0,a().useEffect)(function(){var e=function(e){"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[t,r]);return{handleBackdropClick:function(e){e.target===e.currentTarget&&r()}}};function Sb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ob(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ob(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Nb=function(e){var t,r,n,i,s=e.type,l=e.disabled,c=void 0!==l&&l,u=e.getFormData,d=Sb((0,a().useState)(!1),2),f=d[0],p=d[1],v=Sb((0,a().useState)(!1),2),h=v[0],m=v[1],y=function(){p(!1),m(!1)},g=kb({isOpen:f,onClose:y}).handleBackdropClick;return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)(vs,{type:"button",variant:"outline",onClick:function(){p(!0),m(!0)},disabled:c,className:"vt-flex vt-items-center vt-gap-2 vt-border-gray-400",children:[(0,o().jsx)(_b,{size:16}),(0,mi.__)("Preview","versatile-toolkit")]}),f&&(0,o().jsx)("div",{className:"vt-fixed vt-inset-x-0 vt-bottom-0 vt--top-[15px] vt-z-[999999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:g,children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-semibold",children:"maintenance"===s?(0,mi.__)("Maintenance Page Preview","versatile-toolkit"):(0,mi.__)("Coming Soon Page Preview","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",variant:"ghost",size:"sm",onClick:y,children:(0,o().jsx)(pd,{size:16})})]}),(0,o().jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,o().jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50",children:[h&&(0,o().jsx)(ki,{}),(0,o().jsx)("iframe",{src:(t=null==Hi?void 0:Hi.ajax_url,r=null==Hi?void 0:Hi.nonce_value,n="maintenance"===s?"versatile_preview_maintenance":"versatile_preview_comingsoon",i=JSON.stringify(u()),"".concat(t,"?action=").concat(n,"&versatile_nonce=").concat(r,"&type=").concat(s,"&preview_data=").concat(encodeURIComponent(i))),className:"vt-w-full vt-h-full vt-border-0",title:"maintenance"===s?(0,mi.__)("Maintenance Preview","versatile-toolkit"):(0,mi.__)("Coming Soon Preview","versatile-toolkit"),onLoad:function(){return m(!1)},style:{display:h?"none":"block"}})]})}),(0,o().jsx)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-rounded-b-lg",children:(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:(0,mi.__)("This is how your page will look to visitors.","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:y,variant:"outline",children:(0,mi.__)("Close Preview","versatile-toolkit")})]})})]})})]})};function Pb(e){return Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(e)}var Cb=["className"];function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Rb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Pb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ab(e){var t=e.className,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Cb);return(0,o().jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(t){Rb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi("vt-animate-pulse vt-rounded-md vt-bg-primary/10",t)},r))}function Tb(){return(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-space-y-3",children:[(0,o().jsx)(Ab,{className:"vt-h-[45px] vt-w-[200px] vt-rounded-xl"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)(Ab,{className:"vt-h-4 vt-w-[200px]"}),(0,o().jsx)(Ab,{className:"vt-h-4 vt-w-[200px]"})]})]})}function Db(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ib(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Ib(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ib(e,t){if(e){if("string"==typeof e)return Mb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mb(e,t):void 0}}function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Lb=[{id:"classic",name:(0,mi.__)("Classic","versatile-toolkit"),description:(0,mi.__)("Clean and professional design with centered content","versatile-toolkit")},{id:"modern",name:(0,mi.__)("Modern","versatile-toolkit"),description:(0,mi.__)("Sleek design with gradient backgrounds and modern typography","versatile-toolkit")},{id:"minimal",name:(0,mi.__)("Minimal","versatile-toolkit"),description:(0,mi.__)("Simple and elegant with focus on content","versatile-toolkit")},{id:"creative",name:(0,mi.__)("Creative","versatile-toolkit"),description:(0,mi.__)("Bold design with creative layouts and animations","versatile-toolkit")},{id:"corporate",name:(0,mi.__)("Corporate","versatile-toolkit"),description:(0,mi.__)("Professional business design with elegant typography","versatile-toolkit")},{id:"neon",name:(0,mi.__)("Neon","versatile-toolkit"),description:(0,mi.__)("Cyberpunk-inspired design with glowing neon effects","versatile-toolkit")}],Vb=function(e){return"maintenance"===e?"versatile_maintenance_template_preview":"versatile_comingsoon_template_preview"};const $b=function(e){var t,r,n=e.selectedTemplate,i=e.onTemplateSelect,s=e.type,l=e.formData,c=e.getFormData,u=Fb((0,a().useState)(null),2),d=u[0],f=u[1],p=Fb((0,a().useState)(!1),2),v=p[0],h=p[1],m=(0,a().useState)(function(){var e=Lb.findIndex(function(e){return e.id===n});if(-1===e)return Lb;var t=Lb[e],r=Lb.filter(function(t,r){return r!==e});return[t].concat(Db(r))}),y=Fb(m,1)[0],g=function(e){i(e)},b=function(){f(null),h(!1)},x=(0,a().useMemo)(function(){var e=c();return e?JSON.stringify(e):""},[l]);(0,a().useEffect)(function(){var e=setTimeout(function(){document.querySelectorAll(".vt-iframe-loading").forEach(function(e){var t=e;"none"!==t.style.display&&(t.style.display="none")})},3e3);return function(){return clearTimeout(e)}},[x]);var w=kb({isOpen:!!d,onClose:b}).handleBackdropClick;return(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)("div",{className:"vt-flex vt-gap-4 vt-overflow-x-auto vt-p-2 vt-scrollbar-thin vt-scrollbar-thumb-gray-300 vt-scrollbar-track-gray-100",children:y.map(function(e){return(0,o().jsx)(bb,{fallback:(0,o().jsx)(Li,{className:"vt-cursor-pointer vt-flex-shrink-0 vt-w-64 vt-border-red-200 vt-bg-red-50",children:(0,o().jsxs)(zi,{className:"vt-p-4",children:[(0,o().jsx)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-red-100 vt-flex vt-items-center vt-justify-center",children:(0,o().jsx)("p",{className:"vt-text-red-600 vt-text-sm",children:(0,mi.__)("Template Error","versatile-toolkit")})}),(0,o().jsx)("h3",{className:"vt-font-medium vt-mt-2 vt-text-red-700",children:e.name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-red-600",children:(0,mi.__)("Failed to load template","versatile-toolkit")})]})}),children:(0,o().jsx)(Li,{className:"vt-cursor-pointer vt-transition-all vt-duration-200 hover:vt-shadow-lg vt-flex-shrink-0 vt-w-64 ".concat(n===e.id?"vt-ring-2 vt-ring-blue-500 vt-shadow-lg":"hover:vt-ring-1 hover:vt-ring-gray-300"),onClick:function(){return g(e.id)},children:(0,o().jsxs)(zi,{children:[(0,o().jsxs)("div",{className:"vt-relative vt-mb-3",children:[(0,o().jsxs)("div",{className:"vt-w-full vt-h-32 vt-rounded-md vt-bg-gray-100 vt-overflow-hidden vt-border vt-relative",children:[(0,o().jsx)("div",{className:"vt-w-full vt-h-full vt-flex vt-items-center vt-justify-center vt-bg-gradient-to-br vt-from-blue-50 vt-to-indigo-100",children:(0,o().jsxs)("div",{className:"vt-text-center vt-p-4",children:[(0,o().jsxs)("div",{className:"vt-text-2xl vt-mb-2",children:["classic"===e.id&&"📄","modern"===e.id&&"🎨","minimal"===e.id&&"✨","creative"===e.id&&"🎭","corporate"===e.id&&"🏢","neon"===e.id&&"⚡"]}),(0,o().jsx)("p",{className:"vt-text-xs vt-font-medium vt-text-gray-700",children:e.name}),(0,o().jsx)("p",{className:"vt-text-xs vt-text-gray-500 vt-mt-1",children:(null==l?void 0:l.title)||"Preview"}),(null==l?void 0:l.background_image)&&(0,o().jsx)("div",{className:"vt-absolute vt-inset-0 vt-opacity-20",children:(0,o().jsx)("img",{src:l.background_image,alt:"",className:"vt-w-full vt-h-full vt-object-cover"})})]})}),(0,o().jsx)(bb,{fallback:null,onError:function(t){var r=document.querySelector(".template-".concat(e.id," .vt-iframe-loading"));r&&(r.style.display="none")},children:(0,o().jsx)("iframe",{src:"".concat(Hi.ajax_url,"?action=").concat(Vb(s),"&versatile_nonce=").concat(Hi.nonce_value,"&template_id=").concat(e.id,"&type=").concat(s,"&preview_mode=thumbnail").concat(l?"&preview_data=".concat(encodeURIComponent(x)):""),className:"vt-w-full vt-h-full vt-border-0 vt-pointer-events-none vt-absolute vt-top-0 vt-left-0 vt-hidden",title:"".concat(e.name," Preview"),style:{transform:"scale(0.25)",transformOrigin:"top left",width:"400%",height:"400%"},onLoad:function(e){var t,r,n=e.currentTarget,o=null===(t=n.parentElement)||void 0===t?void 0:t.querySelector("div:not(.vt-iframe-loading)");o&&n&&(o.style.display="none",n.classList.remove("vt-hidden"));var i=null===(r=n.parentElement)||void 0===r?void 0:r.querySelector(".vt-iframe-loading");i&&(i.style.display="none")},onError:function(e){var t,r=null===(t=e.currentTarget.parentElement)||void 0===t?void 0:t.querySelector(".vt-iframe-loading");r&&(r.style.display="none")}},"".concat(e.id,"-").concat(x))})]}),n===e.id&&(0,o().jsx)("div",{className:"vt-absolute vt-top-2 vt-right-2 vt-bg-blue-500 vt-text-white vt-rounded-full vt-p-1 vt-z-10",children:(0,o().jsx)(Mv,{size:16})}),(0,o().jsx)("div",{className:"vt-absolute vt-inset-0 vt-bg-gray-100 vt-flex vt-items-center vt-justify-center vt-rounded-md vt-iframe-loading",children:(0,o().jsx)(Tb,{})})]}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm",children:e.name}),(0,o().jsx)("p",{className:"vt-text-xs vt-text-gray-600 vt-line-clamp-2",children:e.description}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2 vt-pt-2",children:[(0,o().jsx)(vs,{type:"button",size:"sm",variant:n===e.id?"default":"outline",onClick:function(t){t.stopPropagation(),g(e.id)},className:"vt-flex-1 vt-text-xs",children:n===e.id?(0,mi.__)("Selected","versatile-toolkit"):(0,mi.__)("Select","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",size:"sm",variant:"ghost",onClick:function(t){var r;t.stopPropagation(),r=e.id,f(r),h(!0)},className:"vt-text-xs",children:(0,mi.__)("Preview","versatile-toolkit")})]})]})]})})},e.id)})}),d&&(0,o().jsx)("div",{className:"vt-template-preview-wrapper vt-fixed vt-inset-x-0 vt--top-[15px] vt-bottom-0 vt-z-[99999] vt-flex vt-items-center vt-justify-center vt-bg-black vt-bg-opacity-85",onClick:w,children:(0,o().jsxs)("div",{className:"vt-bg-white vt-rounded-lg vt-shadow-xl vt-w-11/12 vt-h-5/6 vt-max-w-6xl vt-flex vt-flex-col",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-border-b",children:[(0,o().jsxs)("h3",{className:"vt-text-lg vt-font-semibold",children:[null===(t=Lb.find(function(e){return e.id===d}))||void 0===t?void 0:t.name," -"," ",(0,mi.__)(" Template Preview","versatile-toolkit")]}),(0,o().jsx)(vs,{type:"button",variant:"ghost",size:"sm",onClick:b,children:(0,o().jsx)(pd,{size:16})})]}),(0,o().jsx)("div",{className:"vt-flex-1 vt-p-4",children:(0,o().jsxs)("div",{className:"vt-w-full vt-h-full vt-border vt-rounded-lg vt-overflow-hidden vt-bg-gray-50 vt-relative",children:[v&&(0,o().jsx)(ki,{}),(0,o().jsx)("iframe",{src:"".concat(Hi.ajax_url,"?action=").concat(Vb(s),"&versatile_nonce=").concat(Hi.nonce_value,"&template_id=").concat(d,"&type=").concat(s,"&preview_mode=thumbnail&preview_data=").concat(encodeURIComponent(JSON.stringify(c()))),className:"vt-w-full vt-h-full vt-border-0",title:(0,mi.__)("Template Preview","versatile-toolkit"),onLoad:function(){return h(!1)},style:{display:v?"none":"block"}})]})}),(0,o().jsxs)("div",{className:"vt-p-4 vt-border-t vt-bg-gray-50 vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:null===(r=Lb.find(function(e){return e.id===d}))||void 0===r?void 0:r.description}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)(vs,{type:"button",variant:"outline",onClick:b,children:(0,mi.__)("Close","versatile-toolkit")}),(0,o().jsx)(vs,{type:"button",onClick:function(){d&&(g(d),b())},children:(0,mi.__)("Use This Template","versatile-toolkit")})]})]})]})})]})};var zb=Object.defineProperty,Ub=(e,t)=>zb(e,"name",{value:t,configurable:!0}),qb=a().forwardRef(Ub(function(e,t){return(0,o().jsx)(rl.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"Label"));function Wb(e){return Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(e)}var Bb=["className"];function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Wb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Wb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zb=ls("vt-text-sm vt-font-medium vt-leading-none peer-disabled:vt-cursor-not-allowed peer-disabled:vt-opacity-70"),Kb=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Bb);return(0,o().jsx)(qb,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(t){Gb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,className:hi(Zb(),r)},n))});function Qb(e){return Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qb(e)}Kb.displayName=qb.displayName;var Jb=["className"],Yb=["className"],Xb=["className"],ex=["className","children"];function tx(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(t){ox(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ox(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Qb(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Qb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ix(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ax.apply(null,arguments)}var sx=({children:e,watch:t,getValues:r,getErrors:n,getFieldState:o,setError:i,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,resetDefaultValues:v,handleSubmit:h,unregister:m,control:y,register:g,setFocus:b,subscribe:x})=>{const w=a().useMemo(()=>({watch:t,getValues:r,getErrors:n,getFieldState:o,setError:i,clearErrors:s,setValue:l,setValues:c,trigger:u,formState:d,resetField:f,reset:p,resetDefaultValues:v,handleSubmit:h,unregister:m,control:y,register:g,setFocus:b,subscribe:x}),[s,y,d,n,o,r,h,g,p,v,f,i,b,l,c,x,u,m,t]);return a().createElement(qg.Provider,{value:w},a().createElement(Fy.Provider,{value:w.control},e))},lx=a().createContext({}),cx=function(e){var t=ax({},(ix(e),e));return(0,o().jsx)(lx.Provider,{value:{name:t.name},children:(0,o().jsx)(Ky,nx({},t))})},ux=function(){var e=a().useContext(lx),t=a().useContext(dx),r=a().useContext(qg),n=r.getFieldState,o=r.formState,i=n(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");var s=t.id;return nx({id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message")},i)},dx=a().createContext({}),fx=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Jb),i=a().useId();return(0,o().jsx)(dx.Provider,{value:{id:i},children:(0,o().jsx)("div",nx({ref:t,className:hi("vt-space-y-2",r)},n))})});fx.displayName="FormItem";var px=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Yb),i=ux(),a=i.error,s=i.formItemId;return(0,o().jsx)(Kb,nx({ref:t,className:hi(a&&"vt-text-destructive",r),htmlFor:s},n))});px.displayName="FormLabel";var vx=a().forwardRef(function(e,t){var r=ax({},(ix(e),e)),n=ux(),i=n.error,a=n.formItemId,s=n.formDescriptionId,l=n.formMessageId;return(0,o().jsx)(Ba,nx({ref:t,id:a,"aria-describedby":i?"".concat(s," ").concat(l):"".concat(s),"aria-invalid":!!i},r))});vx.displayName="FormControl";var hx=a().forwardRef(function(e,t){var r=e.className,n=tx(e,Xb),i=ux().formDescriptionId;return(0,o().jsx)("p",nx({ref:t,id:i,className:hi("vt-text-[0.8rem] vt-text-muted-foreground",r)},n))});hx.displayName="FormDescription";var mx=a().forwardRef(function(e,t){var r,n=e.className,i=e.children,a=tx(e,ex),s=ux(),l=s.error,c=s.formMessageId,u=l?String(null!==(r=null==l?void 0:l.message)&&void 0!==r?r:""):i;return u?(0,o().jsx)("p",nx(nx({ref:t,id:c,className:hi("vt-text-[0.8rem] vt-font-medium vt-text-destructive",n)},a),{},{children:u})):null});mx.displayName="FormMessage";var yx=Object.defineProperty,gx=(e,t)=>yx(e,"name",{value:t,configurable:!0}),bx="Switch",[xx,wx]=Ms(bx),[jx,_x]=xx(bx);function kx(e){const{__scopeSwitch:t,checked:r,children:n,defaultChecked:i,disabled:s,form:l,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:p}=e,[v,h]=Js({prop:r,defaultProp:i??!1,onChange:u,caller:bx}),[m,y]=a().useState(null),[g,b]=a().useState(null),[x,w]=a().useState(null),j=!m||(!!l||!!m.closest("form")),_={checked:v,setChecked:h,disabled:s,control:m,setControl:y,name:c,form:l,value:f,userClick:x,onUserClick:w,required:d,defaultChecked:i,isFormControl:j,bubbleInput:g,setBubbleInput:b};return(0,o().jsx)(jx,{scope:t,..._,children:Cx(p)?p(_):n})}gx(kx,"SwitchProvider");var Sx=a().forwardRef(gx(function({__scopeSwitch:e,onClick:t,...r},n){const{control:i,form:s,value:l,disabled:c,checked:u,required:d,setControl:f,setChecked:p,onUserClick:v,isFormControl:h,bubbleInput:m}=_x("SwitchTrigger",e),y=za(n,f),g=a().useRef(u);return a().useEffect(()=>{const e=s?i?.ownerDocument.getElementById(s):i?.form;if(e instanceof HTMLFormElement){const t=gx(()=>p(g.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[i,s,p]),(0,o().jsx)(rl.button,{type:"button",role:"switch","aria-checked":u,"aria-required":d,"data-state":Ex(u),"data-disabled":c?"":void 0,disabled:c,value:l,...r,ref:y,onClick:As(t,e=>{const t=e.isPropagationStopped();v({requestedChecked:!u,hasConsumerStoppedPropagation:t}),p(e=>!e),m&&h&&(t||e.stopPropagation())})})},"SwitchTrigger")),Ox=a().forwardRef(gx(function(e,t){const{__scopeSwitch:r,name:n,checked:i,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return(0,o().jsx)(kx,{__scopeSwitch:r,checked:i,defaultChecked:a,disabled:l,required:s,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(Sx,{...f,ref:t,__scopeSwitch:r}),e&&(0,o().jsx)(Px,{__scopeSwitch:r})]})})},"Switch")),Nx=a().forwardRef(gx(function(e,t){const{__scopeSwitch:r,...n}=e,i=_x("SwitchThumb",r);return(0,o().jsx)(rl.span,{"data-state":Ex(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})},"SwitchThumb")),Px=a().forwardRef(gx(function({__scopeSwitch:e,onClick:t,...r},n){const{control:i,userClick:s,checked:l,defaultChecked:c,required:u,disabled:d,name:f,value:p,form:v,bubbleInput:h,setBubbleInput:m}=_x("SwitchBubbleInput",e),y=za(n,m),g=Mp(i),b=a().useRef(!1),x=a().useRef(l),w=a().useRef(s),j=a().useRef(null);a().useEffect(()=>{const e=h;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(!r)return;const n=x.current!==l;x.current=l;const o=null!==s&&s!==w.current;if(w.current=s,o)j.current=n?null:s,n&&r.call(e,l),e.dispatchEvent(new Event("click",{bubbles:!s.hasConsumerStoppedPropagation}));else if(n){const t=j.current;j.current=null;const n=t?.requestedChecked===l;b.current=!0,r.call(e,l),e.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),b.current=!1}},[h,l,s]);const _=a().useRef(l);return(0,o().jsx)(rl.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??_.current,required:u,disabled:d,name:f,value:p,form:v,...r,tabIndex:-1,ref:y,onClick:As(t,e=>{b.current&&e.stopPropagation()}),style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function Cx(e){return"function"==typeof e}function Ex(e){return e?"checked":"unchecked"}function Rx(e){return Rx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rx(e)}gx(Cx,"isFunction"),gx(Ex,"getState");var Ax=["className"];function Tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Dx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tx(Object(r),!0).forEach(function(t){Fx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Rx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Rx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ix=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Ax);return(0,o().jsx)(Ox,Dx(Dx({className:hi("vt-peer vt-inline-flex vt-h-6 vt-w-11 vt-shrink-0 vt-cursor-pointer vt-items-center vt-rounded-full vt-border-2 vt-border-transparent vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-4 focus-visible:vt-ring-blue-300 disabled:vt-cursor-not-allowed disabled:vt-opacity-50 data-[state=checked]:vt-bg-blue-600 data-[state=unchecked]:vt-bg-[#c7c6c6]",r)},n),{},{ref:t,children:(0,o().jsx)(Nx,{className:hi("vt-pointer-events-none vt-block vt-h-5 vt-w-5 vt-rounded-full vt-bg-white vt-border vt-border-gray-300 vt-shadow-lg vt-ring-0 vt-transition-transform data-[state=checked]:vt-translate-x-5 data-[state=unchecked]:vt-translate-x-0")})}))});function Mx(e){return Mx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mx(e)}Ix.displayName=Ox.displayName;var Lx=["className"];function Vx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $x(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Mx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zx=a().forwardRef(function(e,t){var r=e.className,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Lx);return(0,o().jsx)("textarea",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vx(Object(r),!0).forEach(function(t){$x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:hi("vt-flex vt-min-h-[60px] vt-w-full vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-px-3 vt-py-2 vt-text-base vt-shadow-sm vt-placeholder:text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:text-sm",r),ref:t},n))});function Ux(e){return Ux="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ux(e)}function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(t){Bx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ux(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ux(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ux(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Gx(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Gx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Gx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Gx(d,"constructor",c),Gx(c,"constructor",l),l.displayName="GeneratorFunction",Gx(c,o,"GeneratorFunction"),Gx(d),Gx(d,o,"Generator"),Gx(d,n,function(){return this}),Gx(d,"toString",function(){return"[object Generator]"}),(Hx=function(){return{w:i,m:f}})()}function Gx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Gx=function(e,t,r,n){function i(t,r){Gx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Gx(e,t,r,n)}function Zx(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Kx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qx(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qx(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}zx.displayName="Textarea";const Jx=function(){var e=Kx((0,a().useState)(!1),2),t=e[0],r=e[1],n=Kx((0,a().useState)(void 0),2),i=n[0],s=n[1],l=function(){return c.getValues()},c=Ug({resolver:Kg(Tm),defaultValues:{enable_maintenance:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),u=c.handleSubmit,d=function(){var e,t=Fn();return oa({mutationFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_maintenance_mood",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Lr.success(null!==(r=e.message)&&void 0!==r?r:(0,mi.__)("Maintenance Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed while updating maintenance mood","versatile-toolkit"))}})}(),f=function(){var e,t=(e=Hx().m(function e(t){return Hx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,d.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Zx(i,n,o,a,s,"next",e)}function s(e){Zx(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),p=Aa(),v=p.data,h=p.isLoading,m=null==v?void 0:v.data.maintenance;return(0,a().useEffect)(function(){m&&(c.reset({enable_maintenance:null==v?void 0:v.data.enable_maintenance,show_subscribers_only:m.show_subscribers_only||!1,title:m.title||"",description:m.description||"",subtitle:m.subtitle||"",template:m.template||"classic",background_image:m.background_image||"",background_image_id:m.background_image_id||0,logo:m.logo||"",logo_id:m.logo_id||0}),r(!0))},[m]),(0,o().jsx)("div",{className:"",children:h||!t?(0,o().jsx)(_i,{}):(0,o().jsx)(bb,{onError:function(e,t){},fallback:(0,o().jsxs)("div",{className:"vt-p-6 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:[(0,o().jsx)("h3",{className:"vt-text-lg vt-font-medium vt-text-red-700 vt-mb-2",children:(0,mi.__)("Form Error","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-red-600",children:(0,mi.__)("There was a problem loading the maintenance settings form. Please try refreshing the page or contact support.","versatile-toolkit")}),(0,o().jsx)(vs,{className:"vt-mt-4",onClick:function(){return window.location.reload()},children:(0,mi.__)("Refresh Page","versatile-toolkit")})]}),children:(0,o().jsx)(sx,Wx(Wx({},c),{},{children:(0,o().jsxs)("form",{onSubmit:u(f,function(e){}),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{}),(0,mi.__)("Maintenance Mood","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(vs,{type:"submit",disabled:d.isPending,children:d.isPending?(0,mi.__)("Saving...","versatile-toolkit"):(0,mi.__)("Save Settings","versatile-toolkit")}),(0,o().jsx)(bb,{fallback:(0,o().jsx)(vs,{variant:"outline",disabled:!0,children:(0,mi.__)("Preview Unavailable","versatile-toolkit")}),children:(0,o().jsx)(Nb,{type:"maintenance",disabled:d.isPending,getFormData:l})})]})]}),(0,o().jsx)("div",{children:(0,o().jsx)(cx,{control:c.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Choose Template","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Template selector failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)($b,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"maintenance",formData:i,getFormData:l})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Select a design template for your maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:c.control,name:"enable_maintenance",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"enable_maintenance",children:(0,mi.__)("Enable Maintenance Mood","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"enable_maintenance",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Enable or disable maintenance mode for your site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,mi.__)("Show Only for Users","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("When enabled, maintenance mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Title","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,Wx({placeholder:(0,mi.__)("Enter maintenance title","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Subtitle","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,Wx({placeholder:(0,mi.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Description","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(zx,Wx({placeholder:(0,mi.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Provide more details about the maintenance.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]}),(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:c.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Background Image","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(c.getValues())},buttonText:(0,mi.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a background image for the maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:c.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Logo","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(bb,{fallback:(0,o().jsx)("div",{className:"vt-p-4 vt-border vt-border-red-200 vt-bg-red-50 vt-rounded-md",children:(0,o().jsx)("p",{className:"vt-text-red-700 vt-text-sm",children:(0,mi.__)("Media uploader failed to load. Please try refreshing the page.","versatile-toolkit")})}),children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(c.getValues())},buttonText:(0,mi.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a logo to display on the maintenance page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]})]})]})}))})})};const Yx=function(){return(0,o().jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,o().jsx)(Jx,{})})};function Xx(e){return Xx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xx(e)}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(t){rw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xx(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Xx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nw(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ow(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ow(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ow(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ow(d,"constructor",c),ow(c,"constructor",l),l.displayName="GeneratorFunction",ow(c,o,"GeneratorFunction"),ow(d),ow(d,o,"Generator"),ow(d,n,function(){return this}),ow(d,"toString",function(){return"[object Generator]"}),(nw=function(){return{w:i,m:f}})()}function ow(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ow=function(e,t,r,n){function i(t,r){ow(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ow(e,t,r,n)}function iw(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function aw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const lw=function(){var e=aw((0,a().useState)(!1),2),t=e[0],r=e[1],n=aw((0,a().useState)(void 0),2),i=n[0],s=n[1],l=Ug({resolver:Kg(Dm),defaultValues:{enable_comingsoon:!0,show_subscribers_only:!1,title:"",description:"",subtitle:"",template:"classic",background_image:"",background_image_id:0,logo:"",logo_id:0}}),c=l.handleSubmit,u=function(){return l.getValues()},d=function(){var e,t=Fn();return oa({mutationFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_comingsoon_mood",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){var r;Lr.success(null!==(r=e.message)&&void 0!==r?r:(0,mi.__)("Comingsoon Mood info updated!","versatile-toolkit")),t.invalidateQueries({queryKey:["getMoodInfo"]})},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed while updating Comingsoon mood","versatile-toolkit"))}})}(),f=function(){var e,t=(e=nw().m(function e(t){return nw().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,d.mutateAsync(t);case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){iw(i,n,o,a,s,"next",e)}function s(e){iw(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}(),p=Aa(),v=p.data,h=p.isLoading,m=null==v?void 0:v.data.comingsoon;return(0,a().useEffect)(function(){m&&(l.reset({enable_comingsoon:null==v?void 0:v.data.enable_comingsoon,show_subscribers_only:m.show_subscribers_only||!1,title:m.title||"",description:m.description||"",subtitle:m.subtitle||"",template:m.template||"classic",background_image:m.background_image||"",background_image_id:m.background_image_id||0,logo:m.logo||"",logo_id:m.logo_id||0}),r(!0))},[m]),(0,o().jsx)("div",{className:"",children:h||!t?(0,o().jsx)(_i,{}):(0,o().jsx)(sx,tw(tw({},l),{},{children:(0,o().jsxs)("form",{onSubmit:c(f,function(e){}),children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-pb-5",children:[(0,o().jsxs)("h2",{className:"vt-flex vt-items-center vt-gap-2 vt-text-2xl",children:[(0,o().jsx)(Jg,{}),(0,mi.__)("Comingsoon Mood","versatile-toolkit")]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-5",children:[(0,o().jsx)(vs,{type:"submit",disabled:d.isPending,children:(0,o().jsx)(bi,{isLoading:d.isPending,loadingText:(0,mi.__)("Saving","versatile-toolkit"),children:(0,mi.__)("Save Settings","versatile-toolkit")})}),(0,o().jsx)(Nb,{type:"comingsoon",disabled:d.isPending,getFormData:u})]})]}),(0,o().jsx)("div",{children:(0,o().jsx)(cx,{control:l.control,name:"template",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Choose Template","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)($b,{selectedTemplate:t.value||"classic",onTemplateSelect:t.onChange,type:"comingsoon",formData:i,getFormData:u})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Select a design template for your coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-10 vt-mt-5",children:[(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:l.control,name:"enable_comingsoon",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"enable_comingsoon",children:(0,mi.__)("Enable Comingsoon Mood","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"enable_comingsoon",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsxs)(hx,{children:[(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit"),(0,mi.__)("Enable the coming soon page for your website.","versatile-toolkit")]}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"show_subscribers_only",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(px,{className:"vt-text-foreground",htmlFor:"show_subscribers_only",children:(0,mi.__)("Show Only for Users","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Ix,{id:"show_subscribers_only",checked:t.value,onCheckedChange:t.onChange})})]}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("When enabled, coming soon mode will only be shown to subscribers. Other users will see the normal site.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"title",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Title","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,tw({placeholder:(0,mi.__)("Enter coming soon title","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("This will be displayed as the main heading.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"subtitle",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Subtitle","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,tw({placeholder:(0,mi.__)("Enter subtitle","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Optional subtitle under the title.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"description",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Description","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(zx,tw({placeholder:(0,mi.__)("Describe what is happening...","versatile-toolkit")},t))}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Provide more details about the coming soon.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]}),(0,o().jsxs)("div",{className:"vt-w-1/2",children:[(0,o().jsx)(cx,{control:l.control,name:"background_image",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Background Image","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(l.getValues())},buttonText:(0,mi.__)("Upload Background Image","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a background image for the coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:l.control,name:"logo",render:function(e){var t=e.field,r=e.fieldState;return(0,o().jsxs)(fx,{className:"vt-mt-6",children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Logo","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(jb,{value:t.value||"",onChange:function(e,r){t.onChange(e),s(l.getValues())},buttonText:(0,mi.__)("Upload Logo","versatile-toolkit"),allowedTypes:["image"]})}),!r.error&&(0,o().jsx)(hx,{children:(0,mi.__)("Upload a logo to display on the coming soon page.","versatile-toolkit")}),(0,o().jsx)(mx,{})]})}})]})]})]})}))})};const cw=function(){return(0,o().jsx)("div",{className:"vt-py-4 vt-space-y-6",children:(0,o().jsx)(lw,{})})};var uw=function(e){var t=e.className;return(0,o().jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o().jsxs)("g",{opacity:"0.6",children:[(0,o().jsx)("path",{d:"M8 12C8 10.8954 8.89543 10 10 10H18L22 14H38C39.1046 14 40 14.8954 40 16V34C40 35.1046 39.1046 36 38 36H10C8.89543 36 8 35.1046 8 34V12Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,o().jsx)("path",{d:"M14 22H20M14 26H24M14 30H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.4"}),(0,o().jsx)("circle",{cx:"32",cy:"24",r:"4",stroke:"currentColor",strokeWidth:"1.5",fill:"none",opacity:"0.5"}),(0,o().jsx)("path",{d:"M35 27L37 29",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:"0.5"})]})})};function dw(e){return dw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dw(e)}var fw=["className"],pw=["className"],vw=["className"],hw=["className"],mw=["className"],yw=["className"],gw=["className"],bw=["className"];function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ww(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(t){jw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=dw(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var kw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,fw);return(0,o().jsx)("div",{className:"vt-relative vt-w-full vt-overflow-auto",children:(0,o().jsx)("table",ww({ref:t,className:hi("vt-w-full vt-caption-bottom vt-text-sm",r)},n))})});kw.displayName="Table";var Sw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,pw);return(0,o().jsx)("thead",ww({ref:t,className:hi("[&_tr]:vt-border-b",r)},n))});Sw.displayName="TableHeader";var Ow=a().forwardRef(function(e,t){var r=e.className,n=_w(e,vw);return(0,o().jsx)("tbody",ww({ref:t,className:hi("[&_tr:last-child]:vt-border-0",r)},n))});Ow.displayName="TableBody",a().forwardRef(function(e,t){var r=e.className,n=_w(e,hw);return(0,o().jsx)("tfoot",ww({ref:t,className:hi("vt-border-t vt-bg-muted/50 vt-font-medium [&>tr]:last:vt-border-b-0",r)},n))}).displayName="TableFooter";var Nw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,mw);return(0,o().jsx)("tr",ww({ref:t,className:hi("vt-border-b vt-transition-colors hover:vt-bg-muted/50 data-[state=selected]:vt-bg-muted",r)},n))});Nw.displayName="TableRow";var Pw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,yw);return(0,o().jsx)("th",ww({ref:t,className:hi("vt-h-10 vt-px-2 vt-text-left vt-align-middle vt-font-medium vt-text-muted-foreground [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Pw.displayName="TableHead";var Cw=a().forwardRef(function(e,t){var r=e.className,n=_w(e,gw);return(0,o().jsx)("td",ww({ref:t,className:hi("vt-p-2 vt-align-middle [&:has([role=checkbox])]:vt-pr-0 [&>[role=checkbox]]:vt-translate-y-[2px]",r)},n))});Cw.displayName="TableCell",a().forwardRef(function(e,t){var r=e.className,n=_w(e,bw);return(0,o().jsx)("caption",ww({ref:t,className:hi("vt-mt-4 vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="TableCaption";const Ew=function(e){var t=e.colSpan,r=void 0===t?9:t,n=e.title,i=void 0===n?"":n,a=e.description,s=void 0===a?"":a;return(0,o().jsx)(Nw,{children:(0,o().jsx)(Cw,{colSpan:r,className:"vt-text-center vt-py-12",children:(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-items-center vt-space-y-3 vt-text-muted-foreground",children:[(0,o().jsx)(uw,{className:"vt-w-12 vt-h-12"}),(0,o().jsxs)("div",{className:"vt-space-y-1",children:[(0,o().jsx)("p",{className:"vt-text-lg vt-font-medium",children:i||(0,mi.__)("Empty!! No data found","versatile-toolkit")}),s&&(0,o().jsx)("p",{className:"vt-text-sm",children:s})]})]})})})};var Rw=Object.defineProperty;function Aw(e,[t,r]){return Math.min(r,Math.max(t,e))}((e,t)=>{Rw(e,"name",{value:t,configurable:!0})})(Aw,"clamp");var Tw=Object.defineProperty,Dw=(e,t)=>Tw(e,"name",{value:t,configurable:!0});function Fw(e){const t=e+"CollectionProvider",[r,n]=Ms(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=Dw(e=>{const{scope:t,children:r}=e,n=a().useRef(null),s=a().useRef(new Map).current;return(0,o().jsx)(i,{scope:t,itemMap:s,collectionRef:n,children:r})},"CollectionProvider");l.displayName=t;const c=e+"CollectionSlot",u=Wa(c),d=a().forwardRef((e,t)=>{const{scope:r,children:n}=e,i=za(t,s(c,r).collectionRef);return(0,o().jsx)(u,{ref:i,children:n})});d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=Wa(f),h=a().forwardRef((e,t)=>{const{scope:r,children:n,...i}=e,l=a().useRef(null),c=za(t,l),u=s(f,r);return a().useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),(0,o().jsx)(v,{[p]:"",ref:c,children:n})});function m(t){const r=s(e+"CollectionConsumer",t);return a().useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return h.displayName=f,Dw(m,"useCollection"),[{Provider:l,Slot:d,ItemSlot:h},m,n]}Dw(Fw,"createCollection");var Iw=new WeakMap,Mw=class e extends Map{static{Dw(this,"OrderedDict")}#K;constructor(e){super(e),this.#K=[...super.keys()],Iw.set(this,!0)}set(e,t){return Iw.get(this)&&!this.has(e)&&this.#K.push(e),super.set(e,t),this}insert(e,t,r){const n=this.has(t),o=n?this.size:this.size+1,i=$w(e),a=i>=0?Math.min(i,o-1):Math.max(o+i,0);if(n?this.#K.indexOf(t)===a:a===this.size)return this.set(t,r),this;const s=this.#K.filter(e=>e!==t);s.splice(a,0,t);const l=s.map(e=>[e,e===t?r:this.get(e)]);this.clear();for(const[e,t]of l)this.set(e,t);return this}with(t,r,n){const o=new e(this);return o.insert(t,r,n),o}before(e){const t=this.#K.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){const n=this.#K.indexOf(e);if(-1===n)return this;const o=this.#K.indexOf(t),i=-1!==o&&o<n?n-1:n;return this.insert(i,t,r)}after(e){let t=this.#K.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,r){const n=this.#K.indexOf(e);if(-1===n)return this;const o=this.#K.indexOf(t),i=-1!==o&&o<=n?n:n+1;return this.insert(i,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#K=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#K.splice(this.#K.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=Lw(this.#K,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=Lw(this.#K,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#K.indexOf(e)}keyAt(e){return Lw(this.#K,e)}from(e,t){const r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){const r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return-1}filter(t,r){const n=[];let o=0;for(const e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){const n=[];let o=0;for(const e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){const[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let o=0,i=r;for(const e of this)i=0!==o||n?Reflect.apply(t,this,[i,e,o,this]):e,o++;return i}reduceRight(...e){const[t,r]=e,n=e.length>1;if(!n&&0===this.size)throw new TypeError("Reduce of empty OrderedDict with no initial value");let o=r;for(let e=this.size-1;e>=0;e--){const r=this.entryAt(e);o=e!==this.size-1||n?Reflect.apply(t,this,[o,r,e,this]):r}return o}sort(e){if("function"!=typeof e)throw new TypeError("OrderedDict.sort requires a compare function");const t=[...this.entries()].sort(e);this.clear();for(const[e,r]of t)this.set(e,r);return this}toSorted(t){if("function"!=typeof t)throw new TypeError("OrderedDict.toSorted requires a compare function");const r=[...this.entries()].sort(t);return new e(r)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){const r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){const n=new e;for(const e of this.#K.slice(t,r))n.set(e,this.get(e));return n}every(e,t){let r=0;for(const n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(const n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function Lw(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=Vw(e,t);return-1===r?void 0:e[r]}function Vw(e,t){const r=e.length,n=$w(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}function $w(e){return e!=e||0===e?0:Math.trunc(e)}function zw(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const n of r){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(e[n]!==t[n])return!1}return!0}function Uw(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function qw(e){let t;for(const r of e.keys()){if(t){const e=t.compareDocumentPosition(r);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=r}return!0}function Ww(e,t){return e[1].element&&t[1].element?Uw(e[1].element,t[1].element)?-1:1:0}function Bw(e){return new MutationObserver(t=>{for(const r of t)if("childList"===r.type)return void e()})}Dw(Lw,"at"),Dw(Vw,"toSafeIndex"),Dw($w,"toSafeInteger"),Dw(function(e){const t=e+"CollectionProvider",[r,n]=Ms(t),[i,s]=r(t);i.displayName=e+"CollectionStableContextProvider";const[l,c]=r(t);l.displayName=e+"CollectionStatefulContextProvider";const u=Dw(({state:e,...t})=>e?(0,o().jsx)(f,{...t,state:e}):(0,o().jsx)(d,{...t}),"CollectionProvider");u.displayName=t;const d=Dw(e=>{const t=x();return(0,o().jsx)(f,{...e,state:t})},"CollectionInit");d.displayName=e+"CollectionInit";const f=Dw(e=>{const{scope:t,children:r,state:n}=e,s=a().useRef(null),[c,u]=a().useState(null),d=za(s,u),[f,p]=n,v=a().useRef(new Mw),h=a().useCallback(()=>{const e=v.current;return qw(e)||e.sort(Ww),e},[]);return a().useEffect(()=>{if(!c)return;const e=Bw(()=>{p(e=>{const t=e.toSorted(Ww),r=t.some(([t],r)=>e.keyAt(r)!==t);return r?t:e})});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c,p]),(0,o().jsx)(i,{scope:t,collectionElementRef:d,collectionElementRefObject:s,getCollection:h,setCollection:p,registryRef:v,children:(0,o().jsx)(l,{scope:t,collectionElement:c,collection:f,children:r})})},"CollectionProviderImpl");f.displayName=e+"CollectionProviderImpl";const p=e+"CollectionSlot",v=Wa(p),h=a().forwardRef((e,t)=>{const{scope:r,children:n}=e,i=za(t,s(p,r).collectionElementRef);return(0,o().jsx)(v,{ref:i,children:n})});h.displayName=p;const m=e+"CollectionItemSlot",y="data-radix-collection-item",g=Wa(m),b=a().forwardRef((e,t)=>{const{scope:r,children:n,...i}=e,l=a().useRef(null),c=s(m,r),{setCollection:u,registryRef:d}=c,f=a().useRef(i);zw(f.current,i)||(f.current=i);const p=f.current,v=za(t,a().useCallback(e=>{const t=d.current;e?t.set(e,{...f.current,element:e}):l.current&&t.delete(l.current)},[d]),l);Vs(()=>{const e=l.current,t=d.current;e&&t.has(e)&&t.set(e,{...p,element:e})},[p,d]);const h=a().useRef(null);return a().useEffect(()=>{const e=l.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==p)&&(h.current=e?{element:e,itemData:p}:null,u(r=>{const n=new Mw(r);return t&&t.element!==e&&n.delete(t.element),e&&n.set(e,{...p,element:e}),n.sort(Ww)}))}),a().useEffect(()=>()=>{const e=h.current;h.current=null,e&&u(t=>{if(!t.has(e.element))return t;const r=new Mw(t);return r.delete(e.element),r})},[u]),(0,o().jsx)(g,{[y]:"",ref:v,children:n})});function x(){return a().useState(new Mw)}function w(t){const{collection:r}=c(e+"CollectionConsumer",t);return r}function j(t){const{getCollection:r}=s(e+"CollectionConsumer",t);return r}return b.displayName=m,Dw(x,"useInitCollection"),Dw(w,"useCollection"),Dw(j,"useGetCollection"),[{Provider:u,Slot:h,ItemSlot:b},{createCollectionScope:n,useCollection:w,useGetCollection:j,useInitCollection:x}]},"createCollection"),Dw(zw,"shallowEqual"),Dw(Uw,"isElementPreceding"),Dw(qw,"isInDocumentOrder"),Dw(Ww,"sortByDocumentPosition"),Dw(Bw,"getChildListObserver");var Hw=Object.defineProperty,Gw=(e,t)=>Hw(e,"name",{value:t,configurable:!0}),Zw="ltr",Kw=a().createContext(void 0);function Qw(e){const t=a().useContext(Kw);return e||t||Zw}Gw(Qw,"useDirection");Object.defineProperty;var Jw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Yw=Object.defineProperty,Xw=(e,t)=>Yw(e,"name",{value:t,configurable:!0}),ej={ItemAligned:"item-aligned",Popper:"popper"},tj="rtl",rj=[" ","Enter","ArrowUp","ArrowDown"],nj=[" ","Enter"],oj="Select",[ij,aj,sj]=Fw(oj),[lj,cj]=Ms(oj,[sj,Wp]),uj=Wp(),[dj,fj]=lj(oj),[pj,vj]=lj(oj);function hj(e){const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:v,required:h,form:m,internal_do_not_use_render:y}=e,g=uj(t),[b,x]=a().useState(null),[w,j]=a().useState(null),[_,k]=a().useState(!1),S=Qw(d),[O,N]=Js({prop:n,defaultProp:i??!1,onChange:s,caller:oj}),[P,C]=Js({prop:l,defaultProp:c,onChange:u,caller:oj}),E=a().useRef(null),R=a().useRef(!1),[A,T]=a().useState(null),D=Xw(e=>{T({value:e,hasConsumerStoppedPropagation:R.current}),C(e)},"handleUserSelect"),F=a().useRef(P);a().useEffect(()=>{const e=m?b?.ownerDocument.getElementById(m):b?.form;if(e instanceof HTMLFormElement){const t=Xw(()=>C(F.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[m,b,C]);const I=!b||(!!m||!!b.closest("form")),[M,L]=a().useState(new Set),V=qs(),$=Array.from(M).map(e=>e.props.value).join(";"),z=a().useCallback(e=>{L(t=>new Set(t).add(e))},[]),U=a().useCallback(e=>{L(t=>{const r=new Set(t);return r.delete(e),r})},[]),q={required:h,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:j,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:V,value:P,onValueChange:C,hasConsumerStoppedPropagationRef:R,userSelection:A,onUserSelect:D,open:O,onOpenChange:N,dir:S,triggerPointerDownPosRef:E,disabled:v,name:f,autoComplete:p,form:m,nativeOptions:M,nativeSelectKey:$,isFormControl:I};return(0,o().jsx)(Gp,{...g,children:(0,o().jsx)(dj,{scope:t,...q,children:(0,o().jsx)(ij.Provider,{scope:t,children:(0,o().jsx)(pj,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:U,children:Gj(y)?y(q):r})})})})}Xw(hj,"SelectProvider");var mj=Xw(e=>{const{__scopeSelect:t,children:r,...n}=e;return(0,o().jsx)(hj,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:e})=>(0,o().jsxs)(o().Fragment,{children:[r,e?(0,o().jsx)(Hj,{__scopeSelect:t}):null]})})},"Select"),yj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,disabled:n=!1,...i}=e,s=uj(r),l=fj("SelectTrigger",r),c=l.disabled||n,u=za(t,l.onTriggerChange),d=aj(r),f=a().useRef("touch"),[p,v,h]=Kj(e=>{const t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===l.value),n=Qj(t,e,r);void 0!==n&&l.onUserSelect(n.value)}),m=Xw(e=>{c||(l.onOpenChange(!0),h()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,o().jsx)(Zp,{asChild:!0,...s,children:(0,o().jsx)(rl.button,{type:"button",role:"combobox","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Zj(l.value)?"":void 0,...i,ref:u,onClick:As(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&m(e)}),onPointerDown:As(i.onPointerDown,e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(m(e),e.preventDefault())}),onKeyDown:As(i.onKeyDown,e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||(l.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),v(e.key)),t&&" "===e.key||rj.includes(e.key)&&(m(),e.preventDefault())})})})},"SelectTrigger")),gj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,className:n,style:i,children:s,placeholder:l="",...c}=e,u=fj("SelectValue",r),{onValueNodeHasChildrenChange:d}=u,f=void 0!==s,p=za(t,u.onValueNodeChange);Vs(()=>{d(f)},[d,f]);const v=Zj(u.value);return(0,o().jsx)(rl.span,{...c,asChild:!v&&c.asChild,ref:p,style:{pointerEvents:"none"},children:(0,o().jsx)(a().Fragment,{children:v?l:s},v?"placeholder":"value")})},"SelectValue")),bj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,children:n,...i}=e;return(0,o().jsx)(rl.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})},"SelectIcon")),[xj,wj]=lj("SelectPortal",{forceMount:void 0}),jj=Xw(e=>{const{__scopeSelect:t,forceMount:r,...n}=e;return(0,o().jsx)(xj,{scope:e.__scopeSelect,forceMount:r,children:(0,o().jsx)(Ul,{asChild:!0,...n})})},"SelectPortal"),_j="SelectContent",kj=a().forwardRef(Xw(function(e,t){const r=wj(_j,e.__scopeSelect),{forceMount:n=r.forceMount,...i}=e,s=fj(_j,e.__scopeSelect),[l,c]=a().useState();return Vs(()=>{c(new DocumentFragment)},[]),(0,o().jsx)(Hl,{present:n||s.open,children:({present:e})=>e?(0,o().jsx)(Ej,{...i,ref:t}):(0,o().jsx)(Sj,{...i,fragment:l})})},"SelectContent")),Sj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,children:n,fragment:i}=e;return i?s().createPortal((0,o().jsx)(Nj,{scope:r,children:(0,o().jsx)(ij.Slot,{scope:r,children:(0,o().jsx)("div",{ref:t,children:n})})}),i):null},"SelectContentFragment")),Oj=10,[Nj,Pj]=lj(_j),Cj=Wa("SelectContent.RemoveScroll"),Ej=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r}=e,{position:n=ej.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:m,hideWhenDetached:y,avoidCollisions:g,...b}=e,x=fj(_j,r),[w,j]=a().useState(null),[_,k]=a().useState(null),S=za(t,j),[O,N]=a().useState(null),[P,C]=a().useState(null),E=aj(r),[R,A]=a().useState(!1),T=a().useRef(!1),D=a().useRef(!1),F=a().useRef(!1);a().useEffect(()=>{if(w)return ru(w)},[w]),rc();const I=a().useCallback(e=>{const[t,...r]=E().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(const r of e){if(r===o)return;if(r?.scrollIntoView({block:"nearest"}),r===t&&_&&(_.scrollTop=0),r===n&&_&&(_.scrollTop=_.scrollHeight),r?.focus(),document.activeElement!==o)return}},[E,_]),M=a().useCallback(()=>I([O,w]),[I,O,w]);a().useEffect(()=>{R&&M()},[R,M]);const{onOpenChange:L,triggerPointerDownPosRef:V}=x;a().useEffect(()=>{if(w){let e={x:0,y:0};const t=Xw(t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},"handlePointerMove"),r=Xw(r=>{e.x<=10&&e.y<=10?r.preventDefault():r.composedPath().includes(w)||L(!1),document.removeEventListener("pointermove",t),V.current=null},"handlePointerUp");return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[w,L,V]),a().useEffect(()=>{const e=Xw(()=>L(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[L]);const[$,z]=Kj(e=>{const t=E().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=Qj(t,e,r);n&&setTimeout(()=>n.ref.current?.focus())}),U=a().useCallback((e,t,r)=>{const n=!D.current;n&&(D.current=!0);const o=!T.current&&!r;void 0!==x.value&&x.value===t||o?(N(e),o&&(T.current=!0)):n&&N(e)},[x.value]),q=a().useCallback(()=>w?.focus(),[w]),W=a().useCallback((e,t,r)=>{if(!e)return;const n=!F.current;n&&(F.current=!0);const o=!T.current&&!r;(void 0!==x.value&&x.value===t||o||n)&&C(e)},[x.value]),B=n===ej.Popper?Aj:Rj,H=B===Aj?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:m,hideWhenDetached:y,avoidCollisions:g}:{};return(0,o().jsx)(Nj,{scope:r,content:w,viewport:_,onViewportChange:k,itemRefCallback:U,selectedItem:O,onItemLeave:q,itemTextRefCallback:W,focusSelectedItem:M,selectedItemText:P,position:n,isPositioned:R,searchRef:$,children:(0,o().jsx)(Zc,{as:Cj,allowPinchZoom:!0,children:(0,o().jsx)(kl,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:As(i,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,o().jsx)(fl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,o().jsx)(B,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...H,onPlaced:()=>A(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:As(b.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=E().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),Rj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,onPlaced:n,...i}=e,s=fj(_j,r),l=Pj(_j,r),[c,u]=a().useState(null),[d,f]=a().useState(null),p=za(t,f),v=aj(r),h=a().useRef(!1),m=a().useRef(!0),{viewport:y,selectedItem:g,selectedItemText:b,focusSelectedItem:x}=l,w=a().useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&y&&g&&b){const e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if(s.dir!==tj){const n=o.left-t.left,i=r.left-n,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-Oj,d=Aw(i,[Oj,Math.max(Oj,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const n=t.right-o.right,i=window.innerWidth-r.right-n,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),u=window.innerWidth-Oj,d=Aw(i,[Oj,Math.max(Oj,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const i=v(),a=window.innerHeight-2*Oj,l=y.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),x=f+p+l+parseInt(u.paddingBottom,10)+m,w=Math.min(5*g.offsetHeight,x),j=window.getComputedStyle(y),_=parseInt(j.paddingTop,10),k=parseInt(j.paddingBottom,10),S=e.top+e.height/2-Oj,O=a-S,N=g.offsetHeight/2,P=f+p+(g.offsetTop+N),C=x-P;if(P<=S){const e=i.length>0&&g===i[i.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-y.offsetTop-y.offsetHeight,r=P+Math.max(O,N+(e?k:0)+t+m);c.style.height=r+"px"}else{const e=i.length>0&&g===i[0].ref.current;c.style.top="0px";const t=Math.max(S,f+y.offsetTop+(e?_:0)+N)+C;c.style.height=t+"px",y.scrollTop=P-S+y.offsetTop}c.style.margin=`${Oj}px 0`,c.style.minHeight=w+"px",c.style.maxHeight=a+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[v,s.trigger,s.valueNode,c,d,y,g,b,s.dir,n]);Vs(()=>w(),[w]);const[j,_]=a().useState();Vs(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const k=a().useCallback(e=>{e&&!0===m.current&&(w(),x?.(),m.current=!1)},[w,x]);return(0,o().jsx)(Tj,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:(0,o().jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,o().jsx)(rl.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),Aj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,align:n="start",collisionPadding:i=Oj,...a}=e,s=uj(r);return(0,o().jsx)(Yp,{...s,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Tj,Dj]=lj(_j,{}),Fj="SelectViewport",Ij=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,nonce:n,...i}=e,s=Pj(Fj,r),l=Dj(Fj,r),c=za(t,s.onViewportChange),u=a().useRef(0);return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,o().jsx)(ij.Slot,{scope:r,children:(0,o().jsx)(rl.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:As(i.onScroll,e=>{const t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=l;if(n?.current&&r){const e=Math.abs(u.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*Oj,o=parseFloat(r.style.minHeight),i=parseFloat(r.style.height),a=Math.max(o,i);if(a<n){const o=a+e,i=Math.min(n,o),s=o-i;r.style.height=i+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})},"SelectViewport")),[Mj,Lj]=lj("SelectGroup"),Vj="SelectItem",[$j,zj]=lj(Vj),Uj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...l}=e,c=fj(Vj,r),u=Pj(Vj,r),d=c.value===n,[f,p]=a().useState(s??""),[v,h]=a().useState(!1),m=za(t,al(e=>u.itemRefCallback?.(e,n,i))),y=qs(),g=a().useRef("touch");function b(e){c.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),c.onUserSelect(n),c.onOpenChange(!1)}return Xw(b,"handleSelect"),(0,o().jsx)($j,{scope:r,value:n,disabled:i,textId:y,isSelected:d,onItemTextChange:a().useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,o().jsx)(ij.ItemSlot,{scope:r,value:n,disabled:i,textValue:f,children:(0,o().jsx)(rl.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:m,onFocus:As(l.onFocus,()=>h(!0)),onBlur:As(l.onBlur,()=>h(!1)),onClick:As(l.onClick,e=>{i||"mouse"!==g.current&&b(e)}),onPointerUp:As(l.onPointerUp,e=>{i||"mouse"===g.current&&b(e)}),onPointerDown:As(l.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:As(l.onPointerMove,e=>{g.current=e.pointerType,i?u.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:As(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:As(l.onKeyDown,e=>{if(i||e.target!==e.currentTarget)return;""!==u.searchRef?.current&&" "===e.key||(nj.includes(e.key)&&b(e)," "===e.key&&e.preventDefault())})})})})},"SelectItem")),qj="SelectItemText",Wj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,className:n,style:i,...l}=e,c=fj(qj,r),u=Pj(qj,r),d=zj(qj,r),f=vj(qj,r),[p,v]=a().useState(null),h=al(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),m=za(t,v,d.onItemTextChange,h),y=p?.textContent,g=a().useMemo(()=>(0,o().jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=f;return Vs(()=>(b(g),()=>x(g)),[b,x,g]),(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(rl.span,{id:d.textId,...l,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!Zj(c.value)?s().createPortal(l.children,c.valueNode):null]})},"SelectItemText")),Bj=a().forwardRef(Xw(function(e,t){const{__scopeSelect:r,...n}=e;return zj("SelectItemIndicator",r).isSelected?(0,o().jsx)(rl.span,{"aria-hidden":!0,...n,ref:t}):null},"SelectItemIndicator")),Hj=a().forwardRef(Xw(function({__scopeSelect:e,...t},r){const n=fj("SelectBubbleInput",e),{value:i,onValueChange:s,required:l,disabled:c,name:u,autoComplete:d,form:f,userSelection:p}=n,{nativeOptions:v,nativeSelectKey:h}=n,m=a().useRef(null),y=za(r,m),g=i??"",b=a().useRef(g),x=a().useRef(p),w=a().useRef(!1),j=Array.from(v).some(e=>""===(e.props.value??""));return a().useEffect(()=>{const e=m.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set,n=null!==p&&p!==x.current;x.current=p;const o=b.current!==g;b.current=g;const i=n&&o;if(n&&!o&&p.value!==g&&!p.hasConsumerStoppedPropagation&&r){w.current=!0;try{r.call(e,p.value),e.dispatchEvent(new Event("change",{bubbles:!0}))}finally{w.current=!1,r.call(e,g)}return}const a=i&&!p.hasConsumerStoppedPropagation;if(o&&r){const t=new Event("change",{bubbles:a});r.call(e,g),e.dispatchEvent(t)}},[g,p]),(0,o().jsxs)(rl.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:u,autoComplete:d,disabled:c,form:f,onChange:e=>{w.current||s(e.target.value)},...t,style:{...Jw,...t.style},ref:y,defaultValue:g,children:[Zj(i)&&!j?(0,o().jsx)("option",{value:""}):null,Array.from(v)]},h)},"SelectBubbleInput"));function Gj(e){return"function"==typeof e}function Zj(e){return""===e||void 0===e}function Kj(e){const t=al(e),r=a().useRef(""),n=a().useRef(0),o=a().useCallback(e=>{const o=r.current+e;function i(e){r.current=e,window.clearTimeout(n.current),""!==e&&(n.current=window.setTimeout(()=>i(""),1e3))}t(o),Xw(i,"updateSearch"),i(o)},[t]),i=a().useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return a().useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function Qj(e,t,r){const n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=Jj(e,Math.max(o,0));1===n.length&&(i=i.filter(e=>e!==r));const a=i.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function Jj(e,t){return e.map((r,n)=>e[(t+n)%e.length])}Xw(Gj,"isFunction"),Xw(Zj,"shouldShowPlaceholder"),Xw(Kj,"useTypeaheadSearch"),Xw(Qj,"findNextItem"),Xw(Jj,"wrapArray");const Yj=dd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function Xj(e){return Xj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xj(e)}var e_=["className","children"],t_=["className","children","position"],r_=["className","children"];function n_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n_(Object(r),!0).forEach(function(t){i_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xj(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Xj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a_(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s_=mj,l_=gj,c_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=a_(e,e_);return(0,o().jsxs)(yj,o_(o_({ref:t,className:hi("vt-flex vt-h-10 vt-items-center vt-justify-between vt-rounded-md vt-border vt-border-input vt-bg-background vt-px-3 vt-py-2 vt-text-sm vt-ring-offset-background placeholder:vt-text-muted-foreground focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-ring focus:vt-ring-offset-2 disabled:vt-cursor-not-allowed disabled:vt-opacity-50",r)},i),{},{children:[n,(0,o().jsx)(bj,{asChild:!0,children:(0,o().jsx)(Yj,{className:"vt-h-4 vt-w-4 vt-opacity-50"})})]}))});c_.displayName=yj.displayName;var u_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=e.position,a=void 0===i?"popper":i,s=a_(e,t_);return(0,o().jsx)(jj,{children:(0,o().jsx)(kj,o_(o_({ref:t,className:hi("vt-ui vt-relative vt-z-[100000] vt-min-w-[8rem] vt-overflow-hidden vt-rounded-md vt-border vt-bg-popover vt-text-popover-foreground vt-shadow-md data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out data-[state=closed]:vt-fade-out-0 data-[state=open]:vt-fade-in-0 data-[state=closed]:vt-zoom-out-95 data-[state=open]:vt-zoom-in-95 data-[side=bottom]:vt-slide-in-from-top-2 data-[side=left]:vt-slide-in-from-right-2 data-[side=right]:vt-slide-in-from-left-2 data-[side=top]:vt-slide-in-from-bottom-2","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:a},s),{},{children:(0,o().jsx)(Ij,{className:hi("vt-p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n})}))})});u_.displayName=kj.displayName;var d_=a().forwardRef(function(e,t){var r=e.className,n=e.children,i=a_(e,r_);return(0,o().jsxs)(Uj,o_(o_({ref:t,className:hi("vt-relative vt-flex vt-w-full vt-cursor-default vt-select-none vt-items-center vt-rounded-sm vt-py-1.5 vt-pl-8 vt-pr-2 vt-text-sm vt-outline-none focus:vt-bg-accent focus:vt-text-accent-foreground data-[disabled]:vt-pointer-events-none data-[disabled]:vt-opacity-50",r)},i),{},{children:[(0,o().jsx)("span",{className:"vt-absolute vt-left-2 vt-flex h-3.5 w-3.5 vt-items-center vt-justify-center",children:(0,o().jsx)(Bj,{children:(0,o().jsx)(Mv,{className:"vt-h-4 vt-w-4"})})}),(0,o().jsx)(Wj,{children:n})]}))});function f_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}d_.displayName=Uj.displayName;var v_=function(e){return new Date(e)<new Date},h_=function(e){var t=new Date(e);return t<new Date?(0,mi.__)("Expired","versatile-toolkit"):t.toLocaleString()},m_=function(e){var t=new Date,r={"1_hour":36e5,"3_hours":108e5,"6_hours":216e5,"12_hours":432e5,"1_day":864e5,"3_days":2592e5,"1_week":6048e5,"2_weeks":12096e5,"1_month":2592e6,"3_months":7776e6,"6_months":15552e6,"1_year":31536e6}[e]||0;return new Date(t.getTime()+r).toString()},y_=function(e){var t=new Date(e),r=new Date,n=t.getTime()-r.getTime();if(n<=0)return(0,mi.__)("Expired","versatile-toolkit");var o=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5),a=Math.floor(n%36e5/6e4);return o>0?"".concat(o,"d ").concat(i,"h ").concat(a,"m remaining"):i>0?"".concat(i,"h ").concat(a,"m remaining"):"".concat(a,"m remaining")};function g_(e){return g_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g_(e)}function b_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b_(Object(r),!0).forEach(function(t){w_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=g_(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=g_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return __(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(__(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,__(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,__(d,"constructor",c),__(c,"constructor",l),l.displayName="GeneratorFunction",__(c,o,"GeneratorFunction"),__(d),__(d,o,"Generator"),__(d,n,function(){return this}),__(d,"toString",function(){return"[object Generator]"}),(j_=function(){return{w:i,m:f}})()}function __(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}__=function(e,t,r,n){function i(t,r){__(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},__(e,t,r,n)}function k_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function S_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){k_(i,n,o,a,s,"next",e)}function s(e){k_(i,n,o,a,s,"throw",e)}a(void 0)})}}var O_,N_,P_,C_,E_,R_,A_,T_=[{value:"1_hour",label:(0,mi.__)("1 Hour","versatile-toolkit")},{value:"3_hours",label:(0,mi.__)("3 Hours","versatile-toolkit")},{value:"6_hours",label:(0,mi.__)("6 Hours","versatile-toolkit")},{value:"12_hours",label:(0,mi.__)("12 Hours","versatile-toolkit")},{value:"1_day",label:(0,mi.__)("1 Day","versatile-toolkit")},{value:"3_days",label:(0,mi.__)("3 Days","versatile-toolkit")},{value:"1_week",label:(0,mi.__)("1 Week","versatile-toolkit")},{value:"2_weeks",label:(0,mi.__)("2 Weeks","versatile-toolkit")},{value:"1_month",label:(0,mi.__)("1 Month","versatile-toolkit")},{value:"3_months",label:(0,mi.__)("3 Months","versatile-toolkit")},{value:"6_months",label:(0,mi.__)("6 Months","versatile-toolkit")},{value:"1_year",label:(0,mi.__)("1 Year","versatile-toolkit")}],D_={getAvailableRoles:(A_=S_(j_().m(function e(){var t,r;return j_().w(function(e){for(;;)switch(e.n){case 0:return t={action:"versatile_get_available_roles"},e.n=1,ka(Hi.ajax_url,{body:t});case 1:if(200===(r=e.v).status_code){e.n=2;break}throw new Error(r.message||(0,mi.__)("Failed to get available roles","versatile-toolkit"));case 2:return e.a(2,r.data)}},e)})),function(){return A_.apply(this,arguments)}),createTempLogin:(R_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_(x_({action:"versatile_create_temp_login"},t),{},{expires_at:h_(m_(t.expires_at))}),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to create temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return R_.apply(this,arguments)}),getTempLoginList:(E_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_get_temp_login_list"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to get temporary login list","versatile-toolkit"));case 2:return e.a(2,n.data)}},e)})),function(e){return E_.apply(this,arguments)}),toggleTempLoginStatus:(C_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_toggle_temp_login_status"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to toggle temporary login status","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return C_.apply(this,arguments)}),deleteTempLogin:(P_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_delete_temp_login"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to delete temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return P_.apply(this,arguments)}),updateTempLogin:(N_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_({action:"versatile_update_temp_login"},t),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to update temporary login","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return N_.apply(this,arguments)}),extendTempLoginTime:(O_=S_(j_().m(function e(t){var r,n;return j_().w(function(e){for(;;)switch(e.n){case 0:return r=x_(x_({action:"versatile_extend_temp_login_time"},t),{},{extend_by:h_(m_(t.extend_by))}),e.n=1,ka(Hi.ajax_url,{body:r});case 1:if(200===(n=e.v).status_code){e.n=2;break}throw new Error(n.message||(0,mi.__)("Failed to extend temporary login time","versatile-toolkit"));case 2:return e.a(2,n)}},e)})),function(e){return O_.apply(this,arguments)})},F_=function(){return ra({queryKey:["available-roles"],queryFn:D_.getAvailableRoles,refetchOnWindowFocus:!1})};const I_=dd("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),M_=dd("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),L_=dd("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),V_=dd("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),$_=dd("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),z_=dd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function U_(e){return U_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U_(e)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(t){B_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function B_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=U_(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=U_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return G_(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(G_(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,G_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,G_(d,"constructor",c),G_(c,"constructor",l),l.displayName="GeneratorFunction",G_(c,o,"GeneratorFunction"),G_(d),G_(d,o,"Generator"),G_(d,n,function(){return this}),G_(d,"toString",function(){return"[object Generator]"}),(H_=function(){return{w:i,m:f}})()}function G_(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G_=function(e,t,r,n){function i(t,r){G_(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},G_(e,t,r,n)}function Z_(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function K_(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Z_(i,n,o,a,s,"next",e)}function s(e){Z_(i,n,o,a,s,"throw",e)}a(void 0)})}}function Q_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Y_=[{key:"name",label:"Name"},{key:"email",label:"Email"},{key:"role",label:"Role"},{key:"status",label:"Status"},{key:"expires_at",label:"Expires At"},{key:"login_count",label:"Login Count"},{key:"last_login",label:"Last Login"},{key:"actions",label:"Actions"}];const X_=function(){var e,t,r=Q_((0,a().useState)({page:1,per_page:10,order:"desc",orderby:"created_at",role:"",status:"all"}),2),n=r[0],i=r[1],s=Q_((0,a().useState)(""),2),l=s[0],c=s[1],u=function(e,t){var r=f_((0,a().useState)(e),2),n=r[0],o=r[1];return(0,a().useEffect)(function(){var r=setTimeout(function(){o(e)},t);return function(){clearTimeout(r)}},[e,t]),n}(l,500),d=Q_((0,a().useState)(null),2),f=d[0],p=d[1],v=Q_((0,a().useState)(null),2),h=v[0],m=v[1],y=Q_((0,a().useState)({}),2),g=y[0],b=y[1],x=Q_((0,a().useState)(null),2),w=x[0],j=x[1],_=Q_((0,a().useState)(null),2),k=_[0],S=_[1],O=Q_((0,a().useState)("1_hour"),2),N=O[0],P=O[1],C=ra({queryKey:["get-temp-logins",t=n],queryFn:function(){return D_.getTempLoginList(t)},refetchOnWindowFocus:!1}),E=C.data,R=C.isLoading,A=function(){var e=K_(H_().m(function e(t){return H_().w(function(e){for(;;)switch(e.n){case 0:return p(t.id),e.n=1,ha(t.login_url);case 1:setTimeout(function(){p(null)},2e3);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),T=function(e){return e.is_active?v_(e.expires_at)?(0,o().jsx)(xs,{variant:"destructive",children:(0,mi.__)("Expired","versatile-toolkit")}):(0,o().jsx)(xs,{variant:"default",children:(0,mi.__)("Active","versatile-toolkit")}):(0,o().jsx)(xs,{variant:"outline",children:(0,mi.__)("Inactive","versatile-toolkit")})},D=function(){var e=Fn();return oa({mutationFn:function(e){return D_.toggleTempLoginStatus(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login status updated successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while updating temporary login status","versatile-toolkit"))}})}(),F=D.mutateAsync,I=function(){var e=K_(H_().m(function e(t,r){return H_().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,F({id:t,is_active:!r});case 1:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),M=function(){var e=Fn();return oa({mutationFn:function(e){return D_.deleteTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login deleted successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while deleting temporary login","versatile-toolkit"))}})}(),L=M.mutateAsync,V=function(){var e=K_(H_().m(function e(){return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(w){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,L({id:w.id});case 2:j(null),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),$=function(){j(null)},z=function(){var e=Fn();return oa({mutationFn:function(e){return D_.updateTempLogin(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login updated successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while updating temporary login","versatile-toolkit"))}})}(),U=z.mutateAsync,q=z.isPending,W=function(){var e=K_(H_().m(function e(){var t,r;return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(h){e.n=1;break}return e.a(2);case 1:if(null!==(t=g.display_name)&&void 0!==t&&t.trim()){e.n=2;break}return Lr.error((0,mi.__)("Display name is required","versatile-toolkit")),e.a(2);case 2:if(null!==(r=g.email)&&void 0!==r&&r.trim()){e.n=3;break}return Lr.error((0,mi.__)("Email is required","versatile-toolkit")),e.a(2);case 3:return e.p=3,e.n=4,U(W_({id:h.id},g));case 4:m(null),b({}),e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),B=function(){m(null),b({})},H=function(){var e=Fn();return oa({mutationFn:function(e){return D_.extendTempLoginTime(e)},onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login time extended successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while extending temporary login time","versatile-toolkit"))}})}(),G=H.mutateAsync,Z=H.isPending,K=function(){var e=K_(H_().m(function e(){return H_().w(function(e){for(;;)switch(e.p=e.n){case 0:if(k){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,G({id:k.id,extend_by:N});case 2:S(null),P("1_hour"),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),Q=function(){S(null),P("1_hour")},J=F_().data;(0,a().useEffect)(function(){i(function(e){return W_(W_({},e),{},{search:u,page:1})})},[u]);var Y=function(e,t){i(function(r){return W_(W_({},r),{},B_({},e,t))})},X=function(e){i(function(t){return W_(W_({},t),{},{page:e})})};return(0,o().jsxs)(o().Fragment,{children:[(0,o().jsxs)(Li,{children:[(0,o().jsx)(Vi,{children:(0,o().jsxs)("div",{className:"vt-flex vt-flex-row vt-items-center vt-gap-4 vt-justify-end",children:[(0,o().jsxs)("div",{className:"vt-w-[300px] vt-relative",children:[(0,o().jsx)(fd,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(Kv,{placeholder:(0,mi.__)("Search by name or email...","versatile-toolkit"),value:l,onChange:function(e){return t=e.target.value,void c(t);var t},className:"vt-pl-10 vt-w-full"})]}),(0,o().jsxs)(s_,{value:n.role||"all_roles",onValueChange:function(e){return Y("role","all_roles"===e?"":e)},children:[(0,o().jsx)(c_,{className:"vt-w-48",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("All Roles","versatile-toolkit")})}),(0,o().jsxs)(u_,{children:[(0,o().jsx)(d_,{value:"all_roles",children:(0,mi.__)("All Roles","versatile-toolkit")}),Object.entries(null!=J?J:{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})]})]}),(0,o().jsxs)(s_,{value:n.status,onValueChange:function(e){return Y("status",e)},children:[(0,o().jsx)(c_,{className:"vt-w-48",children:(0,o().jsx)(l_,{})}),(0,o().jsxs)(u_,{children:[(0,o().jsx)(d_,{value:"all",children:(0,mi.__)("All Status","versatile-toolkit")}),(0,o().jsx)(d_,{value:"active",children:(0,mi.__)("Active","versatile-toolkit")}),(0,o().jsx)(d_,{value:"inactive",children:(0,mi.__)("Inactive","versatile-toolkit")}),(0,o().jsx)(d_,{value:"expired",children:(0,mi.__)("Expired","versatile-toolkit")})]})]})]})}),(0,o().jsx)(zi,{children:(0,o().jsxs)(kw,{children:[(0,o().jsx)(Sw,{children:(0,o().jsx)(Nw,{children:Y_.map(function(e){return(0,o().jsx)(Pw,{children:e.label},e.key)})})}),(0,o().jsx)(Ow,{children:R?(0,o().jsx)(Oi,{columns:Y_.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:5}):E&&(null==E||null===(e=E.temp_logins)||void 0===e?void 0:e.length)>0?E.temp_logins.map(function(e){return(0,o().jsxs)(Nw,{children:[(0,o().jsx)(Cw,{children:e.display_name}),(0,o().jsx)(Cw,{children:e.email}),(0,o().jsx)(Cw,{children:(0,o().jsx)(xs,{children:e.role})}),(0,o().jsx)(Cw,{children:T(e)}),(0,o().jsx)(Cw,{children:(0,o().jsx)("span",{className:"".concat(v_(e.expires_at)?"text-red-500 font-semibold":""),children:y_(e.expires_at)})}),(0,o().jsx)(Cw,{children:e.login_count}),(0,o().jsx)(Cw,{children:e.last_login?(t=e.last_login,r=new Date,n=new Date(t),i=r.getTime()-n.getTime(),a=Math.floor(i/864e5),s=Math.floor(i%864e5/36e5),l=Math.floor(i%36e5/6e4),a>0?"".concat(a,"d ").concat(s,"h ").concat(l,"m ago"):s>0?"".concat(s,"h ").concat(l,"m ago"):"".concat(l,"m ago")):"-"}),(0,o().jsx)(Cw,{children:(0,o().jsxs)(Nv,{children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{size:"sm",variant:"ghost",className:"vt-h-8 vt-w-8 vt-p-0",children:[(0,o().jsx)(I_,{className:"vt-h-4 vt-w-4"}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,mi.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsxs)(Cv,{className:"vt-w-max vt-p-1 vt-flex vt-flex-col vt-align-center vt-justify-start",align:"end",children:[(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return A(e)},children:[f===e.id?(0,o().jsx)(Mv,{className:"vt-mr-2 vt-h-4 vt-w-4 vt-text-green-600"}):(0,o().jsx)(M_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Copy Login URL","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){m(e),b({display_name:e.display_name,email:e.email,role:e.role,redirect_url:e.redirect_url,expires_at:e.expires_at})}(e)},children:[(0,o().jsx)(L_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Edit","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return function(e){S(e),P("1_hour")}(e)},children:[(0,o().jsx)(V_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Extend Time","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start",onClick:function(){return I(e.id,e.is_active)},children:[e.is_active?(0,o().jsx)($_,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,o().jsx)(_b,{className:"vt-mr-2 vt-h-4 vt-w-4"}),e.is_active?(0,mi.__)("Deactivate","versatile-toolkit"):(0,mi.__)("Activate","versatile-toolkit")]}),(0,o().jsxs)(vs,{variant:"ghost",size:"sm",className:"!vt-justify-start vt-text-red-600 hover:vt-text-red-700 hover:vt-bg-red-50",onClick:function(){return function(e){j(e)}(e)},children:[(0,o().jsx)(z_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),(0,mi.__)("Delete","versatile-toolkit")]})]})]})})]},e.id);var t,r,n,i,a,s,l}):(0,o().jsx)(Ew,{title:"No temporary logins found",description:"Try adjusting your search or filters"})})]})}),E&&E.total_pages>1&&(0,o().jsx)(zi,{className:"vt-pt-0",children:(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-space-x-2",children:[(0,o().jsx)(vs,{variant:"outline",disabled:1===E.page,onClick:function(){return X(E.page-1)},children:(0,mi.__)("Previous","versatile-toolkit")}),(0,o().jsxs)("span",{className:"vt-flex vt-items-center vt-px-4",children:[(0,mi.__)("Page","versatile-toolkit")," ",E.page," ",(0,mi.__)("of","versatile-toolkit")," ",E.total_pages]}),(0,o().jsx)(vs,{variant:"outline",disabled:E.page===E.total_pages,onClick:function(){return X(E.page+1)},children:(0,mi.__)("Next","versatile-toolkit")})]})})]}),(0,o().jsx)(Od,{open:!!h,onOpenChange:function(e){return!e&&B()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsxs)(Ad,{children:[(0,o().jsx)(Dd,{children:(0,mi.__)("Edit Temporary Login","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Note: Expiration date cannot be modified after creation.","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-display-name",children:(0,mi.__)("Display Name","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-display-name",value:g.display_name||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{display_name:e.target.value})})},placeholder:(0,mi.__)("Enter display name","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-email",children:(0,mi.__)("Email","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-email",type:"email",value:g.email||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{email:e.target.value})})},placeholder:(0,mi.__)("Enter email address","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-role",children:(0,mi.__)("Role","versatile-toolkit")}),(0,o().jsxs)(s_,{value:g.role||"",onValueChange:function(e){return b(function(t){return W_(W_({},t),{},{role:e})})},children:[(0,o().jsx)(c_,{children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select role","versatile-toolkit")})}),(0,o().jsx)(u_,{children:Object.entries(null!=J?J:{}).map(function(e){var t=Q_(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})})]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3",children:[(0,o().jsx)(Kb,{htmlFor:"edit-redirect-url",children:(0,mi.__)("Redirect URL","versatile-toolkit")}),(0,o().jsx)(Kv,{id:"edit-redirect-url",type:"url",value:g.redirect_url||"",onChange:function(e){return b(function(t){return W_(W_({},t),{},{redirect_url:e.target.value})})},placeholder:(0,mi.__)("Enter redirect URL","versatile-toolkit")})]})]}),(0,o().jsxs)(Td,{children:[(0,o().jsx)(vs,{variant:"outline",onClick:B,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:W,disabled:q,children:q?(0,mi.__)("Updating...","versatile-toolkit"):(0,mi.__)("Update","versatile-toolkit")})]})]})}),(0,o().jsx)(Od,{open:!!w,onOpenChange:function(e){return!e&&$()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsx)(Ad,{children:(0,o().jsx)(Dd,{className:"vt-text-red-600",children:(0,mi.__)("Delete Temporary Login","versatile-toolkit")})}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Are you sure you want to delete this temporary login? This action cannot be undone.","versatile-toolkit")}),w&&(0,o().jsxs)("div",{className:"vt-bg-gray-50 vt-p-3 vt-rounded-md",children:[(0,o().jsx)("p",{className:"vt-font-medium",children:w.display_name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:w.email}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:w.role})]})]}),(0,o().jsxs)(Td,{children:[(0,o().jsx)(vs,{variant:"outline",onClick:$,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{variant:"destructive",onClick:V,children:(0,mi.__)("Delete","versatile-toolkit")})]})]})}),(0,o().jsx)(Od,{open:!!k,onOpenChange:function(e){return!e&&Q()},children:(0,o().jsxs)(Rd,{className:"vt-max-w-md",children:[(0,o().jsxs)(Ad,{children:[(0,o().jsx)(Dd,{children:(0,mi.__)("Extend Expiration Time","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-muted-foreground",children:(0,mi.__)("Select how much time to add to the current expiration date.","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-space-y-4",children:[k&&(0,o().jsxs)("div",{className:"vt-bg-gray-100 vt-p-3 vt-rounded-md",children:[(0,o().jsx)("p",{className:"vt-font-medium",children:k.display_name}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-gray-600",children:k.email}),(0,o().jsxs)("p",{className:"vt-text-sm vt-text-gray-600",children:[(0,mi.__)("Current expiration:","versatile-toolkit")," ",new Date(k.expires_at).toLocaleString()]})]}),(0,o().jsxs)("div",{children:[(0,o().jsx)(Kb,{htmlFor:"extend-time-select",className:"vt-block vt-mb-4",children:(0,mi.__)("Extend by","versatile-toolkit")}),(0,o().jsxs)(s_,{value:N,onValueChange:P,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select expires at","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll",children:T_.map(function(e){return(0,o().jsx)(d_,{value:e.value,children:e.label},e.value)})})]})]})]}),(0,o().jsxs)(Td,{className:"vt-mt-4",children:[(0,o().jsx)(vs,{variant:"outline",onClick:Q,children:(0,mi.__)("Cancel","versatile-toolkit")}),(0,o().jsx)(vs,{onClick:K,disabled:Z,children:Z?(0,mi.__)("Extending...","versatile-toolkit"):(0,mi.__)("Extend Time","versatile-toolkit")})]})]})})]})},ek=dd("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function tk(e){return tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tk(e)}function rk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rk(Object(r),!0).forEach(function(t){ok(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ok(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=tk(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ak(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ak(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ak(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ak(d,"constructor",c),ak(c,"constructor",l),l.displayName="GeneratorFunction",ak(c,o,"GeneratorFunction"),ak(d),ak(d,o,"Generator"),ak(d,n,function(){return this}),ak(d,"toString",function(){return"[object Generator]"}),(ik=function(){return{w:i,m:f}})()}function ak(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ak=function(e,t,r,n){function i(t,r){ak(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ak(e,t,r,n)}function sk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function lk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ck(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ck(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ck(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(0,mi.__)("Administrator","versatile-toolkit"),(0,mi.__)("Editor","versatile-toolkit"),(0,mi.__)("Author","versatile-toolkit"),(0,mi.__)("Contributor","versatile-toolkit"),(0,mi.__)("Subscriber","versatile-toolkit");const uk=function(){var e=lk((0,a().useState)(!1),2),t=e[0],r=e[1],n=Ug({resolver:Kg(Im),defaultValues:{display_name:"",email:"",role:"",expires_at:"3_hours",redirect_url:Hi.admin_url}}),i=n.handleSubmit,s=(n.formState.errors,F_()),l=s.data,c=s.isLoading,u=function(){var e=Fn();return oa({mutationFn:D_.createTempLogin,onSuccess:function(t){e.invalidateQueries({queryKey:["get-temp-logins"]}),Lr.success(t.message||(0,mi.__)("Temporary login created successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Error: while creating temporary login","versatile-toolkit"))}})}(),d=u.mutateAsync,f=function(){var e,t=(e=ik().m(function e(t){return ik().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,d(t,{onSuccess:function(){r(!1)}});case 1:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){sk(i,n,o,a,s,"next",e)}function s(e){sk(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,o().jsx)(o().Fragment,{children:(0,o().jsxs)(Od,{open:t,onOpenChange:r,children:[(0,o().jsx)(Nd,{asChild:!0,children:(0,o().jsxs)(vs,{children:[(0,o().jsx)(ek,{className:"vt-w-4 vt-h-4 vt-mr-2"}),(0,mi.__)("Create Temp Login","versatile-toolkit")]})}),(0,o().jsxs)(Rd,{className:"vt-max-w-lg",children:[(0,o().jsx)(Ad,{children:(0,o().jsx)(Dd,{children:(0,mi.__)("Create Temporary Login","versatile-toolkit")})}),(0,o().jsx)(sx,nk(nk({},n),{},{children:(0,o().jsxs)("form",{onSubmit:i(f,function(e){}),className:"vt-flex vt-flex-col vt-gap-5",children:[(0,o().jsx)(cx,{control:n.control,name:"display_name",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Display Name","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Display Name","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"email",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Email","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Email","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"role",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Role","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsxs)(s_,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select role","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll-auto",children:c?(0,o().jsx)(ji,{size:"md",className:"vt-ml-2",text:(0,mi.__)("Loading roles","versatile-toolkit")}):Object.entries(null!=l?l:{}).map(function(e){var t=lk(e,2),r=t[0],n=t[1];return(0,o().jsx)(d_,{value:r,children:String(n)},r)})})]})}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"expires_at",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Expires At","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsxs)(s_,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,o().jsx)(c_,{className:"vt-w-full",children:(0,o().jsx)(l_,{placeholder:(0,mi.__)("Select expires at","versatile-toolkit")})}),(0,o().jsx)(u_,{className:"vt-w-full vt-max-h-60 vt-scroll",children:T_.map(function(e){return(0,o().jsx)(d_,{value:e.value,children:e.label},e.value)})})]})}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)(cx,{control:n.control,name:"redirect_url",render:function(e){var t=e.field;return(0,o().jsxs)(fx,{children:[(0,o().jsx)(px,{className:"vt-text-foreground",children:(0,mi.__)("Redirect URL","versatile-toolkit")}),(0,o().jsx)(vx,{children:(0,o().jsx)(Kv,nk({placeholder:(0,mi.__)("Redirect URL","versatile-toolkit")},t))}),(0,o().jsx)(mx,{})]})}}),(0,o().jsx)("div",{className:"vt-flex vt-justify-end",children:(0,o().jsx)(vs,{type:"submit",children:(0,mi.__)("Create Temporary Login","versatile-toolkit")})})]})}))]})]})})};const dk=function(){return(0,o().jsxs)("div",{className:"vt-py-6 vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("h2",{className:"vt-text-2xl vt-font-bold",children:(0,mi.__)("Temporary Logins","versatile-toolkit")}),(0,o().jsx)("p",{className:"vt-text-gray-600 vt-mt-2",children:(0,mi.__)("Create and manage temporary login access for users","versatile-toolkit")})]}),(0,o().jsx)("div",{children:(0,o().jsx)(uk,{})})]}),(0,o().jsx)(X_,{})]})};function fk(e){return fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fk(e)}var pk=["className"],vk=["side","className","children"],hk=["className"],mk=["className"],yk=["className"];function gk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gk(Object(r),!0).forEach(function(t){xk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=fk(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=fk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var jk=uu,_k=du,kk=hu,Sk=a().forwardRef(function(e,t){var r=e.className,n=wk(e,pk);return(0,o().jsx)(yu,bk(bk({className:hi("vt-ui vt-fixed vt-inset-0 vt-z-[99999] vt-bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r)},n),{},{ref:t}))});Sk.displayName=yu.displayName;var Ok=ls("vt-fixed vt-z-50 vt-gap-4 vt-bg-background vt-p-6 vt-shadow-lg vt-transition vt-ease-in-out data-[state=closed]:vt-duration-300 data-[state=open]:vt-duration-500 data-[state=open]:vt-animate-in data-[state=closed]:vt-animate-out",{variants:{side:{top:"vt-inset-x-0 vt-top-0 vt-border-b data-[state=closed]:vt-slide-out-to-top data-[state=open]:vt-slide-in-from-top",bottom:"vt-inset-x-0 vt-bottom-0 vt-border-t data-[state=closed]:vt-slide-out-to-bottom data-[state=open]:vt-slide-in-from-bottom",left:"vt-inset-y-0 vt-left-0 vt-h-full vt-w-3/4 vt-border-r data-[state=closed]:vt-slide-out-to-left data-[state=open]:vt-slide-in-from-left sm:max-w-sm",right:"vt-inset-y-0 vt-right-0 vt-h-full vt-w-3/4 vt-border-l data-[state=closed]:vt-slide-out-to-right data-[state=open]:vt-slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Nk=a().forwardRef(function(e,t){var r=e.side,n=void 0===r?"right":r,i=e.className,a=e.children,s=wk(e,vk);return(0,o().jsxs)(kk,{children:[(0,o().jsx)(Sk,{}),(0,o().jsxs)(wu,bk(bk({ref:t,className:hi(Ok({side:n}),"vt-ui vt-z-[99999] sm:vt-max-w-[540px]",i)},s),{},{children:[(0,o().jsxs)(Nu,{className:Sd,children:[(0,o().jsx)(pd,{size:16}),(0,o().jsx)("span",{className:"vt-sr-only",children:"Close"})]}),a]}))]})});Nk.displayName=wu.displayName;var Pk=function(e){var t=e.className,r=wk(e,hk);return(0,o().jsx)("div",bk({className:hi("vt-flex vt-flex-col vt-space-y-2 vt-text-center sm:vt-text-left",t)},r))};Pk.displayName="SheetHeader";var Ck=a().forwardRef(function(e,t){var r=e.className,n=wk(e,mk);return(0,o().jsx)(Su,bk({ref:t,className:hi("vt-text-lg vt-font-semibold vt-text-foreground",r)},n))});Ck.displayName=Su.displayName,a().forwardRef(function(e,t){var r=e.className,n=wk(e,yk);return(0,o().jsx)(Ou,bk({ref:t,className:hi("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName=Ou.displayName;const Ek=dd("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]);function Rk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ak(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ak(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Tk=function(){var e,t,r=Rk((0,a().useState)(!1),2),n=r[0],i=r[1],s=Fn(),l=Se(),c=ra({queryKey:["getServiceList"],queryFn:(e=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_get_service_list",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),staleTime:5e3}),u=c.data,d=c.isLoading,f=null==u?void 0:u.data,p=function(){if(!f||"/"===l.pathname)return null;var e=l.pathname.split("/").filter(Boolean)[0],t=Object.entries(f).find(function(t){var r=Rk(t,2);r[0];return r[1].path===e});return t?t[1]:null}(),v=oa({mutationFn:(t=Ra(Pa().m(function e(t){var r;return Pa().w(function(e){for(;;)switch(e.n){case 0:return t.action="versatile_update_service_status",e.n=1,ka(Hi.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)})),function(e){return t.apply(this,arguments)}),onSuccess:function(e){var t;Lr.success(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Service status updated!","versatile-toolkit"))},onError:function(e){var t;Lr.error(null!==(t=e.message)&&void 0!==t?t:(0,mi.__)("Failed to update service status","versatile-toolkit"))}});kb({isOpen:n,onClose:function(){i(!n)}}).handleBackdropClick;return(0,o().jsx)(o().Fragment,{children:(0,o().jsxs)("header",{className:"vt-bg-white vt-border-b vt-border-gray-200 vt-py-4 vt-flex vt-items-center vt-justify-between vt-relative",children:[(0,o().jsx)(Tt,{to:"/",className:"vt-flex vt-items-center vt-text-blue-600 vt-text-lg vt-font-semibold",children:(0,mi.__)("Versatile Toolkit","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-3",children:[p&&(0,o().jsx)(o().Fragment,{children:Object.keys((null==p?void 0:p.menus)||{}).map(function(e){var t,r,n="/".concat(null==p?void 0:p.path,"/").concat(null==p||null===(t=p.menus)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.slug);return n.endsWith("/")&&(n=n.slice(0,-1)),(0,o().jsx)(Tt,{to:n,onClick:function(){},className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-transition-colors vt-duration-200 ".concat(l.pathname===n?"vt-bg-blue-600 vt-text-white vt-border vt-border-blue-700 hover:vt-text-white focus:!vt-text-white":"vt-bg-blue-50 vt-border vt-border-blue-200"),children:null==p||null===(r=p.menus)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.label},e)})}),!d&&(null==f?void 0:f.troubleshoot.enable)&&!p&&(0,o().jsxs)(o().Fragment,{children:[(0,o().jsx)(Tt,{to:"/troubleshoot",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,mi.__)("Deactivate Plugins","versatile-toolkit")}),(0,o().jsx)(Tt,{to:"/troubleshoot/debug-log",className:"vt-text-sm vt-font-medium vt-rounded-md vt-px-3 vt-py-1 vt-text-blue-700 vt-bg-blue-50 vt-border vt-border-blue-200",children:(0,mi.__)("Debug Log","versatile-toolkit")})]}),(0,o().jsxs)(jk,{children:[(0,o().jsx)(_k,{asChild:!0,children:(0,o().jsx)("button",{className:"vt-p-1 vt-rounded-md vt-bg-blue-100 hover:vt-bg-blue-200 vt-transition-colors vt-duration-200","aria-label":(0,mi.__)("Toggle menu","versatile-toolkit"),children:(0,o().jsx)(Ek,{className:"vt-w-5 vt-h-5 vt-text-gray-600"})})}),(0,o().jsxs)(Nk,{children:[(0,o().jsx)(Pk,{children:(0,o().jsx)(Ck,{children:(0,mi.__)("Services","versatile-toolkit")})}),(0,o().jsx)("div",{className:"vt-space-y-3 vt-mt-6",children:Object.entries(f||{}).map(function(e){var t=Rk(e,2),r=t[0],n=t[1];return(0,o().jsxs)("div",{onClick:function(){return function(e,t){v.mutate({service_key:e,enable:!t.enable},{onSuccess:function(){"quickact"!==e?(s.invalidateQueries({queryKey:["getServiceList"]}),s.invalidateQueries({queryKey:["getEnableServiceList"]})):window.location.reload()}})}(r,n)},className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-rounded-md vt-border vt-border-gray-200 vt-bg-gray-50 hover:vt-bg-blue-100 hover:vt-border-blue-300 hover:vt-shadow-md vt-transition-all vt-duration-300 vt-cursor-pointer",children:[(0,o().jsx)("span",{className:"vt-text-blue-500 vt-font-medium hover:vt-text-blue-800 vt-transition-colors vt-duration-300",children:n.label}),(0,o().jsxs)("div",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:n.enable,onChange:function(){},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-relative vt-w-11 vt-h-6 vt-bg-[#c7c6c6] peer-focus:vt-outline-none peer-focus:vt-ring-4 peer-focus:vt-ring-blue-300 vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-gray-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]},n.label)})})]})]})]})]})})};var Dk=function(e){var t=e.children,r=Ta(),n=r.data,i=(r.isLoading,null==n?void 0:n.data),a=Se().pathname.split("/").filter(Boolean)[0];if(!i)return(0,o().jsx)(o().Fragment,{children:t});var s=Object.values(i).find(function(e){return e.path===a});return s&&s.enable?(0,o().jsx)(o().Fragment,{children:t}):(0,o().jsx)(Ze,{to:"/",replace:!0})};const Fk=dd("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),Ik=dd("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),Mk=dd("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Lk=dd("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function Vk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $k(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var zk=function(e,t,r,n,o){return{pathname:"/troubleshoot/debug-log",search:"?".concat(Uk(e,t,r,n,o))}},Uk=function(e,t,r,n,o){var i=new URLSearchParams;return i.append("paged",e.toString()),i.append("per_page",null==t?void 0:t.toString()),r&&i.append("search",r),n&&i.append("sort_key",n),o&&i.append("sort_dir",o),i.toString()};function qk(e){var t=e.order;return(0,o().jsxs)("span",{"aria-hidden":!0,className:"vt-inline-flex vt-flex-col vt-leading-none vt-ml-1",children:[""===t&&(0,o().jsx)(Fk,{className:"vt-h-3 vt-w-3"}),"asc"===t&&(0,o().jsx)(Fk,{className:"vt-h-3 vt-w-3"}),"desc"===t&&(0,o().jsx)(Ik,{className:"vt-h-3 vt-w-3"})]})}var Wk=function(e){return{page:parseInt(e.get("paged")||"1"),perPage:parseInt(e.get("per_page")||"10"),search:e.get("search")||"",sortKey:e.get("sort_key")||"",order:e.get("order")||""}};function Bk(e){var t=e.columns,r=e.fetchData,n=e.searchParams,i=Pe(),s=n,l=Wk(s),c=Vk((0,a().useState)(l.search),2),u=c[0],d=c[1],f=Vk((0,a().useState)(l.page),2),p=f[0],v=f[1],h=Vk((0,a().useState)(l.perPage||10),2),m=h[0],y=h[1],g=Vk((0,a().useState)({key:l.sortKey,order:l.order}),2),b=g[0],x=g[1],w=Vk((0,a().useState)(0),2),j=w[0],_=w[1];(0,a().useEffect)(function(){var e=Wk(s);v(e.page),y(e.perPage||10),d(e.search),x({key:e.sortKey,order:e.order})},[n]);var k=Vk((0,a().useState)([]),2),S=k[0],O=k[1],N=Vk((0,a().useState)(0),2),P=N[0],C=N[1],E=Vk((0,a().useState)(!1),2),R=E[0],A=E[1];return(0,a().useEffect)(function(){A(!0),r({page:p,perPage:m,search:u,sortKey:b.key,order:b.order}).then(function(e){O(e.data),C(e.total||0),_(e.totalPages||0)}).finally(function(){return A(!1)})},[p,m,u,b]),(0,o().jsxs)("div",{className:"vt-w-full",children:[(0,o().jsxs)("div",{className:"vt-mb-3 vt-flex vt-flex-col vt-gap-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,o().jsx)("div",{className:"vt-relative vt-max-w-md"}),(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-gap-2"})]}),(0,o().jsxs)("div",{className:"vt-overflow-hidden vt-rounded-2xl vt-border vt-border-slate-200 vt-bg-white vt-shadow-sm",children:[(0,o().jsx)("div",{className:"vt-overflow-x-auto",children:(0,o().jsxs)("table",{className:"vt-min-w-full vt-text-left vt-text-sm",children:[(0,o().jsx)("thead",{className:"vt-sticky vt-top-0 vt-bg-slate-50",children:(0,o().jsx)("tr",{className:"vt-text-slate-600",children:t.map(function(e){var t=b.key===e.key,r=t?"asc"===b.order?"ascending":"descending":"none",n="vt-px-4 vt-py-3 vt-font-semibold";return e.sortable?(0,o().jsx)("th",{scope:"col","aria-sort":r,className:n,children:(0,o().jsxs)("button",{className:"group vt-inline-flex vt-items-center vt-rounded-lg vt-px-1 vt-py-0.5 hover:vt-bg-slate-200 focus:vt-outline-none focus:vt-ring-2 focus:vt-ring-slate-300",onClick:function(){return t=String(e.key),void x(function(e){return e.key!==t?{key:t,order:"asc"}:"asc"===e.order?{key:t,order:"desc"}:{key:t,order:"asc"}});var t},"aria-label":"Sort by ".concat(e.header),children:[(0,o().jsx)("span",{children:e.header}),(0,o().jsx)(qk,{order:t?b.order:""})]})},String(e.key)):(0,o().jsx)("th",{scope:"col",className:n,children:e.header},String(e.key))})})}),(0,o().jsx)("tbody",{children:R?(0,o().jsx)(Oi,{columns:t.map(function(e){return{key:String(e.key),label:String(e.key)}}),rows:m}):0===S.length?(0,o().jsx)(Ew,{}):S.map(function(e,r){return(0,o().jsx)("tr",{className:"vt-border-t vt-border-slate-100 hover:vt-bg-slate-50/60",children:t.map(function(t){var n;return(0,o().jsx)("td",{className:"vt-px-4 vt-py-3 vt-text-slate-700",children:t.render?t.render(e,t.key):e[t.key]===e.id?(p-1)*m+r+1:String(null!==(n=e[t.key])&&void 0!==n?n:"")},String(t.key))})},e.id)})})]})}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-col vt-gap-3 vt-border-t vt-border-slate-200 vt-p-3 sm:vt-flex-row sm:vt-items-center sm:vt-justify-between",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsxs)("div",{className:"vt-text-xs vt-text-slate-600",children:["Showing"," ",(0,o().jsx)("span",{className:"vt-font-semibold",children:S.length?(p-1)*m+1:0}),"–",(0,o().jsx)("span",{className:"vt-font-semibold",children:(p-1)*m+S.length})," of",(0,o().jsxs)("span",{className:"vt-font-semibold",children:[" ",P]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)("label",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("Per page","versatile-toolkit")}),(0,o().jsx)("select",{value:m,onChange:function(e){y(Number(e.target.value)),i(zk(p,Number(e.target.value),u,b.key,b.order))},className:"vt-rounded-xl vt-border vt-!vt-border-slate-200 vt-bg-white vt-pl-2 vt-pr-7 vt-py-1 vt-text-sm vt-shadow-sm",children:[5,10,20,50,100].map(function(e){return(0,o().jsx)("option",{value:e,children:e},e)})})]})]}),S.length>0&&(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-gap-1",children:[(0,o().jsxs)(vs,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.max(1,p-1);v(e),i(zk(e,m,u,b.key,b.order))},disabled:1===p,children:[(0,o().jsx)(Mk,{className:"vt-h-4 vt-w-4 vt-pr-1"}),"Prev"]}),(0,o().jsx)("div",{className:"vt-flex vt-items-center vt-gap-1 vt-mx-2",children:function(){var e=[],t=Math.max(1,p-Math.floor(1.5)),r=Math.min(j,t+3-1);r-t+1<3&&(t=Math.max(1,r-3+1)),t>1&&(e.push((0,o().jsx)(vs,{type:"button",size:"sm",variant:1===p?"default":"outline","aria-label":(0,mi.__)("Go to first page","versatile-toolkit"),onClick:function(){v(1),i(zk(1,m,u,b.key,b.order))},children:"1"},1)),t>2&&e.push((0,o().jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis1")));for(var n=function(t){e.push((0,o().jsx)(vs,{size:"sm",variant:t===p?"default":"outline",type:"button","aria-label":(0,mi.__)("Go to page","versatile-toolkit"),onClick:function(){v(t),i(zk(t,m,u,b.key,b.order))},children:t},t))},a=t;a<=r;a++)n(a);return r<j&&(r<j-1&&e.push((0,o().jsx)("span",{className:"vt-px-2 vt-text-slate-400",children:"..."},"ellipsis2")),e.push((0,o().jsx)(vs,{size:"sm",variant:j===p?"default":"outline",type:"button","aria-label":(0,mi.__)("Go to last page","versatile-toolkit"),onClick:function(){v(j),i(zk(j,m,u,b.key,b.order))},children:j},j))),e}()}),(0,o().jsxs)(vs,{type:"button",size:"sm",variant:"secondary",onClick:function(){var e=Math.min(j,p+1);v(e),i(zk(e,m,u,b.key,b.order))},disabled:p===j,children:[(0,mi.__)("Next","versatile-toolkit"),(0,o().jsx)(Lk,{className:"vt-h-4 vt-w-4 vt-pl-1"})]})]})]})]})]})}const Hk=function(e){var t=e.debugStatus,r=e.logFileInfo,n=e.isAutoRefresh,i=e.isLoading,a=e.statusLoading,s=e.onToggleDebugLog,l=e.onToggleAutoRefresh,c=e.onStopAutoRefresh;return(0,o().jsxs)("div",{className:"vt-space-y-6",children:[(0,o().jsxs)("div",{className:"vt-space-y-3 vt-relative",children:[a?(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300 vt-animate-pulse"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2 vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-300 vt-rounded vt-w-32 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-6 vt-bg-slate-300 vt-rounded-full vt-w-16 vt-animate-pulse"})]}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-slate-300 vt-rounded vt-w-48 vt-animate-pulse"})]})]}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 vt-rounded-full vt-animate-pulse"})]}):(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-3",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(t?"vt-bg-green-500":"vt-bg-red-500")}),(0,o().jsxs)("div",{children:[(0,o().jsxs)("div",{className:"vt-flex vt-gap-2",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,mi.__)("Debug Logging Status","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-px-3 vt-py-1 vt-rounded-full vt-text-xs vt-font-medium ".concat(t?"vt-bg-green-100 vt-text-green-800":"vt-bg-red-100 vt-text-red-800"),children:t?(0,mi.__)("Enabled","versatile-toolkit"):(0,mi.__)("Disabled","versatile-toolkit")})]}),(0,o().jsx)("p",{className:"vt-text-sm vt-text-slate-600",children:t?(0,mi.__)("Debug logging is currently enabled","versatile-toolkit"):(0,mi.__)("Debug logging is currently disabled","versatile-toolkit")})]})]}),(0,o().jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:t,onClick:function(e){return s(e.target.checked)},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]}),i?(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200 vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,o().jsx)("div",{className:"vt-w-4 vt-h-4 vt-bg-blue-300 vt-rounded vt-animate-pulse"}),(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-1",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-blue-300 vt-rounded vt-w-20 vt-animate-pulse"}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-blue-300 vt-rounded vt-w-12 vt-animate-pulse"})]})]}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-blue-300 vt-rounded-full vt-animate-pulse"})]}):(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-p-3 vt-bg-blue-50 vt-rounded-lg vt-border vt-border-blue-200",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-2",children:[(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4 vt-text-blue-600 ".concat(n?"vt-animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),(0,o().jsxs)("span",{className:"vt-text-sm vt-font-medium vt-text-blue-800",children:[(0,mi.__)("Auto Refresh","versatile-toolkit"),n&&(0,o().jsxs)("span",{className:"vt-ml-1 vt-text-xs",children:["(",(0,mi.__)("Active","versatile-toolkit"),")"]})]})]}),(0,o().jsxs)("label",{className:"vt-relative vt-inline-flex vt-items-center vt-cursor-pointer",children:[(0,o().jsx)("input",{type:"checkbox",checked:n,onChange:function(e){l(e.target.checked),e.target.checked||c()},className:"vt-sr-only vt-peer"}),(0,o().jsx)("div",{className:"vt-w-11 vt-h-6 vt-bg-slate-300 peer-focus:vt-outline-none vt-rounded-full vt-peer peer-checked:after:vt-translate-x-full peer-checked:after:vt-border-white after:vt-content-[''] after:vt-absolute after:vt-top-[2px] after:vt-left-[2px] after:vt-bg-white after:vt-border-slate-300 after:vt-border after:vt-rounded-full after:vt-h-5 after:vt-w-5 after:vt-transition-all peer-checked:vt-bg-blue-600"})]})]})]}),(0,o().jsx)("div",{className:"vt-space-y-3",children:i?(0,o().jsxs)("div",{className:"vt-p-3 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsx)("div",{className:"vt-h-9 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-mb-3"}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-20"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-16"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-12"})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-24"}),(0,o().jsx)("div",{className:"vt-h-4 vt-bg-slate-200 vt-rounded vt-animate-pulse vt-w-32"})]})]})]}):(0,o().jsxs)("div",{className:"vt-p-4 vt-bg-slate-50 vt-rounded-lg vt-border",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-mb-3",children:(0,mi.__)("Log File Information","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-space-y-2",children:[(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("File Status:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium ".concat(r.exists?"vt-text-green-600":"vt-text-red-600"),children:r.exists?(0,mi.__)("Exists","versatile-toolkit"):(0,mi.__)("Not Found","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("File Size:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.size})]}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-between vt-items-center",children:[(0,o().jsx)("span",{className:"vt-text-sm vt-text-slate-600",children:(0,mi.__)("Last Modified:","versatile-toolkit")}),(0,o().jsx)("span",{className:"vt-text-sm vt-font-medium vt-text-slate-800",children:r.lastModified})]})]})]})})]})};var Gk=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"text-red-500";case"PHP Warning":return"text-yellow-500";case"PHP Notice":return"text-blue-500";default:return"text-gray-500"}},Zk=function(e){var t=e.type,r=Gk(t),n=function(e){switch(e){case"PHP Fatal error":case"PHP Error":case"PHP Parse error":return"Error";case"PHP Warning":return"Warning";case"PHP Notice":return"Info";case"debug":return"Debug";default:return e}}(t);return(0,o().jsx)("span",{className:r,children:n})};function Kk(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Qk(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Qk(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Qk(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Qk(d,"constructor",c),Qk(c,"constructor",l),l.displayName="GeneratorFunction",Qk(c,o,"GeneratorFunction"),Qk(d),Qk(d,o,"Generator"),Qk(d,n,function(){return this}),Qk(d,"toString",function(){return"[object Generator]"}),(Kk=function(){return{w:i,m:f}})()}function Qk(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Qk=function(e,t,r,n){function i(t,r){Qk(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Qk(e,t,r,n)}function Jk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Yk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xk(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eS=function(e){var t=e.row,r=t.raw_line,n=Yk((0,a().useState)(!1),2),i=n[0],s=n[1],l=Yk((0,a().useState)(!1),2),c=l[0],u=l[1],d=function(){var e,t=(e=Kk().m(function e(t){return Kk().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,va(r);case 1:t(!0),Lr.success((0,mi.__)("Log copied to clipboard","versatile-toolkit")),window.setTimeout(function(){return t(!1)},2e3),e.n=3;break;case 2:e.p=2,e.v,Lr.error((0,mi.__)("Failed to copy log","versatile-toolkit"));case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Jk(i,n,o,a,s,"next",e)}function s(e){Jk(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-flex vt-gap-1",children:[(0,o().jsx)(vs,{size:"icon",variant:"ghost","aria-label":(0,mi.__)("Copy log","versatile-toolkit"),title:i?(0,mi.__)("Copied","versatile-toolkit"):(0,mi.__)("Copy log","versatile-toolkit"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",onClick:function(){return d(s)},children:i?(0,o().jsx)(Mv,{className:"vt-h-4 vt-w-4"}):(0,o().jsx)(M_,{className:"vt-h-4 vt-w-4"})}),(0,o().jsxs)(Od,{children:[(0,o().jsx)(Nd,{asChild:!0,children:(0,o().jsx)(vs,{size:"icon",variant:"ghost","aria-label":"View ".concat(t.type,"'s log"),className:"hover:vt-bg-blue-100 hover:vt-text-blue-900",children:(0,o().jsx)(_b,{className:"vt-h-4 vt-w-4"})})}),(0,o().jsxs)(Rd,{children:[(0,o().jsxs)(Ad,{children:[(0,o().jsxs)(Dd,{children:["Warning Type: ",(0,o().jsx)("span",{className:Gk(t.type),children:t.type})]}),(0,o().jsx)(Fd,{className:"vt-mt-2 vt-hidden",children:t.timestamp})]}),(0,o().jsx)("div",{className:"vt-max-h-[70vh] vt-overflow-auto vt-bg-[#e5e5e5] vt-p-3 vt-my-2",children:(0,o().jsx)("pre",{className:"vt-whitespace-pre-wrap vt-font-mono vt-text-base",children:r})}),(0,o().jsxs)(Td,{className:"sm:vt-justify-end",children:[(0,o().jsxs)(vs,{type:"button",variant:"outline",onClick:function(){return d(u)},children:[c?(0,o().jsx)(Mv,{className:"vt-mr-2 vt-h-4 vt-w-4"}):(0,o().jsx)(M_,{className:"vt-mr-2 vt-h-4 vt-w-4"}),c?(0,mi.__)("Copied","versatile-toolkit"):(0,mi.__)("Copy","versatile-toolkit")]}),(0,o().jsx)(Cd,{asChild:!0,children:(0,o().jsx)(vs,{type:"button",variant:"secondary",children:(0,mi.__)("Close","versatile-toolkit")})})]})]})]})]})};function tS(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return rS(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,v=i[2];r>3?(o=v===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<v&&(o=r<3||i[0]>n||n>v)&&(i[4]=r,i[5]=n,f.n=v,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,v),s=u,l=v;(t=s<2?e:l)||!d;){i||(s?(s>1&&(f.n=s<3?-1:l),p(s,l)):f.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(rS(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,rS(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,rS(d,"constructor",c),rS(c,"constructor",l),l.displayName="GeneratorFunction",rS(c,o,"GeneratorFunction"),rS(d),rS(d,o,"Generator"),rS(d,n,function(){return this}),rS(d,"toString",function(){return"[object Generator]"}),(tS=function(){return{w:i,m:f}})()}function rS(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}rS=function(e,t,r,n){function i(t,r){rS(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},rS(e,t,r,n)}function nS(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function oS(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){nS(i,n,o,a,s,"next",e)}function s(e){nS(i,n,o,a,s,"throw",e)}a(void 0)})}}var iS,aS,sS,lS,cS,uS,dS={getStatus:(uS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_get_debug_log_status",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to get debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return uS.apply(this,arguments)}),toggleDebugLog:(cS=oS(tS().m(function e(t){var r,n,o;return tS().w(function(e){for(;;)switch(e.n){case 0:return r=new URLSearchParams({action:"versatile_toggle_debug_log",versatile_nonce:Hi.nonce_value,enable:t.toString()}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r});case 1:return n=e.v,e.n=2,n.json();case 2:if(200===(o=e.v).status_code){e.n=3;break}throw new Error(o.message||"Failed to toggle debug log");case 3:return e.a(2,o.data)}},e)})),function(e){return cS.apply(this,arguments)}),clearLog:(lS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_clear_debug_log",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to clear debug log");case 3:return e.a(2)}},e)})),function(){return lS.apply(this,arguments)}),downloadLog:(sS=oS(tS().m(function e(){var t,r;return tS().w(function(e){for(;;)if(0===e.n)return t=new URLSearchParams({action:"versatile_download_debug_log",versatile_nonce:Hi.nonce_value}),r="".concat(Hi.ajax_url,"?").concat(t),window.open(r,"_blank"),e.a(2,Promise.resolve())},e)})),function(){return sS.apply(this,arguments)}),refreshStatus:(aS=oS(tS().m(function e(){var t,r,n;return tS().w(function(e){for(;;)switch(e.n){case 0:return t=new URLSearchParams({action:"versatile_refresh_debug_log",versatile_nonce:Hi.nonce_value}),e.n=1,fetch(Hi.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});case 1:return r=e.v,e.n=2,r.json();case 2:if(200===(n=e.v).status_code){e.n=3;break}throw new Error(n.message||"Failed to refresh debug log status");case 3:return e.a(2,n.data)}},e)})),function(){return aS.apply(this,arguments)}),loadLogContent:(iS=oS(tS().m(function e(t){var r,n,o,i,a,s,l,c,u,d,f,p;return tS().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.page,n=t.perPage,o=t.search,i=t.sortKey,a=t.order,s=t.source,e.p=1,c=new URLSearchParams({action:"versatile_get_debug_log_content",versatile_nonce:Hi.nonce_value,page:String(r),per_page:String(n),search:String(o||"").trim(),sortKey:String(i||"").trim(),order:String((null==a||null===(l=a.trim())||void 0===l?void 0:l.toLowerCase())||""),source:String(s||"all").trim()}),e.n=2,fetch("".concat(Hi.ajax_url,"?").concat(c));case 2:return u=e.v,e.n=3,u.json();case 3:if(200!==(d=e.v).status_code){e.n=4;break}return f=d.data,e.a(2,{data:f.entries,total:null==f?void 0:f.total_entries,totalPages:null==f?void 0:f.total_pages});case 4:throw new Error(d.message||"Error fetching debug log content");case 5:e.n=7;break;case 6:throw e.p=6,p=e.v,new Error((null==p?void 0:p.message)||"Unknown error fetching debug log content");case 7:return e.a(2)}},e,null,[[1,6]])})),function(e){return iS.apply(this,arguments)})};function fS(e){return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fS(e)}function pS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pS(Object(r),!0).forEach(function(t){hS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=fS(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=fS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mS(e){return function(e){if(Array.isArray(e))return bS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||gS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gS(e,t){if(e){if("string"==typeof e)return bS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bS(e,t):void 0}}function bS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const xS=function(){var e,t,r=yS(Mt(),1)[0],n=Pe(),i=yS((0,a().useState)(!1),2),s=i[0],l=i[1],c=yS((0,a().useState)(0),2),u=c[0],d=c[1],f=yS((0,a().useState)("all"),2),p=f[0],v=f[1],h=yS((0,a().useState)(!1),2),m=h[0],y=h[1],g=ra({queryKey:["debugLogStatus"],queryFn:dS.getStatus,refetchInterval:3e4,staleTime:1e4}),b=g.data,x=g.isLoading,w=g.refetch,j=function(){var e=Fn();return oa({mutationFn:dS.toggleDebugLog,onSuccess:function(t,r){e.invalidateQueries({queryKey:["debugLogStatus"]});var n=r?"enabled":"disabled";Lr.success((0,mi.__)("Debug logging ".concat(n," successfully"),"versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Failed to toggle debug logging","versatile-toolkit"))}})}(),_=function(){var e=Fn();return oa({mutationFn:dS.clearLog,onSuccess:function(){e.invalidateQueries({queryKey:["debugLogStatus"]}),Lr.success((0,mi.__)("Debug log cleared successfully","versatile-toolkit"))},onError:function(e){Lr.error(e.message||(0,mi.__)("Failed to clear debug log","versatile-toolkit"))}})}(),k=Dv().data,S=Fv().data,O=(null==b?void 0:b.enabled)||!1,N=b?(t=(e=b).file_exists&&e.last_modified>0?new Date(1e3*e.last_modified).toLocaleString():"Never",{exists:e.file_exists,size:e.file_size_formatted,lastModified:t}):{size:"0 KB",lastModified:"Never",exists:!1},P=x||j.isPending||_.isPending;(0,a().useEffect)(function(){var e;return s&&(e=setInterval(function(){d(function(e){return e+1})},5e3)),function(){e&&clearInterval(e)}},[s]);var C=function(e){v(e),y(!1);var t=new URLSearchParams(r);t.set("paged","1"),n({pathname:"/troubleshoot/debug-log",search:"?".concat(t.toString())})},E=(0,a().useMemo)(function(){var e,t,r=new Map,n=new Map;return(null!==(e=null==k?void 0:k.data)&&void 0!==e?e:[]).forEach(function(e){var t,n;r.set("plugin:".concat((t=e.slug,(void 0===(n=yS(t.split("/"),1)[0])?t:n).replace(/\.php$/i,"").toLowerCase())),e.label)}),(null!==(t=null==S?void 0:S.data)&&void 0!==t?t:[]).forEach(function(e){n.set("theme:".concat(e.slug.toLowerCase()),e.label)}),{generalOptions:[{value:"all",label:(0,mi.__)("All Sources","versatile-toolkit"),group:"general"},{value:"wordpress-core",label:(0,mi.__)("WordPress Core","versatile-toolkit"),group:"general"},{value:"unknown",label:(0,mi.__)("Unknown","versatile-toolkit"),group:"general"}],pluginOptions:Array.from(r.entries()).map(function(e){var t=yS(e,2);return{value:t[0],label:t[1],group:"plugin"}}),themeOptions:Array.from(n.entries()).map(function(e){var t=yS(e,2);return{value:t[0],label:t[1],group:"theme"}})}},[k,S]),R=E.generalOptions,A=E.pluginOptions,T=E.themeOptions,D=(0,a().useMemo)(function(){return[].concat(mS(R),mS(A),mS(T)).find(function(e){return e.value===p})},[R,A,p,T]),F=(0,a().useCallback)(function(e){return dS.loadLogContent(vS(vS({},e),{},{source:p}))},[p]),I=[{key:"id",header:"No"},{key:"type",header:"Type",render:function(e){return(0,o().jsx)(Zk,{type:e.type})}},{key:"message",header:"Description",render:function(e){var t=e.raw_line.length>200?"".concat(e.raw_line.substring(0,200),"..."):e.raw_line;return(0,o().jsx)(o().Fragment,{children:t})}},{key:"log_from",header:"Log From",render:function(e){return(0,o().jsx)("div",{className:"vt-min-w-[11rem]",children:(0,o().jsx)(xs,{variant:"success",className:"vt-font-medium",children:e.log_from||(0,mi.__)("Unknown","versatile-toolkit")})})}},{key:"timestamp",header:"Timestamp",render:function(e){var t=e.timestamp;if(!t)return"Invalid Date";try{var r=t.replace(" UTC","");return new Date(r+" UTC").toLocaleString(void 0,{hour12:!0})}catch(e){return"Invalid Date"}}},{key:"actions",header:"Actions",render:function(e,t){return(0,o().jsx)(eS,{row:e},t)}}];return(0,o().jsxs)("div",{className:"vt-mx-auto vt-max-w-6xl vt-p-6",children:[x?(0,o().jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between vt-animate-pulse",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full vt-bg-slate-300"}),(0,o().jsxs)("div",{children:[(0,o().jsx)("div",{className:"vt-h-5 vt-bg-slate-300 vt-rounded vt-w-32 vt-mb-2"}),(0,o().jsx)("div",{className:"vt-h-3 vt-bg-slate-200 vt-rounded vt-w-24"})]})]}),(0,o().jsx)("div",{className:"vt-h-9 vt-bg-slate-300 vt-rounded-lg vt-w-20"})]})}):(0,o().jsx)("div",{className:"vt-bg-white vt-p-6 vt-rounded-lg vt-border vt-border-slate-200 vt-mt-3",children:(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-justify-between",children:[(0,o().jsxs)("div",{className:"vt-flex vt-items-center vt-space-x-4",children:[(0,o().jsx)("div",{className:"vt-w-3 vt-h-3 vt-rounded-full ".concat(O?"vt-bg-green-500":"vt-bg-red-500")}),(0,o().jsxs)("div",{children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800",children:(0,mi.__)("Debug Logging","versatile-toolkit")}),(0,o().jsxs)("p",{className:"vt-text-sm vt-text-slate-600",children:[O?(0,mi.__)("Currently enabled","versatile-toolkit"):(0,mi.__)("Currently disabled","versatile-toolkit"),s&&(0,o().jsxs)("span",{className:"vt-ml-2 vt-text-blue-600",children:["• ",(0,mi.__)("Auto refresh active","versatile-toolkit")]})]})]})]}),(0,o().jsxs)(jk,{children:[(0,o().jsx)(_k,{asChild:!0,children:(0,o().jsxs)("button",{className:"vt-flex vt-items-center vt-space-x-2 vt-px-3 vt-py-2 vt-bg-slate-100 vt-text-slate-700 vt-rounded-lg hover:vt-bg-slate-200 vt-transition-colors",children:[(0,o().jsxs)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,o().jsx)("span",{className:"vt-text-sm",children:(0,mi.__)("Settings","versatile-toolkit")})]})}),(0,o().jsxs)(Nk,{children:[(0,o().jsx)(Pk,{children:(0,o().jsx)(Ck,{children:(0,mi.__)("Debug Log Settings","versatile-toolkit")})}),(0,o().jsx)("div",{className:"vt-mt-6",children:(0,o().jsx)(Hk,{debugStatus:O,logFileInfo:N,isAutoRefresh:s,isLoading:P,statusLoading:x,onToggleDebugLog:function(e){j.mutate(e)},onToggleAutoRefresh:function(e){l(e)},onStopAutoRefresh:function(){l(!1),Lr.success((0,mi.__)("Auto refresh stopped","versatile-toolkit"))}})})]})]})]})}),(0,o().jsxs)("div",{className:"vt-my-8",children:[(0,o().jsxs)("div",{className:" vt-bg-white vt-rounded-lg vt-border vt-p-2 vt-flex vt-items-center vt-justify-between",children:[(0,o().jsx)("h3",{className:"vt-font-medium vt-text-slate-800 vt-text-lg",children:(0,mi.__)("Debug Log","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-flex-wrap vt-items-center vt-gap-3",children:[(0,o().jsxs)(Nv,{open:m,onOpenChange:y,children:[(0,o().jsx)(Pv,{asChild:!0,children:(0,o().jsxs)(vs,{variant:"outline",role:"combobox","aria-expanded":m,"aria-label":(0,mi.__)("Filter debug logs by source","versatile-toolkit"),className:"vt-min-w-[12rem] vt-max-w-[20rem] vt-justify-between vt-gap-2 vt-bg-white vt-font-normal",children:[(0,o().jsx)("span",{className:"vt-truncate",children:(null==D?void 0:D.label)||(0,mi.__)("Select source...","versatile-toolkit")}),(0,o().jsx)(Iv,{className:"vt-h-4 vt-w-4 vt-shrink-0 vt-opacity-50"})]})}),(0,o().jsx)(Cv,{className:"vt-w-[20rem] vt-p-0",align:"start",children:(0,o().jsxs)(Gd,{children:[(0,o().jsx)(Zd,{placeholder:(0,mi.__)("Search source...","versatile-toolkit")}),(0,o().jsxs)(Kd,{children:[(0,o().jsx)(Qd,{children:(0,mi.__)("No source found.","versatile-toolkit")}),(0,o().jsx)(Jd,{children:R.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),A.length>0&&(0,o().jsx)(Jd,{heading:(0,mi.__)("Plugins","versatile-toolkit"),children:A.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})}),T.length>0&&(0,o().jsx)(Jd,{heading:(0,mi.__)("Themes","versatile-toolkit"),children:T.map(function(e){return(0,o().jsxs)(Yd,{value:e.label,onSelect:function(){return C(e.value)},children:[(0,o().jsx)(Mv,{className:hi("vt-mr-2 vt-h-4 vt-w-4",p===e.value?"vt-opacity-100":"vt-opacity-0")}),e.label]},e.value)})})]})]})})]}),(0,o().jsx)("button",{title:(0,mi.__)("Refresh Log","versatile-toolkit"),onClick:function(){w(),d(function(e){return e+1}),Lr.success((0,mi.__)("Debug log status and content refreshed","versatile-toolkit"))},disabled:P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-3 vt-px-2 vt-py-1 vt-bg-blue-500 vt-text-white vt-rounded-lg hover:vt-bg-blue-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),(0,o().jsx)("button",{title:(0,mi.__)("Download Log","versatile-toolkit"),onClick:function(){N.exists?dS.downloadLog():Lr.error((0,mi.__)("No log file to download","versatile-toolkit"))},disabled:!N.exists||P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-green-600 vt-text-white vt-rounded-lg hover:vt-bg-green-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,o().jsx)("button",{title:(0,mi.__)("Clear Log","versatile-toolkit"),onClick:function(){N.exists?window.confirm((0,mi.__)("Are you sure you want to clear the debug log? This action cannot be undone.","versatile-toolkit"))&&_.mutate(void 0,{onSuccess:function(){w(),d(function(e){return e+1})}}):Lr.error((0,mi.__)("No log file to clear","versatile-toolkit"))},disabled:!N.exists||P,className:"vt-flex vt-items-center vt-justify-center vt-space-x-2 vt-px-2 vt-py-1 vt-bg-yellow-600 vt-text-white vt-rounded-lg hover:vt-bg-yellow-700 disabled:vt-bg-slate-300 disabled:vt-cursor-not-allowed vt-transition-colors",children:(0,o().jsx)("svg",{className:"vt-w-4 vt-h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o().jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]}),(0,o().jsx)(Bk,{columns:I,fetchData:F,searchParams:r},"".concat(u,"-").concat(p))]})]})};var wS=n().createRoot(document.getElementById("versatile-root")),jS=new class{#Q;#c;#x;#J;#Y;#X;#ee;#te;constructor(e={}){this.#Q=e.queryCache||new Tn,this.#c=e.mutationCache||new kn,this.#x=e.defaultOptions||{},this.#J=new Map,this.#Y=new Map,this.#X=0}mount(){this.#X++,1===this.#X&&(this.#ee=fn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onFocus())}),this.#te=hn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#Q.onOnline())}))}unmount(){this.#X--,0===this.#X&&(this.#ee?.(),this.#ee=void 0,this.#te?.(),this.#te=void 0)}isFetching(e){return this.#Q.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#c.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#Q.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Br(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#Q.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#Q.get(n.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return this.#Q.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return vn.batch(()=>this.#Q.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#Q.get(t.queryHash)?.state}removeQueries(e){const t=this.#Q;vn.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#Q;return vn.batch(()=>{const n=r.findAll(e),o=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>o.has(e)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},n=vn.batch(()=>this.#Q.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Ur).catch(Ur)}invalidateQueries(e,t={}){return vn.batch(()=>(this.#Q.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=vn.batch(()=>this.#Q.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);const n="paused"===e.state.fetchStatus;return r.throwOnError&&!n||(t=t.catch(Ur)),n?Promise.resolve():t}));return Promise.all(n).then(Ur)}async query(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#Q.build(this,t),n=r.isStaleByTime(Br(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#Q.build(this,t);return r.isStaleByTime(Br(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ur).catch(Ur)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ur).catch(Ur)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return hn.isOnline()?this.#c.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#Q}getMutationCache(){return this.#c}getDefaultOptions(){return this.#x}setDefaultOptions(e){this.#x=e}setQueryDefaults(e,t){this.#J.set(Kr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#J.values()],r={};return t.forEach(t=>{Qr(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#Y.set(Kr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#Y.values()],r={};return t.forEach(t=>{Qr(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#x.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===sn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#x.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#Q.clear(),this.#c.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});wS.render((0,o().jsx)(bb,{onError:function(e,t){},children:(0,o().jsx)(In,{client:jS,children:(0,o().jsx)(bb,{onError:function(e,t){},children:(0,o().jsx)(At,{children:(0,o().jsxs)(bb,{onError:function(e,t){},children:[(0,o().jsx)(Tk,{}),(0,o().jsxs)(Je,{children:[(0,o().jsx)(Ke,{path:"/",element:(0,o().jsx)(bb,{children:(0,o().jsx)(Ia,{})})}),(0,o().jsx)(Ke,{path:"/troubleshoot",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(ab,{})})})}),(0,o().jsx)(Ke,{path:"/maintenance",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(Yx,{})})})}),(0,o().jsx)(Ke,{path:"/comingsoon",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(cw,{})})})}),(0,o().jsx)(Ke,{path:"/templogin",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(dk,{})})})}),(0,o().jsx)(Ke,{path:"/troubleshoot/debug-log",element:(0,o().jsx)(Dk,{children:(0,o().jsx)(bb,{children:(0,o().jsx)(xS,{})})})})]}),(0,o().jsx)(Mr,{position:"bottom-right",containerClassName:"vt-ui !z-[9999999]",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}})]})})})})}))})();
  • versatile-toolkit/trunk/assets/dist/js/versatile-quickact.min.js

    r3533621 r3798170  
    1 (()=>{"use strict";var e,t,r={338(e,t,r){var n=r(206);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},20(e,t,r){var n=r(594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},848(e,t,r){e.exports=r(20)},594(e){e.exports=React},206(e){e.exports=ReactDOM}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>r[e]);return s.default=()=>r,o.d(i,s),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i=o(594),s=o.t(i,2);const a=wp.i18n,c=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const u=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:a,...u},f)=>(0,i.createElement)("svg",{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:c("lucide",o),...u},[...a.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(s)?s:[s]])),f=(e,t)=>{const r=(0,i.forwardRef)(({className:r,...n},o)=>{return(0,i.createElement)(u,{ref:o,iconNode:t,className:c(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var s});return r.displayName=`${e}`,r},d=f("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),p=f("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),h=f("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function m(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=m(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function v(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=m(e))&&(n&&(n+=" "),n+=t);return n}const y=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),b="-",g=[],w=e=>{const t=j(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return O(e);const r=e.split(b),n=""===r[0]&&r.length>1?1:0;return x(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||g}return r[e]||g}}},x=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=x(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const s=0===t?e.join(b):e.slice(t).join(b),a=i.length;for(let e=0;e<a;e++){const t=i[e];if(t.validator(s))return t.classGroupId}},O=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),j=e=>{const{theme:t,classGroups:r}=e;return k(r,t)},k=(e,t)=>{const r=y();for(const n in e){const o=e[n];S(o,r,n,t)}return r},S=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];P(o,t,r,n)}},P=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?N(e,t,r,n):C(e,t,r,n):E(e,t,r)},E=(e,t,r)=>{(""===e?t:_(t,e)).classGroupId=r},C=(e,t,r,n)=>{R(e)?S(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},N=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,s]=o[e];S(s,_(t,i),r,n)}},_=(e,t)=>{let r=e;const n=t.split(b),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=y(),r.nextPart.set(t,o)),r=o}return r},R=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,A=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},T=[],D=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),M=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const s=e.length;for(let a=0;a<s;a++){const s=e[a];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){r=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let c=a,l=!1;a.endsWith("!")?(c=a.slice(0,-1),l=!0):a.startsWith("!")&&(c=a.slice(1),l=!0);return D(t,l,c,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):D(T,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},F=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},q=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},L=/\s+/,I=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=I(e[n]))&&(r&&(r+=" "),r+=t);return r},z=(e,...t)=>{let r,n,o,i;const s=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],c=e.trim().split(L);let l="";for(let e=c.length-1;e>=0;e-=1){const t=c[e],{isExternal:u,modifiers:f,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let m,v=!!h;if(v){m=n(p.substring(0,h));const e=m&&s[m]?n(p):void 0;e&&e!==m&&(m=e,v=!1)}else m=n(p);if(!m){if(!v){l=t+(l.length>0?" "+l:l);continue}if(m=n(p),!m){l=t+(l.length>0?" "+l:l);continue}v=!1}const y=0===f.length?"":1===f.length?f[0]:i(f).join(":"),b=d?y+"!":y,g=b+m;if(a.indexOf(g)>-1)continue;a.push(g);const w=o(m,v);for(let e=0;e<w.length;++e){const t=w[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:A(e.cacheSize),parseClassName:M(e),sortModifiers:F(e),postfixLookupClassGroupIds:q(e),...w(e)}))(c),n=r.cache.get,o=r.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=I(t))&&(o&&(o+=" "),o+=r);return o})(...e))},G=[],W=e=>{const t=t=>t[e]||G;return t.isThemeGetter=!0,t},$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,B=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,U=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>B.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),J=e=>!!e&&Number.isInteger(Number(e)),ee=e=>e.endsWith("%")&&Z(e.slice(0,-1)),te=e=>U.test(e),re=()=>!0,ne=e=>K.test(e)&&!Q.test(e),oe=()=>!1,ie=e=>V.test(e),se=e=>Y.test(e),ae=e=>!ue(e)&&!be(e),ce=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),le=e=>Pe(e,_e,oe),ue=e=>$.test(e),fe=e=>Pe(e,Re,ne),de=e=>Pe(e,Ae,Z),pe=e=>Pe(e,De,re),he=e=>Pe(e,Te,oe),me=e=>Pe(e,Ce,oe),ve=e=>Pe(e,Ne,se),ye=e=>Pe(e,Me,ie),be=e=>H.test(e),ge=e=>Ee(e,Re),we=e=>Ee(e,Te),xe=e=>Ee(e,Ce),Oe=e=>Ee(e,_e),je=e=>Ee(e,Ne),ke=e=>Ee(e,Me,!0),Se=e=>Ee(e,De,!0),Pe=(e,t,r)=>{const n=$.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ee=(e,t,r=!1)=>{const n=H.exec(e);return!!n&&(n[1]?t(n[1]):r)},Ce=e=>"position"===e||"percentage"===e,Ne=e=>"image"===e||"url"===e,_e=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Ae=e=>"number"===e,Te=e=>"family-name"===e,De=e=>"number"===e||"weight"===e,Me=e=>"shadow"===e,Fe=(Symbol.toStringTag,()=>{const e=W("color"),t=W("font"),r=W("text"),n=W("font-weight"),o=W("tracking"),i=W("leading"),s=W("breakpoint"),a=W("container"),c=W("spacing"),l=W("radius"),u=W("shadow"),f=W("inset-shadow"),d=W("text-shadow"),p=W("drop-shadow"),h=W("blur"),m=W("perspective"),v=W("aspect"),y=W("ease"),b=W("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",be,ue],w=()=>[be,ue,c],x=()=>[X,"full","auto",...w()],O=()=>[J,"none","subgrid",be,ue],j=()=>["auto",{span:["full",J,be,ue]},J,be,ue],k=()=>[J,"auto",be,ue],S=()=>["auto","min","max","fr",be,ue],P=()=>["auto",...w()],E=()=>[X,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],C=()=>[X,"screen","full","dvw","lvw","svw","min","max","fit",...w()],N=()=>[X,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],_=()=>[e,be,ue],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",xe,me,{position:[be,ue]}],A=()=>["auto","cover","contain",Oe,le,{size:[be,ue]}],T=()=>[ee,ge,fe],D=()=>["","none","full",l,be,ue],M=()=>["",Z,ge,fe],F=()=>[Z,ee,xe,me],q=()=>["","none",h,be,ue],L=()=>["none",Z,be,ue],I=()=>["none",Z,be,ue],z=()=>[Z,be,ue],G=()=>[X,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[te],breakpoint:[te],color:[re],container:[te],"drop-shadow":[te],ease:["in","out","in-out"],font:[ae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[te],shadow:[te],spacing:["px",Z],text:[te],"text-shadow":[te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",X,ue,be,v]}],container:["container"],"container-type":[{"@container":["","normal","size",be,ue]}],"container-named":[ce],columns:[{columns:[Z,ue,be,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[J,"auto",be,ue]}],basis:[{basis:[X,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,X,"auto","initial","none",ue]}],grow:[{grow:["",Z,be,ue]}],shrink:[{shrink:["",Z,be,ue]}],order:[{order:[J,"first","last","none",be,ue]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",r,ge,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Se,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ee,ue]}],"font-family":[{font:[we,he,t]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,be,ue]}],"line-clamp":[{"line-clamp":[Z,"none",be,de]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",be,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",be,fe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Z,"auto",be,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[J,be,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},J,be,ue],radial:["",be,ue],conic:[J,be,ue]},je,ve]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Z,be,ue]}],"outline-w":[{outline:["",Z,ge,fe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,ke,ye]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,ke,ye]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Z,fe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",d,ke,ye]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Z,be,ue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[be,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ue]}],filter:[{filter:["","none",be,ue]}],blur:[{blur:q()}],brightness:[{brightness:[Z,be,ue]}],contrast:[{contrast:[Z,be,ue]}],"drop-shadow":[{"drop-shadow":["","none",p,ke,ye]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Z,be,ue]}],"hue-rotate":[{"hue-rotate":[Z,be,ue]}],invert:[{invert:["",Z,be,ue]}],saturate:[{saturate:[Z,be,ue]}],sepia:[{sepia:["",Z,be,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ue]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[Z,be,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Z,be,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,be,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,be,ue]}],"backdrop-invert":[{"backdrop-invert":["",Z,be,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Z,be,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Z,be,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,be,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",be,ue]}],ease:[{ease:["linear","initial",y,be,ue]}],delay:[{delay:[Z,be,ue]}],animate:[{animate:["none",b,be,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,be,ue]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[be,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],zoom:[{zoom:[J,be,ue]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,ue]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Z,ge,fe,de]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),qe=(e,t,r)=>{void 0!==r&&(e[t]=r)},Le=(e,t)=>{if(t)for(const r in t)qe(e,r,t[r])},Ie=(e,t)=>{if(t)for(const r in t)ze(e,t,r)},ze=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){He(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function He(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Be=((e,...t)=>"function"==typeof e?z(Fe,e,...t):z(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(qe(e,"cacheSize",t),qe(e,"prefix",r),qe(e,"experimentalParseClassName",n),Le(e.theme,i.theme),Le(e.classGroups,i.classGroups),Le(e.conflictingClassGroups,i.conflictingClassGroups),Le(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),qe(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),qe(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ie(e.theme,o.theme),Ie(e.classGroups,o.classGroups),Ie(e.conflictingClassGroups,o.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ze(e,o,"postfixLookupClassGroups"),ze(e,o,"orderSensitiveModifiers"),e))(Fe(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?$e($e({},r),{},{baseClassName:n.slice(3)}):r}});function Ue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Be(v(t))}function Ke(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qe(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Ke(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Ke(e[t],null)}}}}function Ve(...e){return i.useCallback(Qe(...e),e)}var Ye=o(848),Xe=Symbol.for("react.lazy"),Ze=s[" use ".trim().toString()];function Je(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function et(e){const t=rt(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;Je(n)&&"function"==typeof Ze&&(n=Ze(n._payload));const s=i.Children.toArray(n),a=s.find(ot);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var tt=et("Slot");function rt(e){const t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(Je(r)&&"function"==typeof Ze&&(r=Ze(r._payload)),i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nt=Symbol("radix.slottable");function ot(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===nt}const it=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,st=v;function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}var ct=["className","variant","size","asChild"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ut(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=at(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==at(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ft=((e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return st(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const s=it(t)||it(n);return o[e][s]}),a=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...a}[t]):{...i,...a}[t]===r})?[...e,r,n]:e},[]);return st(e,s,c,null==r?void 0:r.class,null==r?void 0:r.className)})("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),dt=i.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,i=e.asChild,s=void 0!==i&&i,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ct),c=s?tt:"button";return(0,Ye.jsx)(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach(function(t){ut(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:Ue(ft({variant:n,size:o,className:r})),ref:t},a))});function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}dt.displayName="Button";var ht=["className"],mt=["className"],vt=["className"],yt=["className"],bt=["className"],gt=["className"];function wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(t){Ot(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var kt=i.forwardRef(function(e,t){var r=e.className,n=jt(e,ht);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});kt.displayName="Card";var St=i.forwardRef(function(e,t){var r=e.className,n=jt(e,mt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});St.displayName="CardHeader";var Pt=i.forwardRef(function(e,t){var r=e.className,n=jt(e,vt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});Pt.displayName="CardTitle",i.forwardRef(function(e,t){var r=e.className,n=jt(e,yt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var Et=i.forwardRef(function(e,t){var r=e.className,n=jt(e,bt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-p-4",r)},n))});function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mt(n.key),n)}}function _t(e,t,r){return t=At(t),function(e,t){if(t&&("object"==Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rt()?Reflect.construct(t,r||[],At(e).constructor):t.apply(e,r))}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rt=function(){return!!e})()}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function Dt(e,t,r){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ct(t)?t:t+""}Et.displayName="CardContent",i.forwardRef(function(e,t){var r=e.className,n=jt(e,gt);return(0,Ye.jsx)("div",xt({ref:t,className:Ue("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Ft=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(r=_t(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Dt(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(t,e),function(e,t,r){return t&&Nt(e.prototype,t),r&&Nt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,Ye.jsxs)(kt,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,Ye.jsxs)(St,{className:"vt-text-center",children:[(0,Ye.jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,Ye.jsx)(d,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,Ye.jsx)(Pt,{className:"vt-text-red-700",children:(0,a.__)("Something went wrong","versatile-toolkit")})]}),(0,Ye.jsxs)(Et,{className:"vt-space-y-4",children:[(0,Ye.jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,a.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,Ye.jsxs)(dt,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Ye.jsx)(p,{className:"vt-h-4 vt-w-4"}),(0,a.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,Ye.jsxs)(dt,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,Ye.jsx)(h,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,a.__)("Hide Details","versatile-toolkit"):(0,a.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,Ye.jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,Ye.jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,a.__)("Error Details:","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Message:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Stack Trace:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("strong",{children:(0,a.__)("Component Stack:","versatile-toolkit")}),(0,Ye.jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(i.Component);const qt=Ft;var Lt={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const It=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,o=e.size,i=void 0===o?"sm":o,s=e.className;if(!t)return(0,Ye.jsx)(Ye.Fragment,{children:n});var c=(0,a.__)("Loading","versatile-toolkit"),l=r||"".concat(c,"...");return(0,Ye.jsxs)("div",{className:Ue("vt-flex vt-items-center vt-gap-2",s),children:[(0,Ye.jsx)("div",{className:Ue(Lt[i],"vt-animate-spin"),children:(0,Ye.jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ye.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,Ye.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,Ye.jsx)("span",{children:l})]})};function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}var Gt=["className","type"];function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=zt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ht=i.forwardRef(function(e,t){var r=e.className,n=e.type,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Gt);return(0,Ye.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(t){$t(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:Ue("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},o))});Ht.displayName="Input";"undefined"==typeof window||!window.document||window.document.createElement;function Bt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function Ut(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>i.createContext(e));return function(r){const n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){const o=i.createContext(n),s=r.length;r=[...r,n];const a=t=>{const{scope:r,children:n,...a}=t,c=r?.[e]?.[s]||o,l=i.useMemo(()=>a,Object.values(a));return(0,Ye.jsx)(c.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){const c=a?.[e]?.[s]||o,l=i.useContext(c);if(l)return l;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},Kt(n,...t)]}function Kt(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}var Qt=o(206);function Vt(e){const t=Yt(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,s=i.Children.toArray(n),a=s.find(Zt);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Yt(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xt=Symbol("radix.slottable");function Zt(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xt}var Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=Vt(`Primitive.${t}`),n=i.forwardRef((e,n)=>{const{asChild:o,...i}=e,s=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ye.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function er(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var tr,rr="dismissableLayer.update",nr="dismissableLayer.pointerDownOutside",or="dismissableLayer.focusOutside",ir=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sr=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(ir),[f,d]=i.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=i.useState({}),m=Ve(t,e=>d(e)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),g=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=g>=b,O=function(e,t=globalThis?.document){const r=er(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){lr(nr,r,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));x&&!r&&(o?.(e),a?.(e),e.defaultPrevented||c?.())},p),j=function(e,t=globalThis?.document){const r=er(e),n=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!n.current){lr(or,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(s?.(e),a?.(e),e.defaultPrevented||c?.())},p);return function(e,t=globalThis?.document){const r=er(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{g===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),i.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(tr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),cr(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=tr)}},[f,p,r,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),cr())},[f,u]),i.useEffect(()=>{const e=()=>h({});return document.addEventListener(rr,e),()=>document.removeEventListener(rr,e)},[]),(0,Ye.jsx)(Jt.div,{...l,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,O.onPointerDownCapture)})});sr.displayName="DismissableLayer";var ar=i.forwardRef((e,t)=>{const r=i.useContext(ir),n=i.useRef(null),o=Ve(t,n);return i.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,Ye.jsx)(Jt.div,{...e,ref:o})});function cr(){const e=new CustomEvent(rr);document.dispatchEvent(e)}function lr(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&Qt.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}ar.displayName="DismissableLayerBranch";var ur=0;function fr(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dr()),document.body.insertAdjacentElement("beforeend",e[1]??dr()),ur++,()=>{1===ur&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ur--}},[])}function dr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pr="focusScope.autoFocusOnMount",hr="focusScope.autoFocusOnUnmount",mr={bubbles:!1,cancelable:!0},vr=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=er(o),f=er(s),d=i.useRef(null),p=Ve(t,e=>l(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?d.current=t:wr(d.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||wr(d.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&wr(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,c,h.paused]),i.useEffect(()=>{if(c){xr.add(h);const t=document.activeElement;if(!c.contains(t)){const r=new CustomEvent(pr,mr);c.addEventListener(pr,u),c.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wr(n,{select:t}),document.activeElement!==r)return}((e=yr(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&wr(c))}return()=>{c.removeEventListener(pr,u),setTimeout(()=>{const e=new CustomEvent(hr,mr);c.addEventListener(hr,f),c.dispatchEvent(e),e.defaultPrevented||wr(t??document.body,{select:!0}),c.removeEventListener(hr,f),xr.remove(h)},0)}}var e},[c,u,f,h]);const m=i.useCallback(e=>{if(!r&&!n)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=function(e){const t=yr(e),r=br(t,e),n=br(t.reverse(),e);return[r,n]}(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&wr(i,{select:!0})):(e.preventDefault(),r&&wr(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,h.paused]);return(0,Ye.jsx)(Jt.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})});function yr(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function br(e,t){for(const r of e)if(!gr(r,{upTo:t}))return r}function gr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function wr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}vr.displayName="FocusScope";var xr=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Or(e,t),e.unshift(t)},remove(t){e=Or(e,t),e[0]?.resume()}}}();function Or(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var jr=globalThis?.document?i.useLayoutEffect:()=>{},kr=s[" useId ".trim().toString()]||(()=>{}),Sr=0;function Pr(e){const[t,r]=i.useState(kr());return jr(()=>{e||r(e=>e??String(Sr++))},[e]),e||(t?`radix-${t}`:"")}const Er=["top","right","bottom","left"],Cr=Math.min,Nr=Math.max,_r=Math.round,Rr=Math.floor,Ar=e=>({x:e,y:e}),Tr={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e,t,r){return Nr(e,Cr(t,r))}function Mr(e,t){return"function"==typeof e?e(t):e}function Fr(e){return e.split("-")[0]}function qr(e){return e.split("-")[1]}function Lr(e){return"x"===e?"y":"x"}function Ir(e){return"y"===e?"height":"width"}function zr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Gr(e){return Lr(zr(e))}function Wr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const $r=["left","right"],Hr=["right","left"],Br=["top","bottom"],Ur=["bottom","top"];function Kr(e,t,r,n){const o=qr(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Hr:$r:t?$r:Hr;case"left":case"right":return t?Br:Ur;default:return[]}}(Fr(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Wr)))),i}function Qr(e){const t=Fr(e);return Tr[t]+e.slice(t.length)}function Vr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Yr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Xr(e,t,r){let{reference:n,floating:o}=e;const i=zr(t),s=Gr(t),a=Ir(s),c=Fr(t),l="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(qr(t)){case"start":p[s]-=d*(r&&l?-1:1);break;case"end":p[s]+=d*(r&&l?-1:1)}return p}async function Zr(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Mr(t,e),h=Vr(p),m=a[d?"floating"===f?"reference":"floating":f],v=Yr(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===f?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),g=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Yr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-w.top+h.top)/g.y,bottom:(w.bottom-v.bottom+h.bottom)/g.y,left:(v.left-w.left+h.left)/g.x,right:(w.right-v.right+h.right)/g.x}}function Jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function en(e){return Er.some(t=>e[t]>=0)}const tn=new Set(["left","top"]);function rn(){return"undefined"!=typeof window}function nn(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function sn(e){var t;return null==(t=(an(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function an(e){return!!rn()&&(e instanceof Node||e instanceof on(e).Node)}function cn(e){return!!rn()&&(e instanceof Element||e instanceof on(e).Element)}function ln(e){return!!rn()&&(e instanceof HTMLElement||e instanceof on(e).HTMLElement)}function un(e){return!(!rn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof on(e).ShadowRoot)}function fn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function dn(e){return/^(table|td|th)$/.test(nn(e))}function pn(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const hn=/transform|translate|scale|rotate|perspective|filter/,mn=/paint|layout|strict|content/,vn=e=>!!e&&"none"!==e;let yn;function bn(e){const t=cn(e)?xn(e):e;return vn(t.transform)||vn(t.translate)||vn(t.scale)||vn(t.rotate)||vn(t.perspective)||!gn()&&(vn(t.backdropFilter)||vn(t.filter))||hn.test(t.willChange||"")||mn.test(t.contain||"")}function gn(){return null==yn&&(yn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yn}function wn(e){return/^(html|body|#document)$/.test(nn(e))}function xn(e){return on(e).getComputedStyle(e)}function On(e){return cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if("html"===nn(e))return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||sn(e);return un(t)?t.host:t}function kn(e){const t=jn(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&fn(t)?t:kn(t)}function Sn(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=kn(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=on(o);if(i){const e=Pn(s);return t.concat(s,s.visualViewport||[],fn(o)?o:[],e&&r?Sn(e):[])}return t.concat(o,Sn(o,[],r))}function Pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function En(e){const t=xn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=_r(r)!==i||_r(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Cn(e){return cn(e)?e:e.contextElement}function Nn(e){const t=Cn(e);if(!ln(t))return Ar(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=En(t);let s=(i?_r(r.width):r.width)/n,a=(i?_r(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _n=Ar(0);function Rn(e){const t=on(e);return gn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_n}function An(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Cn(e);let s=Ar(1);t&&(n?cn(n)&&(s=Nn(n)):s=Nn(e));const a=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==on(e))&&t}(i,r,n)?Rn(i):Ar(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const e=on(i),t=n&&cn(n)?on(n):n;let r=e,o=Pn(r);for(;o&&n&&t!==r;){const e=Nn(o),t=o.getBoundingClientRect(),n=xn(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=s,r=on(o),o=Pn(r)}}return Yr({width:u,height:f,x:c,y:l})}function Tn(e,t){const r=On(e).scrollLeft;return t?t.left+r:An(sn(e)).left+r}function Dn(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Tn(e,r),y:r.top+t.scrollTop}}function Mn(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=on(e),n=sn(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=gn();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}const l=Tn(n);if(l<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(n.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else l<=25&&(i+=l);return{width:i,height:s,x:a,y:c}}(e,r);else if("document"===t)n=function(e){const t=sn(e),r=On(e),n=e.ownerDocument.body,o=Nr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Nr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Tn(e);const a=-r.scrollTop;return"rtl"===xn(n).direction&&(s+=Nr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}(sn(e));else if(cn(t))n=function(e,t){const r=An(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ln(e)?Nn(e):Ar(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=Rn(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Yr(n)}function Fn(e,t){const r=jn(e);return!(r===t||!cn(r)||wn(r))&&("fixed"===xn(r).position||Fn(r,t))}function qn(e,t,r){const n=ln(t),o=sn(t),i="fixed"===r,s=An(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ar(0);function l(){c.x=Tn(o)}if(n||!n&&!i)if(("body"!==nn(t)||fn(o))&&(a=On(t)),n){const e=An(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=!o||n||i?Ar(0):Dn(o,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function Ln(e){return"static"===xn(e).position}function In(e,t){if(!ln(e)||"fixed"===xn(e).position)return null;if(t)return t(e);let r=e.offsetParent;return sn(e)===r&&(r=r.ownerDocument.body),r}function zn(e,t){const r=on(e);if(pn(e))return r;if(!ln(e)){let t=jn(e);for(;t&&!wn(t);){if(cn(t)&&!Ln(t))return t;t=jn(t)}return r}let n=In(e,t);for(;n&&dn(n)&&Ln(n);)n=In(n,t);return n&&wn(n)&&Ln(n)&&!bn(n)?r:n||function(e){let t=jn(e);for(;ln(t)&&!wn(t);){if(bn(t))return t;if(pn(t))return null;t=jn(t)}return null}(e)||r}const Gn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,s=sn(n),a=!!t&&pn(t.floating);if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Ar(1);const u=Ar(0),f=ln(n);if((f||!f&&!i)&&(("body"!==nn(n)||fn(s))&&(c=On(n)),f)){const e=An(n);l=Nn(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!s||f||i?Ar(0):Dn(s,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:r.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:sn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?pn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Sn(e,[],!1).filter(e=>cn(e)&&"body"!==nn(e)),o=null;const i="fixed"===xn(e).position;let s=i?jn(e):e;for(;cn(s)&&!wn(s);){const t=xn(s),r=bn(s);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||fn(s)&&!r&&Fn(e,s))?n=n.filter(e=>e!==s):o=t,s=jn(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=Mn(t,i[0],o);let a=s.top,c=s.right,l=s.bottom,u=s.left;for(let e=1;e<i.length;e++){const r=Mn(t,i[e],o);a=Nr(r.top,a),c=Cr(r.right,c),l=Cr(r.bottom,l),u=Nr(r.left,u)}return{width:c-u,height:l-a,x:u,y:a}},getOffsetParent:zn,getElementRects:async function(e){const t=this.getOffsetParent||zn,r=this.getDimensions,n=await r(e.floating);return{reference:qn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=En(e);return{width:t,height:r}},getScale:Nn,isElement:cn,isRTL:function(e){return"rtl"===xn(e).direction}};function Wn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $n(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=Cn(e),u=o||i?[...l?Sn(l):[],...t?Sn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=l&&a?function(e,t){let r,n=null;const o=sn(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(a||t(),!d||!p)return;const h={rootMargin:-Rr(f)+"px "+-Rr(o.clientWidth-(u+d))+"px "+-Rr(o.clientHeight-(f+p))+"px "+-Rr(u)+"px",threshold:Nr(0,Cr(1,c))||1};let m=!0;function v(t){const n=t[0].intersectionRatio;if(n!==c){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||Wn(l,e.getBoundingClientRect())||s(),m=!1}try{n=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(v,h)}n.observe(e)}(!0),i}(l,r):null;let d,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),l&&!c&&h.observe(l),t&&h.observe(t));let m=c?An(e):null;return c&&function t(){const n=An(e);m&&!Wn(m,n)&&r();m=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(d)}}const Hn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),s=Fr(r),a=qr(r),c="y"===zr(r),l=tn.has(s)?-1:1,u=i&&c?-1:1,f=Mr(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Bn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Mr(e,t),u={x:r,y:n},f=await i.detectOverflow(t,l),d=zr(Fr(o)),p=Lr(d);let h=u[p],m=u[d];if(s){const e="y"===p?"bottom":"right";h=Dr(h+f["y"===p?"top":"left"],h,h-f[e])}if(a){const e="y"===d?"bottom":"right";m=Dr(m+f["y"===d?"top":"left"],m,m-f[e])}const v=c.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:s,[d]:a}}}}}},Un=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=Mr(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Fr(o),b=zr(a),g=Fr(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(g||!m?[Qr(a)]:function(e){const t=Qr(e);return[Wr(e),t,Wr(t)]}(a)),O="none"!==h;!d&&O&&x.push(...Kr(a,m,h,w));const j=[a,...x],k=await c.detectOverflow(t,v),S=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[y]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=qr(e),o=Gr(e),i=Ir(o);let s="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Qr(s)),[s,Qr(s)]}(o,s,w);S.push(k[e[0]],k[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var E,C;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===f&&b!==zr(t))||P.every(e=>zr(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=zr(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}},Kn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Mr(e,t),u=await s.detectOverflow(t,l),f=Fr(o),d=qr(o),p="y"===zr(o),{width:h,height:m}=i.floating;let v,y;"top"===f||"bottom"===f?(v=f,y=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v="end"===d?"top":"bottom");const b=m-u.top-u.bottom,g=h-u.left-u.right,w=Cr(m-u[v],b),x=Cr(h-u[y],g),O=!t.middlewareData.shift;let j=w,k=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(k=g),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(j=b),O&&!d){const e=Nr(u.left,0),t=Nr(u.right,0),r=Nr(u.top,0),n=Nr(u.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Nr(u.left,u.right)):j=m-2*(0!==r||0!==n?r+n:Nr(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:j});const S=await s.getDimensions(a.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Qn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Mr(e,t);switch(o){case"referenceHidden":{const e=Jr(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:en(e)}}}case"escaped":{const e=Jr(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:en(e)}}}default:return{}}}}},Vn=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Mr(e,t)||{};if(null==l)return{};const f=Vr(u),d={x:r,y:n},p=Gr(o),h=Ir(p),m=await s.getDimensions(l),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",g=v?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let j=O?O[g]:0;j&&await(null==s.isElement?void 0:s.isElement(O))||(j=a.floating[g]||i.floating[h]);const k=w/2-x/2,S=j/2-m[h]/2-1,P=Cr(f[y],S),E=Cr(f[b],S),C=P,N=j-m[h]-E,_=j/2-m[h]/2+k,R=Dr(C,_,N),A=!c.arrow&&null!=qr(o)&&_!==R&&i.reference[h]/2-(_<C?P:E)-m[h]/2<0,T=A?_<C?_-C:_-N:0;return{[p]:d[p]+T,data:{[p]:R,centerOffset:_-R-T,...A&&{alignmentOffset:T}},reset:A}}}),Yn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Mr(e,t),u={x:r,y:n},f=zr(o),d=Lr(f);let p=u[d],h=u[f];const m=Mr(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,r=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>r&&(p=r)}if(l){var y,b;const e="y"===d?"width":"height",t=tn.has(Fr(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(y=s.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?v.crossAxis:0);h<r?h=r:h>n&&(h=n)}return{[d]:p,[f]:h}}}},Xn=(e,t,r)=>{const n=new Map,o={platform:Gn,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Zr},c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Xr(l,n,c),d=n,p=0;const h={};for(let r=0;r<i.length;r++){const m=i[r];if(!m)continue;const{name:v,fn:y}=m,{x:b,y:g,data:w,reset:x}=await y({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,f=null!=g?g:f,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=Xr(l,d,c))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Zn="undefined"!=typeof document?i.useLayoutEffect:function(){};function Jn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Jn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Jn(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function to(e,t){const r=eo(e);return Math.round(t*r)/r}function ro(e){const t=i.useRef(e);return Zn(()=>{t.current=e}),t}const no=(e,t)=>{const r=Hn(e);return{name:r.name,fn:r.fn,options:[e,t]}},oo=(e,t)=>{const r=Bn(e);return{name:r.name,fn:r.fn,options:[e,t]}},io=(e,t)=>({fn:Yn(e).fn,options:[e,t]}),so=(e,t)=>{const r=Un(e);return{name:r.name,fn:r.fn,options:[e,t]}},ao=(e,t)=>{const r=Kn(e);return{name:r.name,fn:r.fn,options:[e,t]}},co=(e,t)=>{const r=Qn(e);return{name:r.name,fn:r.fn,options:[e,t]}},lo=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Vn({element:r.current,padding:n}).fn(t):{}:r?Vn({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var uo=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return(0,Ye.jsx)(Jt.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,Ye.jsx)("polygon",{points:"0,0 30,0 15,10"})})});uo.displayName="Arrow";var fo=uo;var po="Popper",[ho,mo]=Ut(po),[vo,yo]=ho(po),bo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,Ye.jsx)(vo,{scope:t,anchor:n,onAnchorChange:o,children:r})};bo.displayName=po;var go="PopperAnchor",wo=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=yo(go,r),a=i.useRef(null),c=Ve(t,a),l=i.useRef(null);return i.useEffect(()=>{const e=l.current;l.current=n?.current||a.current,e!==l.current&&s.onAnchorChange(l.current)}),n?null:(0,Ye.jsx)(Jt.div,{...o,ref:c})});wo.displayName=go;var xo="PopperContent",[Oo,jo]=ho(xo),ko=i.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:m,...v}=e,y=yo(xo,r),[b,g]=i.useState(null),w=Ve(t,e=>g(e)),[x,O]=i.useState(null),j=function(e){const[t,r]=i.useState(void 0);return jr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(x),k=j?.width??0,S=j?.height??0,P=n+("center"!==s?"-"+s:""),E="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},C=Array.isArray(u)?u:[u],N=C.length>0,_={padding:E,boundary:C.filter(Co),altBoundary:N},{refs:R,floatingStyles:A,placement:T,isPositioned:D,middlewareData:M}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(n);Jn(p,n)||h(n);const[m,v]=i.useState(null),[y,b]=i.useState(null),g=i.useCallback(e=>{e!==j.current&&(j.current=e,v(e))},[]),w=i.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=s||m,O=a||y,j=i.useRef(null),k=i.useRef(null),S=i.useRef(f),P=null!=l,E=ro(l),C=ro(o),N=ro(u),_=i.useCallback(()=>{if(!j.current||!k.current)return;const e={placement:t,strategy:r,middleware:p};C.current&&(e.platform=C.current),Xn(j.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!Jn(S.current,t)&&(S.current=t,Qt.flushSync(()=>{d(t)}))})},[p,t,r,C,N]);Zn(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const R=i.useRef(!1);Zn(()=>(R.current=!0,()=>{R.current=!1}),[]),Zn(()=>{if(x&&(j.current=x),O&&(k.current=O),x&&O){if(E.current)return E.current(x,O,_);_()}},[x,O,_,E,P]);const A=i.useMemo(()=>({reference:j,floating:k,setReference:g,setFloating:w}),[g,w]),T=i.useMemo(()=>({reference:x,floating:O}),[x,O]),D=i.useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=to(T.floating,f.x),n=to(T.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...eo(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,T.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:_,refs:A,elements:T,floatingStyles:D}),[f,_,A,T,D])}({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>$n(...e,{animationFrame:"always"===h}),elements:{reference:y.anchor},middleware:[no({mainAxis:o+S,alignmentAxis:a}),l&&oo({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?io():void 0,..._}),l&&so({..._}),ao({..._,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),x&&lo({element:x,padding:c}),No({arrowWidth:k,arrowHeight:S}),p&&co({strategy:"referenceHidden",..._})]}),[F,q]=_o(T),L=er(m);jr(()=>{D&&L?.()},[D,L]);const I=M.arrow?.x,z=M.arrow?.y,G=0!==M.arrow?.centerOffset,[W,$]=i.useState();return jr(()=>{b&&$(window.getComputedStyle(b).zIndex)},[b]),(0,Ye.jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:D?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Ye.jsx)(Oo,{scope:r,placedSide:F,onArrowChange:O,arrowX:I,arrowY:z,shouldHideArrow:G,children:(0,Ye.jsx)(Jt.div,{"data-side":F,"data-align":q,...v,ref:w,style:{...v.style,animation:D?void 0:"none"}})})})});ko.displayName=xo;var So="PopperArrow",Po={top:"bottom",right:"left",bottom:"top",left:"right"},Eo=i.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=jo(So,r),i=Po[o.placedSide];return(0,Ye.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Ye.jsx)(fo,{...n,ref:t,style:{...n.style,display:"block"}})})});function Co(e){return null!==e}Eo.displayName=So;var No=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=_o(r),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+s/2,d=(o.arrow?.y??0)+a/2;let p="",h="";return"bottom"===c?(p=i?u:`${f}px`,h=-a+"px"):"top"===c?(p=i?u:`${f}px`,h=`${n.floating.height+a}px`):"right"===c?(p=-a+"px",h=i?u:`${d}px`):"left"===c&&(p=`${n.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function _o(e){const[t,r="center"]=e.split("-");return[t,r]}var Ro=bo,Ao=wo,To=ko,Do=Eo,Mo=i.forwardRef((e,t)=>{const{container:r,...n}=e,[o,s]=i.useState(!1);jr(()=>s(!0),[]);const a=r||o&&globalThis?.document?.body;return a?Qt.createPortal((0,Ye.jsx)(Jt.div,{...n,ref:t}),a):null});Mo.displayName="Portal";var Fo=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=i.useState(),n=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=function(e,t){return i.useReducer((e,r)=>t[e][r]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const e=qo(n.current);s.current="mounted"===c?e:"none"},[c]),jr(()=>{const t=n.current,r=o.current;if(r!==e){const n=s.current,i=qo(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(r&&n!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),jr(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,i=i=>{const s=qo(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(l("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},a=e=>{e.target===t&&(s.current=qo(n.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),s=Ve(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:s}):null};function qo(e){return e?.animationName||"none"}Fo.displayName="Presence";function Lo(e){const t=Io(e),r=i.forwardRef((e,r)=>{const{children:n,...o}=e,s=i.Children.toArray(n),a=s.find(Go);if(a){const e=a.props.children,n=s.map(t=>t===a?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Ye.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,Ye.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function Io(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?Qe(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zo=Symbol("radix.slottable");function Go(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===zo}var Wo=s[" useInsertionEffect ".trim().toString()]||jr;function $o({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=function({defaultProp:e,onChange:t}){const[r,n]=i.useState(e),o=i.useRef(r),s=i.useRef(t);return Wo(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}({defaultProp:t,onChange:r}),c=void 0!==e,l=c?e:o;{const t=i.useRef(void 0!==e);i.useEffect(()=>{const e=t.current;if(e!==c){}t.current=c},[c,n])}const u=i.useCallback(t=>{if(c){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&a.current?.(r)}else s(t)},[c,e,s,a]);return[l,u]}Symbol("RADIX:SYNC_STATE");var Ho=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Bo=new WeakMap,Uo=new WeakMap,Ko={},Qo=0,Vo=function(e){return e&&(e.host||Vo(e.parentNode))},Yo=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Vo(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Ko[r]||(Ko[r]=new WeakMap);var i=Ko[r],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(Bo.get(e)||0)+1,l=(i.get(e)||0)+1;Bo.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Uo.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),a.clear(),Qo++,function(){s.forEach(function(e){var t=Bo.get(e)-1,o=i.get(e)-1;Bo.set(e,t),i.set(e,o),t||(Uo.has(e)||e.removeAttribute(n),Uo.delete(e)),o||e.removeAttribute(r)}),--Qo||(Bo=new WeakMap,Bo=new WeakMap,Uo=new WeakMap,Ko={})}},Xo=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Ho(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Yo(n,o,r,"aria-hidden")):function(){return null}};var Zo=function(){return Zo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zo.apply(this,arguments)};function Jo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function ei(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var ti="right-scroll-bar-position",ri="width-before-scroll-bar";function ni(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var oi="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ii=new WeakMap;function si(e,t){var r,n,o,s=(r=t||null,n=function(t){return e.forEach(function(e){return ni(e,t)})},(o=(0,i.useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return oi(function(){var t=ii.get(s);if(t){var r=new Set(t),n=new Set(e),o=s.current;r.forEach(function(e){n.has(e)||ni(e,null)}),n.forEach(function(e){r.has(e)||ni(e,o)})}ii.set(s,e)},[e]),s}function ai(e){return e}function ci(e,t){void 0===t&&(t=ai);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}var li=function(e){void 0===e&&(e={});var t=ci(null);return t.options=Zo({async:!0,ssr:!1},e),t}(),ui=function(){},fi=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ui,onWheelCapture:ui,onTouchMoveCapture:ui}),o=n[0],s=n[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,g=void 0===b?"div":b,w=e.gapMode,x=Jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,j=si([r,t]),k=Zo(Zo({},x),o);return i.createElement(i.Fragment,null,f&&i.createElement(O,{sideCar:li,removeScrollBar:u,shards:d,noRelative:h,noIsolation:m,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?i.cloneElement(i.Children.only(c),Zo(Zo({},k),{ref:j})):i.createElement(g,Zo({},k,{className:l,ref:j}),c))});fi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fi.classNames={fullWidth:ri,zeroRight:ti};var di,pi=function(e){var t=e.sideCar,r=Jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,Zo({},r))};pi.isSideCarExport=!0;function hi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=di||o.nc;return t&&e.setAttribute("nonce",t),e}var mi=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=hi())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e,t=(e=mi(),function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},yi={left:0,top:0,right:0,gap:0},bi=function(e){return parseInt(e||"",10)||0},gi=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return yi;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[bi(r),bi(n),bi(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},wi=vi(),xi="data-scroll-locked",Oi=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(a,"px ").concat(n,";\n  }\n  body[").concat(xi,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ti," {\n    right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(ri," {\n    margin-right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(ti," .").concat(ti," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(ri," .").concat(ri," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(xi,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ji=function(){var e=parseInt(document.body.getAttribute(xi)||"0",10);return isFinite(e)?e:0},ki=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;i.useEffect(function(){return document.body.setAttribute(xi,(ji()+1).toString()),function(){var e=ji()-1;e<=0?document.body.removeAttribute(xi):document.body.setAttribute(xi,e.toString())}},[]);var s=i.useMemo(function(){return gi(o)},[o]);return i.createElement(wi,{styles:Oi(s,!t,o,r?"":"!important")})},Si=!1;if("undefined"!=typeof window)try{var Pi=Object.defineProperty({},"passive",{get:function(){return Si=!0,!0}});window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch(e){Si=!1}var Ei=!!Si&&{passive:!1},Ci=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Ni=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_i(e,n)){var o=Ri(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_i=function(e,t){return"v"===e?function(e){return Ci(e,"overflowY")}(t):function(e){return Ci(e,"overflowX")}(t)},Ri=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Ai=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ti=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},Mi=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Fi=0,qi=[];function Li(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ii=(zi=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Fi++)[0],s=i.useState(vi)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=ei([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Ai(e),s=r.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=Ni(f,u);if(!h)return!0;if(h?o=f:(o="v"===f?"h":"v",h=Ni(f,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=o),!o)return!0;var m=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,f=0,d=0;do{if(!a)break;var p=Ri(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&_i(e,a)&&(f+=m,d+=h);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(f)<1||!o&&s>f)||!u&&(o&&Math.abs(d)<1||!o&&-s>d))&&(l=!0),l}(m,t,e,"h"===m?c:l,!0)},[]),l=i.useCallback(function(e){var r=e;if(qi.length&&qi[qi.length-1]===s){var n="deltaY"in r?Ti(r):Ai(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(e){return e.contains(r.target)});(i.length>0?c(r,i[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=i.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Li(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=i.useCallback(function(e){r.current=Ai(e),n.current=void 0},[]),d=i.useCallback(function(t){u(t.type,Ti(t),t.target,c(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,Ai(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ei),document.addEventListener("touchmove",l,Ei),document.addEventListener("touchstart",f,Ei),function(){qi=qi.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,Ei),document.removeEventListener("touchmove",l,Ei),document.removeEventListener("touchstart",f,Ei)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(s,{styles:Mi(o)}):null,h?i.createElement(ki,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},li.useMedium(zi),pi);var zi,Gi=i.forwardRef(function(e,t){return i.createElement(fi,Zo({},e,{ref:t,sideCar:Ii}))});Gi.classNames=fi.classNames;const Wi=Gi;var $i="Popover",[Hi,Bi]=Ut($i,[mo]),Ui=mo(),[Ki,Qi]=Hi($i),Vi=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=Ui(t),l=i.useRef(null),[u,f]=i.useState(!1),[d,p]=$o({prop:n,defaultProp:o??!1,onChange:s,caller:$i});return(0,Ye.jsx)(Ro,{...c,children:(0,Ye.jsx)(Ki,{scope:t,contentId:Pr(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:a,children:r})})};Vi.displayName=$i;var Yi="PopoverAnchor",Xi=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(Yi,r),s=Ui(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),(0,Ye.jsx)(Ao,{...s,...n,ref:t})});Xi.displayName=Yi;var Zi="PopoverTrigger",Ji=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(Zi,r),i=Ui(r),s=Ve(t,o.triggerRef),a=(0,Ye.jsx)(Jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ps(o.open),...n,ref:s,onClick:Bt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,Ye.jsx)(Ao,{asChild:!0,...i,children:a})});Ji.displayName=Zi;var es="PopoverPortal",[ts,rs]=Hi(es,{forceMount:void 0}),ns=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Qi(es,t);return(0,Ye.jsx)(ts,{scope:t,forceMount:r,children:(0,Ye.jsx)(Fo,{present:r||i.open,children:(0,Ye.jsx)(Mo,{asChild:!0,container:o,children:n})})})};ns.displayName=es;var os="PopoverContent",is=i.forwardRef((e,t)=>{const r=rs(os,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Qi(os,e.__scopePopover);return(0,Ye.jsx)(Fo,{present:n||i.open,children:i.modal?(0,Ye.jsx)(as,{...o,ref:t}):(0,Ye.jsx)(cs,{...o,ref:t})})});is.displayName=os;var ss=Lo("PopoverContent.RemoveScroll"),as=i.forwardRef((e,t)=>{const r=Qi(os,e.__scopePopover),n=i.useRef(null),o=Ve(t,n),s=i.useRef(!1);return i.useEffect(()=>{const e=n.current;if(e)return Xo(e)},[]),(0,Ye.jsx)(Wi,{as:ss,allowPinchZoom:!0,children:(0,Ye.jsx)(ls,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Bt(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;s.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:Bt(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),cs=i.forwardRef((e,t)=>{const r=Qi(os,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return(0,Ye.jsx)(ls,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,s=r.triggerRef.current?.contains(i);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ls=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...f}=e,d=Qi(os,r),p=Ui(r);return fr(),(0,Ye.jsx)(vr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,Ye.jsx)(sr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>d.onOpenChange(!1),children:(0,Ye.jsx)(To,{"data-state":ps(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),us="PopoverClose",fs=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qi(us,r);return(0,Ye.jsx)(Jt.button,{type:"button",...n,ref:t,onClick:Bt(e.onClick,()=>o.onOpenChange(!1))})});fs.displayName=us;var ds=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ui(r);return(0,Ye.jsx)(Do,{...o,...n,ref:t})});function ps(e){return e?"open":"closed"}ds.displayName="PopoverArrow";var hs=is;function ms(e){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(e)}var vs=["className","align","sideOffset"];function ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ms(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ms(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gs=Vi,ws=Ji,xs=i.forwardRef(function(e,t){var r=e.className,n=e.align,o=void 0===n?"center":n,i=e.sideOffset,s=void 0===i?4:i,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,vs);return(0,Ye.jsx)(hs,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(r),!0).forEach(function(t){bs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:o,sideOffset:s,className:Ue("vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},a))});function Os(e){return Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(e)}function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ks(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Os(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Os(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}xs.displayName=hs.displayName;var Ss=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?js(Object(r),!0).forEach(function(t){ks(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const Ps=Ss;let Es={data:""},Cs=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Es},Ns=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_s=/\/\*[^]*?\*\/|  +/g,Rs=/\n+/g,As=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+s+";":n+="f"==i[1]?As(s,i):i+"{"+As(s,"k"==i[1]?"":t)+"}":"object"==typeof s?n+=As(s,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=s&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=As.p?As.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Ts={},Ds=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+Ds(e[r]);return t}return e},Ms=(e,t,r,n,o)=>{let i=Ds(e),s=Ts[i]||(Ts[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!Ts[s]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=Ns.exec(e.replace(_s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(Rs," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(Rs," ").trim();return n[0]})(e);Ts[s]=As(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let a=r&&Ts.g;return r&&(Ts.g=Ts[s]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Ts[s],t,n,a),s};function Fs(e){let t=this||{},r=e.call?e(t.p):e;return Ms(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":As(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,Cs(t.target),t.g,t.o,t.k)}Fs.bind({g:1});let qs,Ls,Is,zs=Fs.bind({k:1});function Gs(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;r.p=Object.assign({theme:Ls&&Ls()},a),r.o=/go\d/.test(c),a.className=Fs.apply(r,n)+(c?" "+c:""),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),Is&&l[0]&&Is(a),qs(l,a)}return t?t(o):o}}var Ws=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,$s=(()=>{let e=0;return()=>(++e).toString()})(),Hs=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Bs="default",Us=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Us(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Ks=[],Qs={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},Vs={},Ys=(e,t=Bs)=>{Vs[t]=Us(Vs[t]||Qs,e),Ks.forEach(([e,r])=>{e===t&&r(Vs[t])})},Xs=e=>Object.keys(Vs).forEach(t=>Ys(e,t)),Zs=(e=Bs)=>t=>{Ys(t,e)},Js={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ea=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||$s()}))(t,e,r);return Zs(n.toasterId||(e=>Object.keys(Vs).find(t=>Vs[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},ta=(e,t)=>ea("blank")(e,t);ta.error=ea("error"),ta.success=ea("success"),ta.loading=ea("loading"),ta.custom=ea("custom"),ta.dismiss=(e,t)=>{let r={type:3,toastId:e};t?Zs(t)(r):Xs(r)},ta.dismissAll=e=>ta.dismiss(void 0,e),ta.remove=(e,t)=>{let r={type:4,toastId:e};t?Zs(t)(r):Xs(r)},ta.removeAll=e=>ta.remove(void 0,e),ta.promise=(e,t,r)=>{let n=ta.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?Ws(t.success,e):void 0;return o?ta.success(o,{id:n,...r,...null==r?void 0:r.success}):ta.dismiss(n),e}).catch(e=>{let o=t.error?Ws(t.error,e):void 0;o?ta.error(o,{id:n,...r,...null==r?void 0:r.error}):ta.dismiss(n)}),e};var ra=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Bs)=>{let[r,n]=(0,i.useState)(Vs[t]||Qs),o=(0,i.useRef)(Vs[t]);(0,i.useEffect)(()=>(o.current!==Vs[t]&&n(Vs[t]),Ks.push([t,n]),()=>{let e=Ks.findIndex(([e])=>e===t);e>-1&&Ks.splice(e,1)}),[t]);let s=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Js[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:s}})(e,t),o=(0,i.useRef)(new Map).current,s=(0,i.useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),a({type:4,toastId:e})},t);o.set(e,r)},[]);(0,i.useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>ta.dismiss(r.id,t),n);r.visible&&ta.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let a=(0,i.useCallback)(Zs(t),[t]),c=(0,i.useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,i.useCallback)((e,t)=>{a({type:1,toast:{id:e,height:t}})},[a]),u=(0,i.useCallback)(()=>{n&&a({type:6,time:Date.now()})},[n,a]),f=(0,i.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},s=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=s.findIndex(t=>t.id===e.id),c=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,i.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)s(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,s]),{toasts:r,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:f}}},na=zs`
    2 from {
    3   transform: scale(0) rotate(45deg);
    4         opacity: 0;
    5 }
    6 to {
    7  transform: scale(1) rotate(45deg);
    8   opacity: 1;
    9 }`,oa=zs`
    10 from {
    11   transform: scale(0);
    12   opacity: 0;
    13 }
    14 to {
    15   transform: scale(1);
    16   opacity: 1;
    17 }`,ia=zs`
    18 from {
    19   transform: scale(0) rotate(90deg);
    20         opacity: 0;
    21 }
    22 to {
    23   transform: scale(1) rotate(90deg);
    24         opacity: 1;
    25 }`,sa=Gs("div")`
    26   width: 20px;
    27   opacity: 0;
    28   height: 20px;
    29   border-radius: 10px;
    30   background: ${e=>e.primary||"#ff4b4b"};
    31   position: relative;
    32   transform: rotate(45deg);
    33 
    34   animation: ${na} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    35     forwards;
    36   animation-delay: 100ms;
    37 
    38   &:after,
    39   &:before {
    40     content: '';
    41     animation: ${oa} 0.15s ease-out forwards;
    42     animation-delay: 150ms;
    43     position: absolute;
    44     border-radius: 3px;
    45     opacity: 0;
    46     background: ${e=>e.secondary||"#fff"};
    47     bottom: 9px;
    48     left: 4px;
    49     height: 2px;
    50     width: 12px;
    51   }
    52 
    53   &:before {
    54     animation: ${ia} 0.15s ease-out forwards;
    55     animation-delay: 180ms;
    56     transform: rotate(90deg);
    57   }
    58 `,aa=zs`
    59   from {
    60     transform: rotate(0deg);
    61   }
    62   to {
    63     transform: rotate(360deg);
    64   }
    65 `,ca=Gs("div")`
    66   width: 12px;
    67   height: 12px;
    68   box-sizing: border-box;
    69   border: 2px solid;
    70   border-radius: 100%;
    71   border-color: ${e=>e.secondary||"#e0e0e0"};
    72   border-right-color: ${e=>e.primary||"#616161"};
    73   animation: ${aa} 1s linear infinite;
    74 `,la=zs`
    75 from {
    76   transform: scale(0) rotate(45deg);
    77         opacity: 0;
    78 }
    79 to {
    80   transform: scale(1) rotate(45deg);
    81         opacity: 1;
    82 }`,ua=zs`
    83 0% {
    84         height: 0;
    85         width: 0;
    86         opacity: 0;
    87 }
    88 40% {
    89   height: 0;
    90         width: 6px;
    91         opacity: 1;
    92 }
    93 100% {
    94   opacity: 1;
    95   height: 10px;
    96 }`,fa=Gs("div")`
    97   width: 20px;
    98   opacity: 0;
    99   height: 20px;
    100   border-radius: 10px;
    101   background: ${e=>e.primary||"#61d345"};
    102   position: relative;
    103   transform: rotate(45deg);
    104 
    105   animation: ${la} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    106     forwards;
    107   animation-delay: 100ms;
    108   &:after {
    109     content: '';
    110     box-sizing: border-box;
    111     animation: ${ua} 0.2s ease-out forwards;
    112     opacity: 0;
    113     animation-delay: 200ms;
    114     position: absolute;
    115     border-right: 2px solid;
    116     border-bottom: 2px solid;
    117     border-color: ${e=>e.secondary||"#fff"};
    118     bottom: 6px;
    119     left: 6px;
    120     height: 10px;
    121     width: 6px;
    122   }
    123 `,da=Gs("div")`
    124   position: absolute;
    125 `,pa=Gs("div")`
    126   position: relative;
    127   display: flex;
    128   justify-content: center;
    129   align-items: center;
    130   min-width: 20px;
    131   min-height: 20px;
    132 `,ha=zs`
    133 from {
    134   transform: scale(0.6);
    135   opacity: 0.4;
    136 }
    137 to {
    138   transform: scale(1);
    139   opacity: 1;
    140 }`,ma=Gs("div")`
    141   position: relative;
    142   transform: scale(0.6);
    143   opacity: 0.4;
    144   min-width: 20px;
    145   animation: ${ha} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    146     forwards;
    147 `,va=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?i.createElement(ma,null,t):t:"blank"===r?null:i.createElement(pa,null,i.createElement(ca,{...n}),"loading"!==r&&i.createElement(da,null,"error"===r?i.createElement(sa,{...n}):i.createElement(fa,{...n})))},ya=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,ba=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,ga=Gs("div")`
    148   display: flex;
    149   align-items: center;
    150   background: #fff;
    151   color: #363636;
    152   line-height: 1.3;
    153   will-change: transform;
    154   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
    155   max-width: 350px;
    156   pointer-events: auto;
    157   padding: 8px 10px;
    158   border-radius: 8px;
    159 `,wa=Gs("div")`
    160   display: flex;
    161   justify-content: center;
    162   margin: 4px 10px;
    163   color: inherit;
    164   flex: 1 1 auto;
    165   white-space: pre-line;
    166 `,xa=i.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Hs()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ya(r),ba(r)];return{animation:t?`${zs(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${zs(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=i.createElement(va,{toast:e}),a=i.createElement(wa,{...e.ariaProps},Ws(e.message,e));return i.createElement(ga,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:s,message:a}):i.createElement(i.Fragment,null,s,a))});!function(e,t,r,n){As.p=t,qs=e,Ls=r,Is=n}(i.createElement);var Oa=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let s=i.useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return i.createElement("div",{ref:s,className:t,style:r},o)},ja=Fs`
    167   z-index: 9999;
    168   > * {
    169     pointer-events: auto;
    170   }
    171 `,ka=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:s,containerStyle:a,containerClassName:c})=>{let{toasts:l,handlers:u}=ra(r,s);return i.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(r=>{let s=r.position||t,a=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Hs()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(s,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return i.createElement(Oa,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?ja:"",style:a},"custom"===r.type?Ws(r.message,r):o?o(r):i.createElement(xa,{toast:r,position:s}))}))},Sa=ta;function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}var Ea=function(e){return e instanceof File||e instanceof Blob},Ca=function(e){return"string"==typeof e},Na=function(e){return"boolean"==typeof e},_a=function(e){return"number"==typeof e},Ra=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){Ea(e)||Ca(e)?t.append("".concat(r,"[").concat(n,"]"),e):Na(e)||_a(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===Pa(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):Ea(i)||Ca(i)?t.append(r,i):Na(i)?t.append(r,i.toString()):_a(i)?t.append(r,"".concat(i)):"object"===Pa(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t};function Aa(e){return Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(e)}function Ta(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Da(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Da(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Da(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Da(f,"constructor",l),Da(l,"constructor",c),c.displayName="GeneratorFunction",Da(l,o,"GeneratorFunction"),Da(f),Da(f,o,"Generator"),Da(f,n,function(){return this}),Da(f,"toString",function(){return"[object Generator]"}),(Ta=function(){return{w:i,m:d}})()}function Da(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Da=function(e,t,r,n){function i(t,r){Da(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Da(e,t,r,n)}function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(r),!0).forEach(function(t){qa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ma(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function qa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Aa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Aa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function La(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Ia(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){La(i,n,o,s,a,"next",e)}function a(e){La(i,n,o,s,a,"throw",e)}s(void 0)})}}function za(e,t){return Ga.apply(this,arguments)}function Ga(){return Ga=Ia(Ta().m(function e(t,r){var n,o,i,s,a,c,l,u,f,d,p,h,m;return Ta().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=Ps.wp_rest_nonce,i=Ps.nonce_key,s=Ps.nonce_value,a="".concat(t),c=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",l=Fa({"X-WP-Nonce":o},r.headers||{}),u={method:c,headers:l},["GET","DELETE"].includes(c)?((f=new URLSearchParams(null==r?void 0:r.body)).append(i,s),a+="?".concat(f.toString())):r.body&&((d=Ra(r.body)).append(i,s),u.body=d),e.p=1,e.n=2,fetch(a,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(h=e.v).status_code){e.n=4;break}return e.a(2,h);case 4:throw new Error(h.message);case 5:e.n=7;break;case 6:throw e.p=6,m=e.v,new Error((null==m?void 0:m.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),Ga.apply(this,arguments)}var Wa={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$a=new class{#e=Wa;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var Ha=function(e){setTimeout(e,0)};var Ba=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=Ha;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}(),Ua="undefined"==typeof window||"Deno"in globalThis;function Ka(){}function Qa(e,t){return"function"==typeof e?e(t):e}function Va(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Xa(s,t.options))return!1}else if(!Ja(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Ya(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Za(t.options.mutationKey)!==Za(i))return!1}else if(!Ja(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Xa(e,t){return(t?.queryKeyHashFn||Za)(e)}function Za(e){return JSON.stringify(e,(e,t)=>nc(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Ja(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>Ja(e[r],t[r])))}var ec=Object.prototype.hasOwnProperty;function tc(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=rc(e)&&rc(t);if(!(n||nc(e)&&nc(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const s=n?l:i[l],u=e[s],f=t[s];if(u===f){a[s]=u,(n?l<o:ec.call(e,s))&&c++;continue}if(null===u||null===f||"object"!=typeof u||"object"!=typeof f){a[s]=f;continue}const d=tc(u,f,r+1);a[s]=d,d===u&&c++}return o===s&&c===o?e:a}function rc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nc(e){if(!oc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!oc(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function oc(e){return"[object Object]"===Object.prototype.toString.call(e)}function ic(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?tc(e,t):t}function sc(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function ac(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cc=Symbol();function lc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==cc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var uc=(()=>{let e=()=>Ua;return{isServer:()=>e(),setIsServer(t){e=t}}})(),fc=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#r=$a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(uc.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#r&&($a.clearTimeout(this.#r),this.#r=void 0)}},dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pc=new class extends dc{#n;#o;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:"hidden"!==globalThis.document?.visibilityState}},hc=new class extends dc{#s=!0;#o;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#o||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#o?.(),this.#o=void 0)}setEventListener(e){this.#i=e,this.#o?.(),this.#o=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function mc(e){return Math.min(1e3*2**e,3e4)}function vc(e){return"online"!==(e??"online")||hc.isOnline()}var yc=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function bc(e){let t,r=!1,n=0;const o=function(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}(),i=()=>"pending"!==o.status,s=()=>pc.isFocused()&&("always"===e.networkMode||hc.isOnline())&&e.canRun(),a=()=>vc(e.networkMode)&&e.canRun(),c=e=>{i()||(t?.(),o.resolve(e))},l=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||s())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),f=()=>{if(i())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{if(i())return;const o=e.retry??(uc.isServer()?0:3),a=e.retryDelay??mc,c="function"==typeof a?a(n,t):a,d=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);var p;!r&&d?(n++,e.onFail?.(n,t),(p=c,new Promise(e=>{$a.setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{r?l(t):f()})):l(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const r=new yc(t);l(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?f():u().then(f),o)}}var gc=class extends fc{#a;#c;#l;#u;constructor(e){super(),this.#a=e.client,this.mutationId=e.mutationId,this.#l=e.mutationCache,this.#c=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#c.includes(e)||(this.#c.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#c=this.#c.filter(t=>t!==e),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#c.length||("pending"===this.state.status?this.scheduleGc():this.#l.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#f({type:"continue"})},r={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#u=bc({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const n="pending"===this.state.status,o=!this.#u.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:o}),this.#l.config.onMutate&&await this.#l.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#u.start();return await(this.#l.config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(this.#l.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),this.#f({type:"success",data:i}),i}catch(t){try{await(this.#l.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#l.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#f({type:"error",error:t}),t}finally{this.#l.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ba.batch(()=>{this.#c.forEach(t=>{t.onMutationUpdate(e)}),this.#l.notify({mutation:this,type:"updated",action:e})})}};var wc=class extends dc{#a;#d=void 0;#p;#h;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#m()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#a.defaultMutationOptions(e),function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&Za(t.mutationKey)!==Za(this.options.mutationKey)?this.reset():"pending"===this.#p?.state.status&&this.#p.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#m(),this.#v(e)}getCurrentResult(){return this.#d}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#m(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#a.getMutationCache().build(this.#a,this.options),this.#p.addObserver(this),this.#p.execute(e)}#m(){const e=this.#p?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){Ba.batch(()=>{if(this.#h&&this.hasListeners()){const t=this.#d.variables,r=this.#d.context,n={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#h.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{this.#h.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#h.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#d)})})}},xc=i.createContext(void 0),Oc=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Ye.jsx)(xc.Provider,{value:e,children:t}));function jc(e,t){const r=(e=>{const t=i.useContext(xc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(t),[n]=i.useState(()=>new wc(r,e));i.useEffect(()=>{n.setOptions(e)},[n,e]);const o=i.useSyncExternalStore(i.useCallback(e=>n.subscribe(Ba.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=i.useCallback((e,t)=>{n.mutate(e,t).catch(Ka)},[n]);if(o.error&&(a=n.options.throwOnError,c=[o.error],"function"==typeof a?a(...c):a))throw o.error;var a,c;return{...o,mutate:s,mutateAsync:o.mutate}}function kc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Sc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Sc(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Sc(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Sc(f,"constructor",l),Sc(l,"constructor",c),c.displayName="GeneratorFunction",Sc(l,o,"GeneratorFunction"),Sc(f),Sc(f,o,"Generator"),Sc(f,n,function(){return this}),Sc(f,"toString",function(){return"[object Generator]"}),(kc=function(){return{w:i,m:d}})()}function Sc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sc=function(e,t,r,n){function i(t,r){Sc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Sc(e,t,r,n)}function Pc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Ec(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Pc(i,n,o,s,a,"next",e)}function a(e){Pc(i,n,o,s,a,"throw",e)}s(void 0)})}}var Cc=function(){var e=Ec(kc().m(function e(t){var r;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,za(Ps.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),Nc=function(){var e=Ec(kc().m(function e(){var t;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc({action:"versatile_quickact_plugins_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),_c=function(){var e=Ec(kc().m(function e(){var t;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc({action:"versatile_quickact_themes_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),Rc=function(){return jc({mutationFn:(e=Ec(kc().m(function e(t){var r;return kc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Cc(t);case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){Sa.success(e.message||(0,a.__)("Quick action completed successfully!","versatile-toolkit"))},onError:function(e){Sa.error(e.message||(0,a.__)("Quick action failed","versatile-toolkit"))}});var e};function Ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dc(e,t){var r=Ac((0,i.useState)(e),2),n=r[0],o=r[1];return(0,i.useEffect)(function(){var r=window.setTimeout(function(){return o(e)},t);return function(){return window.clearTimeout(r)}},[e,t]),n}const Mc=f("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Fc=f("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),qc=f("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Lc(e){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(e)}function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(r),!0).forEach(function(t){Gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Gc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Lc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return $c(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):($c(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,$c(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,$c(f,"constructor",l),$c(l,"constructor",c),c.displayName="GeneratorFunction",$c(l,o,"GeneratorFunction"),$c(f),$c(f,o,"Generator"),$c(f,n,function(){return this}),$c(f,"toString",function(){return"[object Generator]"}),(Wc=function(){return{w:i,m:d}})()}function $c(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$c=function(e,t,r,n){function i(t,r){$c(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$c(e,t,r,n)}function Hc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Bc(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Hc(i,n,o,s,a,"next",e)}function a(e){Hc(i,n,o,s,a,"throw",e)}s(void 0)})}}function Uc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kc(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Qc=function(){var e=Uc((0,i.useState)([]),2),t=e[0],r=e[1],n=Uc((0,i.useState)(!1),2),o=n[0],s=n[1],c=Uc((0,i.useState)(null),2),l=c[0],u=c[1],f=Uc((0,i.useState)(null),2),d=f[0],p=f[1],h=Uc((0,i.useState)(""),2),m=h[0],v=h[1],y=Dc(m,300),b=Rc(),g=b.mutateAsync,w=b.isPending,x=(0,i.useCallback)(Bc(Wc().m(function e(){var t;return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:return s(!0),e.p=1,e.n=2,Nc();case 2:t=e.v,r(t);case 3:return e.p=3,s(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,i.useEffect)(function(){x()},[x]);var O=function(){var e=Bc(Wc().m(function e(t,n){return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:return u(t),e.p=1,e.n=2,g({action:n?"versatile_quickact_plugin_activate":"versatile_quickact_plugin_deactivate",plugin_file:t});case 2:r(function(e){return e.map(function(e){return e.file===t?zc(zc({},e),{},{is_active:n}):e})});case 3:return e.p=3,u(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Bc(Wc().m(function e(t){return Wc().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,a.__)("Are you sure you want to delete this plugin?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return p(t),e.p=2,e.n=3,g({action:"versatile_quickact_plugin_delete",plugin_file:t});case 3:r(function(e){return e.filter(function(e){return e.file!==t})});case 4:return e.p=4,p(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),k=(0,i.useMemo)(function(){var e=y.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.file," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,y]);return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-section-head",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Plugin List","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,Ye.jsx)(Mc,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Ye.jsx)(Ht,{type:"search",value:m,className:"vt-w-max vt-pl-8 vt-h-5",onChange:function(e){return v(e.target.value)},placeholder:(0,a.__)("Search plugins…","versatile-toolkit"),autoComplete:"off","aria-label":(0,a.__)("Search plugins","versatile-toolkit"),disabled:o})]})]}),o&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("Loading plugins...","versatile-toolkit")}),!o&&0===t.length&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("No plugins found.","versatile-toolkit")}),!o&&t.length>0&&0===k.length&&(0,Ye.jsx)("div",{style:{minHeight:"120px"},children:(0,a.__)("No plugins match your search.","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-section-list",children:k.map(function(e){return(0,Ye.jsxs)("div",{className:"vt-quickact-row ".concat(e.is_active?"vt-quickact-row-active":""),children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,Ye.jsxs)("div",{className:"vt-quickact-row-meta",children:[e.file," ",e.version?"(".concat(e.version,")"):""]})]}),(0,Ye.jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,Ye.jsx)(dt,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:w,onClick:function(){O(e.file,!e.is_active)},children:(0,Ye.jsx)(It,{isLoading:l===e.file,loadingText:"loading",size:"xs",children:e.is_active?(0,a.__)("Deactivate","versatile-toolkit"):(0,a.__)("Activate","versatile-toolkit")})}),(0,Ye.jsxs)(gs,{children:[(0,Ye.jsx)(ws,{asChild:!0,children:(0,Ye.jsxs)(dt,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,Ye.jsx)(Fc,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,Ye.jsx)("span",{className:"vt-sr-only",children:(0,a.__)("Open menu","versatile-toolkit")})]})}),(0,Ye.jsx)(xs,{className:"vt-w-max vt-p-1",align:"end",children:(0,Ye.jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,Ye.jsx)(dt,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:w,onClick:function(){j(e.file)},children:(0,Ye.jsxs)(It,{isLoading:d===e.file,loadingText:"loading",size:"xs",children:[(0,Ye.jsx)(qc,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,Ye.jsx)("span",{children:(0,a.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.file)})})]})};function Vc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Yc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Yc(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Yc(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Yc(f,"constructor",l),Yc(l,"constructor",c),c.displayName="GeneratorFunction",Yc(l,o,"GeneratorFunction"),Yc(f),Yc(f,o,"Generator"),Yc(f,n,function(){return this}),Yc(f,"toString",function(){return"[object Generator]"}),(Vc=function(){return{w:i,m:d}})()}function Yc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yc=function(e,t,r,n){function i(t,r){Yc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Yc(e,t,r,n)}function Xc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}const Zc=function(){var e=Rc(),t=e.mutateAsync,r=e.isPending,n=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Xc(i,n,o,s,a,"next",e)}function a(e){Xc(i,n,o,s,a,"throw",e)}s(void 0)})}}(Vc().m(function e(){return Vc().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Settings","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-quickact-row vt-quickact-row-comfortable",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:(0,a.__)("Permalink Reset","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-row-meta",children:(0,a.__)("Flush and regenerate rewrite rules.","versatile-toolkit")})]}),(0,Ye.jsx)(dt,{variant:"softBlue",size:"softBlue",type:"button",disabled:r,onClick:function(){n()},children:(0,Ye.jsx)(It,{isLoading:r,loadingText:(0,a.__)("loading","versatile-toolkit"),size:"sm",children:(0,a.__)("Reset","versatile-toolkit")})})]})]})};function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?el(Object(r),!0).forEach(function(t){rl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Jc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return ol(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ol(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ol(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,ol(f,"constructor",l),ol(l,"constructor",c),c.displayName="GeneratorFunction",ol(l,o,"GeneratorFunction"),ol(f),ol(f,o,"Generator"),ol(f,n,function(){return this}),ol(f,"toString",function(){return"[object Generator]"}),(nl=function(){return{w:i,m:d}})()}function ol(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ol=function(e,t,r,n){function i(t,r){ol(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ol(e,t,r,n)}function il(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function sl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){il(i,n,o,s,a,"next",e)}function a(e){il(i,n,o,s,a,"throw",e)}s(void 0)})}}function al(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const ll=function(){var e=al((0,i.useState)([]),2),t=e[0],r=e[1],n=al((0,i.useState)(!1),2),o=n[0],s=n[1],c=al((0,i.useState)(null),2),l=c[0],u=c[1],f=al((0,i.useState)(null),2),d=f[0],p=f[1],h=al((0,i.useState)(""),2),m=h[0],v=h[1],y=Dc(m,300),b=Rc(),g=b.mutateAsync,w=b.isPending,x=(0,i.useCallback)(sl(nl().m(function e(){var t;return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:return s(!0),e.p=1,e.n=2,_c();case 2:t=e.v,r(t);case 3:return e.p=3,s(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,i.useEffect)(function(){x()},[x]);var O=function(){var e=sl(nl().m(function e(t,n){return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:return u(t),e.p=1,e.n=2,g({action:n?"versatile_quickact_theme_activate":"versatile_quickact_theme_deactivate",stylesheet:t});case 2:r(function(e){return e.map(function(e){return e.stylesheet===t?tl(tl({},e),{},{is_active:n}):n?tl(tl({},e),{},{is_active:!1}):e})});case 3:return e.p=3,u(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=sl(nl().m(function e(t){return nl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,a.__)("Are you sure you want to delete this theme?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return p(t),e.p=2,e.n=3,g({action:"versatile_quickact_theme_delete",stylesheet:t});case 3:r(function(e){return e.filter(function(e){return e.stylesheet!==t})});case 4:return e.p=4,p(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),k=(0,i.useMemo)(function(){var e=y.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.stylesheet," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,y]);return(0,Ye.jsxs)("div",{className:"vt-quickact-section",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-section-head",children:[(0,Ye.jsx)("div",{className:"vt-quickact-section-title",children:(0,a.__)("Theme List","versatile-toolkit")}),(0,Ye.jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,Ye.jsx)(Mc,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,Ye.jsx)(Ht,{type:"search",className:"vt-w-max vt-pl-8 vt-h-5",value:m,onChange:function(e){return v(e.target.value)},placeholder:(0,a.__)("Search themes…","versatile-toolkit"),autoComplete:"off","aria-label":(0,a.__)("Search themes","versatile-toolkit"),disabled:o})]})]}),o&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("Loading themes...","versatile-toolkit")}),!o&&0===t.length&&(0,Ye.jsx)("div",{style:{minHeight:"300px"},children:(0,a.__)("No themes found.","versatile-toolkit")}),!o&&t.length>0&&0===k.length&&(0,Ye.jsx)("div",{style:{minHeight:"120px"},children:(0,a.__)("No themes match your search.","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-quickact-section-list",children:k.map(function(e){return(0,Ye.jsxs)("div",{className:"vt-quickact-row".concat(e.is_active?" vt-quickact-row-active":""),children:[(0,Ye.jsxs)("div",{className:"vt-quickact-row-body",children:[(0,Ye.jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,Ye.jsxs)("div",{className:"vt-quickact-row-meta",children:[e.stylesheet," ",e.version?"(".concat(e.version,")"):""]})]}),(0,Ye.jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,Ye.jsx)(dt,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:w,onClick:function(){O(e.stylesheet,!e.is_active)},children:(0,Ye.jsx)(It,{isLoading:l===e.stylesheet,loadingText:"loading",size:"xs",children:e.is_active?(0,a.__)("Deactivate","versatile-toolkit"):(0,a.__)("Activate","versatile-toolkit")})}),(0,Ye.jsxs)(gs,{children:[(0,Ye.jsx)(ws,{asChild:!0,children:(0,Ye.jsxs)(dt,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,Ye.jsx)(Fc,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,Ye.jsx)("span",{className:"vt-sr-only",children:(0,a.__)("Open menu","versatile-toolkit")})]})}),(0,Ye.jsx)(xs,{className:"vt-w-max vt-p-1",align:"end",children:(0,Ye.jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,Ye.jsx)(dt,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:w,onClick:function(){j(e.stylesheet)},children:(0,Ye.jsxs)(It,{isLoading:d===e.stylesheet,loadingText:"loading",size:"xs",children:[(0,Ye.jsx)(qc,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,Ye.jsx)("span",{children:(0,a.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.stylesheet)})})]})};Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function ul(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return fl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,d.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,d.n=h,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:r.call(n,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(fl(t={},n,function(){return this}),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,fl(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,fl(f,"constructor",l),fl(l,"constructor",c),c.displayName="GeneratorFunction",fl(l,o,"GeneratorFunction"),fl(f),fl(f,o,"Generator"),fl(f,n,function(){return this}),fl(f,"toString",function(){return"[object Generator]"}),(ul=function(){return{w:i,m:d}})()}function fl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fl=function(e,t,r,n){function i(t,r){fl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},fl(e,t,r,n)}function dl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function pl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){dl(i,n,o,s,a,"next",e)}function a(e){dl(i,n,o,s,a,"throw",e)}s(void 0)})}}const hl=function(){var e=Rc(),t=e.mutateAsync,r=e.isPending,n=function(){var e=pl(ul().m(function e(){return ul().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,Ye.jsxs)("div",{className:"vt-border-b vt-border-gray-200 vt-pb-3 vt-flex vt-gap-1 vt-justify-between vt-items-center",children:[(0,Ye.jsx)("h2",{className:"vt-mr-2 vt-text-sm vt-font-medium vt-text-gray-500",children:(0,a.__)("Top Actions","versatile-toolkit")}),(0,Ye.jsx)("div",{className:"vt-flex vt-gap-2 vt-justify-between",children:(0,Ye.jsx)(dt,{type:"button",variant:"softBlue",size:"softBlue",disabled:r,onClick:n,children:(0,Ye.jsx)(It,{isLoading:r,loadingText:(0,a.__)("Resetting...","versatile-toolkit"),size:"xs",children:(0,a.__)("Reset Permalink","versatile-toolkit")})})})]})};function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yl=function(e){return e instanceof Element&&Boolean(e.closest(".vt-quickact-menu-wrapper"))};const bl=function(){var e=ml((0,i.useState)("plugins"),2),t=e[0],r=e[1];return(0,Ye.jsxs)("div",{className:"vt-quickact-trigger",onClick:function(e){yl(e.target)||(e.preventDefault(),e.stopPropagation())},onMouseDown:function(e){yl(e.target)||(e.preventDefault(),e.stopPropagation())},children:[(0,Ye.jsxs)("div",{children:[(0,a.__)("Quick Actions","versatile-toolkit"),(0,Ye.jsx)("span",{className:"vt-quickact-arrow","aria-hidden":"true",children:"▼"})]}),(0,Ye.jsxs)("div",{className:"vt-quickact-menu-wrapper",children:[(0,Ye.jsx)(hl,{}),(0,Ye.jsxs)("div",{className:"vt-quickact-menu vt-pt-3",children:[(0,Ye.jsxs)("div",{className:"vt-quickact-sidebar vt-border-r",children:[(0,Ye.jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("plugins"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("plugins")},children:(0,a.__)("Plugins","versatile-toolkit")}),(0,Ye.jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("themes"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("themes")},children:(0,a.__)("Themes","versatile-toolkit")})]}),(0,Ye.jsxs)("div",{className:"vt-quickact-content vt-pl-3",children:[(0,Ye.jsx)("div",{hidden:"plugins"!==t,children:(0,Ye.jsx)(Qc,{})}),(0,Ye.jsx)("div",{hidden:"themes"!==t,children:(0,Ye.jsx)(ll,{})}),(0,Ye.jsx)("div",{hidden:"settings"!==t,children:(0,Ye.jsx)(Zc,{})})]})]})]})]})};function gl(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let r=!1;const l=e=>{!function(e,t,r){let n,o=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=lc(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return l(e),e})(),s=await u(i),{maxPages:a}=t.options,c=o?ac:sc;return{pages:c(e.pages,s,a),pageParams:c(e.pageParams,n,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},r=(e?xl:wl)(n,t);a=await f(t,r,e)}else{const t=e??i.length;do{const e=0===c?s[0]??n.initialPageParam:wl(n,a);if(c>0&&null==e)break;a=await f(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function wl(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function xl(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Ol=class extends fc{#y;#b;#g;#w;#a;#u;#x;#O;constructor(e){super(),this.#O=!1,this.#x=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#w=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=Sl(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#y}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#x,...e},e?._type&&(this.#y=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=Sl(this.options);void 0!==e.data&&(this.setState(kl(e.data,e.dataUpdatedAt)),this.#b=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#w.remove(this)}setData(e,t){const r=ic(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#f({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#b}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,r=this,"function"==typeof t?t(r):t);var t,r})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Qa(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#w.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#O||this.#j()?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#w.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#j(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#O=!0,r.signal)})},o=()=>{const e=lc(this.options,t),r=(()=>{const e={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#O=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return n(e),e})(),s="infinite"===this.#y?gl(this.options.pages):this.options.behavior;s?.onFetch(i,this),this.#g=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#f({type:"fetch",meta:i.fetchOptions?.meta}),this.#u=bc({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof yc&&e.revert&&this.setState({...this.#g,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#u.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#w.config.onSuccess?.(e,this),this.#w.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof yc){if(e.silent)return this.#u.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#f({type:"error",error:e}),this.#w.config.onError?.(e,this),this.#w.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...jl(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...kl(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#g=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ba.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#w.notify({query:this,type:"updated",action:e})})}};function jl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vc(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function kl(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sl(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pl=class extends dc{constructor(e={}){super(),this.config=e,this.#k=new Map}#k;build(e,t,r){const n=t.queryKey,o=t.queryHash??Xa(n,t);let i=this.get(o);return i||(i=new Ol({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#k.has(e.queryHash)||(this.#k.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#k.get(e.queryHash);t&&(e.destroy(),t===e&&this.#k.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ba.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#k.get(e)}getAll(){return[...this.#k.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Va(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Va(e,t)):t}notify(e){Ba.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ba.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ba.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},El=class extends dc{constructor(e={}){super(),this.config=e,this.#S=new Set,this.#P=new Map,this.#E=0}#S;#P;#E;build(e,t,r){const n=new gc({client:e,mutationCache:this,mutationId:++this.#E,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#S.add(e);const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t);r?r.push(e):this.#P.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#S.delete(e)){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#P.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Cl(e);if("string"==typeof t){const r=this.#P.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Ba.batch(()=>{this.#S.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#S.clear(),this.#P.clear()})}getAll(){return Array.from(this.#S)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ya(t,e))}findAll(e={}){return this.getAll().filter(t=>Ya(e,t))}notify(e){Ba.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Ba.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ka))))}};function Cl(e){return e.options.scope?.id}var Nl=o(338),_l=Nl.createRoot(document.getElementById("vt-quickact-container")),Rl="vt-quickact-toaster-root",Al=new class{#C;#l;#x;#N;#_;#R;#A;#T;constructor(e={}){this.#C=e.queryCache||new Pl,this.#l=e.mutationCache||new El,this.#x=e.defaultOptions||{},this.#N=new Map,this.#_=new Map,this.#R=0}mount(){this.#R++,1===this.#R&&(this.#A=pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#T=hc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#R--,0===this.#R&&(this.#A?.(),this.#A=void 0,this.#T?.(),this.#T=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#l.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#C.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Qa(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#C.get(n.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return this.#C.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Ba.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){const t=this.#C;Ba.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#C;return Ba.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ba.batch(()=>this.#C.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Ka).catch(Ka)}invalidateQueries(e,t={}){return Ba.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ba.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Ka)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Ka)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t);return r.isStaleByTime(Qa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return hc.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#l}getDefaultOptions(){return this.#x}setDefaultOptions(e){this.#x=e}setQueryDefaults(e,t){this.#N.set(Za(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#N.values()],r={};return t.forEach(t=>{Ja(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#_.set(Za(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#_.values()],r={};return t.forEach(t=>{Ja(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#x.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Xa(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#x.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#l.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});_l.render((0,Ye.jsx)(qt,{onError:function(e,t){},children:(0,Ye.jsx)(Oc,{client:Al,children:(0,Ye.jsx)(bl,{})})}));var Tl=document.getElementById(Rl);Tl||((Tl=document.createElement("div")).id=Rl,document.body.appendChild(Tl)),Nl.createRoot(Tl).render((0,Ye.jsx)(ka,{position:"bottom-right",containerClassName:"vt-quickact-toaster",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}}))})();
     1(()=>{"use strict";var e={};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.cw=e=>{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const i=Object.create(null);r.r(i);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,r.d(i,s),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n=r.cw((e,t)=>{var r=a();t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot}),o=r.cw((e,t)=>{var r=s(),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var o,s={},l=null,u=null;for(o in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!c.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:n,type:e,key:l,ref:u,props:s,_owner:a.current}}t.Fragment=o,t.jsx=l,t.jsxs=l}),i=r.cw(e=>{e.exports=o()}),s=r.cw(e=>{e.exports=React}),a=r.cw(e=>{e.exports=ReactDOM});function c(){return c.c||(c.c=r.t(s(),2))}s();const l=wp.i18n,u=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");var d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const f=(0,s().forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...c},l)=>(0,s().createElement)("svg",{ref:l,...d,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:u("lucide",o),...c},[...a.map(([e,t])=>(0,s().createElement)(e,t)),...Array.isArray(i)?i:[i]])),p=(e,t)=>{const r=(0,s().forwardRef)(({className:r,...n},o)=>{return(0,s().createElement)(f,{ref:o,iconNode:t,className:u(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i});return r.displayName=`${e}`,r},h=p("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),m=p("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),v=p("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);function y(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=y(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function b(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=y(e))&&(n&&(n+=" "),n+=t);return n}const g=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),w="-",x=[],O=e=>{const t=S(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return j(e);const r=e.split(w),n=""===r[0]&&r.length>1?1:0;return k(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||x}return r[e]||x}}},k=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=k(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const s=0===t?e.join(w):e.slice(t).join(w),a=i.length;for(let e=0;e<a;e++){const t=i[e];if(t.validator(s))return t.classGroupId}},j=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),S=e=>{const{theme:t,classGroups:r}=e;return P(r,t)},P=(e,t)=>{const r=g();for(const n in e){const o=e[n];E(o,r,n,t)}return r},E=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];C(o,t,r,n)}},C=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?A(e,t,r,n):_(e,t,r,n):N(e,t,r)},N=(e,t,r)=>{(""===e?t:D(t,e)).classGroupId=r},_=(e,t,r,n)=>{R(e)?E(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},A=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,s]=o[e];E(s,D(t,i),r,n)}},D=(e,t)=>{let r=e;const n=t.split(w),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=g(),r.nextPart.set(t,o)),r=o}return r},R=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,T=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},M=[],F=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),L=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const s=e.length;for(let a=0;a<s;a++){const s=e[a];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){r=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.slice(i);let c=a,l=!1;a.endsWith("!")?(c=a.slice(0,-1),l=!0):a.startsWith("!")&&(c=a.slice(1),l=!0);return F(t,l,c,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):F(M,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},q=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],s="["===i[0],a=t.has(i);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},I=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},z=/\s+/,G=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=G(e[n]))&&(r&&(r+=" "),r+=t);return r},W=(e,...t)=>{let r,n,o,i;const s=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],c=e.trim().split(z);let l="";for(let e=c.length-1;e>=0;e-=1){const t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let m,v=!!h;if(v){m=n(p.substring(0,h));const e=m&&s[m]?n(p):void 0;e&&e!==m&&(m=e,v=!1)}else m=n(p);if(!m){if(!v){l=t+(l.length>0?" "+l:l);continue}if(m=n(p),!m){l=t+(l.length>0?" "+l:l);continue}v=!1}const y=0===d.length?"":1===d.length?d[0]:i(d).join(":"),b=f?y+"!":y,g=b+m;if(a.indexOf(g)>-1)continue;a.push(g);const w=o(m,v);for(let e=0;e<w.length;++e){const t=w[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,i),i};return i=a=>{const c=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:T(e.cacheSize),parseClassName:L(e),sortModifiers:q(e),postfixLookupClassGroupIds:I(e),...O(e)}))(c),n=r.cache.get,o=r.cache.set,i=s,s(a)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=G(t))&&(o&&(o+=" "),o+=r);return o})(...e))},$=[],H=e=>{const t=t=>t[e]||$;return t.isThemeGetter=!0,t.themeKey=e,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,U=/^\((?:(\w[\w-]*):)?(.+)\)$/i,K=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,X=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>K.test(e),ee=e=>!!e&&!Number.isNaN(Number(e)),te=e=>!!e&&Number.isInteger(Number(e)),re=e=>e.endsWith("%")&&ee(e.slice(0,-1)),ne=e=>Q.test(e),oe=()=>!0,ie=e=>V.test(e)&&!Y.test(e),se=()=>!1,ae=e=>X.test(e),ce=e=>Z.test(e),le=e=>!fe(e)&&!we(e),ue=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),de=e=>Ce(e,De,se),fe=e=>B.test(e),pe=e=>Ce(e,Re,ie),he=e=>Ce(e,Te,ee),me=e=>Ce(e,Fe,oe),ve=e=>Ce(e,Me,se),ye=e=>Ce(e,_e,se),be=e=>Ce(e,Ae,ce),ge=e=>Ce(e,Le,ae),we=e=>U.test(e),xe=e=>Ne(e,Re),Oe=e=>Ne(e,Me),ke=e=>Ne(e,_e),je=e=>Ne(e,De),Se=e=>Ne(e,Ae),Pe=e=>Ne(e,Le,!0),Ee=e=>Ne(e,Fe,!0),Ce=(e,t,r)=>{const n=B.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ne=(e,t,r=!1)=>{const n=U.exec(e);return!!n&&(n[1]?t(n[1]):r)},_e=e=>"position"===e||"percentage"===e,Ae=e=>"image"===e||"url"===e,De=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Te=e=>"number"===e,Me=e=>"family-name"===e,Fe=e=>"number"===e||"weight"===e,Le=e=>"shadow"===e,qe=(Symbol.toStringTag,()=>{const e=H("color"),t=H("font"),r=H("text"),n=H("font-weight"),o=H("tracking"),i=H("leading"),s=H("breakpoint"),a=H("container"),c=H("spacing"),l=H("radius"),u=H("shadow"),d=H("inset-shadow"),f=H("text-shadow"),p=H("drop-shadow"),h=H("blur"),m=H("perspective"),v=H("aspect"),y=H("ease"),b=H("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",we,fe],w=()=>[we,fe,c],x=()=>[J,"full","auto",...w()],O=()=>[te,"none","subgrid",we,fe],k=()=>["auto",{span:["full",te,we,fe]},te,we,fe],j=()=>[te,"auto",we,fe],S=()=>["auto","min","max","fr",we,fe],P=()=>["auto",...w()],E=()=>[J,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],C=()=>[a,J,"screen","full","dvw","lvw","svw","min","max","fit",...w()],N=()=>[J,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],_=()=>[e,we,fe],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ke,ye,{position:[we,fe]}],D=()=>["auto","cover","contain",je,de,{size:[we,fe]}],R=()=>[re,xe,pe],T=()=>["","none","full",l,we,fe],M=()=>["",ee,xe,pe],F=()=>[ee,re,ke,ye],L=()=>["","none",h,we,fe],q=()=>["none",ee,we,fe],I=()=>["none",ee,we,fe],z=()=>[ee,we,fe],G=()=>[J,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[oe],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",ee],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",J,fe,we,v]}],container:["container"],"container-type":[{"@container":["","normal","size",we,fe]}],"container-named":[ue],columns:[{columns:[ee,"auto",fe,we,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",we,fe]}],basis:[{basis:[J,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,J,"auto","initial","none",fe]}],grow:[{grow:["",ee,we,fe]}],shrink:[{shrink:["",ee,we,fe]}],order:[{order:[te,"first","last","none",we,fe]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...E()]}],"min-w":[{"min-w":[a,"screen","none",...E()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh","none",...E()]}],"font-size":[{text:["base",r,xe,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ee,me]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",re,fe]}],"font-family":[{font:[Oe,ve,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,we,fe]}],"line-clamp":[{"line-clamp":[ee,"none",we,he]}],leading:[{leading:["none",i,...w()]}],"list-image":[{"list-image":["none",we,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",we,pe]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ee,"auto",we,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[te,we,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,we,fe],radial:["",we,fe],conic:["",te,we,fe]},Se,be]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ee,we,fe]}],"outline-w":[{outline:["",ee,xe,pe]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","inner","none",u,Pe,ge]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Pe,ge]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ee,pe]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,Pe,ge]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ee,we,fe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[we,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,fe]}],filter:[{filter:["","none",we,fe]}],blur:[{blur:L()}],brightness:[{brightness:[ee,we,fe]}],contrast:[{contrast:[ee,we,fe]}],"drop-shadow":[{"drop-shadow":["","none",p,Pe,ge]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ee,we,fe]}],"hue-rotate":[{"hue-rotate":[ee,we,fe]}],invert:[{invert:["",ee,we,fe]}],saturate:[{saturate:[ee,we,fe]}],sepia:[{sepia:["",ee,we,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,fe]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[ee,we,fe]}],"backdrop-contrast":[{"backdrop-contrast":[ee,we,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,we,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,we,fe]}],"backdrop-invert":[{"backdrop-invert":["",ee,we,fe]}],"backdrop-opacity":[{"backdrop-opacity":[ee,we,fe]}],"backdrop-saturate":[{"backdrop-saturate":[ee,we,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,we,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",we,fe]}],ease:[{ease:["linear","initial",y,we,fe]}],delay:[{delay:[ee,we,fe]}],animate:[{animate:["none",b,we,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,we,fe]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[we,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],zoom:[{zoom:[te,we,fe]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,fe]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ee,xe,pe,he]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Ie=(e,t,r)=>{void 0!==r&&(e[t]=r)},ze=(e,t)=>{if(t)for(const r in t)Ie(e,r,t[r])},Ge=(e,t)=>{if(t)for(const r in t)We(e,t,r)},We=(e,t,r)=>{const n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)};function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach(function(t){Ue(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ue(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=$e(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ke=((e,...t)=>"function"==typeof e?W(qe,e,...t):W(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Ie(e,"cacheSize",t),Ie(e,"prefix",r),Ie(e,"experimentalParseClassName",n),ze(e.theme,i.theme),ze(e.classGroups,i.classGroups),ze(e.conflictingClassGroups,i.conflictingClassGroups),ze(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ie(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),Ie(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ge(e.theme,o.theme),Ge(e.classGroups,o.classGroups),Ge(e.conflictingClassGroups,o.conflictingClassGroups),Ge(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),We(e,o,"postfixLookupClassGroups"),We(e,o,"orderSensitiveModifiers"),e))(qe(),e),...t))({experimentalParseClassName:function(e){var t=e.className,r=(0,e.parseClassName)(t);if(r.isExternal)return r;var n=r.baseClassName;return n.startsWith("vt-")?Be(Be({},r),{},{baseClassName:n.slice(3)}):r}});function Qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ke(b(t))}var Ve=Object.defineProperty,Ye=(e,t)=>Ve(e,"name",{value:t,configurable:!0});function Xe(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ze(...e){return t=>{let r=!1;const n=e.map(e=>{const n=Xe(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():Xe(e[t],null)}}}}function Je(...e){return s().useCallback(Ze(...e),e)}Ye(Xe,"setRef"),Ye(Ze,"composeRefs"),Ye(Je,"useComposedRefs");var et=Object.defineProperty,tt=(e,t)=>et(e,"name",{value:t,configurable:!0});function rt(e){const t=s().forwardRef((t,r)=>{let{children:n,...o}=t,i=null,a=!1;const c=[];n=pt(n),s().Children.forEach(n,e=>{if(lt(e)){a=!0;const t=e;let r="child"in t.props?t.props.child:t.props.children;for(;dt(r)&&"function"==typeof yt;)r=yt(r._payload);i=st(t,r),c.push(i?.props?.children)}else c.push(e)}),i?i=s().cloneElement(i,void 0,c):!a&&1===s().Children.count(n)&&s().isValidElement(n)&&(i=n);const l=i?ct(i):void 0,u=Je(r,l);if(!i){if(n||0===n)throw new Error(a?vt(e):mt(e));return n}const d=at(o,i.props??{});return i.type!==s().Fragment&&(d.ref=r?u:l),s().cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}tt(rt,"createSlot");var nt=rt("Slot"),ot=Symbol.for("radix.slottable");function it(e){const t=tt(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ot,t}tt(it,"createSlottable");var st=tt((e,t)=>"child"in e.props?s().isValidElement(t)?s().cloneElement(t,void 0,e.props.children(t.props.children)):null:s().isValidElement(t)?t:null,"getSlottableElementFromSlottable");function at(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n?r[n]=[o,i].filter(Boolean).join(" "):"aria-describedby"===n&&(r[n]=ht(i,o))}return{...e,...r}}function ct(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lt(e){return s().isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ot}tt(at,"mergeProps"),tt(ct,"getElementRef"),tt(lt,"isSlottable");var ut=Symbol.for("react.lazy");function dt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ut&&"_payload"in e&&ft(e._payload)}function ft(e){return"object"==typeof e&&null!==e&&"then"in e}function pt(e){let t=e;for(;dt(t)&&"function"==typeof yt;)t=yt(t._payload);return t}function ht(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}tt(dt,"isLazyComponent"),tt(ft,"isPromiseLike"),tt(pt,"useUnwrappedLazy"),tt(ht,"concatAriaDescribedby");var mt=tt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),vt=tt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),yt=c()[" use ".trim().toString()];const bt=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,gt=b;function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}i();var xt=["className","variant","size","asChild"];function Ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jt=((e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return gt(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const s=bt(t)||bt(n);return o[e][s]}),a=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...a}[t]):{...i,...a}[t]===r})?[...e,r,n]:e},[]);return gt(e,s,c,null==r?void 0:r.class,null==r?void 0:r.className)})("vt-inline-flex vt-items-center vt-justify-center vt-whitespace-nowrap vt-rounded-md vt-text-sm vt-font-medium vt-transition-colors focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-pointer-events-none disabled:vt-opacity-70",{variants:{variant:{default:"vt-bg-primary vt-text-primary-foreground vt-shadow hover:vt-bg-primary/90",destructive:"vt-bg-destructive vt-text-destructive-foreground vt-shadow-sm hover:vt-bg-destructive/90",outline:"vt-border vt-border-input vt-bg-background vt-shadow-sm hover:vt-bg-accent hover:vt-text-accent-foreground",secondary:"vt-bg-secondary vt-text-secondary-foreground vt-shadow-sm hover:vt-bg-slate-200",ghost:"hover:vt-bg-accent hover:vt-text-accent-foreground",softBlue:"vt-border vt-border-blue-200 vt-bg-blue-50 vt-text-blue-700 hover:vt-bg-blue-100",link:"vt-text-primary vt-underline-offset-4 hover:vt-vt-underline"},size:{default:"vt-h-9 vt-px-4 vt-py-2",xs:"vt-h-6 vt-rounded-sm vt-px-3 vt-text-xs",sm:"vt-h-8 vt-rounded-md vt-px-3 vt-text-xs",lg:"vt-h-10 vt-rounded-md vt-px-8",icon:"vt-h-8 vt-w-8",softBlue:"vt-h-6 vt-rounded-sm vt-px-2 vt-text-xs"}},defaultVariants:{variant:"default",size:"default"}}),St=s().forwardRef(function(e,t){var r=e.className,n=e.variant,i=e.size,s=e.asChild,a=void 0!==s&&s,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,xt),l=a?nt:"button";return(0,o().jsx)(l,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(r),!0).forEach(function(t){kt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ot(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:Qe(jt({variant:n,size:i,className:r})),ref:t},c))});function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}St.displayName="Button";var Et=["className"],Ct=["className"],Nt=["className"],_t=["className"],At=["className"],Dt=["className"];function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(r),!0).forEach(function(t){Mt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Lt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Et);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-rounded-xl vt-border vt-bg-card vt-text-card-foreground vt-shadow",r)},n))});Lt.displayName="Card";var qt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Ct);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-flex vt-flex-col vt-space-y-1.5 vt-p-4",r)},n))});qt.displayName="CardHeader";var It=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Nt);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-font-semibold vt-leading-none vt-tracking-tight",r)},n))});It.displayName="CardTitle",s().forwardRef(function(e,t){var r=e.className,n=Ft(e,_t);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-text-sm vt-text-muted-foreground",r)},n))}).displayName="CardDescription";var zt=s().forwardRef(function(e,t){var r=e.className,n=Ft(e,At);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-p-4",r)},n))});function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Wt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qt(n.key),n)}}function $t(e,t,r){return t=Bt(t),function(e,t){if(t&&("object"==Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ht()?Reflect.construct(t,r||[],Bt(e).constructor):t.apply(e,r))}function Ht(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ht=function(){return!!e})()}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Ut(e,t){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ut(e,t)}function Kt(e,t,r){return(t=Qt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qt(e){var t=function(e,t){if("object"!=Gt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gt(t)?t:t+""}zt.displayName="CardContent",s().forwardRef(function(e,t){var r=e.className,n=Ft(e,Dt);return(0,o().jsx)("div",Tt({ref:t,className:Qe("vt-flex vt-items-center vt-p-4",r)},n))}).displayName="CardFooter";var Vt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Kt(r=$t(this,t,[e]),"handleRetry",function(){r.setState({hasError:!1,error:null,errorInfo:null,showErrorDetails:!1})}),Kt(r,"toggleErrorDetails",function(){r.setState(function(e){return{showErrorDetails:!e.showErrorDetails}})}),r.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(t,e),function(e,t,r){return t&&Wt(e.prototype,t),r&&Wt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t),window.console&&window.console.error&&window.console.error("Versatile Plugin Error:",{error:e.message,stack:e.stack,componentStack:t.componentStack})}},{key:"render",value:function(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:(0,o().jsxs)(Lt,{className:"vt-max-w-2xl vt-mx-auto vt-mt-8 vt-border-red-200 vt-bg-red-50",children:[(0,o().jsxs)(qt,{className:"vt-text-center",children:[(0,o().jsx)("div",{className:"vt-flex vt-justify-center vt-mb-4",children:(0,o().jsx)(h,{className:"vt-h-12 vt-w-12 vt-text-red-500"})}),(0,o().jsx)(It,{className:"vt-text-red-700",children:(0,l.__)("Something went wrong","versatile-toolkit")})]}),(0,o().jsxs)(zt,{className:"vt-space-y-4",children:[(0,o().jsx)("p",{className:"vt-text-center vt-text-gray-600",children:(0,l.__)("We encountered an unexpected error. Please try refreshing the page or contact support if the problem persists.","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-flex vt-justify-center vt-gap-3",children:[(0,o().jsxs)(St,{onClick:this.handleRetry,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(m,{className:"vt-h-4 vt-w-4"}),(0,l.__)("Try Again","versatile-toolkit")]}),!1!==this.props.showDetails&&(0,o().jsxs)(St,{variant:"outline",onClick:this.toggleErrorDetails,className:"vt-flex vt-items-center vt-gap-2",children:[(0,o().jsx)(v,{className:"vt-h-4 vt-w-4"}),this.state.showErrorDetails?(0,l.__)("Hide Details","versatile-toolkit"):(0,l.__)("Show Details","versatile-toolkit")]})]}),this.state.showErrorDetails&&this.state.error&&(0,o().jsxs)("div",{className:"vt-mt-6 vt-p-4 vt-bg-gray-100 vt-rounded-lg vt-border",children:[(0,o().jsx)("h4",{className:"vt-font-semibold vt-text-sm vt-mb-2 vt-text-gray-700",children:(0,l.__)("Error Details:","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-text-xs vt-font-mono vt-text-gray-600 vt-space-y-2",children:[(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Message:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words",children:this.state.error.message})]}),this.state.error.stack&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Stack Trace:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.error.stack})]}),(null===(e=this.state.errorInfo)||void 0===e?void 0:e.componentStack)&&(0,o().jsxs)("div",{children:[(0,o().jsx)("strong",{children:(0,l.__)("Component Stack:","versatile-toolkit")}),(0,o().jsx)("pre",{className:"vt-mt-1 vt-whitespace-pre-wrap vt-break-words vt-max-h-32 vt-overflow-y-auto",children:this.state.errorInfo.componentStack})]})]})]})]})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}])}(s().Component);const Yt=Vt;var Xt={xs:"vt-w-3 vt-h-3",sm:"vt-w-4 vt-h-4",md:"vt-w-4 vt-h-4",lg:"vt-w-5 vt-h-5",xl:"vt-w-6 vt-h-6"};const Zt=function(e){var t=e.isLoading,r=e.loadingText,n=e.children,i=e.size,s=void 0===i?"sm":i,a=e.className;if(!t)return(0,o().jsx)(o().Fragment,{children:n});var c=(0,l.__)("Loading","versatile-toolkit"),u=r||"".concat(c,"...");return(0,o().jsxs)("div",{className:Qe("vt-flex vt-items-center vt-gap-2",a),children:[(0,o().jsx)("div",{className:Qe(Xt[s],"vt-animate-spin"),children:(0,o().jsxs)("svg",{className:"vt-w-full vt-h-full",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"31.416",className:"vt-opacity-25"}),(0,o().jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"31.416",strokeDashoffset:"23.562",className:"vt-opacity-75"})]})}),(0,o().jsx)("span",{children:u})]})};function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}var er=["className","type"];function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Jt(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nr=s().forwardRef(function(e,t){var r=e.className,n=e.type,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,er);return(0,o().jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach(function(t){rr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:n,className:Qe("vt-flex vt-h-9 vt-rounded-md vt-border vt-border-input vt-bg-transparent vt-w-full vt-min-h-[unset] vt-px-3 vt-py-1 vt-text-base vt-shadow-sm vt-transition-colors file:vt-border-0 file:vt-bg-transparent file:vt-text-sm file:vt-font-medium file:vt-text-foreground placeholder:vt-text-muted-foreground focus-visible:vt-outline-none focus-visible:vt-ring-1 focus-visible:vt-ring-ring disabled:vt-cursor-not-allowed disabled:vt-opacity-50 md:vt-text-sm",r),ref:t},i))});nr.displayName="Input";var or=Object.defineProperty,ir=(e,t)=>or(e,"name",{value:t,configurable:!0}),sr=!("undefined"==typeof window||!window.document||!window.document.createElement);function ar(e,t,{checkForDefaultPrevented:r=!0}={}){return ir(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function cr(e){if(!sr)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function lr(e){return"IFRAME"===e.tagName}ir(ar,"composeEventHandlers"),ir(function(e){if(!sr)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),ir(cr,"getOwnerDocument"),ir(function e(t,r=!1){const{activeElement:n}=cr(t);if(!n?.nodeName)return null;if(lr(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){const e=n.getAttribute("aria-activedescendant");if(e){const t=cr(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),ir(lr,"isFrame");var ur=Object.defineProperty,dr=(e,t)=>ur(e,"name",{value:t,configurable:!0});function fr(e,t=[]){let r=[];function n(t,n){const i=s().createContext(n);i.displayName=t+"Context";const a=r.length;r=[...r,n];const c=dr(t=>{const{scope:r,children:n,...c}=t,l=r?.[e]?.[a]||i,u=s().useMemo(()=>c,Object.values(c));return(0,o().jsx)(l.Provider,{value:u,children:n})},"Provider");function l(r,o,c={}){const{optional:l=!1}=c,u=o?.[e]?.[a]||i,d=s().useContext(u);if(d)return d;if(void 0!==n)return n;if(!l)throw new Error(`\`${r}\` must be used within \`${t}\``)}return c.displayName=t+"Provider",dr(l,"useContext"),[c,l]}dr(n,"createContext");const i=dr(()=>{const t=r.map(e=>s().createContext(e));return dr(function(r){const n=r?.[e]||t;return s().useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return i.scopeName=e,[n,pr(i,...t)]}function pr(...e){const t=e[0];if(1===e.length)return t;const r=dr(()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return dr(function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return s().useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}dr(function(e,t){const r=s().createContext(t);r.displayName=e+"Context";const n=dr(e=>{const{children:t,...n}=e,i=s().useMemo(()=>n,Object.values(n));return(0,o().jsx)(r.Provider,{value:i,children:t})},"Provider");function i(n,o={}){const{optional:i=!1}=o,a=s().useContext(r);if(a)return a;if(void 0!==t)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",dr(i,"useContext"),[n,i]},"createContext"),dr(fr,"createContextScope"),dr(pr,"composeContextScopes"),a();var hr=Object.defineProperty,mr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=rt(`Primitive.${t}`),n=s().forwardRef((e,n)=>{const{asChild:i,...s}=e,a=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o().jsx)(a,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vr(e,t){e&&a().flushSync(()=>e.dispatchEvent(t))}hr(vr,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var yr=globalThis?.document?s().useLayoutEffect:()=>{},br=Object.defineProperty,gr=c()[" useInsertionEffect ".trim().toString()];function wr(e){const t=s().useRef(e);return"function"==typeof gr?gr(()=>{t.current=e}):yr(()=>{t.current=e}),s().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{br(e,"name",{value:t,configurable:!0})})(wr,"useCallbackRef");var xr,Or=Object.defineProperty,kr=(e,t)=>Or(e,"name",{value:t,configurable:!0}),jr="dismissableLayer.update",Sr=s().createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Pr=s().forwardRef(kr(function(e,t){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...d}=e,f=s().useContext(Sr),[p,h]=s().useState(null),m=p?.ownerDocument??globalThis?.document,[,v]=s().useState({}),y=Je(t,h),b=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g?b.indexOf(g):-1,x=p?b.indexOf(p):-1,O=f.layersWithOutsidePointerEventsDisabled.size>0,k=x>=w,j=s().useRef(!1),S=Cr(e=>{a?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:m,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:j,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:s().useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...f.branches].some(t=>t.contains(e));return k&&!t},[f.branches,k])}),P=Nr(e=>{if(n&&j.current)return;const t=e.target;[...f.branches].some(e=>e.contains(t))||(c?.(e),l?.(e),e.defaultPrevented||u?.())},m),E=!!p&&x===b.length-1,C=wr(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return s().useEffect(()=>{if(E)return m.addEventListener("keydown",C,{capture:!0}),()=>m.removeEventListener("keydown",C,{capture:!0})},[m,E,C]),s().useEffect(()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(xr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),_r(),()=>{r&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=xr))}},[p,m,r,f]),s().useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),_r())},[p,f]),s().useEffect(()=>{const e=kr(()=>v({}),"handleUpdate");return document.addEventListener(jr,e),()=>document.removeEventListener(jr,e)},[]),(0,o().jsx)(mr.div,{...d,ref:y,style:{pointerEvents:O?k?"auto":"none":void 0,...e.style},onFocusCapture:ar(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ar(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ar(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));kr(function(){const e=s().useContext(Sr),[t,r]=s().useState(null);return s().useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r},"useDismissableLayerSurface");var Er=kr(()=>!0,"IS_TRUE");function Cr(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=Er}=t,c=wr(e),l=s().useRef(!1),u=s().useRef(!1),d=s().useRef(new Map),f=s().useRef(()=>{});return s().useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function s(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}kr(e,"resetOutsideInteraction"),kr(t,"isOutsideInteractionIntercepted"),kr(s,"handleInteractionCapture"),kr(p,"handleInteractionBubble");const h=kr(i=>{if(i.target&&!l.current){let s=function(){r.removeEventListener("click",f.current);const n=t();e(),n||Ar("dismissableLayer.pointerDownOutside",c,p,{discrete:!0})};if(kr(s,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target))return r.removeEventListener("click",f.current),e(),void(l.current=!1);const p={originalEvent:i};u.current=!0,o.current=n&&0===i.button,d.current.clear(),n&&0===i.button?(r.removeEventListener("click",f.current),f.current=s,r.addEventListener("click",f.current,{once:!0})):s()}else r.removeEventListener("click",f.current),e();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of m)r.addEventListener(e,s,!0),r.addEventListener(e,p);const v=window.setTimeout(()=>{r.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),r.removeEventListener("pointerdown",h),r.removeEventListener("click",f.current);for(const e of m)r.removeEventListener(e,s,!0),r.removeEventListener(e,p)}},[r,c,n,o,i,a]),{onPointerDownCapture:kr(()=>l.current=!0,"onPointerDownCapture")}}function Nr(e,t=globalThis?.document){const r=wr(e),n=s().useRef(!1);return s().useEffect(()=>{const e=kr(e=>{if(e.target&&!n.current){Ar("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:kr(()=>n.current=!0,"onFocusCapture"),onBlurCapture:kr(()=>n.current=!1,"onBlurCapture")}}function _r(){const e=new CustomEvent(jr);document.dispatchEvent(e)}function Ar(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?vr(o,i):o.dispatchEvent(i)}kr(Cr,"usePointerDownOutside"),kr(Nr,"useFocusOutside"),kr(_r,"dispatchUpdate"),kr(Ar,"handleAndDispatchCustomEvent");var Dr=Object.defineProperty,Rr=(e,t)=>Dr(e,"name",{value:t,configurable:!0}),Tr=0,Mr=null;function Fr(){s().useEffect(()=>{Mr||(Mr={start:Lr(),end:Lr()});const{start:e,end:t}=Mr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Tr++,()=>{1===Tr&&(Mr?.start.remove(),Mr?.end.remove(),Mr=null),Tr=Math.max(0,Tr-1)}},[])}function Lr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Rr(function(e){return Fr(),e.children},"FocusGuards"),Rr(Fr,"useFocusGuards"),Rr(Lr,"createFocusGuard");var qr=Object.defineProperty,Ir=(e,t)=>qr(e,"name",{value:t,configurable:!0}),zr="focusScope.autoFocusOnMount",Gr="focusScope.autoFocusOnUnmount",Wr={bubbles:!1,cancelable:!0},$r=s().forwardRef(Ir(function(e,t){const{loop:r=!1,trapped:n=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:c,...l}=e,[u,d]=s().useState(null),f=wr(a),p=wr(c),h=s().useRef(null),m=Je(t,d),v=s().useRef(i);s().useEffect(()=>{v.current=i});const y=s().useCallback(e=>!!e&&(!!u?.contains(e)||Boolean(v.current?.some(t=>t.contains(e)))),[u]),b=s().useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s().useEffect(()=>{if(n){let e=function(e){if(b.paused||!u)return;const t=e.target;y(t)?h.current=t:en(h.current,{select:!0})},t=function(e){if(b.paused||!u)return;const t=e.relatedTarget;null!==t&&(y(t)||en(h.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&en(u)};Ir(e,"handleFocusIn"),Ir(t,"handleFocusOut"),Ir(r,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,u,b.paused,y]),s().useEffect(()=>{if(u){tn.add(b);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(zr,Wr);u.addEventListener(zr,f),u.dispatchEvent(t),t.defaultPrevented||(Qr(on(Yr(u)),{select:!0}),document.activeElement===e&&en(u))}return()=>{u.removeEventListener(zr,f);const t=u.ownerDocument,r=CustomEvent;setTimeout(()=>{const n=new r(Gr,Wr);u.addEventListener(Gr,p),u.dispatchEvent(n),n.defaultPrevented||en(e??t.body,{select:!0}),u.removeEventListener(Gr,p),tn.remove(b)},0)}}},[u,f,p,b]);const g=s().useCallback(e=>{if(!r&&!n)return;if(b.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,i]=Vr(t);n&&i?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&en(i,{select:!0})):(e.preventDefault(),r&&en(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,b.paused]);return(0,o().jsx)(mr.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})},"FocusScope")),Hr=s().createContext(null);function Br({registry:e,children:t}){return e?(0,o().jsx)(Hr.Provider,{value:e,children:t}):t}function Ur(){const[e,t]=s().useState([]);return{nodes:e,registry:s().useMemo(()=>({add:Ir(e=>t(t=>t.includes(e)?t:[...t,e]),"add"),remove:Ir(e=>t(t=>t.filter(t=>t!==e)),"remove")}),[])}}function Kr(e){const t=s().useContext(Hr);s().useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}function Qr(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(en(n,{select:t}),document.activeElement!==r)return}function Vr(e){const t=Yr(e);return[Xr(t,e),Xr(t.reverse(),e)]}function Yr(e){const t=[],r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ir(e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function Xr(e,t){const r="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e){if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):Zr(n,{upTo:t})))return n}}function Zr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Jr(e){return"INPUT"===e.tagName&&"function"==typeof e.select}function en(e,{select:t=!1}={}){if(e&&e.focus){const r=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==r&&Jr(e)&&t&&e.select()}}Ir(Br,"FocusScopeBranchProvider"),Ir(Ur,"useFocusScopeBranchRegistry"),Ir(Kr,"useFocusScopeBranch"),Ir(Qr,"focusFirst"),Ir(Vr,"getTabbableEdges"),Ir(Yr,"getTabbableCandidates"),Ir(Xr,"findVisible"),Ir(Zr,"isHidden"),Ir(Jr,"isSelectableInput"),Ir(en,"focus");var tn=rn();function rn(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=nn(e,t),e.unshift(t)},remove(t){e=nn(e,t),e[0]?.resume()}}}function nn(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function on(e){return e.filter(e=>"A"!==e.tagName)}Ir(rn,"createFocusScopesStack"),Ir(nn,"arrayRemove"),Ir(on,"removeLinks");var sn=Object.defineProperty,an=c()[" useId ".trim().toString()]||(()=>{}),cn=0;function ln(e){const[t,r]=s().useState(an());return yr(()=>{e||r(e=>e??String(cn++))},[e]),e||(t?`radix-${t}`:"")}((e,t)=>{sn(e,"name",{value:t,configurable:!0})})(ln,"useId");const un=["top","right","bottom","left"],dn=Math.min,fn=Math.max,pn=Math.round,hn=Math.floor,mn=e=>({x:e,y:e}),vn={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(e,t,r){return fn(e,dn(t,r))}function bn(e,t){return"function"==typeof e?e(t):e}function gn(e){return e.split("-")[0]}function wn(e){return e.split("-")[1]}function xn(e){return"x"===e?"y":"x"}function On(e){return"y"===e?"height":"width"}function kn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function jn(e){return xn(kn(e))}function Sn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pn=["left","right"],En=["right","left"],Cn=["top","bottom"],Nn=["bottom","top"];function _n(e,t,r,n){const o=wn(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?En:Pn:t?Pn:En;case"left":case"right":return t?Cn:Nn;default:return[]}}(gn(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Sn)))),i}function An(e){const t=gn(e);return vn[t]+e.slice(t.length)}function Dn(e){return"number"!=typeof e?function(e){var t,r,n,o;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Tn(e,t,r){let{reference:n,floating:o}=e;const i=kn(t),s=jn(t),a=On(s),c=gn(t),l="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}const h=wn(t);return h&&(p[s]+=f*("end"===h?1:-1)*(r&&l?-1:1)),p}async function Mn(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bn(t,e),h=Dn(p),m=a[f?"floating"===d?"reference":"floating":d],v=Rn(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),g=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-w.top+h.top)/g.y,bottom:(w.bottom-v.bottom+h.bottom)/g.y,left:(v.left-w.left+h.left)/g.x,right:(w.right-v.right+h.right)/g.x}}function Fn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ln(e){return un.some(t=>e[t]>=0)}const qn=new Set(["left","top"]);function In(){return"undefined"!=typeof window}function zn(e){return $n(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wn(e){var t;return null==(t=($n(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $n(e){return!!In()&&(e instanceof Node||e instanceof Gn(e).Node)}function Hn(e){return!!In()&&(e instanceof Element||e instanceof Gn(e).Element)}function Bn(e){return!!In()&&(e instanceof HTMLElement||e instanceof Gn(e).HTMLElement)}function Un(e){return!(!In()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot)}function Kn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function Qn(e){return/^(table|td|th)$/.test(zn(e))}function Vn(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Yn=/transform|translate|scale|rotate|perspective|filter/,Xn=/paint|layout|strict|content/,Zn=e=>!!e&&"none"!==e;let Jn;function eo(e){const t=Hn(e)?no(e):e;return Zn(t.transform)||Zn(t.translate)||Zn(t.scale)||Zn(t.rotate)||Zn(t.perspective)||!to()&&(Zn(t.backdropFilter)||Zn(t.filter))||Yn.test(t.willChange||"")||Xn.test(t.contain||"")}function to(){return null==Jn&&(Jn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jn}function ro(e){return/^(html|body|#document)$/.test(zn(e))}function no(e){return Gn(e).getComputedStyle(e)}function oo(e){return Hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function io(e){if("html"===zn(e))return e;const t=e.assignedSlot||e.parentNode||Un(e)&&e.host||Wn(e);return Un(t)?t.host:t}function so(e){const t=io(e);return ro(t)?(e.ownerDocument||e).body:Bn(t)&&Kn(t)?t:so(t)}function ao(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=so(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=Gn(o);if(i){const e=co(s);return t.concat(s,s.visualViewport||[],Kn(o)?o:[],e&&r?ao(e):[])}return t.concat(o,ao(o,[],r))}function co(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lo(e){const t=no(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=pn(r)!==i||pn(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function uo(e){return Hn(e)?e:e.contextElement}function fo(e){const t=uo(e);if(!Bn(t))return mn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=lo(t);let s=(i?pn(r.width):r.width)/n,a=(i?pn(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const po=mn(0);function ho(e){const t=Gn(e);return to()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:po}function mo(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=uo(e);let s=mn(1);t&&(n?Hn(n)&&(s=fo(n)):s=fo(e));const a=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Gn(e)}(i,r,n)?ho(i):mn(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i&&n){const e=Gn(i),t=Hn(n)?Gn(n):n;let r=e,o=co(r);for(;o&&t!==r;){const e=fo(o),t=o.getBoundingClientRect(),n=no(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,r=Gn(o),o=co(r)}}return Rn({width:u,height:d,x:c,y:l})}function vo(e,t){const r=oo(e).scrollLeft;return t?t.left+r:mo(Wn(e)).left+r}function yo(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-vo(e,r),y:r.top+t.scrollTop}}function bo(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,o=Gn(e),i=Wn(e),s=o.visualViewport;let a=i.clientWidth,c=i.clientHeight,l=0,u=0;if(s){const e=!to()||"fixed"===t;n?e||(l=-s.offsetLeft,u=-s.offsetTop):(a=s.width,c=s.height,e&&(l=s.offsetLeft,u=s.offsetTop))}if(vo(i)<=0){const e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(a-=s)}return{width:a,height:c,x:l,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=oo(e),r=e.ownerDocument.body,n=fn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=fn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+vo(e);const s=-t.scrollTop;return"rtl"===no(r).direction&&(i+=fn(e.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:s}}(Wn(e));else if(Hn(t))n=function(e,t){const r=mo(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=fo(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=ho(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Rn(n)}function go(e,t,r){const n=Bn(t),o=Wn(t),i="fixed"===r,s=mo(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=mn(0);if((n||!i)&&(("body"!==zn(t)||Kn(o))&&(a=oo(t)),n)){const e=mo(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!n&&o&&(c.x=vo(o));const l=!o||n||i?mn(0):yo(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function wo(e){return"static"===no(e).position}function xo(e,t){if(!Bn(e)||"fixed"===no(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Wn(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){const r=Gn(e);if(Vn(e))return r;if(!Bn(e)){let t=io(e);for(;t&&!ro(t);){if(Hn(t)&&!wo(t))return t;t=io(t)}return r}let n=xo(e,t);for(;n&&Qn(n)&&wo(n);)n=xo(n,t);return n&&ro(n)&&wo(n)&&!eo(n)?r:n||function(e){let t=io(e);for(;Bn(t)&&!ro(t);){if(eo(t))return t;if(Vn(t))return null;t=io(t)}return null}(e)||r}const ko={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,s=Wn(n),a=!!t&&Vn(t.floating);if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=mn(1);const u=mn(0),d=Bn(n);if((d||!i)&&(("body"!==zn(n)||Kn(s))&&(c=oo(n)),d)){const e=mo(n);l=fo(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!s||d||i?mn(0):yo(s,c);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:r.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:Wn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Vn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=ao(e,[],!1).filter(e=>Hn(e)&&"body"!==zn(e)),o=null;const i="fixed"===no(e).position;let s=i?io(e):e;for(;Hn(s)&&!ro(s);){const e=no(s),t=eo(s),r=o?o.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?o=e:n=n.filter(e=>e!==s),s=io(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=bo(t,i[0],o);let a=s.top,c=s.right,l=s.bottom,u=s.left;for(let e=1;e<i.length;e++){const r=bo(t,i[e],o);a=fn(r.top,a),c=dn(r.right,c),l=dn(r.bottom,l),u=fn(r.left,u)}return{width:c-u,height:l-a,x:u,y:a}},getOffsetParent:Oo,getElementRects:async function(e){const t=this.getOffsetParent||Oo,r=this.getDimensions,n=await r(e.floating);return{reference:go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=lo(e);return{width:t,height:r}},getScale:fo,isElement:Hn,isRTL:function(e){return"rtl"===no(e).direction}};function jo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,l=uo(e),u=o||i?[...l?ao(l):[],...t?ao(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r),i&&e.addEventListener("resize",r)});const d=l&&a?function(e,t,r){let n,o=null;const i=Wn(e);function s(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function a(r,c){void 0===r&&(r=!1),void 0===c&&(c=1),s();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(r||t(),!f||!p)return;const h={rootMargin:-hn(d)+"px "+-hn(i.clientWidth-(u+f))+"px "+-hn(i.clientHeight-(d+p))+"px "+-hn(u)+"px",threshold:fn(0,dn(1,c))||1};let m=!0;function v(t){const r=t[0].intersectionRatio;if(!jo(l,e.getBoundingClientRect()))return a();if(r!==c){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}const c=Gn(e),l=()=>a(r);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),s()}}(l,r,i):null;let f,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),l&&!c&&h.observe(l),t&&h.observe(t));let m=c?mo(e):null;return c&&function t(){const n=mo(e);m&&!jo(m,n)&&r();m=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const Po=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),s=gn(r),a=wn(r),c="y"===kn(r),l=qn.has(s)?-1:1,u=i&&c?-1:1,d=bn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Eo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=bn(e,t),u={x:r,y:n},d=await i.detectOverflow(t,l),f=kn(o),p=xn(f);let h=u[p],m=u[f];const v=(e,t)=>yn(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);s&&(h=v(p,h)),a&&(m=v(f,m));const y=c.fn({...t,[p]:h,[f]:m});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[p]:s,[f]:a}}}}}},Co=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=bn(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=gn(o),b=kn(a),g=gn(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=f||(g||!m?[An(a)]:function(e){const t=An(e);return[Sn(e),t,Sn(t)]}(a)),O="none"!==h;!f&&O&&x.push(..._n(a,m,h,w));const k=[a,...x],j=await c.detectOverflow(t,v),S=[];let P=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(j[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=wn(e),o=jn(e),i=On(o);let s="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=An(s)),[s,An(s)]}(o,s,w);S.push(j[e[0]],j[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var E,C;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===d&&b!==kn(t))||P.every(e=>kn(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:P},reset:{placement:t}}}let r=null==(C=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!r)switch(p){case"bestFit":{var N;const e=null==(N=P.filter(e=>{if(O){const t=kn(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=a}if(o!==r)return{reset:{placement:r}}}return{}}}},No=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=bn(e,t),c=await o.detectOverflow(t,a),l=gn(r),u=wn(r),d="y"===kn(r),{width:f,height:p}=n.floating;let h,m;"top"===l||"bottom"===l?(h=l,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=l,h="end"===u?"top":"bottom");const v=p-c.top-c.bottom,y=f-c.left-c.right,b=dn(p-c[h],v),g=dn(f-c[m],y),w=t.middlewareData.shift,x=!w;let O=b,k=g;null!=w&&w.enabled.x&&(k=y),null!=w&&w.enabled.y&&(O=v),x&&!u&&(d?k=f-2*fn(c.left,c.right):O=p-2*fn(c.top,c.bottom)),await s({...t,availableWidth:k,availableHeight:O});const j=await o.getDimensions(i.floating);return f!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}},_o=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=bn(e,t);switch(o){case"referenceHidden":{const e=Fn(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ln(e)}}}case"escaped":{const e=Fn(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Ln(e)}}}default:return{}}}}},Ao=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=bn(e,t)||{};if(null==l)return{};const d=Dn(u),f={x:r,y:n},p=jn(o),h=On(p),m=await s.getDimensions(l),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",g=v?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let k=O?O[g]:0;k&&await(null==s.isElement?void 0:s.isElement(O))||(k=a.floating[g]||i.floating[h]);const j=w/2-x/2,S=k/2-m[h]/2-1,P=dn(d[y],S),E=dn(d[b],S),C=k-m[h]-E,N=k/2-m[h]/2+j,_=yn(P,N,C),A=!c.arrow&&null!=wn(o)&&N!==_&&i.reference[h]/2-(N<P?P:E)-m[h]/2<0,D=A?N<P?N-P:N-C:0;return{[p]:f[p]+D,data:{[p]:_,centerOffset:N-_-D,...A&&{alignmentOffset:D}},reset:A}}}),Do=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,n;const{x:o,y:i,placement:s,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=bn(e,t),f={x:o,y:i},p=kn(s),h=xn(p);let m=f[h],v=f[p];const y=bn(l,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(r=y.mainAxis)?r:0,crossAxis:null!=(n=y.crossAxis)?n:0};if(u){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+b.mainAxis,r=a.reference[h]+a.reference[e]-b.mainAxis;m<t?m=t:m>r&&(m=r)}if(d){var g,w;const e="y"===h?"width":"height",t=qn.has(gn(s)),r=a.reference[p]-a.floating[e]+(t&&(null==(g=c.offset)?void 0:g[p])||0)+(t?0:b.crossAxis),n=a.reference[p]+a.reference[e]+(t?0:(null==(w=c.offset)?void 0:w[p])||0)-(t?b.crossAxis:0);v<r?v=r:v>n&&(v=n)}return{[h]:m,[p]:v}}}},Ro=(e,t,r)=>{const n=new Map,o=null!=r?r:{},i={...ko,...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Mn},c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Tn(l,n,c),f=n,p=0;const h={};for(let r=0;r<i.length;r++){const m=i[r];if(!m)continue;const{name:v,fn:y}=m,{x:b,y:g,data:w,reset:x}=await y({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=g?g:d,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(l=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Tn(l,f,c))),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var To="undefined"!=typeof document?s().useLayoutEffect:function(){};function Mo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Mo(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Mo(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Fo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lo(e,t){const r=Fo(e);return Math.round(t*r)/r}function qo(e){const t=s().useRef(e);return To(()=>{t.current=e}),t}const Io=(e,t)=>{const r=Po(e);return{name:r.name,fn:r.fn,options:[e,t]}},zo=(e,t)=>{const r=Eo(e);return{name:r.name,fn:r.fn,options:[e,t]}},Go=(e,t)=>({fn:Do(e).fn,options:[e,t]}),Wo=(e,t)=>{const r=Co(e);return{name:r.name,fn:r.fn,options:[e,t]}},$o=(e,t)=>{const r=No(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ho=(e,t)=>{const r=_o(e);return{name:r.name,fn:r.fn,options:[e,t]}},Bo=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&function(e){return{}.hasOwnProperty.call(e,"current")}(r)?null!=r.current?Ao({element:r.current,padding:n}).fn(t):{}:r?Ao({element:r,padding:n}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Uo=Object.defineProperty;function Ko(e){const[t,r]=s().useState(void 0);return yr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=0;const n=new ResizeObserver(n=>{if(!Array.isArray(n))return;if(!n.length)return;const o=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if("borderBoxSize"in o){const e=o.borderBoxSize,r=Array.isArray(e)?e[0]:e;t=r.inlineSize,n=r.blockSize}else t=e.offsetWidth,n=e.offsetHeight;r({width:t,height:n})})});return n.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}r(void 0)},[e]),t}((e,t)=>{Uo(e,"name",{value:t,configurable:!0})})(Ko,"useSize");var Qo=Object.defineProperty,Vo=(e,t)=>Qo(e,"name",{value:t,configurable:!0}),Yo={Partial:"partial",Always:"always"},Xo={Optimized:"optimized",Always:"always"},Zo="Popper",[Jo,ei]=fr(Zo),[ti,ri]=Jo(Zo),ni=Vo(e=>{const{__scopePopper:t,children:r}=e,[n,i]=s().useState(null),[a,c]=s().useState(void 0);return(0,o().jsx)(ti,{scope:t,anchor:n,onAnchorChange:i,placementState:a,setPlacementState:c,children:r})},"Popper"),oi=s().forwardRef(Vo(function(e,t){const{__scopePopper:r,virtualRef:n,...i}=e,a=ri("PopperAnchor",r),c=s().useRef(null),l=a.onAnchorChange,u=Je(t,s().useCallback(e=>{c.current=e,e&&l(e)},[l])),d=s().useRef(null);s().useEffect(()=>{if(!n)return;const e=d.current;d.current=n.current,e!==d.current&&l(d.current)});const f=a.placementState&&di(a.placementState),p=f?.[0],h=f?.[1];return n?null:(0,o().jsx)(mr.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:u})},"PopperAnchor")),ii="PopperContent",[si,ai]=Jo(ii),ci=s().forwardRef(Vo(function(e,t){const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:c="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h=Yo.Partial,hideWhenDetached:m=!1,updatePositionStrategy:v=Xo.Optimized,onPlaced:y,...b}=e,g=ri(ii,r),[w,x]=s().useState(null),O=Je(t,x),[k,j]=s().useState(null),S=Ko(k),P=S?.width??0,E=S?.height??0,C=n+("center"!==c?"-"+c:""),N="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},_=Array.isArray(f)?f:[f],A=_.length>0,D={padding:N,boundary:_.filter(li),altBoundary:A},{refs:R,floatingStyles:T,placement:M,isPositioned:F,middlewareData:L}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=s().useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=s().useState(n);Mo(h,n)||m(n);const[v,y]=s().useState(null),[b,g]=s().useState(null),w=s().useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=s().useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),O=i||v,k=c||b,j=s().useRef(null),S=s().useRef(null),P=s().useRef(f),E=null!=u,C=qo(u),N=qo(o),_=qo(d),A=s().useCallback(()=>{if(!j.current||!S.current)return;const e={placement:t,strategy:r,middleware:h};N.current&&(e.platform=N.current),Ro(j.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==_.current};D.current&&!Mo(P.current,t)&&(P.current=t,a().flushSync(()=>{p(t)}))})},[h,t,r,N,_]);To(()=>{!1===d&&P.current.isPositioned&&(P.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const D=s().useRef(!1);To(()=>(D.current=!0,()=>{D.current=!1}),[]),To(()=>{if(O&&(j.current=O),k&&(S.current=k),O&&k){if(C.current)return C.current(O,k,A);A()}},[O,k,A,C,E]);const R=s().useMemo(()=>({reference:j,floating:S,setReference:w,setFloating:x}),[w,x]),T=s().useMemo(()=>({reference:O,floating:k}),[O,k]),M=s().useMemo(()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Lo(T.floating,f.x),n=Lo(T.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Fo(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,T.floating,f.x,f.y]);return s().useMemo(()=>({...f,update:A,refs:R,elements:T,floatingStyles:M}),[f,A,R,T,M])}({strategy:"fixed",placement:C,whileElementsMounted:Vo((...e)=>So(...e,{animationFrame:v===Xo.Always}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[Io({mainAxis:i+E,alignmentAxis:l}),d&&zo({mainAxis:!0,crossAxis:!1,...h===Yo.Partial?{limiter:Go()}:{},...D}),d&&Wo({...D}),$o({...D,apply:Vo(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),k&&Bo({element:k,padding:u}),ui({arrowWidth:P,arrowHeight:E}),m&&Ho(A?{strategy:"referenceHidden",...D}:{strategy:"referenceHidden",padding:D.padding,altBoundary:D.altBoundary})]}),q=g.setPlacementState;yr(()=>(q(M),()=>{q(void 0)}),[M,q]);const[I,z]=di(M),G=wr(y);yr(()=>{F&&G?.()},[F,G]);const W=L.arrow?.x,$=L.arrow?.y,H=0!==L.arrow?.centerOffset,[B,U]=s().useState();return yr(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),(0,o().jsx)("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o().jsx)(si,{scope:r,placedSide:I,placedAlign:z,onArrowChange:j,arrowX:W,arrowY:$,shouldHideArrow:H,children:(0,o().jsx)(mr.div,{"data-side":I,"data-align":z,...b,ref:O,style:{...b.style,animation:F?b.style?.animation:"none"}})})})},"PopperContent"));function li(e){return null!==e}Vo(li,"isNotNull");var ui=Vo(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=di(r),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+a/2;let p="",h="";return"bottom"===c?(p=i?u:`${d}px`,h=-a+"px"):"top"===c?(p=i?u:`${d}px`,h=`${n.floating.height+a}px`):"right"===c?(p=-a+"px",h=i?u:`${f}px`):"left"===c&&(p=`${n.floating.width+a}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function di(e){const[t,r="center"]=e.split("-");return[t,r]}Vo(di,"getSideAndAlignFromPlacement");var fi=Object.defineProperty,pi=(e,t)=>fi(e,"name",{value:t,configurable:!0});function hi(e,t){return s().useReducer((e,r)=>t[e][r]??e,e)}pi(hi,"useStateMachine");var mi=pi(e=>{const{present:t,children:r}=e,n=vi(t),o="function"==typeof r?r({present:n.isPresent}):s().Children.only(r),i=bi(n.ref,wi(o));return"function"==typeof r||n.isPresent?s().cloneElement(o,{ref:i}):null},"Presence");function vi(e){const[t,r]=s().useState(),n=s().useRef(null),o=s().useRef(e),i=s().useRef("none"),a=s().useRef(void 0),c=e?"mounted":"unmounted",[l,u]=hi(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s().useEffect(()=>{"mounted"===l?(i.current=a.current??gi(n.current),a.current=void 0):i.current="none"},[l]),yr(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,s=gi(t);if(e)a.current=s,u("MOUNT");else if("none"===s||"none"===t?.display)u("UNMOUNT");else{u(r&&n!==s?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),yr(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,s=pi(i=>{const s=gi(n.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(u("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),a=pi(e=>{e.target===t&&(i.current=gi(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s().useCallback(e=>{if(e){const t=getComputedStyle(e);n.current=t,a.current=gi(t)}else n.current=null;r(e)},[])}}function yi(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function bi(...e){const t=s().useRef(e);return t.current=e,s().useCallback(e=>{const r=t.current;let n=!1;const o=r.map(t=>{const r=yi(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():yi(r[e],null)}}},[])}function gi(e){return e?.animationName||"none"}function wi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}pi(vi,"usePresence"),pi(yi,"setRef"),pi(bi,"useStableComposedRefs"),pi(gi,"getAnimationName"),pi(wi,"getElementRef");var xi=Object.defineProperty,Oi=c()[" useEffectEvent ".trim().toString()],ki=c()[" useInsertionEffect ".trim().toString()];function ji(e){if("function"==typeof Oi)return Oi(e);const t=s().useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof ki?ki(()=>{t.current=e}):yr(()=>{t.current=e}),s().useMemo(()=>(...e)=>t.current?.(...e),[])}((e,t)=>{xi(e,"name",{value:t,configurable:!0})})(ji,"useEffectEvent");var Si=Object.defineProperty,Pi=(e,t)=>Si(e,"name",{value:t,configurable:!0}),Ei=c()[" useInsertionEffect ".trim().toString()]||yr;function Ci({prop:e,defaultProp:t,onChange:r=Pi(()=>{},"onChange"),caller:n}){const[o,i,a]=Ni({defaultProp:t,onChange:r}),c=void 0!==e;return[c?e:o,s().useCallback(t=>{if(c){const r=_i(t)?t(e):t;r!==e&&a.current?.(r)}else i(t)},[c,e,i,a])]}function Ni({defaultProp:e,onChange:t}){const[r,n]=s().useState(e),o=s().useRef(r),i=s().useRef(t);return Ei(()=>{i.current=t},[t]),s().useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function _i(e){return"function"==typeof e}Pi(Ci,"useControllableState"),Pi(Ni,"useUncontrolledState"),Pi(_i,"isFunction");var Ai=Symbol("RADIX:SYNC_STATE");Pi(function(e,t,r,n){const{prop:o,defaultProp:i,onChange:a,caller:c}=t,l=void 0!==o,u=ji(a),d=[{...r,state:i}];n&&d.push(n);const[f,p]=s().useReducer((t,r)=>{if(r.type===Ai)return{...t,state:r.state};const n=e(t,r);return l&&!Object.is(n.state,t.state)&&u(n.state),n},...d),h=f.state,m=s().useRef(h);s().useEffect(()=>{m.current!==h&&(m.current=h,l||u(h))},[h,m,l]);const v=s().useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return s().useEffect(()=>{l&&!Object.is(o,f.state)&&p({type:Ai,state:o})},[o,f.state,l]),[v,p]},"useControllableStateReducer");var Di=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ri=new WeakMap,Ti=new WeakMap,Mi={},Fi=0,Li=function(e){return e&&(e.host||Li(e.parentNode))},qi=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=Li(t);return r&&e.contains(r)?r:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Mi[r]||(Mi[r]=new WeakMap);var i=Mi[r],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,c=(Ri.get(e)||0)+1,l=(i.get(e)||0)+1;Ri.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Ti.set(e,!0),1===l&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(e){}})};return u(t),a.clear(),Fi++,function(){s.forEach(function(e){var t=Ri.get(e)-1,o=i.get(e)-1;Ri.set(e,t),i.set(e,o),t||(Ti.has(e)||e.removeAttribute(n),Ti.delete(e)),o||e.removeAttribute(r)}),--Fi||(Ri=new WeakMap,Ri=new WeakMap,Ti=new WeakMap,Mi={})}},Ii=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Di(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),qi(n,o,r,"aria-hidden")):function(){return null}};var zi=function(){return zi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zi.apply(this,arguments)};function Gi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function Wi(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var $i="right-scroll-bar-position",Hi="width-before-scroll-bar";function Bi(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ui="undefined"!=typeof window?s().useLayoutEffect:s().useEffect,Ki=new WeakMap;function Qi(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return Bi(e,t)})},o=(0,s().useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0],o.callback=n,o.facade);return Ui(function(){var t=Ki.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||Bi(e,null)}),n.forEach(function(e){r.has(e)||Bi(e,o)})}Ki.set(i,e)},[e]),i}function Vi(e){return e}function Yi(e,t){void 0===t&&(t=Vi);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}}}var Xi=function(e){void 0===e&&(e={});var t=Yi(null);return t.options=zi({async:!0,ssr:!1},e),t}(),Zi=function(){},Ji=s().forwardRef(function(e,t){var r=s().useRef(null),n=s().useState({onScrollCapture:Zi,onWheelCapture:Zi,onTouchMoveCapture:Zi}),o=n[0],i=n[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,g=void 0===b?"div":b,w=e.gapMode,x=Gi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=Qi([r,t]),j=zi(zi({},x),o);return s().createElement(s().Fragment,null,d&&s().createElement(O,{sideCar:Xi,removeScrollBar:u,shards:f,noRelative:h,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?s().cloneElement(s().Children.only(c),zi(zi({},j),{ref:k})):s().createElement(g,zi({},j,{className:l,ref:k}),c))});Ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ji.classNames={fullWidth:Hi,zeroRight:$i};var es,ts=function(e){var t=e.sideCar,r=Gi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return s().createElement(n,zi({},r))};ts.isSideCarExport=!0;function rs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=es||r.nc;return t&&e.setAttribute("nonce",t),e}var ns=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=rs())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},os=function(){var e,t=(e=ns(),function(t,r){s().useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},is={left:0,top:0,right:0,gap:0},ss=function(e){return parseInt(e||"",10)||0},as=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return is;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ss(r),ss(n),ss(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cs=os(),ls="data-scroll-locked",us=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(a,"px ").concat(n,";\n  }\n  body[").concat(ls,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat($i," {\n    right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat(Hi," {\n    margin-right: ").concat(a,"px ").concat(n,";\n  }\n  \n  .").concat($i," .").concat($i," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(Hi," .").concat(Hi," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(ls,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ds=function(){var e=parseInt(document.body.getAttribute(ls)||"0",10);return isFinite(e)?e:0},fs=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;s().useEffect(function(){return document.body.setAttribute(ls,(ds()+1).toString()),function(){var e=ds()-1;e<=0?document.body.removeAttribute(ls):document.body.setAttribute(ls,e.toString())}},[]);var i=s().useMemo(function(){return as(o)},[o]);return s().createElement(cs,{styles:us(i,!t,o,r?"":"!important")})},ps=!1;if("undefined"!=typeof window)try{var hs=Object.defineProperty({},"passive",{get:function(){return ps=!0,!0}});window.addEventListener("test",hs,hs),window.removeEventListener("test",hs,hs)}catch(e){ps=!1}var ms=!!ps&&{passive:!1},vs=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},ys=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),bs(e,n)){var o=gs(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},bs=function(e,t){return"v"===e?function(e){return vs(e,"overflowY")}(t):function(e){return vs(e,"overflowX")}(t)},gs=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},ws=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xs=function(e){return[e.deltaX,e.deltaY]},Os=function(e){return e&&"current"in e?e.current:e},ks=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},js=0,Ss=[];function Ps(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Es=(Cs=function(e){var t=s().useRef([]),r=s().useRef([0,0]),n=s().useRef(),o=s().useState(js++)[0],i=s().useState(os)[0],a=s().useRef(e);s().useEffect(function(){a.current=e},[e]),s().useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Wi([e.lockRef.current],(e.shards||[]).map(Os),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s().useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=ws(e),s=r.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=ys(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=ys(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=o),!o)return!0;var m=n.current||o;return function(e,t,r,n,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{if(!a)break;var p=gs(e,a),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&bs(e,a)&&(d+=m,f+=h);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(f)<1||!o&&-s>f))&&(l=!0),l}(m,t,e,"h"===m?c:l,!0)},[]),l=s().useCallback(function(e){var r=e;if(Ss.length&&Ss[Ss.length-1]===i){var n="deltaY"in r?xs(r):ws(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Os).filter(Boolean).filter(function(e){return e.contains(r.target)});(s.length>0?c(r,s[0]):!a.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=s().useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:Ps(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=s().useCallback(function(e){r.current=ws(e),n.current=void 0},[]),f=s().useCallback(function(t){u(t.type,xs(t),t.target,c(t,e.lockRef.current))},[]),p=s().useCallback(function(t){u(t.type,ws(t),t.target,c(t,e.lockRef.current))},[]);s().useEffect(function(){return Ss.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ms),document.addEventListener("touchmove",l,ms),document.addEventListener("touchstart",d,ms),function(){Ss=Ss.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,ms),document.removeEventListener("touchmove",l,ms),document.removeEventListener("touchstart",d,ms)}},[]);var h=e.removeScrollBar,m=e.inert;return s().createElement(s().Fragment,null,m?s().createElement(i,{styles:ks(o)}):null,h?s().createElement(fs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Xi.useMedium(Cs),ts);var Cs,Ns=s().forwardRef(function(e,t){return s().createElement(Ji,zi({},e,{ref:t,sideCar:Es}))});Ns.classNames=Ji.classNames;const _s=Ns;var As=Object.defineProperty,Ds=(e,t)=>As(e,"name",{value:t,configurable:!0}),Rs="Popover",[Ts,Ms]=fr(Rs,[ei]),Fs=ei(),[Ls,qs]=Ts(Rs),Is=Ds(e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:c=!1}=e,l=Fs(t),u=s().useRef(null),[d,f]=s().useState(!1),[p,h]=s().useState(0),[m,v]=s().useState(0),[y,b]=Ci({prop:n,defaultProp:i??!1,onChange:a,caller:Rs});return(0,o().jsx)(ni,{...l,children:(0,o().jsx)(Ls,{scope:t,contentId:ln(),titleId:ln(),descriptionId:ln(),titlePresent:p>0,descriptionPresent:m>0,setTitleCount:h,setDescriptionCount:v,triggerRef:u,open:y,onOpenChange:b,onOpenToggle:s().useCallback(()=>b(e=>!e),[b]),hasCustomAnchor:d,onCustomAnchorAdd:s().useCallback(()=>f(!0),[]),onCustomAnchorRemove:s().useCallback(()=>f(!1),[]),modal:c,children:r})})},"Popover"),zs=s().forwardRef(Ds(function(e,t){const{__scopePopover:r,...n}=e,i=qs("PopoverTrigger",r),s=Fs(r),a=Je(t,i.triggerRef),c=(0,o().jsx)(mr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ys(i.open),...n,ref:a,onClick:ar(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,o().jsx)(oi,{asChild:!0,...s,children:c})},"PopoverTrigger")),Gs="PopoverPortal",[Ws,$s]=Ts(Gs,{forceMount:void 0}),Hs="PopoverContent",Bs=s().forwardRef(Ds(function(e,t){const r=$s(Hs,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,s=qs(Hs,e.__scopePopover);return(0,o().jsx)(mi,{present:n||s.open,children:s.modal?(0,o().jsx)(Ks,{...i,ref:t}):(0,o().jsx)(Qs,{...i,ref:t})})},"PopoverContent")),Us=rt("PopoverContent.RemoveScroll"),Ks=s().forwardRef(Ds(function(e,t){const r=qs(Hs,e.__scopePopover),n=s().useRef(null),i=Je(t,n),a=s().useRef(!1),{nodes:c,registry:l}=Ur();return s().useEffect(()=>{const e=n.current;if(e)return Ii(e)},[]),(0,o().jsx)(_s,{as:Us,allowPinchZoom:!0,shards:s().useMemo(()=>[n,...c.map(e=>({current:e}))],[n,c]),children:(0,o().jsx)(Vs,{...e,ref:i,branchNodes:c,branchRegistry:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ar(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:ar(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;a.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:ar(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Qs=s().forwardRef(Ds(function(e,t){const r=qs(Hs,e.__scopePopover),n=s().useRef(!1),i=s().useRef(!1);return(0,o().jsx)(Vs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,s=r.triggerRef.current?.contains(o);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),Vs=s().forwardRef(Ds(function(e,t){const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,"aria-describedby":p,branchNodes:h,branchRegistry:m,...v}=e,y=qs(Hs,r),b=Fs(r),[g,w]=s().useState(null),x=Je(t,w);return Kr(g),Fr(),(0,o().jsx)(Br,{registry:m,children:(0,o().jsx)($r,{asChild:!0,loop:!0,trapped:n,branches:h,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o().jsx)(Pr,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>y.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o().jsx)(ci,{"data-state":Ys(y.open),role:"dialog",id:y.contentId,"aria-labelledby":y.titlePresent?y.titleId:void 0,"aria-describedby":y.descriptionPresent?Xs(p,y.descriptionId):p,...b,...v,ref:x,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function Ys(e){return e?"open":"closed"}function Xs(...e){const t=new Set;for(const r of e)if("string"==typeof r)for(const e of String(r).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}Ds(Ys,"getState"),Ds(Xs,"concatAriaDescribedby");var Js=["className","align","sideOffset"];function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ta(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Zs(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ra=Is,na=zs,oa=s().forwardRef(function(e,t){var r=e.className,n=e.align,i=void 0===n?"center":n,s=e.sideOffset,a=void 0===s?4:s,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Js);return(0,o().jsx)(Bs,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach(function(t){ta(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({ref:t,align:i,sideOffset:a,className:Qe("vt-ui vt-z-[1000000] vt-w-48 vt-rounded-md vt-border vt-bg-popover vt-p-4 vt-text-popover-foreground vt-shadow-md vt-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r)},c))});function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ia(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}oa.displayName=Bs.displayName;var ca=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(r),!0).forEach(function(t){aa(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sa(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window._versatileObject);const la=ca;let ua={data:""},da=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||ua},fa=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,pa=/\/\*[^]*?\*\/|  +/g,ha=/\n+/g,ma=(e,t)=>{let r="",n="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+s+";":n+="f"==i[1]?ma(s,i):i+"{"+ma(s,"k"==i[1]?"":t)+"}":"object"==typeof s?n+=ma(s,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=s&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ma.p?ma.p(i,s):i+":"+s+";")}return r+(t&&o?t+"{"+o+"}":o)+n},va={},ya=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+ya(e[r]);return t}return e};function ba(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,o)=>{let i=ya(e),s=va[i]||(va[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!va[s]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=fa.exec(e.replace(pa,""));)t[4]?n.shift():t[3]?(r=t[3].replace(ha," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(ha," ").trim();return n[0]})(e);va[s]=ma(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let a=r&&va.g;return r&&(va.g=va[s]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(va[s],t,n,a),s})(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":ma(e,""):!1===e?"":e}return e+n+(i??"")},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,da(t.target),t.g,t.o,t.k)}ba.bind({g:1});let ga,wa,xa,Oa=ba.bind({k:1});function ka(e,t){let r=this||{};return function(){let n=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;r.p=Object.assign({theme:wa&&wa()},a),r.o=/go\d/.test(c),a.className=ba.apply(r,n)+(c?" "+c:""),t&&(a.ref=s);let l=e;return e[0]&&(l=a.as||e,delete a.as),xa&&l[0]&&xa(a),ga(l,a)}return t?t(o):o}}var ja=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Sa=(()=>{let e=0;return()=>(++e).toString()})(),Pa=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ea="default",Ca=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return Ca(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Na=[],_a={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},Aa={},Da=(e,t=Ea)=>{Aa[t]=Ca(Aa[t]||_a,e),Na.forEach(([e,r])=>{e===t&&r(Aa[t])})},Ra=e=>Object.keys(Aa).forEach(t=>Da(e,t)),Ta=(e=Ea)=>t=>{Da(t,e)},Ma={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Fa=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Sa()}))(t,e,r);return Ta(n.toasterId||(e=>Object.keys(Aa).find(t=>Aa[t].toasts.some(t=>t.id===e)))(n.id))({type:2,toast:n}),n.id},La=(e,t)=>Fa("blank")(e,t);La.error=Fa("error"),La.success=Fa("success"),La.loading=Fa("loading"),La.custom=Fa("custom"),La.dismiss=(e,t)=>{let r={type:3,toastId:e};t?Ta(t)(r):Ra(r)},La.dismissAll=e=>La.dismiss(void 0,e),La.remove=(e,t)=>{let r={type:4,toastId:e};t?Ta(t)(r):Ra(r)},La.removeAll=e=>La.remove(void 0,e),La.promise=(e,t,r)=>{let n=La.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?ja(t.success,e):void 0;return o?La.success(o,{id:n,...r,...null==r?void 0:r.success}):La.dismiss(n),e}).catch(e=>{let o=t.error?ja(t.error,e):void 0;o?La.error(o,{id:n,...r,...null==r?void 0:r.error}):La.dismiss(n)}),e};var qa=(e,t="default")=>{let{toasts:r,pausedAt:n}=((e={},t=Ea)=>{let[r,n]=(0,s().useState)(Aa[t]||_a),o=(0,s().useRef)(Aa[t]);(0,s().useEffect)(()=>(o.current!==Aa[t]&&n(Aa[t]),Na.push([t,n]),()=>{let e=Na.findIndex(([e])=>e===t);e>-1&&Na.splice(e,1)}),[t]);let i=r.toasts.map(t=>{var r,n,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Ma[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...r,toasts:i}})(e,t),o=(0,s().useRef)(new Map).current,i=(0,s().useCallback)((e,t=1e3)=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),a({type:4,toastId:e})},t);o.set(e,r)},[]);(0,s().useEffect)(()=>{if(n)return;let e=Date.now(),o=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(!(n<0))return setTimeout(()=>La.dismiss(r.id,t),n);r.visible&&La.dismiss(r.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let a=(0,s().useCallback)(Ta(t),[t]),c=(0,s().useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,s().useCallback)((e,t)=>{a({type:1,toast:{id:e,height:t}})},[a]),u=(0,s().useCallback)(()=>{n&&a({type:6,time:Date.now()})},[n,a]),d=(0,s().useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=t||{},s=r.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=s.findIndex(t=>t.id===e.id),c=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+o,0)},[r]);return(0,s().useEffect)(()=>{r.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[r,i]),{toasts:r,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:d}}},Ia=Oa` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,za=Oa` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Ga=Oa` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Wa=ka("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Ia} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${za} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Ga} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,$a=Oa` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Ha=ka("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${$a} 1s linear infinite; `,Ba=Oa` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Ua=Oa` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Ka=ka("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Ba} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Ua} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Qa=ka("div")` position: absolute; `,Va=ka("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Ya=Oa` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Xa=ka("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Ya} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Za=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?s().createElement(Xa,null,t):t:"blank"===r?null:s().createElement(Va,null,s().createElement(Ha,{...n}),"loading"!==r&&s().createElement(Qa,null,"error"===r?s().createElement(Wa,{...n}):s().createElement(Ka,{...n})))},Ja=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,ec=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} `,tc=ka("div")` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,rc=ka("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,nc=s().memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Pa()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Ja(r),ec(r)];return{animation:t?`${Oa(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Oa(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=s().createElement(Za,{toast:e}),a=s().createElement(rc,{...e.ariaProps},ja(e.message,e));return s().createElement(tc,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:a}):s().createElement(s().Fragment,null,i,a))});!function(e,t,r,n){ma.p=t,ga=e,wa=r,xa=n}(s().createElement);var oc=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=s().useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return s().createElement("div",{ref:i,className:t,style:r},o)},ic=ba` z-index: 9999; > * { pointer-events: auto; } `,sc=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:i,containerStyle:a,containerClassName:c})=>{let{toasts:l,handlers:u}=qa(r,i);return s().createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(r=>{let i=r.position||t,a=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Pa()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return s().createElement(oc,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?ic:"",style:a},"custom"===r.type?ja(r.message,r):o?o(r):s().createElement(nc,{toast:r,position:i}))}))},ac=La;function cc(e){return cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(e)}var lc=function(e){return e instanceof File||e instanceof Blob},uc=function(e){return"string"==typeof e},dc=function(e){return"boolean"==typeof e},fc=function(e){return"number"==typeof e},pc=function(e){for(var t=new FormData,r=function(){var r=o[n],i=e[r];Array.isArray(i)?i.forEach(function(e,n){lc(e)||uc(e)?t.append("".concat(r,"[").concat(n,"]"),e):dc(e)||fc(e)?t.append("".concat(r,"[").concat(n,"]"),e.toString()):"object"===cc(e)&&null!==e?t.append("".concat(r,"[").concat(n,"]"),JSON.stringify(e)):t.append("".concat(r,"[").concat(n,"]"),e)}):lc(i)||uc(i)?t.append(r,i):dc(i)?t.append(r,i.toString()):fc(i)?t.append(r,"".concat(i)):"object"===cc(i)&&null!==i?t.append(r,JSON.stringify(i)):t.append(r,i)},n=0,o=Object.keys(e);n<o.length;n++)r();return t};function hc(e){return hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hc(e)}function mc(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return vc(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(vc(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,vc(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,vc(d,"constructor",l),vc(l,"constructor",c),c.displayName="GeneratorFunction",vc(l,o,"GeneratorFunction"),vc(d),vc(d,o,"Generator"),vc(d,n,function(){return this}),vc(d,"toString",function(){return"[object Generator]"}),(mc=function(){return{w:i,m:f}})()}function vc(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}vc=function(e,t,r,n){function i(t,r){vc(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},vc(e,t,r,n)}function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=hc(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wc(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function xc(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){wc(i,n,o,s,a,"next",e)}function a(e){wc(i,n,o,s,a,"throw",e)}s(void 0)})}}function Oc(e,t){return kc.apply(this,arguments)}function kc(){return kc=xc(mc().m(function e(t,r){var n,o,i,s,a,c,l,u,d,f,p,h,m;return mc().w(function(e){for(;;)switch(e.p=e.n){case 0:return o=la.wp_rest_nonce,i=la.nonce_key,s=la.nonce_value,a="".concat(t),c=(null===(n=r.method)||void 0===n?void 0:n.toUpperCase())||"POST",l=bc({"X-WP-Nonce":o},r.headers||{}),u={method:c,headers:l},["GET","DELETE"].includes(c)?((d=new URLSearchParams(null==r?void 0:r.body)).append(i,s),a+="?".concat(d.toString())):r.body&&((f=pc(r.body)).append(i,s),u.body=f),e.p=1,e.n=2,fetch(a,u);case 2:return p=e.v,e.n=3,p.json();case 3:if(200!==(h=e.v).status_code){e.n=4;break}return e.a(2,h);case 4:throw new Error(h.message);case 5:e.n=7;break;case 6:throw e.p=6,m=e.v,new Error((null==m?void 0:m.message)||"fetch request error!!");case 7:return e.a(2)}},e,null,[[1,6]])})),kc.apply(this,arguments)}const jc=s().createContext(void 0),Sc=({client:e,children:t})=>(s().useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o().jsx)(jc.Provider,{value:e,children:t})),Pc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};const Ec=new class{#e=Pc;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const Cc="undefined"==typeof window||"Deno"in globalThis;function Nc(){}function _c(e,t){return"function"==typeof e?e(t):e}function Ac(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Rc(s,t.options))return!1}else if(!Mc(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Dc(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Tc(t.options.mutationKey)!==Tc(i))return!1}else if(!Mc(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function Rc(e,t){return(t?.queryKeyHashFn||Tc)(e)}function Tc(e){return JSON.stringify(e,(e,t)=>Ic(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function Mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(!Mc(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!Mc(e[n],t[n]))return!1;return!0}return!1}const Fc=Object.prototype.hasOwnProperty;function Lc(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=qc(e)&&qc(t);if(!(n||Ic(e)&&Ic(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let c=0;for(let l=0;l<s;l++){const s=n?l:i[l],u=e[s],d=t[s];if(u===d){a[s]=u,(n?l<o:Fc.call(e,s))&&c++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}const f=Lc(u,d,r+1);a[s]=f,f===u&&c++}return o===s&&c===o?e:a}function qc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ic(e){if(!zc(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;const n=r.prototype;return!!zc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&t===Object.prototype)}function zc(e){return"[object Object]"===Object.prototype.toString.call(e)}function Gc(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?Lc(e,t):t}function Wc(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(-r):n}function $c(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,r):n}const Hc=Symbol();function Bc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Hc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}const Uc=Symbol();var Kc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};const Qc=function(e){setTimeout(e,0)};const Vc=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=Qc;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();let Yc=()=>Cc;const Xc=()=>Yc();const Zc=new class extends Kc{#r;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}};const Jc=new class extends Kc{#i=!0;#n;#o;constructor(){super(),this.#o=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#o=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function el(e){return Math.min(1e3*2**e,3e4)}function tl(e){return"online"!==(e??"online")||Jc.isOnline()}var rl=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function nl(e){let t,r,n,o=!1,i=0,s="pending";const a=new Promise((e,t)=>{r=e,n=t});a.catch(Nc);const c=()=>"pending"!==s,l=()=>Zc.isFocused()&&("always"===e.networkMode||Jc.isOnline())&&e.canRun(),u=()=>tl(e.networkMode)&&e.canRun(),d=e=>{c()||(t?.(),s="resolved",r(e))},f=e=>{c()||(t?.(),s="rejected",n(e))},p=r=>new Promise(n=>{t=e=>{(c()||r())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,c()||e.onContinue?.()}),h=()=>{if(c())return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(d).catch(t=>{if(c())return;const r=e.retry??(Xc()?0:3),n=e.retryDelay??el,s="function"==typeof n?n(i,t):n,a=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&a?(i++,e.onFail?.(i,t),(u=s,new Promise(e=>{Ec.setTimeout(e,u)})).then(()=>c()||l()?void 0:p(l)).then(()=>{o?f(t):h()})):f(t)})};return{promise:a,status:()=>s,cancel:t=>{if(!c()){const r=new rl(t);f(r),e.onCancel?.(r)}},continue:()=>(t?.(),a),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:u,start:()=>(u()?h():p(u).then(h),a)}}var ol=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),function(e){return"number"==typeof e&&e>=0&&e!==1/0}(this.gcTime)&&(this.#s=Ec.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xc()?1/0:3e5))}clearGcTimeout(){void 0!==this.#s&&(Ec.clearTimeout(this.#s),this.#s=void 0)}},il=class extends ol{#a;#c;#l;#u;constructor(e){super(),this.#a=e.client,this.mutationId=e.mutationId,this.#l=e.mutationCache,this.#c=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#c.includes(e)||(this.#c.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#c=this.#c.filter(t=>t!==e),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#c.length||("pending"===this.state.status?this.scheduleGc():this.#l.remove(this))}continue(){return this.#u?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#d({type:"continue"})},r={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#u=nl({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)}),o="pending"===this.state.status,i=!n.canStart();try{if(o)t();else{this.#d({type:"pending",variables:e,isPaused:i}),this.#l.config.onMutate&&await this.#l.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:i})}this.state.isPaused&&n.canStart()&&t();const s=await n.start();return await(this.#l.config.onSuccess?.(s,e,this.state.context,this,r)),await(this.options.onSuccess?.(s,e,this.state.context,r)),await(this.#l.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(s,null,e,this.state.context,r)),this.#d({type:"success",data:s}),s}catch(t){try{await(this.#l.config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(this.#l.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw this.#d({type:"error",error:t}),t}finally{this.#u===n&&(this.#u=void 0),this.#l.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Vc.batch(()=>{this.#c.forEach(t=>{t.onMutationUpdate(e)}),this.#l.notify({mutation:this,type:"updated",action:e})})}};var sl=class extends Kc{#a;#f=void 0;#p;#h;constructor(e,t){super(),this.#a=e,this.setOptions(t),this.bindMethods(),this.#m()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#a.defaultMutationOptions(e),function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r of Object.keys(e))if(!Fc.call(t,r)||e[r]!==t[r])return!1;return!0}(this.options,t)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&Tc(t.mutationKey)!==Tc(this.options.mutationKey)?this.reset():"pending"===this.#p?.state.status&&this.#p.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#p&&(this.#p.addObserver(this),this.#m())}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#m(),this.#v(e)}getCurrentResult(){return this.#f}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#m(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#a.getMutationCache().build(this.#a,this.options),this.#p.addObserver(this),this.#p.execute(e)}#m(){const e=this.#p?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){Vc.batch(()=>{const t=this.#h;if(t&&this.hasListeners()){const r=this.#f.variables,n=this.#f.context,o={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{t.onSuccess?.(e.data,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,r,n,o)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{t.onError?.(e.error,r,n,o)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,r,n,o)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#f)})})}};function al(e,t){const r=(e=>{const t=s().useContext(jc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(t),[n]=s().useState(()=>new sl(r,e));s().useEffect(()=>{n.setOptions(e)},[n,e]);const o=s().useSyncExternalStore(s().useCallback(e=>n.subscribe(Vc.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=s().useCallback((...e)=>{n.mutate(e[0],e[1]).catch(Nc)},[n]);if(o.error&&(a=n.options.throwOnError,c=[o.error],"function"==typeof a?a(...c):a))throw o.error;var a,c;return{...o,mutate:i,mutateAsync:o.mutate}}function cl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return ll(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ll(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ll(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,ll(d,"constructor",l),ll(l,"constructor",c),c.displayName="GeneratorFunction",ll(l,o,"GeneratorFunction"),ll(d),ll(d,o,"Generator"),ll(d,n,function(){return this}),ll(d,"toString",function(){return"[object Generator]"}),(cl=function(){return{w:i,m:f}})()}function ll(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ll=function(e,t,r,n){function i(t,r){ll(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ll(e,t,r,n)}function ul(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function dl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ul(i,n,o,s,a,"next",e)}function a(e){ul(i,n,o,s,a,"throw",e)}s(void 0)})}}var fl=function(){var e=dl(cl().m(function e(t){var r;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Oc(la.ajax_url,{body:t});case 1:return r=e.v,e.a(2,r)}},e)}));return function(t){return e.apply(this,arguments)}}(),pl=function(){var e=dl(cl().m(function e(){var t;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl({action:"versatile_quickact_plugins_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),hl=function(){var e=dl(cl().m(function e(){var t;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl({action:"versatile_quickact_themes_list"});case 1:return t=e.v,e.a(2,t.data||[])}},e)}));return function(){return e.apply(this,arguments)}}(),ml=function(){return al({mutationFn:(e=dl(cl().m(function e(t){var r;return cl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fl(t);case 1:return r=e.v,e.a(2,r)}},e)})),function(t){return e.apply(this,arguments)}),onSuccess:function(e){ac.success(e.message||(0,l.__)("Quick action completed successfully!","versatile-toolkit"))},onError:function(e){ac.error(e.message||(0,l.__)("Quick action failed","versatile-toolkit"))}});var e};function vl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yl(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function bl(e,t){var r=vl((0,s().useState)(e),2),n=r[0],o=r[1];return(0,s().useEffect)(function(){var r=window.setTimeout(function(){return o(e)},t);return function(){return window.clearTimeout(r)}},[e,t]),n}const gl=p("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),wl=p("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),xl=p("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Ol(e){return Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(e)}function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(r),!0).forEach(function(t){Sl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ol(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ol(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return El(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(El(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,El(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,El(d,"constructor",l),El(l,"constructor",c),c.displayName="GeneratorFunction",El(l,o,"GeneratorFunction"),El(d),El(d,o,"Generator"),El(d,n,function(){return this}),El(d,"toString",function(){return"[object Generator]"}),(Pl=function(){return{w:i,m:f}})()}function El(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}El=function(e,t,r,n){function i(t,r){El(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},El(e,t,r,n)}function Cl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Nl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Cl(i,n,o,s,a,"next",e)}function a(e){Cl(i,n,o,s,a,"throw",e)}s(void 0)})}}function _l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Al(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Al(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Al(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Dl=function(){var e=_l((0,s().useState)([]),2),t=e[0],r=e[1],n=_l((0,s().useState)(!1),2),i=n[0],a=n[1],c=_l((0,s().useState)(null),2),u=c[0],d=c[1],f=_l((0,s().useState)(null),2),p=f[0],h=f[1],m=_l((0,s().useState)(""),2),v=m[0],y=m[1],b=bl(v,300),g=ml(),w=g.mutateAsync,x=g.isPending,O=(0,s().useCallback)(Nl(Pl().m(function e(){var t;return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:return a(!0),e.p=1,e.n=2,pl();case 2:t=e.v,r(t);case 3:return e.p=3,a(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,s().useEffect)(function(){O()},[O]);var k=function(){var e=Nl(Pl().m(function e(t,n){return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:return d(t),e.p=1,e.n=2,w({action:n?"versatile_quickact_plugin_activate":"versatile_quickact_plugin_deactivate",plugin_file:t});case 2:r(function(e){return e.map(function(e){return e.file===t?jl(jl({},e),{},{is_active:n}):e})});case 3:return e.p=3,d(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Nl(Pl().m(function e(t){return Pl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,l.__)("Are you sure you want to delete this plugin?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return h(t),e.p=2,e.n=3,w({action:"versatile_quickact_plugin_delete",plugin_file:t});case 3:r(function(e){return e.filter(function(e){return e.file!==t})});case 4:return e.p=4,h(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),S=(0,s().useMemo)(function(){var e=b.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.file," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,b]);return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsxs)("div",{className:"vt-quickact-section-head",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Plugin List","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,o().jsx)(gl,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(nr,{type:"search",value:v,className:"vt-w-max vt-pl-8 vt-h-5",onChange:function(e){return y(e.target.value)},placeholder:(0,l.__)("Search plugins…","versatile-toolkit"),autoComplete:"off","aria-label":(0,l.__)("Search plugins","versatile-toolkit"),disabled:i})]})]}),i&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("Loading plugins...","versatile-toolkit")}),!i&&0===t.length&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("No plugins found.","versatile-toolkit")}),!i&&t.length>0&&0===S.length&&(0,o().jsx)("div",{style:{minHeight:"120px"},children:(0,l.__)("No plugins match your search.","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-section-list",children:S.map(function(e){return(0,o().jsxs)("div",{className:"vt-quickact-row ".concat(e.is_active?"vt-quickact-row-active":""),children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,o().jsxs)("div",{className:"vt-quickact-row-meta",children:[e.file," ",e.version?"(".concat(e.version,")"):""]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,o().jsx)(St,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:x,onClick:function(){k(e.file,!e.is_active)},children:(0,o().jsx)(Zt,{isLoading:u===e.file,loadingText:"loading",size:"xs",children:e.is_active?(0,l.__)("Deactivate","versatile-toolkit"):(0,l.__)("Activate","versatile-toolkit")})}),(0,o().jsxs)(ra,{children:[(0,o().jsx)(na,{asChild:!0,children:(0,o().jsxs)(St,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,o().jsx)(wl,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,l.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsx)(oa,{className:"vt-w-max vt-p-1",align:"end",children:(0,o().jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,o().jsx)(St,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:x,onClick:function(){j(e.file)},children:(0,o().jsxs)(Zt,{isLoading:p===e.file,loadingText:"loading",size:"xs",children:[(0,o().jsx)(xl,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,o().jsx)("span",{children:(0,l.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.file)})})]})};function Rl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Tl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Tl(d,"constructor",l),Tl(l,"constructor",c),c.displayName="GeneratorFunction",Tl(l,o,"GeneratorFunction"),Tl(d),Tl(d,o,"Generator"),Tl(d,n,function(){return this}),Tl(d,"toString",function(){return"[object Generator]"}),(Rl=function(){return{w:i,m:f}})()}function Tl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tl=function(e,t,r,n){function i(t,r){Tl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tl(e,t,r,n)}function Ml(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}const Fl=function(){var e=ml(),t=e.mutateAsync,r=e.isPending,n=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Ml(i,n,o,s,a,"next",e)}function a(e){Ml(i,n,o,s,a,"throw",e)}s(void 0)})}}(Rl().m(function e(){return Rl().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Settings","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-quickact-row vt-quickact-row-comfortable",children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:(0,l.__)("Permalink Reset","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-row-meta",children:(0,l.__)("Flush and regenerate rewrite rules.","versatile-toolkit")})]}),(0,o().jsx)(St,{variant:"softBlue",size:"softBlue",type:"button",disabled:r,onClick:function(){n()},children:(0,o().jsx)(Zt,{isLoading:r,loadingText:(0,l.__)("loading","versatile-toolkit"),size:"sm",children:(0,l.__)("Reset","versatile-toolkit")})})]})]})};function Ll(e){return Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(e)}function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(t){zl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ll(e)||!e)return e;var r;if("undefined"!=typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var n=r.call(e,t||"default");if("object"!=Ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ll(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gl(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Wl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Wl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Wl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Wl(d,"constructor",l),Wl(l,"constructor",c),c.displayName="GeneratorFunction",Wl(l,o,"GeneratorFunction"),Wl(d),Wl(d,o,"Generator"),Wl(d,n,function(){return this}),Wl(d,"toString",function(){return"[object Generator]"}),(Gl=function(){return{w:i,m:f}})()}function Wl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wl=function(e,t,r,n){function i(t,r){Wl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Wl(e,t,r,n)}function $l(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Hl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){$l(i,n,o,s,a,"next",e)}function a(e){$l(i,n,o,s,a,"throw",e)}s(void 0)})}}function Bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ul(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ul(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Kl=function(){var e=Bl((0,s().useState)([]),2),t=e[0],r=e[1],n=Bl((0,s().useState)(!1),2),i=n[0],a=n[1],c=Bl((0,s().useState)(null),2),u=c[0],d=c[1],f=Bl((0,s().useState)(null),2),p=f[0],h=f[1],m=Bl((0,s().useState)(""),2),v=m[0],y=m[1],b=bl(v,300),g=ml(),w=g.mutateAsync,x=g.isPending,O=(0,s().useCallback)(Hl(Gl().m(function e(){var t;return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:return a(!0),e.p=1,e.n=2,hl();case 2:t=e.v,r(t);case 3:return e.p=3,a(!1),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])})),[]);(0,s().useEffect)(function(){O()},[O]);var k=function(){var e=Hl(Gl().m(function e(t,n){return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:return d(t),e.p=1,e.n=2,w({action:n?"versatile_quickact_theme_activate":"versatile_quickact_theme_deactivate",stylesheet:t});case 2:r(function(e){return e.map(function(e){return e.stylesheet===t?Il(Il({},e),{},{is_active:n}):n?Il(Il({},e),{},{is_active:!1}):e})});case 3:return e.p=3,d(null),e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(t,r){return e.apply(this,arguments)}}(),j=function(){var e=Hl(Gl().m(function e(t){return Gl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm((0,l.__)("Are you sure you want to delete this theme?","versatile-toolkit"))){e.n=1;break}return e.a(2);case 1:return h(t),e.p=2,e.n=3,w({action:"versatile_quickact_theme_delete",stylesheet:t});case 3:r(function(e){return e.filter(function(e){return e.stylesheet!==t})});case 4:return e.p=4,h(null),e.f(4);case 5:return e.a(2)}},e,null,[[2,,4,5]])}));return function(t){return e.apply(this,arguments)}}(),S=(0,s().useMemo)(function(){var e=b.trim().toLowerCase();return e?t.filter(function(t){return"".concat(t.name," ").concat(t.stylesheet," ").concat(t.version||"").toLowerCase().includes(e)}):t},[t,b]);return(0,o().jsxs)("div",{className:"vt-quickact-section",children:[(0,o().jsxs)("div",{className:"vt-quickact-section-head",children:[(0,o().jsx)("div",{className:"vt-quickact-section-title",children:(0,l.__)("Theme List","versatile-toolkit")}),(0,o().jsxs)("div",{className:"vt-max-w-max vt-relative",children:[(0,o().jsx)(gl,{className:"vt-absolute vt-left-3 vt-top-1/2 vt-transform -vt-translate-y-1/2 vt-text-gray-400 vt-w-4 vt-h-4"}),(0,o().jsx)(nr,{type:"search",className:"vt-w-max vt-pl-8 vt-h-5",value:v,onChange:function(e){return y(e.target.value)},placeholder:(0,l.__)("Search themes…","versatile-toolkit"),autoComplete:"off","aria-label":(0,l.__)("Search themes","versatile-toolkit"),disabled:i})]})]}),i&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("Loading themes...","versatile-toolkit")}),!i&&0===t.length&&(0,o().jsx)("div",{style:{minHeight:"300px"},children:(0,l.__)("No themes found.","versatile-toolkit")}),!i&&t.length>0&&0===S.length&&(0,o().jsx)("div",{style:{minHeight:"120px"},children:(0,l.__)("No themes match your search.","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-quickact-section-list",children:S.map(function(e){return(0,o().jsxs)("div",{className:"vt-quickact-row".concat(e.is_active?" vt-quickact-row-active":""),children:[(0,o().jsxs)("div",{className:"vt-quickact-row-body",children:[(0,o().jsx)("div",{className:"vt-quickact-row-title",children:e.name}),(0,o().jsxs)("div",{className:"vt-quickact-row-meta",children:[e.stylesheet," ",e.version?"(".concat(e.version,")"):""]})]}),(0,o().jsxs)("div",{className:"vt-flex vt-gap-1 vt-items-center",children:[(0,o().jsx)(St,{type:"button",className:"vt-w-[60px]",size:"xs",variant:"secondary",disabled:x,onClick:function(){k(e.stylesheet,!e.is_active)},children:(0,o().jsx)(Zt,{isLoading:u===e.stylesheet,loadingText:"loading",size:"xs",children:e.is_active?(0,l.__)("Deactivate","versatile-toolkit"):(0,l.__)("Activate","versatile-toolkit")})}),(0,o().jsxs)(ra,{children:[(0,o().jsx)(na,{asChild:!0,children:(0,o().jsxs)(St,{type:"button",variant:"ghost",size:"xs",className:"vt-h-6 vt-w-6 vt-p-0",disabled:e.is_active,onClick:function(e){return e.stopPropagation()},onPointerDown:function(e){return e.stopPropagation()},children:[(0,o().jsx)(wl,{className:"vt-h-4 vt-w-4 ".concat(e.is_active?"vt-text-gray-400":"vt-text-gray-700")}),(0,o().jsx)("span",{className:"vt-sr-only",children:(0,l.__)("Open menu","versatile-toolkit")})]})}),(0,o().jsx)(oa,{className:"vt-w-max vt-p-1",align:"end",children:(0,o().jsx)("div",{className:"vt-flex vt-flex-col vt-gap-1",children:!e.is_active&&(0,o().jsx)(St,{type:"button",className:"vt-justify-start vt-text-destructive hover:vt-text-destructive",size:"xs",variant:"ghost",disabled:x,onClick:function(){j(e.stylesheet)},children:(0,o().jsxs)(Zt,{isLoading:p===e.stylesheet,loadingText:"loading",size:"xs",children:[(0,o().jsx)(xl,{className:"vt-mr-2 vt-h-3 vt-w-3"}),(0,o().jsx)("span",{children:(0,l.__)("Delete","versatile-toolkit")})]})})})})]})]})]},e.stylesheet)})})]})};Array.from({length:10},function(e,t){return{key:"column-".concat(t),label:"Column ".concat(t+1)}});function Ql(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof a?n:a,l=Object.create(c.prototype);return Vl(l,"_invoke",function(r,n,o){var i,a,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,s}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,h=i[2];r>3?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return s;throw d=!0,n}return function(o,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),a=u,c=h;(t=a<2?e:c)||!d;){i||(a?(a>1&&(f.n=a<3?-1:c),p(a,c)):f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Vl(t={},n,function(){return this}),t),d=l.prototype=a.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Vl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Vl(d,"constructor",l),Vl(l,"constructor",c),c.displayName="GeneratorFunction",Vl(l,o,"GeneratorFunction"),Vl(d),Vl(d,o,"Generator"),Vl(d,n,function(){return this}),Vl(d,"toString",function(){return"[object Generator]"}),(Ql=function(){return{w:i,m:f}})()}function Vl(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Vl=function(e,t,r,n){function i(t,r){Vl(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Vl(e,t,r,n)}function Yl(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}function Xl(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Yl(i,n,o,s,a,"next",e)}function a(e){Yl(i,n,o,s,a,"throw",e)}s(void 0)})}}const Zl=function(){var e=ml(),t=e.mutateAsync,r=e.isPending,n=function(){var e=Xl(Ql().m(function e(){return Ql().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t({action:"versatile_reset_permalinks"});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return(0,o().jsxs)("div",{className:"vt-border-b vt-border-gray-200 vt-pb-3 vt-flex vt-gap-1 vt-justify-between vt-items-center",children:[(0,o().jsx)("h2",{className:"vt-mr-2 vt-text-sm vt-font-medium vt-text-gray-500",children:(0,l.__)("Top Actions","versatile-toolkit")}),(0,o().jsx)("div",{className:"vt-flex vt-gap-2 vt-justify-between",children:(0,o().jsx)(St,{type:"button",variant:"softBlue",size:"softBlue",disabled:r,onClick:n,children:(0,o().jsx)(Zt,{isLoading:r,loadingText:(0,l.__)("Resetting...","versatile-toolkit"),size:"xs",children:(0,l.__)("Reset Permalink","versatile-toolkit")})})})]})};function Jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tu=function(e){return e instanceof Element&&Boolean(e.closest(".vt-quickact-menu-wrapper"))};const ru=function(){var e=Jl((0,s().useState)("plugins"),2),t=e[0],r=e[1];return(0,o().jsxs)("div",{className:"vt-quickact-trigger",onClick:function(e){tu(e.target)||(e.preventDefault(),e.stopPropagation())},onMouseDown:function(e){tu(e.target)||(e.preventDefault(),e.stopPropagation())},children:[(0,o().jsxs)("div",{children:[(0,l.__)("Quick Actions","versatile-toolkit"),(0,o().jsx)("span",{className:"vt-quickact-arrow","aria-hidden":"true",children:"▼"})]}),(0,o().jsxs)("div",{className:"vt-quickact-menu-wrapper",children:[(0,o().jsx)(Zl,{}),(0,o().jsxs)("div",{className:"vt-quickact-menu vt-pt-3",children:[(0,o().jsxs)("div",{className:"vt-quickact-sidebar vt-border-r",children:[(0,o().jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("plugins"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("plugins")},children:(0,l.__)("Plugins","versatile-toolkit")}),(0,o().jsx)("button",{type:"button",className:"vt-quickact-nav-btn".concat("themes"===t?" vt-quickact-nav-btn-active":""),onClick:function(){return r("themes")},children:(0,l.__)("Themes","versatile-toolkit")})]}),(0,o().jsxs)("div",{className:"vt-quickact-content vt-pl-3",children:[(0,o().jsx)("div",{hidden:"plugins"!==t,children:(0,o().jsx)(Dl,{})}),(0,o().jsx)("div",{hidden:"themes"!==t,children:(0,o().jsx)(Kl,{})}),(0,o().jsx)("div",{hidden:"settings"!==t,children:(0,o().jsx)(Fl,{})})]})]})]})]})};var nu=class extends Kc{#y;#b;#g;constructor(e={}){super(),this.config=e,this.#y=new Set,this.#b=new Map,this.#g=0}build(e,t,r){const n=new il({client:e,mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#y.add(e);const t=ou(e);if("string"==typeof t){const r=this.#b.get(t);r?r.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#y.delete(e)){const t=ou(e);if("string"==typeof t){const r=this.#b.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ou(e);if("string"==typeof t){const r=this.#b.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=ou(e);return"string"==typeof t?(this.#b.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Vc.batch(()=>{const e=this.getAll();this.#y.clear(),this.#b.clear(),e.forEach(e=>{this.notify({type:"removed",mutation:e})})})}getAll(){return Array.from(this.#y)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Dc(t,e))}findAll(e={}){return this.getAll().filter(t=>Dc(e,t))}notify(e){Vc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Vc.batch(()=>Promise.all(e.map(e=>e.continue().catch(Nc))))}};function ou(e){return e.options.scope?.id}function iu(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let r=!1;const l=t,u=e=>{!function(e,t,r,n){let o,i=!1;Object.defineProperties(e,{[Uc]:{value:n},signal:{enumerable:!0,get:()=>(o??=t(),i||(i=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}})}(e,()=>t.signal,()=>r=!0,l[Uc])},d=Bc(t.options,t.fetchOptions),f=async(e,n,o)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return u(e),e})(),s=await d(i),{maxPages:a}=t.options,c=o?$c:Wc;return{pages:c(e.pages,s,a),pageParams:c(e.pageParams,n,a)}};if(o&&i.length){const e="backward"===o,t=e?au:su,r={pages:i,pageParams:s};a=await f(r,t(n,r),e)}else{const t=e??i.length;do{const e=0===c?void 0===s[0]?n.initialPageParam:s[0]:su(n,a);if(c>0&&null==e)break;a=await f(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function su(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function au(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var cu=class extends ol{#w;#x;#O;#k;#a;#u;#j;#S;#P;constructor(e){super(),this.#P=!1,this.#S=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#k=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#x=du(this.options),this.state=e.state??this.#x,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#w}get promise(){return this.#u?.promise}setOptions(e){if(this.options={...this.#S,...e},e?._type&&(this.#w=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=du(this.options);void 0!==e.data&&(this.setState(uu(e.data,e.dataUpdatedAt)),this.#x=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(e,t){const r=Gc(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#d({type:"setState",state:e})}cancel(e){const t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(Nc).catch(Nc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#x}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==_c(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return void 0!==this.state.data&&(this.getObserversCount()>0&&this.observers.some(e=>"static"===_c(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#u&&(this.#P||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#u?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u&&this.#j)return this.#u.continueRetry(),this.#j;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperties(e,{[Uc]:{value:r.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#P=!0,r.signal)}})},o=()=>{const e=Bc(this.options,t),r=(()=>{const e={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#P=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return n(e),e})();("infinite"===this.#w?iu(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#O=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const s=this.#u=nl({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof rl&&e.revert&&this.setState({...this.#O,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),a=(async()=>{try{const e=await s.promise;if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#k.config.onSuccess?.(e,this),this.#k.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof rl){if(e.silent){if(this.#u!==s&&this.#j)return this.#j;throw e}if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#k.config.onError?.(e,this),this.#k.config.onSettled?.(this.state.data,e,this),e}finally{this.#u===s&&(this.#u=void 0,this.#j=void 0),this.scheduleGc()}})();return this.#j=a,s.start(),a}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...lu(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...uu(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#O=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Vc.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#k.notify({query:this,type:"updated",action:e})})}};function lu(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tl(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function uu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function du(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var fu=class extends Kc{#E;constructor(e={}){super(),this.config=e,this.#E=new Map}build(e,t,r){const n=t.queryKey,o=t.queryHash??Rc(n,t);let i=this.get(o);return i||(i=new cu({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#E.has(e.queryHash)||(this.#E.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#E.get(e.queryHash)===e&&(e.destroy(),this.#E.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#E.get(e)}getAll(){return[...this.#E.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ac(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ac(e,t)):t}notify(e){Vc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Vc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};n();var pu=n().createRoot(document.getElementById("vt-quickact-container")),hu="vt-quickact-toaster-root",mu=new class{#C;#l;#S;#N;#_;#A;#D;#R;constructor(e={}){this.#C=e.queryCache||new fu,this.#l=e.mutationCache||new nu,this.#S=e.defaultOptions||{},this.#N=new Map,this.#_=new Map,this.#A=0}mount(){this.#A++,1===this.#A&&(this.#D=Zc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#R=Jc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#A--,0===this.#A&&(this.#D?.(),this.#D=void 0,this.#R?.(),this.#R=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#l.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#C.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(_c(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=this.#C.get(n.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return this.#C.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Vc.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){const t=this.#C;Vc.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#C;return Vc.batch(()=>{const n=r.findAll(e),o=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>o.has(e)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},n=Vc.batch(()=>this.#C.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Nc).catch(Nc)}invalidateQueries(e,t={}){return Vc.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Vc.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);const n="paused"===e.state.fetchStatus;return r.throwOnError&&!n||(t=t.catch(Nc)),n?Promise.resolve():t}));return Promise.all(n).then(Nc)}async query(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t),n=r.isStaleByTime(_c(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#C.build(this,t);return r.isStaleByTime(_c(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nc).catch(Nc)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nc).catch(Nc)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Jc.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#l}getDefaultOptions(){return this.#S}setDefaultOptions(e){this.#S=e}setQueryDefaults(e,t){this.#N.set(Tc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#N.values()],r={};return t.forEach(t=>{Mc(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#_.set(Tc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#_.values()],r={};return t.forEach(t=>{Mc(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#S.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#S.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#l.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});pu.render((0,o().jsx)(Yt,{onError:function(e,t){},children:(0,o().jsx)(Sc,{client:mu,children:(0,o().jsx)(ru,{})})}));var vu=document.getElementById(hu);vu||((vu=document.createElement("div")).id=hu,document.body.appendChild(vu)),n().createRoot(vu).render((0,o().jsx)(sc,{position:"bottom-right",containerClassName:"vt-ui vt-quickact-toaster",toastOptions:{duration:5e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",padding:"16px",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},success:{style:{background:"#f0fdf4",borderColor:"#86efac"}},error:{style:{background:"#fef2f2",borderColor:"#fecaca"}}}}))})();
  • versatile-toolkit/trunk/constants.php

    r3534655 r3798170  
    1212}
    1313
    14 define( 'VERSATILE_VERSION', '1.0.11' );
     14define( 'VERSATILE_VERSION', '1.0.12' );
    1515define( 'VERSATILE_PLUGIN_NAME', 'versatile-toolkit' );
    1616define( 'VERSATILE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • versatile-toolkit/trunk/languages/versatile-toolkit.pot

    r3534655 r3798170  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Versatile Toolkit 1.0.11\n"
     5"Project-Id-Version: Versatile Toolkit 1.0.12\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/versatile\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-05-17T15:51:49+00:00\n"
     12"POT-Creation-Date: 2026-11-12T11:28:38+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
  • versatile-toolkit/trunk/readme.txt

    r3534655 r3798170  
    33Tags: troubleshooting, temporary login, maintenance mode, coming soon, IP control, WordPress toolkit
    44Requires at least: 5.3
    5 Tested up to: 6.9.4
     5Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.11
     7Stable tag: 1.0.12
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    9292== Changelog ==
    9393
     94= 1.0.12 =
     95* Scoped Tailwind preflight to the plugin UI so wp-admin styles stay intact.
     96* Copy debug log entries from the view log dialog.
     97
     98
    9499= 1.0.11 =
    95100* Quick Top actions like reset permalink, plugin & theme activate/deactivation also deletion.
  • versatile-toolkit/trunk/versatile-toolkit.php

    r3534655 r3798170  
    22/**
    33 * Plugin Name: Versatile Toolkit
    4  * Version: 1.0.11
     4 * Version: 1.0.12
    55 * Requires at least: 5.3
    66 * Requires PHP: 7.4
Note: See TracChangeset for help on using the changeset viewer.