| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | /* doi:scope-guard */(function(){ |
| 2 | -(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,d09GMgABAAAAALyAABUAAAAB4CAAALwFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoZeG4KyRBzVcD9IVkFSi2k/TVZBUl4GYD9TVEFUgU4nJgCFNi9sEQgKgbtAgaEUC4gOADCCnD4BNgIkA5AYBCAFhi4HoQQMB1tzzZFCvBvP7u3DbGpQpdsQgMqps1L7r3ADN3ekcLpSd3VjDvdRxlSwXT24HeDivrPV7P/////PTiZjjG6zbhuAgIaVWf//oFG6m0fKpZa1GtEM3hHeiRiGTOHDNEtW1uphm9xD8Yfsc845xSOllI6MZ0bgBa6OXQbsGPkQKYlQqD3X9YVVvH2KntB6YJwvZMXkp+C5yraOrUrG4lPZsKGIy79I0v3UzBZt9SM6yqcJLyKfWogpGCTMhFHtxxQ74e+iXfmlkqJiNbeKZ4KLcfByGbnFit+pfrn4okou/l1zuyzDbEtoImSSXDLgSfrNakEiSjNkyuNXIhj2Rtg8HXFaJ1HMmcuGV+Se8CUCw/bq3NAqMQ78EUkhmkVBNNkIe66aFY24EF5FxJKmvYhLeZu+817KeHDRANVOdSZTE0mx05wGy3iIsAUf0f92lq9M9/vv/v/fb8Oa8yVqT0nuI2nTGlyeDouviNs9inRBSSqDf7jIJKu0nX6r99J6jx/12cSUdscJp/KxG3QT7RY/9SEwOBbgQ6oeY7Wz9aQv/8DXVf25LyKzMVb1gPyyV/Vl7QRt6Yojsq2qemYjy5LWBREQDCugh4gIihyuKEEw4qrLEgyHmBCRJ4m6LkFU2IMVOZKIiIiYOEQeMxhxWTBhSKjoeZiRLHLKDI9u9i8BQgghYQQIEEKYUxQFUXDWDq/aau0aNzrutm2vd78V8cbevb39PbuWZ+c8x6yKiPAv2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e62s9UgpNM6YSkWKo3W5r/me6N+XOtEJtr57V6oPltLYwA6EQNq81YFuEQ/4Wm3PXzIpptkYWUEuOSWOSeiFlTtDoo8Svu934LOxpa21kFbwX59qcBh+Zn+RImvyj5kNJLxXJvJ8d8VrfkJKFVrRJ05tK/aXanhx8bT7aVauoJ81roNL64KfMd8Sj0Rtfge+SohT0+ShTwFVwhK1KW45QTKfoZNrjU4poyxfT6QTmZlc+GpmMrLLWuHv26eonGfHyrlIqK1kXkTsd6eStxRnuKdSRqBapI1Ffpa5MEY1iOvVVugLU/LBXx6A1CuG6/RzGbhBarFJiuBQvbvkwWJIFSwAUwqV4kWPD5BEGsHNgl0kYMExsoHumATSWF28A8Zt8m6AE9w5Ar/3gsARAIUyvsQEQsFPAAABsAIDuAWgAbwDxK3AV1Mg9NsmPCvFmjM39+cmxXPF4EnoWKsaVX2nwQhAzQ84QJtFHLOZ9XyEdIPQUZJ7mEWV4FzjWEB2HUia6pvsjX/c196Wa/Kcqdtsqql2UbjmGZ4HCzYgVhidjl1XUbVlr3XLXgfYNROYdDBJHYa13NSw58stFXNu+N+t5WGAU1doYgvhRsJmWa/0f4Ys7r6o1nW1LF8pCcxJM0H9YbRjb5gVb1go9Y9/SxF08sf0p8GbuymWEe+zrfrqQc8Rnc8lptIpSPWmoLslM6sWzOZaLyLaco1nYjntDeIpj5e/663Cvs+oZM4Z+HNgvV5U0ktw/VU411pkVh8q/32PH77H8z9qVLwAAAA==) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#doi-admin-root ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}#doi-admin-root :before,#doi-admin-root :after{--tw-content: ""}html,#doi-admin-root :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter Variable,Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}#doi-admin-root hr{height:0;color:inherit;border-top-width:1px}#doi-admin-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6{font-size:inherit;font-weight:inherit}#doi-admin-root a{color:inherit;text-decoration:inherit}#doi-admin-root b,#doi-admin-root strong{font-weight:bolder}#doi-admin-root code,#doi-admin-root kbd,#doi-admin-root samp,#doi-admin-root pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}#doi-admin-root small{font-size:80%}#doi-admin-root sub,#doi-admin-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#doi-admin-root sub{bottom:-.25em}#doi-admin-root sup{top:-.5em}#doi-admin-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#doi-admin-root button,#doi-admin-root input,#doi-admin-root optgroup,#doi-admin-root select,#doi-admin-root textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}#doi-admin-root button,#doi-admin-root select{text-transform:none}#doi-admin-root button,#doi-admin-root input:where([type=button]),#doi-admin-root input:where([type=reset]),#doi-admin-root input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}#doi-admin-root :-moz-focusring{outline:auto}#doi-admin-root :-moz-ui-invalid{box-shadow:none}#doi-admin-root progress{vertical-align:baseline}#doi-admin-root ::-webkit-inner-spin-button,#doi-admin-root ::-webkit-outer-spin-button{height:auto}#doi-admin-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#doi-admin-root ::-webkit-search-decoration{-webkit-appearance:none}#doi-admin-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#doi-admin-root summary{display:list-item}#doi-admin-root blockquote,#doi-admin-root dl,#doi-admin-root dd,#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6,#doi-admin-root hr,#doi-admin-root figure,#doi-admin-root p,#doi-admin-root pre{margin:0}#doi-admin-root fieldset{margin:0;padding:0}#doi-admin-root legend{padding:0}#doi-admin-root ol,#doi-admin-root ul,#doi-admin-root menu{list-style:none;margin:0;padding:0}#doi-admin-root dialog{padding:0}#doi-admin-root textarea{resize:vertical}#doi-admin-root input::-moz-placeholder,#doi-admin-root textarea::-moz-placeholder{opacity:1;color:#9ca3af}#doi-admin-root input::placeholder,#doi-admin-root textarea::placeholder{opacity:1;color:#9ca3af}#doi-admin-root button,#doi-admin-root [role=button]{cursor:pointer}#doi-admin-root :disabled{cursor:default}#doi-admin-root img,#doi-admin-root svg,#doi-admin-root video,#doi-admin-root canvas,#doi-admin-root audio,#doi-admin-root iframe,#doi-admin-root embed,#doi-admin-root object{display:block;vertical-align:middle}#doi-admin-root img,#doi-admin-root video{max-width:100%;height:auto}#doi-admin-root [hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 210 20% 98%;--foreground: 220 26% 14%;--card: 0 0% 100%;--card-foreground: 220 26% 14%;--popover: 0 0% 100%;--popover-foreground: 220 26% 14%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 96%;--secondary-foreground: 220 26% 14%;--muted: 220 14% 96%;--muted-foreground: 218 11% 45%;--accent: 220 14% 96%;--accent-foreground: 220 26% 14%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--border: 220 13% 91%;--input: 220 13% 83%;--ring: 207 90% 54%;--radius: .5rem;--success: 142 71% 45%;--success-foreground: 0 0% 100%;--warning: 38 92% 50%;--warning-foreground: 0 0% 100%;--info: 207 90% 54%;--info-foreground: 0 0% 100%;--pro-start: 42 79% 50%;--pro-end: 37 77% 47%;--chart-1: 207 90% 54%;--chart-2: 142 71% 45%;--chart-3: 0 84% 60%;--chart-4: 38 92% 50%;--chart-5: 270 60% 55%;--sidebar-background: 220 20% 97%;--sidebar-foreground: 220 26% 14%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 93%;--sidebar-accent-foreground: 220 26% 14%;--sidebar-border: 220 13% 91%;--sidebar-ring: 207 90% 54%}.dark{--background: 222 22% 10%;--foreground: 210 20% 95%;--card: 222 20% 13%;--card-foreground: 210 20% 95%;--popover: 222 20% 13%;--popover-foreground: 210 20% 95%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 18%;--secondary-foreground: 210 20% 95%;--muted: 220 14% 18%;--muted-foreground: 218 11% 55%;--accent: 220 14% 18%;--accent-foreground: 210 20% 95%;--destructive: 0 62% 50%;--destructive-foreground: 0 0% 100%;--border: 220 13% 20%;--input: 220 13% 20%;--ring: 207 90% 54%;--success: 142 71% 45%;--success-foreground: 0 0% 100%;--warning: 38 92% 50%;--warning-foreground: 0 0% 100%;--info: 207 90% 54%;--info-foreground: 0 0% 100%;--pro-start: 42 79% 50%;--pro-end: 37 77% 47%;--chart-1: 207 90% 54%;--chart-2: 142 71% 45%;--chart-3: 0 84% 60%;--chart-4: 38 92% 50%;--chart-5: 270 60% 55%;--sidebar-background: 222 22% 10%;--sidebar-foreground: 210 20% 95%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 16%;--sidebar-accent-foreground: 210 20% 95%;--sidebar-border: 220 13% 20%;--sidebar-ring: 207 90% 54%}#doi-admin-root *{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter Variable,Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#doi-admin-root .\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:2rem!important;padding-left:2rem!important}#doi-admin-root .container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){#doi-admin-root .\\!container{max-width:1400px!important}#doi-admin-root .container{max-width:1400px}}#doi-admin-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#doi-admin-root .pointer-events-none{pointer-events:none}#doi-admin-root .pointer-events-auto{pointer-events:auto}#doi-admin-root .visible{visibility:visible}#doi-admin-root .invisible{visibility:hidden}#doi-admin-root .static{position:static}#doi-admin-root .fixed{position:fixed}#doi-admin-root .absolute{position:absolute}#doi-admin-root .relative{position:relative}#doi-admin-root .sticky{position:sticky}#doi-admin-root .inset-0{inset:0}#doi-admin-root .inset-x-0{left:0;right:0}#doi-admin-root .inset-y-0{top:0;bottom:0}#doi-admin-root .-bottom-12{bottom:-3rem}#doi-admin-root .-left-12{left:-3rem}#doi-admin-root .-right-12{right:-3rem}#doi-admin-root .-top-12{top:-3rem}#doi-admin-root .bottom-0{bottom:0}#doi-admin-root .left-0{left:0}#doi-admin-root .left-1{left:.25rem}#doi-admin-root .left-1\\/2{left:50%}#doi-admin-root .left-2{left:.5rem}#doi-admin-root .left-2\\.5{left:.625rem}#doi-admin-root .left-\\[50\\%\\]{left:50%}#doi-admin-root .right-0{right:0}#doi-admin-root .right-1{right:.25rem}#doi-admin-root .right-2{right:.5rem}#doi-admin-root .right-3{right:.75rem}#doi-admin-root .right-4{right:1rem}#doi-admin-root .top-0{top:0}#doi-admin-root .top-1\\.5{top:.375rem}#doi-admin-root .top-1\\/2{top:50%}#doi-admin-root .top-2{top:.5rem}#doi-admin-root .top-2\\.5{top:.625rem}#doi-admin-root .top-3\\.5{top:.875rem}#doi-admin-root .top-4{top:1rem}#doi-admin-root .top-\\[1px\\]{top:1px}#doi-admin-root .top-\\[50\\%\\]{top:50%}#doi-admin-root .top-\\[60\\%\\]{top:60%}#doi-admin-root .top-full{top:100%}#doi-admin-root .z-10{z-index:10}#doi-admin-root .z-20{z-index:20}#doi-admin-root .z-30{z-index:30}#doi-admin-root .z-50{z-index:50}#doi-admin-root .z-\\[100\\]{z-index:100}#doi-admin-root .z-\\[1\\]{z-index:1}#doi-admin-root .col-span-2{grid-column:span 2 / span 2}#doi-admin-root .-mx-1{margin-left:-.25rem;margin-right:-.25rem}#doi-admin-root .-mx-4{margin-left:-1rem;margin-right:-1rem}#doi-admin-root .mx-0\\.5{margin-left:.125rem;margin-right:.125rem}#doi-admin-root .mx-1{margin-left:.25rem;margin-right:.25rem}#doi-admin-root .mx-2{margin-left:.5rem;margin-right:.5rem}#doi-admin-root .mx-3\\.5{margin-left:.875rem;margin-right:.875rem}#doi-admin-root .mx-auto{margin-left:auto;margin-right:auto}#doi-admin-root .my-1{margin-top:.25rem;margin-bottom:.25rem}#doi-admin-root .\\!mt-12{margin-top:3rem!important}#doi-admin-root .\\!mt-20{margin-top:5rem!important}#doi-admin-root .-ml-4{margin-left:-1rem}#doi-admin-root .-mt-2{margin-top:-.5rem}#doi-admin-root .-mt-4{margin-top:-1rem}#doi-admin-root .mb-0\\.5{margin-bottom:.125rem}#doi-admin-root .mb-1{margin-bottom:.25rem}#doi-admin-root .mb-2{margin-bottom:.5rem}#doi-admin-root .mb-3{margin-bottom:.75rem}#doi-admin-root .mb-4{margin-bottom:1rem}#doi-admin-root .mb-6{margin-bottom:1.5rem}#doi-admin-root .ml-1{margin-left:.25rem}#doi-admin-root .ml-1\\.5{margin-left:.375rem}#doi-admin-root .ml-10{margin-left:2.5rem}#doi-admin-root .ml-2{margin-left:.5rem}#doi-admin-root .ml-auto{margin-left:auto}#doi-admin-root .mr-0\\.5{margin-right:.125rem}#doi-admin-root .mr-1{margin-right:.25rem}#doi-admin-root .mr-1\\.5{margin-right:.375rem}#doi-admin-root .mr-2{margin-right:.5rem}#doi-admin-root .mt-0\\.5{margin-top:.125rem}#doi-admin-root .mt-1{margin-top:.25rem}#doi-admin-root .mt-1\\.5{margin-top:.375rem}#doi-admin-root .mt-12{margin-top:3rem}#doi-admin-root .mt-2{margin-top:.5rem}#doi-admin-root .mt-24{margin-top:6rem}#doi-admin-root .mt-3{margin-top:.75rem}#doi-admin-root .mt-4{margin-top:1rem}#doi-admin-root .mt-6{margin-top:1.5rem}#doi-admin-root .mt-auto{margin-top:auto}#doi-admin-root .block{display:block}#doi-admin-root .inline-block{display:inline-block}#doi-admin-root .inline{display:inline}#doi-admin-root .flex{display:flex}#doi-admin-root .inline-flex{display:inline-flex}#doi-admin-root .table{display:table}#doi-admin-root .grid{display:grid}#doi-admin-root .contents{display:contents}#doi-admin-root .hidden{display:none}#doi-admin-root .aspect-\\[4\\/3\\]{aspect-ratio:4/3}#doi-admin-root .aspect-square{aspect-ratio:1 / 1}#doi-admin-root .size-4{width:1rem;height:1rem}#doi-admin-root .h-1{height:.25rem}#doi-admin-root .h-1\\.5{height:.375rem}#doi-admin-root .h-10{height:2.5rem}#doi-admin-root .h-11{height:2.75rem}#doi-admin-root .h-12{height:3rem}#doi-admin-root .h-14{height:3.5rem}#doi-admin-root .h-16{height:4rem}#doi-admin-root .h-2{height:.5rem}#doi-admin-root .h-2\\.5{height:.625rem}#doi-admin-root .h-20{height:5rem}#doi-admin-root .h-24{height:6rem}#doi-admin-root .h-3{height:.75rem}#doi-admin-root .h-3\\.5{height:.875rem}#doi-admin-root .h-32{height:8rem}#doi-admin-root .h-4{height:1rem}#doi-admin-root .h-40{height:10rem}#doi-admin-root .h-44{height:11rem}#doi-admin-root .h-48{height:12rem}#doi-admin-root .h-5{height:1.25rem}#doi-admin-root .h-6{height:1.5rem}#doi-admin-root .h-64{height:16rem}#doi-admin-root .h-7{height:1.75rem}#doi-admin-root .h-8{height:2rem}#doi-admin-root .h-9{height:2.25rem}#doi-admin-root .h-96{height:24rem}#doi-admin-root .h-\\[1px\\]{height:1px}#doi-admin-root .h-\\[600px\\]{height:600px}#doi-admin-root .h-\\[calc\\(100svh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{height:calc(100svh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\]{height:var(--radix-navigation-menu-viewport-height)}#doi-admin-root .h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}#doi-admin-root .h-auto{height:auto}#doi-admin-root .h-full{height:100%}#doi-admin-root .h-px{height:1px}#doi-admin-root .max-h-96{max-height:24rem}#doi-admin-root .max-h-\\[300px\\]{max-height:300px}#doi-admin-root .max-h-\\[400px\\]{max-height:400px}#doi-admin-root .max-h-screen{max-height:100vh}#doi-admin-root .min-h-0{min-height:0px}#doi-admin-root .min-h-8{min-height:2rem}#doi-admin-root .min-h-9{min-height:2.25rem}#doi-admin-root .min-h-\\[120px\\]{min-height:120px}#doi-admin-root .min-h-\\[300px\\]{min-height:300px}#doi-admin-root .min-h-\\[60px\\]{min-height:60px}#doi-admin-root .min-h-\\[60vh\\]{min-height:60vh}#doi-admin-root .min-h-\\[70vh\\]{min-height:70vh}#doi-admin-root .min-h-\\[80px\\]{min-height:80px}#doi-admin-root .min-h-\\[calc\\(100vh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .min-h-svh{min-height:100svh}#doi-admin-root .w-1\\/2{width:50%}#doi-admin-root .w-10{width:2.5rem}#doi-admin-root .w-11{width:2.75rem}#doi-admin-root .w-12{width:3rem}#doi-admin-root .w-16{width:4rem}#doi-admin-root .w-2{width:.5rem}#doi-admin-root .w-2\\.5{width:.625rem}#doi-admin-root .w-20{width:5rem}#doi-admin-root .w-24{width:6rem}#doi-admin-root .w-28{width:7rem}#doi-admin-root .w-3{width:.75rem}#doi-admin-root .w-3\\.5{width:.875rem}#doi-admin-root .w-3\\/4{width:75%}#doi-admin-root .w-32{width:8rem}#doi-admin-root .w-4{width:1rem}#doi-admin-root .w-40{width:10rem}#doi-admin-root .w-48{width:12rem}#doi-admin-root .w-5{width:1.25rem}#doi-admin-root .w-6{width:1.5rem}#doi-admin-root .w-64{width:16rem}#doi-admin-root .w-7{width:1.75rem}#doi-admin-root .w-72{width:18rem}#doi-admin-root .w-8{width:2rem}#doi-admin-root .w-9{width:2.25rem}#doi-admin-root .w-\\[--sidebar-width\\]{width:var(--sidebar-width)}#doi-admin-root .w-\\[100px\\]{width:100px}#doi-admin-root .w-\\[120px\\]{width:120px}#doi-admin-root .w-\\[130px\\]{width:130px}#doi-admin-root .w-\\[140px\\]{width:140px}#doi-admin-root .w-\\[150px\\]{width:150px}#doi-admin-root .w-\\[160px\\]{width:160px}#doi-admin-root .w-\\[170px\\]{width:170px}#doi-admin-root .w-\\[190px\\]{width:190px}#doi-admin-root .w-\\[1px\\]{width:1px}#doi-admin-root .w-\\[70px\\]{width:70px}#doi-admin-root .w-\\[90px\\]{width:90px}#doi-admin-root .w-auto{width:auto}#doi-admin-root .w-full{width:100%}#doi-admin-root .w-max{width:-moz-max-content;width:max-content}#doi-admin-root .w-px{width:1px}#doi-admin-root .min-w-0{min-width:0px}#doi-admin-root .min-w-5{min-width:1.25rem}#doi-admin-root .min-w-\\[12rem\\]{min-width:12rem}#doi-admin-root .min-w-\\[200px\\]{min-width:200px}#doi-admin-root .min-w-\\[8rem\\]{min-width:8rem}#doi-admin-root .min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}#doi-admin-root .max-w-2xl{max-width:42rem}#doi-admin-root .max-w-\\[--skeleton-width\\]{max-width:var(--skeleton-width)}#doi-admin-root .max-w-\\[300px\\]{max-width:300px}#doi-admin-root .max-w-\\[400px\\]{max-width:400px}#doi-admin-root .max-w-\\[440px\\]{max-width:440px}#doi-admin-root .max-w-\\[480px\\]{max-width:480px}#doi-admin-root .max-w-\\[60\\%\\]{max-width:60%}#doi-admin-root .max-w-\\[600px\\]{max-width:600px}#doi-admin-root .max-w-\\[680px\\]{max-width:680px}#doi-admin-root .max-w-lg{max-width:32rem}#doi-admin-root .max-w-max{max-width:-moz-max-content;max-width:max-content}#doi-admin-root .max-w-md{max-width:28rem}#doi-admin-root .flex-1{flex:1 1 0%}#doi-admin-root .shrink-0{flex-shrink:0}#doi-admin-root .grow{flex-grow:1}#doi-admin-root .grow-0{flex-grow:0}#doi-admin-root .basis-full{flex-basis:100%}#doi-admin-root .caption-bottom{caption-side:bottom}#doi-admin-root .border-collapse{border-collapse:collapse}#doi-admin-root .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}#doi-admin-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}#doi-admin-root .animate-spin{animation:spin 1s linear infinite}#doi-admin-root .cursor-default{cursor:default}#doi-admin-root .cursor-pointer{cursor:pointer}#doi-admin-root .touch-none{touch-action:none}#doi-admin-root .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#doi-admin-root .list-inside{list-style-position:inside}#doi-admin-root .list-disc{list-style-type:disc}#doi-admin-root .list-none{list-style-type:none}#doi-admin-root .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#doi-admin-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}#doi-admin-root .flex-row{flex-direction:row}#doi-admin-root .flex-col{flex-direction:column}#doi-admin-root .flex-col-reverse{flex-direction:column-reverse}#doi-admin-root .flex-wrap{flex-wrap:wrap}#doi-admin-root .content-center{align-content:center}#doi-admin-root .items-start{align-items:flex-start}#doi-admin-root .items-end{align-items:flex-end}#doi-admin-root .items-center{align-items:center}#doi-admin-root .items-baseline{align-items:baseline}#doi-admin-root .justify-start{justify-content:flex-start}#doi-admin-root .justify-end{justify-content:flex-end}#doi-admin-root .justify-center{justify-content:center}#doi-admin-root .justify-between{justify-content:space-between}#doi-admin-root .justify-items-center{justify-items:center}#doi-admin-root .gap-0{gap:0px}#doi-admin-root .gap-0\\.5{gap:.125rem}#doi-admin-root .gap-1{gap:.25rem}#doi-admin-root .gap-1\\.5{gap:.375rem}#doi-admin-root .gap-2{gap:.5rem}#doi-admin-root .gap-3{gap:.75rem}#doi-admin-root .gap-4{gap:1rem}#doi-admin-root .gap-5{gap:1.25rem}#doi-admin-root .gap-6{gap:1.5rem}#doi-admin-root .gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}#doi-admin-root .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#doi-admin-root .gap-y-1{row-gap:.25rem}#doi-admin-root .gap-y-2{row-gap:.5rem}#doi-admin-root :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-0\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.divide-y>:not([hidden])~:not([hidden])){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}#doi-admin-root :is(.divide-border\\/50>:not([hidden])~:not([hidden])){border-color:hsl(var(--border) / .5)}#doi-admin-root .justify-self-start{justify-self:start}#doi-admin-root .overflow-auto{overflow:auto}#doi-admin-root .overflow-hidden{overflow:hidden}#doi-admin-root .overflow-x-auto{overflow-x:auto}#doi-admin-root .overflow-y-auto{overflow-y:auto}#doi-admin-root .overflow-x-hidden{overflow-x:hidden}#doi-admin-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root .whitespace-normal{white-space:normal}#doi-admin-root .whitespace-nowrap{white-space:nowrap}#doi-admin-root .whitespace-pre-wrap{white-space:pre-wrap}#doi-admin-root .break-words{overflow-wrap:break-word}#doi-admin-root .break-all{word-break:break-all}#doi-admin-root .rounded{border-radius:.25rem}#doi-admin-root .rounded-2xl{border-radius:1rem}#doi-admin-root .rounded-\\[inherit\\]{border-radius:inherit}#doi-admin-root .rounded-full{border-radius:9999px}#doi-admin-root .rounded-lg{border-radius:var(--radius)}#doi-admin-root .rounded-md{border-radius:calc(var(--radius) - 2px)}#doi-admin-root .rounded-sm{border-radius:calc(var(--radius) - 4px)}#doi-admin-root .rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}#doi-admin-root .rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}#doi-admin-root .border{border-width:1px}#doi-admin-root .border-0{border-width:0px}#doi-admin-root .border-2{border-width:2px}#doi-admin-root .border-y{border-top-width:1px;border-bottom-width:1px}#doi-admin-root .border-b{border-bottom-width:1px}#doi-admin-root .border-l{border-left-width:1px}#doi-admin-root .border-r{border-right-width:1px}#doi-admin-root .border-t{border-top-width:1px}#doi-admin-root .border-dashed{border-style:dashed}#doi-admin-root .border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}#doi-admin-root .border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}#doi-admin-root .border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200\\/50{border-color:#bfdbfe80}#doi-admin-root .border-border{border-color:hsl(var(--border))}#doi-admin-root .border-border\\/50{border-color:hsl(var(--border) / .5)}#doi-admin-root .border-destructive{border-color:hsl(var(--destructive))}#doi-admin-root .border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}#doi-admin-root .border-destructive\\/50{border-color:hsl(var(--destructive) / .5)}#doi-admin-root .border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}#doi-admin-root .border-input{border-color:hsl(var(--input))}#doi-admin-root .border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}#doi-admin-root .border-primary{border-color:hsl(var(--primary))}#doi-admin-root .border-primary\\/20{border-color:hsl(var(--primary) / .2)}#doi-admin-root .border-primary\\/30{border-color:hsl(var(--primary) / .3)}#doi-admin-root .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}#doi-admin-root .border-sidebar-border{border-color:hsl(var(--sidebar-border))}#doi-admin-root .border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}#doi-admin-root .border-transparent{border-color:transparent}#doi-admin-root .border-warning{border-color:hsl(var(--warning))}#doi-admin-root .border-warning\\/40{border-color:hsl(var(--warning) / .4)}#doi-admin-root .border-l-transparent{border-left-color:transparent}#doi-admin-root .border-t-transparent{border-top-color:transparent}#doi-admin-root .bg-accent{background-color:hsl(var(--accent))}#doi-admin-root .bg-accent\\/50{background-color:hsl(var(--accent) / .5)}#doi-admin-root .bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-background{background-color:hsl(var(--background))}#doi-admin-root .bg-background\\/95{background-color:hsl(var(--background) / .95)}#doi-admin-root .bg-black\\/80{background-color:#000c}#doi-admin-root .bg-blue-50\\/50{background-color:#eff6ff80}#doi-admin-root .bg-border{background-color:hsl(var(--border))}#doi-admin-root .bg-card{background-color:hsl(var(--card))}#doi-admin-root .bg-destructive{background-color:hsl(var(--destructive))}#doi-admin-root .bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-foreground{background-color:hsl(var(--foreground))}#doi-admin-root .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-muted{background-color:hsl(var(--muted))}#doi-admin-root .bg-muted\\/30{background-color:hsl(var(--muted) / .3)}#doi-admin-root .bg-muted\\/40{background-color:hsl(var(--muted) / .4)}#doi-admin-root .bg-muted\\/50{background-color:hsl(var(--muted) / .5)}#doi-admin-root .bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-popover{background-color:hsl(var(--popover))}#doi-admin-root .bg-primary{background-color:hsl(var(--primary))}#doi-admin-root .bg-primary-foreground\\/15{background-color:hsl(var(--primary-foreground) / .15)}#doi-admin-root .bg-primary\\/10{background-color:hsl(var(--primary) / .1)}#doi-admin-root .bg-primary\\/5{background-color:hsl(var(--primary) / .05)}#doi-admin-root .bg-primary\\/\\[0\\.03\\]{background-color:hsl(var(--primary) / .03)}#doi-admin-root .bg-primary\\/\\[0\\.04\\]{background-color:hsl(var(--primary) / .04)}#doi-admin-root .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-secondary{background-color:hsl(var(--secondary))}#doi-admin-root .bg-sidebar{background-color:hsl(var(--sidebar-background))}#doi-admin-root .bg-sidebar-border{background-color:hsl(var(--sidebar-border))}#doi-admin-root .bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-success{background-color:hsl(var(--success))}#doi-admin-root .bg-success\\/15{background-color:hsl(var(--success) / .15)}#doi-admin-root .bg-transparent{background-color:transparent}#doi-admin-root .bg-warning\\/10{background-color:hsl(var(--warning) / .1)}#doi-admin-root .bg-warning\\/15{background-color:hsl(var(--warning) / .15)}#doi-admin-root .bg-warning\\/\\[0\\.06\\]{background-color:hsl(var(--warning) / .06)}#doi-admin-root .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}#doi-admin-root .from-primary{--tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}#doi-admin-root .to-primary\\/70{--tw-gradient-to: hsl(var(--primary) / .7) var(--tw-gradient-to-position)}#doi-admin-root .fill-current{fill:currentColor}#doi-admin-root .p-0{padding:0}#doi-admin-root .p-1{padding:.25rem}#doi-admin-root .p-1\\.5{padding:.375rem}#doi-admin-root .p-2{padding:.5rem}#doi-admin-root .p-3{padding:.75rem}#doi-admin-root .p-4{padding:1rem}#doi-admin-root .p-5{padding:1.25rem}#doi-admin-root .p-6{padding:1.5rem}#doi-admin-root .p-8{padding:2rem}#doi-admin-root .p-\\[1px\\]{padding:1px}#doi-admin-root .px-1{padding-left:.25rem;padding-right:.25rem}#doi-admin-root .px-1\\.5{padding-left:.375rem;padding-right:.375rem}#doi-admin-root .px-2{padding-left:.5rem;padding-right:.5rem}#doi-admin-root .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#doi-admin-root .px-3{padding-left:.75rem;padding-right:.75rem}#doi-admin-root .px-4{padding-left:1rem;padding-right:1rem}#doi-admin-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#doi-admin-root .px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .px-8{padding-left:2rem;padding-right:2rem}#doi-admin-root .py-0{padding-top:0;padding-bottom:0}#doi-admin-root .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#doi-admin-root .py-1{padding-top:.25rem;padding-bottom:.25rem}#doi-admin-root .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root .py-16{padding-top:4rem;padding-bottom:4rem}#doi-admin-root .py-2{padding-top:.5rem;padding-bottom:.5rem}#doi-admin-root .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#doi-admin-root .py-3{padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root .py-4{padding-top:1rem;padding-bottom:1rem}#doi-admin-root .py-6{padding-top:1.5rem;padding-bottom:1.5rem}#doi-admin-root .py-8{padding-top:2rem;padding-bottom:2rem}#doi-admin-root .py-px{padding-top:1px;padding-bottom:1px}#doi-admin-root .pb-1{padding-bottom:.25rem}#doi-admin-root .pb-2{padding-bottom:.5rem}#doi-admin-root .pb-3{padding-bottom:.75rem}#doi-admin-root .pb-4{padding-bottom:1rem}#doi-admin-root .pl-2\\.5{padding-left:.625rem}#doi-admin-root .pl-4{padding-left:1rem}#doi-admin-root .pl-8{padding-left:2rem}#doi-admin-root .pr-2{padding-right:.5rem}#doi-admin-root .pr-2\\.5{padding-right:.625rem}#doi-admin-root .pr-3{padding-right:.75rem}#doi-admin-root .pr-8{padding-right:2rem}#doi-admin-root .pt-0{padding-top:0}#doi-admin-root .pt-1{padding-top:.25rem}#doi-admin-root .pt-2{padding-top:.5rem}#doi-admin-root .pt-3{padding-top:.75rem}#doi-admin-root .pt-4{padding-top:1rem}#doi-admin-root .pt-6{padding-top:1.5rem}#doi-admin-root .text-left{text-align:left}#doi-admin-root .text-center{text-align:center}#doi-admin-root .text-right{text-align:right}#doi-admin-root .align-top{vertical-align:top}#doi-admin-root .align-middle{vertical-align:middle}#doi-admin-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#doi-admin-root .font-sans{font-family:Inter Variable,Inter,system-ui,sans-serif}#doi-admin-root .text-2xl{font-size:1.5rem;line-height:2rem}#doi-admin-root .text-4xl{font-size:2.25rem;line-height:2.5rem}#doi-admin-root .text-\\[0\\.8rem\\]{font-size:.8rem}#doi-admin-root .text-\\[10px\\]{font-size:10px}#doi-admin-root .text-\\[11px\\]{font-size:11px}#doi-admin-root .text-base{font-size:1rem;line-height:1.5rem}#doi-admin-root .text-lg{font-size:1.125rem;line-height:1.75rem}#doi-admin-root .text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .text-xl{font-size:1.25rem;line-height:1.75rem}#doi-admin-root .text-xs{font-size:.75rem;line-height:1rem}#doi-admin-root .font-bold{font-weight:700}#doi-admin-root .font-medium{font-weight:500}#doi-admin-root .font-normal{font-weight:400}#doi-admin-root .font-semibold{font-weight:600}#doi-admin-root .uppercase{text-transform:uppercase}#doi-admin-root .italic{font-style:italic}#doi-admin-root .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#doi-admin-root .leading-none{line-height:1}#doi-admin-root .leading-relaxed{line-height:1.625}#doi-admin-root .leading-tight{line-height:1.25}#doi-admin-root .tracking-tight{letter-spacing:-.025em}#doi-admin-root .tracking-wide{letter-spacing:.025em}#doi-admin-root .tracking-wider{letter-spacing:.05em}#doi-admin-root .tracking-widest{letter-spacing:.1em}#doi-admin-root .text-accent-foreground{color:hsl(var(--accent-foreground))}#doi-admin-root .text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-800\\/80{color:#1e40afcc}#doi-admin-root .text-blue-900\\/70{color:#1e3a8ab3}#doi-admin-root .text-card-foreground{color:hsl(var(--card-foreground))}#doi-admin-root .text-current{color:currentColor}#doi-admin-root .text-destructive{color:hsl(var(--destructive))}#doi-admin-root .text-destructive-foreground{color:hsl(var(--destructive-foreground))}#doi-admin-root .text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}#doi-admin-root .text-foreground{color:hsl(var(--foreground))}#doi-admin-root .text-foreground\\/50{color:hsl(var(--foreground) / .5)}#doi-admin-root .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}#doi-admin-root .text-muted-foreground{color:hsl(var(--muted-foreground))}#doi-admin-root .text-muted-foreground\\/30{color:hsl(var(--muted-foreground) / .3)}#doi-admin-root .text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}#doi-admin-root .text-popover-foreground{color:hsl(var(--popover-foreground))}#doi-admin-root .text-primary{color:hsl(var(--primary))}#doi-admin-root .text-primary-foreground{color:hsl(var(--primary-foreground))}#doi-admin-root .text-primary-foreground\\/80{color:hsl(var(--primary-foreground) / .8)}#doi-admin-root .text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}#doi-admin-root .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}#doi-admin-root .text-secondary-foreground{color:hsl(var(--secondary-foreground))}#doi-admin-root .text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}#doi-admin-root .text-sidebar-foreground\\/70{color:hsl(var(--sidebar-foreground) / .7)}#doi-admin-root .text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}#doi-admin-root .text-success{color:hsl(var(--success))}#doi-admin-root .text-success-foreground{color:hsl(var(--success-foreground))}#doi-admin-root .text-warning{color:hsl(var(--warning))}#doi-admin-root .underline{text-decoration-line:underline}#doi-admin-root .underline-offset-4{text-underline-offset:4px}#doi-admin-root .opacity-0{opacity:0}#doi-admin-root .opacity-50{opacity:.5}#doi-admin-root .opacity-60{opacity:.6}#doi-admin-root .opacity-70{opacity:.7}#doi-admin-root .opacity-90{opacity:.9}#doi-admin-root .shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 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)}#doi-admin-root .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(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)}#doi-admin-root .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(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)}#doi-admin-root .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}#doi-admin-root .outline-none{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .outline{outline-style:solid}#doi-admin-root .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(0px + 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)}#doi-admin-root .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)}#doi-admin-root .ring-green-500\\/20{--tw-ring-color: rgb(34 197 94 / .2)}#doi-admin-root .ring-red-500\\/20{--tw-ring-color: rgb(239 68 68 / .2)}#doi-admin-root .ring-ring{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#doi-admin-root .backdrop-blur{--tw-backdrop-blur: blur(8px);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)}#doi-admin-root .backdrop-filter{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)}#doi-admin-root .transition{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);transition-duration:.15s}#doi-admin-root .transition-\\[margin\\,opa\\]{transition-property:margin,opa;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\,height\\,padding\\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .duration-1000{transition-duration:1s}#doi-admin-root .duration-200{transition-duration:.2s}#doi-admin-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{transition-timing-function:linear}@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))}}#doi-admin-root .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .fade-in,#doi-admin-root .fade-in-0{--tw-enter-opacity: 0}#doi-admin-root .fade-in-80{--tw-enter-opacity: .8}#doi-admin-root .zoom-in-95{--tw-enter-scale: .95}#doi-admin-root .slide-in-from-top-1{--tw-enter-translate-y: -.25rem}#doi-admin-root .duration-1000{animation-duration:1s}#doi-admin-root .duration-200{animation-duration:.2s}#doi-admin-root .ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{animation-timing-function:linear}#doi-admin-root .running{animation-play-state:running}#doi-admin-root .paused{animation-play-state:paused}#doi-admin-root .pro-gradient{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)))}#doi-admin-root .pro-badge{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)));color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;padding:2px 6px;border-radius:3px;letter-spacing:.5px}#doi-admin-root .file\\:border-0::file-selector-button{border-width:0px}#doi-admin-root .file\\:bg-transparent::file-selector-button{background-color:transparent}#doi-admin-root .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}#doi-admin-root .file\\:font-medium::file-selector-button{font-weight:500}#doi-admin-root .file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .backdrop\\:bg-black\\/50::backdrop{background-color:#00000080}#doi-admin-root .backdrop\\:backdrop-blur-sm::backdrop{--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)}#doi-admin-root .after\\:absolute:after{content:var(--tw-content);position:absolute}#doi-admin-root .after\\:-inset-2:after{content:var(--tw-content);inset:-.5rem}#doi-admin-root .after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}#doi-admin-root .after\\:left-1\\/2:after{content:var(--tw-content);left:50%}#doi-admin-root .after\\:w-1:after{content:var(--tw-content);width:.25rem}#doi-admin-root .after\\:w-\\[2px\\]:after{content:var(--tw-content);width:2px}#doi-admin-root .after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .first\\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .first\\:border-l:first-child{border-left-width:1px}#doi-admin-root .last\\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .focus-within\\:relative:focus-within{position:relative}#doi-admin-root .focus-within\\:z-20:focus-within{z-index:20}#doi-admin-root .hover\\:border-foreground\\/30:hover{border-color:hsl(var(--foreground) / .3)}#doi-admin-root .hover\\:bg-accent:hover{background-color:hsl(var(--accent))}#doi-admin-root .hover\\:bg-accent\\/30:hover{background-color:hsl(var(--accent) / .3)}#doi-admin-root .hover\\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-amber-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-destructive\\/10:hover{background-color:hsl(var(--destructive) / .1)}#doi-admin-root .hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}#doi-admin-root .hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}#doi-admin-root .hover\\:bg-emerald-50:hover{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-muted:hover{background-color:hsl(var(--muted))}#doi-admin-root .hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted) / .5)}#doi-admin-root .hover\\:bg-primary:hover{background-color:hsl(var(--primary))}#doi-admin-root .hover\\:bg-primary\\/10:hover{background-color:hsl(var(--primary) / .1)}#doi-admin-root .hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}#doi-admin-root .hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}#doi-admin-root .hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}#doi-admin-root .hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}#doi-admin-root .hover\\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .hover\\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-success\\/90:hover{background-color:hsl(var(--success) / .9)}#doi-admin-root .hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}#doi-admin-root .hover\\:text-foreground:hover{color:hsl(var(--foreground))}#doi-admin-root .hover\\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}#doi-admin-root .hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}#doi-admin-root .hover\\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .hover\\:underline:hover{text-decoration-line:underline}#doi-admin-root .hover\\:opacity-100:hover{opacity:1}#doi-admin-root .hover\\:opacity-90:hover{opacity:.9}#doi-admin-root .hover\\:shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-accent\\)\\)\\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 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)}#doi-admin-root .hover\\:after\\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}#doi-admin-root .focus\\:bg-accent:focus{background-color:hsl(var(--accent))}#doi-admin-root .focus\\:bg-primary:focus{background-color:hsl(var(--primary))}#doi-admin-root .focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}#doi-admin-root .focus\\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}#doi-admin-root .focus\\:opacity-100:focus{opacity:1}#doi-admin-root .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .focus\\: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)}#doi-admin-root .focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .focus-visible\\: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)}#doi-admin-root .focus-visible\\: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)}#doi-admin-root .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus-visible\\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}#doi-admin-root .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .active\\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .active\\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#doi-admin-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#doi-admin-root .disabled\\:opacity-50:disabled{opacity:.5}#doi-admin-root :is(.group\\/menu-item:focus-within .group-focus-within\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group\\/menu-item:hover .group-hover\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group:hover .group-hover\\:opacity-100){opacity:1}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40){border-color:hsl(var(--muted) / .4)}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:border-border){border-color:hsl(var(--border))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-muted){background-color:hsl(var(--muted))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-primary){background-color:hsl(var(--primary))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:bg-background){background-color:hsl(var(--background))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground){color:hsl(var(--primary-foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:text-foreground){color:hsl(var(--foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(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)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover){border-color:hsl(var(--destructive) / .3)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover){background-color:hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover){color:hsl(var(--destructive-foreground))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover){--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus){--tw-ring-color: hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus){--tw-ring-offset-color: #dc2626}#doi-admin-root :is(.peer\\/menu-button:hover~.peer-hover\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:cursor-not-allowed){cursor:not-allowed}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:opacity-70){opacity:.7}#doi-admin-root .has-\\[\\[data-variant\\=inset\\]\\]\\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}#doi-admin-root .has-\\[\\:disabled\\]\\:opacity-50:has(:disabled){opacity:.5}#doi-admin-root :is(.group\\/menu-item:has([data-sidebar=menu-action]) .group-has-\\[\\[data-sidebar\\=menu-action\\]\\]\\/menu-item\\:pr-8){padding-right:2rem}#doi-admin-root .aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}#doi-admin-root .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}#doi-admin-root .aria-selected\\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .aria-selected\\:bg-accent\\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .aria-selected\\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .aria-selected\\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}#doi-admin-root .aria-selected\\:opacity-100[aria-selected=true]{opacity:1}#doi-admin-root .aria-selected\\:opacity-30[aria-selected=true]{opacity:.3}#doi-admin-root .data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}#doi-admin-root .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=checked\\]\\: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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],#doi-admin-root .data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}#doi-admin-root .data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}#doi-admin-root .data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}#doi-admin-root .data-\\[active\\=true\\]\\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[active\\]\\:bg-accent\\/50[data-active]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[selected\\=\\'true\\'\\]\\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-success[data-state=checked]{background-color:hsl(var(--success))}#doi-admin-root .data-\\[state\\=on\\]\\:bg-accent[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent\\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[state\\=open\\]\\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}#doi-admin-root .data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}#doi-admin-root .data-\\[active\\=true\\]\\:font-medium[data-active=true]{font-weight:500}#doi-admin-root .data-\\[active\\=true\\]\\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}#doi-admin-root .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}#doi-admin-root .data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}#doi-admin-root .data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}#doi-admin-root .data-\\[state\\=open\\]\\:opacity-100[data-state=open]{opacity:1}#doi-admin-root .data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{transition-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{transition-duration:.5s}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^=from-],#doi-admin-root .data-\\[state\\=open\\]\\:animate-in[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:animate-out[data-state=closed],#doi-admin-root .data-\\[state\\=hidden\\]\\:animate-out[data-state=hidden],#doi-admin-root .data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}#doi-admin-root .data-\\[state\\=hidden\\]\\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=open\\]\\:fade-in-0[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:fade-in[data-state=visible]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}#doi-admin-root .data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}#doi-admin-root .data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}#doi-admin-root .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}#doi-admin-root .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}#doi-admin-root .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}#doi-admin-root .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed],#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{animation-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{animation-duration:.5s}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:-right-4){right:-1rem}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:left-0){left:0}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:-mt-8){margin-top:-2rem}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:hidden){display:none}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!size-8){width:2rem!important;height:2rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[--sidebar-width-icon\\]){width:var(--sidebar-width-icon)}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)_\\+2px\\)\\]){width:calc(var(--sidebar-width-icon) + 1rem + 2px)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:w-0){width:0px}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:translate-x-0){--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.group[data-state=open] .group-data-\\[state\\=open\\]\\:rotate-180){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:rounded-lg){border-radius:var(--radius)}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border){border-width:1px}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:border-r){border-right-width:1px}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:border-l){border-left-width:1px}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border-sidebar-border){border-color:hsl(var(--sidebar-border))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-0){padding:0!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-2){padding:.5rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:opacity-0){opacity:0}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:after\\:left-full):after{content:var(--tw-content);left:100%}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:hover\\:bg-sidebar:hover){background-color:hsl(var(--sidebar-background))}#doi-admin-root :is(.peer\\/menu-button[data-size=default]~.peer-data-\\[size\\=default\\]\\/menu-button\\:top-1\\.5){top:.375rem}#doi-admin-root :is(.peer\\/menu-button[data-size=lg]~.peer-data-\\[size\\=lg\\]\\/menu-button\\:top-2\\.5){top:.625rem}#doi-admin-root :is(.peer\\/menu-button[data-size=sm]~.peer-data-\\[size\\=sm\\]\\/menu-button\\:top-1){top:.25rem}#doi-admin-root :is(.peer[data-variant=inset]~.peer-data-\\[variant\\=inset\\]\\:min-h-\\[calc\\(100svh-theme\\(spacing\\.4\\)\\)\\]){min-height:calc(100svh - 1rem)}#doi-admin-root :is(.peer\\/menu-button[data-active=true]~.peer-data-\\[active\\=true\\]\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}@supports (backdrop-filter: var(--tw)){#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/60{background-color:hsl(var(--background) / .6)}#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/80{background-color:hsl(var(--background) / .8)}}#doi-admin-root .dark\\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-amber-900\\/50:is(.dark *){border-color:#78350f80}#doi-admin-root .dark\\:border-blue-800\\/30:is(.dark *){border-color:#1e40af4d}#doi-admin-root .dark\\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}#doi-admin-root .dark\\:border-emerald-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-red-900\\/50:is(.dark *){border-color:#7f1d1d80}#doi-admin-root .dark\\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-amber-950\\/30:is(.dark *){background-color:#451a034d}#doi-admin-root .dark\\:bg-blue-950\\/20:is(.dark *){background-color:#17255433}#doi-admin-root .dark\\:bg-emerald-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 44 34 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-emerald-950\\/40:is(.dark *){background-color:#022c2266}#doi-admin-root .dark\\:bg-orange-950\\/40:is(.dark *){background-color:#43140766}#doi-admin-root .dark\\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-red-950\\/30:is(.dark *){background-color:#450a0a4d}#doi-admin-root .dark\\:bg-slate-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-blue-300\\/60:is(.dark *){color:#93c5fd99}#doi-admin-root .dark\\:text-blue-300\\/80:is(.dark *){color:#93c5fdcc}#doi-admin-root .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-200:is(.dark *){--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-300:is(.dark *){--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-400:is(.dark *){--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-slate-300:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:hover\\:bg-amber-950:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){#doi-admin-root .sm\\:bottom-0{bottom:0}#doi-admin-root .sm\\:right-0{right:0}#doi-admin-root .sm\\:top-auto{top:auto}#doi-admin-root .sm\\:col-span-1{grid-column:span 1 / span 1}#doi-admin-root .sm\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}#doi-admin-root .sm\\:mt-0{margin-top:0}#doi-admin-root .sm\\:flex{display:flex}#doi-admin-root .sm\\:inline-flex{display:inline-flex}#doi-admin-root .sm\\:max-w-sm{max-width:24rem}#doi-admin-root .sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-\\[1\\.2fr_1fr_1\\.2fr_1\\.5fr_0\\.6fr_auto\\]{grid-template-columns:1.2fr 1fr 1.2fr 1.5fr .6fr auto}#doi-admin-root .sm\\:grid-cols-\\[1fr_2fr\\]{grid-template-columns:1fr 2fr}#doi-admin-root .sm\\:grid-cols-\\[auto_1fr_12rem\\]{grid-template-columns:auto 1fr 12rem}#doi-admin-root .sm\\:flex-row{flex-direction:row}#doi-admin-root .sm\\:flex-col{flex-direction:column}#doi-admin-root .sm\\:justify-end{justify-content:flex-end}#doi-admin-root .sm\\:gap-2\\.5{gap:.625rem}#doi-admin-root :is(.sm\\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.sm\\:space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.sm\\:space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}#doi-admin-root .sm\\:rounded-lg{border-radius:var(--radius)}#doi-admin-root .sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .sm\\:text-left{text-align:left}#doi-admin-root .data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){#doi-admin-root .md\\:absolute{position:absolute}#doi-admin-root .md\\:block{display:block}#doi-admin-root .md\\:flex{display:flex}#doi-admin-root .md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\]{width:var(--radix-navigation-menu-viewport-width)}#doi-admin-root .md\\:w-auto{width:auto}#doi-admin-root .md\\:max-w-\\[420px\\]{max-width:420px}#doi-admin-root .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .md\\:p-6{padding:1.5rem}#doi-admin-root .md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .md\\:text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .md\\:opacity-0{opacity:0}#doi-admin-root .after\\:md\\:hidden:after{content:var(--tw-content);display:none}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:m-2){margin:.5rem}#doi-admin-root :is(.peer[data-state=collapsed][data-variant=inset]~.md\\:peer-data-\\[state\\=collapsed\\]\\:peer-data-\\[variant\\=inset\\]\\:ml-2){margin-left:.5rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:ml-0){margin-left:0}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:rounded-xl){border-radius:.75rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){#doi-admin-root .lg\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-\\[1fr_300px\\]{grid-template-columns:1fr 300px}}@media (min-width: 1280px){#doi-admin-root .xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}#doi-admin-root .first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-outside\\)\\]\\:bg-accent\\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-range-end\\)\\]\\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}#doi-admin-root :is(.\\[\\&\\>button\\]\\:hidden>button){display:none}#doi-admin-root :is(.\\[\\&\\>span\\:last-child\\]\\:truncate>span:last-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root :is(.\\[\\&\\>span\\]\\:line-clamp-1>span){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#doi-admin-root :is(.\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div){--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:absolute>svg){position:absolute}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:left-4>svg){left:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:top-4>svg){top:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-3\\.5>svg){width:.875rem;height:.875rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-4>svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:shrink-0>svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-destructive>svg){color:hsl(var(--destructive))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-foreground>svg){color:hsl(var(--foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-sidebar-accent-foreground>svg){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~*){padding-left:1.75rem}#doi-admin-root :is(.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr){border-bottom-width:0px}#doi-admin-root :is(.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]){padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]){font-weight:500}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]){height:3rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]){padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_p\\]\\:leading-relaxed p){line-height:1.625}#doi-admin-root :is(.\\[\\&_svg\\]\\:pointer-events-none svg){pointer-events:none}#doi-admin-root :is(.\\[\\&_svg\\]\\:size-4 svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&_svg\\]\\:shrink-0 svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child){border-width:0px}#doi-admin-root :is(.\\[\\&_tr\\]\\:border-b tr){border-bottom-width:1px}#doi-admin-root :is([data-side=left][data-collapsible=offcanvas] .\\[\\[data-side\\=left\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-right-2){right:-.5rem}#doi-admin-root :is([data-side=left][data-state=collapsed] .\\[\\[data-side\\=left\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}#doi-admin-root :is([data-side=left] .\\[\\[data-side\\=left\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right][data-collapsible=offcanvas] .\\[\\[data-side\\=right\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-left-2){left:-.5rem}#doi-admin-root :is([data-side=right][data-state=collapsed] .\\[\\[data-side\\=right\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right] .\\[\\[data-side\\=right\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); | |
| 3 | -var AM=Object.defineProperty;var GS=$e=>{throw TypeError($e)};var OM=($e,We,rt)=>We in $e?AM($e,We,{enumerable:!0,configurable:!0,writable:!0,value:rt}):$e[We]=rt;var Vo=($e,We,rt)=>OM($e,typeof We!="symbol"?We+"":We,rt),ex=($e,We,rt)=>We.has($e)||GS("Cannot "+rt);var _=($e,We,rt)=>(ex($e,We,"read from private field"),rt?rt.call($e):We.get($e)),ce=($e,We,rt)=>We.has($e)?GS("Cannot add the same private member more than once"):We instanceof WeakSet?We.add($e):We.set($e,rt),te=($e,We,rt,Fs)=>(ex($e,We,"write to private field"),Fs?Fs.call($e,rt):We.set($e,rt),rt),we=($e,We,rt)=>(ex($e,We,"access private method"),rt);var gu=($e,We,rt,Fs)=>({set _(ka){te($e,We,ka,rt)},get _(){return _($e,We,Fs)}});(function($e){"use strict";var ha,js,Co,IS,ws,Zp,MS,ko,Ns,Eo,DS,pa,FS,xa,_o,bn,ga,vt,Nl,va,an,YS,Fr,LS,Ht,Fe,Sl,Dt,ya,Po,Tr,Ss,Cl,To,Ro,ba,ja,Cs,Ao,ze,Ol,tx,nx,rx,sx,ax,ox,ix,XS,$S,kl,or,Tt,wa,ir,Ds,zS,Rr,Bn,El,US,Ar,ks,Wt,Or,Ir,vu,lx,BS,Oo,on,Io,Mo,jn,Es,_l,Pl,Tl,Rl,St,cx,dx,ux,fx,mx,VS,lr,HS,it,_s,Ps,Do,Fo,Ts,Lo,$o,WS;function We(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(s,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fs={exports:{}},ka={},hx={exports:{}},Ie={};/** | |
| 2 | +(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,d09GMgABAAAAALyAABUAAAAB4CAAALwFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoZeG4KyRBzVcD9IVkFSi2k/TVZBUl4GYD9TVEFUgU4nJgCFNi9sEQgKgbtAgaEUC4gOADCCnD4BNgIkA5AYBCAFhi4HoQQMB1tzzZFCvBvP7u3DbGpQpdsQgMqps1L7r3ADN3ekcLpSd3VjDvdRxlSwXT24HeDivrPV7P/////PTiZjjG6zbhuAgIaVWf//oFG6m0fKpZa1GtEM3hHeiRiGTOHDNEtW1uphm9xD8Yfsc845xSOllI6MZ0bgBa6OXQbsGPkQKYlQqD3X9YVVvH2KntB6YJwvZMXkp+C5yraOrUrG4lPZsKGIy79I0v3UzBZt9SM6yqcJLyKfWogpGCTMhFHtxxQ74e+iXfmlkqJiNbeKZ4KLcfByGbnFit+pfrn4okou/l1zuyzDbEtoImSSXDLgSfrNakEiSjNkyuNXIhj2Rtg8HXFaJ1HMmcuGV+Se8CUCw/bq3NAqMQ78EUkhmkVBNNkIe66aFY24EF5FxJKmvYhLeZu+817KeHDRANVOdSZTE0mx05wGy3iIsAUf0f92lq9M9/vv/v/fb8Oa8yVqT0nuI2nTGlyeDouviNs9inRBSSqDf7jIJKu0nX6r99J6jx/12cSUdscJp/KxG3QT7RY/9SEwOBbgQ6oeY7Wz9aQv/8DXVf25LyKzMVb1gPyyV/Vl7QRt6Yojsq2qemYjy5LWBREQDCugh4gIihyuKEEw4qrLEgyHmBCRJ4m6LkFU2IMVOZKIiIiYOEQeMxhxWTBhSKjoeZiRL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qOdFzGN6SFsP9IQ+G2WPchplv25puxHW+UiCStT7ogvu7lhbqRDVLiacKeFsT6MrZUWZiAoXJQ8e62s9UgpNM6YSkWKo3W5r/me6N+XOtEJtr57V6oPltLYwA6EQNq81YFuEQ/4Wm3PXzIpptkYWUEuOSWOSeiFlTtDoo8Svu934LOxpa21kFbwX59qcBh+Zn+RImvyj5kNJLxXJvJ8d8VrfkJKFVrRJ05tK/aXanhx8bT7aVauoJ81roNL64KfMd8Sj0Rtfge+SohT0+ShTwFVwhK1KW45QTKfoZNrjU4poyxfT6QTmZlc+GpmMrLLWuHv26eonGfHyrlIqK1kXkTsd6eStxRnuKdSRqBapI1Ffpa5MEY1iOvVVugLU/LBXx6A1CuG6/RzGbhBarFJiuBQvbvkwWJIFSwAUwqV4kWPD5BEGsHNgl0kYMExsoHumATSWF28A8Zt8m6AE9w5Ar/3gsARAIUyvsQEQsFPAAABsAIDuAWgAbwDxK3AV1Mg9NsmPCvFmjM39+cmxXPF4EnoWKsaVX2nwQhAzQ84QJtFHLOZ9XyEdIPQUZJ7mEWV4FzjWEB2HUia6pvsjX/c196Wa/Kcqdtsqql2UbjmGZ4HCzYgVhidjl1XUbVlr3XLXgfYNROYdDBJHYa13NSw58stFXNu+N+t5WGAU1doYgvhRsJmWa/0f4Ys7r6o1nW1LF8pCcxJM0H9YbRjb5gVb1go9Y9/SxF08sf0p8GbuymWEe+zrfrqQc8Rnc8lptIpSPWmoLslM6sWzOZaLyLaco1nYjntDeIpj5e/663Cvs+oZM4Z+HNgvV5U0ktw/VU411pkVh8q/32PH77H8z9qVLwAAAA==) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#doi-admin-root ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#doi-admin-root *,#doi-admin-root :before,#doi-admin-root :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}#doi-admin-root :before,#doi-admin-root :after{--tw-content: ""}html,#doi-admin-root :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter Variable,Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}#doi-admin-root hr{height:0;color:inherit;border-top-width:1px}#doi-admin-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6{font-size:inherit;font-weight:inherit}#doi-admin-root a{color:inherit;text-decoration:inherit}#doi-admin-root b,#doi-admin-root strong{font-weight:bolder}#doi-admin-root code,#doi-admin-root kbd,#doi-admin-root samp,#doi-admin-root pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}#doi-admin-root small{font-size:80%}#doi-admin-root sub,#doi-admin-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#doi-admin-root sub{bottom:-.25em}#doi-admin-root sup{top:-.5em}#doi-admin-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#doi-admin-root button,#doi-admin-root input,#doi-admin-root optgroup,#doi-admin-root select,#doi-admin-root textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}#doi-admin-root button,#doi-admin-root select{text-transform:none}#doi-admin-root button,#doi-admin-root input:where([type=button]),#doi-admin-root input:where([type=reset]),#doi-admin-root input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}#doi-admin-root :-moz-focusring{outline:auto}#doi-admin-root :-moz-ui-invalid{box-shadow:none}#doi-admin-root progress{vertical-align:baseline}#doi-admin-root ::-webkit-inner-spin-button,#doi-admin-root ::-webkit-outer-spin-button{height:auto}#doi-admin-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#doi-admin-root ::-webkit-search-decoration{-webkit-appearance:none}#doi-admin-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#doi-admin-root summary{display:list-item}#doi-admin-root blockquote,#doi-admin-root dl,#doi-admin-root dd,#doi-admin-root h1,#doi-admin-root h2,#doi-admin-root h3,#doi-admin-root h4,#doi-admin-root h5,#doi-admin-root h6,#doi-admin-root hr,#doi-admin-root figure,#doi-admin-root p,#doi-admin-root pre{margin:0}#doi-admin-root fieldset{margin:0;padding:0}#doi-admin-root legend{padding:0}#doi-admin-root ol,#doi-admin-root ul,#doi-admin-root menu{list-style:none;margin:0;padding:0}#doi-admin-root dialog{padding:0}#doi-admin-root textarea{resize:vertical}#doi-admin-root input::-moz-placeholder,#doi-admin-root textarea::-moz-placeholder{opacity:1;color:#9ca3af}#doi-admin-root input::placeholder,#doi-admin-root textarea::placeholder{opacity:1;color:#9ca3af}#doi-admin-root button,#doi-admin-root [role=button]{cursor:pointer}#doi-admin-root :disabled{cursor:default}#doi-admin-root img,#doi-admin-root svg,#doi-admin-root video,#doi-admin-root canvas,#doi-admin-root audio,#doi-admin-root iframe,#doi-admin-root embed,#doi-admin-root object{display:block;vertical-align:middle}#doi-admin-root img,#doi-admin-root video{max-width:100%;height:auto}#doi-admin-root [hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 210 20% 98%;--foreground: 220 26% 14%;--card: 0 0% 100%;--card-foreground: 220 26% 14%;--popover: 0 0% 100%;--popover-foreground: 220 26% 14%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 96%;--secondary-foreground: 220 26% 14%;--muted: 220 14% 96%;--muted-foreground: 218 11% 45%;--accent: 220 14% 96%;--accent-foreground: 220 26% 14%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--border: 220 13% 91%;--input: 220 13% 83%;--ring: 207 90% 54%;--radius: .5rem;--success: 142 71% 45%;--success-foreground: 0 0% 100%;--warning: 38 92% 50%;--warning-foreground: 0 0% 100%;--info: 207 90% 54%;--info-foreground: 0 0% 100%;--pro-start: 42 79% 50%;--pro-end: 37 77% 47%;--chart-1: 207 90% 54%;--chart-2: 142 71% 45%;--chart-3: 0 84% 60%;--chart-4: 38 92% 50%;--chart-5: 270 60% 55%;--sidebar-background: 220 20% 97%;--sidebar-foreground: 220 26% 14%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 93%;--sidebar-accent-foreground: 220 26% 14%;--sidebar-border: 220 13% 91%;--sidebar-ring: 207 90% 54%}.dark{--background: 222 22% 10%;--foreground: 210 20% 95%;--card: 222 20% 13%;--card-foreground: 210 20% 95%;--popover: 222 20% 13%;--popover-foreground: 210 20% 95%;--primary: 207 90% 54%;--primary-foreground: 0 0% 100%;--secondary: 220 14% 18%;--secondary-foreground: 210 20% 95%;--muted: 220 14% 18%;--muted-foreground: 218 11% 55%;--accent: 220 14% 18%;--accent-foreground: 210 20% 95%;--destructive: 0 62% 50%;--destructive-foreground: 0 0% 100%;--border: 220 13% 20%;--input: 220 13% 20%;--ring: 207 90% 54%;--success: 142 71% 45%;--success-foreground: 0 0% 100%;--warning: 38 92% 50%;--warning-foreground: 0 0% 100%;--info: 207 90% 54%;--info-foreground: 0 0% 100%;--pro-start: 42 79% 50%;--pro-end: 37 77% 47%;--chart-1: 207 90% 54%;--chart-2: 142 71% 45%;--chart-3: 0 84% 60%;--chart-4: 38 92% 50%;--chart-5: 270 60% 55%;--sidebar-background: 222 22% 10%;--sidebar-foreground: 210 20% 95%;--sidebar-primary: 207 90% 54%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 220 14% 16%;--sidebar-accent-foreground: 210 20% 95%;--sidebar-border: 220 13% 20%;--sidebar-ring: 207 90% 54%}#doi-admin-root *{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter Variable,Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#doi-admin-root .\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:2rem!important;padding-left:2rem!important}#doi-admin-root .container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){#doi-admin-root .\\!container{max-width:1400px!important}#doi-admin-root .container{max-width:1400px}}#doi-admin-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#doi-admin-root .pointer-events-none{pointer-events:none}#doi-admin-root .pointer-events-auto{pointer-events:auto}#doi-admin-root .visible{visibility:visible}#doi-admin-root .invisible{visibility:hidden}#doi-admin-root .static{position:static}#doi-admin-root .fixed{position:fixed}#doi-admin-root .absolute{position:absolute}#doi-admin-root .relative{position:relative}#doi-admin-root .sticky{position:sticky}#doi-admin-root .inset-0{inset:0}#doi-admin-root .inset-x-0{left:0;right:0}#doi-admin-root .inset-y-0{top:0;bottom:0}#doi-admin-root .-bottom-12{bottom:-3rem}#doi-admin-root .-left-12{left:-3rem}#doi-admin-root .-right-12{right:-3rem}#doi-admin-root .-top-12{top:-3rem}#doi-admin-root .bottom-0{bottom:0}#doi-admin-root .left-0{left:0}#doi-admin-root .left-1{left:.25rem}#doi-admin-root .left-1\\/2{left:50%}#doi-admin-root .left-2{left:.5rem}#doi-admin-root .left-2\\.5{left:.625rem}#doi-admin-root .left-\\[50\\%\\]{left:50%}#doi-admin-root .right-0{right:0}#doi-admin-root .right-1{right:.25rem}#doi-admin-root .right-2{right:.5rem}#doi-admin-root .right-3{right:.75rem}#doi-admin-root .right-4{right:1rem}#doi-admin-root .top-0{top:0}#doi-admin-root .top-1\\.5{top:.375rem}#doi-admin-root .top-1\\/2{top:50%}#doi-admin-root .top-2{top:.5rem}#doi-admin-root .top-2\\.5{top:.625rem}#doi-admin-root .top-3\\.5{top:.875rem}#doi-admin-root .top-4{top:1rem}#doi-admin-root .top-\\[1px\\]{top:1px}#doi-admin-root .top-\\[50\\%\\]{top:50%}#doi-admin-root .top-\\[60\\%\\]{top:60%}#doi-admin-root .top-full{top:100%}#doi-admin-root .z-10{z-index:10}#doi-admin-root .z-20{z-index:20}#doi-admin-root .z-30{z-index:30}#doi-admin-root .z-50{z-index:50}#doi-admin-root .z-\\[100\\]{z-index:100}#doi-admin-root .z-\\[1\\]{z-index:1}#doi-admin-root .col-span-2{grid-column:span 2 / span 2}#doi-admin-root .-mx-1{margin-left:-.25rem;margin-right:-.25rem}#doi-admin-root .-mx-4{margin-left:-1rem;margin-right:-1rem}#doi-admin-root .mx-0\\.5{margin-left:.125rem;margin-right:.125rem}#doi-admin-root .mx-1{margin-left:.25rem;margin-right:.25rem}#doi-admin-root .mx-2{margin-left:.5rem;margin-right:.5rem}#doi-admin-root .mx-3\\.5{margin-left:.875rem;margin-right:.875rem}#doi-admin-root .mx-auto{margin-left:auto;margin-right:auto}#doi-admin-root .my-1{margin-top:.25rem;margin-bottom:.25rem}#doi-admin-root .\\!mt-12{margin-top:3rem!important}#doi-admin-root .\\!mt-20{margin-top:5rem!important}#doi-admin-root .-ml-4{margin-left:-1rem}#doi-admin-root .-mt-2{margin-top:-.5rem}#doi-admin-root .-mt-4{margin-top:-1rem}#doi-admin-root .mb-0\\.5{margin-bottom:.125rem}#doi-admin-root .mb-1{margin-bottom:.25rem}#doi-admin-root .mb-2{margin-bottom:.5rem}#doi-admin-root .mb-3{margin-bottom:.75rem}#doi-admin-root .mb-4{margin-bottom:1rem}#doi-admin-root .mb-6{margin-bottom:1.5rem}#doi-admin-root .ml-1{margin-left:.25rem}#doi-admin-root .ml-1\\.5{margin-left:.375rem}#doi-admin-root .ml-10{margin-left:2.5rem}#doi-admin-root .ml-2{margin-left:.5rem}#doi-admin-root .ml-auto{margin-left:auto}#doi-admin-root .mr-0\\.5{margin-right:.125rem}#doi-admin-root .mr-1{margin-right:.25rem}#doi-admin-root .mr-1\\.5{margin-right:.375rem}#doi-admin-root .mr-2{margin-right:.5rem}#doi-admin-root .mt-0\\.5{margin-top:.125rem}#doi-admin-root .mt-1{margin-top:.25rem}#doi-admin-root .mt-1\\.5{margin-top:.375rem}#doi-admin-root .mt-12{margin-top:3rem}#doi-admin-root .mt-2{margin-top:.5rem}#doi-admin-root .mt-24{margin-top:6rem}#doi-admin-root .mt-3{margin-top:.75rem}#doi-admin-root .mt-4{margin-top:1rem}#doi-admin-root .mt-6{margin-top:1.5rem}#doi-admin-root .mt-auto{margin-top:auto}#doi-admin-root .block{display:block}#doi-admin-root .inline-block{display:inline-block}#doi-admin-root .inline{display:inline}#doi-admin-root .flex{display:flex}#doi-admin-root .inline-flex{display:inline-flex}#doi-admin-root .table{display:table}#doi-admin-root .grid{display:grid}#doi-admin-root .contents{display:contents}#doi-admin-root .hidden{display:none}#doi-admin-root .aspect-\\[4\\/3\\]{aspect-ratio:4/3}#doi-admin-root .aspect-square{aspect-ratio:1 / 1}#doi-admin-root .size-4{width:1rem;height:1rem}#doi-admin-root .h-1{height:.25rem}#doi-admin-root .h-1\\.5{height:.375rem}#doi-admin-root .h-10{height:2.5rem}#doi-admin-root .h-11{height:2.75rem}#doi-admin-root .h-12{height:3rem}#doi-admin-root .h-14{height:3.5rem}#doi-admin-root .h-16{height:4rem}#doi-admin-root .h-2{height:.5rem}#doi-admin-root .h-2\\.5{height:.625rem}#doi-admin-root .h-20{height:5rem}#doi-admin-root .h-24{height:6rem}#doi-admin-root .h-3{height:.75rem}#doi-admin-root .h-3\\.5{height:.875rem}#doi-admin-root .h-32{height:8rem}#doi-admin-root .h-4{height:1rem}#doi-admin-root .h-40{height:10rem}#doi-admin-root .h-44{height:11rem}#doi-admin-root .h-48{height:12rem}#doi-admin-root .h-5{height:1.25rem}#doi-admin-root .h-6{height:1.5rem}#doi-admin-root .h-64{height:16rem}#doi-admin-root .h-7{height:1.75rem}#doi-admin-root .h-8{height:2rem}#doi-admin-root .h-9{height:2.25rem}#doi-admin-root .h-96{height:24rem}#doi-admin-root .h-\\[1px\\]{height:1px}#doi-admin-root .h-\\[600px\\]{height:600px}#doi-admin-root .h-\\[calc\\(100svh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{height:calc(100svh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\]{height:var(--radix-navigation-menu-viewport-height)}#doi-admin-root .h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}#doi-admin-root .h-auto{height:auto}#doi-admin-root .h-full{height:100%}#doi-admin-root .h-px{height:1px}#doi-admin-root .max-h-96{max-height:24rem}#doi-admin-root .max-h-\\[300px\\]{max-height:300px}#doi-admin-root .max-h-\\[400px\\]{max-height:400px}#doi-admin-root .max-h-screen{max-height:100vh}#doi-admin-root .min-h-0{min-height:0px}#doi-admin-root .min-h-\\[120px\\]{min-height:120px}#doi-admin-root .min-h-\\[300px\\]{min-height:300px}#doi-admin-root .min-h-\\[60px\\]{min-height:60px}#doi-admin-root .min-h-\\[60vh\\]{min-height:60vh}#doi-admin-root .min-h-\\[70vh\\]{min-height:70vh}#doi-admin-root .min-h-\\[80px\\]{min-height:80px}#doi-admin-root .min-h-\\[calc\\(100vh-var\\(--wp-admin--admin-bar--height\\,32px\\)\\)\\]{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}#doi-admin-root .min-h-svh{min-height:100svh}#doi-admin-root .w-1\\/2{width:50%}#doi-admin-root .w-10{width:2.5rem}#doi-admin-root .w-11{width:2.75rem}#doi-admin-root .w-12{width:3rem}#doi-admin-root .w-16{width:4rem}#doi-admin-root .w-2{width:.5rem}#doi-admin-root .w-2\\.5{width:.625rem}#doi-admin-root .w-20{width:5rem}#doi-admin-root .w-24{width:6rem}#doi-admin-root .w-28{width:7rem}#doi-admin-root .w-3{width:.75rem}#doi-admin-root .w-3\\.5{width:.875rem}#doi-admin-root .w-3\\/4{width:75%}#doi-admin-root .w-32{width:8rem}#doi-admin-root .w-4{width:1rem}#doi-admin-root .w-40{width:10rem}#doi-admin-root .w-48{width:12rem}#doi-admin-root .w-5{width:1.25rem}#doi-admin-root .w-6{width:1.5rem}#doi-admin-root .w-64{width:16rem}#doi-admin-root .w-7{width:1.75rem}#doi-admin-root .w-72{width:18rem}#doi-admin-root .w-8{width:2rem}#doi-admin-root .w-9{width:2.25rem}#doi-admin-root .w-\\[--sidebar-width\\]{width:var(--sidebar-width)}#doi-admin-root .w-\\[100px\\]{width:100px}#doi-admin-root .w-\\[120px\\]{width:120px}#doi-admin-root .w-\\[130px\\]{width:130px}#doi-admin-root .w-\\[140px\\]{width:140px}#doi-admin-root .w-\\[150px\\]{width:150px}#doi-admin-root .w-\\[160px\\]{width:160px}#doi-admin-root .w-\\[190px\\]{width:190px}#doi-admin-root .w-\\[1px\\]{width:1px}#doi-admin-root .w-\\[70px\\]{width:70px}#doi-admin-root .w-\\[90px\\]{width:90px}#doi-admin-root .w-auto{width:auto}#doi-admin-root .w-full{width:100%}#doi-admin-root .w-max{width:-moz-max-content;width:max-content}#doi-admin-root .w-px{width:1px}#doi-admin-root .min-w-0{min-width:0px}#doi-admin-root .min-w-5{min-width:1.25rem}#doi-admin-root .min-w-\\[12rem\\]{min-width:12rem}#doi-admin-root .min-w-\\[200px\\]{min-width:200px}#doi-admin-root .min-w-\\[8rem\\]{min-width:8rem}#doi-admin-root .min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}#doi-admin-root .max-w-2xl{max-width:42rem}#doi-admin-root .max-w-\\[--skeleton-width\\]{max-width:var(--skeleton-width)}#doi-admin-root .max-w-\\[300px\\]{max-width:300px}#doi-admin-root .max-w-\\[400px\\]{max-width:400px}#doi-admin-root .max-w-\\[440px\\]{max-width:440px}#doi-admin-root .max-w-\\[480px\\]{max-width:480px}#doi-admin-root .max-w-\\[60\\%\\]{max-width:60%}#doi-admin-root .max-w-\\[600px\\]{max-width:600px}#doi-admin-root .max-w-\\[680px\\]{max-width:680px}#doi-admin-root .max-w-lg{max-width:32rem}#doi-admin-root .max-w-max{max-width:-moz-max-content;max-width:max-content}#doi-admin-root .max-w-md{max-width:28rem}#doi-admin-root .flex-1{flex:1 1 0%}#doi-admin-root .shrink-0{flex-shrink:0}#doi-admin-root .grow{flex-grow:1}#doi-admin-root .grow-0{flex-grow:0}#doi-admin-root .basis-full{flex-basis:100%}#doi-admin-root .caption-bottom{caption-side:bottom}#doi-admin-root .border-collapse{border-collapse:collapse}#doi-admin-root .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}#doi-admin-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}#doi-admin-root .animate-spin{animation:spin 1s linear infinite}#doi-admin-root .cursor-default{cursor:default}#doi-admin-root .cursor-pointer{cursor:pointer}#doi-admin-root .touch-none{touch-action:none}#doi-admin-root .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#doi-admin-root .list-inside{list-style-position:inside}#doi-admin-root .list-disc{list-style-type:disc}#doi-admin-root .list-none{list-style-type:none}#doi-admin-root .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#doi-admin-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .grid-cols-\\[auto_1fr\\]{grid-template-columns:auto 1fr}#doi-admin-root .flex-row{flex-direction:row}#doi-admin-root .flex-col{flex-direction:column}#doi-admin-root .flex-col-reverse{flex-direction:column-reverse}#doi-admin-root .flex-wrap{flex-wrap:wrap}#doi-admin-root .content-center{align-content:center}#doi-admin-root .items-start{align-items:flex-start}#doi-admin-root .items-end{align-items:flex-end}#doi-admin-root .items-center{align-items:center}#doi-admin-root .items-baseline{align-items:baseline}#doi-admin-root .justify-start{justify-content:flex-start}#doi-admin-root .justify-end{justify-content:flex-end}#doi-admin-root .justify-center{justify-content:center}#doi-admin-root .justify-between{justify-content:space-between}#doi-admin-root .justify-items-center{justify-items:center}#doi-admin-root .gap-0{gap:0px}#doi-admin-root .gap-0\\.5{gap:.125rem}#doi-admin-root .gap-1{gap:.25rem}#doi-admin-root .gap-1\\.5{gap:.375rem}#doi-admin-root .gap-2{gap:.5rem}#doi-admin-root .gap-3{gap:.75rem}#doi-admin-root .gap-4{gap:1rem}#doi-admin-root .gap-5{gap:1.25rem}#doi-admin-root .gap-6{gap:1.5rem}#doi-admin-root .gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}#doi-admin-root .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#doi-admin-root .gap-y-1{row-gap:.25rem}#doi-admin-root .gap-y-2{row-gap:.5rem}#doi-admin-root :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-0\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}#doi-admin-root :is(.divide-y>:not([hidden])~:not([hidden])){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}#doi-admin-root :is(.divide-border\\/50>:not([hidden])~:not([hidden])){border-color:hsl(var(--border) / .5)}#doi-admin-root .justify-self-start{justify-self:start}#doi-admin-root .overflow-auto{overflow:auto}#doi-admin-root .overflow-hidden{overflow:hidden}#doi-admin-root .overflow-x-auto{overflow-x:auto}#doi-admin-root .overflow-y-auto{overflow-y:auto}#doi-admin-root .overflow-x-hidden{overflow-x:hidden}#doi-admin-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root .whitespace-nowrap{white-space:nowrap}#doi-admin-root .whitespace-pre-wrap{white-space:pre-wrap}#doi-admin-root .break-words{overflow-wrap:break-word}#doi-admin-root .break-all{word-break:break-all}#doi-admin-root .rounded{border-radius:.25rem}#doi-admin-root .rounded-2xl{border-radius:1rem}#doi-admin-root .rounded-\\[inherit\\]{border-radius:inherit}#doi-admin-root .rounded-full{border-radius:9999px}#doi-admin-root .rounded-lg{border-radius:var(--radius)}#doi-admin-root .rounded-md{border-radius:calc(var(--radius) - 2px)}#doi-admin-root .rounded-sm{border-radius:calc(var(--radius) - 4px)}#doi-admin-root .rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}#doi-admin-root .rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}#doi-admin-root .border{border-width:1px}#doi-admin-root .border-0{border-width:0px}#doi-admin-root .border-2{border-width:2px}#doi-admin-root .border-y{border-top-width:1px;border-bottom-width:1px}#doi-admin-root .border-b{border-bottom-width:1px}#doi-admin-root .border-l{border-left-width:1px}#doi-admin-root .border-r{border-right-width:1px}#doi-admin-root .border-t{border-top-width:1px}#doi-admin-root .border-dashed{border-style:dashed}#doi-admin-root .border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}#doi-admin-root .border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}#doi-admin-root .border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}#doi-admin-root .border-blue-200\\/50{border-color:#bfdbfe80}#doi-admin-root .border-border{border-color:hsl(var(--border))}#doi-admin-root .border-border\\/50{border-color:hsl(var(--border) / .5)}#doi-admin-root .border-destructive{border-color:hsl(var(--destructive))}#doi-admin-root .border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}#doi-admin-root .border-destructive\\/50{border-color:hsl(var(--destructive) / .5)}#doi-admin-root .border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}#doi-admin-root .border-input{border-color:hsl(var(--input))}#doi-admin-root .border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}#doi-admin-root .border-primary{border-color:hsl(var(--primary))}#doi-admin-root .border-primary\\/20{border-color:hsl(var(--primary) / .2)}#doi-admin-root .border-primary\\/30{border-color:hsl(var(--primary) / .3)}#doi-admin-root .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}#doi-admin-root .border-sidebar-border{border-color:hsl(var(--sidebar-border))}#doi-admin-root .border-transparent{border-color:transparent}#doi-admin-root .border-warning{border-color:hsl(var(--warning))}#doi-admin-root .border-l-transparent{border-left-color:transparent}#doi-admin-root .border-t-transparent{border-top-color:transparent}#doi-admin-root .bg-accent{background-color:hsl(var(--accent))}#doi-admin-root .bg-accent\\/50{background-color:hsl(var(--accent) / .5)}#doi-admin-root .bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-background{background-color:hsl(var(--background))}#doi-admin-root .bg-background\\/95{background-color:hsl(var(--background) / .95)}#doi-admin-root .bg-black\\/80{background-color:#000c}#doi-admin-root .bg-blue-50\\/50{background-color:#eff6ff80}#doi-admin-root .bg-border{background-color:hsl(var(--border))}#doi-admin-root .bg-card{background-color:hsl(var(--card))}#doi-admin-root .bg-card\\/85{background-color:hsl(var(--card) / .85)}#doi-admin-root .bg-destructive{background-color:hsl(var(--destructive))}#doi-admin-root .bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-foreground{background-color:hsl(var(--foreground))}#doi-admin-root .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-muted{background-color:hsl(var(--muted))}#doi-admin-root .bg-muted\\/30{background-color:hsl(var(--muted) / .3)}#doi-admin-root .bg-muted\\/40{background-color:hsl(var(--muted) / .4)}#doi-admin-root .bg-muted\\/50{background-color:hsl(var(--muted) / .5)}#doi-admin-root .bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-popover{background-color:hsl(var(--popover))}#doi-admin-root .bg-primary{background-color:hsl(var(--primary))}#doi-admin-root .bg-primary-foreground\\/15{background-color:hsl(var(--primary-foreground) / .15)}#doi-admin-root .bg-primary\\/10{background-color:hsl(var(--primary) / .1)}#doi-admin-root .bg-primary\\/5{background-color:hsl(var(--primary) / .05)}#doi-admin-root .bg-primary\\/\\[0\\.03\\]{background-color:hsl(var(--primary) / .03)}#doi-admin-root .bg-primary\\/\\[0\\.04\\]{background-color:hsl(var(--primary) / .04)}#doi-admin-root .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-secondary{background-color:hsl(var(--secondary))}#doi-admin-root .bg-sidebar{background-color:hsl(var(--sidebar-background))}#doi-admin-root .bg-sidebar-border{background-color:hsl(var(--sidebar-border))}#doi-admin-root .bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}#doi-admin-root .bg-success{background-color:hsl(var(--success))}#doi-admin-root .bg-success\\/15{background-color:hsl(var(--success) / .15)}#doi-admin-root .bg-transparent{background-color:transparent}#doi-admin-root .bg-warning\\/10{background-color:hsl(var(--warning) / .1)}#doi-admin-root .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}#doi-admin-root .from-primary{--tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}#doi-admin-root .to-primary\\/70{--tw-gradient-to: hsl(var(--primary) / .7) var(--tw-gradient-to-position)}#doi-admin-root .fill-current{fill:currentColor}#doi-admin-root .p-0{padding:0}#doi-admin-root .p-1{padding:.25rem}#doi-admin-root .p-1\\.5{padding:.375rem}#doi-admin-root .p-2{padding:.5rem}#doi-admin-root .p-3{padding:.75rem}#doi-admin-root .p-4{padding:1rem}#doi-admin-root .p-5{padding:1.25rem}#doi-admin-root .p-6{padding:1.5rem}#doi-admin-root .p-8{padding:2rem}#doi-admin-root .p-\\[1px\\]{padding:1px}#doi-admin-root .px-1{padding-left:.25rem;padding-right:.25rem}#doi-admin-root .px-1\\.5{padding-left:.375rem;padding-right:.375rem}#doi-admin-root .px-2{padding-left:.5rem;padding-right:.5rem}#doi-admin-root .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#doi-admin-root .px-3{padding-left:.75rem;padding-right:.75rem}#doi-admin-root .px-4{padding-left:1rem;padding-right:1rem}#doi-admin-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#doi-admin-root .px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .px-8{padding-left:2rem;padding-right:2rem}#doi-admin-root .py-0{padding-top:0;padding-bottom:0}#doi-admin-root .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#doi-admin-root .py-1{padding-top:.25rem;padding-bottom:.25rem}#doi-admin-root .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root .py-16{padding-top:4rem;padding-bottom:4rem}#doi-admin-root .py-2{padding-top:.5rem;padding-bottom:.5rem}#doi-admin-root .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#doi-admin-root .py-3{padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root .py-4{padding-top:1rem;padding-bottom:1rem}#doi-admin-root .py-6{padding-top:1.5rem;padding-bottom:1.5rem}#doi-admin-root .py-8{padding-top:2rem;padding-bottom:2rem}#doi-admin-root .py-px{padding-top:1px;padding-bottom:1px}#doi-admin-root .pb-1{padding-bottom:.25rem}#doi-admin-root .pb-2{padding-bottom:.5rem}#doi-admin-root .pb-3{padding-bottom:.75rem}#doi-admin-root .pb-4{padding-bottom:1rem}#doi-admin-root .pl-2\\.5{padding-left:.625rem}#doi-admin-root .pl-4{padding-left:1rem}#doi-admin-root .pl-8{padding-left:2rem}#doi-admin-root .pr-2{padding-right:.5rem}#doi-admin-root .pr-2\\.5{padding-right:.625rem}#doi-admin-root .pr-3{padding-right:.75rem}#doi-admin-root .pr-8{padding-right:2rem}#doi-admin-root .pt-0{padding-top:0}#doi-admin-root .pt-1{padding-top:.25rem}#doi-admin-root .pt-2{padding-top:.5rem}#doi-admin-root .pt-3{padding-top:.75rem}#doi-admin-root .pt-4{padding-top:1rem}#doi-admin-root .pt-6{padding-top:1.5rem}#doi-admin-root .text-left{text-align:left}#doi-admin-root .text-center{text-align:center}#doi-admin-root .text-right{text-align:right}#doi-admin-root .align-top{vertical-align:top}#doi-admin-root .align-middle{vertical-align:middle}#doi-admin-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#doi-admin-root .font-sans{font-family:Inter Variable,Inter,system-ui,sans-serif}#doi-admin-root .text-2xl{font-size:1.5rem;line-height:2rem}#doi-admin-root .text-4xl{font-size:2.25rem;line-height:2.5rem}#doi-admin-root .text-\\[0\\.8rem\\]{font-size:.8rem}#doi-admin-root .text-\\[10px\\]{font-size:10px}#doi-admin-root .text-\\[11px\\]{font-size:11px}#doi-admin-root .text-base{font-size:1rem;line-height:1.5rem}#doi-admin-root .text-lg{font-size:1.125rem;line-height:1.75rem}#doi-admin-root .text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .text-xl{font-size:1.25rem;line-height:1.75rem}#doi-admin-root .text-xs{font-size:.75rem;line-height:1rem}#doi-admin-root .font-bold{font-weight:700}#doi-admin-root .font-medium{font-weight:500}#doi-admin-root .font-normal{font-weight:400}#doi-admin-root .font-semibold{font-weight:600}#doi-admin-root .uppercase{text-transform:uppercase}#doi-admin-root .capitalize{text-transform:capitalize}#doi-admin-root .italic{font-style:italic}#doi-admin-root .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#doi-admin-root .leading-none{line-height:1}#doi-admin-root .leading-relaxed{line-height:1.625}#doi-admin-root .leading-tight{line-height:1.25}#doi-admin-root .tracking-tight{letter-spacing:-.025em}#doi-admin-root .tracking-wide{letter-spacing:.025em}#doi-admin-root .tracking-wider{letter-spacing:.05em}#doi-admin-root .tracking-widest{letter-spacing:.1em}#doi-admin-root .text-accent-foreground{color:hsl(var(--accent-foreground))}#doi-admin-root .text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}#doi-admin-root .text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}#doi-admin-root .text-blue-800\\/80{color:#1e40afcc}#doi-admin-root .text-blue-900\\/70{color:#1e3a8ab3}#doi-admin-root .text-card-foreground{color:hsl(var(--card-foreground))}#doi-admin-root .text-current{color:currentColor}#doi-admin-root .text-destructive{color:hsl(var(--destructive))}#doi-admin-root .text-destructive-foreground{color:hsl(var(--destructive-foreground))}#doi-admin-root .text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}#doi-admin-root .text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}#doi-admin-root .text-foreground{color:hsl(var(--foreground))}#doi-admin-root .text-foreground\\/50{color:hsl(var(--foreground) / .5)}#doi-admin-root .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}#doi-admin-root .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}#doi-admin-root .text-muted-foreground{color:hsl(var(--muted-foreground))}#doi-admin-root .text-muted-foreground\\/30{color:hsl(var(--muted-foreground) / .3)}#doi-admin-root .text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}#doi-admin-root .text-popover-foreground{color:hsl(var(--popover-foreground))}#doi-admin-root .text-primary{color:hsl(var(--primary))}#doi-admin-root .text-primary-foreground{color:hsl(var(--primary-foreground))}#doi-admin-root .text-primary-foreground\\/80{color:hsl(var(--primary-foreground) / .8)}#doi-admin-root .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}#doi-admin-root .text-secondary-foreground{color:hsl(var(--secondary-foreground))}#doi-admin-root .text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}#doi-admin-root .text-sidebar-foreground\\/70{color:hsl(var(--sidebar-foreground) / .7)}#doi-admin-root .text-success{color:hsl(var(--success))}#doi-admin-root .text-success-foreground{color:hsl(var(--success-foreground))}#doi-admin-root .text-warning{color:hsl(var(--warning))}#doi-admin-root .underline{text-decoration-line:underline}#doi-admin-root .underline-offset-4{text-underline-offset:4px}#doi-admin-root .opacity-0{opacity:0}#doi-admin-root .opacity-40{opacity:.4}#doi-admin-root .opacity-50{opacity:.5}#doi-admin-root .opacity-60{opacity:.6}#doi-admin-root .opacity-70{opacity:.7}#doi-admin-root .opacity-90{opacity:.9}#doi-admin-root .shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 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)}#doi-admin-root .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(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)}#doi-admin-root .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(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)}#doi-admin-root .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}#doi-admin-root .outline-none{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .outline{outline-style:solid}#doi-admin-root .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(0px + 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)}#doi-admin-root .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)}#doi-admin-root .ring-green-500\\/20{--tw-ring-color: rgb(34 197 94 / .2)}#doi-admin-root .ring-red-500\\/20{--tw-ring-color: rgb(239 68 68 / .2)}#doi-admin-root .ring-ring{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .blur-\\[3px\\]{--tw-blur: blur(3px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#doi-admin-root .blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#doi-admin-root .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#doi-admin-root .backdrop-blur{--tw-backdrop-blur: blur(8px);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)}#doi-admin-root .backdrop-filter{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)}#doi-admin-root .transition{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);transition-duration:.15s}#doi-admin-root .transition-\\[margin\\,opa\\]{transition-property:margin,opa;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\,height\\,padding\\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#doi-admin-root .duration-1000{transition-duration:1s}#doi-admin-root .duration-200{transition-duration:.2s}#doi-admin-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{transition-timing-function:linear}@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))}}#doi-admin-root .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .fade-in,#doi-admin-root .fade-in-0{--tw-enter-opacity: 0}#doi-admin-root .fade-in-80{--tw-enter-opacity: .8}#doi-admin-root .zoom-in-95{--tw-enter-scale: .95}#doi-admin-root .slide-in-from-top-1{--tw-enter-translate-y: -.25rem}#doi-admin-root .duration-1000{animation-duration:1s}#doi-admin-root .duration-200{animation-duration:.2s}#doi-admin-root .ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}#doi-admin-root .ease-linear{animation-timing-function:linear}#doi-admin-root .running{animation-play-state:running}#doi-admin-root .paused{animation-play-state:paused}#doi-admin-root .pro-gradient{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)))}#doi-admin-root .pro-badge{background:linear-gradient(135deg,hsl(var(--pro-start)),hsl(var(--pro-end)));color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;padding:2px 6px;border-radius:3px;letter-spacing:.5px}#doi-admin-root .file\\:border-0::file-selector-button{border-width:0px}#doi-admin-root .file\\:bg-transparent::file-selector-button{background-color:transparent}#doi-admin-root .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}#doi-admin-root .file\\:font-medium::file-selector-button{font-weight:500}#doi-admin-root .file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}#doi-admin-root .backdrop\\:bg-black\\/50::backdrop{background-color:#00000080}#doi-admin-root .backdrop\\:backdrop-blur-sm::backdrop{--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)}#doi-admin-root .after\\:absolute:after{content:var(--tw-content);position:absolute}#doi-admin-root .after\\:-inset-2:after{content:var(--tw-content);inset:-.5rem}#doi-admin-root .after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}#doi-admin-root .after\\:left-1\\/2:after{content:var(--tw-content);left:50%}#doi-admin-root .after\\:w-1:after{content:var(--tw-content);width:.25rem}#doi-admin-root .after\\:w-\\[2px\\]:after{content:var(--tw-content);width:2px}#doi-admin-root .after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .first\\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .first\\:border-l:first-child{border-left-width:1px}#doi-admin-root .last\\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .focus-within\\:relative:focus-within{position:relative}#doi-admin-root .focus-within\\:z-20:focus-within{z-index:20}#doi-admin-root .hover\\:border-foreground\\/30:hover{border-color:hsl(var(--foreground) / .3)}#doi-admin-root .hover\\:bg-accent:hover{background-color:hsl(var(--accent))}#doi-admin-root .hover\\:bg-accent\\/30:hover{background-color:hsl(var(--accent) / .3)}#doi-admin-root .hover\\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-amber-50:hover{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-destructive\\/10:hover{background-color:hsl(var(--destructive) / .1)}#doi-admin-root .hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}#doi-admin-root .hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}#doi-admin-root .hover\\:bg-emerald-50:hover{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}#doi-admin-root .hover\\:bg-muted:hover{background-color:hsl(var(--muted))}#doi-admin-root .hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted) / .5)}#doi-admin-root .hover\\:bg-primary:hover{background-color:hsl(var(--primary))}#doi-admin-root .hover\\:bg-primary\\/10:hover{background-color:hsl(var(--primary) / .1)}#doi-admin-root .hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}#doi-admin-root .hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}#doi-admin-root .hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}#doi-admin-root .hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}#doi-admin-root .hover\\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .hover\\:bg-success\\/90:hover{background-color:hsl(var(--success) / .9)}#doi-admin-root .hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}#doi-admin-root .hover\\:text-foreground:hover{color:hsl(var(--foreground))}#doi-admin-root .hover\\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}#doi-admin-root .hover\\:text-primary:hover{color:hsl(var(--primary))}#doi-admin-root .hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}#doi-admin-root .hover\\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .hover\\:underline:hover{text-decoration-line:underline}#doi-admin-root .hover\\:opacity-100:hover{opacity:1}#doi-admin-root .hover\\:opacity-90:hover{opacity:.9}#doi-admin-root .hover\\:shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-accent\\)\\)\\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 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)}#doi-admin-root .hover\\:after\\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}#doi-admin-root .focus\\:bg-accent:focus{background-color:hsl(var(--accent))}#doi-admin-root .focus\\:bg-primary:focus{background-color:hsl(var(--primary))}#doi-admin-root .focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}#doi-admin-root .focus\\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}#doi-admin-root .focus\\:opacity-100:focus{opacity:1}#doi-admin-root .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .focus\\: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)}#doi-admin-root .focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#doi-admin-root .focus-visible\\: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)}#doi-admin-root .focus-visible\\: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)}#doi-admin-root .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}#doi-admin-root .focus-visible\\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}#doi-admin-root .focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}#doi-admin-root .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#doi-admin-root .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}#doi-admin-root .active\\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .active\\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .disabled\\:pointer-events-none:disabled{pointer-events:none}#doi-admin-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#doi-admin-root .disabled\\:opacity-50:disabled{opacity:.5}#doi-admin-root :is(.group\\/menu-item:focus-within .group-focus-within\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group\\/menu-item:hover .group-hover\\/menu-item\\:opacity-100){opacity:1}#doi-admin-root :is(.group:hover .group-hover\\:opacity-100){opacity:1}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40){border-color:hsl(var(--muted) / .4)}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:border-border){border-color:hsl(var(--border))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-muted){background-color:hsl(var(--muted))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:bg-primary){background-color:hsl(var(--primary))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:bg-background){background-color:hsl(var(--background))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground){color:hsl(var(--primary-foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:text-foreground){color:hsl(var(--foreground))}#doi-admin-root :is(.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(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)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover){border-color:hsl(var(--destructive) / .3)}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover){background-color:hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover){color:hsl(var(--destructive-foreground))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover){--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus){--tw-ring-color: hsl(var(--destructive))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}#doi-admin-root :is(.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus){--tw-ring-offset-color: #dc2626}#doi-admin-root :is(.peer\\/menu-button:hover~.peer-hover\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:cursor-not-allowed){cursor:not-allowed}#doi-admin-root :is(.peer:disabled~.peer-disabled\\:opacity-70){opacity:.7}#doi-admin-root .has-\\[\\[data-variant\\=inset\\]\\]\\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}#doi-admin-root .has-\\[\\:disabled\\]\\:opacity-50:has(:disabled){opacity:.5}#doi-admin-root :is(.group\\/menu-item:has([data-sidebar=menu-action]) .group-has-\\[\\[data-sidebar\\=menu-action\\]\\]\\/menu-item\\:pr-8){padding-right:2rem}#doi-admin-root .aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}#doi-admin-root .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}#doi-admin-root .aria-selected\\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .aria-selected\\:bg-accent\\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .aria-selected\\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .aria-selected\\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}#doi-admin-root .aria-selected\\:opacity-100[aria-selected=true]{opacity:1}#doi-admin-root .aria-selected\\:opacity-30[aria-selected=true]{opacity:.3}#doi-admin-root .data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}#doi-admin-root .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=checked\\]\\: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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],#doi-admin-root .data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}#doi-admin-root .data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}#doi-admin-root .data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}#doi-admin-root .data-\\[active\\=true\\]\\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[active\\]\\:bg-accent\\/50[data-active]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[selected\\=\\'true\\'\\]\\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}#doi-admin-root .data-\\[state\\=checked\\]\\:bg-success[data-state=checked]{background-color:hsl(var(--success))}#doi-admin-root .data-\\[state\\=on\\]\\:bg-accent[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}#doi-admin-root .data-\\[state\\=open\\]\\:bg-accent\\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}#doi-admin-root .data-\\[state\\=open\\]\\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}#doi-admin-root .data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}#doi-admin-root .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}#doi-admin-root .data-\\[active\\=true\\]\\:font-medium[data-active=true]{font-weight:500}#doi-admin-root .data-\\[active\\=true\\]\\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root .data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}#doi-admin-root .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}#doi-admin-root .data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on],#doi-admin-root .data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}#doi-admin-root .data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}#doi-admin-root .data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true],#doi-admin-root .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}#doi-admin-root .data-\\[state\\=open\\]\\:opacity-100[data-state=open]{opacity:1}#doi-admin-root .data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root .data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{transition-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{transition-duration:.5s}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^=from-],#doi-admin-root .data-\\[state\\=open\\]\\:animate-in[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:animate-out[data-state=closed],#doi-admin-root .data-\\[state\\=hidden\\]\\:animate-out[data-state=hidden],#doi-admin-root .data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}#doi-admin-root .data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^=to-],#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}#doi-admin-root .data-\\[state\\=hidden\\]\\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}#doi-admin-root .data-\\[state\\=open\\]\\:fade-in-0[data-state=open],#doi-admin-root .data-\\[state\\=visible\\]\\:fade-in[data-state=visible]{--tw-enter-opacity: 0}#doi-admin-root .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}#doi-admin-root .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}#doi-admin-root .data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}#doi-admin-root .data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}#doi-admin-root .data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}#doi-admin-root .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}#doi-admin-root .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}#doi-admin-root .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}#doi-admin-root .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed],#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}#doi-admin-root .data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}#doi-admin-root .data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{animation-duration:.3s}#doi-admin-root .data-\\[state\\=open\\]\\:duration-500[data-state=open]{animation-duration:.5s}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}#doi-admin-root .data-\\[state\\=open\\]\\:hover\\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:-right-4){right:-1rem}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:left-0){left:0}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:-mt-8){margin-top:-2rem}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:hidden){display:none}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!size-8){width:2rem!important;height:2rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[--sidebar-width-icon\\]){width:var(--sidebar-width-icon)}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)_\\+2px\\)\\]){width:calc(var(--sidebar-width-icon) + 1rem + 2px)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:w-0){width:0px}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:translate-x-0){--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.group[data-state=open] .group-data-\\[state\\=open\\]\\:rotate-180){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:overflow-hidden){overflow:hidden}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:rounded-lg){border-radius:var(--radius)}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border){border-width:1px}#doi-admin-root :is(.group[data-side=left] .group-data-\\[side\\=left\\]\\:border-r){border-right-width:1px}#doi-admin-root :is(.group[data-side=right] .group-data-\\[side\\=right\\]\\:border-l){border-left-width:1px}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border-sidebar-border){border-color:hsl(var(--sidebar-border))}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-0){padding:0!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-2){padding:.5rem!important}#doi-admin-root :is(.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:opacity-0){opacity:0}#doi-admin-root :is(.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:after\\:left-full):after{content:var(--tw-content);left:100%}#doi-admin-root :is(.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:hover\\:bg-sidebar:hover){background-color:hsl(var(--sidebar-background))}#doi-admin-root :is(.peer\\/menu-button[data-size=default]~.peer-data-\\[size\\=default\\]\\/menu-button\\:top-1\\.5){top:.375rem}#doi-admin-root :is(.peer\\/menu-button[data-size=lg]~.peer-data-\\[size\\=lg\\]\\/menu-button\\:top-2\\.5){top:.625rem}#doi-admin-root :is(.peer\\/menu-button[data-size=sm]~.peer-data-\\[size\\=sm\\]\\/menu-button\\:top-1){top:.25rem}#doi-admin-root :is(.peer[data-variant=inset]~.peer-data-\\[variant\\=inset\\]\\:min-h-\\[calc\\(100svh-theme\\(spacing\\.4\\)\\)\\]){min-height:calc(100svh - 1rem)}#doi-admin-root :is(.peer\\/menu-button[data-active=true]~.peer-data-\\[active\\=true\\]\\/menu-button\\:text-sidebar-accent-foreground){color:hsl(var(--sidebar-accent-foreground))}@supports (backdrop-filter: var(--tw)){#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/60{background-color:hsl(var(--background) / .6)}#doi-admin-root .supports-\\[backdrop-filter\\]\\:bg-background\\/80{background-color:hsl(var(--background) / .8)}}#doi-admin-root .dark\\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-amber-900\\/50:is(.dark *){border-color:#78350f80}#doi-admin-root .dark\\:border-blue-800\\/30:is(.dark *){border-color:#1e40af4d}#doi-admin-root .dark\\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}#doi-admin-root .dark\\:border-emerald-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}#doi-admin-root .dark\\:border-red-900\\/50:is(.dark *){border-color:#7f1d1d80}#doi-admin-root .dark\\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-amber-950\\/30:is(.dark *){background-color:#451a034d}#doi-admin-root .dark\\:bg-blue-950\\/20:is(.dark *){background-color:#17255433}#doi-admin-root .dark\\:bg-emerald-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 44 34 / var(--tw-bg-opacity, 1))}#doi-admin-root .dark\\:bg-emerald-950\\/40:is(.dark *){background-color:#022c2266}#doi-admin-root .dark\\:bg-orange-950\\/40:is(.dark *){background-color:#43140766}#doi-admin-root .dark\\:bg-red-950\\/30:is(.dark *){background-color:#450a0a4d}#doi-admin-root .dark\\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-blue-300\\/60:is(.dark *){color:#93c5fd99}#doi-admin-root .dark\\:text-blue-300\\/80:is(.dark *){color:#93c5fdcc}#doi-admin-root .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-200:is(.dark *){--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-300:is(.dark *){--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-emerald-400:is(.dark *){--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-green-500:is(.dark *){--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-orange-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}#doi-admin-root .dark\\:hover\\:bg-amber-950:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){#doi-admin-root .sm\\:bottom-0{bottom:0}#doi-admin-root .sm\\:right-0{right:0}#doi-admin-root .sm\\:top-auto{top:auto}#doi-admin-root .sm\\:col-span-1{grid-column:span 1 / span 1}#doi-admin-root .sm\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}#doi-admin-root .sm\\:mt-0{margin-top:0}#doi-admin-root .sm\\:flex{display:flex}#doi-admin-root .sm\\:inline-flex{display:inline-flex}#doi-admin-root .sm\\:max-w-sm{max-width:24rem}#doi-admin-root .sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .sm\\:grid-cols-\\[1\\.2fr_1fr_1\\.2fr_1\\.5fr_0\\.6fr_auto\\]{grid-template-columns:1.2fr 1fr 1.2fr 1.5fr .6fr auto}#doi-admin-root .sm\\:grid-cols-\\[1fr_2fr\\]{grid-template-columns:1fr 2fr}#doi-admin-root .sm\\:grid-cols-\\[auto_1fr_12rem\\]{grid-template-columns:auto 1fr 12rem}#doi-admin-root .sm\\:flex-row{flex-direction:row}#doi-admin-root .sm\\:flex-col{flex-direction:column}#doi-admin-root .sm\\:justify-end{justify-content:flex-end}#doi-admin-root .sm\\:gap-2\\.5{gap:.625rem}#doi-admin-root :is(.sm\\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.sm\\:space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}#doi-admin-root :is(.sm\\:space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}#doi-admin-root .sm\\:rounded-lg{border-radius:var(--radius)}#doi-admin-root .sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .sm\\:text-left{text-align:left}#doi-admin-root .data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){#doi-admin-root .md\\:absolute{position:absolute}#doi-admin-root .md\\:block{display:block}#doi-admin-root .md\\:flex{display:flex}#doi-admin-root .md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\]{width:var(--radix-navigation-menu-viewport-width)}#doi-admin-root .md\\:w-auto{width:auto}#doi-admin-root .md\\:max-w-\\[420px\\]{max-width:420px}#doi-admin-root .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .md\\:p-6{padding:1.5rem}#doi-admin-root .md\\:px-6{padding-left:1.5rem;padding-right:1.5rem}#doi-admin-root .md\\:text-sm{font-size:.875rem;line-height:1.25rem}#doi-admin-root .md\\:opacity-0{opacity:0}#doi-admin-root .after\\:md\\:hidden:after{content:var(--tw-content);display:none}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:m-2){margin:.5rem}#doi-admin-root :is(.peer[data-state=collapsed][data-variant=inset]~.md\\:peer-data-\\[state\\=collapsed\\]\\:peer-data-\\[variant\\=inset\\]\\:ml-2){margin-left:.5rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:ml-0){margin-left:0}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:rounded-xl){border-radius:.75rem}#doi-admin-root :is(.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){#doi-admin-root .lg\\:col-span-2{grid-column:span 2 / span 2}#doi-admin-root .lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#doi-admin-root .lg\\:grid-cols-\\[1fr_300px\\]{grid-template-columns:1fr 300px}}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}#doi-admin-root .first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}#doi-admin-root .last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-outside\\)\\]\\:bg-accent\\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}#doi-admin-root .\\[\\&\\:has\\(\\[aria-selected\\]\\.day-range-end\\)\\]\\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}#doi-admin-root .\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}#doi-admin-root :is(.\\[\\&\\>button\\]\\:hidden>button){display:none}#doi-admin-root :is(.\\[\\&\\>span\\:last-child\\]\\:truncate>span:last-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#doi-admin-root :is(.\\[\\&\\>span\\]\\:line-clamp-1>span){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#doi-admin-root :is(.\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div){--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:absolute>svg){position:absolute}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:left-4>svg){left:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:top-4>svg){top:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-3\\.5>svg){width:.875rem;height:.875rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:size-4>svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:shrink-0>svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-destructive>svg){color:hsl(var(--destructive))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-foreground>svg){color:hsl(var(--foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\]\\:text-sidebar-accent-foreground>svg){color:hsl(var(--sidebar-accent-foreground))}#doi-admin-root :is(.\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~*){padding-left:1.75rem}#doi-admin-root :is(.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr){border-bottom-width:0px}#doi-admin-root :is(.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]){padding-top:.375rem;padding-bottom:.375rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]){font-weight:500}#doi-admin-root :is(.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]){color:hsl(var(--muted-foreground))}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}#doi-admin-root :is(.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]){height:3rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]){padding-top:.75rem;padding-bottom:.75rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg){height:1.25rem}#doi-admin-root :is(.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg){width:1.25rem}#doi-admin-root :is(.\\[\\&_p\\]\\:leading-relaxed p){line-height:1.625}#doi-admin-root :is(.\\[\\&_svg\\]\\:pointer-events-none svg){pointer-events:none}#doi-admin-root :is(.\\[\\&_svg\\]\\:size-4 svg){width:1rem;height:1rem}#doi-admin-root :is(.\\[\\&_svg\\]\\:shrink-0 svg){flex-shrink:0}#doi-admin-root :is(.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child){border-width:0px}#doi-admin-root :is(.\\[\\&_tr\\]\\:border-b tr){border-bottom-width:1px}#doi-admin-root :is([data-side=left][data-collapsible=offcanvas] .\\[\\[data-side\\=left\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-right-2){right:-.5rem}#doi-admin-root :is([data-side=left][data-state=collapsed] .\\[\\[data-side\\=left\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}#doi-admin-root :is([data-side=left] .\\[\\[data-side\\=left\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right][data-collapsible=offcanvas] .\\[\\[data-side\\=right\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-left-2){left:-.5rem}#doi-admin-root :is([data-side=right][data-state=collapsed] .\\[\\[data-side\\=right\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-w-resize){cursor:w-resize}#doi-admin-root :is([data-side=right] .\\[\\[data-side\\=right\\]_\\&\\]\\:cursor-e-resize){cursor:e-resize}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); | |
| 3 | +var gM=Object.defineProperty;var $S=Le=>{throw TypeError(Le)};var vM=(Le,Be,nt)=>Be in Le?gM(Le,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Le[Be]=nt;var Vo=(Le,Be,nt)=>vM(Le,typeof Be!="symbol"?Be+"":Be,nt),Qp=(Le,Be,nt)=>Be.has(Le)||$S("Cannot "+nt);var E=(Le,Be,nt)=>(Qp(Le,Be,"read from private field"),nt?nt.call(Le):Be.get(Le)),ie=(Le,Be,nt)=>Be.has(Le)?$S("Cannot add the same private member more than once"):Be instanceof WeakSet?Be.add(Le):Be.set(Le,nt),J=(Le,Be,nt,Fs)=>(Qp(Le,Be,"write to private field"),Fs?Fs.call(Le,nt):Be.set(Le,nt),nt),je=(Le,Be,nt)=>(Qp(Le,Be,"access private method"),nt);var fu=(Le,Be,nt,Fs)=>({set _(Ea){J(Le,Be,Ea,nt)},get _(){return E(Le,Be,Fs)}});(function(Le){"use strict";var pa,js,Co,SS,ws,Wp,CS,ko,Ns,Eo,kS,xa,ES,ga,_o,bn,va,pt,wl,ya,sn,zS,Lr,_S,qt,De,Nl,Dt,ba,Po,Rr,Ss,Sl,To,Ro,ja,wa,Cs,Ao,$e,Al,Gp,Yp,Xp,Zp,Jp,ex,tx,US,PS,Cl,or,Et,Na,ir,Ds,TS,Ar,zn,kl,RS,Or,ks,Ht,Ir,Mr,mu,nx,AS,Oo,an,Io,Mo,jn,Es,El,_l,Pl,Tl,bt,rx,sx,ax,ox,ix,OS,lr,IS,ot,_s,Ps,Do,Fo,Ts,Lo,$o,MS;function Be(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(s,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fs={exports:{}},Ea={},lx={exports:{}},Oe={};/** | |
| 4 | 4 | * @license React |
| 5 | 5 | * react.production.min.js |
| 6 | 6 | * |
| 7 | 7 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 8 | 8 | * |
| 9 | 9 | * This source code is licensed under the MIT license found in the |
| 10 | 10 | * LICENSE file in the root directory of this source tree. |
| 11 | - */var Ho=Symbol.for("react.element"),ZS=Symbol.for("react.portal"),JS=Symbol.for("react.fragment"),eC=Symbol.for("react.strict_mode"),tC=Symbol.for("react.profiler"),nC=Symbol.for("react.provider"),rC=Symbol.for("react.context"),sC=Symbol.for("react.forward_ref"),aC=Symbol.for("react.suspense"),oC=Symbol.for("react.memo"),iC=Symbol.for("react.lazy"),px=Symbol.iterator;function lC(e){return e===null||typeof e!="object"?null:(e=px&&e[px]||e["@@iterator"],typeof e=="function"?e:null)}var xx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gx=Object.assign,vx={};function Ea(e,t,n){this.props=e,this.context=t,this.refs=vx,this.updater=n||xx}Ea.prototype.isReactComponent={},Ea.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yx(){}yx.prototype=Ea.prototype;function yu(e,t,n){this.props=e,this.context=t,this.refs=vx,this.updater=n||xx}var bu=yu.prototype=new yx;bu.constructor=yu,gx(bu,Ea.prototype),bu.isPureReactComponent=!0;var bx=Array.isArray,jx=Object.prototype.hasOwnProperty,ju={current:null},wx={key:!0,ref:!0,__self:!0,__source:!0};function Nx(e,t,n){var s,a={},o=null,i=null;if(t!=null)for(s in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)jx.call(t,s)&&!wx.hasOwnProperty(s)&&(a[s]=t[s]);var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){for(var d=Array(c),u=0;u<c;u++)d[u]=arguments[u+2];a.children=d}if(e&&e.defaultProps)for(s in c=e.defaultProps,c)a[s]===void 0&&(a[s]=c[s]);return{$$typeof:Ho,type:e,key:o,ref:i,props:a,_owner:ju.current}}function cC(e,t){return{$$typeof:Ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ho}function dC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sx=/\/+/g;function Nu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dC(""+e.key):t.toString(36)}function Il(e,t,n,s,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ho:case ZS:i=!0}}if(i)return i=e,a=a(i),e=s===""?"."+Nu(i,0):s,bx(a)?(n="",e!=null&&(n=e.replace(Sx,"$&/")+"/"),Il(a,t,n,"",function(u){return u})):a!=null&&(wu(a)&&(a=cC(a,n+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(Sx,"$&/")+"/")+e)),t.push(a)),1;if(i=0,s=s===""?".":s+":",bx(e))for(var c=0;c<e.length;c++){o=e[c];var d=s+Nu(o,c);i+=Il(o,t,n,d,a)}else if(d=lC(e),typeof d=="function")for(e=d.call(e),c=0;!(o=e.next()).done;)o=o.value,d=s+Nu(o,c++),i+=Il(o,t,n,d,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ml(e,t,n){if(e==null)return e;var s=[],a=0;return Il(e,s,"","",function(o){return t.call(n,o,a++)}),s}function uC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Rt={current:null},Dl={transition:null},fC={ReactCurrentDispatcher:Rt,ReactCurrentBatchConfig:Dl,ReactCurrentOwner:ju};function Cx(){throw Error("act(...) is not supported in production builds of React.")}Ie.Children={map:Ml,forEach:function(e,t,n){Ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ml(e,function(){t++}),t},toArray:function(e){return Ml(e,function(t){return t})||[]},only:function(e){if(!wu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ie.Component=Ea,Ie.Fragment=JS,Ie.Profiler=tC,Ie.PureComponent=yu,Ie.StrictMode=eC,Ie.Suspense=aC,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fC,Ie.act=Cx,Ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=gx({},e.props),a=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ju.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)jx.call(t,d)&&!wx.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];s.children=c}return{$$typeof:Ho,type:e.type,key:a,ref:o,props:s,_owner:i}},Ie.createContext=function(e){return e={$$typeof:rC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nC,_context:e},e.Consumer=e},Ie.createElement=Nx,Ie.createFactory=function(e){var t=Nx.bind(null,e);return t.type=e,t},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(e){return{$$typeof:sC,render:e}},Ie.isValidElement=wu,Ie.lazy=function(e){return{$$typeof:iC,_payload:{_status:-1,_result:e},_init:uC}},Ie.memo=function(e,t){return{$$typeof:oC,type:e,compare:t===void 0?null:t}},Ie.startTransition=function(e){var t=Dl.transition;Dl.transition={};try{e()}finally{Dl.transition=t}},Ie.unstable_act=Cx,Ie.useCallback=function(e,t){return Rt.current.useCallback(e,t)},Ie.useContext=function(e){return Rt.current.useContext(e)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(e){return Rt.current.useDeferredValue(e)},Ie.useEffect=function(e,t){return Rt.current.useEffect(e,t)},Ie.useId=function(){return Rt.current.useId()},Ie.useImperativeHandle=function(e,t,n){return Rt.current.useImperativeHandle(e,t,n)},Ie.useInsertionEffect=function(e,t){return Rt.current.useInsertionEffect(e,t)},Ie.useLayoutEffect=function(e,t){return Rt.current.useLayoutEffect(e,t)},Ie.useMemo=function(e,t){return Rt.current.useMemo(e,t)},Ie.useReducer=function(e,t,n){return Rt.current.useReducer(e,t,n)},Ie.useRef=function(e){return Rt.current.useRef(e)},Ie.useState=function(e){return Rt.current.useState(e)},Ie.useSyncExternalStore=function(e,t,n){return Rt.current.useSyncExternalStore(e,t,n)},Ie.useTransition=function(){return Rt.current.useTransition()},Ie.version="18.3.1",hx.exports=Ie;var f=hx.exports;const W=rt(f),Fl=We({__proto__:null,default:W},[f]);/** | |
| 11 | + */var qo=Symbol.for("react.element"),BS=Symbol.for("react.portal"),VS=Symbol.for("react.fragment"),qS=Symbol.for("react.strict_mode"),HS=Symbol.for("react.profiler"),WS=Symbol.for("react.provider"),KS=Symbol.for("react.context"),QS=Symbol.for("react.forward_ref"),GS=Symbol.for("react.suspense"),YS=Symbol.for("react.memo"),XS=Symbol.for("react.lazy"),cx=Symbol.iterator;function ZS(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var dx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ux=Object.assign,fx={};function _a(e,t,n){this.props=e,this.context=t,this.refs=fx,this.updater=n||dx}_a.prototype.isReactComponent={},_a.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mx(){}mx.prototype=_a.prototype;function hu(e,t,n){this.props=e,this.context=t,this.refs=fx,this.updater=n||dx}var pu=hu.prototype=new mx;pu.constructor=hu,ux(pu,_a.prototype),pu.isPureReactComponent=!0;var hx=Array.isArray,px=Object.prototype.hasOwnProperty,xu={current:null},xx={key:!0,ref:!0,__self:!0,__source:!0};function gx(e,t,n){var s,a={},o=null,i=null;if(t!=null)for(s in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)px.call(t,s)&&!xx.hasOwnProperty(s)&&(a[s]=t[s]);var c=arguments.length-2;if(c===1)a.children=n;else if(1<c){for(var d=Array(c),u=0;u<c;u++)d[u]=arguments[u+2];a.children=d}if(e&&e.defaultProps)for(s in c=e.defaultProps,c)a[s]===void 0&&(a[s]=c[s]);return{$$typeof:qo,type:e,key:o,ref:i,props:a,_owner:xu.current}}function JS(e,t){return{$$typeof:qo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gu(e){return typeof e=="object"&&e!==null&&e.$$typeof===qo}function eC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vx=/\/+/g;function vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eC(""+e.key):t.toString(36)}function Ol(e,t,n,s,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case qo:case BS:i=!0}}if(i)return i=e,a=a(i),e=s===""?"."+vu(i,0):s,hx(a)?(n="",e!=null&&(n=e.replace(vx,"$&/")+"/"),Ol(a,t,n,"",function(u){return u})):a!=null&&(gu(a)&&(a=JS(a,n+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(vx,"$&/")+"/")+e)),t.push(a)),1;if(i=0,s=s===""?".":s+":",hx(e))for(var c=0;c<e.length;c++){o=e[c];var d=s+vu(o,c);i+=Ol(o,t,n,d,a)}else if(d=ZS(e),typeof d=="function")for(e=d.call(e),c=0;!(o=e.next()).done;)o=o.value,d=s+vu(o,c++),i+=Ol(o,t,n,d,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Il(e,t,n){if(e==null)return e;var s=[],a=0;return Ol(e,s,"","",function(o){return t.call(n,o,a++)}),s}function tC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pt={current:null},Ml={transition:null},nC={ReactCurrentDispatcher:Pt,ReactCurrentBatchConfig:Ml,ReactCurrentOwner:xu};function yx(){throw Error("act(...) is not supported in production builds of React.")}Oe.Children={map:Il,forEach:function(e,t,n){Il(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Il(e,function(){t++}),t},toArray:function(e){return Il(e,function(t){return t})||[]},only:function(e){if(!gu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Oe.Component=_a,Oe.Fragment=VS,Oe.Profiler=HS,Oe.PureComponent=hu,Oe.StrictMode=qS,Oe.Suspense=GS,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nC,Oe.act=yx,Oe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=ux({},e.props),a=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=xu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)px.call(t,d)&&!xx.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];s.children=c}return{$$typeof:qo,type:e.type,key:a,ref:o,props:s,_owner:i}},Oe.createContext=function(e){return e={$$typeof:KS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:WS,_context:e},e.Consumer=e},Oe.createElement=gx,Oe.createFactory=function(e){var t=gx.bind(null,e);return t.type=e,t},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(e){return{$$typeof:QS,render:e}},Oe.isValidElement=gu,Oe.lazy=function(e){return{$$typeof:XS,_payload:{_status:-1,_result:e},_init:tC}},Oe.memo=function(e,t){return{$$typeof:YS,type:e,compare:t===void 0?null:t}},Oe.startTransition=function(e){var t=Ml.transition;Ml.transition={};try{e()}finally{Ml.transition=t}},Oe.unstable_act=yx,Oe.useCallback=function(e,t){return Pt.current.useCallback(e,t)},Oe.useContext=function(e){return Pt.current.useContext(e)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(e){return Pt.current.useDeferredValue(e)},Oe.useEffect=function(e,t){return Pt.current.useEffect(e,t)},Oe.useId=function(){return Pt.current.useId()},Oe.useImperativeHandle=function(e,t,n){return Pt.current.useImperativeHandle(e,t,n)},Oe.useInsertionEffect=function(e,t){return Pt.current.useInsertionEffect(e,t)},Oe.useLayoutEffect=function(e,t){return Pt.current.useLayoutEffect(e,t)},Oe.useMemo=function(e,t){return Pt.current.useMemo(e,t)},Oe.useReducer=function(e,t,n){return Pt.current.useReducer(e,t,n)},Oe.useRef=function(e){return Pt.current.useRef(e)},Oe.useState=function(e){return Pt.current.useState(e)},Oe.useSyncExternalStore=function(e,t,n){return Pt.current.useSyncExternalStore(e,t,n)},Oe.useTransition=function(){return Pt.current.useTransition()},Oe.version="18.3.1",lx.exports=Oe;var f=lx.exports;const H=nt(f),Dl=Be({__proto__:null,default:H},[f]);/** | |
| 12 | 12 | * @license React |
| 13 | 13 | * react-jsx-runtime.production.min.js |
| 14 | 14 | * |
| 15 | 15 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 16 | 16 | * |
| 17 | 17 | * This source code is licensed under the MIT license found in the |
| 18 | 18 | * LICENSE file in the root directory of this source tree. |
| 19 | - */var mC=f,hC=Symbol.for("react.element"),pC=Symbol.for("react.fragment"),xC=Object.prototype.hasOwnProperty,gC=mC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vC={key:!0,ref:!0,__self:!0,__source:!0};function kx(e,t,n){var s,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(s in t)xC.call(t,s)&&!vC.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:hC,type:e,key:o,ref:i,props:a,_owner:gC.current}}ka.Fragment=pC,ka.jsx=kx,ka.jsxs=kx,Fs.exports=ka;var r=Fs.exports,Ex={exports:{}},Kt={},_x={exports:{}},Px={};/** | |
| 19 | + */var rC=f,sC=Symbol.for("react.element"),aC=Symbol.for("react.fragment"),oC=Object.prototype.hasOwnProperty,iC=rC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lC={key:!0,ref:!0,__self:!0,__source:!0};function bx(e,t,n){var s,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(s in t)oC.call(t,s)&&!lC.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)a[s]===void 0&&(a[s]=t[s]);return{$$typeof:sC,type:e,key:o,ref:i,props:a,_owner:iC.current}}Ea.Fragment=aC,Ea.jsx=bx,Ea.jsxs=bx,Fs.exports=Ea;var r=Fs.exports,jx={exports:{}},Wt={},wx={exports:{}},Nx={};/** | |
| 20 | 20 | * @license React |
| 21 | 21 | * scheduler.production.min.js |
| 22 | 22 | * |
| 23 | 23 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 24 | 24 | * |
| 25 | 25 | * This source code is licensed under the MIT license found in the |
| 26 | 26 | * LICENSE file in the root directory of this source tree. |
| 27 | - */(function(e){function t(A,D){var J=A.length;A.push(D);e:for(;0<J;){var pe=J-1>>>1,P=A[pe];if(0<a(P,D))A[pe]=D,A[J]=P,J=pe;else break e}}function n(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var D=A[0],J=A.pop();if(J!==D){A[0]=J;e:for(var pe=0,P=A.length,z=P>>>1;pe<z;){var q=2*(pe+1)-1,oe=A[q],Se=q+1,X=A[Se];if(0>a(oe,J))Se<P&&0>a(X,oe)?(A[pe]=X,A[Se]=J,pe=Se):(A[pe]=oe,A[q]=J,pe=q);else if(Se<P&&0>a(X,J))A[pe]=X,A[Se]=J,pe=Se;else break e}}return D}function a(A,D){var J=A.sortIndex-D.sortIndex;return J!==0?J:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var d=[],u=[],h=1,m=null,b=3,v=!1,w=!1,g=!1,j=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var D=n(u);D!==null;){if(D.callback===null)s(u);else if(D.startTime<=A)s(u),D.sortIndex=D.expirationTime,t(d,D);else break;D=n(u)}}function N(A){if(g=!1,x(A),!w)if(n(d)!==null)w=!0,M(S);else{var D=n(u);D!==null&&Z(N,D.startTime-A)}}function S(A,D){w=!1,g&&(g=!1,y(k),k=-1),v=!0;var J=b;try{for(x(D),m=n(d);m!==null&&(!(m.expirationTime>D)||A&&!O());){var pe=m.callback;if(typeof pe=="function"){m.callback=null,b=m.priorityLevel;var P=pe(m.expirationTime<=D);D=e.unstable_now(),typeof P=="function"?m.callback=P:m===n(d)&&s(d),x(D)}else s(d);m=n(d)}if(m!==null)var z=!0;else{var q=n(u);q!==null&&Z(N,q.startTime-D),z=!1}return z}finally{m=null,b=J,v=!1}}var C=!1,E=null,k=-1,R=5,T=-1;function O(){return!(e.unstable_now()-T<R)}function F(){if(E!==null){var A=e.unstable_now();T=A;var D=!0;try{D=E(!0,A)}finally{D?B():(C=!1,E=null)}}else C=!1}var B;if(typeof p=="function")B=function(){p(F)};else if(typeof MessageChannel!="undefined"){var I=new MessageChannel,se=I.port2;I.port1.onmessage=F,B=function(){se.postMessage(null)}}else B=function(){j(F,0)};function M(A){E=A,C||(C=!0,B())}function Z(A,D){k=j(function(){A(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,M(S))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(b){case 1:case 2:case 3:var D=3;break;default:D=b}var J=b;b=D;try{return A()}finally{b=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=b;b=A;try{return D()}finally{b=J}},e.unstable_scheduleCallback=function(A,D,J){var pe=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?pe+J:pe):J=pe,A){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=J+P,A={id:h++,callback:D,priorityLevel:A,startTime:J,expirationTime:P,sortIndex:-1},J>pe?(A.sortIndex=J,t(u,A),n(d)===null&&A===n(u)&&(g?(y(k),k=-1):g=!0,Z(N,J-pe))):(A.sortIndex=P,t(d,A),w||v||(w=!0,M(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var D=b;return function(){var J=b;b=D;try{return A.apply(this,arguments)}finally{b=J}}}})(Px),_x.exports=Px;var yC=_x.exports;/** | |
| 27 | + */(function(e){function t(A,M){var Z=A.length;A.push(M);e:for(;0<Z;){var xe=Z-1>>>1,P=A[xe];if(0<a(P,M))A[xe]=M,A[Z]=P,Z=xe;else break e}}function n(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var M=A[0],Z=A.pop();if(Z!==M){A[0]=Z;e:for(var xe=0,P=A.length,$=P>>>1;xe<$;){var W=2*(xe+1)-1,oe=A[W],Se=W+1,G=A[Se];if(0>a(oe,Z))Se<P&&0>a(G,oe)?(A[xe]=G,A[Se]=Z,xe=Se):(A[xe]=oe,A[W]=Z,xe=W);else if(Se<P&&0>a(G,Z))A[xe]=G,A[Se]=Z,xe=Se;else break e}}return M}function a(A,M){var Z=A.sortIndex-M.sortIndex;return Z!==0?Z:A.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var d=[],u=[],h=1,m=null,v=3,x=!1,j=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(A){for(var M=n(u);M!==null;){if(M.callback===null)s(u);else if(M.startTime<=A)s(u),M.sortIndex=M.expirationTime,t(d,M);else break;M=n(u)}}function N(A){if(b=!1,g(A),!j)if(n(d)!==null)j=!0,F(S);else{var M=n(u);M!==null&&ne(N,M.startTime-A)}}function S(A,M){j=!1,b&&(b=!1,y(C),C=-1),x=!0;var Z=v;try{for(g(M),m=n(d);m!==null&&(!(m.expirationTime>M)||A&&!O());){var xe=m.callback;if(typeof xe=="function"){m.callback=null,v=m.priorityLevel;var P=xe(m.expirationTime<=M);M=e.unstable_now(),typeof P=="function"?m.callback=P:m===n(d)&&s(d),g(M)}else s(d);m=n(d)}if(m!==null)var $=!0;else{var W=n(u);W!==null&&ne(N,W.startTime-M),$=!1}return $}finally{m=null,v=Z,x=!1}}var k=!1,_=null,C=-1,R=5,T=-1;function O(){return!(e.unstable_now()-T<R)}function D(){if(_!==null){var A=e.unstable_now();T=A;var M=!0;try{M=_(!0,A)}finally{M?B():(k=!1,_=null)}}else k=!1}var B;if(typeof p=="function")B=function(){p(D)};else if(typeof MessageChannel!="undefined"){var I=new MessageChannel,re=I.port2;I.port1.onmessage=D,B=function(){re.postMessage(null)}}else B=function(){w(D,0)};function F(A){_=A,k||(k=!0,B())}function ne(A,M){C=w(function(){A(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){j||x||(j=!0,F(S))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(v){case 1:case 2:case 3:var M=3;break;default:M=v}var Z=v;v=M;try{return A()}finally{v=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,M){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Z=v;v=A;try{return M()}finally{v=Z}},e.unstable_scheduleCallback=function(A,M,Z){var xe=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?xe+Z:xe):Z=xe,A){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=Z+P,A={id:h++,callback:M,priorityLevel:A,startTime:Z,expirationTime:P,sortIndex:-1},Z>xe?(A.sortIndex=Z,t(u,A),n(d)===null&&A===n(u)&&(b?(y(C),C=-1):b=!0,ne(N,Z-xe))):(A.sortIndex=P,t(d,A),j||x||(j=!0,F(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var M=v;return function(){var Z=v;v=M;try{return A.apply(this,arguments)}finally{v=Z}}}})(Nx),wx.exports=Nx;var cC=wx.exports;/** | |
| 28 | 28 | * @license React |
| 29 | 29 | * react-dom.production.min.js |
| 30 | 30 | * |
| 31 | 31 | * Copyright (c) Facebook, Inc. and its affiliates. |
| @@ -31,16 +31,16 @@ | ||
| 31 | 31 | * Copyright (c) Facebook, Inc. and its affiliates. |
| 32 | 32 | * |
| 33 | 33 | * This source code is licensed under the MIT license found in the |
| 34 | 34 | * LICENSE file in the root directory of this source tree. |
| 35 | - */var bC=f,Qt=yC;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Tx=new Set,Wo={};function Ls(e,t){_a(e,t),_a(e+"Capture",t)}function _a(e,t){for(Wo[e]=t,e=0;e<t.length;e++)Tx.add(t[e])}var ur=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Su=Object.prototype.hasOwnProperty,jC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rx={},Ax={};function wC(e){return Su.call(Ax,e)?!0:Su.call(Rx,e)?!1:jC.test(e)?Ax[e]=!0:(Rx[e]=!0,!1)}function NC(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function SC(e,t,n,s){if(t===null||typeof t=="undefined"||NC(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function At(e,t,n,s,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new At(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new At(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new At(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new At(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yt[e]=new At(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new At(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){yt[e]=new At(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){yt[e]=new At(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){yt[e]=new At(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function ku(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cu,ku);yt[t]=new At(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cu,ku);yt[t]=new At(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cu,ku);yt[t]=new At(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new At(e,1,!1,e.toLowerCase(),null,!1,!1)}),yt.xlinkHref=new At("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){yt[e]=new At(e,1,!1,e.toLowerCase(),null,!0,!0)});function Eu(e,t,n,s){var a=yt.hasOwnProperty(t)?yt[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(SC(t,n,a,s)&&(n=null),s||a===null?wC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var fr=bC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ll=Symbol.for("react.element"),Pa=Symbol.for("react.portal"),Ta=Symbol.for("react.fragment"),_u=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),Ox=Symbol.for("react.provider"),Ix=Symbol.for("react.context"),Tu=Symbol.for("react.forward_ref"),Ru=Symbol.for("react.suspense"),Au=Symbol.for("react.suspense_list"),Ou=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),Mx=Symbol.for("react.offscreen"),Dx=Symbol.iterator;function qo(e){return e===null||typeof e!="object"?null:(e=Dx&&e[Dx]||e["@@iterator"],typeof e=="function"?e:null)}var et=Object.assign,Iu;function Ko(e){if(Iu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Iu=t&&t[1]||""}return` | |
| 36 | -`+Iu+e}var Mu=!1;function Du(e,t){if(!e||Mu)return"";Mu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var a=u.stack.split(` | |
| 35 | + */var dC=f,Kt=cC;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Sx=new Set,Ho={};function Ls(e,t){Pa(e,t),Pa(e+"Capture",t)}function Pa(e,t){for(Ho[e]=t,e=0;e<t.length;e++)Sx.add(t[e])}var fr=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),yu=Object.prototype.hasOwnProperty,uC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cx={},kx={};function fC(e){return yu.call(kx,e)?!0:yu.call(Cx,e)?!1:uC.test(e)?kx[e]=!0:(Cx[e]=!0,!1)}function mC(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hC(e,t,n,s){if(t===null||typeof t=="undefined"||mC(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tt(e,t,n,s,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Tt(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Tt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Tt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Tt(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Tt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Tt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){xt[e]=new Tt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){xt[e]=new Tt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){xt[e]=new Tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var bu=/[\-:]([a-z])/g;function ju(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bu,ju);xt[t]=new Tt(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bu,ju);xt[t]=new Tt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bu,ju);xt[t]=new Tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){xt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!1,!1)}),xt.xlinkHref=new Tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){xt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function wu(e,t,n,s){var a=xt.hasOwnProperty(t)?xt[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(hC(t,n,a,s)&&(n=null),s||a===null?fC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var mr=dC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fl=Symbol.for("react.element"),Ta=Symbol.for("react.portal"),Ra=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Su=Symbol.for("react.profiler"),Ex=Symbol.for("react.provider"),_x=Symbol.for("react.context"),Cu=Symbol.for("react.forward_ref"),ku=Symbol.for("react.suspense"),Eu=Symbol.for("react.suspense_list"),_u=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),Px=Symbol.for("react.offscreen"),Tx=Symbol.iterator;function Wo(e){return e===null||typeof e!="object"?null:(e=Tx&&e[Tx]||e["@@iterator"],typeof e=="function"?e:null)}var Je=Object.assign,Pu;function Ko(e){if(Pu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pu=t&&t[1]||""}return` | |
| 36 | +`+Pu+e}var Tu=!1;function Ru(e,t){if(!e||Tu)return"";Tu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var a=u.stack.split(` | |
| 37 | 37 | `),o=s.stack.split(` |
| 38 | 38 | `),i=a.length-1,c=o.length-1;1<=i&&0<=c&&a[i]!==o[c];)c--;for(;1<=i&&0<=c;i--,c--)if(a[i]!==o[c]){if(i!==1||c!==1)do if(i--,c--,0>c||a[i]!==o[c]){var d=` |
| 39 | -`+a[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=c);break}}}finally{Mu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ko(e):""}function CC(e){switch(e.tag){case 5:return Ko(e.type);case 16:return Ko("Lazy");case 13:return Ko("Suspense");case 19:return Ko("SuspenseList");case 0:case 2:case 15:return e=Du(e.type,!1),e;case 11:return e=Du(e.type.render,!1),e;case 1:return e=Du(e.type,!0),e;default:return""}}function Fu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ta:return"Fragment";case Pa:return"Portal";case Pu:return"Profiler";case _u:return"StrictMode";case Ru:return"Suspense";case Au:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ix:return(e.displayName||"Context")+".Consumer";case Ox:return(e._context.displayName||"Context")+".Provider";case Tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ou:return t=e.displayName||null,t!==null?t:Fu(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return Fu(e(t))}catch(n){}}return null}function kC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fu(t);case 8:return t===_u?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function EC(e){var t=Fx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){s=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(i){s=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $l(e){e._valueTracker||(e._valueTracker=EC(e))}function Lx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Fx(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function zl(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Lu(e,t){var n=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function $x(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=$r(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zx(e,t){t=t.checked,t!=null&&Eu(e,"checked",t,!1)}function $u(e,t){zx(e,t);var n=$r(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zu(e,t.type,n):t.hasOwnProperty("defaultValue")&&zu(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ux(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zu(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Ra(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+$r(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Uu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(Qo(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$r(n)}}function Vx(e,t){var n=$r(t.value),s=$r(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Hx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ul,qx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ul=Ul||document.createElement("div"),Ul.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ul.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_C=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){_C.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Kx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function Qx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=Kx(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var PC=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vu(e,t){if(t){if(PC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Hu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wu=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ku=null,Aa=null,Oa=null;function Gx(e){if(e=vi(e)){if(typeof Ku!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=dc(t),Ku(e.stateNode,e.type,t))}}function Yx(e){Aa?Oa?Oa.push(e):Oa=[e]:Aa=e}function Xx(){if(Aa){var e=Aa,t=Oa;if(Oa=Aa=null,Gx(e),t)for(e=0;e<t.length;e++)Gx(t[e])}}function Zx(e,t){return e(t)}function Jx(){}var Qu=!1;function eg(e,t,n){if(Qu)return e(t,n);Qu=!0;try{return Zx(e,t,n)}finally{Qu=!1,(Aa!==null||Oa!==null)&&(Jx(),Xx())}}function Xo(e,t){var n=e.stateNode;if(n===null)return null;var s=dc(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Q(231,t,typeof n));return n}var Gu=!1;if(ur)try{var Zo={};Object.defineProperty(Zo,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch(e){Gu=!1}function TC(e,t,n,s,a,o,i,c,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Jo=!1,Bl=null,Vl=!1,Yu=null,RC={onError:function(e){Jo=!0,Bl=e}};function AC(e,t,n,s,a,o,i,c,d){Jo=!1,Bl=null,TC.apply(RC,arguments)}function OC(e,t,n,s,a,o,i,c,d){if(AC.apply(this,arguments),Jo){if(Jo){var u=Bl;Jo=!1,Bl=null}else throw Error(Q(198));Vl||(Vl=!0,Yu=u)}}function $s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ng(e){if($s(e)!==e)throw Error(Q(188))}function IC(e){var t=e.alternate;if(!t){if(t=$s(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return ng(a),e;if(o===s)return ng(a),t;o=o.sibling}throw Error(Q(188))}if(n.return!==s.return)n=a,s=o;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,s=o;break}if(c===s){i=!0,s=a,n=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===n){i=!0,n=o,s=a;break}if(c===s){i=!0,s=o,n=a;break}c=c.sibling}if(!i)throw Error(Q(189))}}if(n.alternate!==s)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function rg(e){return e=IC(e),e!==null?sg(e):null}function sg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sg(e);if(t!==null)return t;e=e.sibling}return null}var ag=Qt.unstable_scheduleCallback,og=Qt.unstable_cancelCallback,MC=Qt.unstable_shouldYield,DC=Qt.unstable_requestPaint,lt=Qt.unstable_now,FC=Qt.unstable_getCurrentPriorityLevel,Xu=Qt.unstable_ImmediatePriority,ig=Qt.unstable_UserBlockingPriority,Hl=Qt.unstable_NormalPriority,LC=Qt.unstable_LowPriority,lg=Qt.unstable_IdlePriority,Wl=null,qn=null;function $C(e){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Nn=Math.clz32?Math.clz32:BC,zC=Math.log,UC=Math.LN2;function BC(e){return e>>>=0,e===0?32:31-(zC(e)/UC|0)|0}var ql=64,Kl=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~a;c!==0?s=ei(c):(o&=i,o!==0&&(s=ei(o)))}else i=n&~a,i!==0?s=ei(i):o!==0&&(s=ei(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Nn(t),a=1<<n,s|=e[n],t&=~a;return s}function VC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function HC(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Nn(o),c=1<<i,d=a[i];d===-1?(!(c&n)||c&s)&&(a[i]=VC(c,t)):d<=t&&(e.expiredLanes|=c),o&=~c}}function Zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cg(){var e=ql;return ql<<=1,!(ql&4194240)&&(ql=64),e}function Ju(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ti(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nn(t),e[t]=n}function WC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Nn(n),o=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~o}}function ef(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Nn(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Ue=0;function dg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ug,tf,fg,mg,hg,nf=!1,Gl=[],zr=null,Ur=null,Br=null,ni=new Map,ri=new Map,Vr=[],qC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pg(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function si(e,t,n,s,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[a]},t!==null&&(t=vi(t),t!==null&&tf(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function KC(e,t,n,s,a){switch(t){case"focusin":return zr=si(zr,e,t,n,s,a),!0;case"dragenter":return Ur=si(Ur,e,t,n,s,a),!0;case"mouseover":return Br=si(Br,e,t,n,s,a),!0;case"pointerover":var o=a.pointerId;return ni.set(o,si(ni.get(o)||null,e,t,n,s,a)),!0;case"gotpointercapture":return o=a.pointerId,ri.set(o,si(ri.get(o)||null,e,t,n,s,a)),!0}return!1}function xg(e){var t=zs(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=tg(n),t!==null){e.blockedOn=t,hg(e.priority,function(){fg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Wu=s,n.target.dispatchEvent(s),Wu=null}else return t=vi(n),t!==null&&tf(t),e.blockedOn=n,!1;t.shift()}return!0}function gg(e,t,n){Yl(e)&&n.delete(t)}function QC(){nf=!1,zr!==null&&Yl(zr)&&(zr=null),Ur!==null&&Yl(Ur)&&(Ur=null),Br!==null&&Yl(Br)&&(Br=null),ni.forEach(gg),ri.forEach(gg)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,nf||(nf=!0,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,QC)))}function oi(e){function t(a){return ai(a,e)}if(0<Gl.length){ai(Gl[0],e);for(var n=1;n<Gl.length;n++){var s=Gl[n];s.blockedOn===e&&(s.blockedOn=null)}}for(zr!==null&&ai(zr,e),Ur!==null&&ai(Ur,e),Br!==null&&ai(Br,e),ni.forEach(t),ri.forEach(t),n=0;n<Vr.length;n++)s=Vr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)xg(n),n.blockedOn===null&&Vr.shift()}var Ia=fr.ReactCurrentBatchConfig,Xl=!0;function GC(e,t,n,s){var a=Ue,o=Ia.transition;Ia.transition=null;try{Ue=1,rf(e,t,n,s)}finally{Ue=a,Ia.transition=o}}function YC(e,t,n,s){var a=Ue,o=Ia.transition;Ia.transition=null;try{Ue=4,rf(e,t,n,s)}finally{Ue=a,Ia.transition=o}}function rf(e,t,n,s){if(Xl){var a=sf(e,t,n,s);if(a===null)wf(e,t,s,Zl,n),pg(e,s);else if(KC(a,e,t,n,s))s.stopPropagation();else if(pg(e,s),t&4&&-1<qC.indexOf(e)){for(;a!==null;){var o=vi(a);if(o!==null&&ug(o),o=sf(e,t,n,s),o===null&&wf(e,t,s,Zl,n),o===a)break;a=o}a!==null&&s.stopPropagation()}else wf(e,t,s,null,n)}}var Zl=null;function sf(e,t,n,s){if(Zl=null,e=qu(s),e=zs(e),e!==null)if(t=$s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zl=e,null}function vg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(FC()){case Xu:return 1;case ig:return 4;case Hl:case LC:return 16;case lg:return 536870912;default:return 16}default:return 16}}var Hr=null,af=null,Jl=null;function yg(){if(Jl)return Jl;var e,t=af,n=t.length,s,a="value"in Hr?Hr.value:Hr.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(s=1;s<=i&&t[n-s]===a[o-s];s++);return Jl=a.slice(e,1<s?1-s:void 0)}function ec(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tc(){return!0}function bg(){return!1}function Gt(e){function t(n,s,a,o,i){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?tc:bg,this.isPropagationStopped=bg,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=tc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tc)},persist:function(){},isPersistent:tc}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},of=Gt(Ma),ii=et({},Ma,{view:0,detail:0}),XC=Gt(ii),lf,cf,li,nc=et({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==li&&(li&&e.type==="mousemove"?(lf=e.screenX-li.screenX,cf=e.screenY-li.screenY):cf=lf=0,li=e),lf)},movementY:function(e){return"movementY"in e?e.movementY:cf}}),jg=Gt(nc),ZC=et({},nc,{dataTransfer:0}),JC=Gt(ZC),ek=et({},ii,{relatedTarget:0}),df=Gt(ek),tk=et({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),nk=Gt(tk),rk=et({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sk=Gt(rk),ak=et({},Ma,{data:0}),wg=Gt(ak),ok={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ik={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ck(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lk[e])?!!t[e]:!1}function uf(){return ck}var dk=et({},ii,{key:function(e){if(e.key){var t=ok[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ec(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ik[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(e){return e.type==="keypress"?ec(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ec(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uk=Gt(dk),fk=et({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ng=Gt(fk),mk=et({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf}),hk=Gt(mk),pk=et({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),xk=Gt(pk),gk=et({},nc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vk=Gt(gk),yk=[9,13,27,32],ff=ur&&"CompositionEvent"in window,ci=null;ur&&"documentMode"in document&&(ci=document.documentMode);var bk=ur&&"TextEvent"in window&&!ci,Sg=ur&&(!ff||ci&&8<ci&&11>=ci),Cg=" ",kg=!1;function Eg(e,t){switch(e){case"keyup":return yk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _g(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Da=!1;function jk(e,t){switch(e){case"compositionend":return _g(t);case"keypress":return t.which!==32?null:(kg=!0,Cg);case"textInput":return e=t.data,e===Cg&&kg?null:e;default:return null}}function wk(e,t){if(Da)return e==="compositionend"||!ff&&Eg(e,t)?(e=yg(),Jl=af=Hr=null,Da=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sg&&t.locale!=="ko"?null:t.data;default:return null}}var Nk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Nk[e.type]:t==="textarea"}function Tg(e,t,n,s){Yx(s),t=ic(t,"onChange"),0<t.length&&(n=new of("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var di=null,ui=null;function Sk(e){Qg(e,0)}function rc(e){var t=Ua(e);if(Lx(t))return e}function Ck(e,t){if(e==="change")return t}var Rg=!1;if(ur){var mf;if(ur){var hf="oninput"in document;if(!hf){var Ag=document.createElement("div");Ag.setAttribute("oninput","return;"),hf=typeof Ag.oninput=="function"}mf=hf}else mf=!1;Rg=mf&&(!document.documentMode||9<document.documentMode)}function Og(){di&&(di.detachEvent("onpropertychange",Ig),ui=di=null)}function Ig(e){if(e.propertyName==="value"&&rc(ui)){var t=[];Tg(t,ui,e,qu(e)),eg(Sk,t)}}function kk(e,t,n){e==="focusin"?(Og(),di=t,ui=n,di.attachEvent("onpropertychange",Ig)):e==="focusout"&&Og()}function Ek(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rc(ui)}function _k(e,t){if(e==="click")return rc(t)}function Pk(e,t){if(e==="input"||e==="change")return rc(t)}function Tk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sn=typeof Object.is=="function"?Object.is:Tk;function fi(e,t){if(Sn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!Su.call(t,a)||!Sn(e[a],t[a]))return!1}return!0}function Mg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dg(e,t){var n=Mg(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mg(n)}}function Fg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lg(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(s){n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Rk(e){var t=Lg(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fg(n.ownerDocument.documentElement,n)){if(s!==null&&pf(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(s.start,a);s=s.end===void 0?o:Math.min(s.end,a),!e.extend&&o>s&&(a=s,s=o,o=a),a=Dg(n,o);var i=Dg(n,s);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ak=ur&&"documentMode"in document&&11>=document.documentMode,Fa=null,xf=null,mi=null,gf=!1;function $g(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gf||Fa==null||Fa!==zl(s)||(s=Fa,"selectionStart"in s&&pf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),mi&&fi(mi,s)||(mi=s,s=ic(xf,"onSelect"),0<s.length&&(t=new of("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Fa)))}function sc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:sc("Animation","AnimationEnd"),animationiteration:sc("Animation","AnimationIteration"),animationstart:sc("Animation","AnimationStart"),transitionend:sc("Transition","TransitionEnd")},vf={},zg={};ur&&(zg=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function ac(e){if(vf[e])return vf[e];if(!La[e])return e;var t=La[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zg)return vf[e]=t[n];return e}var Ug=ac("animationend"),Bg=ac("animationiteration"),Vg=ac("animationstart"),Hg=ac("transitionend"),Wg=new Map,qg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(e,t){Wg.set(e,t),Ls(t,[e])}for(var yf=0;yf<qg.length;yf++){var bf=qg[yf],Ok=bf.toLowerCase(),Ik=bf[0].toUpperCase()+bf.slice(1);Wr(Ok,"on"+Ik)}Wr(Ug,"onAnimationEnd"),Wr(Bg,"onAnimationIteration"),Wr(Vg,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Hg,"onTransitionEnd"),_a("onMouseEnter",["mouseout","mouseover"]),_a("onMouseLeave",["mouseout","mouseover"]),_a("onPointerEnter",["pointerout","pointerover"]),_a("onPointerLeave",["pointerout","pointerover"]),Ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ls("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mk=new Set("cancel close invalid load scroll toggle".split(" ").concat(hi));function Kg(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,OC(s,t,void 0,e),e.currentTarget=null}function Qg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var o=void 0;if(t)for(var i=s.length-1;0<=i;i--){var c=s[i],d=c.instance,u=c.currentTarget;if(c=c.listener,d!==o&&a.isPropagationStopped())break e;Kg(a,c,u),o=d}else for(i=0;i<s.length;i++){if(c=s[i],d=c.instance,u=c.currentTarget,c=c.listener,d!==o&&a.isPropagationStopped())break e;Kg(a,c,u),o=d}}}if(Vl)throw e=Yu,Vl=!1,Yu=null,e}function Qe(e,t){var n=t[_f];n===void 0&&(n=t[_f]=new Set);var s=e+"__bubble";n.has(s)||(Gg(t,e,2,!1),n.add(s))}function jf(e,t,n){var s=0;t&&(s|=4),Gg(n,e,s,t)}var oc="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[oc]){e[oc]=!0,Tx.forEach(function(n){n!=="selectionchange"&&(Mk.has(n)||jf(n,!1,e),jf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oc]||(t[oc]=!0,jf("selectionchange",!1,t))}}function Gg(e,t,n,s){switch(vg(t)){case 1:var a=GC;break;case 4:a=YC;break;default:a=rf}n=a.bind(null,t,n,e),a=void 0,!Gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function wf(e,t,n,s,a){var o=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var i=s.tag;if(i===3||i===4){var c=s.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(i===4)for(i=s.return;i!==null;){var d=i.tag;if((d===3||d===4)&&(d=i.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;i=i.return}for(;c!==null;){if(i=zs(c),i===null)return;if(d=i.tag,d===5||d===6){s=o=i;continue e}c=c.parentNode}}s=s.return}eg(function(){var u=o,h=qu(n),m=[];e:{var b=Wg.get(e);if(b!==void 0){var v=of,w=e;switch(e){case"keypress":if(ec(n)===0)break e;case"keydown":case"keyup":v=uk;break;case"focusin":w="focus",v=df;break;case"focusout":w="blur",v=df;break;case"beforeblur":case"afterblur":v=df;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=jg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=JC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hk;break;case Ug:case Bg:case Vg:v=nk;break;case Hg:v=xk;break;case"scroll":v=XC;break;case"wheel":v=vk;break;case"copy":case"cut":case"paste":v=sk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Ng}var g=(t&4)!==0,j=!g&&e==="scroll",y=g?b!==null?b+"Capture":null:b;g=[];for(var p=u,x;p!==null;){x=p;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,y!==null&&(N=Xo(p,y),N!=null&&g.push(xi(p,N,x)))),j)break;p=p.return}0<g.length&&(b=new v(b,w,null,n,h),m.push({event:b,listeners:g}))}}if(!(t&7)){e:{if(b=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",b&&n!==Wu&&(w=n.relatedTarget||n.fromElement)&&(zs(w)||w[mr]))break e;if((v||b)&&(b=h.window===h?h:(b=h.ownerDocument)?b.defaultView||b.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?zs(w):null,w!==null&&(j=$s(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(g=jg,N="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ng,N="onPointerLeave",y="onPointerEnter",p="pointer"),j=v==null?b:Ua(v),x=w==null?b:Ua(w),b=new g(N,p+"leave",v,n,h),b.target=j,b.relatedTarget=x,N=null,zs(h)===u&&(g=new g(y,p+"enter",w,n,h),g.target=x,g.relatedTarget=j,N=g),j=N,v&&w)t:{for(g=v,y=w,p=0,x=g;x;x=$a(x))p++;for(x=0,N=y;N;N=$a(N))x++;for(;0<p-x;)g=$a(g),p--;for(;0<x-p;)y=$a(y),x--;for(;p--;){if(g===y||y!==null&&g===y.alternate)break t;g=$a(g),y=$a(y)}g=null}else g=null;v!==null&&Yg(m,b,v,g,!1),w!==null&&j!==null&&Yg(m,j,w,g,!0)}}e:{if(b=u?Ua(u):window,v=b.nodeName&&b.nodeName.toLowerCase(),v==="select"||v==="input"&&b.type==="file")var S=Ck;else if(Pg(b))if(Rg)S=Pk;else{S=Ek;var C=kk}else(v=b.nodeName)&&v.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")&&(S=_k);if(S&&(S=S(e,u))){Tg(m,S,n,h);break e}C&&C(e,b,u),e==="focusout"&&(C=b._wrapperState)&&C.controlled&&b.type==="number"&&zu(b,"number",b.value)}switch(C=u?Ua(u):window,e){case"focusin":(Pg(C)||C.contentEditable==="true")&&(Fa=C,xf=u,mi=null);break;case"focusout":mi=xf=Fa=null;break;case"mousedown":gf=!0;break;case"contextmenu":case"mouseup":case"dragend":gf=!1,$g(m,n,h);break;case"selectionchange":if(Ak)break;case"keydown":case"keyup":$g(m,n,h)}var E;if(ff)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Da?Eg(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Sg&&n.locale!=="ko"&&(Da||k!=="onCompositionStart"?k==="onCompositionEnd"&&Da&&(E=yg()):(Hr=h,af="value"in Hr?Hr.value:Hr.textContent,Da=!0)),C=ic(u,k),0<C.length&&(k=new wg(k,e,null,n,h),m.push({event:k,listeners:C}),E?k.data=E:(E=_g(n),E!==null&&(k.data=E)))),(E=bk?jk(e,n):wk(e,n))&&(u=ic(u,"onBeforeInput"),0<u.length&&(h=new wg("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=E))}Qg(m,t)})}function xi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ic(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Xo(e,n),o!=null&&s.unshift(xi(e,o,a)),o=Xo(e,t),o!=null&&s.push(xi(e,o,a))),e=e.return}return s}function $a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yg(e,t,n,s,a){for(var o=t._reactName,i=[];n!==null&&n!==s;){var c=n,d=c.alternate,u=c.stateNode;if(d!==null&&d===s)break;c.tag===5&&u!==null&&(c=u,a?(d=Xo(n,o),d!=null&&i.unshift(xi(n,d,c))):a||(d=Xo(n,o),d!=null&&i.push(xi(n,d,c)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Dk=/\r\n?/g,Fk=/\u0000|\uFFFD/g;function Xg(e){return(typeof e=="string"?e:""+e).replace(Dk,` | |
| 40 | -`).replace(Fk,"")}function lc(e,t,n){if(t=Xg(t),Xg(e)!==t&&n)throw Error(Q(425))}function cc(){}var Nf=null,Sf=null;function Cf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kf=typeof setTimeout=="function"?setTimeout:void 0,Lk=typeof clearTimeout=="function"?clearTimeout:void 0,Zg=typeof Promise=="function"?Promise:void 0,$k=typeof queueMicrotask=="function"?queueMicrotask:typeof Zg!="undefined"?function(e){return Zg.resolve(null).then(e).catch(zk)}:kf;function zk(e){setTimeout(function(){throw e})}function Ef(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),oi(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);oi(t)}function qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Jg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var za=Math.random().toString(36).slice(2),Kn="__reactFiber$"+za,gi="__reactProps$"+za,mr="__reactContainer$"+za,_f="__reactEvents$"+za,Uk="__reactListeners$"+za,Bk="__reactHandles$"+za;function zs(e){var t=e[Kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mr]||n[Kn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jg(e);e!==null;){if(n=e[Kn])return n;e=Jg(e)}return t}e=n,n=e.parentNode}return null}function vi(e){return e=e[Kn]||e[mr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ua(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function dc(e){return e[gi]||null}var Pf=[],Ba=-1;function Kr(e){return{current:e}}function Ge(e){0>Ba||(e.current=Pf[Ba],Pf[Ba]=null,Ba--)}function qe(e,t){Ba++,Pf[Ba]=e.current,e.current=t}var Qr={},Ct=Kr(Qr),Lt=Kr(!1),Us=Qr;function Va(e,t){var n=e.type.contextTypes;if(!n)return Qr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function $t(e){return e=e.childContextTypes,e!=null}function uc(){Ge(Lt),Ge(Ct)}function ev(e,t,n){if(Ct.current!==Qr)throw Error(Q(168));qe(Ct,t),qe(Lt,n)}function tv(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(Q(108,kC(e)||"Unknown",a));return et({},n,s)}function fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qr,Us=Ct.current,qe(Ct,e),qe(Lt,Lt.current),!0}function nv(e,t,n){var s=e.stateNode;if(!s)throw Error(Q(169));n?(e=tv(e,t,Us),s.__reactInternalMemoizedMergedChildContext=e,Ge(Lt),Ge(Ct),qe(Ct,e)):Ge(Lt),qe(Lt,n)}var hr=null,mc=!1,Tf=!1;function rv(e){hr===null?hr=[e]:hr.push(e)}function Vk(e){mc=!0,rv(e)}function Gr(){if(!Tf&&hr!==null){Tf=!0;var e=0,t=Ue;try{var n=hr;for(Ue=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}hr=null,mc=!1}catch(a){throw hr!==null&&(hr=hr.slice(e+1)),ag(Xu,Gr),a}finally{Ue=t,Tf=!1}}return null}var Ha=[],Wa=0,hc=null,pc=0,dn=[],un=0,Bs=null,pr=1,xr="";function Vs(e,t){Ha[Wa++]=pc,Ha[Wa++]=hc,hc=e,pc=t}function sv(e,t,n){dn[un++]=pr,dn[un++]=xr,dn[un++]=Bs,Bs=e;var s=pr;e=xr;var a=32-Nn(s)-1;s&=~(1<<a),n+=1;var o=32-Nn(t)+a;if(30<o){var i=a-a%5;o=(s&(1<<i)-1).toString(32),s>>=i,a-=i,pr=1<<32-Nn(t)+a|n<<a|s,xr=o+e}else pr=1<<o|n<<a|s,xr=e}function Rf(e){e.return!==null&&(Vs(e,1),sv(e,1,0))}function Af(e){for(;e===hc;)hc=Ha[--Wa],Ha[Wa]=null,pc=Ha[--Wa],Ha[Wa]=null;for(;e===Bs;)Bs=dn[--un],dn[un]=null,xr=dn[--un],dn[un]=null,pr=dn[--un],dn[un]=null}var Yt=null,Xt=null,Ze=!1,Cn=null;function av(e,t){var n=pn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ov(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Yt=e,Xt=qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yt=e,Xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bs!==null?{id:pr,overflow:xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yt=e,Xt=null,!0):!1;default:return!1}}function Of(e){return(e.mode&1)!==0&&(e.flags&128)===0}function If(e){if(Ze){var t=Xt;if(t){var n=t;if(!ov(e,t)){if(Of(e))throw Error(Q(418));t=qr(n.nextSibling);var s=Yt;t&&ov(e,t)?av(s,n):(e.flags=e.flags&-4097|2,Ze=!1,Yt=e)}}else{if(Of(e))throw Error(Q(418));e.flags=e.flags&-4097|2,Ze=!1,Yt=e}}}function iv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function xc(e){if(e!==Yt)return!1;if(!Ze)return iv(e),Ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Cf(e.type,e.memoizedProps)),t&&(t=Xt)){if(Of(e))throw lv(),Error(Q(418));for(;t;)av(e,t),t=qr(t.nextSibling)}if(iv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xt=qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xt=null}}else Xt=Yt?qr(e.stateNode.nextSibling):null;return!0}function lv(){for(var e=Xt;e;)e=qr(e.nextSibling)}function qa(){Xt=Yt=null,Ze=!1}function Mf(e){Cn===null?Cn=[e]:Cn.push(e)}var Hk=fr.ReactCurrentBatchConfig;function yi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Q(309));var s=n.stateNode}if(!s)throw Error(Q(147,e));var a=s,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var c=a.refs;i===null?delete c[o]:c[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function gc(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cv(e){var t=e._init;return t(e._payload)}function dv(e){function t(y,p){if(e){var x=y.deletions;x===null?(y.deletions=[p],y.flags|=16):x.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function s(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function a(y,p){return y=rs(y,p),y.index=0,y.sibling=null,y}function o(y,p,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<p?(y.flags|=2,p):x):(y.flags|=2,p)):(y.flags|=1048576,p)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function c(y,p,x,N){return p===null||p.tag!==6?(p=km(x,y.mode,N),p.return=y,p):(p=a(p,x),p.return=y,p)}function d(y,p,x,N){var S=x.type;return S===Ta?h(y,p,x.props.children,N,x.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&cv(S)===p.type)?(N=a(p,x.props),N.ref=yi(y,p,x),N.return=y,N):(N=Uc(x.type,x.key,x.props,null,y.mode,N),N.ref=yi(y,p,x),N.return=y,N)}function u(y,p,x,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=Em(x,y.mode,N),p.return=y,p):(p=a(p,x.children||[]),p.return=y,p)}function h(y,p,x,N,S){return p===null||p.tag!==7?(p=Xs(x,y.mode,N,S),p.return=y,p):(p=a(p,x),p.return=y,p)}function m(y,p,x){if(typeof p=="string"&&p!==""||typeof p=="number")return p=km(""+p,y.mode,x),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ll:return x=Uc(p.type,p.key,p.props,null,y.mode,x),x.ref=yi(y,null,p),x.return=y,x;case Pa:return p=Em(p,y.mode,x),p.return=y,p;case Lr:var N=p._init;return m(y,N(p._payload),x)}if(Qo(p)||qo(p))return p=Xs(p,y.mode,x,null),p.return=y,p;gc(y,p)}return null}function b(y,p,x,N){var S=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:c(y,p,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ll:return x.key===S?d(y,p,x,N):null;case Pa:return x.key===S?u(y,p,x,N):null;case Lr:return S=x._init,b(y,p,S(x._payload),N)}if(Qo(x)||qo(x))return S!==null?null:h(y,p,x,N,null);gc(y,x)}return null}function v(y,p,x,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(x)||null,c(p,y,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Ll:return y=y.get(N.key===null?x:N.key)||null,d(p,y,N,S);case Pa:return y=y.get(N.key===null?x:N.key)||null,u(p,y,N,S);case Lr:var C=N._init;return v(y,p,x,C(N._payload),S)}if(Qo(N)||qo(N))return y=y.get(x)||null,h(p,y,N,S,null);gc(p,N)}return null}function w(y,p,x,N){for(var S=null,C=null,E=p,k=p=0,R=null;E!==null&&k<x.length;k++){E.index>k?(R=E,E=null):R=E.sibling;var T=b(y,E,x[k],N);if(T===null){E===null&&(E=R);break}e&&E&&T.alternate===null&&t(y,E),p=o(T,p,k),C===null?S=T:C.sibling=T,C=T,E=R}if(k===x.length)return n(y,E),Ze&&Vs(y,k),S;if(E===null){for(;k<x.length;k++)E=m(y,x[k],N),E!==null&&(p=o(E,p,k),C===null?S=E:C.sibling=E,C=E);return Ze&&Vs(y,k),S}for(E=s(y,E);k<x.length;k++)R=v(E,y,k,x[k],N),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),p=o(R,p,k),C===null?S=R:C.sibling=R,C=R);return e&&E.forEach(function(O){return t(y,O)}),Ze&&Vs(y,k),S}function g(y,p,x,N){var S=qo(x);if(typeof S!="function")throw Error(Q(150));if(x=S.call(x),x==null)throw Error(Q(151));for(var C=S=null,E=p,k=p=0,R=null,T=x.next();E!==null&&!T.done;k++,T=x.next()){E.index>k?(R=E,E=null):R=E.sibling;var O=b(y,E,T.value,N);if(O===null){E===null&&(E=R);break}e&&E&&O.alternate===null&&t(y,E),p=o(O,p,k),C===null?S=O:C.sibling=O,C=O,E=R}if(T.done)return n(y,E),Ze&&Vs(y,k),S;if(E===null){for(;!T.done;k++,T=x.next())T=m(y,T.value,N),T!==null&&(p=o(T,p,k),C===null?S=T:C.sibling=T,C=T);return Ze&&Vs(y,k),S}for(E=s(y,E);!T.done;k++,T=x.next())T=v(E,y,k,T.value,N),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?k:T.key),p=o(T,p,k),C===null?S=T:C.sibling=T,C=T);return e&&E.forEach(function(F){return t(y,F)}),Ze&&Vs(y,k),S}function j(y,p,x,N){if(typeof x=="object"&&x!==null&&x.type===Ta&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ll:e:{for(var S=x.key,C=p;C!==null;){if(C.key===S){if(S=x.type,S===Ta){if(C.tag===7){n(y,C.sibling),p=a(C,x.props.children),p.return=y,y=p;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Lr&&cv(S)===C.type){n(y,C.sibling),p=a(C,x.props),p.ref=yi(y,C,x),p.return=y,y=p;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===Ta?(p=Xs(x.props.children,y.mode,N,x.key),p.return=y,y=p):(N=Uc(x.type,x.key,x.props,null,y.mode,N),N.ref=yi(y,p,x),N.return=y,y=N)}return i(y);case Pa:e:{for(C=x.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){n(y,p.sibling),p=a(p,x.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=Em(x,y.mode,N),p.return=y,y=p}return i(y);case Lr:return C=x._init,j(y,p,C(x._payload),N)}if(Qo(x))return w(y,p,x,N);if(qo(x))return g(y,p,x,N);gc(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(n(y,p.sibling),p=a(p,x),p.return=y,y=p):(n(y,p),p=km(x,y.mode,N),p.return=y,y=p),i(y)):n(y,p)}return j}var Ka=dv(!0),uv=dv(!1),vc=Kr(null),yc=null,Qa=null,Df=null;function Ff(){Df=Qa=yc=null}function Lf(e){var t=vc.current;Ge(vc),e._currentValue=t}function $f(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Ga(e,t){yc=e,Df=Qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zt=!0),e.firstContext=null)}function fn(e){var t=e._currentValue;if(Df!==e)if(e={context:e,memoizedValue:t,next:null},Qa===null){if(yc===null)throw Error(Q(308));Qa=e,yc.dependencies={lanes:0,firstContext:e}}else Qa=Qa.next=e;return t}var Hs=null;function zf(e){Hs===null?Hs=[e]:Hs.push(e)}function fv(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,zf(t)):(n.next=a.next,a.next=n),t.interleaved=n,gr(e,s)}function gr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yr=!1;function Uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Le&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,gr(e,n)}return a=s.interleaved,a===null?(t.next=t,zf(s)):(t.next=a.next,a.next=t),s.interleaved=t,gr(e,n)}function bc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ef(e,n)}}function hv(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jc(e,t,n,s){var a=e.updateQueue;Yr=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,u=d.next;d.next=null,i===null?o=u:i.next=u,i=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==i&&(c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=d))}if(o!==null){var m=a.baseState;i=0,h=u=d=null,c=o;do{var b=c.lane,v=c.eventTime;if((s&b)===b){h!==null&&(h=h.next={eventTime:v,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var w=e,g=c;switch(b=t,v=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){m=w.call(v,m,b);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,b=typeof w=="function"?w.call(v,m,b):w,b==null)break e;m=et({},m,b);break e;case 2:Yr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,b=a.effects,b===null?a.effects=[c]:b.push(c))}else v={eventTime:v,lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(u=h=v,d=m):h=h.next=v,i|=b;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;b=c,c=b.next,b.next=null,a.lastBaseUpdate=b,a.shared.pending=null}}while(!0);if(h===null&&(d=m),a.baseState=d,a.firstBaseUpdate=u,a.lastBaseUpdate=h,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Ks|=i,e.lanes=i,e.memoizedState=m}}function pv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(Q(191,a));a.call(s)}}}var bi={},Qn=Kr(bi),ji=Kr(bi),wi=Kr(bi);function Ws(e){if(e===bi)throw Error(Q(174));return e}function Bf(e,t){switch(qe(wi,t),qe(ji,e),qe(Qn,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bu(t,e)}Ge(Qn),qe(Qn,t)}function Ya(){Ge(Qn),Ge(ji),Ge(wi)}function xv(e){Ws(wi.current);var t=Ws(Qn.current),n=Bu(t,e.type);t!==n&&(qe(ji,e),qe(Qn,n))}function Vf(e){ji.current===e&&(Ge(Qn),Ge(ji))}var tt=Kr(0);function wc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hf=[];function Wf(){for(var e=0;e<Hf.length;e++)Hf[e]._workInProgressVersionPrimary=null;Hf.length=0}var Nc=fr.ReactCurrentDispatcher,qf=fr.ReactCurrentBatchConfig,qs=0,nt=null,ut=null,ht=null,Sc=!1,Ni=!1,Si=0,Wk=0;function kt(){throw Error(Q(321))}function Kf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sn(e[n],t[n]))return!1;return!0}function Qf(e,t,n,s,a,o){if(qs=o,nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Nc.current=e===null||e.memoizedState===null?Gk:Yk,e=n(s,a),Ni){o=0;do{if(Ni=!1,Si=0,25<=o)throw Error(Q(301));o+=1,ht=ut=null,t.updateQueue=null,Nc.current=Xk,e=n(s,a)}while(Ni)}if(Nc.current=Ec,t=ut!==null&&ut.next!==null,qs=0,ht=ut=nt=null,Sc=!1,t)throw Error(Q(300));return e}function Gf(){var e=Si!==0;return Si=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?nt.memoizedState=ht=e:ht=ht.next=e,ht}function mn(){if(ut===null){var e=nt.alternate;e=e!==null?e.memoizedState:null}else e=ut.next;var t=ht===null?nt.memoizedState:ht.next;if(t!==null)ht=t,ut=e;else{if(e===null)throw Error(Q(310));ut=e,e={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},ht===null?nt.memoizedState=ht=e:ht=ht.next=e}return ht}function Ci(e,t){return typeof t=="function"?t(e):t}function Yf(e){var t=mn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=ut,a=s.baseQueue,o=n.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}s.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,s=s.baseState;var c=i=null,d=null,u=o;do{var h=u.lane;if((qs&h)===h)d!==null&&(d=d.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var m={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};d===null?(c=d=m,i=s):d=d.next=m,nt.lanes|=h,Ks|=h}u=u.next}while(u!==null&&u!==o);d===null?i=s:d.next=c,Sn(s,t.memoizedState)||(zt=!0),t.memoizedState=s,t.baseState=i,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do o=a.lane,nt.lanes|=o,Ks|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xf(e){var t=mn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Sn(o,t.memoizedState)||(zt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function gv(){}function vv(e,t){var n=nt,s=mn(),a=t(),o=!Sn(s.memoizedState,a);if(o&&(s.memoizedState=a,zt=!0),s=s.queue,Zf(jv.bind(null,n,s,e),[e]),s.getSnapshot!==t||o||ht!==null&&ht.memoizedState.tag&1){if(n.flags|=2048,ki(9,bv.bind(null,n,s,a,t),void 0,null),pt===null)throw Error(Q(349));qs&30||yv(n,t,a)}return a}function yv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=nt.updateQueue,t===null?(t={lastEffect:null,stores:null},nt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function bv(e,t,n,s){t.value=n,t.getSnapshot=s,wv(t)&&Nv(e)}function jv(e,t,n){return n(function(){wv(t)&&Nv(e)})}function wv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sn(e,n)}catch(s){return!0}}function Nv(e){var t=gr(e,1);t!==null&&Pn(t,e,1,-1)}function Sv(e){var t=Gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},t.queue=e,e=e.dispatch=Qk.bind(null,nt,e),[t.memoizedState,e]}function ki(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=nt.updateQueue,t===null?(t={lastEffect:null,stores:null},nt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Cv(){return mn().memoizedState}function Cc(e,t,n,s){var a=Gn();nt.flags|=e,a.memoizedState=ki(1|t,n,void 0,s===void 0?null:s)}function kc(e,t,n,s){var a=mn();s=s===void 0?null:s;var o=void 0;if(ut!==null){var i=ut.memoizedState;if(o=i.destroy,s!==null&&Kf(s,i.deps)){a.memoizedState=ki(t,n,o,s);return}}nt.flags|=e,a.memoizedState=ki(1|t,n,o,s)}function kv(e,t){return Cc(8390656,8,e,t)}function Zf(e,t){return kc(2048,8,e,t)}function Ev(e,t){return kc(4,2,e,t)}function _v(e,t){return kc(4,4,e,t)}function Pv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Tv(e,t,n){return n=n!=null?n.concat([e]):null,kc(4,4,Pv.bind(null,t,e),n)}function Jf(){}function Rv(e,t){var n=mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Kf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Av(e,t){var n=mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Kf(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Ov(e,t,n){return qs&21?(Sn(n,t)||(n=cg(),nt.lanes|=n,Ks|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=n)}function qk(e,t){var n=Ue;Ue=n!==0&&4>n?n:4,e(!0);var s=qf.transition;qf.transition={};try{e(!1),t()}finally{Ue=n,qf.transition=s}}function Iv(){return mn().memoizedState}function Kk(e,t,n){var s=ts(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Mv(e))Dv(t,n);else if(n=fv(e,t,n,s),n!==null){var a=It();Pn(n,e,s,a),Fv(n,t,s)}}function Qk(e,t,n){var s=ts(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mv(e))Dv(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(a.hasEagerState=!0,a.eagerState=c,Sn(c,i)){var d=t.interleaved;d===null?(a.next=a,zf(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch(u){}finally{}n=fv(e,t,a,s),n!==null&&(a=It(),Pn(n,e,s,a),Fv(n,t,s))}}function Mv(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function Dv(e,t){Ni=Sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fv(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ef(e,n)}}var Ec={readContext:fn,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useInsertionEffect:kt,useLayoutEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useMutableSource:kt,useSyncExternalStore:kt,useId:kt,unstable_isNewReconciler:!1},Gk={readContext:fn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cc(4194308,4,Pv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cc(4,2,e,t)},useMemo:function(e,t){var n=Gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Gn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Kk.bind(null,nt,e),[s.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:Sv,useDebugValue:Jf,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=Sv(!1),t=e[0];return e=qk.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=nt,a=Gn();if(Ze){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),pt===null)throw Error(Q(349));qs&30||yv(s,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,kv(jv.bind(null,s,o,e),[e]),s.flags|=2048,ki(9,bv.bind(null,s,o,n,t),void 0,null),n},useId:function(){var e=Gn(),t=pt.identifierPrefix;if(Ze){var n=xr,s=pr;n=(s&~(1<<32-Nn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Si++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Wk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yk={readContext:fn,useCallback:Rv,useContext:fn,useEffect:Zf,useImperativeHandle:Tv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:Av,useReducer:Yf,useRef:Cv,useState:function(){return Yf(Ci)},useDebugValue:Jf,useDeferredValue:function(e){var t=mn();return Ov(t,ut.memoizedState,e)},useTransition:function(){var e=Yf(Ci)[0],t=mn().memoizedState;return[e,t]},useMutableSource:gv,useSyncExternalStore:vv,useId:Iv,unstable_isNewReconciler:!1},Xk={readContext:fn,useCallback:Rv,useContext:fn,useEffect:Zf,useImperativeHandle:Tv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:Av,useReducer:Xf,useRef:Cv,useState:function(){return Xf(Ci)},useDebugValue:Jf,useDeferredValue:function(e){var t=mn();return ut===null?t.memoizedState=e:Ov(t,ut.memoizedState,e)},useTransition:function(){var e=Xf(Ci)[0],t=mn().memoizedState;return[e,t]},useMutableSource:gv,useSyncExternalStore:vv,useId:Iv,unstable_isNewReconciler:!1};function kn(e,t){if(e&&e.defaultProps){t=et({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function em(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={isMounted:function(e){return(e=e._reactInternals)?$s(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=It(),a=ts(e),o=vr(s,a);o.payload=t,n!=null&&(o.callback=n),t=Xr(e,o,a),t!==null&&(Pn(t,e,a,s),bc(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=It(),a=ts(e),o=vr(s,a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Xr(e,o,a),t!==null&&(Pn(t,e,a,s),bc(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=It(),s=ts(e),a=vr(n,s);a.tag=2,t!=null&&(a.callback=t),t=Xr(e,a,s),t!==null&&(Pn(t,e,s,n),bc(t,e,s))}};function Lv(e,t,n,s,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,o,i):t.prototype&&t.prototype.isPureReactComponent?!fi(n,s)||!fi(a,o):!0}function $v(e,t,n){var s=!1,a=Qr,o=t.contextType;return typeof o=="object"&&o!==null?o=fn(o):(a=$t(t)?Us:Ct.current,s=t.contextTypes,o=(s=s!=null)?Va(e,a):Qr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_c,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function zv(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function tm(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Uf(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=fn(o):(o=$t(t)?Us:Ct.current,a.context=Va(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(em(e,t,o,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&_c.enqueueReplaceState(a,a.state,null),jc(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Xa(e,t){try{var n="",s=t;do n+=CC(s),s=s.return;while(s);var a=n}catch(o){a=` | |
| 39 | +`+a[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=c);break}}}finally{Tu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ko(e):""}function pC(e){switch(e.tag){case 5:return Ko(e.type);case 16:return Ko("Lazy");case 13:return Ko("Suspense");case 19:return Ko("SuspenseList");case 0:case 2:case 15:return e=Ru(e.type,!1),e;case 11:return e=Ru(e.type.render,!1),e;case 1:return e=Ru(e.type,!0),e;default:return""}}function Au(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ra:return"Fragment";case Ta:return"Portal";case Su:return"Profiler";case Nu:return"StrictMode";case ku:return"Suspense";case Eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _x:return(e.displayName||"Context")+".Consumer";case Ex:return(e._context.displayName||"Context")+".Provider";case Cu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _u:return t=e.displayName||null,t!==null?t:Au(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Au(e(t))}catch(n){}}return null}function xC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Au(t);case 8:return t===Nu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gC(e){var t=Rx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){s=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(i){s=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ll(e){e._valueTracker||(e._valueTracker=gC(e))}function Ax(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Rx(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function $l(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ou(e,t){var n=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Ox(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=zr(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ix(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function Iu(e,t){Ix(e,t);var n=zr(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mu(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Mu(e,t,n){(t!=="number"||$l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Aa(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+zr(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Du(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return Je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(Qo(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zr(n)}}function Fx(e,t){var n=zr(t.value),s=zr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Lx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $x(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$x(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zl,zx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zl=zl||document.createElement("div"),zl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vC=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){vC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Ux(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function Bx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=Ux(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var yC=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lu(e,t){if(t){if(yC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function $u(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zu=null;function Uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bu=null,Oa=null,Ia=null;function Vx(e){if(e=vi(e)){if(typeof Bu!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=cc(t),Bu(e.stateNode,e.type,t))}}function qx(e){Oa?Ia?Ia.push(e):Ia=[e]:Oa=e}function Hx(){if(Oa){var e=Oa,t=Ia;if(Ia=Oa=null,Vx(e),t)for(e=0;e<t.length;e++)Vx(t[e])}}function Wx(e,t){return e(t)}function Kx(){}var Vu=!1;function Qx(e,t,n){if(Vu)return e(t,n);Vu=!0;try{return Wx(e,t,n)}finally{Vu=!1,(Oa!==null||Ia!==null)&&(Kx(),Hx())}}function Xo(e,t){var n=e.stateNode;if(n===null)return null;var s=cc(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Q(231,t,typeof n));return n}var qu=!1;if(fr)try{var Zo={};Object.defineProperty(Zo,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Zo,Zo),window.removeEventListener("test",Zo,Zo)}catch(e){qu=!1}function bC(e,t,n,s,a,o,i,c,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Jo=!1,Ul=null,Bl=!1,Hu=null,jC={onError:function(e){Jo=!0,Ul=e}};function wC(e,t,n,s,a,o,i,c,d){Jo=!1,Ul=null,bC.apply(jC,arguments)}function NC(e,t,n,s,a,o,i,c,d){if(wC.apply(this,arguments),Jo){if(Jo){var u=Ul;Jo=!1,Ul=null}else throw Error(Q(198));Bl||(Bl=!0,Hu=u)}}function $s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Gx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Yx(e){if($s(e)!==e)throw Error(Q(188))}function SC(e){var t=e.alternate;if(!t){if(t=$s(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Yx(a),e;if(o===s)return Yx(a),t;o=o.sibling}throw Error(Q(188))}if(n.return!==s.return)n=a,s=o;else{for(var i=!1,c=a.child;c;){if(c===n){i=!0,n=a,s=o;break}if(c===s){i=!0,s=a,n=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===n){i=!0,n=o,s=a;break}if(c===s){i=!0,s=o,n=a;break}c=c.sibling}if(!i)throw Error(Q(189))}}if(n.alternate!==s)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function Xx(e){return e=SC(e),e!==null?Zx(e):null}function Zx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zx(e);if(t!==null)return t;e=e.sibling}return null}var Jx=Kt.unstable_scheduleCallback,eg=Kt.unstable_cancelCallback,CC=Kt.unstable_shouldYield,kC=Kt.unstable_requestPaint,it=Kt.unstable_now,EC=Kt.unstable_getCurrentPriorityLevel,Wu=Kt.unstable_ImmediatePriority,tg=Kt.unstable_UserBlockingPriority,Vl=Kt.unstable_NormalPriority,_C=Kt.unstable_LowPriority,ng=Kt.unstable_IdlePriority,ql=null,qn=null;function PC(e){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(ql,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Nn=Math.clz32?Math.clz32:AC,TC=Math.log,RC=Math.LN2;function AC(e){return e>>>=0,e===0?32:31-(TC(e)/RC|0)|0}var Hl=64,Wl=4194304;function ei(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~a;c!==0?s=ei(c):(o&=i,o!==0&&(s=ei(o)))}else i=n&~a,i!==0?s=ei(i):o!==0&&(s=ei(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Nn(t),a=1<<n,s|=e[n],t&=~a;return s}function OC(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function IC(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Nn(o),c=1<<i,d=a[i];d===-1?(!(c&n)||c&s)&&(a[i]=OC(c,t)):d<=t&&(e.expiredLanes|=c),o&=~c}}function Ku(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rg(){var e=Hl;return Hl<<=1,!(Hl&4194240)&&(Hl=64),e}function Qu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ti(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nn(t),e[t]=n}function MC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Nn(n),o=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~o}}function Gu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Nn(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var ze=0;function sg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ag,Yu,og,ig,lg,Xu=!1,Ql=[],Ur=null,Br=null,Vr=null,ni=new Map,ri=new Map,qr=[],DC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function cg(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function si(e,t,n,s,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[a]},t!==null&&(t=vi(t),t!==null&&Yu(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function FC(e,t,n,s,a){switch(t){case"focusin":return Ur=si(Ur,e,t,n,s,a),!0;case"dragenter":return Br=si(Br,e,t,n,s,a),!0;case"mouseover":return Vr=si(Vr,e,t,n,s,a),!0;case"pointerover":var o=a.pointerId;return ni.set(o,si(ni.get(o)||null,e,t,n,s,a)),!0;case"gotpointercapture":return o=a.pointerId,ri.set(o,si(ri.get(o)||null,e,t,n,s,a)),!0}return!1}function dg(e){var t=zs(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=Gx(n),t!==null){e.blockedOn=t,lg(e.priority,function(){og(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ju(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);zu=s,n.target.dispatchEvent(s),zu=null}else return t=vi(n),t!==null&&Yu(t),e.blockedOn=n,!1;t.shift()}return!0}function ug(e,t,n){Gl(e)&&n.delete(t)}function LC(){Xu=!1,Ur!==null&&Gl(Ur)&&(Ur=null),Br!==null&&Gl(Br)&&(Br=null),Vr!==null&&Gl(Vr)&&(Vr=null),ni.forEach(ug),ri.forEach(ug)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,LC)))}function oi(e){function t(a){return ai(a,e)}if(0<Ql.length){ai(Ql[0],e);for(var n=1;n<Ql.length;n++){var s=Ql[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Ur!==null&&ai(Ur,e),Br!==null&&ai(Br,e),Vr!==null&&ai(Vr,e),ni.forEach(t),ri.forEach(t),n=0;n<qr.length;n++)s=qr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<qr.length&&(n=qr[0],n.blockedOn===null);)dg(n),n.blockedOn===null&&qr.shift()}var Ma=mr.ReactCurrentBatchConfig,Yl=!0;function $C(e,t,n,s){var a=ze,o=Ma.transition;Ma.transition=null;try{ze=1,Zu(e,t,n,s)}finally{ze=a,Ma.transition=o}}function zC(e,t,n,s){var a=ze,o=Ma.transition;Ma.transition=null;try{ze=4,Zu(e,t,n,s)}finally{ze=a,Ma.transition=o}}function Zu(e,t,n,s){if(Yl){var a=Ju(e,t,n,s);if(a===null)gf(e,t,s,Xl,n),cg(e,s);else if(FC(a,e,t,n,s))s.stopPropagation();else if(cg(e,s),t&4&&-1<DC.indexOf(e)){for(;a!==null;){var o=vi(a);if(o!==null&&ag(o),o=Ju(e,t,n,s),o===null&&gf(e,t,s,Xl,n),o===a)break;a=o}a!==null&&s.stopPropagation()}else gf(e,t,s,null,n)}}var Xl=null;function Ju(e,t,n,s){if(Xl=null,e=Uu(s),e=zs(e),e!==null)if(t=$s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Gx(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xl=e,null}function fg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(EC()){case Wu:return 1;case tg:return 4;case Vl:case _C:return 16;case ng:return 536870912;default:return 16}default:return 16}}var Hr=null,ef=null,Zl=null;function mg(){if(Zl)return Zl;var e,t=ef,n=t.length,s,a="value"in Hr?Hr.value:Hr.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(s=1;s<=i&&t[n-s]===a[o-s];s++);return Zl=a.slice(e,1<s?1-s:void 0)}function Jl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ec(){return!0}function hg(){return!1}function Qt(e){function t(n,s,a,o,i){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ec:hg,this.isPropagationStopped=hg,this}return Je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ec)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ec)},persist:function(){},isPersistent:ec}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tf=Qt(Da),ii=Je({},Da,{view:0,detail:0}),UC=Qt(ii),nf,rf,li,tc=Je({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:af,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==li&&(li&&e.type==="mousemove"?(nf=e.screenX-li.screenX,rf=e.screenY-li.screenY):rf=nf=0,li=e),nf)},movementY:function(e){return"movementY"in e?e.movementY:rf}}),pg=Qt(tc),BC=Je({},tc,{dataTransfer:0}),VC=Qt(BC),qC=Je({},ii,{relatedTarget:0}),sf=Qt(qC),HC=Je({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),WC=Qt(HC),KC=Je({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QC=Qt(KC),GC=Je({},Da,{data:0}),xg=Qt(GC),YC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZC[e])?!!t[e]:!1}function af(){return JC}var ek=Je({},ii,{key:function(e){if(e.key){var t=YC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?XC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:af,charCode:function(e){return e.type==="keypress"?Jl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tk=Qt(ek),nk=Je({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gg=Qt(nk),rk=Je({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:af}),sk=Qt(rk),ak=Je({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),ok=Qt(ak),ik=Je({},tc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lk=Qt(ik),ck=[9,13,27,32],of=fr&&"CompositionEvent"in window,ci=null;fr&&"documentMode"in document&&(ci=document.documentMode);var dk=fr&&"TextEvent"in window&&!ci,vg=fr&&(!of||ci&&8<ci&&11>=ci),yg=" ",bg=!1;function jg(e,t){switch(e){case"keyup":return ck.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function uk(e,t){switch(e){case"compositionend":return wg(t);case"keypress":return t.which!==32?null:(bg=!0,yg);case"textInput":return e=t.data,e===yg&&bg?null:e;default:return null}}function fk(e,t){if(Fa)return e==="compositionend"||!of&&jg(e,t)?(e=mg(),Zl=ef=Hr=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vg&&t.locale!=="ko"?null:t.data;default:return null}}var mk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ng(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mk[e.type]:t==="textarea"}function Sg(e,t,n,s){qx(s),t=oc(t,"onChange"),0<t.length&&(n=new tf("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var di=null,ui=null;function hk(e){Bg(e,0)}function nc(e){var t=Ba(e);if(Ax(t))return e}function pk(e,t){if(e==="change")return t}var Cg=!1;if(fr){var lf;if(fr){var cf="oninput"in document;if(!cf){var kg=document.createElement("div");kg.setAttribute("oninput","return;"),cf=typeof kg.oninput=="function"}lf=cf}else lf=!1;Cg=lf&&(!document.documentMode||9<document.documentMode)}function Eg(){di&&(di.detachEvent("onpropertychange",_g),ui=di=null)}function _g(e){if(e.propertyName==="value"&&nc(ui)){var t=[];Sg(t,ui,e,Uu(e)),Qx(hk,t)}}function xk(e,t,n){e==="focusin"?(Eg(),di=t,ui=n,di.attachEvent("onpropertychange",_g)):e==="focusout"&&Eg()}function gk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nc(ui)}function vk(e,t){if(e==="click")return nc(t)}function yk(e,t){if(e==="input"||e==="change")return nc(t)}function bk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sn=typeof Object.is=="function"?Object.is:bk;function fi(e,t){if(Sn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!yu.call(t,a)||!Sn(e[a],t[a]))return!1}return!0}function Pg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tg(e,t){var n=Pg(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pg(n)}}function Rg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ag(){for(var e=window,t=$l();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(s){n=!1}if(n)e=t.contentWindow;else break;t=$l(e.document)}return t}function df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jk(e){var t=Ag(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rg(n.ownerDocument.documentElement,n)){if(s!==null&&df(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(s.start,a);s=s.end===void 0?o:Math.min(s.end,a),!e.extend&&o>s&&(a=s,s=o,o=a),a=Tg(n,o);var i=Tg(n,s);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wk=fr&&"documentMode"in document&&11>=document.documentMode,La=null,uf=null,mi=null,ff=!1;function Og(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ff||La==null||La!==$l(s)||(s=La,"selectionStart"in s&&df(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),mi&&fi(mi,s)||(mi=s,s=oc(uf,"onSelect"),0<s.length&&(t=new tf("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=La)))}function rc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $a={animationend:rc("Animation","AnimationEnd"),animationiteration:rc("Animation","AnimationIteration"),animationstart:rc("Animation","AnimationStart"),transitionend:rc("Transition","TransitionEnd")},mf={},Ig={};fr&&(Ig=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function sc(e){if(mf[e])return mf[e];if(!$a[e])return e;var t=$a[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ig)return mf[e]=t[n];return e}var Mg=sc("animationend"),Dg=sc("animationiteration"),Fg=sc("animationstart"),Lg=sc("transitionend"),$g=new Map,zg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wr(e,t){$g.set(e,t),Ls(t,[e])}for(var hf=0;hf<zg.length;hf++){var pf=zg[hf],Nk=pf.toLowerCase(),Sk=pf[0].toUpperCase()+pf.slice(1);Wr(Nk,"on"+Sk)}Wr(Mg,"onAnimationEnd"),Wr(Dg,"onAnimationIteration"),Wr(Fg,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Lg,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),Ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ls("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ck=new Set("cancel close invalid load scroll toggle".split(" ").concat(hi));function Ug(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,NC(s,t,void 0,e),e.currentTarget=null}function Bg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var o=void 0;if(t)for(var i=s.length-1;0<=i;i--){var c=s[i],d=c.instance,u=c.currentTarget;if(c=c.listener,d!==o&&a.isPropagationStopped())break e;Ug(a,c,u),o=d}else for(i=0;i<s.length;i++){if(c=s[i],d=c.instance,u=c.currentTarget,c=c.listener,d!==o&&a.isPropagationStopped())break e;Ug(a,c,u),o=d}}}if(Bl)throw e=Hu,Bl=!1,Hu=null,e}function We(e,t){var n=t[Nf];n===void 0&&(n=t[Nf]=new Set);var s=e+"__bubble";n.has(s)||(Vg(t,e,2,!1),n.add(s))}function xf(e,t,n){var s=0;t&&(s|=4),Vg(n,e,s,t)}var ac="_reactListening"+Math.random().toString(36).slice(2);function pi(e){if(!e[ac]){e[ac]=!0,Sx.forEach(function(n){n!=="selectionchange"&&(Ck.has(n)||xf(n,!1,e),xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ac]||(t[ac]=!0,xf("selectionchange",!1,t))}}function Vg(e,t,n,s){switch(fg(t)){case 1:var a=$C;break;case 4:a=zC;break;default:a=Zu}n=a.bind(null,t,n,e),a=void 0,!qu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function gf(e,t,n,s,a){var o=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var i=s.tag;if(i===3||i===4){var c=s.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(i===4)for(i=s.return;i!==null;){var d=i.tag;if((d===3||d===4)&&(d=i.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;i=i.return}for(;c!==null;){if(i=zs(c),i===null)return;if(d=i.tag,d===5||d===6){s=o=i;continue e}c=c.parentNode}}s=s.return}Qx(function(){var u=o,h=Uu(n),m=[];e:{var v=$g.get(e);if(v!==void 0){var x=tf,j=e;switch(e){case"keypress":if(Jl(n)===0)break e;case"keydown":case"keyup":x=tk;break;case"focusin":j="focus",x=sf;break;case"focusout":j="blur",x=sf;break;case"beforeblur":case"afterblur":x=sf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=pg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=VC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=sk;break;case Mg:case Dg:case Fg:x=WC;break;case Lg:x=ok;break;case"scroll":x=UC;break;case"wheel":x=lk;break;case"copy":case"cut":case"paste":x=QC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=gg}var b=(t&4)!==0,w=!b&&e==="scroll",y=b?v!==null?v+"Capture":null:v;b=[];for(var p=u,g;p!==null;){g=p;var N=g.stateNode;if(g.tag===5&&N!==null&&(g=N,y!==null&&(N=Xo(p,y),N!=null&&b.push(xi(p,N,g)))),w)break;p=p.return}0<b.length&&(v=new x(v,j,null,n,h),m.push({event:v,listeners:b}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",v&&n!==zu&&(j=n.relatedTarget||n.fromElement)&&(zs(j)||j[hr]))break e;if((x||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,x?(j=n.relatedTarget||n.toElement,x=u,j=j?zs(j):null,j!==null&&(w=$s(j),j!==w||j.tag!==5&&j.tag!==6)&&(j=null)):(x=null,j=u),x!==j)){if(b=pg,N="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(b=gg,N="onPointerLeave",y="onPointerEnter",p="pointer"),w=x==null?v:Ba(x),g=j==null?v:Ba(j),v=new b(N,p+"leave",x,n,h),v.target=w,v.relatedTarget=g,N=null,zs(h)===u&&(b=new b(y,p+"enter",j,n,h),b.target=g,b.relatedTarget=w,N=b),w=N,x&&j)t:{for(b=x,y=j,p=0,g=b;g;g=za(g))p++;for(g=0,N=y;N;N=za(N))g++;for(;0<p-g;)b=za(b),p--;for(;0<g-p;)y=za(y),g--;for(;p--;){if(b===y||y!==null&&b===y.alternate)break t;b=za(b),y=za(y)}b=null}else b=null;x!==null&&qg(m,v,x,b,!1),j!==null&&w!==null&&qg(m,w,j,b,!0)}}e:{if(v=u?Ba(u):window,x=v.nodeName&&v.nodeName.toLowerCase(),x==="select"||x==="input"&&v.type==="file")var S=pk;else if(Ng(v))if(Cg)S=yk;else{S=gk;var k=xk}else(x=v.nodeName)&&x.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(S=vk);if(S&&(S=S(e,u))){Sg(m,S,n,h);break e}k&&k(e,v,u),e==="focusout"&&(k=v._wrapperState)&&k.controlled&&v.type==="number"&&Mu(v,"number",v.value)}switch(k=u?Ba(u):window,e){case"focusin":(Ng(k)||k.contentEditable==="true")&&(La=k,uf=u,mi=null);break;case"focusout":mi=uf=La=null;break;case"mousedown":ff=!0;break;case"contextmenu":case"mouseup":case"dragend":ff=!1,Og(m,n,h);break;case"selectionchange":if(wk)break;case"keydown":case"keyup":Og(m,n,h)}var _;if(of)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Fa?jg(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(vg&&n.locale!=="ko"&&(Fa||C!=="onCompositionStart"?C==="onCompositionEnd"&&Fa&&(_=mg()):(Hr=h,ef="value"in Hr?Hr.value:Hr.textContent,Fa=!0)),k=oc(u,C),0<k.length&&(C=new xg(C,e,null,n,h),m.push({event:C,listeners:k}),_?C.data=_:(_=wg(n),_!==null&&(C.data=_)))),(_=dk?uk(e,n):fk(e,n))&&(u=oc(u,"onBeforeInput"),0<u.length&&(h=new xg("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=_))}Bg(m,t)})}function xi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oc(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Xo(e,n),o!=null&&s.unshift(xi(e,o,a)),o=Xo(e,t),o!=null&&s.push(xi(e,o,a))),e=e.return}return s}function za(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qg(e,t,n,s,a){for(var o=t._reactName,i=[];n!==null&&n!==s;){var c=n,d=c.alternate,u=c.stateNode;if(d!==null&&d===s)break;c.tag===5&&u!==null&&(c=u,a?(d=Xo(n,o),d!=null&&i.unshift(xi(n,d,c))):a||(d=Xo(n,o),d!=null&&i.push(xi(n,d,c)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var kk=/\r\n?/g,Ek=/\u0000|\uFFFD/g;function Hg(e){return(typeof e=="string"?e:""+e).replace(kk,` | |
| 40 | +`).replace(Ek,"")}function ic(e,t,n){if(t=Hg(t),Hg(e)!==t&&n)throw Error(Q(425))}function lc(){}var vf=null,yf=null;function bf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jf=typeof setTimeout=="function"?setTimeout:void 0,_k=typeof clearTimeout=="function"?clearTimeout:void 0,Wg=typeof Promise=="function"?Promise:void 0,Pk=typeof queueMicrotask=="function"?queueMicrotask:typeof Wg!="undefined"?function(e){return Wg.resolve(null).then(e).catch(Tk)}:jf;function Tk(e){setTimeout(function(){throw e})}function wf(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),oi(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);oi(t)}function Kr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ua=Math.random().toString(36).slice(2),Hn="__reactFiber$"+Ua,gi="__reactProps$"+Ua,hr="__reactContainer$"+Ua,Nf="__reactEvents$"+Ua,Rk="__reactListeners$"+Ua,Ak="__reactHandles$"+Ua;function zs(e){var t=e[Hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hr]||n[Hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kg(e);e!==null;){if(n=e[Hn])return n;e=Kg(e)}return t}e=n,n=e.parentNode}return null}function vi(e){return e=e[Hn]||e[hr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ba(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function cc(e){return e[gi]||null}var Sf=[],Va=-1;function Qr(e){return{current:e}}function Ke(e){0>Va||(e.current=Sf[Va],Sf[Va]=null,Va--)}function Ve(e,t){Va++,Sf[Va]=e.current,e.current=t}var Gr={},jt=Qr(Gr),Lt=Qr(!1),Us=Gr;function qa(e,t){var n=e.type.contextTypes;if(!n)return Gr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function $t(e){return e=e.childContextTypes,e!=null}function dc(){Ke(Lt),Ke(jt)}function Qg(e,t,n){if(jt.current!==Gr)throw Error(Q(168));Ve(jt,t),Ve(Lt,n)}function Gg(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(Q(108,xC(e)||"Unknown",a));return Je({},n,s)}function uc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gr,Us=jt.current,Ve(jt,e),Ve(Lt,Lt.current),!0}function Yg(e,t,n){var s=e.stateNode;if(!s)throw Error(Q(169));n?(e=Gg(e,t,Us),s.__reactInternalMemoizedMergedChildContext=e,Ke(Lt),Ke(jt),Ve(jt,e)):Ke(Lt),Ve(Lt,n)}var pr=null,fc=!1,Cf=!1;function Xg(e){pr===null?pr=[e]:pr.push(e)}function Ok(e){fc=!0,Xg(e)}function Yr(){if(!Cf&&pr!==null){Cf=!0;var e=0,t=ze;try{var n=pr;for(ze=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}pr=null,fc=!1}catch(a){throw pr!==null&&(pr=pr.slice(e+1)),Jx(Wu,Yr),a}finally{ze=t,Cf=!1}}return null}var Ha=[],Wa=0,mc=null,hc=0,cn=[],dn=0,Bs=null,xr=1,gr="";function Vs(e,t){Ha[Wa++]=hc,Ha[Wa++]=mc,mc=e,hc=t}function Zg(e,t,n){cn[dn++]=xr,cn[dn++]=gr,cn[dn++]=Bs,Bs=e;var s=xr;e=gr;var a=32-Nn(s)-1;s&=~(1<<a),n+=1;var o=32-Nn(t)+a;if(30<o){var i=a-a%5;o=(s&(1<<i)-1).toString(32),s>>=i,a-=i,xr=1<<32-Nn(t)+a|n<<a|s,gr=o+e}else xr=1<<o|n<<a|s,gr=e}function kf(e){e.return!==null&&(Vs(e,1),Zg(e,1,0))}function Ef(e){for(;e===mc;)mc=Ha[--Wa],Ha[Wa]=null,hc=Ha[--Wa],Ha[Wa]=null;for(;e===Bs;)Bs=cn[--dn],cn[dn]=null,gr=cn[--dn],cn[dn]=null,xr=cn[--dn],cn[dn]=null}var Gt=null,Yt=null,Ye=!1,Cn=null;function Jg(e,t){var n=hn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ev(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Gt=e,Yt=Kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gt=e,Yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Bs!==null?{id:xr,overflow:gr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Gt=e,Yt=null,!0):!1;default:return!1}}function _f(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pf(e){if(Ye){var t=Yt;if(t){var n=t;if(!ev(e,t)){if(_f(e))throw Error(Q(418));t=Kr(n.nextSibling);var s=Gt;t&&ev(e,t)?Jg(s,n):(e.flags=e.flags&-4097|2,Ye=!1,Gt=e)}}else{if(_f(e))throw Error(Q(418));e.flags=e.flags&-4097|2,Ye=!1,Gt=e}}}function tv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function pc(e){if(e!==Gt)return!1;if(!Ye)return tv(e),Ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bf(e.type,e.memoizedProps)),t&&(t=Yt)){if(_f(e))throw nv(),Error(Q(418));for(;t;)Jg(e,t),t=Kr(t.nextSibling)}if(tv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Yt=Kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Yt=null}}else Yt=Gt?Kr(e.stateNode.nextSibling):null;return!0}function nv(){for(var e=Yt;e;)e=Kr(e.nextSibling)}function Ka(){Yt=Gt=null,Ye=!1}function Tf(e){Cn===null?Cn=[e]:Cn.push(e)}var Ik=mr.ReactCurrentBatchConfig;function yi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Q(309));var s=n.stateNode}if(!s)throw Error(Q(147,e));var a=s,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var c=a.refs;i===null?delete c[o]:c[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function xc(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rv(e){var t=e._init;return t(e._payload)}function sv(e){function t(y,p){if(e){var g=y.deletions;g===null?(y.deletions=[p],y.flags|=16):g.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function s(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function a(y,p){return y=ss(y,p),y.index=0,y.sibling=null,y}function o(y,p,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<p?(y.flags|=2,p):g):(y.flags|=2,p)):(y.flags|=1048576,p)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function c(y,p,g,N){return p===null||p.tag!==6?(p=jm(g,y.mode,N),p.return=y,p):(p=a(p,g),p.return=y,p)}function d(y,p,g,N){var S=g.type;return S===Ra?h(y,p,g.props.children,N,g.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&rv(S)===p.type)?(N=a(p,g.props),N.ref=yi(y,p,g),N.return=y,N):(N=zc(g.type,g.key,g.props,null,y.mode,N),N.ref=yi(y,p,g),N.return=y,N)}function u(y,p,g,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=wm(g,y.mode,N),p.return=y,p):(p=a(p,g.children||[]),p.return=y,p)}function h(y,p,g,N,S){return p===null||p.tag!==7?(p=Xs(g,y.mode,N,S),p.return=y,p):(p=a(p,g),p.return=y,p)}function m(y,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=jm(""+p,y.mode,g),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Fl:return g=zc(p.type,p.key,p.props,null,y.mode,g),g.ref=yi(y,null,p),g.return=y,g;case Ta:return p=wm(p,y.mode,g),p.return=y,p;case $r:var N=p._init;return m(y,N(p._payload),g)}if(Qo(p)||Wo(p))return p=Xs(p,y.mode,g,null),p.return=y,p;xc(y,p)}return null}function v(y,p,g,N){var S=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:c(y,p,""+g,N);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fl:return g.key===S?d(y,p,g,N):null;case Ta:return g.key===S?u(y,p,g,N):null;case $r:return S=g._init,v(y,p,S(g._payload),N)}if(Qo(g)||Wo(g))return S!==null?null:h(y,p,g,N,null);xc(y,g)}return null}function x(y,p,g,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(g)||null,c(p,y,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Fl:return y=y.get(N.key===null?g:N.key)||null,d(p,y,N,S);case Ta:return y=y.get(N.key===null?g:N.key)||null,u(p,y,N,S);case $r:var k=N._init;return x(y,p,g,k(N._payload),S)}if(Qo(N)||Wo(N))return y=y.get(g)||null,h(p,y,N,S,null);xc(p,N)}return null}function j(y,p,g,N){for(var S=null,k=null,_=p,C=p=0,R=null;_!==null&&C<g.length;C++){_.index>C?(R=_,_=null):R=_.sibling;var T=v(y,_,g[C],N);if(T===null){_===null&&(_=R);break}e&&_&&T.alternate===null&&t(y,_),p=o(T,p,C),k===null?S=T:k.sibling=T,k=T,_=R}if(C===g.length)return n(y,_),Ye&&Vs(y,C),S;if(_===null){for(;C<g.length;C++)_=m(y,g[C],N),_!==null&&(p=o(_,p,C),k===null?S=_:k.sibling=_,k=_);return Ye&&Vs(y,C),S}for(_=s(y,_);C<g.length;C++)R=x(_,y,C,g[C],N),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?C:R.key),p=o(R,p,C),k===null?S=R:k.sibling=R,k=R);return e&&_.forEach(function(O){return t(y,O)}),Ye&&Vs(y,C),S}function b(y,p,g,N){var S=Wo(g);if(typeof S!="function")throw Error(Q(150));if(g=S.call(g),g==null)throw Error(Q(151));for(var k=S=null,_=p,C=p=0,R=null,T=g.next();_!==null&&!T.done;C++,T=g.next()){_.index>C?(R=_,_=null):R=_.sibling;var O=v(y,_,T.value,N);if(O===null){_===null&&(_=R);break}e&&_&&O.alternate===null&&t(y,_),p=o(O,p,C),k===null?S=O:k.sibling=O,k=O,_=R}if(T.done)return n(y,_),Ye&&Vs(y,C),S;if(_===null){for(;!T.done;C++,T=g.next())T=m(y,T.value,N),T!==null&&(p=o(T,p,C),k===null?S=T:k.sibling=T,k=T);return Ye&&Vs(y,C),S}for(_=s(y,_);!T.done;C++,T=g.next())T=x(_,y,C,T.value,N),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?C:T.key),p=o(T,p,C),k===null?S=T:k.sibling=T,k=T);return e&&_.forEach(function(D){return t(y,D)}),Ye&&Vs(y,C),S}function w(y,p,g,N){if(typeof g=="object"&&g!==null&&g.type===Ra&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Fl:e:{for(var S=g.key,k=p;k!==null;){if(k.key===S){if(S=g.type,S===Ra){if(k.tag===7){n(y,k.sibling),p=a(k,g.props.children),p.return=y,y=p;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&rv(S)===k.type){n(y,k.sibling),p=a(k,g.props),p.ref=yi(y,k,g),p.return=y,y=p;break e}n(y,k);break}else t(y,k);k=k.sibling}g.type===Ra?(p=Xs(g.props.children,y.mode,N,g.key),p.return=y,y=p):(N=zc(g.type,g.key,g.props,null,y.mode,N),N.ref=yi(y,p,g),N.return=y,y=N)}return i(y);case Ta:e:{for(k=g.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(y,p.sibling),p=a(p,g.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=wm(g,y.mode,N),p.return=y,y=p}return i(y);case $r:return k=g._init,w(y,p,k(g._payload),N)}if(Qo(g))return j(y,p,g,N);if(Wo(g))return b(y,p,g,N);xc(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(y,p.sibling),p=a(p,g),p.return=y,y=p):(n(y,p),p=jm(g,y.mode,N),p.return=y,y=p),i(y)):n(y,p)}return w}var Qa=sv(!0),av=sv(!1),gc=Qr(null),vc=null,Ga=null,Rf=null;function Af(){Rf=Ga=vc=null}function Of(e){var t=gc.current;Ke(gc),e._currentValue=t}function If(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Ya(e,t){vc=e,Rf=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zt=!0),e.firstContext=null)}function un(e){var t=e._currentValue;if(Rf!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(vc===null)throw Error(Q(308));Ga=e,vc.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var qs=null;function Mf(e){qs===null?qs=[e]:qs.push(e)}function ov(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,Mf(t)):(n.next=a.next,a.next=n),t.interleaved=n,vr(e,s)}function vr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xr=!1;function Df(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Fe&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,vr(e,n)}return a=s.interleaved,a===null?(t.next=t,Mf(s)):(t.next=a.next,a.next=t),s.interleaved=t,vr(e,n)}function yc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Gu(e,n)}}function lv(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bc(e,t,n,s){var a=e.updateQueue;Xr=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,u=d.next;d.next=null,i===null?o=u:i.next=u,i=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==i&&(c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=d))}if(o!==null){var m=a.baseState;i=0,h=u=d=null,c=o;do{var v=c.lane,x=c.eventTime;if((s&v)===v){h!==null&&(h=h.next={eventTime:x,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var j=e,b=c;switch(v=t,x=n,b.tag){case 1:if(j=b.payload,typeof j=="function"){m=j.call(x,m,v);break e}m=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=b.payload,v=typeof j=="function"?j.call(x,m,v):j,v==null)break e;m=Je({},m,v);break e;case 2:Xr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[c]:v.push(c))}else x={eventTime:x,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(u=h=x,d=m):h=h.next=x,i|=v;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;v=c,c=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);if(h===null&&(d=m),a.baseState=d,a.firstBaseUpdate=u,a.lastBaseUpdate=h,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Ks|=i,e.lanes=i,e.memoizedState=m}}function cv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(Q(191,a));a.call(s)}}}var bi={},Wn=Qr(bi),ji=Qr(bi),wi=Qr(bi);function Hs(e){if(e===bi)throw Error(Q(174));return e}function Ff(e,t){switch(Ve(wi,t),Ve(ji,e),Ve(Wn,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fu(t,e)}Ke(Wn),Ve(Wn,t)}function Xa(){Ke(Wn),Ke(ji),Ke(wi)}function dv(e){Hs(wi.current);var t=Hs(Wn.current),n=Fu(t,e.type);t!==n&&(Ve(ji,e),Ve(Wn,n))}function Lf(e){ji.current===e&&(Ke(Wn),Ke(ji))}var et=Qr(0);function jc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $f=[];function zf(){for(var e=0;e<$f.length;e++)$f[e]._workInProgressVersionPrimary=null;$f.length=0}var wc=mr.ReactCurrentDispatcher,Uf=mr.ReactCurrentBatchConfig,Ws=0,tt=null,ct=null,ft=null,Nc=!1,Ni=!1,Si=0,Mk=0;function wt(){throw Error(Q(321))}function Bf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sn(e[n],t[n]))return!1;return!0}function Vf(e,t,n,s,a,o){if(Ws=o,tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wc.current=e===null||e.memoizedState===null?$k:zk,e=n(s,a),Ni){o=0;do{if(Ni=!1,Si=0,25<=o)throw Error(Q(301));o+=1,ft=ct=null,t.updateQueue=null,wc.current=Uk,e=n(s,a)}while(Ni)}if(wc.current=kc,t=ct!==null&&ct.next!==null,Ws=0,ft=ct=tt=null,Nc=!1,t)throw Error(Q(300));return e}function qf(){var e=Si!==0;return Si=0,e}function Kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?tt.memoizedState=ft=e:ft=ft.next=e,ft}function fn(){if(ct===null){var e=tt.alternate;e=e!==null?e.memoizedState:null}else e=ct.next;var t=ft===null?tt.memoizedState:ft.next;if(t!==null)ft=t,ct=e;else{if(e===null)throw Error(Q(310));ct=e,e={memoizedState:ct.memoizedState,baseState:ct.baseState,baseQueue:ct.baseQueue,queue:ct.queue,next:null},ft===null?tt.memoizedState=ft=e:ft=ft.next=e}return ft}function Ci(e,t){return typeof t=="function"?t(e):t}function Hf(e){var t=fn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=ct,a=s.baseQueue,o=n.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}s.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,s=s.baseState;var c=i=null,d=null,u=o;do{var h=u.lane;if((Ws&h)===h)d!==null&&(d=d.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var m={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};d===null?(c=d=m,i=s):d=d.next=m,tt.lanes|=h,Ks|=h}u=u.next}while(u!==null&&u!==o);d===null?i=s:d.next=c,Sn(s,t.memoizedState)||(zt=!0),t.memoizedState=s,t.baseState=i,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do o=a.lane,tt.lanes|=o,Ks|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wf(e){var t=fn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Sn(o,t.memoizedState)||(zt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function uv(){}function fv(e,t){var n=tt,s=fn(),a=t(),o=!Sn(s.memoizedState,a);if(o&&(s.memoizedState=a,zt=!0),s=s.queue,Kf(pv.bind(null,n,s,e),[e]),s.getSnapshot!==t||o||ft!==null&&ft.memoizedState.tag&1){if(n.flags|=2048,ki(9,hv.bind(null,n,s,a,t),void 0,null),mt===null)throw Error(Q(349));Ws&30||mv(n,t,a)}return a}function mv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=tt.updateQueue,t===null?(t={lastEffect:null,stores:null},tt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hv(e,t,n,s){t.value=n,t.getSnapshot=s,xv(t)&&gv(e)}function pv(e,t,n){return n(function(){xv(t)&&gv(e)})}function xv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sn(e,n)}catch(s){return!0}}function gv(e){var t=vr(e,1);t!==null&&Pn(t,e,1,-1)}function vv(e){var t=Kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:e},t.queue=e,e=e.dispatch=Lk.bind(null,tt,e),[t.memoizedState,e]}function ki(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=tt.updateQueue,t===null?(t={lastEffect:null,stores:null},tt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function yv(){return fn().memoizedState}function Sc(e,t,n,s){var a=Kn();tt.flags|=e,a.memoizedState=ki(1|t,n,void 0,s===void 0?null:s)}function Cc(e,t,n,s){var a=fn();s=s===void 0?null:s;var o=void 0;if(ct!==null){var i=ct.memoizedState;if(o=i.destroy,s!==null&&Bf(s,i.deps)){a.memoizedState=ki(t,n,o,s);return}}tt.flags|=e,a.memoizedState=ki(1|t,n,o,s)}function bv(e,t){return Sc(8390656,8,e,t)}function Kf(e,t){return Cc(2048,8,e,t)}function jv(e,t){return Cc(4,2,e,t)}function wv(e,t){return Cc(4,4,e,t)}function Nv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sv(e,t,n){return n=n!=null?n.concat([e]):null,Cc(4,4,Nv.bind(null,t,e),n)}function Qf(){}function Cv(e,t){var n=fn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Bf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function kv(e,t){var n=fn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Bf(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Ev(e,t,n){return Ws&21?(Sn(n,t)||(n=rg(),tt.lanes|=n,Ks|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=n)}function Dk(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var s=Uf.transition;Uf.transition={};try{e(!1),t()}finally{ze=n,Uf.transition=s}}function _v(){return fn().memoizedState}function Fk(e,t,n){var s=ns(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Pv(e))Tv(t,n);else if(n=ov(e,t,n,s),n!==null){var a=At();Pn(n,e,s,a),Rv(n,t,s)}}function Lk(e,t,n){var s=ns(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pv(e))Tv(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(a.hasEagerState=!0,a.eagerState=c,Sn(c,i)){var d=t.interleaved;d===null?(a.next=a,Mf(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch(u){}finally{}n=ov(e,t,a,s),n!==null&&(a=At(),Pn(n,e,s,a),Rv(n,t,s))}}function Pv(e){var t=e.alternate;return e===tt||t!==null&&t===tt}function Tv(e,t){Ni=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rv(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Gu(e,n)}}var kc={readContext:un,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},$k={readContext:un,useCallback:function(e,t){return Kn().memoizedState=[e,t===void 0?null:t],e},useContext:un,useEffect:bv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sc(4194308,4,Nv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sc(4,2,e,t)},useMemo:function(e,t){var n=Kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Kn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Fk.bind(null,tt,e),[s.memoizedState,e]},useRef:function(e){var t=Kn();return e={current:e},t.memoizedState=e},useState:vv,useDebugValue:Qf,useDeferredValue:function(e){return Kn().memoizedState=e},useTransition:function(){var e=vv(!1),t=e[0];return e=Dk.bind(null,e[1]),Kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=tt,a=Kn();if(Ye){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),mt===null)throw Error(Q(349));Ws&30||mv(s,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,bv(pv.bind(null,s,o,e),[e]),s.flags|=2048,ki(9,hv.bind(null,s,o,n,t),void 0,null),n},useId:function(){var e=Kn(),t=mt.identifierPrefix;if(Ye){var n=gr,s=xr;n=(s&~(1<<32-Nn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Si++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Mk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zk={readContext:un,useCallback:Cv,useContext:un,useEffect:Kf,useImperativeHandle:Sv,useInsertionEffect:jv,useLayoutEffect:wv,useMemo:kv,useReducer:Hf,useRef:yv,useState:function(){return Hf(Ci)},useDebugValue:Qf,useDeferredValue:function(e){var t=fn();return Ev(t,ct.memoizedState,e)},useTransition:function(){var e=Hf(Ci)[0],t=fn().memoizedState;return[e,t]},useMutableSource:uv,useSyncExternalStore:fv,useId:_v,unstable_isNewReconciler:!1},Uk={readContext:un,useCallback:Cv,useContext:un,useEffect:Kf,useImperativeHandle:Sv,useInsertionEffect:jv,useLayoutEffect:wv,useMemo:kv,useReducer:Wf,useRef:yv,useState:function(){return Wf(Ci)},useDebugValue:Qf,useDeferredValue:function(e){var t=fn();return ct===null?t.memoizedState=e:Ev(t,ct.memoizedState,e)},useTransition:function(){var e=Wf(Ci)[0],t=fn().memoizedState;return[e,t]},useMutableSource:uv,useSyncExternalStore:fv,useId:_v,unstable_isNewReconciler:!1};function kn(e,t){if(e&&e.defaultProps){t=Je({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gf(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ec={isMounted:function(e){return(e=e._reactInternals)?$s(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=At(),a=ns(e),o=yr(s,a);o.payload=t,n!=null&&(o.callback=n),t=Zr(e,o,a),t!==null&&(Pn(t,e,a,s),yc(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=At(),a=ns(e),o=yr(s,a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Zr(e,o,a),t!==null&&(Pn(t,e,a,s),yc(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),s=ns(e),a=yr(n,s);a.tag=2,t!=null&&(a.callback=t),t=Zr(e,a,s),t!==null&&(Pn(t,e,s,n),yc(t,e,s))}};function Av(e,t,n,s,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,o,i):t.prototype&&t.prototype.isPureReactComponent?!fi(n,s)||!fi(a,o):!0}function Ov(e,t,n){var s=!1,a=Gr,o=t.contextType;return typeof o=="object"&&o!==null?o=un(o):(a=$t(t)?Us:jt.current,s=t.contextTypes,o=(s=s!=null)?qa(e,a):Gr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ec,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Iv(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function Yf(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Df(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=un(o):(o=$t(t)?Us:jt.current,a.context=qa(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Gf(e,t,o,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Ec.enqueueReplaceState(a,a.state,null),bc(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Za(e,t){try{var n="",s=t;do n+=pC(s),s=s.return;while(s);var a=n}catch(o){a=` | |
| 41 | 41 | Error generating stack: `+o.message+` |
| 42 | -`+o.stack}return{value:e,source:t,stack:a,digest:null}}function nm(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function rm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zk=typeof WeakMap=="function"?WeakMap:Map;function Uv(e,t,n){n=vr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Mc||(Mc=!0,vm=s),rm(e,t)},n}function Bv(e,t,n){n=vr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){rm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){rm(e,t),typeof s!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Vv(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Zk;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=f2.bind(null,e,t,n),t.then(e,e))}function Hv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wv(e,t,n,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vr(-1,1),t.tag=2,Xr(n,t,1))),n.lanes|=1),e)}var Jk=fr.ReactCurrentOwner,zt=!1;function Ot(e,t,n,s){t.child=e===null?uv(t,null,n,s):Ka(t,e.child,n,s)}function qv(e,t,n,s,a){n=n.render;var o=t.ref;return Ga(t,a),s=Qf(e,t,n,s,o,a),n=Gf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,yr(e,t,a)):(Ze&&n&&Rf(t),t.flags|=1,Ot(e,t,s,a),t.child)}function Kv(e,t,n,s,a){if(e===null){var o=n.type;return typeof o=="function"&&!Cm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Qv(e,t,o,s,a)):(e=Uc(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:fi,n(i,s)&&e.ref===t.ref)return yr(e,t,a)}return t.flags|=1,e=rs(o,s),e.ref=t.ref,e.return=t,t.child=e}function Qv(e,t,n,s,a){if(e!==null){var o=e.memoizedProps;if(fi(o,s)&&e.ref===t.ref)if(zt=!1,t.pendingProps=s=o,(e.lanes&a)!==0)e.flags&131072&&(zt=!0);else return t.lanes=e.lanes,yr(e,t,a)}return sm(e,t,n,s,a)}function Gv(e,t,n){var s=t.pendingProps,a=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Ja,Zt),Zt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qe(Ja,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=o!==null?o.baseLanes:n,qe(Ja,Zt),Zt|=s}else o!==null?(s=o.baseLanes|n,t.memoizedState=null):s=n,qe(Ja,Zt),Zt|=s;return Ot(e,t,a,n),t.child}function Yv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sm(e,t,n,s,a){var o=$t(n)?Us:Ct.current;return o=Va(t,o),Ga(t,a),n=Qf(e,t,n,s,o,a),s=Gf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,yr(e,t,a)):(Ze&&s&&Rf(t),t.flags|=1,Ot(e,t,n,a),t.child)}function Xv(e,t,n,s,a){if($t(n)){var o=!0;fc(t)}else o=!1;if(Ga(t,a),t.stateNode===null)Tc(e,t),$v(t,n,s),tm(t,n,s,a),s=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var d=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=fn(u):(u=$t(n)?Us:Ct.current,u=Va(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==s||d!==u)&&zv(t,i,s,u),Yr=!1;var b=t.memoizedState;i.state=b,jc(t,s,i,a),d=t.memoizedState,c!==s||b!==d||Lt.current||Yr?(typeof h=="function"&&(em(t,n,h,s),d=t.memoizedState),(c=Yr||Lv(t,n,c,s,b,d,u))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),i.props=s,i.state=d,i.context=u,s=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{i=t.stateNode,mv(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:kn(t.type,c),i.props=u,m=t.pendingProps,b=i.context,d=n.contextType,typeof d=="object"&&d!==null?d=fn(d):(d=$t(n)?Us:Ct.current,d=Va(t,d));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==m||b!==d)&&zv(t,i,s,d),Yr=!1,b=t.memoizedState,i.state=b,jc(t,s,i,a);var w=t.memoizedState;c!==m||b!==w||Lt.current||Yr?(typeof v=="function"&&(em(t,n,v,s),w=t.memoizedState),(u=Yr||Lv(t,n,u,s,b,w,d)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(s,w,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(s,w,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=w),i.props=s,i.state=w,i.context=d,s=u):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),s=!1)}return am(e,t,n,s,o,a)}function am(e,t,n,s,a,o){Yv(e,t);var i=(t.flags&128)!==0;if(!s&&!i)return a&&nv(t,n,!1),yr(e,t,o);s=t.stateNode,Jk.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&i?(t.child=Ka(t,e.child,null,o),t.child=Ka(t,null,c,o)):Ot(e,t,c,o),t.memoizedState=s.state,a&&nv(t,n,!0),t.child}function Zv(e){var t=e.stateNode;t.pendingContext?ev(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ev(e,t.context,!1),Bf(e,t.containerInfo)}function Jv(e,t,n,s,a){return qa(),Mf(a),t.flags|=256,Ot(e,t,n,s),t.child}var om={dehydrated:null,treeContext:null,retryLane:0};function im(e){return{baseLanes:e,cachePool:null,transitions:null}}function ey(e,t,n){var s=t.pendingProps,a=tt.current,o=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),qe(tt,a&1),e===null)return If(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=s.children,e=s.fallback,o?(s=t.mode,o=t.child,i={mode:"hidden",children:i},!(s&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Bc(i,s,0,null),e=Xs(e,s,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=im(n),t.memoizedState=om,e):lm(t,i));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return e2(e,t,i,s,c,a,n);if(o){o=s.fallback,i=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:s.children};return!(i&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=rs(a,d),s.subtreeFlags=a.subtreeFlags&14680064),c!==null?o=rs(c,o):(o=Xs(o,i,n,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,i=e.child.memoizedState,i=i===null?im(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=om,s}return o=e.child,e=o.sibling,s=rs(o,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function lm(e,t){return t=Bc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pc(e,t,n,s){return s!==null&&Mf(s),Ka(t,e.child,null,n),e=lm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e2(e,t,n,s,a,o,i){if(n)return t.flags&256?(t.flags&=-257,s=nm(Error(Q(422))),Pc(e,t,i,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=s.fallback,a=t.mode,s=Bc({mode:"visible",children:s.children},a,0,null),o=Xs(o,a,i,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,t.mode&1&&Ka(t,e.child,null,i),t.child.memoizedState=im(i),t.memoizedState=om,o);if(!(t.mode&1))return Pc(e,t,i,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;return s=c,o=Error(Q(419)),s=nm(o,s,void 0),Pc(e,t,i,s)}if(c=(i&e.childLanes)!==0,zt||c){if(s=pt,s!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,gr(e,a),Pn(s,e,a,-1))}return Sm(),s=nm(Error(Q(421))),Pc(e,t,i,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=m2.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Xt=qr(a.nextSibling),Yt=t,Ze=!0,Cn=null,e!==null&&(dn[un++]=pr,dn[un++]=xr,dn[un++]=Bs,pr=e.id,xr=e.overflow,Bs=t),t=lm(t,s.children),t.flags|=4096,t)}function ty(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),$f(e.return,t,n)}function cm(e,t,n,s,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=a)}function ny(e,t,n){var s=t.pendingProps,a=s.revealOrder,o=s.tail;if(Ot(e,t,s.children,n),s=tt.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ty(e,n,t);else if(e.tag===19)ty(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(qe(tt,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&wc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),cm(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&wc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}cm(t,!0,n,null,o);break;case"together":cm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ks|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=rs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t2(e,t,n){switch(t.tag){case 3:Zv(t),qa();break;case 5:xv(t);break;case 1:$t(t.type)&&fc(t);break;case 4:Bf(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;qe(vc,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(qe(tt,tt.current&1),t.flags|=128,null):n&t.child.childLanes?ey(e,t,n):(qe(tt,tt.current&1),e=yr(e,t,n),e!==null?e.sibling:null);qe(tt,tt.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return ny(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),qe(tt,tt.current),s)break;return null;case 22:case 23:return t.lanes=0,Gv(e,t,n)}return yr(e,t,n)}var ry,dm,sy,ay;ry=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},dm=function(){},sy=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Ws(Qn.current);var o=null;switch(n){case"input":a=Lu(e,a),s=Lu(e,s),o=[];break;case"select":a=et({},a,{value:void 0}),s=et({},s,{value:void 0}),o=[];break;case"textarea":a=Uu(e,a),s=Uu(e,s),o=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=cc)}Vu(n,s);var i;n=null;for(u in a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var c=a[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Wo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in s){var d=s[u];if(c=a!=null?a[u]:void 0,s.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))if(u==="style")if(c){for(i in c)!c.hasOwnProperty(i)||d&&d.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in d)d.hasOwnProperty(i)&&c[i]!==d[i]&&(n||(n={}),n[i]=d[i])}else n||(o||(o=[]),o.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(o=o||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Wo.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&Qe("scroll",e),o||c===d||(o=[])):(o=o||[]).push(u,d))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ay=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ei(e,t){if(!Ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function n2(e,t,n){var s=t.pendingProps;switch(Af(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return $t(t.type)&&uc(),Et(t),null;case 3:return s=t.stateNode,Ya(),Ge(Lt),Ge(Ct),Wf(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(xc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cn!==null&&(jm(Cn),Cn=null))),dm(e,t),Et(t),null;case 5:Vf(t);var a=Ws(wi.current);if(n=t.type,e!==null&&t.stateNode!=null)sy(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(Q(166));return Et(t),null}if(e=Ws(Qn.current),xc(t)){s=t.stateNode,n=t.type;var o=t.memoizedProps;switch(s[Kn]=t,s[gi]=o,e=(t.mode&1)!==0,n){case"dialog":Qe("cancel",s),Qe("close",s);break;case"iframe":case"object":case"embed":Qe("load",s);break;case"video":case"audio":for(a=0;a<hi.length;a++)Qe(hi[a],s);break;case"source":Qe("error",s);break;case"img":case"image":case"link":Qe("error",s),Qe("load",s);break;case"details":Qe("toggle",s);break;case"input":$x(s,o),Qe("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},Qe("invalid",s);break;case"textarea":Bx(s,o),Qe("invalid",s)}Vu(n,o),a=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?s.textContent!==c&&(o.suppressHydrationWarning!==!0&&lc(s.textContent,c,e),a=["children",c]):typeof c=="number"&&s.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&lc(s.textContent,c,e),a=["children",""+c]):Wo.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&Qe("scroll",s)}switch(n){case"input":$l(s),Ux(s,o,!0);break;case"textarea":$l(s),Hx(s);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(s.onclick=cc)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{i=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=i.createElement(n,{is:s.is}):(e=i.createElement(n),n==="select"&&(i=e,s.multiple?i.multiple=!0:s.size&&(i.size=s.size))):e=i.createElementNS(e,n),e[Kn]=t,e[gi]=s,ry(e,t,!1,!1),t.stateNode=e;e:{switch(i=Hu(n,s),n){case"dialog":Qe("cancel",e),Qe("close",e),a=s;break;case"iframe":case"object":case"embed":Qe("load",e),a=s;break;case"video":case"audio":for(a=0;a<hi.length;a++)Qe(hi[a],e);a=s;break;case"source":Qe("error",e),a=s;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),a=s;break;case"details":Qe("toggle",e),a=s;break;case"input":$x(e,s),a=Lu(e,s),Qe("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=et({},s,{value:void 0}),Qe("invalid",e);break;case"textarea":Bx(e,s),a=Uu(e,s),Qe("invalid",e);break;default:a=s}Vu(n,a),c=a;for(o in c)if(c.hasOwnProperty(o)){var d=c[o];o==="style"?Qx(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&qx(e,d)):o==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Go(e,d):typeof d=="number"&&Go(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Wo.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Qe("scroll",e):d!=null&&Eu(e,o,d,i))}switch(n){case"input":$l(e),Ux(e,s,!1);break;case"textarea":$l(e),Hx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+$r(s.value));break;case"select":e.multiple=!!s.multiple,o=s.value,o!=null?Ra(e,!!s.multiple,o,!1):s.defaultValue!=null&&Ra(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=cc)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Et(t),null;case 6:if(e&&t.stateNode!=null)ay(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(Q(166));if(n=Ws(wi.current),Ws(Qn.current),xc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Kn]=t,(o=s.nodeValue!==n)&&(e=Yt,e!==null))switch(e.tag){case 3:lc(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lc(s.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Kn]=t,t.stateNode=s}return Et(t),null;case 13:if(Ge(tt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ze&&Xt!==null&&t.mode&1&&!(t.flags&128))lv(),qa(),t.flags|=98560,o=!1;else if(o=xc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(Q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Kn]=t}else qa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Et(t),o=!1}else Cn!==null&&(jm(Cn),Cn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||tt.current&1?ft===0&&(ft=3):Sm())),t.updateQueue!==null&&(t.flags|=4),Et(t),null);case 4:return Ya(),dm(e,t),e===null&&pi(t.stateNode.containerInfo),Et(t),null;case 10:return Lf(t.type._context),Et(t),null;case 17:return $t(t.type)&&uc(),Et(t),null;case 19:if(Ge(tt),o=t.memoizedState,o===null)return Et(t),null;if(s=(t.flags&128)!==0,i=o.rendering,i===null)if(s)Ei(o,!1);else{if(ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=wc(e),i!==null){for(t.flags|=128,Ei(o,!1),s=i.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)o=n,e=s,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return qe(tt,tt.current&1|2),t.child}e=e.sibling}o.tail!==null&<()>eo&&(t.flags|=128,s=!0,Ei(o,!1),t.lanes=4194304)}else{if(!s)if(e=wc(i),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ze)return Et(t),null}else 2*lt()-o.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,s=!0,Ei(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=lt(),t.sibling=null,n=tt.current,qe(tt,s?n&1|2:n&1),t):(Et(t),null);case 22:case 23:return Nm(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Zt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function r2(e,t){switch(Af(t),t.tag){case 1:return $t(t.type)&&uc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(),Ge(Lt),Ge(Ct),Wf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vf(t),null;case 13:if(Ge(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(tt),null;case 4:return Ya(),null;case 10:return Lf(t.type._context),null;case 22:case 23:return Nm(),null;case 24:return null;default:return null}}var Rc=!1,_t=!1,s2=typeof WeakSet=="function"?WeakSet:Set,de=null;function Za(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){st(e,t,s)}else n.current=null}function um(e,t,n){try{n()}catch(s){st(e,t,s)}}var oy=!1;function a2(e,t){if(Nf=Xl,e=Lg(),pf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch(N){n=null;break e}var i=0,c=-1,d=-1,u=0,h=0,m=e,b=null;t:for(;;){for(var v;m!==n||a!==0&&m.nodeType!==3||(c=i+a),m!==o||s!==0&&m.nodeType!==3||(d=i+s),m.nodeType===3&&(i+=m.nodeValue.length),(v=m.firstChild)!==null;)b=m,m=v;for(;;){if(m===e)break t;if(b===n&&++u===a&&(c=i),b===o&&++h===s&&(d=i),(v=m.nextSibling)!==null)break;m=b,b=m.parentNode}m=v}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sf={focusedElem:e,selectionRange:n},Xl=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,j=w.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:kn(t.type,g),j);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(N){st(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return w=oy,oy=!1,w}function _i(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&um(t,n,o)}a=a.next}while(a!==s)}}function Ac(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function fm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function iy(e){var t=e.alternate;t!==null&&(e.alternate=null,iy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kn],delete t[gi],delete t[_f],delete t[Uk],delete t[Bk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ly(e){return e.tag===5||e.tag===3||e.tag===4}function cy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ly(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mm(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cc));else if(s!==4&&(e=e.child,e!==null))for(mm(e,t,n),e=e.sibling;e!==null;)mm(e,t,n),e=e.sibling}function hm(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(hm(e,t,n),e=e.sibling;e!==null;)hm(e,t,n),e=e.sibling}var bt=null,En=!1;function Zr(e,t,n){for(n=n.child;n!==null;)dy(e,t,n),n=n.sibling}function dy(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Wl,n)}catch(c){}switch(n.tag){case 5:_t||Za(n,t);case 6:var s=bt,a=En;bt=null,Zr(e,t,n),bt=s,En=a,bt!==null&&(En?(e=bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):bt.removeChild(n.stateNode));break;case 18:bt!==null&&(En?(e=bt,n=n.stateNode,e.nodeType===8?Ef(e.parentNode,n):e.nodeType===1&&Ef(e,n),oi(e)):Ef(bt,n.stateNode));break;case 4:s=bt,a=En,bt=n.stateNode.containerInfo,En=!0,Zr(e,t,n),bt=s,En=a;break;case 0:case 11:case 14:case 15:if(!_t&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&um(n,t,i),a=a.next}while(a!==s)}Zr(e,t,n);break;case 1:if(!_t&&(Za(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(c){st(n,t,c)}Zr(e,t,n);break;case 21:Zr(e,t,n);break;case 22:n.mode&1?(_t=(s=_t)||n.memoizedState!==null,Zr(e,t,n),_t=s):Zr(e,t,n);break;default:Zr(e,t,n)}}function uy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new s2),t.forEach(function(s){var a=h2.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function _n(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:bt=c.stateNode,En=!1;break e;case 3:bt=c.stateNode.containerInfo,En=!0;break e;case 4:bt=c.stateNode.containerInfo,En=!0;break e}c=c.return}if(bt===null)throw Error(Q(160));dy(o,i,a),bt=null,En=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(u){st(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fy(t,e),t=t.sibling}function fy(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_n(t,e),Yn(e),s&4){try{_i(3,e,e.return),Ac(3,e)}catch(g){st(e,e.return,g)}try{_i(5,e,e.return)}catch(g){st(e,e.return,g)}}break;case 1:_n(t,e),Yn(e),s&512&&n!==null&&Za(n,n.return);break;case 5:if(_n(t,e),Yn(e),s&512&&n!==null&&Za(n,n.return),e.flags&32){var a=e.stateNode;try{Go(a,"")}catch(g){st(e,e.return,g)}}if(s&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&zx(a,o),Hu(c,i);var u=Hu(c,o);for(i=0;i<d.length;i+=2){var h=d[i],m=d[i+1];h==="style"?Qx(a,m):h==="dangerouslySetInnerHTML"?qx(a,m):h==="children"?Go(a,m):Eu(a,h,m,u)}switch(c){case"input":$u(a,o);break;case"textarea":Vx(a,o);break;case"select":var b=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ra(a,!!o.multiple,v,!1):b!==!!o.multiple&&(o.defaultValue!=null?Ra(a,!!o.multiple,o.defaultValue,!0):Ra(a,!!o.multiple,o.multiple?[]:"",!1))}a[gi]=o}catch(g){st(e,e.return,g)}}break;case 6:if(_n(t,e),Yn(e),s&4){if(e.stateNode===null)throw Error(Q(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(g){st(e,e.return,g)}}break;case 3:if(_n(t,e),Yn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{oi(t.containerInfo)}catch(g){st(e,e.return,g)}break;case 4:_n(t,e),Yn(e);break;case 13:_n(t,e),Yn(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(gm=lt())),s&4&&uy(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(_t=(u=_t)||h,_n(t,e),_t=u):_n(t,e),Yn(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(de=e,h=e.child;h!==null;){for(m=de=h;de!==null;){switch(b=de,v=b.child,b.tag){case 0:case 11:case 14:case 15:_i(4,b,b.return);break;case 1:Za(b,b.return);var w=b.stateNode;if(typeof w.componentWillUnmount=="function"){s=b,n=b.return;try{t=s,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){st(s,n,g)}}break;case 5:Za(b,b.return);break;case 22:if(b.memoizedState!==null){py(m);continue}}v!==null?(v.return=b,de=v):py(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{a=m.stateNode,u?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=m.stateNode,d=m.memoizedProps.style,i=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=Kx("display",i))}catch(g){st(e,e.return,g)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(g){st(e,e.return,g)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:_n(t,e),Yn(e),s&4&&uy(e);break;case 21:break;default:_n(t,e),Yn(e)}}function Yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ly(n)){var s=n;break e}n=n.return}throw Error(Q(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Go(a,""),s.flags&=-33);var o=cy(e);hm(e,o,a);break;case 3:case 4:var i=s.stateNode.containerInfo,c=cy(e);mm(e,c,i);break;default:throw Error(Q(161))}}catch(d){st(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function o2(e,t,n){de=e,my(e)}function my(e,t,n){for(var s=(e.mode&1)!==0;de!==null;){var a=de,o=a.child;if(a.tag===22&&s){var i=a.memoizedState!==null||Rc;if(!i){var c=a.alternate,d=c!==null&&c.memoizedState!==null||_t;c=Rc;var u=_t;if(Rc=i,(_t=d)&&!u)for(de=a;de!==null;)i=de,d=i.child,i.tag===22&&i.memoizedState!==null?xy(a):d!==null?(d.return=i,de=d):xy(a);for(;o!==null;)de=o,my(o),o=o.sibling;de=a,Rc=c,_t=u}hy(e)}else a.subtreeFlags&8772&&o!==null?(o.return=a,de=o):hy(e)}}function hy(e){for(;de!==null;){var t=de;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_t||Ac(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!_t)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:kn(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&pv(t,o,s);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pv(t,i,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&oi(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}_t||t.flags&512&&fm(t)}catch(b){st(t,t.return,b)}}if(t===e){de=null;break}if(n=t.sibling,n!==null){n.return=t.return,de=n;break}de=t.return}}function py(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var n=t.sibling;if(n!==null){n.return=t.return,de=n;break}de=t.return}}function xy(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ac(4,t)}catch(d){st(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(d){st(t,a,d)}}var o=t.return;try{fm(t)}catch(d){st(t,o,d)}break;case 5:var i=t.return;try{fm(t)}catch(d){st(t,i,d)}}}catch(d){st(t,t.return,d)}if(t===e){de=null;break}var c=t.sibling;if(c!==null){c.return=t.return,de=c;break}de=t.return}}var i2=Math.ceil,Oc=fr.ReactCurrentDispatcher,pm=fr.ReactCurrentOwner,hn=fr.ReactCurrentBatchConfig,Le=0,pt=null,ct=null,jt=0,Zt=0,Ja=Kr(0),ft=0,Pi=null,Ks=0,Ic=0,xm=0,Ti=null,Ut=null,gm=0,eo=1/0,br=null,Mc=!1,vm=null,Jr=null,Dc=!1,es=null,Fc=0,Ri=0,ym=null,Lc=-1,$c=0;function It(){return Le&6?lt():Lc!==-1?Lc:Lc=lt()}function ts(e){return e.mode&1?Le&2&&jt!==0?jt&-jt:Hk.transition!==null?($c===0&&($c=cg()),$c):(e=Ue,e!==0||(e=window.event,e=e===void 0?16:vg(e.type)),e):1}function Pn(e,t,n,s){if(50<Ri)throw Ri=0,ym=null,Error(Q(185));ti(e,n,s),(!(Le&2)||e!==pt)&&(e===pt&&(!(Le&2)&&(Ic|=n),ft===4&&ns(e,jt)),Bt(e,s),n===1&&Le===0&&!(t.mode&1)&&(eo=lt()+500,mc&&Gr()))}function Bt(e,t){var n=e.callbackNode;HC(e,t);var s=Ql(e,e===pt?jt:0);if(s===0)n!==null&&og(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&og(n),t===1)e.tag===0?Vk(vy.bind(null,e)):rv(vy.bind(null,e)),$k(function(){!(Le&6)&&Gr()}),n=null;else{switch(dg(s)){case 1:n=Xu;break;case 4:n=ig;break;case 16:n=Hl;break;case 536870912:n=lg;break;default:n=Hl}n=ky(n,gy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gy(e,t){if(Lc=-1,$c=0,Le&6)throw Error(Q(327));var n=e.callbackNode;if(to()&&e.callbackNode!==n)return null;var s=Ql(e,e===pt?jt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=zc(e,s);else{t=s;var a=Le;Le|=2;var o=by();(pt!==e||jt!==t)&&(br=null,eo=lt()+500,Gs(e,t));do try{d2();break}catch(c){yy(e,c)}while(!0);Ff(),Oc.current=o,Le=a,ct!==null?t=0:(pt=null,jt=0,t=ft)}if(t!==0){if(t===2&&(a=Zu(e),a!==0&&(s=a,t=bm(e,a))),t===1)throw n=Pi,Gs(e,0),ns(e,s),Bt(e,lt()),n;if(t===6)ns(e,s);else{if(a=e.current.alternate,!(s&30)&&!l2(a)&&(t=zc(e,s),t===2&&(o=Zu(e),o!==0&&(s=o,t=bm(e,o))),t===1))throw n=Pi,Gs(e,0),ns(e,s),Bt(e,lt()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(Q(345));case 2:Ys(e,Ut,br);break;case 3:if(ns(e,s),(s&130023424)===s&&(t=gm+500-lt(),10<t)){if(Ql(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){It(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=kf(Ys.bind(null,e,Ut,br),t);break}Ys(e,Ut,br);break;case 4:if(ns(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var i=31-Nn(s);o=1<<i,i=t[i],i>a&&(a=i),s&=~o}if(s=a,s=lt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*i2(s/1960))-s,10<s){e.timeoutHandle=kf(Ys.bind(null,e,Ut,br),s);break}Ys(e,Ut,br);break;case 5:Ys(e,Ut,br);break;default:throw Error(Q(329))}}}return Bt(e,lt()),e.callbackNode===n?gy.bind(null,e):null}function bm(e,t){var n=Ti;return e.current.memoizedState.isDehydrated&&(Gs(e,t).flags|=256),e=zc(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&jm(t)),e}function jm(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function l2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],o=a.getSnapshot;a=a.value;try{if(!Sn(o(),a))return!1}catch(i){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ns(e,t){for(t&=~xm,t&=~Ic,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nn(t),s=1<<n;e[n]=-1,t&=~s}}function vy(e){if(Le&6)throw Error(Q(327));to();var t=Ql(e,0);if(!(t&1))return Bt(e,lt()),null;var n=zc(e,t);if(e.tag!==0&&n===2){var s=Zu(e);s!==0&&(t=s,n=bm(e,s))}if(n===1)throw n=Pi,Gs(e,0),ns(e,t),Bt(e,lt()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ys(e,Ut,br),Bt(e,lt()),null}function wm(e,t){var n=Le;Le|=1;try{return e(t)}finally{Le=n,Le===0&&(eo=lt()+500,mc&&Gr())}}function Qs(e){es!==null&&es.tag===0&&!(Le&6)&&to();var t=Le;Le|=1;var n=hn.transition,s=Ue;try{if(hn.transition=null,Ue=1,e)return e()}finally{Ue=s,hn.transition=n,Le=t,!(Le&6)&&Gr()}}function Nm(){Zt=Ja.current,Ge(Ja)}function Gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Lk(n)),ct!==null)for(n=ct.return;n!==null;){var s=n;switch(Af(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&uc();break;case 3:Ya(),Ge(Lt),Ge(Ct),Wf();break;case 5:Vf(s);break;case 4:Ya();break;case 13:Ge(tt);break;case 19:Ge(tt);break;case 10:Lf(s.type._context);break;case 22:case 23:Nm()}n=n.return}if(pt=e,ct=e=rs(e.current,null),jt=Zt=t,ft=0,Pi=null,xm=Ic=Ks=0,Ut=Ti=null,Hs!==null){for(t=0;t<Hs.length;t++)if(n=Hs[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,o=n.pending;if(o!==null){var i=o.next;o.next=a,s.next=i}n.pending=s}Hs=null}return e}function yy(e,t){do{var n=ct;try{if(Ff(),Nc.current=Ec,Sc){for(var s=nt.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Sc=!1}if(qs=0,ht=ut=nt=null,Ni=!1,Si=0,pm.current=null,n===null||n.return===null){ft=1,Pi=t,ct=null;break}e:{var o=e,i=n.return,c=n,d=t;if(t=jt,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,h=c,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var b=h.alternate;b?(h.updateQueue=b.updateQueue,h.memoizedState=b.memoizedState,h.lanes=b.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Hv(i);if(v!==null){v.flags&=-257,Wv(v,i,c,o,t),v.mode&1&&Vv(o,u,t),t=v,d=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(d),t.updateQueue=g}else w.add(d);break e}else{if(!(t&1)){Vv(o,u,t),Sm();break e}d=Error(Q(426))}}else if(Ze&&c.mode&1){var j=Hv(i);if(j!==null){!(j.flags&65536)&&(j.flags|=256),Wv(j,i,c,o,t),Mf(Xa(d,c));break e}}o=d=Xa(d,c),ft!==4&&(ft=2),Ti===null?Ti=[o]:Ti.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Uv(o,d,t);hv(o,y);break e;case 1:c=d;var p=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Jr===null||!Jr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=Bv(o,c,t);hv(o,N);break e}}o=o.return}while(o!==null)}wy(n)}catch(S){t=S,ct===n&&n!==null&&(ct=n=n.return);continue}break}while(!0)}function by(){var e=Oc.current;return Oc.current=Ec,e===null?Ec:e}function Sm(){(ft===0||ft===3||ft===2)&&(ft=4),pt===null||!(Ks&268435455)&&!(Ic&268435455)||ns(pt,jt)}function zc(e,t){var n=Le;Le|=2;var s=by();(pt!==e||jt!==t)&&(br=null,Gs(e,t));do try{c2();break}catch(a){yy(e,a)}while(!0);if(Ff(),Le=n,Oc.current=s,ct!==null)throw Error(Q(261));return pt=null,jt=0,ft}function c2(){for(;ct!==null;)jy(ct)}function d2(){for(;ct!==null&&!MC();)jy(ct)}function jy(e){var t=Cy(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?wy(e):ct=t,pm.current=null}function wy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=r2(n,t),n!==null){n.flags&=32767,ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ft=6,ct=null;return}}else if(n=n2(n,t,Zt),n!==null){ct=n;return}if(t=t.sibling,t!==null){ct=t;return}ct=t=e}while(t!==null);ft===0&&(ft=5)}function Ys(e,t,n){var s=Ue,a=hn.transition;try{hn.transition=null,Ue=1,u2(e,t,n,s)}finally{hn.transition=a,Ue=s}return null}function u2(e,t,n,s){do to();while(es!==null);if(Le&6)throw Error(Q(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(WC(e,o),e===pt&&(ct=pt=null,jt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Dc||(Dc=!0,ky(Hl,function(){return to(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=hn.transition,hn.transition=null;var i=Ue;Ue=1;var c=Le;Le|=4,pm.current=null,a2(e,n),fy(n,e),Rk(Sf),Xl=!!Nf,Sf=Nf=null,e.current=n,o2(n),DC(),Le=c,Ue=i,hn.transition=o}else e.current=n;if(Dc&&(Dc=!1,es=e,Fc=a),o=e.pendingLanes,o===0&&(Jr=null),$C(n.stateNode),Bt(e,lt()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(Mc)throw Mc=!1,e=vm,vm=null,e;return Fc&1&&e.tag!==0&&to(),o=e.pendingLanes,o&1?e===ym?Ri++:(Ri=0,ym=e):Ri=0,Gr(),null}function to(){if(es!==null){var e=dg(Fc),t=hn.transition,n=Ue;try{if(hn.transition=null,Ue=16>e?16:e,es===null)var s=!1;else{if(e=es,es=null,Fc=0,Le&6)throw Error(Q(331));var a=Le;for(Le|=4,de=e.current;de!==null;){var o=de,i=o.child;if(de.flags&16){var c=o.deletions;if(c!==null){for(var d=0;d<c.length;d++){var u=c[d];for(de=u;de!==null;){var h=de;switch(h.tag){case 0:case 11:case 15:_i(8,h,o)}var m=h.child;if(m!==null)m.return=h,de=m;else for(;de!==null;){h=de;var b=h.sibling,v=h.return;if(iy(h),h===u){de=null;break}if(b!==null){b.return=v,de=b;break}de=v}}}var w=o.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var j=g.sibling;g.sibling=null,g=j}while(g!==null)}}de=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,de=i;else e:for(;de!==null;){if(o=de,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_i(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,de=y;break e}de=o.return}}var p=e.current;for(de=p;de!==null;){i=de;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,de=x;else e:for(i=p;de!==null;){if(c=de,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ac(9,c)}}catch(S){st(c,c.return,S)}if(c===i){de=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,de=N;break e}de=c.return}}if(Le=a,Gr(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Wl,e)}catch(S){}s=!0}return s}finally{Ue=n,hn.transition=t}}return!1}function Ny(e,t,n){t=Xa(n,t),t=Uv(e,t,1),e=Xr(e,t,1),t=It(),e!==null&&(ti(e,1,t),Bt(e,t))}function st(e,t,n){if(e.tag===3)Ny(e,e,n);else for(;t!==null;){if(t.tag===3){Ny(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Jr===null||!Jr.has(s))){e=Xa(n,e),e=Bv(t,e,1),t=Xr(t,e,1),e=It(),t!==null&&(ti(t,1,e),Bt(t,e));break}}t=t.return}}function f2(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=It(),e.pingedLanes|=e.suspendedLanes&n,pt===e&&(jt&n)===n&&(ft===4||ft===3&&(jt&130023424)===jt&&500>lt()-gm?Gs(e,0):xm|=n),Bt(e,t)}function Sy(e,t){t===0&&(e.mode&1?(t=Kl,Kl<<=1,!(Kl&130023424)&&(Kl=4194304)):t=1);var n=It();e=gr(e,t),e!==null&&(ti(e,t,n),Bt(e,n))}function m2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sy(e,n)}function h2(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(Q(314))}s!==null&&s.delete(t),Sy(e,n)}var Cy;Cy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)zt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zt=!1,t2(e,t,n);zt=!!(e.flags&131072)}else zt=!1,Ze&&t.flags&1048576&&sv(t,pc,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Tc(e,t),e=t.pendingProps;var a=Va(t,Ct.current);Ga(t,n),a=Qf(null,t,s,e,a,n);var o=Gf();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(s)?(o=!0,fc(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Uf(t),a.updater=_c,t.stateNode=a,a._reactInternals=t,tm(t,s,e,n),t=am(null,t,s,!0,o,n)):(t.tag=0,Ze&&o&&Rf(t),Ot(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Tc(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=x2(s),e=kn(s,e),a){case 0:t=sm(null,t,s,e,n);break e;case 1:t=Xv(null,t,s,e,n);break e;case 11:t=qv(null,t,s,e,n);break e;case 14:t=Kv(null,t,s,kn(s.type,e),n);break e}throw Error(Q(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),sm(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Xv(e,t,s,a,n);case 3:e:{if(Zv(t),e===null)throw Error(Q(387));s=t.pendingProps,o=t.memoizedState,a=o.element,mv(e,t),jc(t,s,null,n);var i=t.memoizedState;if(s=i.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Xa(Error(Q(423)),t),t=Jv(e,t,s,n,a);break e}else if(s!==a){a=Xa(Error(Q(424)),t),t=Jv(e,t,s,n,a);break e}else for(Xt=qr(t.stateNode.containerInfo.firstChild),Yt=t,Ze=!0,Cn=null,n=uv(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qa(),s===a){t=yr(e,t,n);break e}Ot(e,t,s,n)}t=t.child}return t;case 5:return xv(t),e===null&&If(t),s=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Cf(s,a)?i=null:o!==null&&Cf(s,o)&&(t.flags|=32),Yv(e,t),Ot(e,t,i,n),t.child;case 6:return e===null&&If(t),null;case 13:return ey(e,t,n);case 4:return Bf(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ka(t,null,s,n):Ot(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),qv(e,t,s,a,n);case 7:return Ot(e,t,t.pendingProps,n),t.child;case 8:return Ot(e,t,t.pendingProps.children,n),t.child;case 12:return Ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,qe(vc,s._currentValue),s._currentValue=i,o!==null)if(Sn(o.value,i)){if(o.children===a.children&&!Lt.current){t=yr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var d=c.firstContext;d!==null;){if(d.context===s){if(o.tag===1){d=vr(-1,n&-n),d.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?d.next=d:(d.next=h.next,h.next=d),u.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),$f(o.return,n,t),c.lanes|=n;break}d=d.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Q(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),$f(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ot(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Ga(t,n),a=fn(a),s=s(a),t.flags|=1,Ot(e,t,s,n),t.child;case 14:return s=t.type,a=kn(s,t.pendingProps),a=kn(s.type,a),Kv(e,t,s,a,n);case 15:return Qv(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Tc(e,t),t.tag=1,$t(s)?(e=!0,fc(t)):e=!1,Ga(t,n),$v(t,s,a),tm(t,s,a,n),am(null,t,s,!0,e,n);case 19:return ny(e,t,n);case 22:return Gv(e,t,n)}throw Error(Q(156,t.tag))};function ky(e,t){return ag(e,t)}function p2(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,n,s){return new p2(e,t,n,s)}function Cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x2(e){if(typeof e=="function")return Cm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tu)return 11;if(e===Ou)return 14}return 2}function rs(e,t){var n=e.alternate;return n===null?(n=pn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uc(e,t,n,s,a,o){var i=2;if(s=e,typeof e=="function")Cm(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ta:return Xs(n.children,a,o,t);case _u:i=8,a|=8;break;case Pu:return e=pn(12,n,t,a|2),e.elementType=Pu,e.lanes=o,e;case Ru:return e=pn(13,n,t,a),e.elementType=Ru,e.lanes=o,e;case Au:return e=pn(19,n,t,a),e.elementType=Au,e.lanes=o,e;case Mx:return Bc(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ox:i=10;break e;case Ix:i=9;break e;case Tu:i=11;break e;case Ou:i=14;break e;case Lr:i=16,s=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=pn(i,n,t,a),t.elementType=e,t.type=s,t.lanes=o,t}function Xs(e,t,n,s){return e=pn(7,e,s,t),e.lanes=n,e}function Bc(e,t,n,s){return e=pn(22,e,s,t),e.elementType=Mx,e.lanes=n,e.stateNode={isHidden:!1},e}function km(e,t,n){return e=pn(6,e,null,t),e.lanes=n,e}function Em(e,t,n){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g2(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ju(0),this.expirationTimes=Ju(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function _m(e,t,n,s,a,o,i,c,d){return e=new g2(e,t,n,c,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=pn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(o),e}function v2(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pa,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Ey(e){if(!e)return Qr;e=e._reactInternals;e:{if($s(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var n=e.type;if($t(n))return tv(e,n,t)}return t}function _y(e,t,n,s,a,o,i,c,d){return e=_m(n,s,!0,e,a,o,i,c,d),e.context=Ey(null),n=e.current,s=It(),a=ts(n),o=vr(s,a),o.callback=t!=null?t:null,Xr(n,o,a),e.current.lanes=a,ti(e,a,s),Bt(e,s),e}function Vc(e,t,n,s){var a=t.current,o=It(),i=ts(a);return n=Ey(n),t.context===null?t.context=n:t.pendingContext=n,t=vr(o,i),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Xr(a,t,i),e!==null&&(Pn(e,a,i,o),bc(e,a,i)),i}function Hc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Py(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pm(e,t){Py(e,t),(e=e.alternate)&&Py(e,t)}function y2(){return null}var Ty=typeof reportError=="function"?reportError:function(e){console.error(e)};function Tm(e){this._internalRoot=e}Wc.prototype.render=Tm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Vc(e,t,null,null)},Wc.prototype.unmount=Tm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qs(function(){Vc(null,e,null,null)}),t[mr]=null}};function Wc(e){this._internalRoot=e}Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=mg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vr.length&&t!==0&&t<Vr[n].priority;n++);Vr.splice(n,0,e),n===0&&xg(e)}};function Rm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ry(){}function b2(e,t,n,s,a){if(a){if(typeof s=="function"){var o=s;s=function(){var u=Hc(i);o.call(u)}}var i=_y(t,s,e,0,null,!1,!1,"",Ry);return e._reactRootContainer=i,e[mr]=i.current,pi(e.nodeType===8?e.parentNode:e),Qs(),i}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var c=s;s=function(){var u=Hc(d);c.call(u)}}var d=_m(e,0,!1,null,null,!1,!1,"",Ry);return e._reactRootContainer=d,e[mr]=d.current,pi(e.nodeType===8?e.parentNode:e),Qs(function(){Vc(t,d,n,s)}),d}function Kc(e,t,n,s,a){var o=n._reactRootContainer;if(o){var i=o;if(typeof a=="function"){var c=a;a=function(){var d=Hc(i);c.call(d)}}Vc(t,i,e,a)}else i=b2(n,t,e,a,s);return Hc(i)}ug=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ei(t.pendingLanes);n!==0&&(ef(t,n|1),Bt(t,lt()),!(Le&6)&&(eo=lt()+500,Gr()))}break;case 13:Qs(function(){var s=gr(e,1);if(s!==null){var a=It();Pn(s,e,1,a)}}),Pm(e,1)}},tf=function(e){if(e.tag===13){var t=gr(e,134217728);if(t!==null){var n=It();Pn(t,e,134217728,n)}Pm(e,134217728)}},fg=function(e){if(e.tag===13){var t=ts(e),n=gr(e,t);if(n!==null){var s=It();Pn(n,e,t,s)}Pm(e,t)}},mg=function(){return Ue},hg=function(e,t){var n=Ue;try{return Ue=e,t()}finally{Ue=n}},Ku=function(e,t,n){switch(t){case"input":if($u(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=dc(s);if(!a)throw Error(Q(90));Lx(s),$u(s,a)}}}break;case"textarea":Vx(e,n);break;case"select":t=n.value,t!=null&&Ra(e,!!n.multiple,t,!1)}},Zx=wm,Jx=Qs;var j2={usingClientEntryPoint:!1,Events:[vi,Ua,dc,Yx,Xx,wm]},Ai={findFiberByHostInstance:zs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},w2={bundleType:Ai.bundleType,version:Ai.version,rendererPackageName:Ai.rendererPackageName,rendererConfig:Ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rg(e),e===null?null:e.stateNode},findFiberByHostInstance:Ai.findFiberByHostInstance||y2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Qc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qc.isDisabled&&Qc.supportsFiber)try{Wl=Qc.inject(w2),qn=Qc}catch(e){}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j2,Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rm(t))throw Error(Q(200));return v2(e,t,null,n)},Kt.createRoot=function(e,t){if(!Rm(e))throw Error(Q(299));var n=!1,s="",a=Ty;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=_m(e,1,!1,null,null,n,!1,s,a),e[mr]=t.current,pi(e.nodeType===8?e.parentNode:e),new Tm(t)},Kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=rg(t),e=e===null?null:e.stateNode,e},Kt.flushSync=function(e){return Qs(e)},Kt.hydrate=function(e,t,n){if(!qc(t))throw Error(Q(200));return Kc(null,e,t,!0,n)},Kt.hydrateRoot=function(e,t,n){if(!Rm(e))throw Error(Q(405));var s=n!=null&&n.hydratedSources||null,a=!1,o="",i=Ty;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=_y(t,null,e,1,n!=null?n:null,a,!1,o,i),e[mr]=t.current,pi(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Wc(t)},Kt.render=function(e,t,n){if(!qc(t))throw Error(Q(200));return Kc(null,e,t,!1,n)},Kt.unmountComponentAtNode=function(e){if(!qc(e))throw Error(Q(40));return e._reactRootContainer?(Qs(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,e[mr]=null})}),!0):!1},Kt.unstable_batchedUpdates=wm,Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!qc(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Kc(e,t,n,!1,s)},Kt.version="18.3.1-next-f1338f8080-20240426";function Ay(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ay)}catch(e){console.error(e)}}Ay(),Ex.exports=Kt;var Zs=Ex.exports;const Oy=rt(Zs);var Iy,My=Zs;Iy=My.createRoot,My.hydrateRoot;var Js=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(){}},N2=(IS=class extends Js{constructor(){super();ce(this,ha);ce(this,js);ce(this,Co);te(this,Co,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,js)||this.setEventListener(_(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,js))==null||t.call(this),te(this,js,void 0))}setEventListener(t){var n;te(this,Co,t),(n=_(this,js))==null||n.call(this),te(this,js,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){_(this,ha)!==t&&(te(this,ha,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,ha)=="boolean"?_(this,ha):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ha=new WeakMap,js=new WeakMap,Co=new WeakMap,IS),Am=new N2,S2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},C2=(MS=class{constructor(){ce(this,ws,S2);ce(this,Zp,!1)}setTimeoutProvider(e){te(this,ws,e)}setTimeout(e,t){return _(this,ws).setTimeout(e,t)}clearTimeout(e){_(this,ws).clearTimeout(e)}setInterval(e,t){return _(this,ws).setInterval(e,t)}clearInterval(e){_(this,ws).clearInterval(e)}},ws=new WeakMap,Zp=new WeakMap,MS),ea=new C2;function k2(e){setTimeout(e,0)}var E2=typeof window=="undefined"||"Deno"in globalThis;function Pt(){}function _2(e,t){return typeof e=="function"?e(t):e}function Om(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ss(e,t){return typeof e=="function"?e(t):e}function xn(e,t){return typeof e=="function"?e(t):e}function Fy(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:o,queryKey:i,stale:c}=e;if(i){if(s){if(t.queryHash!==Im(i,t.options))return!1}else if(!Oi(t.queryKey,i))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function Ly(e,t){const{exact:n,status:s,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ta(t.options.mutationKey)!==ta(o))return!1}else if(!Oi(t.options.mutationKey,o))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function Im(e,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(e)}function ta(e){return JSON.stringify(e,(t,n)=>Dm(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Oi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oi(e[n],t[n])):!1}var P2=Object.prototype.hasOwnProperty;function Mm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=$y(e)&&$y(t);if(!s&&!(Dm(e)&&Dm(t)))return t;const o=(s?e:Object.keys(e)).length,i=s?t:Object.keys(t),c=i.length,d=s?new Array(c):{};let u=0;for(let h=0;h<c;h++){const m=s?h:i[h],b=e[m],v=t[m];if(b===v){d[m]=b,(s?h<o:P2.call(e,m))&&u++;continue}if(b===null||v===null||typeof b!="object"||typeof v!="object"){d[m]=v;continue}const w=Mm(b,v,n+1);d[m]=w,w===b&&u++}return o===c&&u===o?e:d}function Ii(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dm(e){if(!zy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!zy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zy(e){return Object.prototype.toString.call(e)==="[object Object]"}function T2(e){return new Promise(t=>{ea.setTimeout(t,e)})}function Fm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mm(e,t):t}function R2(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function A2(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Lm=Symbol();function Uy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Lm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $m(e,t){return typeof e=="function"?e(...t):!!e}function O2(e,t,n){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a!=null||(a=t()),s||(s=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Mi=(()=>{let e=()=>E2;return{isServer(){return e()},setIsServer(t){e=t}}})();function zm(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}var I2=k2;function M2(){let e=[],t=0,n=c=>{c()},s=c=>{c()},a=I2;const o=c=>{t?e.push(c):a(()=>{n(c)})},i=()=>{const c=e;e=[],c.length&&a(()=>{s(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||i()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{a=c}}}var at=M2(),D2=(DS=class extends Js{constructor(){super();ce(this,ko,!0);ce(this,Ns);ce(this,Eo);te(this,Eo,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){_(this,Ns)||this.setEventListener(_(this,Eo))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,Ns))==null||t.call(this),te(this,Ns,void 0))}setEventListener(t){var n;te(this,Eo,t),(n=_(this,Ns))==null||n.call(this),te(this,Ns,t(this.setOnline.bind(this)))}setOnline(t){_(this,ko)!==t&&(te(this,ko,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return _(this,ko)}},ko=new WeakMap,Ns=new WeakMap,Eo=new WeakMap,DS),Gc=new D2;function F2(e){return Math.min(1e3*2**e,3e4)}function By(e){return(e!=null?e:"online")==="online"?Gc.isOnline():!0}var Um=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vy(e){let t=!1,n=0,s;const a=zm(),o=()=>a.status!=="pending",i=g=>{var j;if(!o()){const y=new Um(g);b(y),(j=e.onCancel)==null||j.call(e,y)}},c=()=>{t=!0},d=()=>{t=!1},u=()=>Am.isFocused()&&(e.networkMode==="always"||Gc.isOnline())&&e.canRun(),h=()=>By(e.networkMode)&&e.canRun(),m=g=>{o()||(s==null||s(),a.resolve(g))},b=g=>{o()||(s==null||s(),a.reject(g))},v=()=>new Promise(g=>{var j;s=y=>{(o()||u())&&g(y)},(j=e.onPause)==null||j.call(e)}).then(()=>{var g;s=void 0,o()||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(o())return;let g;const j=n===0?e.initialPromise:void 0;try{g=j!=null?j:e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(m).catch(y=>{var C,E,k;if(o())return;const p=(C=e.retry)!=null?C:Mi.isServer()?0:3,x=(E=e.retryDelay)!=null?E:F2,N=typeof x=="function"?x(n,y):x,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,y);if(t||!S){b(y);return}n++,(k=e.onFail)==null||k.call(e,n,y),T2(N).then(()=>u()?void 0:v()).then(()=>{t?b(y):w()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(s==null||s(),a),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?w():v().then(w),a)}}var Hy=(FS=class{constructor(){ce(this,pa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Om(this.gcTime)&&te(this,pa,ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Mi.isServer()?1/0:5*60*1e3)}clearGcTimeout(){_(this,pa)!==void 0&&(ea.clearTimeout(_(this,pa)),te(this,pa,void 0))}},pa=new WeakMap,FS),L2=(LS=class extends Hy{constructor(t){var n;super();ce(this,an);ce(this,xa);ce(this,_o);ce(this,bn);ce(this,ga);ce(this,vt);ce(this,Nl);ce(this,va);te(this,va,!1),te(this,Nl,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,ga,t.client),te(this,bn,_(this,ga).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,xa,Ky(this.options)),this.state=(n=t.state)!=null?n:_(this,xa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,vt))==null?void 0:t.promise}setOptions(t){if(this.options={..._(this,Nl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Ky(this.options);n.data!==void 0&&(this.setState(qy(n.data,n.dataUpdatedAt)),te(this,xa,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,bn).remove(this)}setData(t,n){const s=Fm(this.state.data,t,this.options);return we(this,an,Fr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){we(this,an,Fr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,a;const n=(s=_(this,vt))==null?void 0:s.promise;return(a=_(this,vt))==null||a.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,xa)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>xn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ss(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Dy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,vt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,vt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,bn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,vt)&&(_(this,va)||we(this,an,YS).call(this)?_(this,vt).cancel({revert:!0}):_(this,vt).cancelRetry()),this.scheduleGc()),_(this,bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,an,Fr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,b,v,w,g,j,y,p,x;if(this.state.fetchStatus!=="idle"&&((d=_(this,vt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,vt))return _(this,vt).continueRetry(),_(this,vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const N=this.observers.find(S=>S.options.queryFn);N&&this.setOptions(N.options)}const s=new AbortController,a=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(te(this,va,!0),s.signal)})},o=()=>{const N=Uy(this.options,n),C=(()=>{const E={client:_(this,ga),queryKey:this.queryKey,meta:this.meta};return a(E),E})();return te(this,va,!1),this.options.persister?this.options.persister(N,C,this):N(C)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,ga),state:this.state,fetchFn:o};return a(N),N})();(u=this.options.behavior)==null||u.onFetch(c,this),te(this,_o,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&we(this,an,Fr).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),te(this,vt,Vy({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof Um&&N.revert&&this.setState({..._(this,_o),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{we(this,an,Fr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{we(this,an,Fr).call(this,{type:"pause"})},onContinue:()=>{we(this,an,Fr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await _(this,vt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(v=(b=_(this,bn).config).onSuccess)==null||v.call(b,N,this),(g=(w=_(this,bn).config).onSettled)==null||g.call(w,N,this.state.error,this),N}catch(N){if(N instanceof Um){if(N.silent)return _(this,vt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw we(this,an,Fr).call(this,{type:"error",error:N}),(y=(j=_(this,bn).config).onError)==null||y.call(j,N,this),(x=(p=_(this,bn).config).onSettled)==null||x.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},xa=new WeakMap,_o=new WeakMap,bn=new WeakMap,ga=new WeakMap,vt=new WeakMap,Nl=new WeakMap,va=new WeakMap,an=new WeakSet,YS=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Fr=function(t){const n=s=>{var a;switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Wy(s.data,this.options),fetchMeta:(a=t.meta)!=null?a:null};case"success":const o={...s,...qy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,_o,t.manual?o:void 0),o;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),at.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),_(this,bn).notify({query:this,type:"updated",action:t})})},LS);function Wy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:By(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qy(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ky(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s!=null?s:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Bm=($S=class extends Js{constructor(t,n){super();ce(this,ze);ce(this,Ht);ce(this,Fe);ce(this,Sl);ce(this,Dt);ce(this,ya);ce(this,Po);ce(this,Tr);ce(this,Ss);ce(this,Cl);ce(this,To);ce(this,Ro);ce(this,ba);ce(this,ja);ce(this,Cs);ce(this,Ao,new Set);this.options=n,te(this,Ht,t),te(this,Ss,null),te(this,Tr,zm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Fe).addObserver(this),Qy(_(this,Fe),this.options)?we(this,ze,Ol).call(this):this.updateResult(),we(this,ze,sx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vm(_(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vm(_(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,ze,ax).call(this),we(this,ze,ox).call(this),_(this,Fe).removeObserver(this)}setOptions(t){const n=this.options,s=_(this,Fe);if(this.options=_(this,Ht).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof xn(this.options.enabled,_(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,ze,ix).call(this),_(this,Fe).setOptions(this.options),n._defaulted&&!Ii(this.options,n)&&_(this,Ht).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Fe),observer:this});const a=this.hasListeners();a&&Gy(_(this,Fe),s,this.options,n)&&we(this,ze,Ol).call(this),this.updateResult(),a&&(_(this,Fe)!==s||xn(this.options.enabled,_(this,Fe))!==xn(n.enabled,_(this,Fe))||ss(this.options.staleTime,_(this,Fe))!==ss(n.staleTime,_(this,Fe)))&&we(this,ze,tx).call(this);const o=we(this,ze,nx).call(this);a&&(_(this,Fe)!==s||xn(this.options.enabled,_(this,Fe))!==xn(n.enabled,_(this,Fe))||o!==_(this,Cs))&&we(this,ze,rx).call(this,o)}getOptimisticResult(t){const n=_(this,Ht).getQueryCache().build(_(this,Ht),t),s=this.createResult(n,t);return z2(this,s)&&(te(this,Dt,s),te(this,Po,this.options),te(this,ya,_(this,Fe).state)),s}getCurrentResult(){return _(this,Dt)}trackResult(t,n){return new Proxy(t,{get:(s,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,Tr).status==="pending"&&_(this,Tr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,a))})}trackProp(t){_(this,Ao).add(t)}getCurrentQuery(){return _(this,Fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Ht).defaultQueryOptions(t),s=_(this,Ht).getQueryCache().build(_(this,Ht),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){var n;return we(this,ze,Ol).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),_(this,Dt)))}createResult(t,n){var R;const s=_(this,Fe),a=this.options,o=_(this,Dt),i=_(this,ya),c=_(this,Po),u=t!==s?t.state:_(this,Sl),{state:h}=t;let m={...h},b=!1,v;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&Qy(t,n),F=T&&Gy(t,s,n,a);(O||F)&&(m={...m,...Wy(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:j}=m;v=m.data;let y=!1;if(n.placeholderData!==void 0&&v===void 0&&j==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(T=o.data,y=!0):T=typeof n.placeholderData=="function"?n.placeholderData((R=_(this,Ro))==null?void 0:R.state.data,_(this,Ro)):n.placeholderData,T!==void 0&&(j="success",v=Fm(o==null?void 0:o.data,T,n),b=!0)}if(n.select&&v!==void 0&&!y)if(o&&v===(i==null?void 0:i.data)&&n.select===_(this,Cl))v=_(this,To);else try{te(this,Cl,n.select),v=n.select(v),v=Fm(o==null?void 0:o.data,v,n),te(this,To,v),te(this,Ss,null)}catch(T){te(this,Ss,T)}_(this,Ss)&&(w=_(this,Ss),v=_(this,To),g=Date.now(),j="error");const p=m.fetchStatus==="fetching",x=j==="pending",N=j==="error",S=x&&p,C=v!==void 0,k={status:j,fetchStatus:m.fetchStatus,isPending:x,isSuccess:j==="success",isError:N,isInitialLoading:S,isLoading:S,data:v,dataUpdatedAt:m.dataUpdatedAt,error:w,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>u.dataUpdateCount||m.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!x,isLoadingError:N&&!C,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:N&&C,isStale:Hm(t,n),refetch:this.refetch,promise:_(this,Tr),isEnabled:xn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=k.data!==void 0,O=k.status==="error"&&!T,F=se=>{O?se.reject(k.error):T&&se.resolve(k.data)},B=()=>{const se=te(this,Tr,k.promise=zm());F(se)},I=_(this,Tr);switch(I.status){case"pending":t.queryHash===s.queryHash&&F(I);break;case"fulfilled":(O||k.data!==I.value)&&B();break;case"rejected":(!O||k.error!==I.reason)&&B();break}}return k}updateResult(){const t=_(this,Dt),n=this.createResult(_(this,Fe),this.options);if(te(this,ya,_(this,Fe).state),te(this,Po,this.options),_(this,ya).data!==void 0&&te(this,Ro,_(this,Fe)),Ii(n,t))return;te(this,Dt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!_(this,Ao).size)return!0;const i=new Set(o!=null?o:_(this,Ao));return this.options.throwOnError&&i.add("error"),Object.keys(_(this,Dt)).some(c=>{const d=c;return _(this,Dt)[d]!==t[d]&&i.has(d)})};we(this,ze,XS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,ze,sx).call(this)}},Ht=new WeakMap,Fe=new WeakMap,Sl=new WeakMap,Dt=new WeakMap,ya=new WeakMap,Po=new WeakMap,Tr=new WeakMap,Ss=new WeakMap,Cl=new WeakMap,To=new WeakMap,Ro=new WeakMap,ba=new WeakMap,ja=new WeakMap,Cs=new WeakMap,Ao=new WeakMap,ze=new WeakSet,Ol=function(t){we(this,ze,ix).call(this);let n=_(this,Fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pt)),n},tx=function(){we(this,ze,ax).call(this);const t=ss(this.options.staleTime,_(this,Fe));if(Mi.isServer()||_(this,Dt).isStale||!Om(t))return;const s=Dy(_(this,Dt).dataUpdatedAt,t)+1;te(this,ba,ea.setTimeout(()=>{_(this,Dt).isStale||this.updateResult()},s))},nx=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Fe)):this.options.refetchInterval)!=null?t:!1},rx=function(t){we(this,ze,ox).call(this),te(this,Cs,t),!(Mi.isServer()||xn(this.options.enabled,_(this,Fe))===!1||!Om(_(this,Cs))||_(this,Cs)===0)&&te(this,ja,ea.setInterval(()=>{(this.options.refetchIntervalInBackground||Am.isFocused())&&we(this,ze,Ol).call(this)},_(this,Cs)))},sx=function(){we(this,ze,tx).call(this),we(this,ze,rx).call(this,we(this,ze,nx).call(this))},ax=function(){_(this,ba)!==void 0&&(ea.clearTimeout(_(this,ba)),te(this,ba,void 0))},ox=function(){_(this,ja)!==void 0&&(ea.clearInterval(_(this,ja)),te(this,ja,void 0))},ix=function(){const t=_(this,Ht).getQueryCache().build(_(this,Ht),this.options);if(t===_(this,Fe))return;const n=_(this,Fe);te(this,Fe,t),te(this,Sl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},XS=function(t){at.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,Dt))}),_(this,Ht).getQueryCache().notify({query:_(this,Fe),type:"observerResultsUpdated"})})},$S);function $2(e,t){return xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qy(e,t){return $2(e,t)||e.state.data!==void 0&&Vm(e,t,t.refetchOnMount)}function Vm(e,t,n){if(xn(t.enabled,e)!==!1&&ss(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Hm(e,t)}return!1}function Gy(e,t,n,s){return(e!==t||xn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Hm(e,n)}function Hm(e,t){return xn(t.enabled,e)!==!1&&e.isStaleByTime(ss(t.staleTime,e))}function z2(e,t){return!Ii(e.getCurrentResult(),t)}function Yy(e){return{onFetch:(t,n)=>{var h,m,b,v,w;const s=t.options,a=(b=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const u=async()=>{var x;let g=!1;const j=N=>{O2(N,()=>t.signal,()=>g=!0)},y=Uy(t.options,t.fetchOptions),p=async(N,S,C)=>{if(g)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const k=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return j(F),F})(),R=await y(k),{maxPages:T}=t.options,O=C?A2:R2;return{pages:O(N.pages,R,T),pageParams:O(N.pageParams,S,T)}};if(a&&o.length){const N=a==="backward",S=N?U2:Xy,C={pages:o,pageParams:i},E=S(s,C);c=await p(C,E,N)}else{const N=e!=null?e:o.length;do{const S=d===0?(x=i[0])!=null?x:s.initialPageParam:Xy(s,c);if(d>0&&S==null)break;c=await p(c,S),d++}while(d<N)}return c};t.options.persister?t.fetchFn=()=>{var g,j;return(j=(g=t.options).persister)==null?void 0:j.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Xy(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function U2(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var B2=(zS=class extends Hy{constructor(t){super();ce(this,ir);ce(this,kl);ce(this,or);ce(this,Tt);ce(this,wa);te(this,kl,t.client),this.mutationId=t.mutationId,te(this,Tt,t.mutationCache),te(this,or,[]),this.state=t.state||Zy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,or).includes(t)||(_(this,or).push(t),this.clearGcTimeout(),_(this,Tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,or,_(this,or).filter(n=>n!==t)),this.scheduleGc(),_(this,Tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,or).length||(this.state.status==="pending"?this.scheduleGc():_(this,Tt).remove(this))}continue(){var t,n;return(n=(t=_(this,wa))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var i,c,d,u,h,m,b,v,w,g,j,y,p,x,N,S,C,E,k;const n=()=>{we(this,ir,Ds).call(this,{type:"continue"})},s={client:_(this,kl),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,wa,Vy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{we(this,ir,Ds).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{we(this,ir,Ds).call(this,{type:"pause"})},onContinue:n,retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Tt).canRun(this)}));const a=this.state.status==="pending",o=!_(this,wa).canStart();try{if(a)n();else{we(this,ir,Ds).call(this,{type:"pending",variables:t,isPaused:o}),_(this,Tt).config.onMutate&&await _(this,Tt).config.onMutate(t,this,s);const T=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,s));T!==this.state.context&&we(this,ir,Ds).call(this,{type:"pending",context:T,variables:t,isPaused:o})}const R=await _(this,wa).start();return await((h=(u=_(this,Tt).config).onSuccess)==null?void 0:h.call(u,R,t,this.state.context,this,s)),await((b=(m=this.options).onSuccess)==null?void 0:b.call(m,R,t,this.state.context,s)),await((w=(v=_(this,Tt).config).onSettled)==null?void 0:w.call(v,R,null,this.state.variables,this.state.context,this,s)),await((j=(g=this.options).onSettled)==null?void 0:j.call(g,R,null,t,this.state.context,s)),we(this,ir,Ds).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(y=_(this,Tt).config).onError)==null?void 0:p.call(y,R,t,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((N=(x=this.options).onError)==null?void 0:N.call(x,R,t,this.state.context,s))}catch(T){Promise.reject(T)}try{await((C=(S=_(this,Tt).config).onSettled)==null?void 0:C.call(S,void 0,R,this.state.variables,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,R,t,this.state.context,s))}catch(T){Promise.reject(T)}throw we(this,ir,Ds).call(this,{type:"error",error:R}),R}finally{_(this,Tt).runNext(this)}}},kl=new WeakMap,or=new WeakMap,Tt=new WeakMap,wa=new WeakMap,ir=new WeakSet,Ds=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),at.batch(()=>{_(this,or).forEach(s=>{s.onMutationUpdate(t)}),_(this,Tt).notify({mutation:this,type:"updated",action:t})})},zS);function Zy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var V2=(US=class extends Js{constructor(t={}){super();ce(this,Rr);ce(this,Bn);ce(this,El);this.config=t,te(this,Rr,new Set),te(this,Bn,new Map),te(this,El,0)}build(t,n,s){const a=new B2({client:t,mutationCache:this,mutationId:++gu(this,El)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){_(this,Rr).add(t);const n=Yc(t);if(typeof n=="string"){const s=_(this,Bn).get(n);s?s.push(t):_(this,Bn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,Rr).delete(t)){const n=Yc(t);if(typeof n=="string"){const s=_(this,Bn).get(n);if(s)if(s.length>1){const a=s.indexOf(t);a!==-1&&s.splice(a,1)}else s[0]===t&&_(this,Bn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yc(t);if(typeof n=="string"){const s=_(this,Bn).get(n),a=s==null?void 0:s.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var s,a;const n=Yc(t);if(typeof n=="string"){const o=(s=_(this,Bn).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(a=o==null?void 0:o.continue())!=null?a:Promise.resolve()}else return Promise.resolve()}clear(){at.batch(()=>{_(this,Rr).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,Rr).clear(),_(this,Bn).clear()})}getAll(){return Array.from(_(this,Rr))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ly(n,s))}findAll(t={}){return this.getAll().filter(n=>Ly(t,n))}notify(t){at.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return at.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pt))))}},Rr=new WeakMap,Bn=new WeakMap,El=new WeakMap,US);function Yc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var H2=(BS=class extends Js{constructor(n,s){super();ce(this,Ir);ce(this,Ar);ce(this,ks);ce(this,Wt);ce(this,Or);te(this,Ar,n),this.setOptions(s),this.bindMethods(),we(this,Ir,vu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const s=this.options;this.options=_(this,Ar).defaultMutationOptions(n),Ii(this.options,s)||_(this,Ar).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Wt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ta(s.mutationKey)!==ta(this.options.mutationKey)?this.reset():((a=_(this,Wt))==null?void 0:a.state.status)==="pending"&&_(this,Wt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_(this,Wt))==null||n.removeObserver(this)}onMutationUpdate(n){we(this,Ir,vu).call(this),we(this,Ir,lx).call(this,n)}getCurrentResult(){return _(this,ks)}reset(){var n;(n=_(this,Wt))==null||n.removeObserver(this),te(this,Wt,void 0),we(this,Ir,vu).call(this),we(this,Ir,lx).call(this)}mutate(n,s){var a;return te(this,Or,s),(a=_(this,Wt))==null||a.removeObserver(this),te(this,Wt,_(this,Ar).getMutationCache().build(_(this,Ar),this.options)),_(this,Wt).addObserver(this),_(this,Wt).execute(n)}},Ar=new WeakMap,ks=new WeakMap,Wt=new WeakMap,Or=new WeakMap,Ir=new WeakSet,vu=function(){var s,a;const n=(a=(s=_(this,Wt))==null?void 0:s.state)!=null?a:Zy();te(this,ks,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},lx=function(n){at.batch(()=>{var s,a,o,i,c,d,u,h;if(_(this,Or)&&this.hasListeners()){const m=_(this,ks).variables,b=_(this,ks).context,v={client:_(this,Ar),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(s=_(this,Or)).onSuccess)==null||a.call(s,n.data,m,b,v)}catch(w){Promise.reject(w)}try{(i=(o=_(this,Or)).onSettled)==null||i.call(o,n.data,null,m,b,v)}catch(w){Promise.reject(w)}}else if((n==null?void 0:n.type)==="error"){try{(d=(c=_(this,Or)).onError)==null||d.call(c,n.error,m,b,v)}catch(w){Promise.reject(w)}try{(h=(u=_(this,Or)).onSettled)==null||h.call(u,void 0,n.error,m,b,v)}catch(w){Promise.reject(w)}}}this.listeners.forEach(m=>{m(_(this,ks))})})},BS);function Jy(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function W2(e,t,n){const s=e.slice(0);return s[t]=n,s}var q2=(VS=class extends Js{constructor(t,n,s){super();ce(this,St);ce(this,Oo);ce(this,on);ce(this,Io);ce(this,Mo);ce(this,jn);ce(this,Es);ce(this,_l);ce(this,Pl);ce(this,Tl);ce(this,Rl,[]);te(this,Oo,t),te(this,Mo,s),te(this,Io,[]),te(this,jn,[]),te(this,on,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&_(this,jn).forEach(t=>{t.subscribe(n=>{we(this,St,fx).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,_(this,jn).forEach(t=>{t.destroy()})}setQueries(t,n){te(this,Io,t),te(this,Mo,n),at.batch(()=>{const s=_(this,jn),a=we(this,St,ux).call(this,_(this,Io));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=a.map(m=>m.observer),i=o.map(m=>m.getCurrentResult()),c=s.length!==o.length,d=o.some((m,b)=>m!==s[b]),u=c||d,h=u?!0:i.some((m,b)=>{const v=_(this,on)[b];return!v||!Ii(m,v)});!u&&!h||(u&&(te(this,Rl,a),te(this,jn,o)),te(this,on,i),this.hasListeners()&&(u&&(Jy(s,o).forEach(m=>{m.destroy()}),Jy(o,s).forEach(m=>{m.subscribe(b=>{we(this,St,fx).call(this,m,b)})})),we(this,St,mx).call(this)))})}getCurrentResult(){return _(this,on)}getQueries(){return _(this,jn).map(t=>t.getCurrentQuery())}getObservers(){return _(this,jn)}getOptimisticResult(t,n){const s=we(this,St,ux).call(this,t),a=s.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),o=s.map(i=>i.defaultedQueryOptions.queryHash);return[a,i=>we(this,St,dx).call(this,i!=null?i:a,n,o),()=>we(this,St,cx).call(this,a,s)]}},Oo=new WeakMap,on=new WeakMap,Io=new WeakMap,Mo=new WeakMap,jn=new WeakMap,Es=new WeakMap,_l=new WeakMap,Pl=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,St=new WeakSet,cx=function(t,n){return n.map((s,a)=>{const o=t[a];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,i=>{n.forEach(c=>{c.observer.trackProp(i)})})})},dx=function(t,n,s){if(n){const a=_(this,Tl),o=s!==void 0&&a!==void 0&&(a.length!==s.length||s.some((i,c)=>i!==a[c]));return(!_(this,Es)||_(this,on)!==_(this,Pl)||o||n!==_(this,_l))&&(te(this,_l,n),te(this,Pl,_(this,on)),s!==void 0&&te(this,Tl,s),te(this,Es,Mm(_(this,Es),n(t)))),_(this,Es)}return t},ux=function(t){const n=new Map;_(this,jn).forEach(a=>{const o=a.options.queryHash;if(!o)return;const i=n.get(o);i?i.push(a):n.set(o,[a])});const s=[];return t.forEach(a=>{var d;const o=_(this,Oo).defaultQueryOptions(a),i=(d=n.get(o.queryHash))==null?void 0:d.shift(),c=i!=null?i:new Bm(_(this,Oo),o);s.push({defaultedQueryOptions:o,observer:c})}),s},fx=function(t,n){const s=_(this,jn).indexOf(t);s!==-1&&(te(this,on,W2(_(this,on),s,n)),we(this,St,mx).call(this))},mx=function(){var t;if(this.hasListeners()){const n=_(this,Es),s=we(this,St,cx).call(this,_(this,on),_(this,Rl)),a=we(this,St,dx).call(this,s,(t=_(this,Mo))==null?void 0:t.combine);n!==a&&at.batch(()=>{this.listeners.forEach(o=>{o(_(this,on))})})}},VS),K2=(HS=class extends Js{constructor(t={}){super();ce(this,lr);this.config=t,te(this,lr,new Map)}build(t,n,s){var c;const a=n.queryKey,o=(c=n.queryHash)!=null?c:Im(a,n);let i=this.get(o);return i||(i=new L2({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){_(this,lr).has(t.queryHash)||(_(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,lr).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){at.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,lr).get(t)}getAll(){return[..._(this,lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Fy(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Fy(t,s)):n}notify(t){at.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){at.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){at.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,HS),Q2=(WS=class{constructor(e={}){ce(this,it);ce(this,_s);ce(this,Ps);ce(this,Do);ce(this,Fo);ce(this,Ts);ce(this,Lo);ce(this,$o);te(this,it,e.queryCache||new K2),te(this,_s,e.mutationCache||new V2),te(this,Ps,e.defaultOptions||{}),te(this,Do,new Map),te(this,Fo,new Map),te(this,Ts,0)}mount(){gu(this,Ts)._++,_(this,Ts)===1&&(te(this,Lo,Am.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,it).onFocus())})),te(this,$o,Gc.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,it).onOnline())})))}unmount(){var e,t;gu(this,Ts)._--,_(this,Ts)===0&&((e=_(this,Lo))==null||e.call(this),te(this,Lo,void 0),(t=_(this,$o))==null||t.call(this),te(this,$o,void 0))}isFetching(e){return _(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,_s).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,it).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ss(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return _(this,it).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),a=_(this,it).get(s.queryHash),o=a==null?void 0:a.state.data,i=_2(t,o);if(i!==void 0)return _(this,it).build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return at.batch(()=>_(this,it).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,it);at.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,it);return at.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=at.batch(()=>_(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return at.batch(()=>{var n,s;return _(this,it).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(s=(n=e==null?void 0:e.refetchType)!=null?n:e==null?void 0:e.type)!=null?s:"active"},t)})}refetchQueries(e,t={}){var a;const n={...t,cancelRefetch:(a=t.cancelRefetch)!=null?a:!0},s=at.batch(()=>_(this,it).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,it).build(this,t);return n.isStaleByTime(ss(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=Yy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=Yy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gc.isOnline()?_(this,_s).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,it)}getMutationCache(){return _(this,_s)}getDefaultOptions(){return _(this,Ps)}setDefaultOptions(e){te(this,Ps,e)}setQueryDefaults(e,t){_(this,Do).set(ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Do).values()],n={};return t.forEach(s=>{Oi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){_(this,Fo).set(ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Fo).values()],n={};return t.forEach(s=>{Oi(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,Ps).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Im(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Lm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,Ps).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,it).clear(),_(this,_s).clear()}},it=new WeakMap,_s=new WeakMap,Ps=new WeakMap,Do=new WeakMap,Fo=new WeakMap,Ts=new WeakMap,Lo=new WeakMap,$o=new WeakMap,WS),e0=f.createContext(void 0),Ke=e=>{const t=f.useContext(e0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},G2=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(e0.Provider,{value:e,children:t})),t0=f.createContext(!1),n0=()=>f.useContext(t0);t0.Provider;function Y2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var X2=f.createContext(Y2()),r0=()=>f.useContext(X2),s0=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?$m(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},a0=e=>{f.useEffect(()=>{e.clearReset()},[e])},o0=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||$m(n,[e.error,s])),i0=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a!=null?a:1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>n(s(...a)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Z2=(e,t)=>e.isLoading&&e.isFetching&&!t,Wm=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,qm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function J2({queries:e,...t},n){const s=Ke(),a=n0(),o=r0(),i=f.useMemo(()=>e.map(g=>{const j=s.defaultQueryOptions(g);return j._optimisticResults=a?"isRestoring":"optimistic",j}),[e,s,a]);i.forEach(g=>{i0(g);const j=s.getQueryCache().get(g.queryHash);s0(g,o,j)}),a0(o);const[c]=f.useState(()=>new q2(s,i,t)),[d,u,h]=c.getOptimisticResult(i,t.combine),m=!a&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(g=>m?c.subscribe(at.batchCalls(g)):Pt,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setQueries(i,t)},[i,t,c]);const v=d.some((g,j)=>Wm(i[j],g))?d.flatMap((g,j)=>{const y=i[j];if(y&&Wm(y,g)){const p=new Bm(s,y);return qm(y,p,o)}return[]}):[];if(v.length>0)throw Promise.all(v);const w=d.find((g,j)=>{const y=i[j];return y&&o0({result:g,errorResetBoundary:o,throwOnError:y.throwOnError,query:s.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(w!=null&&w.error)throw w.error;return u(h())}function eE(e,t,n){var b,v,w,g;const s=n0(),a=r0(),o=Ke(),i=o.defaultQueryOptions(e);(v=(b=o.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||v.call(b,i);const c=o.getQueryCache().get(i.queryHash);i._optimisticResults=s?"isRestoring":"optimistic",i0(i),s0(i,a,c),a0(a);const d=!o.getQueryCache().get(i.queryHash),[u]=f.useState(()=>new t(o,i)),h=u.getOptimisticResult(i),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(j=>{const y=m?u.subscribe(at.batchCalls(j)):Pt;return u.updateResult(),y},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(i)},[i,u]),Wm(i,h))throw qm(i,u,a);if(o0({result:h,errorResetBoundary:a,throwOnError:i.throwOnError,query:c,suspense:i.suspense}))throw h.error;if((g=(w=o.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||g.call(w,i,h),i.experimental_prefetchInRender&&!Mi.isServer()&&Z2(h,s)){const j=d?qm(i,u,a):c==null?void 0:c.promise;j==null||j.catch(Pt).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?h:u.trackResult(h)}function Ne(e,t){return eE(e,Bm)}function ke(e,t){const n=Ke(),[s]=f.useState(()=>new H2(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const a=f.useSyncExternalStore(f.useCallback(i=>s.subscribe(at.batchCalls(i)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=f.useCallback((i,c)=>{s.mutate(i,c).catch(Pt)},[s]);if(a.error&&$m(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** | |
| 42 | +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function Xf(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Zf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bk=typeof WeakMap=="function"?WeakMap:Map;function Mv(e,t,n){n=yr(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Ic||(Ic=!0,mm=s),Zf(e,t)},n}function Dv(e,t,n){n=yr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){Zf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Zf(e,t),typeof s!="function"&&(es===null?es=new Set([this]):es.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Fv(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Bk;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=n2.bind(null,e,t,n),t.then(e,e))}function Lv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $v(e,t,n,s,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yr(-1,1),t.tag=2,Zr(n,t,1))),n.lanes|=1),e)}var Vk=mr.ReactCurrentOwner,zt=!1;function Rt(e,t,n,s){t.child=e===null?av(t,null,n,s):Qa(t,e.child,n,s)}function zv(e,t,n,s,a){n=n.render;var o=t.ref;return Ya(t,a),s=Vf(e,t,n,s,o,a),n=qf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,br(e,t,a)):(Ye&&n&&kf(t),t.flags|=1,Rt(e,t,s,a),t.child)}function Uv(e,t,n,s,a){if(e===null){var o=n.type;return typeof o=="function"&&!bm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bv(e,t,o,s,a)):(e=zc(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:fi,n(i,s)&&e.ref===t.ref)return br(e,t,a)}return t.flags|=1,e=ss(o,s),e.ref=t.ref,e.return=t,t.child=e}function Bv(e,t,n,s,a){if(e!==null){var o=e.memoizedProps;if(fi(o,s)&&e.ref===t.ref)if(zt=!1,t.pendingProps=s=o,(e.lanes&a)!==0)e.flags&131072&&(zt=!0);else return t.lanes=e.lanes,br(e,t,a)}return Jf(e,t,n,s,a)}function Vv(e,t,n){var s=t.pendingProps,a=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(eo,Xt),Xt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(eo,Xt),Xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=o!==null?o.baseLanes:n,Ve(eo,Xt),Xt|=s}else o!==null?(s=o.baseLanes|n,t.memoizedState=null):s=n,Ve(eo,Xt),Xt|=s;return Rt(e,t,a,n),t.child}function qv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jf(e,t,n,s,a){var o=$t(n)?Us:jt.current;return o=qa(t,o),Ya(t,a),n=Vf(e,t,n,s,o,a),s=qf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,br(e,t,a)):(Ye&&s&&kf(t),t.flags|=1,Rt(e,t,n,a),t.child)}function Hv(e,t,n,s,a){if($t(n)){var o=!0;uc(t)}else o=!1;if(Ya(t,a),t.stateNode===null)Pc(e,t),Ov(t,n,s),Yf(t,n,s,a),s=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var d=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=un(u):(u=$t(n)?Us:jt.current,u=qa(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==s||d!==u)&&Iv(t,i,s,u),Xr=!1;var v=t.memoizedState;i.state=v,bc(t,s,i,a),d=t.memoizedState,c!==s||v!==d||Lt.current||Xr?(typeof h=="function"&&(Gf(t,n,h,s),d=t.memoizedState),(c=Xr||Av(t,n,c,s,v,d,u))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),i.props=s,i.state=d,i.context=u,s=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{i=t.stateNode,iv(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:kn(t.type,c),i.props=u,m=t.pendingProps,v=i.context,d=n.contextType,typeof d=="object"&&d!==null?d=un(d):(d=$t(n)?Us:jt.current,d=qa(t,d));var x=n.getDerivedStateFromProps;(h=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==m||v!==d)&&Iv(t,i,s,d),Xr=!1,v=t.memoizedState,i.state=v,bc(t,s,i,a);var j=t.memoizedState;c!==m||v!==j||Lt.current||Xr?(typeof x=="function"&&(Gf(t,n,x,s),j=t.memoizedState),(u=Xr||Av(t,n,u,s,v,j,d)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(s,j,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(s,j,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=j),i.props=s,i.state=j,i.context=d,s=u):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),s=!1)}return em(e,t,n,s,o,a)}function em(e,t,n,s,a,o){qv(e,t);var i=(t.flags&128)!==0;if(!s&&!i)return a&&Yg(t,n,!1),br(e,t,o);s=t.stateNode,Vk.current=t;var c=i&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&i?(t.child=Qa(t,e.child,null,o),t.child=Qa(t,null,c,o)):Rt(e,t,c,o),t.memoizedState=s.state,a&&Yg(t,n,!0),t.child}function Wv(e){var t=e.stateNode;t.pendingContext?Qg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qg(e,t.context,!1),Ff(e,t.containerInfo)}function Kv(e,t,n,s,a){return Ka(),Tf(a),t.flags|=256,Rt(e,t,n,s),t.child}var tm={dehydrated:null,treeContext:null,retryLane:0};function nm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qv(e,t,n){var s=t.pendingProps,a=et.current,o=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ve(et,a&1),e===null)return Pf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=s.children,e=s.fallback,o?(s=t.mode,o=t.child,i={mode:"hidden",children:i},!(s&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Uc(i,s,0,null),e=Xs(e,s,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=nm(n),t.memoizedState=tm,e):rm(t,i));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return qk(e,t,i,s,c,a,n);if(o){o=s.fallback,i=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:s.children};return!(i&1)&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=ss(a,d),s.subtreeFlags=a.subtreeFlags&14680064),c!==null?o=ss(c,o):(o=Xs(o,i,n,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,i=e.child.memoizedState,i=i===null?nm(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=tm,s}return o=e.child,e=o.sibling,s=ss(o,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function rm(e,t){return t=Uc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _c(e,t,n,s){return s!==null&&Tf(s),Qa(t,e.child,null,n),e=rm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qk(e,t,n,s,a,o,i){if(n)return t.flags&256?(t.flags&=-257,s=Xf(Error(Q(422))),_c(e,t,i,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=s.fallback,a=t.mode,s=Uc({mode:"visible",children:s.children},a,0,null),o=Xs(o,a,i,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,t.mode&1&&Qa(t,e.child,null,i),t.child.memoizedState=nm(i),t.memoizedState=tm,o);if(!(t.mode&1))return _c(e,t,i,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;return s=c,o=Error(Q(419)),s=Xf(o,s,void 0),_c(e,t,i,s)}if(c=(i&e.childLanes)!==0,zt||c){if(s=mt,s!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(s.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,vr(e,a),Pn(s,e,a,-1))}return ym(),s=Xf(Error(Q(421))),_c(e,t,i,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=r2.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Yt=Kr(a.nextSibling),Gt=t,Ye=!0,Cn=null,e!==null&&(cn[dn++]=xr,cn[dn++]=gr,cn[dn++]=Bs,xr=e.id,gr=e.overflow,Bs=t),t=rm(t,s.children),t.flags|=4096,t)}function Gv(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),If(e.return,t,n)}function sm(e,t,n,s,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=a)}function Yv(e,t,n){var s=t.pendingProps,a=s.revealOrder,o=s.tail;if(Rt(e,t,s.children,n),s=et.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gv(e,n,t);else if(e.tag===19)Gv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ve(et,s),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&jc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),sm(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&jc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}sm(t,!0,n,null,o);break;case"together":sm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function br(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ks|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=ss(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ss(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hk(e,t,n){switch(t.tag){case 3:Wv(t),Ka();break;case 5:dv(t);break;case 1:$t(t.type)&&uc(t);break;case 4:Ff(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;Ve(gc,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Ve(et,et.current&1),t.flags|=128,null):n&t.child.childLanes?Qv(e,t,n):(Ve(et,et.current&1),e=br(e,t,n),e!==null?e.sibling:null);Ve(et,et.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return Yv(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ve(et,et.current),s)break;return null;case 22:case 23:return t.lanes=0,Vv(e,t,n)}return br(e,t,n)}var Xv,am,Zv,Jv;Xv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},am=function(){},Zv=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Hs(Wn.current);var o=null;switch(n){case"input":a=Ou(e,a),s=Ou(e,s),o=[];break;case"select":a=Je({},a,{value:void 0}),s=Je({},s,{value:void 0}),o=[];break;case"textarea":a=Du(e,a),s=Du(e,s),o=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=lc)}Lu(n,s);var i;n=null;for(u in a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var c=a[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ho.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in s){var d=s[u];if(c=a!=null?a[u]:void 0,s.hasOwnProperty(u)&&d!==c&&(d!=null||c!=null))if(u==="style")if(c){for(i in c)!c.hasOwnProperty(i)||d&&d.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in d)d.hasOwnProperty(i)&&c[i]!==d[i]&&(n||(n={}),n[i]=d[i])}else n||(o||(o=[]),o.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(o=o||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ho.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&We("scroll",e),o||c===d||(o=[])):(o=o||[]).push(u,d))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Jv=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ei(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Wk(e,t,n){var s=t.pendingProps;switch(Ef(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return $t(t.type)&&dc(),Nt(t),null;case 3:return s=t.stateNode,Xa(),Ke(Lt),Ke(jt),zf(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(pc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cn!==null&&(xm(Cn),Cn=null))),am(e,t),Nt(t),null;case 5:Lf(t);var a=Hs(wi.current);if(n=t.type,e!==null&&t.stateNode!=null)Zv(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(Q(166));return Nt(t),null}if(e=Hs(Wn.current),pc(t)){s=t.stateNode,n=t.type;var o=t.memoizedProps;switch(s[Hn]=t,s[gi]=o,e=(t.mode&1)!==0,n){case"dialog":We("cancel",s),We("close",s);break;case"iframe":case"object":case"embed":We("load",s);break;case"video":case"audio":for(a=0;a<hi.length;a++)We(hi[a],s);break;case"source":We("error",s);break;case"img":case"image":case"link":We("error",s),We("load",s);break;case"details":We("toggle",s);break;case"input":Ox(s,o),We("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},We("invalid",s);break;case"textarea":Dx(s,o),We("invalid",s)}Lu(n,o),a=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?s.textContent!==c&&(o.suppressHydrationWarning!==!0&&ic(s.textContent,c,e),a=["children",c]):typeof c=="number"&&s.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&ic(s.textContent,c,e),a=["children",""+c]):Ho.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&We("scroll",s)}switch(n){case"input":Ll(s),Mx(s,o,!0);break;case"textarea":Ll(s),Lx(s);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(s.onclick=lc)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{i=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$x(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=i.createElement(n,{is:s.is}):(e=i.createElement(n),n==="select"&&(i=e,s.multiple?i.multiple=!0:s.size&&(i.size=s.size))):e=i.createElementNS(e,n),e[Hn]=t,e[gi]=s,Xv(e,t,!1,!1),t.stateNode=e;e:{switch(i=$u(n,s),n){case"dialog":We("cancel",e),We("close",e),a=s;break;case"iframe":case"object":case"embed":We("load",e),a=s;break;case"video":case"audio":for(a=0;a<hi.length;a++)We(hi[a],e);a=s;break;case"source":We("error",e),a=s;break;case"img":case"image":case"link":We("error",e),We("load",e),a=s;break;case"details":We("toggle",e),a=s;break;case"input":Ox(e,s),a=Ou(e,s),We("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=Je({},s,{value:void 0}),We("invalid",e);break;case"textarea":Dx(e,s),a=Du(e,s),We("invalid",e);break;default:a=s}Lu(n,a),c=a;for(o in c)if(c.hasOwnProperty(o)){var d=c[o];o==="style"?Bx(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&zx(e,d)):o==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Go(e,d):typeof d=="number"&&Go(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ho.hasOwnProperty(o)?d!=null&&o==="onScroll"&&We("scroll",e):d!=null&&wu(e,o,d,i))}switch(n){case"input":Ll(e),Mx(e,s,!1);break;case"textarea":Ll(e),Lx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+zr(s.value));break;case"select":e.multiple=!!s.multiple,o=s.value,o!=null?Aa(e,!!s.multiple,o,!1):s.defaultValue!=null&&Aa(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=lc)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Nt(t),null;case 6:if(e&&t.stateNode!=null)Jv(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(Q(166));if(n=Hs(wi.current),Hs(Wn.current),pc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Hn]=t,(o=s.nodeValue!==n)&&(e=Gt,e!==null))switch(e.tag){case 3:ic(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ic(s.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Hn]=t,t.stateNode=s}return Nt(t),null;case 13:if(Ke(et),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ye&&Yt!==null&&t.mode&1&&!(t.flags&128))nv(),Ka(),t.flags|=98560,o=!1;else if(o=pc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(Q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Q(317));o[Hn]=t}else Ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nt(t),o=!1}else Cn!==null&&(xm(Cn),Cn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||et.current&1?dt===0&&(dt=3):ym())),t.updateQueue!==null&&(t.flags|=4),Nt(t),null);case 4:return Xa(),am(e,t),e===null&&pi(t.stateNode.containerInfo),Nt(t),null;case 10:return Of(t.type._context),Nt(t),null;case 17:return $t(t.type)&&dc(),Nt(t),null;case 19:if(Ke(et),o=t.memoizedState,o===null)return Nt(t),null;if(s=(t.flags&128)!==0,i=o.rendering,i===null)if(s)Ei(o,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=jc(e),i!==null){for(t.flags|=128,Ei(o,!1),s=i.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)o=n,e=s,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ve(et,et.current&1|2),t.child}e=e.sibling}o.tail!==null&&it()>to&&(t.flags|=128,s=!0,Ei(o,!1),t.lanes=4194304)}else{if(!s)if(e=jc(i),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ye)return Nt(t),null}else 2*it()-o.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,s=!0,Ei(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=it(),t.sibling=null,n=et.current,Ve(et,s?n&1|2:n&1),t):(Nt(t),null);case 22:case 23:return vm(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Xt&1073741824&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function Kk(e,t){switch(Ef(t),t.tag){case 1:return $t(t.type)&&dc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(),Ke(Lt),Ke(jt),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lf(t),null;case 13:if(Ke(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));Ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(et),null;case 4:return Xa(),null;case 10:return Of(t.type._context),null;case 22:case 23:return vm(),null;case 24:return null;default:return null}}var Tc=!1,St=!1,Qk=typeof WeakSet=="function"?WeakSet:Set,le=null;function Ja(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){rt(e,t,s)}else n.current=null}function om(e,t,n){try{n()}catch(s){rt(e,t,s)}}var ey=!1;function Gk(e,t){if(vf=Yl,e=Ag(),df(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch(N){n=null;break e}var i=0,c=-1,d=-1,u=0,h=0,m=e,v=null;t:for(;;){for(var x;m!==n||a!==0&&m.nodeType!==3||(c=i+a),m!==o||s!==0&&m.nodeType!==3||(d=i+s),m.nodeType===3&&(i+=m.nodeValue.length),(x=m.firstChild)!==null;)v=m,m=x;for(;;){if(m===e)break t;if(v===n&&++u===a&&(c=i),v===o&&++h===s&&(d=i),(x=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=x}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(yf={focusedElem:e,selectionRange:n},Yl=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var b=j.memoizedProps,w=j.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:kn(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(N){rt(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return j=ey,ey=!1,j}function _i(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&om(t,n,o)}a=a.next}while(a!==s)}}function Rc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function im(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ty(e){var t=e.alternate;t!==null&&(e.alternate=null,ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hn],delete t[gi],delete t[Nf],delete t[Rk],delete t[Ak])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ny(e){return e.tag===5||e.tag===3||e.tag===4}function ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ny(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lm(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lc));else if(s!==4&&(e=e.child,e!==null))for(lm(e,t,n),e=e.sibling;e!==null;)lm(e,t,n),e=e.sibling}function cm(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}var gt=null,En=!1;function Jr(e,t,n){for(n=n.child;n!==null;)sy(e,t,n),n=n.sibling}function sy(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(ql,n)}catch(c){}switch(n.tag){case 5:St||Ja(n,t);case 6:var s=gt,a=En;gt=null,Jr(e,t,n),gt=s,En=a,gt!==null&&(En?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(En?(e=gt,n=n.stateNode,e.nodeType===8?wf(e.parentNode,n):e.nodeType===1&&wf(e,n),oi(e)):wf(gt,n.stateNode));break;case 4:s=gt,a=En,gt=n.stateNode.containerInfo,En=!0,Jr(e,t,n),gt=s,En=a;break;case 0:case 11:case 14:case 15:if(!St&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&om(n,t,i),a=a.next}while(a!==s)}Jr(e,t,n);break;case 1:if(!St&&(Ja(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(c){rt(n,t,c)}Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:n.mode&1?(St=(s=St)||n.memoizedState!==null,Jr(e,t,n),St=s):Jr(e,t,n);break;default:Jr(e,t,n)}}function ay(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qk),t.forEach(function(s){var a=s2.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function _n(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:gt=c.stateNode,En=!1;break e;case 3:gt=c.stateNode.containerInfo,En=!0;break e;case 4:gt=c.stateNode.containerInfo,En=!0;break e}c=c.return}if(gt===null)throw Error(Q(160));sy(o,i,a),gt=null,En=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(u){rt(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)oy(t,e),t=t.sibling}function oy(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_n(t,e),Qn(e),s&4){try{_i(3,e,e.return),Rc(3,e)}catch(b){rt(e,e.return,b)}try{_i(5,e,e.return)}catch(b){rt(e,e.return,b)}}break;case 1:_n(t,e),Qn(e),s&512&&n!==null&&Ja(n,n.return);break;case 5:if(_n(t,e),Qn(e),s&512&&n!==null&&Ja(n,n.return),e.flags&32){var a=e.stateNode;try{Go(a,"")}catch(b){rt(e,e.return,b)}}if(s&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&Ix(a,o),$u(c,i);var u=$u(c,o);for(i=0;i<d.length;i+=2){var h=d[i],m=d[i+1];h==="style"?Bx(a,m):h==="dangerouslySetInnerHTML"?zx(a,m):h==="children"?Go(a,m):wu(a,h,m,u)}switch(c){case"input":Iu(a,o);break;case"textarea":Fx(a,o);break;case"select":var v=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?Aa(a,!!o.multiple,x,!1):v!==!!o.multiple&&(o.defaultValue!=null?Aa(a,!!o.multiple,o.defaultValue,!0):Aa(a,!!o.multiple,o.multiple?[]:"",!1))}a[gi]=o}catch(b){rt(e,e.return,b)}}break;case 6:if(_n(t,e),Qn(e),s&4){if(e.stateNode===null)throw Error(Q(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(b){rt(e,e.return,b)}}break;case 3:if(_n(t,e),Qn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{oi(t.containerInfo)}catch(b){rt(e,e.return,b)}break;case 4:_n(t,e),Qn(e);break;case 13:_n(t,e),Qn(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(fm=it())),s&4&&ay(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(St=(u=St)||h,_n(t,e),St=u):_n(t,e),Qn(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(le=e,h=e.child;h!==null;){for(m=le=h;le!==null;){switch(v=le,x=v.child,v.tag){case 0:case 11:case 14:case 15:_i(4,v,v.return);break;case 1:Ja(v,v.return);var j=v.stateNode;if(typeof j.componentWillUnmount=="function"){s=v,n=v.return;try{t=s,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(b){rt(s,n,b)}}break;case 5:Ja(v,v.return);break;case 22:if(v.memoizedState!==null){cy(m);continue}}x!==null?(x.return=v,le=x):cy(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{a=m.stateNode,u?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=m.stateNode,d=m.memoizedProps.style,i=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=Ux("display",i))}catch(b){rt(e,e.return,b)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(b){rt(e,e.return,b)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:_n(t,e),Qn(e),s&4&&ay(e);break;case 21:break;default:_n(t,e),Qn(e)}}function Qn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ny(n)){var s=n;break e}n=n.return}throw Error(Q(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Go(a,""),s.flags&=-33);var o=ry(e);cm(e,o,a);break;case 3:case 4:var i=s.stateNode.containerInfo,c=ry(e);lm(e,c,i);break;default:throw Error(Q(161))}}catch(d){rt(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yk(e,t,n){le=e,iy(e)}function iy(e,t,n){for(var s=(e.mode&1)!==0;le!==null;){var a=le,o=a.child;if(a.tag===22&&s){var i=a.memoizedState!==null||Tc;if(!i){var c=a.alternate,d=c!==null&&c.memoizedState!==null||St;c=Tc;var u=St;if(Tc=i,(St=d)&&!u)for(le=a;le!==null;)i=le,d=i.child,i.tag===22&&i.memoizedState!==null?dy(a):d!==null?(d.return=i,le=d):dy(a);for(;o!==null;)le=o,iy(o),o=o.sibling;le=a,Tc=c,St=u}ly(e)}else a.subtreeFlags&8772&&o!==null?(o.return=a,le=o):ly(e)}}function ly(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||Rc(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!St)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:kn(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&cv(t,o,s);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}cv(t,i,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&oi(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}St||t.flags&512&&im(t)}catch(v){rt(t,t.return,v)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function cy(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function dy(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rc(4,t)}catch(d){rt(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(d){rt(t,a,d)}}var o=t.return;try{im(t)}catch(d){rt(t,o,d)}break;case 5:var i=t.return;try{im(t)}catch(d){rt(t,i,d)}}}catch(d){rt(t,t.return,d)}if(t===e){le=null;break}var c=t.sibling;if(c!==null){c.return=t.return,le=c;break}le=t.return}}var Xk=Math.ceil,Ac=mr.ReactCurrentDispatcher,dm=mr.ReactCurrentOwner,mn=mr.ReactCurrentBatchConfig,Fe=0,mt=null,lt=null,vt=0,Xt=0,eo=Qr(0),dt=0,Pi=null,Ks=0,Oc=0,um=0,Ti=null,Ut=null,fm=0,to=1/0,jr=null,Ic=!1,mm=null,es=null,Mc=!1,ts=null,Dc=0,Ri=0,hm=null,Fc=-1,Lc=0;function At(){return Fe&6?it():Fc!==-1?Fc:Fc=it()}function ns(e){return e.mode&1?Fe&2&&vt!==0?vt&-vt:Ik.transition!==null?(Lc===0&&(Lc=rg()),Lc):(e=ze,e!==0||(e=window.event,e=e===void 0?16:fg(e.type)),e):1}function Pn(e,t,n,s){if(50<Ri)throw Ri=0,hm=null,Error(Q(185));ti(e,n,s),(!(Fe&2)||e!==mt)&&(e===mt&&(!(Fe&2)&&(Oc|=n),dt===4&&rs(e,vt)),Bt(e,s),n===1&&Fe===0&&!(t.mode&1)&&(to=it()+500,fc&&Yr()))}function Bt(e,t){var n=e.callbackNode;IC(e,t);var s=Kl(e,e===mt?vt:0);if(s===0)n!==null&&eg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&eg(n),t===1)e.tag===0?Ok(fy.bind(null,e)):Xg(fy.bind(null,e)),Pk(function(){!(Fe&6)&&Yr()}),n=null;else{switch(sg(s)){case 1:n=Wu;break;case 4:n=tg;break;case 16:n=Vl;break;case 536870912:n=ng;break;default:n=Vl}n=by(n,uy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uy(e,t){if(Fc=-1,Lc=0,Fe&6)throw Error(Q(327));var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var s=Kl(e,e===mt?vt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=$c(e,s);else{t=s;var a=Fe;Fe|=2;var o=hy();(mt!==e||vt!==t)&&(jr=null,to=it()+500,Gs(e,t));do try{e2();break}catch(c){my(e,c)}while(!0);Af(),Ac.current=o,Fe=a,lt!==null?t=0:(mt=null,vt=0,t=dt)}if(t!==0){if(t===2&&(a=Ku(e),a!==0&&(s=a,t=pm(e,a))),t===1)throw n=Pi,Gs(e,0),rs(e,s),Bt(e,it()),n;if(t===6)rs(e,s);else{if(a=e.current.alternate,!(s&30)&&!Zk(a)&&(t=$c(e,s),t===2&&(o=Ku(e),o!==0&&(s=o,t=pm(e,o))),t===1))throw n=Pi,Gs(e,0),rs(e,s),Bt(e,it()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(Q(345));case 2:Ys(e,Ut,jr);break;case 3:if(rs(e,s),(s&130023424)===s&&(t=fm+500-it(),10<t)){if(Kl(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){At(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=jf(Ys.bind(null,e,Ut,jr),t);break}Ys(e,Ut,jr);break;case 4:if(rs(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var i=31-Nn(s);o=1<<i,i=t[i],i>a&&(a=i),s&=~o}if(s=a,s=it()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Xk(s/1960))-s,10<s){e.timeoutHandle=jf(Ys.bind(null,e,Ut,jr),s);break}Ys(e,Ut,jr);break;case 5:Ys(e,Ut,jr);break;default:throw Error(Q(329))}}}return Bt(e,it()),e.callbackNode===n?uy.bind(null,e):null}function pm(e,t){var n=Ti;return e.current.memoizedState.isDehydrated&&(Gs(e,t).flags|=256),e=$c(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&xm(t)),e}function xm(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function Zk(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],o=a.getSnapshot;a=a.value;try{if(!Sn(o(),a))return!1}catch(i){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rs(e,t){for(t&=~um,t&=~Oc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nn(t),s=1<<n;e[n]=-1,t&=~s}}function fy(e){if(Fe&6)throw Error(Q(327));no();var t=Kl(e,0);if(!(t&1))return Bt(e,it()),null;var n=$c(e,t);if(e.tag!==0&&n===2){var s=Ku(e);s!==0&&(t=s,n=pm(e,s))}if(n===1)throw n=Pi,Gs(e,0),rs(e,t),Bt(e,it()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ys(e,Ut,jr),Bt(e,it()),null}function gm(e,t){var n=Fe;Fe|=1;try{return e(t)}finally{Fe=n,Fe===0&&(to=it()+500,fc&&Yr())}}function Qs(e){ts!==null&&ts.tag===0&&!(Fe&6)&&no();var t=Fe;Fe|=1;var n=mn.transition,s=ze;try{if(mn.transition=null,ze=1,e)return e()}finally{ze=s,mn.transition=n,Fe=t,!(Fe&6)&&Yr()}}function vm(){Xt=eo.current,Ke(eo)}function Gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_k(n)),lt!==null)for(n=lt.return;n!==null;){var s=n;switch(Ef(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&dc();break;case 3:Xa(),Ke(Lt),Ke(jt),zf();break;case 5:Lf(s);break;case 4:Xa();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:Of(s.type._context);break;case 22:case 23:vm()}n=n.return}if(mt=e,lt=e=ss(e.current,null),vt=Xt=t,dt=0,Pi=null,um=Oc=Ks=0,Ut=Ti=null,qs!==null){for(t=0;t<qs.length;t++)if(n=qs[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,o=n.pending;if(o!==null){var i=o.next;o.next=a,s.next=i}n.pending=s}qs=null}return e}function my(e,t){do{var n=lt;try{if(Af(),wc.current=kc,Nc){for(var s=tt.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Nc=!1}if(Ws=0,ft=ct=tt=null,Ni=!1,Si=0,dm.current=null,n===null||n.return===null){dt=1,Pi=t,lt=null;break}e:{var o=e,i=n.return,c=n,d=t;if(t=vt,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,h=c,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var v=h.alternate;v?(h.updateQueue=v.updateQueue,h.memoizedState=v.memoizedState,h.lanes=v.lanes):(h.updateQueue=null,h.memoizedState=null)}var x=Lv(i);if(x!==null){x.flags&=-257,$v(x,i,c,o,t),x.mode&1&&Fv(o,u,t),t=x,d=u;var j=t.updateQueue;if(j===null){var b=new Set;b.add(d),t.updateQueue=b}else j.add(d);break e}else{if(!(t&1)){Fv(o,u,t),ym();break e}d=Error(Q(426))}}else if(Ye&&c.mode&1){var w=Lv(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),$v(w,i,c,o,t),Tf(Za(d,c));break e}}o=d=Za(d,c),dt!==4&&(dt=2),Ti===null?Ti=[o]:Ti.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Mv(o,d,t);lv(o,y);break e;case 1:c=d;var p=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(es===null||!es.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=Dv(o,c,t);lv(o,N);break e}}o=o.return}while(o!==null)}xy(n)}catch(S){t=S,lt===n&&n!==null&&(lt=n=n.return);continue}break}while(!0)}function hy(){var e=Ac.current;return Ac.current=kc,e===null?kc:e}function ym(){(dt===0||dt===3||dt===2)&&(dt=4),mt===null||!(Ks&268435455)&&!(Oc&268435455)||rs(mt,vt)}function $c(e,t){var n=Fe;Fe|=2;var s=hy();(mt!==e||vt!==t)&&(jr=null,Gs(e,t));do try{Jk();break}catch(a){my(e,a)}while(!0);if(Af(),Fe=n,Ac.current=s,lt!==null)throw Error(Q(261));return mt=null,vt=0,dt}function Jk(){for(;lt!==null;)py(lt)}function e2(){for(;lt!==null&&!CC();)py(lt)}function py(e){var t=yy(e.alternate,e,Xt);e.memoizedProps=e.pendingProps,t===null?xy(e):lt=t,dm.current=null}function xy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kk(n,t),n!==null){n.flags&=32767,lt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dt=6,lt=null;return}}else if(n=Wk(n,t,Xt),n!==null){lt=n;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);dt===0&&(dt=5)}function Ys(e,t,n){var s=ze,a=mn.transition;try{mn.transition=null,ze=1,t2(e,t,n,s)}finally{mn.transition=a,ze=s}return null}function t2(e,t,n,s){do no();while(ts!==null);if(Fe&6)throw Error(Q(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(MC(e,o),e===mt&&(lt=mt=null,vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mc||(Mc=!0,by(Vl,function(){return no(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=mn.transition,mn.transition=null;var i=ze;ze=1;var c=Fe;Fe|=4,dm.current=null,Gk(e,n),oy(n,e),jk(yf),Yl=!!vf,yf=vf=null,e.current=n,Yk(n),kC(),Fe=c,ze=i,mn.transition=o}else e.current=n;if(Mc&&(Mc=!1,ts=e,Dc=a),o=e.pendingLanes,o===0&&(es=null),PC(n.stateNode),Bt(e,it()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(Ic)throw Ic=!1,e=mm,mm=null,e;return Dc&1&&e.tag!==0&&no(),o=e.pendingLanes,o&1?e===hm?Ri++:(Ri=0,hm=e):Ri=0,Yr(),null}function no(){if(ts!==null){var e=sg(Dc),t=mn.transition,n=ze;try{if(mn.transition=null,ze=16>e?16:e,ts===null)var s=!1;else{if(e=ts,ts=null,Dc=0,Fe&6)throw Error(Q(331));var a=Fe;for(Fe|=4,le=e.current;le!==null;){var o=le,i=o.child;if(le.flags&16){var c=o.deletions;if(c!==null){for(var d=0;d<c.length;d++){var u=c[d];for(le=u;le!==null;){var h=le;switch(h.tag){case 0:case 11:case 15:_i(8,h,o)}var m=h.child;if(m!==null)m.return=h,le=m;else for(;le!==null;){h=le;var v=h.sibling,x=h.return;if(ty(h),h===u){le=null;break}if(v!==null){v.return=x,le=v;break}le=x}}}var j=o.alternate;if(j!==null){var b=j.child;if(b!==null){j.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}le=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,le=i;else e:for(;le!==null;){if(o=le,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_i(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,le=y;break e}le=o.return}}var p=e.current;for(le=p;le!==null;){i=le;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,le=g;else e:for(i=p;le!==null;){if(c=le,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Rc(9,c)}}catch(S){rt(c,c.return,S)}if(c===i){le=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,le=N;break e}le=c.return}}if(Fe=a,Yr(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(ql,e)}catch(S){}s=!0}return s}finally{ze=n,mn.transition=t}}return!1}function gy(e,t,n){t=Za(n,t),t=Mv(e,t,1),e=Zr(e,t,1),t=At(),e!==null&&(ti(e,1,t),Bt(e,t))}function rt(e,t,n){if(e.tag===3)gy(e,e,n);else for(;t!==null;){if(t.tag===3){gy(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(es===null||!es.has(s))){e=Za(n,e),e=Dv(t,e,1),t=Zr(t,e,1),e=At(),t!==null&&(ti(t,1,e),Bt(t,e));break}}t=t.return}}function n2(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=At(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(vt&n)===n&&(dt===4||dt===3&&(vt&130023424)===vt&&500>it()-fm?Gs(e,0):um|=n),Bt(e,t)}function vy(e,t){t===0&&(e.mode&1?(t=Wl,Wl<<=1,!(Wl&130023424)&&(Wl=4194304)):t=1);var n=At();e=vr(e,t),e!==null&&(ti(e,t,n),Bt(e,n))}function r2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vy(e,n)}function s2(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(Q(314))}s!==null&&s.delete(t),vy(e,n)}var yy;yy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)zt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zt=!1,Hk(e,t,n);zt=!!(e.flags&131072)}else zt=!1,Ye&&t.flags&1048576&&Zg(t,hc,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Pc(e,t),e=t.pendingProps;var a=qa(t,jt.current);Ya(t,n),a=Vf(null,t,s,e,a,n);var o=qf();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(s)?(o=!0,uc(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Df(t),a.updater=Ec,t.stateNode=a,a._reactInternals=t,Yf(t,s,e,n),t=em(null,t,s,!0,o,n)):(t.tag=0,Ye&&o&&kf(t),Rt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Pc(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=o2(s),e=kn(s,e),a){case 0:t=Jf(null,t,s,e,n);break e;case 1:t=Hv(null,t,s,e,n);break e;case 11:t=zv(null,t,s,e,n);break e;case 14:t=Uv(null,t,s,kn(s.type,e),n);break e}throw Error(Q(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Jf(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Hv(e,t,s,a,n);case 3:e:{if(Wv(t),e===null)throw Error(Q(387));s=t.pendingProps,o=t.memoizedState,a=o.element,iv(e,t),bc(t,s,null,n);var i=t.memoizedState;if(s=i.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Za(Error(Q(423)),t),t=Kv(e,t,s,n,a);break e}else if(s!==a){a=Za(Error(Q(424)),t),t=Kv(e,t,s,n,a);break e}else for(Yt=Kr(t.stateNode.containerInfo.firstChild),Gt=t,Ye=!0,Cn=null,n=av(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ka(),s===a){t=br(e,t,n);break e}Rt(e,t,s,n)}t=t.child}return t;case 5:return dv(t),e===null&&Pf(t),s=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,bf(s,a)?i=null:o!==null&&bf(s,o)&&(t.flags|=32),qv(e,t),Rt(e,t,i,n),t.child;case 6:return e===null&&Pf(t),null;case 13:return Qv(e,t,n);case 4:return Ff(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Qa(t,null,s,n):Rt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),zv(e,t,s,a,n);case 7:return Rt(e,t,t.pendingProps,n),t.child;case 8:return Rt(e,t,t.pendingProps.children,n),t.child;case 12:return Rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ve(gc,s._currentValue),s._currentValue=i,o!==null)if(Sn(o.value,i)){if(o.children===a.children&&!Lt.current){t=br(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var d=c.firstContext;d!==null;){if(d.context===s){if(o.tag===1){d=yr(-1,n&-n),d.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?d.next=d:(d.next=h.next,h.next=d),u.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),If(o.return,n,t),c.lanes|=n;break}d=d.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Q(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),If(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Rt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Ya(t,n),a=un(a),s=s(a),t.flags|=1,Rt(e,t,s,n),t.child;case 14:return s=t.type,a=kn(s,t.pendingProps),a=kn(s.type,a),Uv(e,t,s,a,n);case 15:return Bv(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Pc(e,t),t.tag=1,$t(s)?(e=!0,uc(t)):e=!1,Ya(t,n),Ov(t,s,a),Yf(t,s,a,n),em(null,t,s,!0,e,n);case 19:return Yv(e,t,n);case 22:return Vv(e,t,n)}throw Error(Q(156,t.tag))};function by(e,t){return Jx(e,t)}function a2(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,n,s){return new a2(e,t,n,s)}function bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o2(e){if(typeof e=="function")return bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cu)return 11;if(e===_u)return 14}return 2}function ss(e,t){var n=e.alternate;return n===null?(n=hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zc(e,t,n,s,a,o){var i=2;if(s=e,typeof e=="function")bm(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ra:return Xs(n.children,a,o,t);case Nu:i=8,a|=8;break;case Su:return e=hn(12,n,t,a|2),e.elementType=Su,e.lanes=o,e;case ku:return e=hn(13,n,t,a),e.elementType=ku,e.lanes=o,e;case Eu:return e=hn(19,n,t,a),e.elementType=Eu,e.lanes=o,e;case Px:return Uc(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ex:i=10;break e;case _x:i=9;break e;case Cu:i=11;break e;case _u:i=14;break e;case $r:i=16,s=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=hn(i,n,t,a),t.elementType=e,t.type=s,t.lanes=o,t}function Xs(e,t,n,s){return e=hn(7,e,s,t),e.lanes=n,e}function Uc(e,t,n,s){return e=hn(22,e,s,t),e.elementType=Px,e.lanes=n,e.stateNode={isHidden:!1},e}function jm(e,t,n){return e=hn(6,e,null,t),e.lanes=n,e}function wm(e,t,n){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i2(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qu(0),this.expirationTimes=Qu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Nm(e,t,n,s,a,o,i,c,d){return e=new i2(e,t,n,c,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(o),e}function l2(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ta,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function jy(e){if(!e)return Gr;e=e._reactInternals;e:{if($s(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var n=e.type;if($t(n))return Gg(e,n,t)}return t}function wy(e,t,n,s,a,o,i,c,d){return e=Nm(n,s,!0,e,a,o,i,c,d),e.context=jy(null),n=e.current,s=At(),a=ns(n),o=yr(s,a),o.callback=t!=null?t:null,Zr(n,o,a),e.current.lanes=a,ti(e,a,s),Bt(e,s),e}function Bc(e,t,n,s){var a=t.current,o=At(),i=ns(a);return n=jy(n),t.context===null?t.context=n:t.pendingContext=n,t=yr(o,i),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Zr(a,t,i),e!==null&&(Pn(e,a,i,o),yc(e,a,i)),i}function Vc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ny(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sm(e,t){Ny(e,t),(e=e.alternate)&&Ny(e,t)}function c2(){return null}var Sy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cm(e){this._internalRoot=e}qc.prototype.render=Cm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Bc(e,t,null,null)},qc.prototype.unmount=Cm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qs(function(){Bc(null,e,null,null)}),t[hr]=null}};function qc(e){this._internalRoot=e}qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ig();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qr.length&&t!==0&&t<qr[n].priority;n++);qr.splice(n,0,e),n===0&&dg(e)}};function km(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cy(){}function d2(e,t,n,s,a){if(a){if(typeof s=="function"){var o=s;s=function(){var u=Vc(i);o.call(u)}}var i=wy(t,s,e,0,null,!1,!1,"",Cy);return e._reactRootContainer=i,e[hr]=i.current,pi(e.nodeType===8?e.parentNode:e),Qs(),i}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var c=s;s=function(){var u=Vc(d);c.call(u)}}var d=Nm(e,0,!1,null,null,!1,!1,"",Cy);return e._reactRootContainer=d,e[hr]=d.current,pi(e.nodeType===8?e.parentNode:e),Qs(function(){Bc(t,d,n,s)}),d}function Wc(e,t,n,s,a){var o=n._reactRootContainer;if(o){var i=o;if(typeof a=="function"){var c=a;a=function(){var d=Vc(i);c.call(d)}}Bc(t,i,e,a)}else i=d2(n,t,e,a,s);return Vc(i)}ag=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ei(t.pendingLanes);n!==0&&(Gu(t,n|1),Bt(t,it()),!(Fe&6)&&(to=it()+500,Yr()))}break;case 13:Qs(function(){var s=vr(e,1);if(s!==null){var a=At();Pn(s,e,1,a)}}),Sm(e,1)}},Yu=function(e){if(e.tag===13){var t=vr(e,134217728);if(t!==null){var n=At();Pn(t,e,134217728,n)}Sm(e,134217728)}},og=function(e){if(e.tag===13){var t=ns(e),n=vr(e,t);if(n!==null){var s=At();Pn(n,e,t,s)}Sm(e,t)}},ig=function(){return ze},lg=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}},Bu=function(e,t,n){switch(t){case"input":if(Iu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=cc(s);if(!a)throw Error(Q(90));Ax(s),Iu(s,a)}}}break;case"textarea":Fx(e,n);break;case"select":t=n.value,t!=null&&Aa(e,!!n.multiple,t,!1)}},Wx=gm,Kx=Qs;var u2={usingClientEntryPoint:!1,Events:[vi,Ba,cc,qx,Hx,gm]},Ai={findFiberByHostInstance:zs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},f2={bundleType:Ai.bundleType,version:Ai.version,rendererPackageName:Ai.rendererPackageName,rendererConfig:Ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xx(e),e===null?null:e.stateNode},findFiberByHostInstance:Ai.findFiberByHostInstance||c2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kc.isDisabled&&Kc.supportsFiber)try{ql=Kc.inject(f2),qn=Kc}catch(e){}}Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u2,Wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!km(t))throw Error(Q(200));return l2(e,t,null,n)},Wt.createRoot=function(e,t){if(!km(e))throw Error(Q(299));var n=!1,s="",a=Sy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Nm(e,1,!1,null,null,n,!1,s,a),e[hr]=t.current,pi(e.nodeType===8?e.parentNode:e),new Cm(t)},Wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=Xx(t),e=e===null?null:e.stateNode,e},Wt.flushSync=function(e){return Qs(e)},Wt.hydrate=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Wc(null,e,t,!0,n)},Wt.hydrateRoot=function(e,t,n){if(!km(e))throw Error(Q(405));var s=n!=null&&n.hydratedSources||null,a=!1,o="",i=Sy;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=wy(t,null,e,1,n!=null?n:null,a,!1,o,i),e[hr]=t.current,pi(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new qc(t)},Wt.render=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Wc(null,e,t,!1,n)},Wt.unmountComponentAtNode=function(e){if(!Hc(e))throw Error(Q(40));return e._reactRootContainer?(Qs(function(){Wc(null,null,e,!1,function(){e._reactRootContainer=null,e[hr]=null})}),!0):!1},Wt.unstable_batchedUpdates=gm,Wt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Hc(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Wc(e,t,n,!1,s)},Wt.version="18.3.1-next-f1338f8080-20240426";function ky(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ky)}catch(e){console.error(e)}}ky(),jx.exports=Wt;var Zs=jx.exports;const Ey=nt(Zs);var _y,Py=Zs;_y=Py.createRoot,Py.hydrateRoot;var Js=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(){}},m2=(SS=class extends Js{constructor(){super();ie(this,pa);ie(this,js);ie(this,Co);J(this,Co,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,js)||this.setEventListener(E(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,js))==null||t.call(this),J(this,js,void 0))}setEventListener(t){var n;J(this,Co,t),(n=E(this,js))==null||n.call(this),J(this,js,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){E(this,pa)!==t&&(J(this,pa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,pa)=="boolean"?E(this,pa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},pa=new WeakMap,js=new WeakMap,Co=new WeakMap,SS),Em=new m2,h2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},p2=(CS=class{constructor(){ie(this,ws,h2);ie(this,Wp,!1)}setTimeoutProvider(e){J(this,ws,e)}setTimeout(e,t){return E(this,ws).setTimeout(e,t)}clearTimeout(e){E(this,ws).clearTimeout(e)}setInterval(e,t){return E(this,ws).setInterval(e,t)}clearInterval(e){E(this,ws).clearInterval(e)}},ws=new WeakMap,Wp=new WeakMap,CS),ea=new p2;function x2(e){setTimeout(e,0)}var g2=typeof window=="undefined"||"Deno"in globalThis;function Ct(){}function v2(e,t){return typeof e=="function"?e(t):e}function _m(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ty(e,t){return Math.max(e+(t||0)-Date.now(),0)}function as(e,t){return typeof e=="function"?e(t):e}function pn(e,t){return typeof e=="function"?e(t):e}function Ry(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:o,queryKey:i,stale:c}=e;if(i){if(s){if(t.queryHash!==Pm(i,t.options))return!1}else if(!Oi(t.queryKey,i))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function Ay(e,t){const{exact:n,status:s,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ta(t.options.mutationKey)!==ta(o))return!1}else if(!Oi(t.options.mutationKey,o))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function Pm(e,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(e)}function ta(e){return JSON.stringify(e,(t,n)=>Rm(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Oi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oi(e[n],t[n])):!1}var y2=Object.prototype.hasOwnProperty;function Tm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Oy(e)&&Oy(t);if(!s&&!(Rm(e)&&Rm(t)))return t;const o=(s?e:Object.keys(e)).length,i=s?t:Object.keys(t),c=i.length,d=s?new Array(c):{};let u=0;for(let h=0;h<c;h++){const m=s?h:i[h],v=e[m],x=t[m];if(v===x){d[m]=v,(s?h<o:y2.call(e,m))&&u++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){d[m]=x;continue}const j=Tm(v,x,n+1);d[m]=j,j===v&&u++}return o===c&&u===o?e:d}function Ii(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Oy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rm(e){if(!Iy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Iy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Iy(e){return Object.prototype.toString.call(e)==="[object Object]"}function b2(e){return new Promise(t=>{ea.setTimeout(t,e)})}function Am(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tm(e,t):t}function j2(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function w2(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Om=Symbol();function My(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Om?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Im(e,t){return typeof e=="function"?e(...t):!!e}function N2(e,t,n){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a!=null||(a=t()),s||(s=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Mi=(()=>{let e=()=>g2;return{isServer(){return e()},setIsServer(t){e=t}}})();function Mm(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function s(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},n.reject=a=>{s({status:"rejected",reason:a}),t(a)},n}var S2=x2;function C2(){let e=[],t=0,n=c=>{c()},s=c=>{c()},a=S2;const o=c=>{t?e.push(c):a(()=>{n(c)})},i=()=>{const c=e;e=[],c.length&&a(()=>{s(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||i()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{a=c}}}var st=C2(),k2=(kS=class extends Js{constructor(){super();ie(this,ko,!0);ie(this,Ns);ie(this,Eo);J(this,Eo,t=>{if(typeof window!="undefined"&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){E(this,Ns)||this.setEventListener(E(this,Eo))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Ns))==null||t.call(this),J(this,Ns,void 0))}setEventListener(t){var n;J(this,Eo,t),(n=E(this,Ns))==null||n.call(this),J(this,Ns,t(this.setOnline.bind(this)))}setOnline(t){E(this,ko)!==t&&(J(this,ko,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return E(this,ko)}},ko=new WeakMap,Ns=new WeakMap,Eo=new WeakMap,kS),Qc=new k2;function E2(e){return Math.min(1e3*2**e,3e4)}function Dy(e){return(e!=null?e:"online")==="online"?Qc.isOnline():!0}var Dm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fy(e){let t=!1,n=0,s;const a=Mm(),o=()=>a.status!=="pending",i=b=>{var w;if(!o()){const y=new Dm(b);v(y),(w=e.onCancel)==null||w.call(e,y)}},c=()=>{t=!0},d=()=>{t=!1},u=()=>Em.isFocused()&&(e.networkMode==="always"||Qc.isOnline())&&e.canRun(),h=()=>Dy(e.networkMode)&&e.canRun(),m=b=>{o()||(s==null||s(),a.resolve(b))},v=b=>{o()||(s==null||s(),a.reject(b))},x=()=>new Promise(b=>{var w;s=y=>{(o()||u())&&b(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var b;s=void 0,o()||(b=e.onContinue)==null||b.call(e)}),j=()=>{if(o())return;let b;const w=n===0?e.initialPromise:void 0;try{b=w!=null?w:e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(m).catch(y=>{var k,_,C;if(o())return;const p=(k=e.retry)!=null?k:Mi.isServer()?0:3,g=(_=e.retryDelay)!=null?_:E2,N=typeof g=="function"?g(n,y):g,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,y);if(t||!S){v(y);return}n++,(C=e.onFail)==null||C.call(e,n,y),b2(N).then(()=>u()?void 0:x()).then(()=>{t?v(y):j()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(s==null||s(),a),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?j():x().then(j),a)}}var Ly=(ES=class{constructor(){ie(this,xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_m(this.gcTime)&&J(this,xa,ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Mi.isServer()?1/0:5*60*1e3)}clearGcTimeout(){E(this,xa)!==void 0&&(ea.clearTimeout(E(this,xa)),J(this,xa,void 0))}},xa=new WeakMap,ES),_2=(_S=class extends Ly{constructor(t){var n;super();ie(this,sn);ie(this,ga);ie(this,_o);ie(this,bn);ie(this,va);ie(this,pt);ie(this,wl);ie(this,ya);J(this,ya,!1),J(this,wl,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,va,t.client),J(this,bn,E(this,va).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,ga,Uy(this.options)),this.state=(n=t.state)!=null?n:E(this,ga),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,pt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,wl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Uy(this.options);n.data!==void 0&&(this.setState(zy(n.data,n.dataUpdatedAt)),J(this,ga,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,bn).remove(this)}setData(t,n){const s=Am(this.state.data,t,this.options);return je(this,sn,Lr).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){je(this,sn,Lr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,a;const n=(s=E(this,pt))==null?void 0:s.promise;return(a=E(this,pt))==null||a.cancel(t),n?n.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,ga)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>pn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Om||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>as(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ty(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,bn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(E(this,pt)&&(E(this,ya)||je(this,sn,zS).call(this)?E(this,pt).cancel({revert:!0}):E(this,pt).cancelRetry()),this.scheduleGc()),E(this,bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,sn,Lr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,v,x,j,b,w,y,p,g;if(this.state.fetchStatus!=="idle"&&((d=E(this,pt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,pt))return E(this,pt).continueRetry(),E(this,pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const N=this.observers.find(S=>S.options.queryFn);N&&this.setOptions(N.options)}const s=new AbortController,a=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(J(this,ya,!0),s.signal)})},o=()=>{const N=My(this.options,n),k=(()=>{const _={client:E(this,va),queryKey:this.queryKey,meta:this.meta};return a(_),_})();return J(this,ya,!1),this.options.persister?this.options.persister(N,k,this):N(k)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,va),state:this.state,fetchFn:o};return a(N),N})();(u=this.options.behavior)==null||u.onFetch(c,this),J(this,_o,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&je(this,sn,Lr).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),J(this,pt,Fy({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof Dm&&N.revert&&this.setState({...E(this,_o),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{je(this,sn,Lr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{je(this,sn,Lr).call(this,{type:"pause"})},onContinue:()=>{je(this,sn,Lr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await E(this,pt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(x=(v=E(this,bn).config).onSuccess)==null||x.call(v,N,this),(b=(j=E(this,bn).config).onSettled)==null||b.call(j,N,this.state.error,this),N}catch(N){if(N instanceof Dm){if(N.silent)return E(this,pt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw je(this,sn,Lr).call(this,{type:"error",error:N}),(y=(w=E(this,bn).config).onError)==null||y.call(w,N,this),(g=(p=E(this,bn).config).onSettled)==null||g.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},ga=new WeakMap,_o=new WeakMap,bn=new WeakMap,va=new WeakMap,pt=new WeakMap,wl=new WeakMap,ya=new WeakMap,sn=new WeakSet,zS=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Lr=function(t){const n=s=>{var a;switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...$y(s.data,this.options),fetchMeta:(a=t.meta)!=null?a:null};case"success":const o={...s,...zy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,_o,t.manual?o:void 0),o;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),st.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,bn).notify({query:this,type:"updated",action:t})})},_S);function $y(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zy(e,t){return{data:e,dataUpdatedAt:t!=null?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function Uy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s!=null?s:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Fm=(PS=class extends Js{constructor(t,n){super();ie(this,$e);ie(this,qt);ie(this,De);ie(this,Nl);ie(this,Dt);ie(this,ba);ie(this,Po);ie(this,Rr);ie(this,Ss);ie(this,Sl);ie(this,To);ie(this,Ro);ie(this,ja);ie(this,wa);ie(this,Cs);ie(this,Ao,new Set);this.options=n,J(this,qt,t),J(this,Ss,null),J(this,Rr,Mm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,De).addObserver(this),By(E(this,De),this.options)?je(this,$e,Al).call(this):this.updateResult(),je(this,$e,Zp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lm(E(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lm(E(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,$e,Jp).call(this),je(this,$e,ex).call(this),E(this,De).removeObserver(this)}setOptions(t){const n=this.options,s=E(this,De);if(this.options=E(this,qt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof pn(this.options.enabled,E(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,$e,tx).call(this),E(this,De).setOptions(this.options),n._defaulted&&!Ii(this.options,n)&&E(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,De),observer:this});const a=this.hasListeners();a&&Vy(E(this,De),s,this.options,n)&&je(this,$e,Al).call(this),this.updateResult(),a&&(E(this,De)!==s||pn(this.options.enabled,E(this,De))!==pn(n.enabled,E(this,De))||as(this.options.staleTime,E(this,De))!==as(n.staleTime,E(this,De)))&&je(this,$e,Gp).call(this);const o=je(this,$e,Yp).call(this);a&&(E(this,De)!==s||pn(this.options.enabled,E(this,De))!==pn(n.enabled,E(this,De))||o!==E(this,Cs))&&je(this,$e,Xp).call(this,o)}getOptimisticResult(t){const n=E(this,qt).getQueryCache().build(E(this,qt),t),s=this.createResult(n,t);return T2(this,s)&&(J(this,Dt,s),J(this,Po,this.options),J(this,ba,E(this,De).state)),s}getCurrentResult(){return E(this,Dt)}trackResult(t,n){return new Proxy(t,{get:(s,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Rr).status==="pending"&&E(this,Rr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,a))})}trackProp(t){E(this,Ao).add(t)}getCurrentQuery(){return E(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,qt).defaultQueryOptions(t),s=E(this,qt).getQueryCache().build(E(this,qt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){var n;return je(this,$e,Al).call(this,{...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),E(this,Dt)))}createResult(t,n){var R;const s=E(this,De),a=this.options,o=E(this,Dt),i=E(this,ba),c=E(this,Po),u=t!==s?t.state:E(this,Nl),{state:h}=t;let m={...h},v=!1,x;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&By(t,n),D=T&&Vy(t,s,n,a);(O||D)&&(m={...m,...$y(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:j,errorUpdatedAt:b,status:w}=m;x=m.data;let y=!1;if(n.placeholderData!==void 0&&x===void 0&&w==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(T=o.data,y=!0):T=typeof n.placeholderData=="function"?n.placeholderData((R=E(this,Ro))==null?void 0:R.state.data,E(this,Ro)):n.placeholderData,T!==void 0&&(w="success",x=Am(o==null?void 0:o.data,T,n),v=!0)}if(n.select&&x!==void 0&&!y)if(o&&x===(i==null?void 0:i.data)&&n.select===E(this,Sl))x=E(this,To);else try{J(this,Sl,n.select),x=n.select(x),x=Am(o==null?void 0:o.data,x,n),J(this,To,x),J(this,Ss,null)}catch(T){J(this,Ss,T)}E(this,Ss)&&(j=E(this,Ss),x=E(this,To),b=Date.now(),w="error");const p=m.fetchStatus==="fetching",g=w==="pending",N=w==="error",S=g&&p,k=x!==void 0,C={status:w,fetchStatus:m.fetchStatus,isPending:g,isSuccess:w==="success",isError:N,isInitialLoading:S,isLoading:S,data:x,dataUpdatedAt:m.dataUpdatedAt,error:j,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:m.dataUpdateCount>u.dataUpdateCount||m.errorUpdateCount>u.errorUpdateCount,isFetching:p,isRefetching:p&&!g,isLoadingError:N&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:N&&k,isStale:$m(t,n),refetch:this.refetch,promise:E(this,Rr),isEnabled:pn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=C.data!==void 0,O=C.status==="error"&&!T,D=re=>{O?re.reject(C.error):T&&re.resolve(C.data)},B=()=>{const re=J(this,Rr,C.promise=Mm());D(re)},I=E(this,Rr);switch(I.status){case"pending":t.queryHash===s.queryHash&&D(I);break;case"fulfilled":(O||C.data!==I.value)&&B();break;case"rejected":(!O||C.error!==I.reason)&&B();break}}return C}updateResult(){const t=E(this,Dt),n=this.createResult(E(this,De),this.options);if(J(this,ba,E(this,De).state),J(this,Po,this.options),E(this,ba).data!==void 0&&J(this,Ro,E(this,De)),Ii(n,t))return;J(this,Dt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!E(this,Ao).size)return!0;const i=new Set(o!=null?o:E(this,Ao));return this.options.throwOnError&&i.add("error"),Object.keys(E(this,Dt)).some(c=>{const d=c;return E(this,Dt)[d]!==t[d]&&i.has(d)})};je(this,$e,US).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,$e,Zp).call(this)}},qt=new WeakMap,De=new WeakMap,Nl=new WeakMap,Dt=new WeakMap,ba=new WeakMap,Po=new WeakMap,Rr=new WeakMap,Ss=new WeakMap,Sl=new WeakMap,To=new WeakMap,Ro=new WeakMap,ja=new WeakMap,wa=new WeakMap,Cs=new WeakMap,Ao=new WeakMap,$e=new WeakSet,Al=function(t){je(this,$e,tx).call(this);let n=E(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ct)),n},Gp=function(){je(this,$e,Jp).call(this);const t=as(this.options.staleTime,E(this,De));if(Mi.isServer()||E(this,Dt).isStale||!_m(t))return;const s=Ty(E(this,Dt).dataUpdatedAt,t)+1;J(this,ja,ea.setTimeout(()=>{E(this,Dt).isStale||this.updateResult()},s))},Yp=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,De)):this.options.refetchInterval)!=null?t:!1},Xp=function(t){je(this,$e,ex).call(this),J(this,Cs,t),!(Mi.isServer()||pn(this.options.enabled,E(this,De))===!1||!_m(E(this,Cs))||E(this,Cs)===0)&&J(this,wa,ea.setInterval(()=>{(this.options.refetchIntervalInBackground||Em.isFocused())&&je(this,$e,Al).call(this)},E(this,Cs)))},Zp=function(){je(this,$e,Gp).call(this),je(this,$e,Xp).call(this,je(this,$e,Yp).call(this))},Jp=function(){E(this,ja)!==void 0&&(ea.clearTimeout(E(this,ja)),J(this,ja,void 0))},ex=function(){E(this,wa)!==void 0&&(ea.clearInterval(E(this,wa)),J(this,wa,void 0))},tx=function(){const t=E(this,qt).getQueryCache().build(E(this,qt),this.options);if(t===E(this,De))return;const n=E(this,De);J(this,De,t),J(this,Nl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},US=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,Dt))}),E(this,qt).getQueryCache().notify({query:E(this,De),type:"observerResultsUpdated"})})},PS);function P2(e,t){return pn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function By(e,t){return P2(e,t)||e.state.data!==void 0&&Lm(e,t,t.refetchOnMount)}function Lm(e,t,n){if(pn(t.enabled,e)!==!1&&as(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&$m(e,t)}return!1}function Vy(e,t,n,s){return(e!==t||pn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$m(e,n)}function $m(e,t){return pn(t.enabled,e)!==!1&&e.isStaleByTime(as(t.staleTime,e))}function T2(e,t){return!Ii(e.getCurrentResult(),t)}function qy(e){return{onFetch:(t,n)=>{var h,m,v,x,j;const s=t.options,a=(v=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:v.direction,o=((x=t.state.data)==null?void 0:x.pages)||[],i=((j=t.state.data)==null?void 0:j.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const u=async()=>{var g;let b=!1;const w=N=>{N2(N,()=>t.signal,()=>b=!0)},y=My(t.options,t.fetchOptions),p=async(N,S,k)=>{if(b)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return w(D),D})(),R=await y(C),{maxPages:T}=t.options,O=k?w2:j2;return{pages:O(N.pages,R,T),pageParams:O(N.pageParams,S,T)}};if(a&&o.length){const N=a==="backward",S=N?R2:Hy,k={pages:o,pageParams:i},_=S(s,k);c=await p(k,_,N)}else{const N=e!=null?e:o.length;do{const S=d===0?(g=i[0])!=null?g:s.initialPageParam:Hy(s,c);if(d>0&&S==null)break;c=await p(c,S),d++}while(d<N)}return c};t.options.persister?t.fetchFn=()=>{var b,w;return(w=(b=t.options).persister)==null?void 0:w.call(b,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Hy(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function R2(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var A2=(TS=class extends Ly{constructor(t){super();ie(this,ir);ie(this,Cl);ie(this,or);ie(this,Et);ie(this,Na);J(this,Cl,t.client),this.mutationId=t.mutationId,J(this,Et,t.mutationCache),J(this,or,[]),this.state=t.state||Wy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,or).includes(t)||(E(this,or).push(t),this.clearGcTimeout(),E(this,Et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,or,E(this,or).filter(n=>n!==t)),this.scheduleGc(),E(this,Et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,or).length||(this.state.status==="pending"?this.scheduleGc():E(this,Et).remove(this))}continue(){var t,n;return(n=(t=E(this,Na))==null?void 0:t.continue())!=null?n:this.execute(this.state.variables)}async execute(t){var i,c,d,u,h,m,v,x,j,b,w,y,p,g,N,S,k,_,C;const n=()=>{je(this,ir,Ds).call(this,{type:"continue"})},s={client:E(this,Cl),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Na,Fy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{je(this,ir,Ds).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{je(this,ir,Ds).call(this,{type:"pause"})},onContinue:n,retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Et).canRun(this)}));const a=this.state.status==="pending",o=!E(this,Na).canStart();try{if(a)n();else{je(this,ir,Ds).call(this,{type:"pending",variables:t,isPaused:o}),E(this,Et).config.onMutate&&await E(this,Et).config.onMutate(t,this,s);const T=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,s));T!==this.state.context&&je(this,ir,Ds).call(this,{type:"pending",context:T,variables:t,isPaused:o})}const R=await E(this,Na).start();return await((h=(u=E(this,Et).config).onSuccess)==null?void 0:h.call(u,R,t,this.state.context,this,s)),await((v=(m=this.options).onSuccess)==null?void 0:v.call(m,R,t,this.state.context,s)),await((j=(x=E(this,Et).config).onSettled)==null?void 0:j.call(x,R,null,this.state.variables,this.state.context,this,s)),await((w=(b=this.options).onSettled)==null?void 0:w.call(b,R,null,t,this.state.context,s)),je(this,ir,Ds).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(y=E(this,Et).config).onError)==null?void 0:p.call(y,R,t,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((N=(g=this.options).onError)==null?void 0:N.call(g,R,t,this.state.context,s))}catch(T){Promise.reject(T)}try{await((k=(S=E(this,Et).config).onSettled)==null?void 0:k.call(S,void 0,R,this.state.variables,this.state.context,this,s))}catch(T){Promise.reject(T)}try{await((C=(_=this.options).onSettled)==null?void 0:C.call(_,void 0,R,t,this.state.context,s))}catch(T){Promise.reject(T)}throw je(this,ir,Ds).call(this,{type:"error",error:R}),R}finally{E(this,Et).runNext(this)}}},Cl=new WeakMap,or=new WeakMap,Et=new WeakMap,Na=new WeakMap,ir=new WeakSet,Ds=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),st.batch(()=>{E(this,or).forEach(s=>{s.onMutationUpdate(t)}),E(this,Et).notify({mutation:this,type:"updated",action:t})})},TS);function Wy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var O2=(RS=class extends Js{constructor(t={}){super();ie(this,Ar);ie(this,zn);ie(this,kl);this.config=t,J(this,Ar,new Set),J(this,zn,new Map),J(this,kl,0)}build(t,n,s){const a=new A2({client:t,mutationCache:this,mutationId:++fu(this,kl)._,options:t.defaultMutationOptions(n),state:s});return this.add(a),a}add(t){E(this,Ar).add(t);const n=Gc(t);if(typeof n=="string"){const s=E(this,zn).get(n);s?s.push(t):E(this,zn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,Ar).delete(t)){const n=Gc(t);if(typeof n=="string"){const s=E(this,zn).get(n);if(s)if(s.length>1){const a=s.indexOf(t);a!==-1&&s.splice(a,1)}else s[0]===t&&E(this,zn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Gc(t);if(typeof n=="string"){const s=E(this,zn).get(n),a=s==null?void 0:s.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var s,a;const n=Gc(t);if(typeof n=="string"){const o=(s=E(this,zn).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(a=o==null?void 0:o.continue())!=null?a:Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{E(this,Ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,Ar).clear(),E(this,zn).clear()})}getAll(){return Array.from(E(this,Ar))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ay(n,s))}findAll(t={}){return this.getAll().filter(n=>Ay(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ct))))}},Ar=new WeakMap,zn=new WeakMap,kl=new WeakMap,RS);function Gc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var I2=(AS=class extends Js{constructor(n,s){super();ie(this,Mr);ie(this,Or);ie(this,ks);ie(this,Ht);ie(this,Ir);J(this,Or,n),this.setOptions(s),this.bindMethods(),je(this,Mr,mu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const s=this.options;this.options=E(this,Or).defaultMutationOptions(n),Ii(this.options,s)||E(this,Or).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ht),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ta(s.mutationKey)!==ta(this.options.mutationKey)?this.reset():((a=E(this,Ht))==null?void 0:a.state.status)==="pending"&&E(this,Ht).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=E(this,Ht))==null||n.removeObserver(this)}onMutationUpdate(n){je(this,Mr,mu).call(this),je(this,Mr,nx).call(this,n)}getCurrentResult(){return E(this,ks)}reset(){var n;(n=E(this,Ht))==null||n.removeObserver(this),J(this,Ht,void 0),je(this,Mr,mu).call(this),je(this,Mr,nx).call(this)}mutate(n,s){var a;return J(this,Ir,s),(a=E(this,Ht))==null||a.removeObserver(this),J(this,Ht,E(this,Or).getMutationCache().build(E(this,Or),this.options)),E(this,Ht).addObserver(this),E(this,Ht).execute(n)}},Or=new WeakMap,ks=new WeakMap,Ht=new WeakMap,Ir=new WeakMap,Mr=new WeakSet,mu=function(){var s,a;const n=(a=(s=E(this,Ht))==null?void 0:s.state)!=null?a:Wy();J(this,ks,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},nx=function(n){st.batch(()=>{var s,a,o,i,c,d,u,h;if(E(this,Ir)&&this.hasListeners()){const m=E(this,ks).variables,v=E(this,ks).context,x={client:E(this,Or),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(s=E(this,Ir)).onSuccess)==null||a.call(s,n.data,m,v,x)}catch(j){Promise.reject(j)}try{(i=(o=E(this,Ir)).onSettled)==null||i.call(o,n.data,null,m,v,x)}catch(j){Promise.reject(j)}}else if((n==null?void 0:n.type)==="error"){try{(d=(c=E(this,Ir)).onError)==null||d.call(c,n.error,m,v,x)}catch(j){Promise.reject(j)}try{(h=(u=E(this,Ir)).onSettled)==null||h.call(u,void 0,n.error,m,v,x)}catch(j){Promise.reject(j)}}}this.listeners.forEach(m=>{m(E(this,ks))})})},AS);function Ky(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function M2(e,t,n){const s=e.slice(0);return s[t]=n,s}var D2=(OS=class extends Js{constructor(t,n,s){super();ie(this,bt);ie(this,Oo);ie(this,an);ie(this,Io);ie(this,Mo);ie(this,jn);ie(this,Es);ie(this,El);ie(this,_l);ie(this,Pl);ie(this,Tl,[]);J(this,Oo,t),J(this,Mo,s),J(this,Io,[]),J(this,jn,[]),J(this,an,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&E(this,jn).forEach(t=>{t.subscribe(n=>{je(this,bt,ox).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,E(this,jn).forEach(t=>{t.destroy()})}setQueries(t,n){J(this,Io,t),J(this,Mo,n),st.batch(()=>{const s=E(this,jn),a=je(this,bt,ax).call(this,E(this,Io));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=a.map(m=>m.observer),i=o.map(m=>m.getCurrentResult()),c=s.length!==o.length,d=o.some((m,v)=>m!==s[v]),u=c||d,h=u?!0:i.some((m,v)=>{const x=E(this,an)[v];return!x||!Ii(m,x)});!u&&!h||(u&&(J(this,Tl,a),J(this,jn,o)),J(this,an,i),this.hasListeners()&&(u&&(Ky(s,o).forEach(m=>{m.destroy()}),Ky(o,s).forEach(m=>{m.subscribe(v=>{je(this,bt,ox).call(this,m,v)})})),je(this,bt,ix).call(this)))})}getCurrentResult(){return E(this,an)}getQueries(){return E(this,jn).map(t=>t.getCurrentQuery())}getObservers(){return E(this,jn)}getOptimisticResult(t,n){const s=je(this,bt,ax).call(this,t),a=s.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),o=s.map(i=>i.defaultedQueryOptions.queryHash);return[a,i=>je(this,bt,sx).call(this,i!=null?i:a,n,o),()=>je(this,bt,rx).call(this,a,s)]}},Oo=new WeakMap,an=new WeakMap,Io=new WeakMap,Mo=new WeakMap,jn=new WeakMap,Es=new WeakMap,El=new WeakMap,_l=new WeakMap,Pl=new WeakMap,Tl=new WeakMap,bt=new WeakSet,rx=function(t,n){return n.map((s,a)=>{const o=t[a];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,i=>{n.forEach(c=>{c.observer.trackProp(i)})})})},sx=function(t,n,s){if(n){const a=E(this,Pl),o=s!==void 0&&a!==void 0&&(a.length!==s.length||s.some((i,c)=>i!==a[c]));return(!E(this,Es)||E(this,an)!==E(this,_l)||o||n!==E(this,El))&&(J(this,El,n),J(this,_l,E(this,an)),s!==void 0&&J(this,Pl,s),J(this,Es,Tm(E(this,Es),n(t)))),E(this,Es)}return t},ax=function(t){const n=new Map;E(this,jn).forEach(a=>{const o=a.options.queryHash;if(!o)return;const i=n.get(o);i?i.push(a):n.set(o,[a])});const s=[];return t.forEach(a=>{var d;const o=E(this,Oo).defaultQueryOptions(a),i=(d=n.get(o.queryHash))==null?void 0:d.shift(),c=i!=null?i:new Fm(E(this,Oo),o);s.push({defaultedQueryOptions:o,observer:c})}),s},ox=function(t,n){const s=E(this,jn).indexOf(t);s!==-1&&(J(this,an,M2(E(this,an),s,n)),je(this,bt,ix).call(this))},ix=function(){var t;if(this.hasListeners()){const n=E(this,Es),s=je(this,bt,rx).call(this,E(this,an),E(this,Tl)),a=je(this,bt,sx).call(this,s,(t=E(this,Mo))==null?void 0:t.combine);n!==a&&st.batch(()=>{this.listeners.forEach(o=>{o(E(this,an))})})}},OS),F2=(IS=class extends Js{constructor(t={}){super();ie(this,lr);this.config=t,J(this,lr,new Map)}build(t,n,s){var c;const a=n.queryKey,o=(c=n.queryHash)!=null?c:Pm(a,n);let i=this.get(o);return i||(i=new _2({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){E(this,lr).has(t.queryHash)||(E(this,lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,lr).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,lr).get(t)}getAll(){return[...E(this,lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Ry(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Ry(t,s)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lr=new WeakMap,IS),L2=(MS=class{constructor(e={}){ie(this,ot);ie(this,_s);ie(this,Ps);ie(this,Do);ie(this,Fo);ie(this,Ts);ie(this,Lo);ie(this,$o);J(this,ot,e.queryCache||new F2),J(this,_s,e.mutationCache||new O2),J(this,Ps,e.defaultOptions||{}),J(this,Do,new Map),J(this,Fo,new Map),J(this,Ts,0)}mount(){fu(this,Ts)._++,E(this,Ts)===1&&(J(this,Lo,Em.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ot).onFocus())})),J(this,$o,Qc.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,ot).onOnline())})))}unmount(){var e,t;fu(this,Ts)._--,E(this,Ts)===0&&((e=E(this,Lo))==null||e.call(this),J(this,Lo,void 0),(t=E(this,$o))==null||t.call(this),J(this,$o,void 0))}isFetching(e){return E(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,_s).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,ot).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(as(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return E(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),a=E(this,ot).get(s.queryHash),o=a==null?void 0:a.state.data,i=v2(t,o);if(i!==void 0)return E(this,ot).build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>E(this,ot).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,ot);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,ot);return st.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=st.batch(()=>E(this,ot).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return st.batch(()=>{var n,s;return E(this,ot).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(s=(n=e==null?void 0:e.refetchType)!=null?n:e==null?void 0:e.type)!=null?s:"active"},t)})}refetchQueries(e,t={}){var a;const n={...t,cancelRefetch:(a=t.cancelRefetch)!=null?a:!0},s=st.batch(()=>E(this,ot).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ct)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,ot).build(this,t);return n.isStaleByTime(as(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e.behavior=qy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=qy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qc.isOnline()?E(this,_s).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ot)}getMutationCache(){return E(this,_s)}getDefaultOptions(){return E(this,Ps)}setDefaultOptions(e){J(this,Ps,e)}setQueryDefaults(e,t){E(this,Do).set(ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,Do).values()],n={};return t.forEach(s=>{Oi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){E(this,Fo).set(ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Fo).values()],n={};return t.forEach(s=>{Oi(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Ps).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Om&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Ps).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,ot).clear(),E(this,_s).clear()}},ot=new WeakMap,_s=new WeakMap,Ps=new WeakMap,Do=new WeakMap,Fo=new WeakMap,Ts=new WeakMap,Lo=new WeakMap,$o=new WeakMap,MS),Qy=f.createContext(void 0),qe=e=>{const t=f.useContext(Qy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$2=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(Qy.Provider,{value:e,children:t})),Gy=f.createContext(!1),Yy=()=>f.useContext(Gy);Gy.Provider;function z2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var U2=f.createContext(z2()),Xy=()=>f.useContext(U2),Zy=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Im(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},Jy=e=>{f.useEffect(()=>{e.clearReset()},[e])},eb=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||Im(n,[e.error,s])),tb=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a!=null?a:1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>n(s(...a)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},B2=(e,t)=>e.isLoading&&e.isFetching&&!t,zm=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Um=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function V2({queries:e,...t},n){const s=qe(),a=Yy(),o=Xy(),i=f.useMemo(()=>e.map(b=>{const w=s.defaultQueryOptions(b);return w._optimisticResults=a?"isRestoring":"optimistic",w}),[e,s,a]);i.forEach(b=>{tb(b);const w=s.getQueryCache().get(b.queryHash);Zy(b,o,w)}),Jy(o);const[c]=f.useState(()=>new D2(s,i,t)),[d,u,h]=c.getOptimisticResult(i,t.combine),m=!a&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(b=>m?c.subscribe(st.batchCalls(b)):Ct,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setQueries(i,t)},[i,t,c]);const x=d.some((b,w)=>zm(i[w],b))?d.flatMap((b,w)=>{const y=i[w];if(y&&zm(y,b)){const p=new Fm(s,y);return Um(y,p,o)}return[]}):[];if(x.length>0)throw Promise.all(x);const j=d.find((b,w)=>{const y=i[w];return y&&eb({result:b,errorResetBoundary:o,throwOnError:y.throwOnError,query:s.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(j!=null&&j.error)throw j.error;return u(h())}function q2(e,t,n){var v,x,j,b;const s=Yy(),a=Xy(),o=qe(),i=o.defaultQueryOptions(e);(x=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||x.call(v,i);const c=o.getQueryCache().get(i.queryHash);i._optimisticResults=s?"isRestoring":"optimistic",tb(i),Zy(i,a,c),Jy(a);const d=!o.getQueryCache().get(i.queryHash),[u]=f.useState(()=>new t(o,i)),h=u.getOptimisticResult(i),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(w=>{const y=m?u.subscribe(st.batchCalls(w)):Ct;return u.updateResult(),y},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(i)},[i,u]),zm(i,h))throw Um(i,u,a);if(eb({result:h,errorResetBoundary:a,throwOnError:i.throwOnError,query:c,suspense:i.suspense}))throw h.error;if((b=(j=o.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||b.call(j,i,h),i.experimental_prefetchInRender&&!Mi.isServer()&&B2(h,s)){const w=d?Um(i,u,a):c==null?void 0:c.promise;w==null||w.catch(Ct).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?h:u.trackResult(h)}function Ce(e,t){return q2(e,Fm)}function ke(e,t){const n=qe(),[s]=f.useState(()=>new I2(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const a=f.useSyncExternalStore(f.useCallback(i=>s.subscribe(st.batchCalls(i)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o=f.useCallback((i,c)=>{s.mutate(i,c).catch(Ct)},[s]);if(a.error&&Im(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** | |
| 43 | 43 | * @remix-run/router v1.23.2 |
| 44 | 44 | * |
| 45 | 45 | * Copyright (c) Remix Software Inc. |
| 46 | 46 | * |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | * This source code is licensed under the MIT license found in the |
| 48 | 48 | * LICENSE.md file in the root directory of this source tree. |
| 49 | 49 | * |
| 50 | 50 | * @license MIT |
| 51 | - */function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Di.apply(this,arguments)}var as;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(as||(as={}));const l0="popstate";function tE(e){e===void 0&&(e={});function t(a,o){let{pathname:i="/",search:c="",hash:d=""}=na(a.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Km("",{pathname:i,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(a,o){let i=a.document.querySelector("base"),c="";if(i&&i.getAttribute("href")){let d=a.location.href,u=d.indexOf("#");c=u===-1?d:d.slice(0,u)}return c+"#"+(typeof o=="string"?o:Zc(o))}function s(a,o){Xc(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return rE(t,n,s,e)}function ot(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Xc(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function nE(){return Math.random().toString(36).substr(2,8)}function c0(e,t){return{usr:e.state,key:e.key,idx:t}}function Km(e,t,n,s){return n===void 0&&(n=null),Di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?na(t):t,{state:n,key:t&&t.key||s||nE()})}function Zc(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function na(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function rE(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:o=!1}=s,i=a.history,c=as.Pop,d=null,u=h();u==null&&(u=0,i.replaceState(Di({},i.state,{idx:u}),""));function h(){return(i.state||{idx:null}).idx}function m(){c=as.Pop;let j=h(),y=j==null?null:j-u;u=j,d&&d({action:c,location:g.location,delta:y})}function b(j,y){c=as.Push;let p=Km(g.location,j,y);n&&n(p,j),u=h()+1;let x=c0(p,u),N=g.createHref(p);try{i.pushState(x,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(N)}o&&d&&d({action:c,location:g.location,delta:1})}function v(j,y){c=as.Replace;let p=Km(g.location,j,y);n&&n(p,j),u=h();let x=c0(p,u),N=g.createHref(p);i.replaceState(x,"",N),o&&d&&d({action:c,location:g.location,delta:0})}function w(j){let y=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof j=="string"?j:Zc(j);return p=p.replace(/ $/,"%20"),ot(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let g={get action(){return c},get location(){return e(a,i)},listen(j){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(l0,m),d=j,()=>{a.removeEventListener(l0,m),d=null}},createHref(j){return t(a,j)},createURL:w,encodeLocation(j){let y=w(j);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:b,replace:v,go(j){return i.go(j)}};return g}var d0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(d0||(d0={}));function sE(e,t,n){return n===void 0&&(n="/"),aE(e,t,n)}function aE(e,t,n,s){let a=typeof t=="string"?na(t):t,o=no(a.pathname||"/",n);if(o==null)return null;let i=u0(e);oE(i);let c=null;for(let d=0;c==null&&d<i.length;++d){let u=gE(o);c=pE(i[d],u)}return c}function u0(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(o,i,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(ot(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let u=os([s,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(ot(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),u0(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:mE(u,o.index),routesMeta:h})};return e.forEach((o,i)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))a(o,i);else for(let d of f0(o.path))a(o,i,d)}),t}function f0(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(s.length===0)return a?[o,""]:[o];let i=f0(s.join("/")),c=[];return c.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...i),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function oE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hE(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const iE=/^:[\w-]+$/,lE=3,cE=2,dE=1,uE=10,fE=-2,m0=e=>e==="*";function mE(e,t){let n=e.split("/"),s=n.length;return n.some(m0)&&(s+=fE),t&&(s+=cE),n.filter(a=>!m0(a)).reduce((a,o)=>a+(iE.test(o)?lE:o===""?dE:uE),s)}function hE(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function pE(e,t,n){let{routesMeta:s}=e,a={},o="/",i=[];for(let c=0;c<s.length;++c){let d=s[c],u=c===s.length-1,h=o==="/"?t:t.slice(o.length)||"/",m=Qm({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),b=d.route;if(!m)return null;Object.assign(a,m.params),i.push({params:a,pathname:os([o,m.pathname]),pathnameBase:wE(os([o,m.pathnameBase])),route:b}),m.pathnameBase!=="/"&&(o=os([o,m.pathnameBase]))}return i}function Qm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=xE(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:b,isOptional:v}=h;if(b==="*"){let g=c[m]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const w=c[m];return v&&!w?u[b]=void 0:u[b]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function xE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Xc(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 s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,d)=>(s.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function gE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function no(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}const vE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yE=e=>vE.test(e);function bE(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?na(e):e,o;if(n)if(yE(n))o=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),Xc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=h0(n.substring(1),"/"):o=h0(n,t)}else o=t;return{pathname:o,search:NE(s),hash:SE(a)}}function h0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Gm(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function p0(e,t){let n=jE(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function x0(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=na(e):(a=Di({},e),ot(!a.pathname||!a.pathname.includes("?"),Gm("?","pathname","search",a)),ot(!a.pathname||!a.pathname.includes("#"),Gm("#","pathname","hash",a)),ot(!a.search||!a.search.includes("#"),Gm("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,c;if(i==null)c=n;else{let m=t.length-1;if(!s&&i.startsWith("..")){let b=i.split("/");for(;b[0]==="..";)b.shift(),m-=1;a.pathname=b.join("/")}c=m>=0?t[m]:"/"}let d=bE(a,c),u=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const os=e=>e.join("/").replace(/\/\/+/g,"/"),wE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function CE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const g0=["post","put","patch","delete"];new Set(g0);const kE=["get",...g0];new Set(kE);/** | |
| 51 | + */function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Di.apply(this,arguments)}var os;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(os||(os={}));const nb="popstate";function H2(e){e===void 0&&(e={});function t(a,o){let{pathname:i="/",search:c="",hash:d=""}=na(a.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Bm("",{pathname:i,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(a,o){let i=a.document.querySelector("base"),c="";if(i&&i.getAttribute("href")){let d=a.location.href,u=d.indexOf("#");c=u===-1?d:d.slice(0,u)}return c+"#"+(typeof o=="string"?o:Xc(o))}function s(a,o){Yc(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return K2(t,n,s,e)}function at(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Yc(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function W2(){return Math.random().toString(36).substr(2,8)}function rb(e,t){return{usr:e.state,key:e.key,idx:t}}function Bm(e,t,n,s){return n===void 0&&(n=null),Di({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?na(t):t,{state:n,key:t&&t.key||s||W2()})}function Xc(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function na(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function K2(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:o=!1}=s,i=a.history,c=os.Pop,d=null,u=h();u==null&&(u=0,i.replaceState(Di({},i.state,{idx:u}),""));function h(){return(i.state||{idx:null}).idx}function m(){c=os.Pop;let w=h(),y=w==null?null:w-u;u=w,d&&d({action:c,location:b.location,delta:y})}function v(w,y){c=os.Push;let p=Bm(b.location,w,y);n&&n(p,w),u=h()+1;let g=rb(p,u),N=b.createHref(p);try{i.pushState(g,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(N)}o&&d&&d({action:c,location:b.location,delta:1})}function x(w,y){c=os.Replace;let p=Bm(b.location,w,y);n&&n(p,w),u=h();let g=rb(p,u),N=b.createHref(p);i.replaceState(g,"",N),o&&d&&d({action:c,location:b.location,delta:0})}function j(w){let y=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof w=="string"?w:Xc(w);return p=p.replace(/ $/,"%20"),at(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let b={get action(){return c},get location(){return e(a,i)},listen(w){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(nb,m),d=w,()=>{a.removeEventListener(nb,m),d=null}},createHref(w){return t(a,w)},createURL:j,encodeLocation(w){let y=j(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:v,replace:x,go(w){return i.go(w)}};return b}var sb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sb||(sb={}));function Q2(e,t,n){return n===void 0&&(n="/"),G2(e,t,n)}function G2(e,t,n,s){let a=typeof t=="string"?na(t):t,o=ro(a.pathname||"/",n);if(o==null)return null;let i=ab(e);Y2(i);let c=null;for(let d=0;c==null&&d<i.length;++d){let u=iE(o);c=aE(i[d],u)}return c}function ab(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(o,i,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(at(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let u=is([s,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(at(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ab(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:rE(u,o.index),routesMeta:h})};return e.forEach((o,i)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))a(o,i);else for(let d of ob(o.path))a(o,i,d)}),t}function ob(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(s.length===0)return a?[o,""]:[o];let i=ob(s.join("/")),c=[];return c.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...i),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Y2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sE(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const X2=/^:[\w-]+$/,Z2=3,J2=2,eE=1,tE=10,nE=-2,ib=e=>e==="*";function rE(e,t){let n=e.split("/"),s=n.length;return n.some(ib)&&(s+=nE),t&&(s+=J2),n.filter(a=>!ib(a)).reduce((a,o)=>a+(X2.test(o)?Z2:o===""?eE:tE),s)}function sE(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function aE(e,t,n){let{routesMeta:s}=e,a={},o="/",i=[];for(let c=0;c<s.length;++c){let d=s[c],u=c===s.length-1,h=o==="/"?t:t.slice(o.length)||"/",m=Vm({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),v=d.route;if(!m)return null;Object.assign(a,m.params),i.push({params:a,pathname:is([o,m.pathname]),pathnameBase:fE(is([o,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(o=is([o,m.pathnameBase]))}return i}function Vm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=oE(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:v,isOptional:x}=h;if(v==="*"){let b=c[m]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const j=c[m];return x&&!j?u[v]=void 0:u[v]=(j||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function oE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yc(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 s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,d)=>(s.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function iE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ro(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}const lE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cE=e=>lE.test(e);function dE(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?na(e):e,o;if(n)if(cE(n))o=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),Yc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=lb(n.substring(1),"/"):o=lb(n,t)}else o=t;return{pathname:o,search:mE(s),hash:hE(a)}}function lb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function qm(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function uE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cb(e,t){let n=uE(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function db(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=na(e):(a=Di({},e),at(!a.pathname||!a.pathname.includes("?"),qm("?","pathname","search",a)),at(!a.pathname||!a.pathname.includes("#"),qm("#","pathname","hash",a)),at(!a.search||!a.search.includes("#"),qm("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,c;if(i==null)c=n;else{let m=t.length-1;if(!s&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),m-=1;a.pathname=v.join("/")}c=m>=0?t[m]:"/"}let d=dE(a,c),u=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const is=e=>e.join("/").replace(/\/\/+/g,"/"),fE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ub=["post","put","patch","delete"];new Set(ub);const xE=["get",...ub];new Set(xE);/** | |
| 52 | 52 | * React Router v6.30.3 |
| 53 | 53 | * |
| 54 | 54 | * Copyright (c) Remix Software Inc. |
| 55 | 55 | * |
| @@ -56,9 +56,9 @@ | ||
| 56 | 56 | * This source code is licensed under the MIT license found in the |
| 57 | 57 | * LICENSE.md file in the root directory of this source tree. |
| 58 | 58 | * |
| 59 | 59 | * @license MIT |
| 60 | - */function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Fi.apply(this,arguments)}const Jc=f.createContext(null),v0=f.createContext(null),is=f.createContext(null),ed=f.createContext(null),jr=f.createContext({outlet:null,matches:[],isDataRoute:!1}),y0=f.createContext(null);function EE(e,t){let{relative:n}=t===void 0?{}:t;Li()||ot(!1);let{basename:s,navigator:a}=f.useContext(is),{hash:o,pathname:i,search:c}=td(e,{relative:n}),d=i;return s!=="/"&&(d=i==="/"?s:os([s,i])),a.createHref({pathname:d,search:c,hash:o})}function Li(){return f.useContext(ed)!=null}function ls(){return Li()||ot(!1),f.useContext(ed).location}function b0(e){f.useContext(is).static||f.useLayoutEffect(e)}function Tn(){let{isDataRoute:e}=f.useContext(jr);return e?BE():_E()}function _E(){Li()||ot(!1);let e=f.useContext(Jc),{basename:t,future:n,navigator:s}=f.useContext(is),{matches:a}=f.useContext(jr),{pathname:o}=ls(),i=JSON.stringify(p0(a,n.v7_relativeSplatPath)),c=f.useRef(!1);return b0(()=>{c.current=!0}),f.useCallback(function(u,h){if(h===void 0&&(h={}),!c.current)return;if(typeof u=="number"){s.go(u);return}let m=x0(u,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:os([t,m.pathname])),(h.replace?s.replace:s.push)(m,h.state,h)},[t,s,i,o,e])}const PE=f.createContext(null);function TE(e){let t=f.useContext(jr).outlet;return t&&f.createElement(PE.Provider,{value:e},t)}function $i(){let{matches:e}=f.useContext(jr),t=e[e.length-1];return t?t.params:{}}function td(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(is),{matches:a}=f.useContext(jr),{pathname:o}=ls(),i=JSON.stringify(p0(a,s.v7_relativeSplatPath));return f.useMemo(()=>x0(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function RE(e,t){return AE(e,t)}function AE(e,t,n,s){Li()||ot(!1);let{navigator:a}=f.useContext(is),{matches:o}=f.useContext(jr),i=o[o.length-1],c=i?i.params:{};i&&i.pathname;let d=i?i.pathnameBase:"/";i&&i.route;let u=ls(),h;if(t){var m;let j=typeof t=="string"?na(t):t;d==="/"||(m=j.pathname)!=null&&m.startsWith(d)||ot(!1),h=j}else h=u;let b=h.pathname||"/",v=b;if(d!=="/"){let j=d.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=sE(e,{pathname:v}),g=FE(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},c,j.params),pathname:os([d,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?d:os([d,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),o,n,s);return t&&g?f.createElement(ed.Provider,{value:{location:Fi({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:as.Pop}},g):g}function OE(){let e=UE(),t=CE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,null)}const IE=f.createElement(OE,null);class ME extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(jr.Provider,{value:this.props.routeContext},f.createElement(y0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DE(e){let{routeContext:t,match:n,children:s}=e,a=f.useContext(Jc);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(jr.Provider,{value:t},s)}function FE(e,t,n,s){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let h=i.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||ot(!1),i=i.slice(0,Math.min(i.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<i.length;h++){let m=i[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:b,errors:v}=n,w=m.route.loader&&b[m.route.id]===void 0&&(!v||v[m.route.id]===void 0);if(m.route.lazy||w){d=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((h,m,b)=>{let v,w=!1,g=null,j=null;n&&(v=c&&m.route.id?c[m.route.id]:void 0,g=m.route.errorElement||IE,d&&(u<0&&b===0?(VE("route-fallback"),w=!0,j=null):u===b&&(w=!0,j=m.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,b+1)),p=()=>{let x;return v?x=g:w?x=j:m.route.Component?x=f.createElement(m.route.Component,null):m.route.element?x=m.route.element:x=h,f.createElement(DE,{match:m,routeContext:{outlet:h,matches:y,isDataRoute:n!=null},children:x})};return n&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?f.createElement(ME,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:p(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):p()},null)}var j0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(j0||{}),w0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(w0||{});function LE(e){let t=f.useContext(Jc);return t||ot(!1),t}function $E(e){let t=f.useContext(v0);return t||ot(!1),t}function zE(e){let t=f.useContext(jr);return t||ot(!1),t}function N0(e){let t=zE(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function UE(){var e;let t=f.useContext(y0),n=$E(),s=N0();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function BE(){let{router:e}=LE(j0.UseNavigateStable),t=N0(w0.UseNavigateStable),n=f.useRef(!1);return b0(()=>{n.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Fi({fromRouteId:t},o)))},[e,t])}const S0={};function VE(e,t,n){S0[e]||(S0[e]=!0)}function HE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function WE(e){return TE(e.context)}function Ye(e){ot(!1)}function qE(e){let{basename:t="/",children:n=null,location:s,navigationType:a=as.Pop,navigator:o,static:i=!1,future:c}=e;Li()&&ot(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:o,static:i,future:Fi({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);typeof s=="string"&&(s=na(s));let{pathname:h="/",search:m="",hash:b="",state:v=null,key:w="default"}=s,g=f.useMemo(()=>{let j=no(h,d);return j==null?null:{location:{pathname:j,search:m,hash:b,state:v,key:w},navigationType:a}},[d,h,m,b,v,w,a]);return g==null?null:f.createElement(is.Provider,{value:u},f.createElement(ed.Provider,{children:n,value:g}))}function KE(e){let{children:t,location:n}=e;return RE(Ym(t),n)}new Promise(()=>{});function Ym(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,a)=>{if(!f.isValidElement(s))return;let o=[...t,a];if(s.type===f.Fragment){n.push.apply(n,Ym(s.props.children,o));return}s.type!==Ye&&ot(!1),!s.props.index||!s.props.children||ot(!1);let i={id:s.props.id||o.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(i.children=Ym(s.props.children,o)),n.push(i)}),n}/** | |
| 60 | + */function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Fi.apply(this,arguments)}const Zc=f.createContext(null),fb=f.createContext(null),ls=f.createContext(null),Jc=f.createContext(null),wr=f.createContext({outlet:null,matches:[],isDataRoute:!1}),mb=f.createContext(null);function gE(e,t){let{relative:n}=t===void 0?{}:t;Li()||at(!1);let{basename:s,navigator:a}=f.useContext(ls),{hash:o,pathname:i,search:c}=td(e,{relative:n}),d=i;return s!=="/"&&(d=i==="/"?s:is([s,i])),a.createHref({pathname:d,search:c,hash:o})}function Li(){return f.useContext(Jc)!=null}function cs(){return Li()||at(!1),f.useContext(Jc).location}function hb(e){f.useContext(ls).static||f.useLayoutEffect(e)}function xn(){let{isDataRoute:e}=f.useContext(wr);return e?AE():vE()}function vE(){Li()||at(!1);let e=f.useContext(Zc),{basename:t,future:n,navigator:s}=f.useContext(ls),{matches:a}=f.useContext(wr),{pathname:o}=cs(),i=JSON.stringify(cb(a,n.v7_relativeSplatPath)),c=f.useRef(!1);return hb(()=>{c.current=!0}),f.useCallback(function(u,h){if(h===void 0&&(h={}),!c.current)return;if(typeof u=="number"){s.go(u);return}let m=db(u,JSON.parse(i),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:is([t,m.pathname])),(h.replace?s.replace:s.push)(m,h.state,h)},[t,s,i,o,e])}const yE=f.createContext(null);function bE(e){let t=f.useContext(wr).outlet;return t&&f.createElement(yE.Provider,{value:e},t)}function ed(){let{matches:e}=f.useContext(wr),t=e[e.length-1];return t?t.params:{}}function td(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(ls),{matches:a}=f.useContext(wr),{pathname:o}=cs(),i=JSON.stringify(cb(a,s.v7_relativeSplatPath));return f.useMemo(()=>db(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function jE(e,t){return wE(e,t)}function wE(e,t,n,s){Li()||at(!1);let{navigator:a}=f.useContext(ls),{matches:o}=f.useContext(wr),i=o[o.length-1],c=i?i.params:{};i&&i.pathname;let d=i?i.pathnameBase:"/";i&&i.route;let u=cs(),h;if(t){var m;let w=typeof t=="string"?na(t):t;d==="/"||(m=w.pathname)!=null&&m.startsWith(d)||at(!1),h=w}else h=u;let v=h.pathname||"/",x=v;if(d!=="/"){let w=d.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let j=Q2(e,{pathname:x}),b=EE(j&&j.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:is([d,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:is([d,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,s);return t&&b?f.createElement(Jc.Provider,{value:{location:Fi({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:os.Pop}},b):b}function NE(){let e=RE(),t=pE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,null)}const SE=f.createElement(NE,null);class CE extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(wr.Provider,{value:this.props.routeContext},f.createElement(mb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kE(e){let{routeContext:t,match:n,children:s}=e,a=f.useContext(Zc);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(wr.Provider,{value:t},s)}function EE(e,t,n,s){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let h=i.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||at(!1),i=i.slice(0,Math.min(i.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<i.length;h++){let m=i[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:v,errors:x}=n,j=m.route.loader&&v[m.route.id]===void 0&&(!x||x[m.route.id]===void 0);if(m.route.lazy||j){d=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((h,m,v)=>{let x,j=!1,b=null,w=null;n&&(x=c&&m.route.id?c[m.route.id]:void 0,b=m.route.errorElement||SE,d&&(u<0&&v===0?(OE("route-fallback"),j=!0,w=null):u===v&&(j=!0,w=m.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,v+1)),p=()=>{let g;return x?g=b:j?g=w:m.route.Component?g=f.createElement(m.route.Component,null):m.route.element?g=m.route.element:g=h,f.createElement(kE,{match:m,routeContext:{outlet:h,matches:y,isDataRoute:n!=null},children:g})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?f.createElement(CE,{location:n.location,revalidation:n.revalidation,component:b,error:x,children:p(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):p()},null)}var pb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pb||{}),xb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xb||{});function _E(e){let t=f.useContext(Zc);return t||at(!1),t}function PE(e){let t=f.useContext(fb);return t||at(!1),t}function TE(e){let t=f.useContext(wr);return t||at(!1),t}function gb(e){let t=TE(),n=t.matches[t.matches.length-1];return n.route.id||at(!1),n.route.id}function RE(){var e;let t=f.useContext(mb),n=PE(),s=gb();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function AE(){let{router:e}=_E(pb.UseNavigateStable),t=gb(xb.UseNavigateStable),n=f.useRef(!1);return hb(()=>{n.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Fi({fromRouteId:t},o)))},[e,t])}const vb={};function OE(e,t,n){vb[e]||(vb[e]=!0)}function IE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ME(e){return bE(e.context)}function Xe(e){at(!1)}function DE(e){let{basename:t="/",children:n=null,location:s,navigationType:a=os.Pop,navigator:o,static:i=!1,future:c}=e;Li()&&at(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:o,static:i,future:Fi({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);typeof s=="string"&&(s=na(s));let{pathname:h="/",search:m="",hash:v="",state:x=null,key:j="default"}=s,b=f.useMemo(()=>{let w=ro(h,d);return w==null?null:{location:{pathname:w,search:m,hash:v,state:x,key:j},navigationType:a}},[d,h,m,v,x,j,a]);return b==null?null:f.createElement(ls.Provider,{value:u},f.createElement(Jc.Provider,{children:n,value:b}))}function FE(e){let{children:t,location:n}=e;return jE(Hm(t),n)}new Promise(()=>{});function Hm(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,a)=>{if(!f.isValidElement(s))return;let o=[...t,a];if(s.type===f.Fragment){n.push.apply(n,Hm(s.props.children,o));return}s.type!==Xe&&at(!1),!s.props.index||!s.props.children||at(!1);let i={id:s.props.id||o.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(i.children=Hm(s.props.children,o)),n.push(i)}),n}/** | |
| 61 | 61 | * React Router DOM v6.30.3 |
| 62 | 62 | * |
| 63 | 63 | * Copyright (c) Remix Software Inc. |
| 64 | 64 | * |
| @@ -65,376 +65,361 @@ | ||
| 65 | 65 | * This source code is licensed under the MIT license found in the |
| 66 | 66 | * LICENSE.md file in the root directory of this source tree. |
| 67 | 67 | * |
| 68 | 68 | * @license MIT |
| 69 | - */function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},nd.apply(this,arguments)}function C0(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,o;for(o=0;o<s.length;o++)a=s[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function QE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GE(e,t){return e.button===0&&(!t||t==="_self")&&!QE(e)}function Xm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(a=>[n,a]):[[n,s]])},[]))}function YE(e,t){let n=Xm(e);return t&&t.forEach((s,a)=>{n.has(a)||t.getAll(a).forEach(o=>{n.append(a,o)})}),n}const XE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ZE=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],JE="6";try{window.__reactRouterVersion=JE}catch(e){}const e_=f.createContext({isTransitioning:!1}),k0=Fl["startTransition"];function t_(e){let{basename:t,children:n,future:s,window:a}=e,o=f.useRef();o.current==null&&(o.current=tE({window:a,v5Compat:!0}));let i=o.current,[c,d]=f.useState({action:i.action,location:i.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&k0?k0(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>i.listen(h),[i,h]),f.useEffect(()=>HE(s),[s]),f.createElement(qE,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:i,future:s})}const n_=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",r_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=f.forwardRef(function(t,n){let{onClick:s,relative:a,reloadDocument:o,replace:i,state:c,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,b=C0(t,XE),{basename:v}=f.useContext(is),w,g=!1;if(typeof u=="string"&&r_.test(u)&&(w=u,n_))try{let x=new URL(window.location.href),N=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=no(N.pathname,v);N.origin===x.origin&&S!=null?u=S+N.search+N.hash:g=!0}catch(x){}let j=EE(u,{relative:a}),y=o_(u,{replace:i,state:c,target:d,preventScrollReset:h,relative:a,viewTransition:m});function p(x){s&&s(x),x.defaultPrevented||y(x)}return f.createElement("a",nd({},b,{href:w||j,onClick:g||o?s:p,ref:n,target:d}))}),s_=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:a=!1,className:o="",end:i=!1,style:c,to:d,viewTransition:u,children:h}=t,m=C0(t,ZE),b=td(d,{relative:m.relative}),v=ls(),w=f.useContext(v0),{navigator:g,basename:j}=f.useContext(is),y=w!=null&&i_(b)&&u===!0,p=g.encodeLocation?g.encodeLocation(b).pathname:b.pathname,x=v.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;a||(x=x.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&j&&(N=no(N,j)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=x===p||!i&&x.startsWith(p)&&x.charAt(S)==="/",E=N!=null&&(N===p||!i&&N.startsWith(p)&&N.charAt(p.length)==="/"),k={isActive:C,isPending:E,isTransitioning:y},R=C?s:void 0,T;typeof o=="function"?T=o(k):T=[o,C?"active":null,E?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let O=typeof c=="function"?c(k):c;return f.createElement(xt,nd({},m,{"aria-current":R,className:T,ref:n,style:O,to:d,viewTransition:u}),typeof h=="function"?h(k):h)});var Zm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zm||(Zm={}));var E0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E0||(E0={}));function a_(e){let t=f.useContext(Jc);return t||ot(!1),t}function o_(e,t){let{target:n,replace:s,state:a,preventScrollReset:o,relative:i,viewTransition:c}=t===void 0?{}:t,d=Tn(),u=ls(),h=td(e,{relative:i});return f.useCallback(m=>{if(GE(m,n)){m.preventDefault();let b=s!==void 0?s:Zc(u)===Zc(h);d(e,{replace:b,state:a,preventScrollReset:o,relative:i,viewTransition:c})}},[u,d,h,s,a,n,e,o,i,c])}function _0(e){let t=f.useRef(Xm(e)),n=f.useRef(!1),s=ls(),a=f.useMemo(()=>YE(s.search,n.current?null:t.current),[s.search]),o=Tn(),i=f.useCallback((c,d)=>{const u=Xm(typeof c=="function"?c(a):c);n.current=!0,o("?"+u,d)},[o,a]);return[a,i]}function i_(e,t){t===void 0&&(t={});let n=f.useContext(e_);n==null&&ot(!1);let{basename:s}=a_(Zm.useViewTransitionState),a=td(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=no(n.currentLocation.pathname,s)||n.currentLocation.pathname,i=no(n.nextLocation.pathname,s)||n.nextLocation.pathname;return Qm(a.pathname,i)!=null||Qm(a.pathname,o)!=null}function mt(){var e;return(e=window.doiAdmin)!=null?e:{restUrl:"/wp-json/f12-doi/v1/",nonce:"",isProActive:!1,isProInstalled:!1,loadedAddons:[],registeredAddons:[],version:"0.0.0",emailEditorUrl:"",upgradeUrl:"https://www.forge12.com",supportUrl:"",feedbackUrl:"",adminUrl:"/wp-admin/",consentExportNonce:""}}function ra(e){return mt().loadedAddons.includes(e)}function l_(e){return mt().registeredAddons.includes(e)}class rd extends Error{constructor(n,s,a){var o,i,c,d;super(n);Vo(this,"status");Vo(this,"code");Vo(this,"missing");Vo(this,"body");this.name="ApiError",this.status=s,this.body=a,this.code=(i=a==null?void 0:a.code)!=null?i:(o=a==null?void 0:a.data)==null?void 0:o.code,this.missing=(d=a==null?void 0:a.missing)!=null?d:(c=a==null?void 0:a.data)==null?void 0:c.missing}}async function G(e,t={}){var c;const n=mt(),s=n.restUrl.replace(/\/+$/,""),a=e.replace(/^\/+/,""),o=`${s}/${a}`,i=await fetch(o,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!i.ok){const d=await i.json().catch(()=>({message:i.statusText})),u=(d==null?void 0:d.message)||((c=d==null?void 0:d.data)==null?void 0:c.message)||i.statusText;throw new rd(u,i.status,d)}return i.json()}const zi={},Jm=new Set,c_=Object.freeze([]);function d_(){Jm.forEach(e=>e())}function u_(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||(zi[e]||(zi[e]=[]),!zi[e].some(s=>s.name===t)&&(zi[e].push({name:t,Component:n}),d_()))}function P0(e){return Jm.add(e),()=>{Jm.delete(e)}}function T0(e){var t;return(t=zi[e])!=null?t:c_}let ro=null;const R0=new Set;async function A0(e){const t=e.flatMap(n=>{var s,a;return(a=(s=n.ui)==null?void 0:s.bundles)!=null?a:[]}).filter(n=>n&&typeof n.url=="string"&&n.url!=="").filter(n=>!R0.has(n.url));await Promise.allSettled(t.map(async n=>{R0.add(n.url);try{await import(n.url)}catch(s){console.error(`[f12-doi] Failed to load addon bundle "${n.handle}" from ${n.url}`,s)}}))}function f_(){return ro||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{u_(e,t,n)}),ro=(async()=>{let e;try{e=await G("addons")}catch(n){return console.error("[f12-doi] Failed to fetch /addons manifest",n),[]}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[];return await A0(t),t})(),ro)}async function m_(){var n;ro&&await ro;let e;try{e=await G("addons")}catch(s){console.error("[f12-doi] Failed to refresh /addons manifest",s);return}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[];if(typeof window!="undefined"&&window.doiAdmin){const s=new Set((n=window.doiAdmin.loadedAddons)!=null?n:[]);t.filter(a=>a.available).forEach(a=>s.add(a.id)),window.doiAdmin.loadedAddons=Array.from(s)}await A0(t)}const h_=1,p_=1e6;let eh=0;function x_(){return eh=(eh+1)%Number.MAX_SAFE_INTEGER,eh.toString()}const th=new Map,O0=e=>{if(th.has(e))return;const t=setTimeout(()=>{th.delete(e),Ui({type:"REMOVE_TOAST",toastId:e})},p_);th.set(e,t)},g_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,h_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?O0(n):e.toasts.forEach(s=>{O0(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},sd=[];let ad={toasts:[]};function Ui(e){ad=g_(ad,e),sd.forEach(t=>{t(ad)})}function v_({...e}){const t=x_(),n=a=>Ui({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>Ui({type:"DISMISS_TOAST",toastId:t});return Ui({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:n}}function y_(){const[e,t]=f.useState(ad);return f.useEffect(()=>(sd.push(t),()=>{const n=sd.indexOf(t);n>-1&&sd.splice(n,1)}),[e]),{...e,toast:v_,dismiss:n=>Ui({type:"DISMISS_TOAST",toastId:n})}}function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function I0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function so(...e){return t=>{let n=!1;const s=e.map(a=>{const o=I0(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<s.length;a++){const o=s[a];typeof o=="function"?o():I0(e[a],null)}}}}function Me(...e){return f.useCallback(so(...e),e)}function b_(e,t){const n=f.createContext(t),s=o=>{const{children:i,...c}=o,d=f.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:i})};s.displayName=e+"Provider";function a(o){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[s,a]}function Mt(e,t=[]){let n=[];function s(o,i){const c=f.createContext(i),d=n.length;n=[...n,i];const u=m=>{var y;const{scope:b,children:v,...w}=m,g=((y=b==null?void 0:b[e])==null?void 0:y[d])||c,j=f.useMemo(()=>w,Object.values(w));return r.jsx(g.Provider,{value:j,children:v})};u.displayName=o+"Provider";function h(m,b){var g;const v=((g=b==null?void 0:b[e])==null?void 0:g[d])||c,w=f.useContext(v);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[u,h]}const a=()=>{const o=n.map(i=>f.createContext(i));return function(c){const d=(c==null?void 0:c[e])||o;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return a.scopeName=e,[s,j_(a,...t)]}function j_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=s.reduce((c,{useScope:d,scopeName:u})=>{const m=d(o)[`__scope${u}`];return{...c,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function M0(e){const t=w_(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(S_);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function w_(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=k_(a),c=C_(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var N_=Symbol("radix.slottable");function S_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===N_}function C_(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function k_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function od(e){const t=e+"CollectionProvider",[n,s]=Mt(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:j,children:y}=g,p=W.useRef(null),x=W.useRef(new Map).current;return r.jsx(a,{scope:j,itemMap:x,collectionRef:p,children:y})};i.displayName=t;const c=e+"CollectionSlot",d=M0(c),u=W.forwardRef((g,j)=>{const{scope:y,children:p}=g,x=o(c,y),N=Me(j,x.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",b=M0(h),v=W.forwardRef((g,j)=>{const{scope:y,children:p,...x}=g,N=W.useRef(null),S=Me(j,N),C=o(h,y);return W.useEffect(()=>(C.itemMap.set(N,{ref:N,...x}),()=>void C.itemMap.delete(N))),r.jsx(b,{[m]:"",ref:S,children:p})});v.displayName=h;function w(g){const j=o(e+"CollectionConsumer",g);return W.useCallback(()=>{const p=j.collectionRef.current;if(!p)return[];const x=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(j.itemMap.values()).sort((C,E)=>x.indexOf(C.ref.current)-x.indexOf(E.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:i,Slot:u,ItemSlot:v},w,s]}function E_(e){const t=__(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(T_);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function __(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=A_(a),c=R_(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_=Symbol("radix.slottable");function T_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P_}function R_(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function A_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=O_.reduce((e,t)=>{const n=E_(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function D0(e,t){e&&Zs.flushSync(()=>e.dispatchEvent(t))}function gn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function I_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e);f.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var M_="DismissableLayer",nh="dismissableLayer.update",D_="dismissableLayer.pointerDownOutside",F_="dismissableLayer.focusOutside",F0,L0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bi=f.forwardRef((e,t)=>{var E;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:c,...d}=e,u=f.useContext(L0),[h,m]=f.useState(null),b=(E=h==null?void 0:h.ownerDocument)!=null?E:globalThis==null?void 0:globalThis.document,[,v]=f.useState({}),w=Me(t,k=>m(k)),g=Array.from(u.layers),[j]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(j),p=h?g.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=y,S=$_(k=>{const R=k.target,T=[...u.branches].some(O=>O.contains(R));!N||T||(a==null||a(k),i==null||i(k),k.defaultPrevented||c==null||c())},b),C=z_(k=>{const R=k.target;[...u.branches].some(O=>O.contains(R))||(o==null||o(k),i==null||i(k),k.defaultPrevented||c==null||c())},b);return I_(k=>{p===u.layers.size-1&&(s==null||s(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},b),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(F0=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),z0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=F0)}},[h,b,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),z0())},[h,u]),f.useEffect(()=>{const k=()=>v({});return document.addEventListener(nh,k),()=>document.removeEventListener(nh,k)},[]),r.jsx(xe.div,{...d,ref:w,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,C.onFocusCapture),onBlurCapture:he(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,S.onPointerDownCapture)})});Bi.displayName=M_;var L_="DismissableLayerBranch",$0=f.forwardRef((e,t)=>{const n=f.useContext(L0),s=f.useRef(null),a=Me(t,s);return f.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),r.jsx(xe.div,{...e,ref:a})});$0.displayName=L_;function $_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1),a=f.useRef(()=>{});return f.useEffect(()=>{const o=c=>{if(c.target&&!s.current){let d=function(){U0(D_,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);s.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function z_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1);return f.useEffect(()=>{const a=o=>{o.target&&!s.current&&U0(F_,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function z0(){const e=new CustomEvent(nh);document.dispatchEvent(e)}function U0(e,t,n,{discrete:s}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?D0(a,o):a.dispatchEvent(o)}var U_=Bi,B_=$0,gt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},V_="Portal",Vi=f.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[a,o]=f.useState(!1);gt(()=>o(!0),[]);const i=n||a&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?Oy.createPortal(r.jsx(xe.div,{...s,ref:t}),i):null});Vi.displayName=V_;function H_(e,t){return f.useReducer((n,s)=>{const a=t[n][s];return a!=null?a:n},e)}var Rn=e=>{const{present:t,children:n}=e,s=W_(t),a=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),o=Me(s.ref,q_(a));return typeof n=="function"||s.isPresent?f.cloneElement(a,{ref:o}):null};Rn.displayName="Presence";function W_(e){const[t,n]=f.useState(),s=f.useRef(null),a=f.useRef(e),o=f.useRef("none"),i=e?"mounted":"unmounted",[c,d]=H_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=id(s.current);o.current=c==="mounted"?u:"none"},[c]),gt(()=>{const u=s.current,h=a.current;if(h!==e){const b=o.current,v=id(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&b!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),gt(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,b=w=>{const j=id(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(d("ANIMATION_END"),!a.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=w=>{w.target===t&&(o.current=id(s.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function id(e){return(e==null?void 0:e.animationName)||"none"}function q_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var K_=Fl[" useInsertionEffect ".trim().toString()]||gt;function Jt({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,o,i]=Q_({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:a;{const h=f.useRef(e!==void 0);f.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=c},[c,s])}const u=f.useCallback(h=>{var m;if(c){const b=G_(h)?h(e):h;b!==e&&((m=i.current)==null||m.call(i,b))}else o(h)},[c,e,o,i]);return[d,u]}function Q_({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),a=f.useRef(n),o=f.useRef(t);return K_(()=>{o.current=t},[t]),f.useEffect(()=>{var i;a.current!==n&&((i=o.current)==null||i.call(o,n),a.current=n)},[n,a]),[n,s,o]}function G_(e){return typeof e=="function"}var B0=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"}),Y_="VisuallyHidden",ld=f.forwardRef((e,t)=>r.jsx(xe.span,{...e,ref:t,style:{...B0,...e.style}}));ld.displayName=Y_;var X_=ld,rh="ToastProvider",[sh,Z_,J_]=od("Toast"),[V0]=Mt("Toast",[J_]),[eP,cd]=V0(rh),H0=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[c,d]=f.useState(null),[u,h]=f.useState(0),m=f.useRef(!1),b=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rh}\`. Expected non-empty \`string\`.`),r.jsx(sh.Provider,{scope:t,children:r.jsx(eP,{scope:t,label:n,duration:s,swipeDirection:a,swipeThreshold:o,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:f.useCallback(()=>h(v=>v+1),[]),onToastRemove:f.useCallback(()=>h(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:b,children:i})})};H0.displayName=rh;var W0="ToastViewport",tP=["F8"],ah="toast.viewportPause",oh="toast.viewportResume",q0=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=tP,label:a="Notifications ({hotkey})",...o}=e,i=cd(W0,n),c=Z_(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),b=Me(t,m,i.onViewportChange),v=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=i.toastCount>0;f.useEffect(()=>{const j=y=>{var x;s.length!==0&&s.every(N=>y[N]||y.code===N)&&((x=m.current)==null||x.focus())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[s]),f.useEffect(()=>{const j=d.current,y=m.current;if(w&&j&&y){const p=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(ah);y.dispatchEvent(C),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(oh);y.dispatchEvent(C),i.isClosePausedRef.current=!1}},N=C=>{!j.contains(C.relatedTarget)&&x()},S=()=>{j.contains(document.activeElement)||x()};return j.addEventListener("focusin",p),j.addEventListener("focusout",N),j.addEventListener("pointermove",p),j.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",x),()=>{j.removeEventListener("focusin",p),j.removeEventListener("focusout",N),j.removeEventListener("pointermove",p),j.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",x)}}},[w,i.isClosePausedRef]);const g=f.useCallback(({tabbingDirection:j})=>{const p=c().map(x=>{const N=x.ref.current,S=[N,...hP(N)];return j==="forwards"?S:S.reverse()});return(j==="forwards"?p.reverse():p).flat()},[c]);return f.useEffect(()=>{const j=m.current;if(j){const y=p=>{var S,C,E;const x=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!x){const k=document.activeElement,R=p.shiftKey;if(p.target===j&&R){(S=u.current)==null||S.focus();return}const F=g({tabbingDirection:R?"backwards":"forwards"}),B=F.findIndex(I=>I===k);ch(F.slice(B+1))?p.preventDefault():R?(C=u.current)==null||C.focus():(E=h.current)==null||E.focus()}};return j.addEventListener("keydown",y),()=>j.removeEventListener("keydown",y)}},[c,g]),r.jsxs(B_,{ref:d,role:"region","aria-label":a.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&r.jsx(ih,{ref:u,onFocusFromOutsideViewport:()=>{const j=g({tabbingDirection:"forwards"});ch(j)}}),r.jsx(sh.Slot,{scope:n,children:r.jsx(xe.ol,{tabIndex:-1,...o,ref:b})}),w&&r.jsx(ih,{ref:h,onFocusFromOutsideViewport:()=>{const j=g({tabbingDirection:"backwards"});ch(j)}})]})});q0.displayName=W0;var K0="ToastFocusProxy",ih=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...a}=e,o=cd(K0,n);return r.jsx(ld,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const c=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(c))&&s()}})});ih.displayName=K0;var Hi="Toast",nP="toast.swipeStart",rP="toast.swipeMove",sP="toast.swipeCancel",aP="toast.swipeEnd",Q0=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:a,onOpenChange:o,...i}=e,[c,d]=Jt({prop:s,defaultProp:a!=null?a:!0,onChange:o,caller:Hi});return r.jsx(Rn,{present:n||c,children:r.jsx(lP,{open:c,...i,ref:t,onClose:()=>d(!1),onPause:gn(e.onPause),onResume:gn(e.onResume),onSwipeStart:he(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:he(e.onSwipeMove,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:he(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:he(e.onSwipeEnd,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});Q0.displayName=Hi;var[oP,iP]=V0(Hi,{onClose(){}}),lP=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:b,onSwipeEnd:v,...w}=e,g=cd(Hi,n),[j,y]=f.useState(null),p=Me(t,I=>y(I)),x=f.useRef(null),N=f.useRef(null),S=a||g.duration,C=f.useRef(0),E=f.useRef(S),k=f.useRef(0),{onToastAdd:R,onToastRemove:T}=g,O=gn(()=>{var se;(j==null?void 0:j.contains(document.activeElement))&&((se=g.viewport)==null||se.focus()),i()}),F=f.useCallback(I=>{!I||I===1/0||(window.clearTimeout(k.current),C.current=new Date().getTime(),k.current=window.setTimeout(O,I))},[O]);f.useEffect(()=>{const I=g.viewport;if(I){const se=()=>{F(E.current),u==null||u()},M=()=>{const Z=new Date().getTime()-C.current;E.current=E.current-Z,window.clearTimeout(k.current),d==null||d()};return I.addEventListener(ah,M),I.addEventListener(oh,se),()=>{I.removeEventListener(ah,M),I.removeEventListener(oh,se)}}},[g.viewport,S,d,u,F]),f.useEffect(()=>{o&&!g.isClosePausedRef.current&&F(S)},[o,S,g.isClosePausedRef,F]),f.useEffect(()=>(R(),()=>T()),[R,T]);const B=f.useMemo(()=>j?tb(j):null,[j]);return g.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(cP,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:B}),r.jsx(oP,{scope:n,onClose:O,children:Zs.createPortal(r.jsx(sh.ItemSlot,{scope:n,children:r.jsx(U_,{asChild:!0,onEscapeKeyDown:he(c,()=>{g.isFocusedToastEscapeKeyDownRef.current||O(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(xe.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:he(e.onKeyDown,I=>{I.key==="Escape"&&(c==null||c(I.nativeEvent),I.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:he(e.onPointerDown,I=>{I.button===0&&(x.current={x:I.clientX,y:I.clientY})}),onPointerMove:he(e.onPointerMove,I=>{if(!x.current)return;const se=I.clientX-x.current.x,M=I.clientY-x.current.y,Z=!!N.current,A=["left","right"].includes(g.swipeDirection),D=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,J=A?D(0,se):0,pe=A?0:D(0,M),P=I.pointerType==="touch"?10:2,z={x:J,y:pe},q={originalEvent:I,delta:z};Z?(N.current=z,dd(rP,m,q,{discrete:!1})):nb(z,g.swipeDirection,P)?(N.current=z,dd(nP,h,q,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(se)>P||Math.abs(M)>P)&&(x.current=null)}),onPointerUp:he(e.onPointerUp,I=>{const se=N.current,M=I.target;if(M.hasPointerCapture(I.pointerId)&&M.releasePointerCapture(I.pointerId),N.current=null,x.current=null,se){const Z=I.currentTarget,A={originalEvent:I,delta:se};nb(se,g.swipeDirection,g.swipeThreshold)?dd(aP,v,A,{discrete:!0}):dd(sP,b,A,{discrete:!0}),Z.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),cP=e=>{const{__scopeToast:t,children:n,...s}=e,a=cd(Hi,t),[o,i]=f.useState(!1),[c,d]=f.useState(!1);return fP(()=>i(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:r.jsx(Vi,{asChild:!0,children:r.jsx(ld,{...s,children:o&&r.jsxs(r.Fragment,{children:[a.label," ",n]})})})},dP="ToastTitle",G0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(xe.div,{...s,ref:t})});G0.displayName=dP;var uP="ToastDescription",Y0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(xe.div,{...s,ref:t})});Y0.displayName=uP;var X0="ToastAction",Z0=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(eb,{altText:n,asChild:!0,children:r.jsx(lh,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${X0}\`. Expected non-empty \`string\`.`),null)});Z0.displayName=X0;var J0="ToastClose",lh=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,a=iP(J0,n);return r.jsx(eb,{asChild:!0,children:r.jsx(xe.button,{type:"button",...s,ref:t,onClick:he(e.onClick,a.onClose)})})});lh.displayName=J0;var eb=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...a}=e;return r.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function tb(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),mP(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",o=s.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=s.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...tb(s))}}),t}function dd(e,t,n,{discrete:s}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?D0(a,o):a.dispatchEvent(o)}var nb=(e,t,n=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),o=s>a;return t==="left"||t==="right"?o&&s>n:!o&&a>n};function fP(e=()=>{}){const t=gn(e);gt(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function mP(e){return e.nodeType===e.ELEMENT_NODE}function hP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ch(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var pP=H0,rb=q0,sb=Q0,ab=G0,ob=Y0,ib=Z0,lb=lh;function cb(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=cb(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function db(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=cb(e))&&(s&&(s+=" "),s+=t);return s}const ub=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fb=db,ao=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return fb(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(u=>{const h=n==null?void 0:n[u],m=o==null?void 0:o[u];if(h===null)return null;const b=ub(h)||ub(m);return a[u][b]}),c=n&&Object.entries(n).reduce((u,h)=>{let[m,b]=h;return b===void 0||(u[m]=b),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,h)=>{let{class:m,className:b,...v}=h;return Object.entries(v).every(w=>{let[g,j]=w;return Array.isArray(j)?j.includes({...o,...c}[g]):{...o,...c}[g]===j})?[...u,m,b]:u},[]);return fb(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** | |
| 69 | + */function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},nd.apply(this,arguments)}function yb(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,o;for(o=0;o<s.length;o++)a=s[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function LE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $E(e,t){return e.button===0&&(!t||t==="_self")&&!LE(e)}function Wm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(a=>[n,a]):[[n,s]])},[]))}function zE(e,t){let n=Wm(e);return t&&t.forEach((s,a)=>{n.has(a)||t.getAll(a).forEach(o=>{n.append(a,o)})}),n}const UE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],BE=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],VE="6";try{window.__reactRouterVersion=VE}catch(e){}const qE=f.createContext({isTransitioning:!1}),bb=Dl["startTransition"];function HE(e){let{basename:t,children:n,future:s,window:a}=e,o=f.useRef();o.current==null&&(o.current=H2({window:a,v5Compat:!0}));let i=o.current,[c,d]=f.useState({action:i.action,location:i.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&bb?bb(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>i.listen(h),[i,h]),f.useEffect(()=>IE(s),[s]),f.createElement(DE,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:i,future:s})}const WE=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",KE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=f.forwardRef(function(t,n){let{onClick:s,relative:a,reloadDocument:o,replace:i,state:c,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,v=yb(t,UE),{basename:x}=f.useContext(ls),j,b=!1;if(typeof u=="string"&&KE.test(u)&&(j=u,WE))try{let g=new URL(window.location.href),N=u.startsWith("//")?new URL(g.protocol+u):new URL(u),S=ro(N.pathname,x);N.origin===g.origin&&S!=null?u=S+N.search+N.hash:b=!0}catch(g){}let w=gE(u,{relative:a}),y=YE(u,{replace:i,state:c,target:d,preventScrollReset:h,relative:a,viewTransition:m});function p(g){s&&s(g),g.defaultPrevented||y(g)}return f.createElement("a",nd({},v,{href:j||w,onClick:b||o?s:p,ref:n,target:d}))}),QE=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:a=!1,className:o="",end:i=!1,style:c,to:d,viewTransition:u,children:h}=t,m=yb(t,BE),v=td(d,{relative:m.relative}),x=cs(),j=f.useContext(fb),{navigator:b,basename:w}=f.useContext(ls),y=j!=null&&ZE(v)&&u===!0,p=b.encodeLocation?b.encodeLocation(v).pathname:v.pathname,g=x.pathname,N=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;a||(g=g.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&w&&(N=ro(N,w)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let k=g===p||!i&&g.startsWith(p)&&g.charAt(S)==="/",_=N!=null&&(N===p||!i&&N.startsWith(p)&&N.charAt(p.length)==="/"),C={isActive:k,isPending:_,isTransitioning:y},R=k?s:void 0,T;typeof o=="function"?T=o(C):T=[o,k?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let O=typeof c=="function"?c(C):c;return f.createElement(Ot,nd({},m,{"aria-current":R,className:T,ref:n,style:O,to:d,viewTransition:u}),typeof h=="function"?h(C):h)});var Km;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Km||(Km={}));var jb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jb||(jb={}));function GE(e){let t=f.useContext(Zc);return t||at(!1),t}function YE(e,t){let{target:n,replace:s,state:a,preventScrollReset:o,relative:i,viewTransition:c}=t===void 0?{}:t,d=xn(),u=cs(),h=td(e,{relative:i});return f.useCallback(m=>{if($E(m,n)){m.preventDefault();let v=s!==void 0?s:Xc(u)===Xc(h);d(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:c})}},[u,d,h,s,a,n,e,o,i,c])}function XE(e){let t=f.useRef(Wm(e)),n=f.useRef(!1),s=cs(),a=f.useMemo(()=>zE(s.search,n.current?null:t.current),[s.search]),o=xn(),i=f.useCallback((c,d)=>{const u=Wm(typeof c=="function"?c(a):c);n.current=!0,o("?"+u,d)},[o,a]);return[a,i]}function ZE(e,t){t===void 0&&(t={});let n=f.useContext(qE);n==null&&at(!1);let{basename:s}=GE(Km.useViewTransitionState),a=td(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ro(n.currentLocation.pathname,s)||n.currentLocation.pathname,i=ro(n.nextLocation.pathname,s)||n.nextLocation.pathname;return Vm(a.pathname,i)!=null||Vm(a.pathname,o)!=null}function kt(){var e;return(e=window.doiAdmin)!=null?e:{restUrl:"/wp-json/f12-doi/v1/",nonce:"",isProActive:!1,isProInstalled:!1,loadedAddons:[],registeredAddons:[],version:"0.0.0",emailEditorUrl:"",upgradeUrl:"https://www.forge12.com",supportUrl:"",feedbackUrl:"",adminUrl:"/wp-admin/",consentExportNonce:""}}function ra(e){return kt().loadedAddons.includes(e)}class rd extends Error{constructor(n,s,a){var o,i,c,d;super(n);Vo(this,"status");Vo(this,"code");Vo(this,"missing");Vo(this,"body");this.name="ApiError",this.status=s,this.body=a,this.code=(i=a==null?void 0:a.code)!=null?i:(o=a==null?void 0:a.data)==null?void 0:o.code,this.missing=(d=a==null?void 0:a.missing)!=null?d:(c=a==null?void 0:a.data)==null?void 0:c.missing}}async function Y(e,t={}){var c;const n=kt(),s=n.restUrl.replace(/\/+$/,""),a=e.replace(/^\/+/,""),o=`${s}/${a}`,i=await fetch(o,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!i.ok){const d=await i.json().catch(()=>({message:i.statusText})),u=(d==null?void 0:d.message)||((c=d==null?void 0:d.data)==null?void 0:c.message)||i.statusText;throw new rd(u,i.status,d)}return i.json()}const $i={},Qm=new Set,JE=Object.freeze([]);function e_(){Qm.forEach(e=>e())}function t_(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||($i[e]||($i[e]=[]),!$i[e].some(s=>s.name===t)&&($i[e].push({name:t,Component:n}),e_()))}function wb(e){return Qm.add(e),()=>{Qm.delete(e)}}function Nb(e){var t;return(t=$i[e])!=null?t:JE}let sd=null;function n_(){return sd||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{t_(e,t,n)}),sd=(async()=>{let e;try{e=await Y("addons")}catch(s){return console.error("[f12-doi] Failed to fetch /addons manifest",s),[]}const t=Array.isArray(e==null?void 0:e.addons)?e.addons:[],n=t.flatMap(s=>{var a,o;return(o=(a=s.ui)==null?void 0:a.bundles)!=null?o:[]}).filter(s=>s&&typeof s.url=="string"&&s.url!=="");return await Promise.allSettled(n.map(async s=>{try{await import(s.url)}catch(a){console.error(`[f12-doi] Failed to load addon bundle "${s.handle}" from ${s.url}`,a)}})),t})(),sd)}const r_=1,s_=1e6;let Gm=0;function a_(){return Gm=(Gm+1)%Number.MAX_SAFE_INTEGER,Gm.toString()}const Ym=new Map,Sb=e=>{if(Ym.has(e))return;const t=setTimeout(()=>{Ym.delete(e),zi({type:"REMOVE_TOAST",toastId:e})},s_);Ym.set(e,t)},o_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,r_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Sb(n):e.toasts.forEach(s=>{Sb(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ad=[];let od={toasts:[]};function zi(e){od=o_(od,e),ad.forEach(t=>{t(od)})}function i_({...e}){const t=a_(),n=a=>zi({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>zi({type:"DISMISS_TOAST",toastId:t});return zi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:n}}function l_(){const[e,t]=f.useState(od);return f.useEffect(()=>(ad.push(t),()=>{const n=ad.indexOf(t);n>-1&&ad.splice(n,1)}),[e]),{...e,toast:i_,dismiss:n=>zi({type:"DISMISS_TOAST",toastId:n})}}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Cb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function so(...e){return t=>{let n=!1;const s=e.map(a=>{const o=Cb(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<s.length;a++){const o=s[a];typeof o=="function"?o():Cb(e[a],null)}}}}function Ie(...e){return f.useCallback(so(...e),e)}function c_(e,t){const n=f.createContext(t),s=o=>{const{children:i,...c}=o,d=f.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:i})};s.displayName=e+"Provider";function a(o){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[s,a]}function It(e,t=[]){let n=[];function s(o,i){const c=f.createContext(i),d=n.length;n=[...n,i];const u=m=>{var y;const{scope:v,children:x,...j}=m,b=((y=v==null?void 0:v[e])==null?void 0:y[d])||c,w=f.useMemo(()=>j,Object.values(j));return r.jsx(b.Provider,{value:w,children:x})};u.displayName=o+"Provider";function h(m,v){var b;const x=((b=v==null?void 0:v[e])==null?void 0:b[d])||c,j=f.useContext(x);if(j)return j;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[u,h]}const a=()=>{const o=n.map(i=>f.createContext(i));return function(c){const d=(c==null?void 0:c[e])||o;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return a.scopeName=e,[s,d_(a,...t)]}function d_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=s.reduce((c,{useScope:d,scopeName:u})=>{const m=d(o)[`__scope${u}`];return{...c,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function kb(e){const t=u_(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(m_);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function u_(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=p_(a),c=h_(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var f_=Symbol("radix.slottable");function m_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===f_}function h_(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function p_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function id(e){const t=e+"CollectionProvider",[n,s]=It(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:w,children:y}=b,p=H.useRef(null),g=H.useRef(new Map).current;return r.jsx(a,{scope:w,itemMap:g,collectionRef:p,children:y})};i.displayName=t;const c=e+"CollectionSlot",d=kb(c),u=H.forwardRef((b,w)=>{const{scope:y,children:p}=b,g=o(c,y),N=Ie(w,g.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",v=kb(h),x=H.forwardRef((b,w)=>{const{scope:y,children:p,...g}=b,N=H.useRef(null),S=Ie(w,N),k=o(h,y);return H.useEffect(()=>(k.itemMap.set(N,{ref:N,...g}),()=>void k.itemMap.delete(N))),r.jsx(v,{[m]:"",ref:S,children:p})});x.displayName=h;function j(b){const w=o(e+"CollectionConsumer",b);return H.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((k,_)=>g.indexOf(k.ref.current)-g.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:x},j,s]}function x_(e){const t=g_(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(y_);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function g_(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=j_(a),c=b_(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v_=Symbol("radix.slottable");function y_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v_}function b_(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function j_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var w_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=w_.reduce((e,t)=>{const n=x_(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function Eb(e,t){e&&Zs.flushSync(()=>e.dispatchEvent(t))}function gn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function N_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e);f.useEffect(()=>{const s=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var S_="DismissableLayer",Xm="dismissableLayer.update",C_="dismissableLayer.pointerDownOutside",k_="dismissableLayer.focusOutside",_b,Pb=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ui=f.forwardRef((e,t)=>{var _;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:c,...d}=e,u=f.useContext(Pb),[h,m]=f.useState(null),v=(_=h==null?void 0:h.ownerDocument)!=null?_:globalThis==null?void 0:globalThis.document,[,x]=f.useState({}),j=Ie(t,C=>m(C)),b=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(w),p=h?b.indexOf(h):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=y,S=__(C=>{const R=C.target,T=[...u.branches].some(O=>O.contains(R));!N||T||(a==null||a(C),i==null||i(C),C.defaultPrevented||c==null||c())},v),k=P_(C=>{const R=C.target;[...u.branches].some(O=>O.contains(R))||(o==null||o(C),i==null||i(C),C.defaultPrevented||c==null||c())},v);return N_(C=>{p===u.layers.size-1&&(s==null||s(C),!C.defaultPrevented&&c&&(C.preventDefault(),c()))},v),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_b=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Rb(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=_b)}},[h,v,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Rb())},[h,u]),f.useEffect(()=>{const C=()=>x({});return document.addEventListener(Xm,C),()=>document.removeEventListener(Xm,C)},[]),r.jsx(ge.div,{...d,ref:j,style:{pointerEvents:g?N?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});Ui.displayName=S_;var E_="DismissableLayerBranch",Tb=f.forwardRef((e,t)=>{const n=f.useContext(Pb),s=f.useRef(null),a=Ie(t,s);return f.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),r.jsx(ge.div,{...e,ref:a})});Tb.displayName=E_;function __(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1),a=f.useRef(()=>{});return f.useEffect(()=>{const o=c=>{if(c.target&&!s.current){let d=function(){Ab(C_,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);s.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function P_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1);return f.useEffect(()=>{const a=o=>{o.target&&!s.current&&Ab(k_,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Rb(){const e=new CustomEvent(Xm);document.dispatchEvent(e)}function Ab(e,t,n,{discrete:s}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?Eb(a,o):a.dispatchEvent(o)}var T_=Ui,R_=Tb,ht=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},A_="Portal",Bi=f.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[a,o]=f.useState(!1);ht(()=>o(!0),[]);const i=n||a&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?Ey.createPortal(r.jsx(ge.div,{...s,ref:t}),i):null});Bi.displayName=A_;function O_(e,t){return f.useReducer((n,s)=>{const a=t[n][s];return a!=null?a:n},e)}var Tn=e=>{const{present:t,children:n}=e,s=I_(t),a=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),o=Ie(s.ref,M_(a));return typeof n=="function"||s.isPresent?f.cloneElement(a,{ref:o}):null};Tn.displayName="Presence";function I_(e){const[t,n]=f.useState(),s=f.useRef(null),a=f.useRef(e),o=f.useRef("none"),i=e?"mounted":"unmounted",[c,d]=O_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=ld(s.current);o.current=c==="mounted"?u:"none"},[c]),ht(()=>{const u=s.current,h=a.current;if(h!==e){const v=o.current,x=ld(u);e?d("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&v!==x?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),ht(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,v=j=>{const w=ld(s.current).includes(CSS.escape(j.animationName));if(j.target===t&&w&&(d("ANIMATION_END"),!a.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},x=j=>{j.target===t&&(o.current=ld(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function ld(e){return(e==null?void 0:e.animationName)||"none"}function M_(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var D_=Dl[" useInsertionEffect ".trim().toString()]||ht;function Zt({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,o,i]=F_({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:a;{const h=f.useRef(e!==void 0);f.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${s} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=c},[c,s])}const u=f.useCallback(h=>{var m;if(c){const v=L_(h)?h(e):h;v!==e&&((m=i.current)==null||m.call(i,v))}else o(h)},[c,e,o,i]);return[d,u]}function F_({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),a=f.useRef(n),o=f.useRef(t);return D_(()=>{o.current=t},[t]),f.useEffect(()=>{var i;a.current!==n&&((i=o.current)==null||i.call(o,n),a.current=n)},[n,a]),[n,s,o]}function L_(e){return typeof e=="function"}var Ob=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"}),$_="VisuallyHidden",cd=f.forwardRef((e,t)=>r.jsx(ge.span,{...e,ref:t,style:{...Ob,...e.style}}));cd.displayName=$_;var z_=cd,Zm="ToastProvider",[Jm,U_,B_]=id("Toast"),[Ib]=It("Toast",[B_]),[V_,dd]=Ib(Zm),Mb=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[c,d]=f.useState(null),[u,h]=f.useState(0),m=f.useRef(!1),v=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zm}\`. Expected non-empty \`string\`.`),r.jsx(Jm.Provider,{scope:t,children:r.jsx(V_,{scope:t,label:n,duration:s,swipeDirection:a,swipeThreshold:o,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:f.useCallback(()=>h(x=>x+1),[]),onToastRemove:f.useCallback(()=>h(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:i})})};Mb.displayName=Zm;var Db="ToastViewport",q_=["F8"],eh="toast.viewportPause",th="toast.viewportResume",Fb=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=q_,label:a="Notifications ({hotkey})",...o}=e,i=dd(Db,n),c=U_(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),v=Ie(t,m,i.onViewportChange),x=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=i.toastCount>0;f.useEffect(()=>{const w=y=>{var g;s.length!==0&&s.every(N=>y[N]||y.code===N)&&((g=m.current)==null||g.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[s]),f.useEffect(()=>{const w=d.current,y=m.current;if(j&&w&&y){const p=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(eh);y.dispatchEvent(k),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(th);y.dispatchEvent(k),i.isClosePausedRef.current=!1}},N=k=>{!w.contains(k.relatedTarget)&&g()},S=()=>{w.contains(document.activeElement)||g()};return w.addEventListener("focusin",p),w.addEventListener("focusout",N),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[j,i.isClosePausedRef]);const b=f.useCallback(({tabbingDirection:w})=>{const p=c().map(g=>{const N=g.ref.current,S=[N,...rP(N)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?p.reverse():p).flat()},[c]);return f.useEffect(()=>{const w=m.current;if(w){const y=p=>{var S,k,_;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const C=document.activeElement,R=p.shiftKey;if(p.target===w&&R){(S=u.current)==null||S.focus();return}const D=b({tabbingDirection:R?"backwards":"forwards"}),B=D.findIndex(I=>I===C);sh(D.slice(B+1))?p.preventDefault():R?(k=u.current)==null||k.focus():(_=h.current)==null||_.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[c,b]),r.jsxs(R_,{ref:d,role:"region","aria-label":a.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(nh,{ref:u,onFocusFromOutsideViewport:()=>{const w=b({tabbingDirection:"forwards"});sh(w)}}),r.jsx(Jm.Slot,{scope:n,children:r.jsx(ge.ol,{tabIndex:-1,...o,ref:v})}),j&&r.jsx(nh,{ref:h,onFocusFromOutsideViewport:()=>{const w=b({tabbingDirection:"backwards"});sh(w)}})]})});Fb.displayName=Db;var Lb="ToastFocusProxy",nh=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...a}=e,o=dd(Lb,n);return r.jsx(cd,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const c=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(c))&&s()}})});nh.displayName=Lb;var Vi="Toast",H_="toast.swipeStart",W_="toast.swipeMove",K_="toast.swipeCancel",Q_="toast.swipeEnd",$b=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:a,onOpenChange:o,...i}=e,[c,d]=Zt({prop:s,defaultProp:a!=null?a:!0,onChange:o,caller:Vi});return r.jsx(Tn,{present:n||c,children:r.jsx(X_,{open:c,...i,ref:t,onClose:()=>d(!1),onPause:gn(e.onPause),onResume:gn(e.onResume),onSwipeStart:pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:pe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,u=>{const{x:h,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});$b.displayName=Vi;var[G_,Y_]=Ib(Vi,{onClose(){}}),X_=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:x,...j}=e,b=dd(Vi,n),[w,y]=f.useState(null),p=Ie(t,I=>y(I)),g=f.useRef(null),N=f.useRef(null),S=a||b.duration,k=f.useRef(0),_=f.useRef(S),C=f.useRef(0),{onToastAdd:R,onToastRemove:T}=b,O=gn(()=>{var re;(w==null?void 0:w.contains(document.activeElement))&&((re=b.viewport)==null||re.focus()),i()}),D=f.useCallback(I=>{!I||I===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(O,I))},[O]);f.useEffect(()=>{const I=b.viewport;if(I){const re=()=>{D(_.current),u==null||u()},F=()=>{const ne=new Date().getTime()-k.current;_.current=_.current-ne,window.clearTimeout(C.current),d==null||d()};return I.addEventListener(eh,F),I.addEventListener(th,re),()=>{I.removeEventListener(eh,F),I.removeEventListener(th,re)}}},[b.viewport,S,d,u,D]),f.useEffect(()=>{o&&!b.isClosePausedRef.current&&D(S)},[o,S,b.isClosePausedRef,D]),f.useEffect(()=>(R(),()=>T()),[R,T]);const B=f.useMemo(()=>w?Wb(w):null,[w]);return b.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(Z_,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:B}),r.jsx(G_,{scope:n,onClose:O,children:Zs.createPortal(r.jsx(Jm.ItemSlot,{scope:n,children:r.jsx(T_,{asChild:!0,onEscapeKeyDown:pe(c,()=>{b.isFocusedToastEscapeKeyDownRef.current||O(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(ge.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":b.swipeDirection,...j,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,I=>{I.key==="Escape"&&(c==null||c(I.nativeEvent),I.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:pe(e.onPointerDown,I=>{I.button===0&&(g.current={x:I.clientX,y:I.clientY})}),onPointerMove:pe(e.onPointerMove,I=>{if(!g.current)return;const re=I.clientX-g.current.x,F=I.clientY-g.current.y,ne=!!N.current,A=["left","right"].includes(b.swipeDirection),M=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,Z=A?M(0,re):0,xe=A?0:M(0,F),P=I.pointerType==="touch"?10:2,$={x:Z,y:xe},W={originalEvent:I,delta:$};ne?(N.current=$,ud(W_,m,W,{discrete:!1})):Kb($,b.swipeDirection,P)?(N.current=$,ud(H_,h,W,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(re)>P||Math.abs(F)>P)&&(g.current=null)}),onPointerUp:pe(e.onPointerUp,I=>{const re=N.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),N.current=null,g.current=null,re){const ne=I.currentTarget,A={originalEvent:I,delta:re};Kb(re,b.swipeDirection,b.swipeThreshold)?ud(Q_,x,A,{discrete:!0}):ud(K_,v,A,{discrete:!0}),ne.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),Z_=e=>{const{__scopeToast:t,children:n,...s}=e,a=dd(Vi,t),[o,i]=f.useState(!1),[c,d]=f.useState(!1);return tP(()=>i(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:r.jsx(Bi,{asChild:!0,children:r.jsx(cd,{...s,children:o&&r.jsxs(r.Fragment,{children:[a.label," ",n]})})})},J_="ToastTitle",zb=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(ge.div,{...s,ref:t})});zb.displayName=J_;var eP="ToastDescription",Ub=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(ge.div,{...s,ref:t})});Ub.displayName=eP;var Bb="ToastAction",Vb=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(Hb,{altText:n,asChild:!0,children:r.jsx(rh,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Bb}\`. Expected non-empty \`string\`.`),null)});Vb.displayName=Bb;var qb="ToastClose",rh=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,a=Y_(qb,n);return r.jsx(Hb,{asChild:!0,children:r.jsx(ge.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,a.onClose)})})});rh.displayName=qb;var Hb=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:s,...a}=e;return r.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function Wb(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),nP(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",o=s.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=s.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Wb(s))}}),t}function ud(e,t,n,{discrete:s}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?Eb(a,o):a.dispatchEvent(o)}var Kb=(e,t,n=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),o=s>a;return t==="left"||t==="right"?o&&s>n:!o&&a>n};function tP(e=()=>{}){const t=gn(e);ht(()=>{let n=0,s=0;return n=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(s)}},[t])}function nP(e){return e.nodeType===e.ELEMENT_NODE}function rP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var sP=Mb,Qb=Fb,Gb=$b,Yb=zb,Xb=Ub,Zb=Vb,Jb=rh;function e0(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=e0(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function t0(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=e0(e))&&(s&&(s+=" "),s+=t);return s}const n0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r0=t0,ao=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return r0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(u=>{const h=n==null?void 0:n[u],m=o==null?void 0:o[u];if(h===null)return null;const v=n0(h)||n0(m);return a[u][v]}),c=n&&Object.entries(n).reduce((u,h)=>{let[m,v]=h;return v===void 0||(u[m]=v),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,h)=>{let{class:m,className:v,...x}=h;return Object.entries(x).every(j=>{let[b,w]=j;return Array.isArray(w)?w.includes({...o,...c}[b]):{...o,...c}[b]===w})?[...u,m,v]:u},[]);return r0(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** | |
| 70 | 70 | * @license lucide-react v0.462.0 - ISC |
| 71 | 71 | * |
| 72 | 72 | * This source code is licensed under the ISC license. |
| 73 | 73 | * See the LICENSE file in the root directory of this source tree. |
| 74 | - */const xP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mb=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** | |
| 74 | + */const aP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s0=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** | |
| 75 | 75 | * @license lucide-react v0.462.0 - ISC |
| 76 | 76 | * |
| 77 | 77 | * This source code is licensed under the ISC license. |
| 78 | 78 | * See the LICENSE file in the root directory of this source tree. |
| 79 | - */var gP={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"};/** | |
| 79 | + */var oP={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"};/** | |
| 80 | 80 | * @license lucide-react v0.462.0 - ISC |
| 81 | 81 | * |
| 82 | 82 | * This source code is licensed under the ISC license. |
| 83 | 83 | * See the LICENSE file in the root directory of this source tree. |
| 84 | - */const vP=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:o,iconNode:i,...c},d)=>f.createElement("svg",{ref:d,...gP,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:mb("lucide",a),...c},[...i.map(([u,h])=>f.createElement(u,h)),...Array.isArray(o)?o:[o]]));/** | |
| 84 | + */const iP=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:o,iconNode:i,...c},d)=>f.createElement("svg",{ref:d,...oP,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:s0("lucide",a),...c},[...i.map(([u,h])=>f.createElement(u,h)),...Array.isArray(o)?o:[o]]));/** | |
| 85 | 85 | * @license lucide-react v0.462.0 - ISC |
| 86 | 86 | * |
| 87 | 87 | * This source code is licensed under the ISC license. |
| 88 | 88 | * See the LICENSE file in the root directory of this source tree. |
| 89 | - */const ie=(e,t)=>{const n=f.forwardRef(({className:s,...a},o)=>f.createElement(vP,{ref:o,iconNode:t,className:mb(`lucide-${xP(e)}`,s),...a}));return n.displayName=`${e}`,n};/** | |
| 89 | + */const ce=(e,t)=>{const n=f.forwardRef(({className:s,...a},o)=>f.createElement(iP,{ref:o,iconNode:t,className:s0(`lucide-${aP(e)}`,s),...a}));return n.displayName=`${e}`,n};/** | |
| 90 | 90 | * @license lucide-react v0.462.0 - ISC |
| 91 | 91 | * |
| 92 | 92 | * This source code is licensed under the ISC license. |
| 93 | 93 | * See the LICENSE file in the root directory of this source tree. |
| 94 | - */const ud=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** | |
| 94 | + */const fd=ce("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** | |
| 95 | 95 | * @license lucide-react v0.462.0 - ISC |
| 96 | 96 | * |
| 97 | 97 | * This source code is licensed under the ISC license. |
| 98 | 98 | * See the LICENSE file in the root directory of this source tree. |
| 99 | - */const Wi=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** | |
| 99 | + */const a0=ce("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** | |
| 100 | 100 | * @license lucide-react v0.462.0 - ISC |
| 101 | 101 | * |
| 102 | 102 | * This source code is licensed under the ISC license. |
| 103 | 103 | * See the LICENSE file in the root directory of this source tree. |
| 104 | - */const yP=ie("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 104 | + */const oo=ce("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** | |
| 105 | 105 | * @license lucide-react v0.462.0 - ISC |
| 106 | 106 | * |
| 107 | 107 | * This source code is licensed under the ISC license. |
| 108 | 108 | * See the LICENSE file in the root directory of this source tree. |
| 109 | - */const hb=ie("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** | |
| 109 | + */const lP=ce("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"}]]);/** | |
| 110 | 110 | * @license lucide-react v0.462.0 - ISC |
| 111 | 111 | * |
| 112 | 112 | * This source code is licensed under the ISC license. |
| 113 | 113 | * See the LICENSE file in the root directory of this source tree. |
| 114 | - */const oo=ie("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** | |
| 114 | + */const cP=ce("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** | |
| 115 | 115 | * @license lucide-react v0.462.0 - ISC |
| 116 | 116 | * |
| 117 | 117 | * This source code is licensed under the ISC license. |
| 118 | 118 | * See the LICENSE file in the root directory of this source tree. |
| 119 | - */const bP=ie("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"}]]);/** | |
| 119 | + */const ds=ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** | |
| 120 | 120 | * @license lucide-react v0.462.0 - ISC |
| 121 | 121 | * |
| 122 | 122 | * This source code is licensed under the ISC license. |
| 123 | 123 | * See the LICENSE file in the root directory of this source tree. |
| 124 | - */const jP=ie("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** | |
| 124 | + */const sa=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** | |
| 125 | 125 | * @license lucide-react v0.462.0 - ISC |
| 126 | 126 | * |
| 127 | 127 | * This source code is licensed under the ISC license. |
| 128 | 128 | * See the LICENSE file in the root directory of this source tree. |
| 129 | - */const cs=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** | |
| 129 | + */const o0=ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** | |
| 130 | 130 | * @license lucide-react v0.462.0 - ISC |
| 131 | 131 | * |
| 132 | 132 | * This source code is licensed under the ISC license. |
| 133 | 133 | * See the LICENSE file in the root directory of this source tree. |
| 134 | - */const sa=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** | |
| 134 | + */const ah=ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** | |
| 135 | 135 | * @license lucide-react v0.462.0 - ISC |
| 136 | 136 | * |
| 137 | 137 | * This source code is licensed under the ISC license. |
| 138 | 138 | * See the LICENSE file in the root directory of this source tree. |
| 139 | - */const pb=ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** | |
| 139 | + */const dP=ce("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** | |
| 140 | 140 | * @license lucide-react v0.462.0 - ISC |
| 141 | 141 | * |
| 142 | 142 | * This source code is licensed under the ISC license. |
| 143 | 143 | * See the LICENSE file in the root directory of this source tree. |
| 144 | - */const dh=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** | |
| 144 | + */const md=ce("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** | |
| 145 | 145 | * @license lucide-react v0.462.0 - ISC |
| 146 | 146 | * |
| 147 | 147 | * This source code is licensed under the ISC license. |
| 148 | 148 | * See the LICENSE file in the root directory of this source tree. |
| 149 | - */const wP=ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** | |
| 149 | + */const aa=ce("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** | |
| 150 | 150 | * @license lucide-react v0.462.0 - ISC |
| 151 | 151 | * |
| 152 | 152 | * This source code is licensed under the ISC license. |
| 153 | 153 | * See the LICENSE file in the root directory of this source tree. |
| 154 | - */const fd=ie("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** | |
| 154 | + */const i0=ce("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 155 | 155 | * @license lucide-react v0.462.0 - ISC |
| 156 | 156 | * |
| 157 | 157 | * This source code is licensed under the ISC license. |
| 158 | 158 | * See the LICENSE file in the root directory of this source tree. |
| 159 | - */const qi=ie("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** | |
| 159 | + */const uP=ce("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** | |
| 160 | 160 | * @license lucide-react v0.462.0 - ISC |
| 161 | 161 | * |
| 162 | 162 | * This source code is licensed under the ISC license. |
| 163 | 163 | * See the LICENSE file in the root directory of this source tree. |
| 164 | - */const xb=ie("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** | |
| 164 | + */const oh=ce("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** | |
| 165 | 165 | * @license lucide-react v0.462.0 - ISC |
| 166 | 166 | * |
| 167 | 167 | * This source code is licensed under the ISC license. |
| 168 | 168 | * See the LICENSE file in the root directory of this source tree. |
| 169 | - */const NP=ie("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** | |
| 169 | + */const l0=ce("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** | |
| 170 | 170 | * @license lucide-react v0.462.0 - ISC |
| 171 | 171 | * |
| 172 | 172 | * This source code is licensed under the ISC license. |
| 173 | 173 | * See the LICENSE file in the root directory of this source tree. |
| 174 | - */const uh=ie("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** | |
| 174 | + */const Gn=ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** | |
| 175 | 175 | * @license lucide-react v0.462.0 - ISC |
| 176 | 176 | * |
| 177 | 177 | * This source code is licensed under the ISC license. |
| 178 | 178 | * See the LICENSE file in the root directory of this source tree. |
| 179 | - */const gb=ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** | |
| 179 | + */const c0=ce("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** | |
| 180 | 180 | * @license lucide-react v0.462.0 - ISC |
| 181 | 181 | * |
| 182 | 182 | * This source code is licensed under the ISC license. |
| 183 | 183 | * See the LICENSE file in the root directory of this source tree. |
| 184 | - */const ds=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** | |
| 184 | + */const ih=ce("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"}]]);/** | |
| 185 | 185 | * @license lucide-react v0.462.0 - ISC |
| 186 | 186 | * |
| 187 | 187 | * This source code is licensed under the ISC license. |
| 188 | 188 | * See the LICENSE file in the root directory of this source tree. |
| 189 | - */const vb=ie("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** | |
| 189 | + */const qi=ce("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** | |
| 190 | 190 | * @license lucide-react v0.462.0 - ISC |
| 191 | 191 | * |
| 192 | 192 | * This source code is licensed under the ISC license. |
| 193 | 193 | * See the LICENSE file in the root directory of this source tree. |
| 194 | - */const fh=ie("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"}]]);/** | |
| 194 | + */const Hi=ce("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** | |
| 195 | 195 | * @license lucide-react v0.462.0 - ISC |
| 196 | 196 | * |
| 197 | 197 | * This source code is licensed under the ISC license. |
| 198 | 198 | * See the LICENSE file in the root directory of this source tree. |
| 199 | - */const Ki=ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** | |
| 199 | + */const Wi=ce("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** | |
| 200 | 200 | * @license lucide-react v0.462.0 - ISC |
| 201 | 201 | * |
| 202 | 202 | * This source code is licensed under the ISC license. |
| 203 | 203 | * See the LICENSE file in the root directory of this source tree. |
| 204 | - */const Qi=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** | |
| 204 | + */const fP=ce("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"}]]);/** | |
| 205 | 205 | * @license lucide-react v0.462.0 - ISC |
| 206 | 206 | * |
| 207 | 207 | * This source code is licensed under the ISC license. |
| 208 | 208 | * See the LICENSE file in the root directory of this source tree. |
| 209 | - */const io=ie("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** | |
| 209 | + */const mP=ce("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/** | |
| 210 | 210 | * @license lucide-react v0.462.0 - ISC |
| 211 | 211 | * |
| 212 | 212 | * This source code is licensed under the ISC license. |
| 213 | 213 | * See the LICENSE file in the root directory of this source tree. |
| 214 | - */const SP=ie("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"}]]);/** | |
| 214 | + */const hP=ce("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** | |
| 215 | 215 | * @license lucide-react v0.462.0 - ISC |
| 216 | 216 | * |
| 217 | 217 | * This source code is licensed under the ISC license. |
| 218 | 218 | * See the LICENSE file in the root directory of this source tree. |
| 219 | - */const CP=ie("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/** | |
| 219 | + */const io=ce("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** | |
| 220 | 220 | * @license lucide-react v0.462.0 - ISC |
| 221 | 221 | * |
| 222 | 222 | * This source code is licensed under the ISC license. |
| 223 | 223 | * See the LICENSE file in the root directory of this source tree. |
| 224 | - */const kP=ie("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** | |
| 224 | + */const pP=ce("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** | |
| 225 | 225 | * @license lucide-react v0.462.0 - ISC |
| 226 | 226 | * |
| 227 | 227 | * This source code is licensed under the ISC license. |
| 228 | 228 | * See the LICENSE file in the root directory of this source tree. |
| 229 | - */const aa=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** | |
| 229 | + */const xP=ce("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** | |
| 230 | 230 | * @license lucide-react v0.462.0 - ISC |
| 231 | 231 | * |
| 232 | 232 | * This source code is licensed under the ISC license. |
| 233 | 233 | * See the LICENSE file in the root directory of this source tree. |
| 234 | - */const EP=ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** | |
| 234 | + */const gP=ce("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** | |
| 235 | 235 | * @license lucide-react v0.462.0 - ISC |
| 236 | 236 | * |
| 237 | 237 | * This source code is licensed under the ISC license. |
| 238 | 238 | * See the LICENSE file in the root directory of this source tree. |
| 239 | - */const _P=ie("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** | |
| 239 | + */const yt=ce("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** | |
| 240 | 240 | * @license lucide-react v0.462.0 - ISC |
| 241 | 241 | * |
| 242 | 242 | * This source code is licensed under the ISC license. |
| 243 | 243 | * See the LICENSE file in the root directory of this source tree. |
| 244 | - */const PP=ie("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** | |
| 244 | + */const d0=ce("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** | |
| 245 | 245 | * @license lucide-react v0.462.0 - ISC |
| 246 | 246 | * |
| 247 | 247 | * This source code is licensed under the ISC license. |
| 248 | 248 | * See the LICENSE file in the root directory of this source tree. |
| 249 | - */const wt=ie("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** | |
| 249 | + */const vP=ce("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** | |
| 250 | 250 | * @license lucide-react v0.462.0 - ISC |
| 251 | 251 | * |
| 252 | 252 | * This source code is licensed under the ISC license. |
| 253 | 253 | * See the LICENSE file in the root directory of this source tree. |
| 254 | - */const yb=ie("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** | |
| 254 | + */const yP=ce("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** | |
| 255 | 255 | * @license lucide-react v0.462.0 - ISC |
| 256 | 256 | * |
| 257 | 257 | * This source code is licensed under the ISC license. |
| 258 | 258 | * See the LICENSE file in the root directory of this source tree. |
| 259 | - */const TP=ie("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** | |
| 259 | + */const bP=ce("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** | |
| 260 | 260 | * @license lucide-react v0.462.0 - ISC |
| 261 | 261 | * |
| 262 | 262 | * This source code is licensed under the ISC license. |
| 263 | 263 | * See the LICENSE file in the root directory of this source tree. |
| 264 | - */const RP=ie("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** | |
| 264 | + */const jP=ce("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** | |
| 265 | 265 | * @license lucide-react v0.462.0 - ISC |
| 266 | 266 | * |
| 267 | 267 | * This source code is licensed under the ISC license. |
| 268 | 268 | * See the LICENSE file in the root directory of this source tree. |
| 269 | - */const AP=ie("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** | |
| 269 | + */const Rn=ce("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** | |
| 270 | 270 | * @license lucide-react v0.462.0 - ISC |
| 271 | 271 | * |
| 272 | 272 | * This source code is licensed under the ISC license. |
| 273 | 273 | * See the LICENSE file in the root directory of this source tree. |
| 274 | - */const OP=ie("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** | |
| 274 | + */const Nr=ce("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** | |
| 275 | 275 | * @license lucide-react v0.462.0 - ISC |
| 276 | 276 | * |
| 277 | 277 | * This source code is licensed under the ISC license. |
| 278 | 278 | * See the LICENSE file in the root directory of this source tree. |
| 279 | - */const An=ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** | |
| 279 | + */const u0=ce("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** | |
| 280 | 280 | * @license lucide-react v0.462.0 - ISC |
| 281 | 281 | * |
| 282 | 282 | * This source code is licensed under the ISC license. |
| 283 | 283 | * See the LICENSE file in the root directory of this source tree. |
| 284 | - */const md=ie("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** | |
| 284 | + */const An=ce("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** | |
| 285 | 285 | * @license lucide-react v0.462.0 - ISC |
| 286 | 286 | * |
| 287 | 287 | * This source code is licensed under the ISC license. |
| 288 | 288 | * See the LICENSE file in the root directory of this source tree. |
| 289 | - */const bb=ie("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** | |
| 289 | + */const wP=ce("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** | |
| 290 | 290 | * @license lucide-react v0.462.0 - ISC |
| 291 | 291 | * |
| 292 | 292 | * This source code is licensed under the ISC license. |
| 293 | 293 | * See the LICENSE file in the root directory of this source tree. |
| 294 | - */const On=ie("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** | |
| 294 | + */const f0=ce("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** | |
| 295 | 295 | * @license lucide-react v0.462.0 - ISC |
| 296 | 296 | * |
| 297 | 297 | * This source code is licensed under the ISC license. |
| 298 | 298 | * See the LICENSE file in the root directory of this source tree. |
| 299 | - */const IP=ie("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** | |
| 299 | + */const NP=ce("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** | |
| 300 | 300 | * @license lucide-react v0.462.0 - ISC |
| 301 | 301 | * |
| 302 | 302 | * This source code is licensed under the ISC license. |
| 303 | 303 | * See the LICENSE file in the root directory of this source tree. |
| 304 | - */const jb=ie("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** | |
| 304 | + */const hd=ce("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** | |
| 305 | 305 | * @license lucide-react v0.462.0 - ISC |
| 306 | 306 | * |
| 307 | 307 | * This source code is licensed under the ISC license. |
| 308 | 308 | * See the LICENSE file in the root directory of this source tree. |
| 309 | - */const MP=ie("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** | |
| 309 | + */const lh=ce("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** | |
| 310 | 310 | * @license lucide-react v0.462.0 - ISC |
| 311 | 311 | * |
| 312 | 312 | * This source code is licensed under the ISC license. |
| 313 | 313 | * See the LICENSE file in the root directory of this source tree. |
| 314 | - */const hd=ie("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** | |
| 314 | + */const lo=ce("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** | |
| 315 | 315 | * @license lucide-react v0.462.0 - ISC |
| 316 | 316 | * |
| 317 | 317 | * This source code is licensed under the ISC license. |
| 318 | 318 | * See the LICENSE file in the root directory of this source tree. |
| 319 | - */const mh=ie("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** | |
| 319 | + */const Ki=ce("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** | |
| 320 | 320 | * @license lucide-react v0.462.0 - ISC |
| 321 | 321 | * |
| 322 | 322 | * This source code is licensed under the ISC license. |
| 323 | 323 | * See the LICENSE file in the root directory of this source tree. |
| 324 | - */const lo=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** | |
| 324 | + */const SP=ce("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** | |
| 325 | 325 | * @license lucide-react v0.462.0 - ISC |
| 326 | 326 | * |
| 327 | 327 | * This source code is licensed under the ISC license. |
| 328 | 328 | * See the LICENSE file in the root directory of this source tree. |
| 329 | - */const Gi=ie("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** | |
| 329 | + */const CP=ce("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"}]]);/** | |
| 330 | 330 | * @license lucide-react v0.462.0 - ISC |
| 331 | 331 | * |
| 332 | 332 | * This source code is licensed under the ISC license. |
| 333 | 333 | * See the LICENSE file in the root directory of this source tree. |
| 334 | - */const wb=ie("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** | |
| 334 | + */const pd=ce("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** | |
| 335 | 335 | * @license lucide-react v0.462.0 - ISC |
| 336 | 336 | * |
| 337 | 337 | * This source code is licensed under the ISC license. |
| 338 | 338 | * See the LICENSE file in the root directory of this source tree. |
| 339 | - */const DP=ie("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"}]]);/** | |
| 339 | + */const oa=ce("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** | |
| 340 | 340 | * @license lucide-react v0.462.0 - ISC |
| 341 | 341 | * |
| 342 | 342 | * This source code is licensed under the ISC license. |
| 343 | 343 | * See the LICENSE file in the root directory of this source tree. |
| 344 | - */const pd=ie("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** | |
| 344 | + */const xd=ce("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** | |
| 345 | 345 | * @license lucide-react v0.462.0 - ISC |
| 346 | 346 | * |
| 347 | 347 | * This source code is licensed under the ISC license. |
| 348 | 348 | * See the LICENSE file in the root directory of this source tree. |
| 349 | - */const oa=ie("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** | |
| 349 | + */const kP=ce("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** | |
| 350 | 350 | * @license lucide-react v0.462.0 - ISC |
| 351 | 351 | * |
| 352 | 352 | * This source code is licensed under the ISC license. |
| 353 | 353 | * See the LICENSE file in the root directory of this source tree. |
| 354 | - */const xd=ie("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** | |
| 354 | + */const EP=ce("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** | |
| 355 | 355 | * @license lucide-react v0.462.0 - ISC |
| 356 | 356 | * |
| 357 | 357 | * This source code is licensed under the ISC license. |
| 358 | 358 | * See the LICENSE file in the root directory of this source tree. |
| 359 | - */const FP=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** | |
| 359 | + */const ch=ce("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** | |
| 360 | 360 | * @license lucide-react v0.462.0 - ISC |
| 361 | 361 | * |
| 362 | 362 | * This source code is licensed under the ISC license. |
| 363 | 363 | * See the LICENSE file in the root directory of this source tree. |
| 364 | - */const LP=ie("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** | |
| 364 | + */const dh=ce("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** | |
| 365 | 365 | * @license lucide-react v0.462.0 - ISC |
| 366 | 366 | * |
| 367 | 367 | * This source code is licensed under the ISC license. |
| 368 | 368 | * See the LICENSE file in the root directory of this source tree. |
| 369 | - */const hh=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** | |
| 369 | + */const _P=ce("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** | |
| 370 | 370 | * @license lucide-react v0.462.0 - ISC |
| 371 | 371 | * |
| 372 | 372 | * This source code is licensed under the ISC license. |
| 373 | 373 | * See the LICENSE file in the root directory of this source tree. |
| 374 | - */const ph=ie("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** | |
| 374 | + */const uh=ce("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** | |
| 375 | 375 | * @license lucide-react v0.462.0 - ISC |
| 376 | 376 | * |
| 377 | 377 | * This source code is licensed under the ISC license. |
| 378 | 378 | * See the LICENSE file in the root directory of this source tree. |
| 379 | - */const $P=ie("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** | |
| 379 | + */const vn=ce("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"}]]);/** | |
| 380 | 380 | * @license lucide-react v0.462.0 - ISC |
| 381 | 381 | * |
| 382 | 382 | * This source code is licensed under the ISC license. |
| 383 | 383 | * See the LICENSE file in the root directory of this source tree. |
| 384 | - */const xh=ie("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** | |
| 384 | + */const PP=ce("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** | |
| 385 | 385 | * @license lucide-react v0.462.0 - ISC |
| 386 | 386 | * |
| 387 | 387 | * This source code is licensed under the ISC license. |
| 388 | 388 | * See the LICENSE file in the root directory of this source tree. |
| 389 | - */const vn=ie("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"}]]);/** | |
| 389 | + */const Mt=ce("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"}]]);/** | |
| 390 | 390 | * @license lucide-react v0.462.0 - ISC |
| 391 | 391 | * |
| 392 | 392 | * This source code is licensed under the ISC license. |
| 393 | 393 | * See the LICENSE file in the root directory of this source tree. |
| 394 | - */const zP=ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** | |
| 394 | + */const m0=ce("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/** | |
| 395 | 395 | * @license lucide-react v0.462.0 - ISC |
| 396 | 396 | * |
| 397 | 397 | * This source code is licensed under the ISC license. |
| 398 | 398 | * See the LICENSE file in the root directory of this source tree. |
| 399 | - */const Nt=ie("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"}]]);/** | |
| 399 | + */const TP=ce("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** | |
| 400 | 400 | * @license lucide-react v0.462.0 - ISC |
| 401 | 401 | * |
| 402 | 402 | * This source code is licensed under the ISC license. |
| 403 | 403 | * See the LICENSE file in the root directory of this source tree. |
| 404 | - */const Nb=ie("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/** | |
| 404 | + */const h0=ce("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** | |
| 405 | 405 | * @license lucide-react v0.462.0 - ISC |
| 406 | 406 | * |
| 407 | 407 | * This source code is licensed under the ISC license. |
| 408 | 408 | * See the LICENSE file in the root directory of this source tree. |
| 409 | - */const UP=ie("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** | |
| 409 | + */const fh=ce("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** | |
| 410 | 410 | * @license lucide-react v0.462.0 - ISC |
| 411 | 411 | * |
| 412 | 412 | * This source code is licensed under the ISC license. |
| 413 | 413 | * See the LICENSE file in the root directory of this source tree. |
| 414 | - */const Sb=ie("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** | |
| 414 | + */const gd=ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** | |
| 415 | 415 | * @license lucide-react v0.462.0 - ISC |
| 416 | 416 | * |
| 417 | 417 | * This source code is licensed under the ISC license. |
| 418 | 418 | * See the LICENSE file in the root directory of this source tree. |
| 419 | - */const gh=ie("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** | |
| 420 | - * @license lucide-react v0.462.0 - ISC | |
| 421 | - * | |
| 422 | - * This source code is licensed under the ISC license. | |
| 423 | - * See the LICENSE file in the root directory of this source tree. | |
| 424 | - */const BP=ie("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/** | |
| 425 | - * @license lucide-react v0.462.0 - ISC | |
| 426 | - * | |
| 427 | - * This source code is licensed under the ISC license. | |
| 428 | - * See the LICENSE file in the root directory of this source tree. | |
| 429 | - */const gd=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** | |
| 430 | - * @license lucide-react v0.462.0 - ISC | |
| 431 | - * | |
| 432 | - * This source code is licensed under the ISC license. | |
| 433 | - * See the LICENSE file in the root directory of this source tree. | |
| 434 | - */const VP=ie("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),vh="-",HP=e=>{const t=qP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const c=i.split(vh);return c[0]===""&&c.length!==1&&c.shift(),Cb(c,t)||WP(i)},getConflictingClassGroupIds:(i,c)=>{const d=n[i]||[];return c&&s[i]?[...d,...s[i]]:d}}},Cb=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),a=s?Cb(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(vh);return(i=t.validators.find(({validator:c})=>c(o)))==null?void 0:i.classGroupId},kb=/^\[(.+)\]$/,WP=e=>{if(kb.test(e)){const t=kb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qP=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return QP(Object.entries(e.classGroups),n).forEach(([o,i])=>{yh(i,s,o,t)}),s},yh=(e,t,n,s)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:Eb(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(KP(a)){yh(a(s),t,n,s);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,i])=>{yh(i,Eb(t,o),n,s)})})},Eb=(e,t)=>{let n=e;return t.split(vh).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},KP=e=>e.isThemeGetter,QP=(e,t)=>t?e.map(([n,s])=>{const a=s.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,c])=>[t+i,c])):o);return[n,a]}):e,GP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const a=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,s=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=s.get(o))!==void 0)return a(o,i),i},set(o,i){n.has(o)?n.set(o,i):a(o,i)}}},_b="!",YP=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,a=t[0],o=t.length,i=c=>{const d=[];let u=0,h=0,m;for(let j=0;j<c.length;j++){let y=c[j];if(u===0){if(y===a&&(s||c.slice(j,j+o)===t)){d.push(c.slice(h,j)),h=j+o;continue}if(y==="/"){m=j;continue}}y==="["?u++:y==="]"&&u--}const b=d.length===0?c:c.substring(h),v=b.startsWith(_b),w=v?b.substring(1):b,g=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:g}};return n?c=>n({className:c,parseClassName:i}):i},XP=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},ZP=e=>({cache:GP(e.cacheSize),parseClassName:YP(e),...HP(e)}),JP=/\s+/,eT=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(JP);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:h,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=n(u);let w=!!v,g=s(w?b.substring(0,v):b);if(!g){if(!w){c=u+(c.length>0?" "+c:c);continue}if(g=s(b),!g){c=u+(c.length>0?" "+c:c);continue}w=!1}const j=XP(h).join(":"),y=m?j+_b:j,p=y+g;if(o.includes(p))continue;o.push(p);const x=a(g,w);for(let N=0;N<x.length;++N){const S=x[N];o.push(y+S)}c=u+(c.length>0?" "+c:c)}return c};function tT(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Pb(t))&&(s&&(s+=" "),s+=n);return s}const Pb=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Pb(e[s]))&&(n&&(n+=" "),n+=t);return n};function nT(e,...t){let n,s,a,o=i;function i(d){const u=t.reduce((h,m)=>m(h),e());return n=ZP(u),s=n.cache.get,a=n.cache.set,o=c,c(d)}function c(d){const u=s(d);if(u)return u;const h=eT(d,n);return a(d,h),h}return function(){return o(tT.apply(null,arguments))}}const Xe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tb=/^\[(?:([a-z-]+):)?(.+)\]$/i,rT=/^\d+\/\d+$/,sT=new Set(["px","full","screen"]),aT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oT=/\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$/,iT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=e=>co(e)||sT.has(e)||rT.test(e),us=e=>uo(e,"length",gT),co=e=>!!e&&!Number.isNaN(Number(e)),bh=e=>uo(e,"number",co),Yi=e=>!!e&&Number.isInteger(Number(e)),dT=e=>e.endsWith("%")&&co(e.slice(0,-1)),Pe=e=>Tb.test(e),fs=e=>aT.test(e),uT=new Set(["length","size","percentage"]),fT=e=>uo(e,uT,Rb),mT=e=>uo(e,"position",Rb),hT=new Set(["image","url"]),pT=e=>uo(e,hT,yT),xT=e=>uo(e,"",vT),Xi=()=>!0,uo=(e,t,n)=>{const s=Tb.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},gT=e=>oT.test(e)&&!iT.test(e),Rb=()=>!1,vT=e=>lT.test(e),yT=e=>cT.test(e),bT=nT(()=>{const e=Xe("colors"),t=Xe("spacing"),n=Xe("blur"),s=Xe("brightness"),a=Xe("borderColor"),o=Xe("borderRadius"),i=Xe("borderSpacing"),c=Xe("borderWidth"),d=Xe("contrast"),u=Xe("grayscale"),h=Xe("hueRotate"),m=Xe("invert"),b=Xe("gap"),v=Xe("gradientColorStops"),w=Xe("gradientColorStopPositions"),g=Xe("inset"),j=Xe("margin"),y=Xe("opacity"),p=Xe("padding"),x=Xe("saturate"),N=Xe("scale"),S=Xe("sepia"),C=Xe("skew"),E=Xe("space"),k=Xe("translate"),R=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Pe,t],F=()=>[Pe,t],B=()=>["",wr,us],I=()=>["auto",co,Pe],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",Pe],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[co,Pe];return{cacheSize:500,separator:":",theme:{colors:[Xi],spacing:[wr,us],blur:["none","",fs,Pe],brightness:pe(),borderColor:[e],borderRadius:["none","","full",fs,Pe],borderSpacing:F(),borderWidth:B(),contrast:pe(),grayscale:D(),hueRotate:pe(),invert:D(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[dT,us],inset:O(),margin:O(),opacity:pe(),padding:F(),saturate:pe(),scale:pe(),sepia:D(),skew:pe(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[fs]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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"],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:[...se(),Pe]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yi,Pe]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Yi,Pe]}],"grid-cols":[{"grid-cols":[Xi]}],"col-start-end":[{col:["auto",{span:["full",Yi,Pe]},Pe]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Xi]}],"row-start-end":[{row:["auto",{span:[Yi,Pe]},Pe]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[fs]},fs]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fs,us]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bh]}],"font-family":[{font:[Xi]}],"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:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",co,bh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wr,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wr,us]}],"underline-offset":[{"underline-offset":["auto",wr,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),mT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:M()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[wr,Pe]}],"outline-w":[{outline:[wr,us]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[wr,us]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fs,xT]}],"shadow-color":[{shadow:[Xi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",fs,Pe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Yi,Pe]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wr,us,bh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}});function V(...e){return bT(db(e))}function Zi(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const jT=pP,Ab=f.forwardRef(({className:e,...t},n)=>r.jsx(rb,{ref:n,className:V("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Ab.displayName=rb.displayName;const wT=ao("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ob=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(sb,{ref:s,className:V(wT({variant:t}),e),...n}));Ob.displayName=sb.displayName;const NT=f.forwardRef(({className:e,...t},n)=>r.jsx(ib,{ref:n,className:V("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));NT.displayName=ib.displayName;const Ib=f.forwardRef(({className:e,...t},n)=>r.jsx(lb,{ref:n,className:V("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(gd,{className:"h-4 w-4"})}));Ib.displayName=lb.displayName;const Mb=f.forwardRef(({className:e,...t},n)=>r.jsx(ab,{ref:n,className:V("text-sm font-semibold",e),...t}));Mb.displayName=ab.displayName;const Db=f.forwardRef(({className:e,...t},n)=>r.jsx(ob,{ref:n,className:V("text-sm opacity-90",e),...t}));Db.displayName=ob.displayName;function ST(){const{toasts:e}=y_();return r.jsxs(jT,{children:[e.map(function({id:t,title:n,description:s,action:a,...o}){return r.jsxs(Ob,{...o,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(Mb,{children:n}),s&&r.jsx(Db,{children:s})]}),a,r.jsx(Ib,{})]},t)}),r.jsx(Ab,{})]})}var CT=(e,t,n,s,a,o,i,c)=>{let d=document.documentElement,u=["light","dark"];function h(v){(Array.isArray(e)?e:[e]).forEach(w=>{let g=w==="class",j=g&&o?a.map(y=>o[y]||y):a;g?(d.classList.remove(...j),d.classList.add(o&&o[v]?o[v]:v)):d.setAttribute(w,v)}),m(v)}function m(v){c&&u.includes(v)&&(d.style.colorScheme=v)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let v=localStorage.getItem(t)||n,w=i&&v==="system"?b():v;h(w)}catch(v){}},kT=f.createContext(void 0),ET={setTheme:e=>{},themes:[]},_T=()=>{var e;return(e=f.useContext(kT))!=null?e:ET};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:o,value:i,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,o,e,c,i,s,a]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${CT.toString()})(${h})`}})});var PT=e=>{switch(e){case"success":return AT;case"info":return IT;case"warning":return OT;case"error":return MT;default:return null}},TT=Array(12).fill(0),RT=({visible:e,className:t})=>W.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},W.createElement("div",{className:"sonner-spinner"},TT.map((n,s)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),AT=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),OT=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),IT=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),MT=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),DT=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FT=()=>{let[e,t]=W.useState(document.hidden);return W.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},jh=1,LT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...s}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:jh++,o=this.toasts.find(c=>c.id===a),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...e,id:a,title:n}),{...c,...e,id:a,dismissible:i,title:n}):c):this.addToast({title:n,...s,dismissible:i,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),a=n!==void 0,o,i=s.then(async d=>{if(o=["resolve",d],W.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(zT(d)&&!d.ok){a=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${d.status}`):t.error,h=typeof t.description=="function"?await t.description(`HTTP error! status: ${d.status}`):t.description;this.create({id:n,type:"error",message:u,description:h})}else if(t.success!==void 0){a=!1;let u=typeof t.success=="function"?await t.success(d):t.success,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"success",message:u,description:h})}}).catch(async d=>{if(o=["reject",d],t.error!==void 0){a=!1;let u=typeof t.error=="function"?await t.error(d):t.error,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"error",message:u,description:h})}}).finally(()=>{var d;a&&(this.dismiss(n),n=void 0),(d=t.finally)==null||d.call(t)}),c=()=>new Promise((d,u)=>i.then(()=>o[0]==="reject"?u(o[1]):d(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||jh++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Vt=new LT,$T=(e,t)=>{let n=(t==null?void 0:t.id)||jh++;return Vt.addToast({title:e,...t,id:n}),n},zT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UT=$T,BT=()=>Vt.toasts,VT=()=>Vt.getActiveToasts(),K=Object.assign(UT,{success:Vt.success,info:Vt.info,warning:Vt.warning,error:Vt.error,custom:Vt.custom,message:Vt.message,promise:Vt.promise,dismiss:Vt.dismiss,loading:Vt.loading},{getHistory:BT,getToasts:VT});function HT(e,{insertAt:t}={}){if(typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}HT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} | |
| 435 | -`);function vd(e){return e.label!==void 0}var WT=3,qT="32px",KT="16px",Fb=4e3,QT=356,GT=14,YT=20,XT=200;function In(...e){return e.filter(Boolean).join(" ")}function ZT(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var JT=e=>{var t,n,s,a,o,i,c,d,u,h,m;let{invert:b,toast:v,unstyled:w,interacting:g,setHeights:j,visibleToasts:y,heights:p,index:x,toasts:N,expanded:S,removeToast:C,defaultRichColors:E,closeButton:k,style:R,cancelButtonStyle:T,actionButtonStyle:O,className:F="",descriptionClassName:B="",duration:I,position:se,gap:M,loadingIcon:Z,expandByDefault:A,classNames:D,icons:J,closeButtonAriaLabel:pe="Close toast",pauseWhenPageIsHidden:P}=e,[z,q]=W.useState(null),[oe,Se]=W.useState(null),[X,je]=W.useState(!1),[L,me]=W.useState(!1),[Ce,Ee]=W.useState(!1),[Be,H]=W.useState(!1),[Oe,Ve]=W.useState(!1),[qt,Rs]=W.useState(0),[zo,Na]=W.useState(0),ln=W.useRef(v.duration||I||Fb),Al=W.useRef(null),cr=W.useRef(null),pu=x===0,xu=x+1<=y,Ft=v.type,Mr=v.dismissible!==!1,dr=v.className||"",wn=v.descriptionClassName||"",cn=W.useMemo(()=>p.findIndex(_e=>_e.toastId===v.id)||0,[p,v.id]),Sa=W.useMemo(()=>{var _e;return(_e=v.closeButton)!=null?_e:k},[v.closeButton,k]),As=W.useMemo(()=>v.duration||I||Fb,[v.duration,I]),Dr=W.useRef(0),Uo=W.useRef(0),qS=W.useRef(0),Bo=W.useRef(null),[_M,PM]=se.split("-"),KS=W.useMemo(()=>p.reduce((_e,He,Je)=>Je>=cn?_e:_e+He.height,0),[p,cn]),QS=FT(),TM=v.invert||b,Jp=Ft==="loading";Uo.current=W.useMemo(()=>cn*M+KS,[cn,KS]),W.useEffect(()=>{ln.current=As},[As]),W.useEffect(()=>{je(!0)},[]),W.useEffect(()=>{let _e=cr.current;if(_e){let He=_e.getBoundingClientRect().height;return Na(He),j(Je=>[{toastId:v.id,height:He,position:v.position},...Je]),()=>j(Je=>Je.filter(Vn=>Vn.toastId!==v.id))}},[j,v.id]),W.useLayoutEffect(()=>{if(!X)return;let _e=cr.current,He=_e.style.height;_e.style.height="auto";let Je=_e.getBoundingClientRect().height;_e.style.height=He,Na(Je),j(Vn=>Vn.find(Hn=>Hn.toastId===v.id)?Vn.map(Hn=>Hn.toastId===v.id?{...Hn,height:Je}:Hn):[{toastId:v.id,height:Je,position:v.position},...Vn])},[X,v.title,v.description,j,v.id]);let Os=W.useCallback(()=>{me(!0),Rs(Uo.current),j(_e=>_e.filter(He=>He.toastId!==v.id)),setTimeout(()=>{C(v)},XT)},[v,C,j,Uo]);W.useEffect(()=>{if(v.promise&&Ft==="loading"||v.duration===1/0||v.type==="loading")return;let _e;return S||g||P&&QS?(()=>{if(qS.current<Dr.current){let He=new Date().getTime()-Dr.current;ln.current=ln.current-He}qS.current=new Date().getTime()})():ln.current!==1/0&&(Dr.current=new Date().getTime(),_e=setTimeout(()=>{var He;(He=v.onAutoClose)==null||He.call(v,v),Os()},ln.current)),()=>clearTimeout(_e)},[S,g,v,Ft,P,QS,Os]),W.useEffect(()=>{v.delete&&Os()},[Os,v.delete]);function RM(){var _e,He,Je;return J!=null&&J.loading?W.createElement("div",{className:In(D==null?void 0:D.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":Ft==="loading"},J.loading):Z?W.createElement("div",{className:In(D==null?void 0:D.loader,(He=v==null?void 0:v.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Ft==="loading"},Z):W.createElement(RT,{className:In(D==null?void 0:D.loader,(Je=v==null?void 0:v.classNames)==null?void 0:Je.loader),visible:Ft==="loading"})}return W.createElement("li",{tabIndex:0,ref:cr,className:In(F,dr,D==null?void 0:D.toast,(t=v==null?void 0:v.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[Ft],(n=v==null?void 0:v.classNames)==null?void 0:n[Ft]),"data-sonner-toast":"","data-rich-colors":(s=v.richColors)!=null?s:E,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":X,"data-promise":!!v.promise,"data-swiped":Oe,"data-removed":L,"data-visible":xu,"data-y-position":_M,"data-x-position":PM,"data-index":x,"data-front":pu,"data-swiping":Ce,"data-dismissible":Mr,"data-type":Ft,"data-invert":TM,"data-swipe-out":Be,"data-swipe-direction":oe,"data-expanded":!!(S||A&&X),style:{"--index":x,"--toasts-before":x,"--z-index":N.length-x,"--offset":`${L?qt:Uo.current}px`,"--initial-height":A?"auto":`${zo}px`,...R,...v.style},onDragEnd:()=>{Ee(!1),q(null),Bo.current=null},onPointerDown:_e=>{Jp||!Mr||(Al.current=new Date,Rs(Uo.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Ee(!0),Bo.current={x:_e.clientX,y:_e.clientY}))},onPointerUp:()=>{var _e,He,Je,Vn;if(Be||!Mr)return;Bo.current=null;let Hn=Number(((_e=cr.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Is=Number(((He=cr.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ca=new Date().getTime()-((Je=Al.current)==null?void 0:Je.getTime()),Wn=z==="x"?Hn:Is,Ms=Math.abs(Wn)/Ca;if(Math.abs(Wn)>=YT||Ms>.11){Rs(Uo.current),(Vn=v.onDismiss)==null||Vn.call(v,v),Se(z==="x"?Hn>0?"right":"left":Is>0?"down":"up"),Os(),H(!0),Ve(!1);return}Ee(!1),q(null)},onPointerMove:_e=>{var He,Je,Vn,Hn;if(!Bo.current||!Mr||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let Is=_e.clientY-Bo.current.y,Ca=_e.clientX-Bo.current.x,Wn=(Je=e.swipeDirections)!=null?Je:ZT(se);!z&&(Math.abs(Ca)>1||Math.abs(Is)>1)&&q(Math.abs(Ca)>Math.abs(Is)?"x":"y");let Ms={x:0,y:0};z==="y"?(Wn.includes("top")||Wn.includes("bottom"))&&(Wn.includes("top")&&Is<0||Wn.includes("bottom")&&Is>0)&&(Ms.y=Is):z==="x"&&(Wn.includes("left")||Wn.includes("right"))&&(Wn.includes("left")&&Ca<0||Wn.includes("right")&&Ca>0)&&(Ms.x=Ca),(Math.abs(Ms.x)>0||Math.abs(Ms.y)>0)&&Ve(!0),(Vn=cr.current)==null||Vn.style.setProperty("--swipe-amount-x",`${Ms.x}px`),(Hn=cr.current)==null||Hn.style.setProperty("--swipe-amount-y",`${Ms.y}px`)}},Sa&&!v.jsx?W.createElement("button",{"aria-label":pe,"data-disabled":Jp,"data-close-button":!0,onClick:Jp||!Mr?()=>{}:()=>{var _e;Os(),(_e=v.onDismiss)==null||_e.call(v,v)},className:In(D==null?void 0:D.closeButton,(a=v==null?void 0:v.classNames)==null?void 0:a.closeButton)},(o=J==null?void 0:J.close)!=null?o:DT):null,v.jsx||f.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:W.createElement(W.Fragment,null,Ft||v.icon||v.promise?W.createElement("div",{"data-icon":"",className:In(D==null?void 0:D.icon,(i=v==null?void 0:v.classNames)==null?void 0:i.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||RM():null,v.type!=="loading"?v.icon||(J==null?void 0:J[Ft])||PT(Ft):null):null,W.createElement("div",{"data-content":"",className:In(D==null?void 0:D.content,(c=v==null?void 0:v.classNames)==null?void 0:c.content)},W.createElement("div",{"data-title":"",className:In(D==null?void 0:D.title,(d=v==null?void 0:v.classNames)==null?void 0:d.title)},typeof v.title=="function"?v.title():v.title),v.description?W.createElement("div",{"data-description":"",className:In(B,wn,D==null?void 0:D.description,(u=v==null?void 0:v.classNames)==null?void 0:u.description)},typeof v.description=="function"?v.description():v.description):null),f.isValidElement(v.cancel)?v.cancel:v.cancel&&vd(v.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||T,onClick:_e=>{var He,Je;vd(v.cancel)&&Mr&&((Je=(He=v.cancel).onClick)==null||Je.call(He,_e),Os())},className:In(D==null?void 0:D.cancelButton,(h=v==null?void 0:v.classNames)==null?void 0:h.cancelButton)},v.cancel.label):null,f.isValidElement(v.action)?v.action:v.action&&vd(v.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||O,onClick:_e=>{var He,Je;vd(v.action)&&((Je=(He=v.action).onClick)==null||Je.call(He,_e),!_e.defaultPrevented&&Os())},className:In(D==null?void 0:D.actionButton,(m=v==null?void 0:v.classNames)==null?void 0:m.actionButton)},v.action.label):null))};function Lb(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function eR(e,t){let n={};return[e,t].forEach((s,a)=>{let o=a===1,i=o?"--mobile-offset":"--offset",c=o?KT:qT;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${i}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof s=="number"||typeof s=="string"?d(s):typeof s=="object"?["top","right","bottom","left"].forEach(u=>{s[u]===void 0?n[`${i}-${u}`]=c:n[`${i}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(c)}),n}var tR=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:o,closeButton:i,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:b,style:v,visibleToasts:w=WT,toastOptions:g,dir:j=Lb(),gap:y=GT,loadingIcon:p,icons:x,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[C,E]=W.useState([]),k=W.useMemo(()=>Array.from(new Set([s].concat(C.filter(P=>P.position).map(P=>P.position)))),[C,s]),[R,T]=W.useState([]),[O,F]=W.useState(!1),[B,I]=W.useState(!1),[se,M]=W.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=W.useRef(null),A=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=W.useRef(null),J=W.useRef(!1),pe=W.useCallback(P=>{E(z=>{var q;return(q=z.find(oe=>oe.id===P.id))!=null&&q.delete||Vt.dismiss(P.id),z.filter(({id:oe})=>oe!==P.id)})},[]);return W.useEffect(()=>Vt.subscribe(P=>{if(P.dismiss){E(z=>z.map(q=>q.id===P.id?{...q,delete:!0}:q));return}setTimeout(()=>{Oy.flushSync(()=>{E(z=>{let q=z.findIndex(oe=>oe.id===P.id);return q!==-1?[...z.slice(0,q),{...z[q],...P},...z.slice(q+1)]:[P,...z]})})})}),[]),W.useEffect(()=>{if(h!=="system"){M(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?M("dark"):M("light")),typeof window=="undefined")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:z})=>{M(z?"dark":"light")})}catch(z){P.addListener(({matches:q})=>{try{M(q?"dark":"light")}catch(oe){console.error(oe)}})}},[h]),W.useEffect(()=>{C.length<=1&&F(!1)},[C]),W.useEffect(()=>{let P=z=>{var q,oe;a.every(Se=>z[Se]||z.code===Se)&&(F(!0),(q=Z.current)==null||q.focus()),z.code==="Escape"&&(document.activeElement===Z.current||(oe=Z.current)!=null&&oe.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[a]),W.useEffect(()=>{if(Z.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,J.current=!1)}},[Z.current]),W.createElement("section",{ref:t,"aria-label":`${N} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((P,z)=>{var q;let[oe,Se]=P.split("-");return C.length?W.createElement("ol",{key:P,dir:j==="auto"?Lb():j,tabIndex:-1,ref:Z,className:c,"data-sonner-toaster":!0,"data-theme":se,"data-y-position":oe,"data-lifted":O&&C.length>1&&!o,"data-x-position":Se,style:{"--front-toast-height":`${((q=R[0])==null?void 0:q.height)||0}px`,"--width":`${QT}px`,"--gap":`${y}px`,...v,...eR(d,u)},onBlur:X=>{J.current&&!X.currentTarget.contains(X.relatedTarget)&&(J.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||J.current||(J.current=!0,D.current=X.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{B||F(!1)},onDragEnd:()=>F(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},C.filter(X=>!X.position&&z===0||X.position===P).map((X,je)=>{var L,me;return W.createElement(JT,{key:X.id,icons:x,index:je,toast:X,defaultRichColors:m,duration:(L=g==null?void 0:g.duration)!=null?L:b,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:w,closeButton:(me=g==null?void 0:g.closeButton)!=null?me:i,interacting:B,position:P,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:pe,toasts:C.filter(Ce=>Ce.position==X.position),heights:R.filter(Ce=>Ce.position==X.position),setHeights:T,expandByDefault:o,gap:y,loadingIcon:p,expanded:O,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const nR=({...e})=>{const{theme:t="system"}=_T();return r.jsx(tR,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var rR=Fl[" useId ".trim().toString()]||(()=>{}),sR=0;function Mn(e){const[t,n]=f.useState(rR());return gt(()=>{n(s=>s!=null?s:String(sR++))},[e]),e||(t?`radix-${t}`:"")}const aR=["top","right","bottom","left"],ms=Math.min,en=Math.max,yd=Math.round,bd=Math.floor,Xn=e=>({x:e,y:e}),oR={left:"right",right:"left",bottom:"top",top:"bottom"};function wh(e,t,n){return en(e,ms(t,n))}function Nr(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function Nh(e){return e==="x"?"y":"x"}function Sh(e){return e==="y"?"height":"width"}function Zn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ch(e){return Nh(Zn(e))}function iR(e,t,n){n===void 0&&(n=!1);const s=fo(e),a=Ch(e),o=Sh(a);let i=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=jd(i)),[i,jd(i)]}function lR(e){const t=jd(e);return[kh(e),t,kh(t)]}function kh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const $b=["left","right"],zb=["right","left"],cR=["top","bottom"],dR=["bottom","top"];function uR(e,t,n){switch(e){case"top":case"bottom":return n?t?zb:$b:t?$b:zb;case"left":case"right":return t?cR:dR;default:return[]}}function fR(e,t,n,s){const a=fo(e);let o=uR(Sr(e),n==="start",s);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(kh)))),o}function jd(e){const t=Sr(e);return oR[t]+e.slice(t.length)}function mR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ub(e){return typeof e!="number"?mR(e):{top:e,right:e,bottom:e,left:e}}function wd(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function Bb(e,t,n){let{reference:s,floating:a}=e;const o=Zn(t),i=Ch(t),c=Sh(i),d=Sr(t),u=o==="y",h=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,b=s[c]/2-a[c]/2;let v;switch(d){case"top":v={x:h,y:s.y-a.height};break;case"bottom":v={x:h,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y:m};break;case"left":v={x:s.x-a.width,y:m};break;default:v={x:s.x,y:s.y}}switch(fo(t)){case"start":v[i]-=b*(n&&u?-1:1);break;case"end":v[i]+=b*(n&&u?-1:1);break}return v}async function hR(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:b=!1,padding:v=0}=Nr(t,e),w=Ub(v),j=c[b?m==="floating"?"reference":"floating":m],y=wd(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(j)))==null||n?j:j.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),N=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},S=wd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:p,offsetParent:x,strategy:d}):p);return{top:(y.top-S.top+w.top)/N.y,bottom:(S.bottom-y.bottom+w.bottom)/N.y,left:(y.left-S.left+w.left)/N.x,right:(S.right-y.right+w.right)/N.x}}const pR=50,xR=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:hR},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=Bb(u,s,d),b=s,v=0;const w={};for(let g=0;g<o.length;g++){const j=o[g];if(!j)continue;const{name:y,fn:p}=j,{x,y:N,data:S,reset:C}=await p({x:h,y:m,initialPlacement:s,placement:b,strategy:a,middlewareData:w,rects:u,platform:c,elements:{reference:e,floating:t}});h=x!=null?x:h,m=N!=null?N:m,w[y]={...w[y],...S},C&&v<pR&&(v++,typeof C=="object"&&(C.placement&&(b=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:h,y:m}=Bb(u,b,d)),g=-1)}return{x:h,y:m,placement:b,strategy:a,middlewareData:w}},gR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:o,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:h=0}=Nr(e,t)||{};if(u==null)return{};const m=Ub(h),b={x:n,y:s},v=Ch(a),w=Sh(v),g=await i.getDimensions(u),j=v==="y",y=j?"top":"left",p=j?"bottom":"right",x=j?"clientHeight":"clientWidth",N=o.reference[w]+o.reference[v]-b[v]-o.floating[w],S=b[v]-o.reference[v],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=C?C[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(C)))&&(E=c.floating[x]||o.floating[w]);const k=N/2-S/2,R=E/2-g[w]/2-1,T=ms(m[y],R),O=ms(m[p],R),F=T,B=E-g[w]-O,I=E/2-g[w]/2+k,se=wh(F,I,B),M=!d.arrow&&fo(a)!=null&&I!==se&&o.reference[w]/2-(I<F?T:O)-g[w]/2<0,Z=M?I<F?I-F:I-B:0;return{[v]:b[v]+Z,data:{[v]:se,centerOffset:I-se-Z,...M&&{alignmentOffset:Z}},reset:M}}}),vR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:o,rects:i,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...j}=Nr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Sr(a),p=Zn(c),x=Sr(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=b||(x||!g?[jd(c)]:lR(c)),C=w!=="none";!b&&C&&S.push(...fR(c,g,w,N));const E=[c,...S],k=await d.detectOverflow(t,j),R=[];let T=((s=o.flip)==null?void 0:s.overflows)||[];if(h&&R.push(k[y]),m){const I=iR(a,i,N);R.push(k[I[0]],k[I[1]])}if(T=[...T,{placement:a,overflows:R}],!R.every(I=>I<=0)){var O,F;const I=(((O=o.flip)==null?void 0:O.index)||0)+1,se=E[I];if(se&&(!(m==="alignment"?p!==Zn(se):!1)||T.every(A=>Zn(A.placement)===p?A.overflows[0]>0:!0)))return{data:{index:I,overflows:T},reset:{placement:se}};let M=(F=T.filter(Z=>Z.overflows[0]<=0).sort((Z,A)=>Z.overflows[1]-A.overflows[1])[0])==null?void 0:F.placement;if(!M)switch(v){case"bestFit":{var B;const Z=(B=T.filter(A=>{if(C){const D=Zn(A.placement);return D===p||D==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,J)=>D+J,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:B[0];Z&&(M=Z);break}case"initialPlacement":M=c;break}if(a!==M)return{reset:{placement:M}}}return{}}}};function Vb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hb(e){return aR.some(t=>e[t]>=0)}const yR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...o}=Nr(e,t);switch(a){case"referenceHidden":{const i=await s.detectOverflow(t,{...o,elementContext:"reference"}),c=Vb(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Hb(c)}}}case"escaped":{const i=await s.detectOverflow(t,{...o,altBoundary:!0}),c=Vb(i,n.floating);return{data:{escapedOffsets:c,escaped:Hb(c)}}}default:return{}}}}},Wb=new Set(["left","top"]);async function bR(e,t){const{placement:n,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),i=Sr(n),c=fo(n),d=Zn(n)==="y",u=Wb.has(i)?-1:1,h=o&&d?-1:1,m=Nr(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(v=c==="end"?w*-1:w),d?{x:v*h,y:b*u}:{x:b*u,y:v*h}}const jR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:o,placement:i,middlewareData:c}=t,d=await bR(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:o+d.y,data:{...d,placement:i}}}}},wR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:y=>{let{x:p,y:x}=y;return{x:p,y:x}}},...u}=Nr(e,t),h={x:n,y:s},m=await o.detectOverflow(t,u),b=Zn(Sr(a)),v=Nh(b);let w=h[v],g=h[b];if(i){const y=v==="y"?"top":"left",p=v==="y"?"bottom":"right",x=w+m[y],N=w-m[p];w=wh(x,w,N)}if(c){const y=b==="y"?"top":"left",p=b==="y"?"bottom":"right",x=g+m[y],N=g-m[p];g=wh(x,g,N)}const j=d.fn({...t,[v]:w,[b]:g});return{...j,data:{x:j.x-n,y:j.y-s,enabled:{[v]:i,[b]:c}}}}}},NR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:o,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Nr(e,t),h={x:n,y:s},m=Zn(a),b=Nh(m);let v=h[b],w=h[m];const g=Nr(c,t),j=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const x=b==="y"?"height":"width",N=o.reference[b]-o.floating[x]+j.mainAxis,S=o.reference[b]+o.reference[x]-j.mainAxis;v<N?v=N:v>S&&(v=S)}if(u){var y,p;const x=b==="y"?"width":"height",N=Wb.has(Sr(a)),S=o.reference[m]-o.floating[x]+(N&&((y=i.offset)==null?void 0:y[m])||0)+(N?0:j.crossAxis),C=o.reference[m]+o.reference[x]+(N?0:((p=i.offset)==null?void 0:p[m])||0)-(N?j.crossAxis:0);w<S?w=S:w>C&&(w=C)}return{[b]:v,[m]:w}}}},SR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:o,platform:i,elements:c}=t,{apply:d=()=>{},...u}=Nr(e,t),h=await i.detectOverflow(t,u),m=Sr(a),b=fo(a),v=Zn(a)==="y",{width:w,height:g}=o.floating;let j,y;m==="top"||m==="bottom"?(j=m,y=b===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=m,j=b==="end"?"top":"bottom");const p=g-h.top-h.bottom,x=w-h.left-h.right,N=ms(g-h[j],p),S=ms(w-h[y],x),C=!t.middlewareData.shift;let E=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(E=p),C&&!b){const T=en(h.left,0),O=en(h.right,0),F=en(h.top,0),B=en(h.bottom,0);v?k=w-2*(T!==0||O!==0?T+O:en(h.left,h.right)):E=g-2*(F!==0||B!==0?F+B:en(h.top,h.bottom))}await d({...t,availableWidth:k,availableHeight:E});const R=await i.getDimensions(c.floating);return w!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function Nd(){return typeof window!="undefined"}function mo(e){return qb(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(e){var t;return(t=(qb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qb(e){return Nd()?e instanceof Node||e instanceof tn(e).Node:!1}function Dn(e){return Nd()?e instanceof Element||e instanceof tn(e).Element:!1}function Cr(e){return Nd()?e instanceof HTMLElement||e instanceof tn(e).HTMLElement:!1}function Kb(e){return!Nd()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}function Ji(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function CR(e){return/^(table|td|th)$/.test(mo(e))}function Sd(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const kR=/transform|translate|scale|rotate|perspective|filter/,ER=/paint|layout|strict|content/,ia=e=>!!e&&e!=="none";let Eh;function _h(e){const t=Dn(e)?Fn(e):e;return ia(t.transform)||ia(t.translate)||ia(t.scale)||ia(t.rotate)||ia(t.perspective)||!Ph()&&(ia(t.backdropFilter)||ia(t.filter))||kR.test(t.willChange||"")||ER.test(t.contain||"")}function _R(e){let t=hs(e);for(;Cr(t)&&!ho(t);){if(_h(t))return t;if(Sd(t))return null;t=hs(t)}return null}function Ph(){return Eh==null&&(Eh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Eh}function ho(e){return/^(html|body|#document)$/.test(mo(e))}function Fn(e){return tn(e).getComputedStyle(e)}function Cd(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hs(e){if(mo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kb(e)&&e.host||Jn(e);return Kb(t)?t.host:t}function Qb(e){const t=hs(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cr(t)&&Ji(t)?t:Qb(t)}function el(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Qb(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),i=tn(a);if(o){const c=Th(i);return t.concat(i,i.visualViewport||[],Ji(a)?a:[],c&&n?el(c):[])}else return t.concat(a,el(a,[],n))}function Th(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gb(e){const t=Fn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Cr(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:s,c=yd(n)!==o||yd(s)!==i;return c&&(n=o,s=i),{width:n,height:s,$:c}}function Rh(e){return Dn(e)?e:e.contextElement}function po(e){const t=Rh(e);if(!Cr(t))return Xn(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=Gb(t);let i=(o?yd(n.width):n.width)/s,c=(o?yd(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const PR=Xn(0);function Yb(e){const t=tn(e);return!Ph()||!t.visualViewport?PR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function la(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Rh(e);let i=Xn(1);t&&(s?Dn(s)&&(i=po(s)):i=po(e));const c=TR(o,n,s)?Yb(o):Xn(0);let d=(a.left+c.x)/i.x,u=(a.top+c.y)/i.y,h=a.width/i.x,m=a.height/i.y;if(o){const b=tn(o),v=s&&Dn(s)?tn(s):s;let w=b,g=Th(w);for(;g&&s&&v!==w;){const j=po(g),y=g.getBoundingClientRect(),p=Fn(g),x=y.left+(g.clientLeft+parseFloat(p.paddingLeft))*j.x,N=y.top+(g.clientTop+parseFloat(p.paddingTop))*j.y;d*=j.x,u*=j.y,h*=j.x,m*=j.y,d+=x,u+=N,w=tn(g),g=Th(w)}}return wd({width:h,height:m,x:d,y:u})}function kd(e,t){const n=Cd(e).scrollLeft;return t?t.left+n:la(Jn(e)).left+n}function Xb(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-kd(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function RR(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",i=Jn(s),c=t?Sd(t.floating):!1;if(s===i||c&&o)return n;let d={scrollLeft:0,scrollTop:0},u=Xn(1);const h=Xn(0),m=Cr(s);if((m||!m&&!o)&&((mo(s)!=="body"||Ji(i))&&(d=Cd(s)),m)){const v=la(s);u=po(s),h.x=v.x+s.clientLeft,h.y=v.y+s.clientTop}const b=i&&!m&&!o?Xb(i,d):Xn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+b.x,y:n.y*u.y-d.scrollTop*u.y+h.y+b.y}}function AR(e){return Array.from(e.getClientRects())}function OR(e){const t=Jn(e),n=Cd(e),s=e.ownerDocument.body,a=en(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=en(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let i=-n.scrollLeft+kd(e);const c=-n.scrollTop;return Fn(s).direction==="rtl"&&(i+=en(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:i,y:c}}const Zb=25;function IR(e,t){const n=tn(e),s=Jn(e),a=n.visualViewport;let o=s.clientWidth,i=s.clientHeight,c=0,d=0;if(a){o=a.width,i=a.height;const h=Ph();(!h||h&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}const u=kd(s);if(u<=0){const h=s.ownerDocument,m=h.body,b=getComputedStyle(m),v=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-v);w<=Zb&&(o-=w)}else u<=Zb&&(o+=u);return{width:o,height:i,x:c,y:d}}function MR(e,t){const n=la(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=Cr(e)?po(e):Xn(1),i=e.clientWidth*o.x,c=e.clientHeight*o.y,d=a*o.x,u=s*o.y;return{width:i,height:c,x:d,y:u}}function Jb(e,t,n){let s;if(t==="viewport")s=IR(e,n);else if(t==="document")s=OR(Jn(e));else if(Dn(t))s=MR(t,n);else{const a=Yb(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return wd(s)}function ej(e,t){const n=hs(e);return n===t||!Dn(n)||ho(n)?!1:Fn(n).position==="fixed"||ej(n,t)}function DR(e,t){const n=t.get(e);if(n)return n;let s=el(e,[],!1).filter(c=>Dn(c)&&mo(c)!=="body"),a=null;const o=Fn(e).position==="fixed";let i=o?hs(e):e;for(;Dn(i)&&!ho(i);){const c=Fn(i),d=_h(i);!d&&c.position==="fixed"&&(a=null),(o?!d&&!a:!d&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ji(i)&&!d&&ej(e,i))?s=s.filter(h=>h!==i):a=c,i=hs(i)}return t.set(e,s),s}function FR(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const i=[...n==="clippingAncestors"?Sd(t)?[]:DR(t,this._c):[].concat(n),s],c=Jb(t,i[0],a);let d=c.top,u=c.right,h=c.bottom,m=c.left;for(let b=1;b<i.length;b++){const v=Jb(t,i[b],a);d=en(v.top,d),u=ms(v.right,u),h=ms(v.bottom,h),m=en(v.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function LR(e){const{width:t,height:n}=Gb(e);return{width:t,height:n}}function $R(e,t,n){const s=Cr(t),a=Jn(t),o=n==="fixed",i=la(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=Xn(0);function u(){d.x=kd(a)}if(s||!s&&!o)if((mo(t)!=="body"||Ji(a))&&(c=Cd(t)),s){const v=la(t,!0,o,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else a&&u();o&&!s&&a&&u();const h=a&&!s&&!o?Xb(a,c):Xn(0),m=i.left+c.scrollLeft-d.x-h.x,b=i.top+c.scrollTop-d.y-h.y;return{x:m,y:b,width:i.width,height:i.height}}function Ah(e){return Fn(e).position==="static"}function tj(e,t){if(!Cr(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Jn(e)===n&&(n=n.ownerDocument.body),n}function nj(e,t){const n=tn(e);if(Sd(e))return n;if(!Cr(e)){let a=hs(e);for(;a&&!ho(a);){if(Dn(a)&&!Ah(a))return a;a=hs(a)}return n}let s=tj(e,t);for(;s&&CR(s)&&Ah(s);)s=tj(s,t);return s&&ho(s)&&Ah(s)&&!_h(s)?n:s||_R(e)||n}const zR=async function(e){const t=this.getOffsetParent||nj,n=this.getDimensions,s=await n(e.floating);return{reference:$R(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function UR(e){return Fn(e).direction==="rtl"}const BR={convertOffsetParentRelativeRectToViewportRelativeRect:RR,getDocumentElement:Jn,getClippingRect:FR,getOffsetParent:nj,getElementRects:zR,getClientRects:AR,getDimensions:LR,getScale:po,isElement:Dn,isRTL:UR};function rj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VR(e,t){let n=null,s;const a=Jn(e);function o(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const u=e.getBoundingClientRect(),{left:h,top:m,width:b,height:v}=u;if(c||t(),!b||!v)return;const w=bd(m),g=bd(a.clientWidth-(h+b)),j=bd(a.clientHeight-(m+v)),y=bd(h),x={rootMargin:-w+"px "+-g+"px "+-j+"px "+-y+"px",threshold:en(0,ms(1,d))||1};let N=!0;function S(C){const E=C[0].intersectionRatio;if(E!==d){if(!N)return i();E?i(!1,E):s=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!rj(u,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch(C){n=new IntersectionObserver(S,x)}n.observe(e)}return i(!0),o}function HR(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=Rh(e),h=a||o?[...u?el(u):[],...t?el(t):[]]:[];h.forEach(y=>{a&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const m=u&&c?VR(u,n):null;let b=-1,v=null;i&&(v=new ResizeObserver(y=>{let[p]=y;p&&p.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),u&&!d&&v.observe(u),t&&v.observe(t));let w,g=d?la(e):null;d&&j();function j(){const y=la(e);g&&!rj(g,y)&&n(),g=y,w=requestAnimationFrame(j)}return n(),()=>{var y;h.forEach(p=>{a&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),m==null||m(),(y=v)==null||y.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const WR=jR,qR=wR,KR=vR,QR=SR,GR=yR,sj=gR,YR=NR,XR=(e,t,n)=>{const s=new Map,a={platform:BR,...n},o={...a.platform,_c:s};return xR(e,t,{...a,platform:o})};var ZR=typeof document!="undefined",JR=function(){},Ed=ZR?f.useLayoutEffect:JR;function _d(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!_d(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const o=a[s];if(!(o==="_owner"&&e.$$typeof)&&!_d(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function aj(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oj(e,t){const n=aj(e);return Math.round(t*n)/n}function Oh(e){const t=f.useRef(e);return Ed(()=>{t.current=e}),t}function e4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,v]=f.useState(s);_d(b,s)||v(s);const[w,g]=f.useState(null),[j,y]=f.useState(null),p=f.useCallback(A=>{A!==C.current&&(C.current=A,g(A))},[]),x=f.useCallback(A=>{A!==E.current&&(E.current=A,y(A))},[]),N=o||w,S=i||j,C=f.useRef(null),E=f.useRef(null),k=f.useRef(h),R=d!=null,T=Oh(d),O=Oh(a),F=Oh(u),B=f.useCallback(()=>{if(!C.current||!E.current)return;const A={placement:t,strategy:n,middleware:b};O.current&&(A.platform=O.current),XR(C.current,E.current,A).then(D=>{const J={...D,isPositioned:F.current!==!1};I.current&&!_d(k.current,J)&&(k.current=J,Zs.flushSync(()=>{m(J)}))})},[b,t,n,O,F]);Ed(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[u]);const I=f.useRef(!1);Ed(()=>(I.current=!0,()=>{I.current=!1}),[]),Ed(()=>{if(N&&(C.current=N),S&&(E.current=S),N&&S){if(T.current)return T.current(N,S,B);B()}},[N,S,B,T,R]);const se=f.useMemo(()=>({reference:C,floating:E,setReference:p,setFloating:x}),[p,x]),M=f.useMemo(()=>({reference:N,floating:S}),[N,S]),Z=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!M.floating)return A;const D=oj(M.floating,h.x),J=oj(M.floating,h.y);return c?{...A,transform:"translate("+D+"px, "+J+"px)",...aj(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:J}},[n,c,M.floating,h.x,h.y]);return f.useMemo(()=>({...h,update:B,refs:se,elements:M,floatingStyles:Z}),[h,B,se,M,Z])}const t4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?sj({element:s.current,padding:a}).fn(n):{}:s?sj({element:s,padding:a}).fn(n):{}}}},n4=(e,t)=>{const n=WR(e);return{name:n.name,fn:n.fn,options:[e,t]}},r4=(e,t)=>{const n=qR(e);return{name:n.name,fn:n.fn,options:[e,t]}},s4=(e,t)=>({fn:YR(e).fn,options:[e,t]}),a4=(e,t)=>{const n=KR(e);return{name:n.name,fn:n.fn,options:[e,t]}},o4=(e,t)=>{const n=QR(e);return{name:n.name,fn:n.fn,options:[e,t]}},i4=(e,t)=>{const n=GR(e);return{name:n.name,fn:n.fn,options:[e,t]}},l4=(e,t)=>{const n=t4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var c4="Arrow",ij=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...o}=e;return r.jsx(xe.svg,{...o,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});ij.displayName=c4;var d4=ij;function Pd(e){const[t,n]=f.useState(void 0);return gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,c;if("borderBoxSize"in o){const d=o.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Ih="Popper",[lj,Td]=Mt(Ih),[u4,cj]=lj(Ih),dj=e=>{const{__scopePopper:t,children:n}=e,[s,a]=f.useState(null);return r.jsx(u4,{scope:t,anchor:s,onAnchorChange:a,children:n})};dj.displayName=Ih;var uj="PopperAnchor",fj=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,o=cj(uj,n),i=f.useRef(null),c=Me(t,i),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||i.current,u!==d.current&&o.onAnchorChange(d.current)}),s?null:r.jsx(xe.div,{...a,ref:c})});fj.displayName=uj;var Mh="PopperContent",[f4,m4]=lj(Mh),mj=f.forwardRef((e,t)=>{var X,je,L,me,Ce,Ee,Be,H;const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:o="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:w,...g}=e,j=cj(Mh,n),[y,p]=f.useState(null),x=Me(t,Oe=>p(Oe)),[N,S]=f.useState(null),C=Pd(N),E=(X=C==null?void 0:C.width)!=null?X:0,k=(je=C==null?void 0:C.height)!=null?je:0,R=s+(o!=="center"?"-"+o:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},O=Array.isArray(u)?u:[u],F=O.length>0,B={padding:T,boundary:O.filter(p4),altBoundary:F},{refs:I,floatingStyles:se,placement:M,isPositioned:Z,middlewareData:A}=e4({strategy:"fixed",placement:R,whileElementsMounted:(...Oe)=>HR(...Oe,{animationFrame:v==="always"}),elements:{reference:j.anchor},middleware:[n4({mainAxis:a+k,alignmentAxis:i}),d&&r4({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?s4():void 0,...B}),d&&a4({...B}),o4({...B,apply:({elements:Oe,rects:Ve,availableWidth:qt,availableHeight:Rs})=>{const{width:zo,height:Na}=Ve.reference,ln=Oe.floating.style;ln.setProperty("--radix-popper-available-width",`${qt}px`),ln.setProperty("--radix-popper-available-height",`${Rs}px`),ln.setProperty("--radix-popper-anchor-width",`${zo}px`),ln.setProperty("--radix-popper-anchor-height",`${Na}px`)}}),N&&l4({element:N,padding:c}),x4({arrowWidth:E,arrowHeight:k}),b&&i4({strategy:"referenceHidden",...B})]}),[D,J]=xj(M),pe=gn(w);gt(()=>{Z&&(pe==null||pe())},[Z,pe]);const P=(L=A.arrow)==null?void 0:L.x,z=(me=A.arrow)==null?void 0:me.y,q=((Ce=A.arrow)==null?void 0:Ce.centerOffset)!==0,[oe,Se]=f.useState();return gt(()=>{y&&Se(window.getComputedStyle(y).zIndex)},[y]),r.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(Ee=A.transformOrigin)==null?void 0:Ee.x,(Be=A.transformOrigin)==null?void 0:Be.y].join(" "),...((H=A.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(f4,{scope:n,placedSide:D,onArrowChange:S,arrowX:P,arrowY:z,shouldHideArrow:q,children:r.jsx(xe.div,{"data-side":D,"data-align":J,...g,ref:x,style:{...g.style,animation:Z?void 0:"none"}})})})});mj.displayName=Mh;var hj="PopperArrow",h4={top:"bottom",right:"left",bottom:"top",left:"right"},pj=f.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,o=m4(hj,s),i=h4[o.placedSide];return r.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:r.jsx(d4,{...a,ref:n,style:{...a.style,display:"block"}})})});pj.displayName=hj;function p4(e){return e!==null}var x4=e=>({name:"transformOrigin",options:e,fn(t){var j,y,p,x,N;const{placement:n,rects:s,middlewareData:a}=t,i=((j=a.arrow)==null?void 0:j.centerOffset)!==0,c=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,h]=xj(n),m={start:"0%",center:"50%",end:"100%"}[h],b=((p=(y=a.arrow)==null?void 0:y.x)!=null?p:0)+c/2,v=((N=(x=a.arrow)==null?void 0:x.y)!=null?N:0)+d/2;let w="",g="";return u==="bottom"?(w=i?m:`${b}px`,g=`${-d}px`):u==="top"?(w=i?m:`${b}px`,g=`${s.floating.height+d}px`):u==="right"?(w=`${-d}px`,g=i?m:`${v}px`):u==="left"&&(w=`${s.floating.width+d}px`,g=i?m:`${v}px`),{data:{x:w,y:g}}}});function xj(e){const[t,n="center"]=e.split("-");return[t,n]}var gj=dj,vj=fj,yj=mj,bj=pj,g4=Symbol("radix.slottable");function v4(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=g4,t}var[Rd]=Mt("Tooltip",[Td]),Ad=Td(),jj="TooltipProvider",y4=700,Dh="tooltip.open",[b4,Fh]=Rd(jj),wj=e=>{const{__scopeTooltip:t,delayDuration:n=y4,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:o}=e,i=f.useRef(!0),c=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(b4,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,s)},[s]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:a,children:o})};wj.displayName=jj;var tl="Tooltip",[j4,nl]=Rd(tl),Nj=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:c}=e,d=Fh(tl,e.__scopeTooltip),u=Ad(t),[h,m]=f.useState(null),b=Mn(),v=f.useRef(0),w=i!=null?i:d.disableHoverableContent,g=c!=null?c:d.delayDuration,j=f.useRef(!1),[y,p]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:E=>{E?(d.onOpen(),document.dispatchEvent(new CustomEvent(Dh))):d.onClose(),o==null||o(E)},caller:tl}),x=f.useMemo(()=>y?j.current?"delayed-open":"instant-open":"closed",[y]),N=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,p(!1)},[p]),C=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{j.current=!0,p(!0),v.current=0},g)},[g,p]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),r.jsx(gj,{...u,children:r.jsx(j4,{scope:t,contentId:b,open:y,stateAttribute:x,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?C():N()},[d.isOpenDelayedRef,C,N]),onTriggerLeave:f.useCallback(()=>{w?S():(window.clearTimeout(v.current),v.current=0)},[S,w]),onOpen:N,onClose:S,disableHoverableContent:w,children:n})})};Nj.displayName=tl;var Lh="TooltipTrigger",Sj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=nl(Lh,n),o=Fh(Lh,n),i=Ad(n),c=f.useRef(null),d=Me(t,c,a.onTriggerChange),u=f.useRef(!1),h=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),r.jsx(vj,{asChild:!0,...i,children:r.jsx(xe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:d,onPointerMove:he(e.onPointerMove,b=>{b.pointerType!=="touch"&&!h.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:he(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:he(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:he(e.onBlur,a.onClose),onClick:he(e.onClick,a.onClose)})})});Sj.displayName=Lh;var $h="TooltipPortal",[w4,N4]=Rd($h,{forceMount:void 0}),Cj=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:a}=e,o=nl($h,t);return r.jsx(w4,{scope:t,forceMount:n,children:r.jsx(Rn,{present:n||o.open,children:r.jsx(Vi,{asChild:!0,container:a,children:s})})})};Cj.displayName=$h;var xo="TooltipContent",kj=f.forwardRef((e,t)=>{const n=N4(xo,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...o}=e,i=nl(xo,e.__scopeTooltip);return r.jsx(Rn,{present:s||i.open,children:i.disableHoverableContent?r.jsx(Ej,{side:a,...o,ref:t}):r.jsx(S4,{side:a,...o,ref:t})})}),S4=f.forwardRef((e,t)=>{const n=nl(xo,e.__scopeTooltip),s=Fh(xo,e.__scopeTooltip),a=f.useRef(null),o=Me(t,a),[i,c]=f.useState(null),{trigger:d,onClose:u}=n,h=a.current,{onPointerInTransitChange:m}=s,b=f.useCallback(()=>{c(null),m(!1)},[m]),v=f.useCallback((w,g)=>{const j=w.currentTarget,y={x:w.clientX,y:w.clientY},p=P4(y,j.getBoundingClientRect()),x=T4(y,p),N=R4(g.getBoundingClientRect()),S=O4([...x,...N]);c(S),m(!0)},[m]);return f.useEffect(()=>()=>b(),[b]),f.useEffect(()=>{if(d&&h){const w=j=>v(j,h),g=j=>v(j,d);return d.addEventListener("pointerleave",w),h.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerleave",w),h.removeEventListener("pointerleave",g)}}},[d,h,v,b]),f.useEffect(()=>{if(i){const w=g=>{const j=g.target,y={x:g.clientX,y:g.clientY},p=(d==null?void 0:d.contains(j))||(h==null?void 0:h.contains(j)),x=!A4(y,i);p?b():x&&(b(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,h,i,u,b]),r.jsx(Ej,{...e,ref:o})}),[C4,k4]=Rd(tl,{isInside:!1}),E4=v4("TooltipContent"),Ej=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...c}=e,d=nl(xo,n),u=Ad(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(Dh,h),()=>document.removeEventListener(Dh,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=b=>{const v=b.target;v!=null&&v.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(yj,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(E4,{children:s}),r.jsx(C4,{scope:n,isInside:!0,children:r.jsx(X_,{id:d.contentId,role:"tooltip",children:a||s})})]})})});kj.displayName=xo;var _j="TooltipArrow",_4=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Ad(n);return k4(_j,n).isInside?null:r.jsx(bj,{...a,...s,ref:t})});_4.displayName=_j;function P4(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,s,a,o)){case o:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function T4(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function R4(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function A4(e,t){const{x:n,y:s}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o],d=t[i],u=c.x,h=c.y,m=d.x,b=d.y;h>s!=b>s&&n<(m-u)*(s-h)/(b-h)+u&&(a=!a)}return a}function O4(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),I4(t)}function I4(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var M4=wj,D4=Nj,F4=Sj,L4=Cj,Pj=kj;const Tj=M4,$4=D4,z4=F4,Rj=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(L4,{container:Zi(),children:r.jsx(Pj,{ref:s,sideOffset:t,className:V("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})}));Rj.displayName=Pj.displayName;const Aj=f.createContext(void 0);function U4({children:e}){const t=mt(),n=!!t.isProInstalled,s=!!t.isProActive,a=n?s?"pro-active":"pro-no-license":"free";return r.jsx(Aj.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:a},children:e})}function Od(){const e=f.useContext(Aj);if(!e)throw new Error("usePro must be used within ProProvider");return e}var B4=Symbol.for("react.lazy"),Id=Fl[" use ".trim().toString()];function V4(e){return typeof e=="object"&&e!==null&&"then"in e}function Oj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===B4&&"_payload"in e&&V4(e._payload)}function zh(e){const t=H4(e),n=f.forwardRef((s,a)=>{let{children:o,...i}=s;Oj(o)&&typeof Id=="function"&&(o=Id(o._payload));const c=f.Children.toArray(o),d=c.find(q4);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var ca=zh("Slot");function H4(e){const t=f.forwardRef((n,s)=>{let{children:a,...o}=n;if(Oj(a)&&typeof Id=="function"&&(a=Id(a._payload)),f.isValidElement(a)){const i=Q4(a),c=K4(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var W4=Symbol("radix.slottable");function q4(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===W4}function K4(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function Q4(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Uh=768;function G4(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Uh-1}px)`),s=()=>{t(window.innerWidth<Uh)};return n.addEventListener("change",s),t(window.innerWidth<Uh),()=>n.removeEventListener("change",s)},[]),!!e}const Bh=ao("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",upgrade:"bg-success text-success-foreground hover:bg-success/90 font-semibold shadow-sm"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),U=f.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...a},o)=>{const i=s?ca:"button";return r.jsx(i,{className:V(Bh({variant:t,size:n,className:e})),ref:o,...a})});U.displayName="Button";const Re=f.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:V("flex h-10 w-full rounded-md border border-input bg-card px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors hover:border-foreground/30",e),ref:s,...n}));Re.displayName="Input";var Y4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],X4=Y4.reduce((e,t)=>{const n=zh(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Z4="Separator",Ij="horizontal",J4=["horizontal","vertical"],Mj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=Ij,...a}=e,o=eA(s)?s:Ij,c=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return r.jsx(X4.div,{"data-orientation":o,...c,...a,ref:t})});Mj.displayName=Z4;function eA(e){return J4.includes(e)}var Dj=Mj;const rl=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},a)=>r.jsx(Dj,{ref:a,decorative:n,orientation:t,className:V("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));rl.displayName=Dj.displayName;var Vh="focusScope.autoFocusOnMount",Hh="focusScope.autoFocusOnUnmount",Fj={bubbles:!1,cancelable:!0},tA="FocusScope",Wh=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[c,d]=f.useState(null),u=gn(a),h=gn(o),m=f.useRef(null),b=Me(t,g=>d(g)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let g=function(x){if(v.paused||!c)return;const N=x.target;c.contains(N)?m.current=N:ps(m.current,{select:!0})},j=function(x){if(v.paused||!c)return;const N=x.relatedTarget;N!==null&&(c.contains(N)||ps(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&ps(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",j);const p=new MutationObserver(y);return c&&p.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",j),p.disconnect()}}},[s,c,v.paused]),f.useEffect(()=>{if(c){zj.add(v);const g=document.activeElement;if(!c.contains(g)){const y=new CustomEvent(Vh,Fj);c.addEventListener(Vh,u),c.dispatchEvent(y),y.defaultPrevented||(nA(iA(Lj(c)),{select:!0}),document.activeElement===g&&ps(c))}return()=>{c.removeEventListener(Vh,u),setTimeout(()=>{const y=new CustomEvent(Hh,Fj);c.addEventListener(Hh,h),c.dispatchEvent(y),y.defaultPrevented||ps(g!=null?g:document.body,{select:!0}),c.removeEventListener(Hh,h),zj.remove(v)},0)}}},[c,u,h,v]);const w=f.useCallback(g=>{if(!n&&!s||v.paused)return;const j=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(j&&y){const p=g.currentTarget,[x,N]=rA(p);x&&N?!g.shiftKey&&y===N?(g.preventDefault(),n&&ps(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&ps(N,{select:!0})):y===p&&g.preventDefault()}},[n,s,v.paused]);return r.jsx(xe.div,{tabIndex:-1,...i,ref:b,onKeyDown:w})});Wh.displayName=tA;function nA(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(ps(s,{select:t}),document.activeElement!==n)return}function rA(e){const t=Lj(e),n=$j(t,e),s=$j(t.reverse(),e);return[n,s]}function Lj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $j(e,t){for(const n of e)if(!sA(n,{upTo:t}))return n}function sA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aA(e){return e instanceof HTMLInputElement&&"select"in e}function ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aA(e)&&t&&e.select()}}var zj=oA();function oA(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Uj(e,t),e.unshift(t)},remove(t){var n;e=Uj(e,t),(n=e[0])==null||n.resume()}}}function Uj(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function iA(e){return e.filter(t=>t.tagName!=="A")}var qh=0;function Bj(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:Vj()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:Vj()),qh++,()=>{qh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),qh--}},[])}function Vj(){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 er=function(){return er=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},er.apply(this,arguments)};function Hj(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function lA(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,o;s<a;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Md="right-scroll-bar-position",Dd="width-before-scroll-bar",cA="with-scroll-bars-hidden",dA="--removed-body-scroll-bar-size";function Kh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uA(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var a=n.value;a!==s&&(n.value=s,n.callback(s,a))}}}})[0];return n.callback=t,n.facade}var fA=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,Wj=new WeakMap;function mA(e,t){var n=uA(null,function(s){return e.forEach(function(a){return Kh(a,s)})});return fA(function(){var s=Wj.get(n);if(s){var a=new Set(s),o=new Set(e),i=n.current;a.forEach(function(c){o.has(c)||Kh(c,null)}),o.forEach(function(c){a.has(c)||Kh(c,i)})}Wj.set(n,e)},[e]),n}function hA(e){return e}function pA(e,t){t===void 0&&(t=hA);var n=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,s);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(o){for(s=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){s=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(o),i=n}var d=function(){var h=i;i=[],h.forEach(o)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){i.push(h),u()},filter:function(h){return i=i.filter(h),n}}}};return a}function xA(e){e===void 0&&(e={});var t=pA(null);return t.options=er({async:!0,ssr:!1},e),t}var qj=function(e){var t=e.sideCar,n=Hj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return f.createElement(s,er({},n))};qj.isSideCarExport=!0;function gA(e,t){return e.useMedium(t),qj}var Kj=xA(),Qh=function(){},Fd=f.forwardRef(function(e,t){var n=f.useRef(null),s=f.useState({onScrollCapture:Qh,onWheelCapture:Qh,onTouchMoveCapture:Qh}),a=s[0],o=s[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,b=e.sideCar,v=e.noRelative,w=e.noIsolation,g=e.inert,j=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,x=e.gapMode,N=Hj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=b,C=mA([n,t]),E=er(er({},N),a);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:Kj,removeScrollBar:u,shards:m,noRelative:v,noIsolation:w,inert:g,setCallbacks:o,allowPinchZoom:!!j,lockRef:n,gapMode:x}),i?f.cloneElement(f.Children.only(c),er(er({},E),{ref:C})):f.createElement(p,er({},E,{className:d,ref:C}),c))});Fd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fd.classNames={fullWidth:Dd,zeroRight:Md};var vA=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function yA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vA();return t&&e.setAttribute("nonce",t),e}function bA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yA())&&(bA(t,n),jA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NA=function(){var e=wA();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Qj=function(){var e=NA(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},SA={left:0,top:0,right:0,gap:0},Gh=function(e){return parseInt(e||"",10)||0},CA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Gh(n),Gh(s),Gh(a)]},kA=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return SA;var t=CA(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},EA=Qj(),go="data-scroll-locked",_A=function(e,t,n,s){var a=e.left,o=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),` | |
| 436 | - .`.concat(cA,` { | |
| 419 | + */const RP=ce("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),mh="-",AP=e=>{const t=IP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const c=i.split(mh);return c[0]===""&&c.length!==1&&c.shift(),p0(c,t)||OP(i)},getConflictingClassGroupIds:(i,c)=>{const d=n[i]||[];return c&&s[i]?[...d,...s[i]]:d}}},p0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),a=s?p0(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(mh);return(i=t.validators.find(({validator:c})=>c(o)))==null?void 0:i.classGroupId},x0=/^\[(.+)\]$/,OP=e=>{if(x0.test(e)){const t=x0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IP=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return DP(Object.entries(e.classGroups),n).forEach(([o,i])=>{hh(i,s,o,t)}),s},hh=(e,t,n,s)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:g0(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(MP(a)){hh(a(s),t,n,s);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,i])=>{hh(i,g0(t,o),n,s)})})},g0=(e,t)=>{let n=e;return t.split(mh).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},MP=e=>e.isThemeGetter,DP=(e,t)=>t?e.map(([n,s])=>{const a=s.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,c])=>[t+i,c])):o);return[n,a]}):e,FP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const a=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,s=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=s.get(o))!==void 0)return a(o,i),i},set(o,i){n.has(o)?n.set(o,i):a(o,i)}}},v0="!",LP=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,a=t[0],o=t.length,i=c=>{const d=[];let u=0,h=0,m;for(let w=0;w<c.length;w++){let y=c[w];if(u===0){if(y===a&&(s||c.slice(w,w+o)===t)){d.push(c.slice(h,w)),h=w+o;continue}if(y==="/"){m=w;continue}}y==="["?u++:y==="]"&&u--}const v=d.length===0?c:c.substring(h),x=v.startsWith(v0),j=x?v.substring(1):v,b=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:x,baseClassName:j,maybePostfixModifierPosition:b}};return n?c=>n({className:c,parseClassName:i}):i},$P=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},zP=e=>({cache:FP(e.cacheSize),parseClassName:LP(e),...AP(e)}),UP=/\s+/,BP=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(UP);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:x}=n(u);let j=!!x,b=s(j?v.substring(0,x):v);if(!b){if(!j){c=u+(c.length>0?" "+c:c);continue}if(b=s(v),!b){c=u+(c.length>0?" "+c:c);continue}j=!1}const w=$P(h).join(":"),y=m?w+v0:w,p=y+b;if(o.includes(p))continue;o.push(p);const g=a(b,j);for(let N=0;N<g.length;++N){const S=g[N];o.push(y+S)}c=u+(c.length>0?" "+c:c)}return c};function VP(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=y0(t))&&(s&&(s+=" "),s+=n);return s}const y0=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=y0(e[s]))&&(n&&(n+=" "),n+=t);return n};function qP(e,...t){let n,s,a,o=i;function i(d){const u=t.reduce((h,m)=>m(h),e());return n=zP(u),s=n.cache.get,a=n.cache.set,o=c,c(d)}function c(d){const u=s(d);if(u)return u;const h=BP(d,n);return a(d,h),h}return function(){return o(VP.apply(null,arguments))}}const Qe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b0=/^\[(?:([a-z-]+):)?(.+)\]$/i,HP=/^\d+\/\d+$/,WP=new Set(["px","full","screen"]),KP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QP=/\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$/,GP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>co(e)||WP.has(e)||HP.test(e),us=e=>uo(e,"length",aT),co=e=>!!e&&!Number.isNaN(Number(e)),ph=e=>uo(e,"number",co),Qi=e=>!!e&&Number.isInteger(Number(e)),ZP=e=>e.endsWith("%")&&co(e.slice(0,-1)),_e=e=>b0.test(e),fs=e=>KP.test(e),JP=new Set(["length","size","percentage"]),eT=e=>uo(e,JP,j0),tT=e=>uo(e,"position",j0),nT=new Set(["image","url"]),rT=e=>uo(e,nT,iT),sT=e=>uo(e,"",oT),Gi=()=>!0,uo=(e,t,n)=>{const s=b0.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},aT=e=>QP.test(e)&&!GP.test(e),j0=()=>!1,oT=e=>YP.test(e),iT=e=>XP.test(e),lT=qP(()=>{const e=Qe("colors"),t=Qe("spacing"),n=Qe("blur"),s=Qe("brightness"),a=Qe("borderColor"),o=Qe("borderRadius"),i=Qe("borderSpacing"),c=Qe("borderWidth"),d=Qe("contrast"),u=Qe("grayscale"),h=Qe("hueRotate"),m=Qe("invert"),v=Qe("gap"),x=Qe("gradientColorStops"),j=Qe("gradientColorStopPositions"),b=Qe("inset"),w=Qe("margin"),y=Qe("opacity"),p=Qe("padding"),g=Qe("saturate"),N=Qe("scale"),S=Qe("sepia"),k=Qe("skew"),_=Qe("space"),C=Qe("translate"),R=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",_e,t],D=()=>[_e,t],B=()=>["",Sr,us],I=()=>["auto",co,_e],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",_e],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xe=()=>[co,_e];return{cacheSize:500,separator:":",theme:{colors:[Gi],spacing:[Sr,us],blur:["none","",fs,_e],brightness:xe(),borderColor:[e],borderRadius:["none","","full",fs,_e],borderSpacing:D(),borderWidth:B(),contrast:xe(),grayscale:M(),hueRotate:xe(),invert:M(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[ZP,us],inset:O(),margin:O(),opacity:xe(),padding:D(),saturate:xe(),scale:xe(),sepia:M(),skew:xe(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",_e]}],container:["container"],columns:[{columns:[fs]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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"],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:[...re(),_e]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qi,_e]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_e]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Qi,_e]}],"grid-cols":[{"grid-cols":[Gi]}],"col-start-end":[{col:["auto",{span:["full",Qi,_e]},_e]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Gi]}],"row-start-end":[{row:["auto",{span:[Qi,_e]},_e]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_e]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_e,t]}],"min-w":[{"min-w":[_e,t,"min","max","fit"]}],"max-w":[{"max-w":[_e,t,"none","full","min","max","fit","prose",{screen:[fs]},fs]}],h:[{h:[_e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fs,us]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ph]}],"font-family":[{font:[Gi]}],"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:["tighter","tight","normal","wide","wider","widest",_e]}],"line-clamp":[{"line-clamp":["none",co,ph]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,_e]}],"list-image":[{"list-image":["none",_e]}],"list-style-type":[{list:["none","disc","decimal",_e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,us]}],"underline-offset":[{"underline-offset":["auto",Sr,_e]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),tT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",eT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Sr,_e]}],"outline-w":[{outline:[Sr,us]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Sr,us]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fs,sT]}],"shadow-color":[{shadow:[Gi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",fs,_e]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[g]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_e]}],duration:[{duration:xe()}],ease:[{ease:["linear","in","out","in-out",_e]}],delay:[{delay:xe()}],animate:[{animate:["none","spin","ping","pulse","bounce",_e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Qi,_e]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_e]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",_e]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",_e]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,us,ph]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}});function q(...e){return lT(t0(e))}function Yi(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const cT=sP,w0=f.forwardRef(({className:e,...t},n)=>r.jsx(Qb,{ref:n,className:q("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));w0.displayName=Qb.displayName;const dT=ao("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),N0=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(Gb,{ref:s,className:q(dT({variant:t}),e),...n}));N0.displayName=Gb.displayName;const uT=f.forwardRef(({className:e,...t},n)=>r.jsx(Zb,{ref:n,className:q("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));uT.displayName=Zb.displayName;const S0=f.forwardRef(({className:e,...t},n)=>r.jsx(Jb,{ref:n,className:q("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:r.jsx(gd,{className:"h-4 w-4"})}));S0.displayName=Jb.displayName;const C0=f.forwardRef(({className:e,...t},n)=>r.jsx(Yb,{ref:n,className:q("text-sm font-semibold",e),...t}));C0.displayName=Yb.displayName;const k0=f.forwardRef(({className:e,...t},n)=>r.jsx(Xb,{ref:n,className:q("text-sm opacity-90",e),...t}));k0.displayName=Xb.displayName;function fT(){const{toasts:e}=l_();return r.jsxs(cT,{children:[e.map(function({id:t,title:n,description:s,action:a,...o}){return r.jsxs(N0,{...o,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(C0,{children:n}),s&&r.jsx(k0,{children:s})]}),a,r.jsx(S0,{})]},t)}),r.jsx(w0,{})]})}var mT=(e,t,n,s,a,o,i,c)=>{let d=document.documentElement,u=["light","dark"];function h(x){(Array.isArray(e)?e:[e]).forEach(j=>{let b=j==="class",w=b&&o?a.map(y=>o[y]||y):a;b?(d.classList.remove(...w),d.classList.add(o&&o[x]?o[x]:x)):d.setAttribute(j,x)}),m(x)}function m(x){c&&u.includes(x)&&(d.style.colorScheme=x)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let x=localStorage.getItem(t)||n,j=i&&x==="system"?v():x;h(j)}catch(x){}},hT=f.createContext(void 0),pT={setTheme:e=>{},themes:[]},xT=()=>{var e;return(e=f.useContext(hT))!=null?e:pT};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:o,value:i,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,o,e,c,i,s,a]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${mT.toString()})(${h})`}})});var gT=e=>{switch(e){case"success":return bT;case"info":return wT;case"warning":return jT;case"error":return NT;default:return null}},vT=Array(12).fill(0),yT=({visible:e,className:t})=>H.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},H.createElement("div",{className:"sonner-spinner"},vT.map((n,s)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),bT=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),jT=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),wT=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),NT=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ST=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},H.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),H.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),CT=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},xh=1,kT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...s}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:xh++,o=this.toasts.find(c=>c.id===a),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...e,id:a,title:n}),{...c,...e,id:a,dismissible:i,title:n}):c):this.addToast({title:n,...s,dismissible:i,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),a=n!==void 0,o,i=s.then(async d=>{if(o=["resolve",d],H.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(_T(d)&&!d.ok){a=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${d.status}`):t.error,h=typeof t.description=="function"?await t.description(`HTTP error! status: ${d.status}`):t.description;this.create({id:n,type:"error",message:u,description:h})}else if(t.success!==void 0){a=!1;let u=typeof t.success=="function"?await t.success(d):t.success,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"success",message:u,description:h})}}).catch(async d=>{if(o=["reject",d],t.error!==void 0){a=!1;let u=typeof t.error=="function"?await t.error(d):t.error,h=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"error",message:u,description:h})}}).finally(()=>{var d;a&&(this.dismiss(n),n=void 0),(d=t.finally)==null||d.call(t)}),c=()=>new Promise((d,u)=>i.then(()=>o[0]==="reject"?u(o[1]):d(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||xh++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Vt=new kT,ET=(e,t)=>{let n=(t==null?void 0:t.id)||xh++;return Vt.addToast({title:e,...t,id:n}),n},_T=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",PT=ET,TT=()=>Vt.toasts,RT=()=>Vt.getActiveToasts(),K=Object.assign(PT,{success:Vt.success,info:Vt.info,warning:Vt.warning,error:Vt.error,custom:Vt.custom,message:Vt.message,promise:Vt.promise,dismiss:Vt.dismiss,loading:Vt.loading},{getHistory:TT,getToasts:RT});function AT(e,{insertAt:t}={}){if(typeof document=="undefined")return;let n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}AT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} | |
| 420 | +`);function vd(e){return e.label!==void 0}var OT=3,IT="32px",MT="16px",E0=4e3,DT=356,FT=14,LT=20,$T=200;function On(...e){return e.filter(Boolean).join(" ")}function zT(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var UT=e=>{var t,n,s,a,o,i,c,d,u,h,m;let{invert:v,toast:x,unstyled:j,interacting:b,setHeights:w,visibleToasts:y,heights:p,index:g,toasts:N,expanded:S,removeToast:k,defaultRichColors:_,closeButton:C,style:R,cancelButtonStyle:T,actionButtonStyle:O,className:D="",descriptionClassName:B="",duration:I,position:re,gap:F,loadingIcon:ne,expandByDefault:A,classNames:M,icons:Z,closeButtonAriaLabel:xe="Close toast",pauseWhenPageIsHidden:P}=e,[$,W]=H.useState(null),[oe,Se]=H.useState(null),[G,ve]=H.useState(!1),[L,me]=H.useState(!1),[U,he]=H.useState(!1),[Ae,He]=H.useState(!1),[ut,_t]=H.useState(!1),[cr,Rs]=H.useState(0),[zo,Sa]=H.useState(0),on=H.useRef(x.duration||I||E0),Rl=H.useRef(null),dr=H.useRef(null),du=g===0,uu=g+1<=y,Ft=x.type,Dr=x.dismissible!==!1,ur=x.className||"",wn=x.descriptionClassName||"",ln=H.useMemo(()=>p.findIndex(Ee=>Ee.toastId===x.id)||0,[p,x.id]),Ca=H.useMemo(()=>{var Ee;return(Ee=x.closeButton)!=null?Ee:C},[x.closeButton,C]),As=H.useMemo(()=>x.duration||I||E0,[x.duration,I]),Fr=H.useRef(0),Uo=H.useRef(0),DS=H.useRef(0),Bo=H.useRef(null),[mM,hM]=re.split("-"),FS=H.useMemo(()=>p.reduce((Ee,Ue,Ze)=>Ze>=ln?Ee:Ee+Ue.height,0),[p,ln]),LS=CT(),pM=x.invert||v,Kp=Ft==="loading";Uo.current=H.useMemo(()=>ln*F+FS,[ln,FS]),H.useEffect(()=>{on.current=As},[As]),H.useEffect(()=>{ve(!0)},[]),H.useEffect(()=>{let Ee=dr.current;if(Ee){let Ue=Ee.getBoundingClientRect().height;return Sa(Ue),w(Ze=>[{toastId:x.id,height:Ue,position:x.position},...Ze]),()=>w(Ze=>Ze.filter(Un=>Un.toastId!==x.id))}},[w,x.id]),H.useLayoutEffect(()=>{if(!G)return;let Ee=dr.current,Ue=Ee.style.height;Ee.style.height="auto";let Ze=Ee.getBoundingClientRect().height;Ee.style.height=Ue,Sa(Ze),w(Un=>Un.find(Bn=>Bn.toastId===x.id)?Un.map(Bn=>Bn.toastId===x.id?{...Bn,height:Ze}:Bn):[{toastId:x.id,height:Ze,position:x.position},...Un])},[G,x.title,x.description,w,x.id]);let Os=H.useCallback(()=>{me(!0),Rs(Uo.current),w(Ee=>Ee.filter(Ue=>Ue.toastId!==x.id)),setTimeout(()=>{k(x)},$T)},[x,k,w,Uo]);H.useEffect(()=>{if(x.promise&&Ft==="loading"||x.duration===1/0||x.type==="loading")return;let Ee;return S||b||P&&LS?(()=>{if(DS.current<Fr.current){let Ue=new Date().getTime()-Fr.current;on.current=on.current-Ue}DS.current=new Date().getTime()})():on.current!==1/0&&(Fr.current=new Date().getTime(),Ee=setTimeout(()=>{var Ue;(Ue=x.onAutoClose)==null||Ue.call(x,x),Os()},on.current)),()=>clearTimeout(Ee)},[S,b,x,Ft,P,LS,Os]),H.useEffect(()=>{x.delete&&Os()},[Os,x.delete]);function xM(){var Ee,Ue,Ze;return Z!=null&&Z.loading?H.createElement("div",{className:On(M==null?void 0:M.loader,(Ee=x==null?void 0:x.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Ft==="loading"},Z.loading):ne?H.createElement("div",{className:On(M==null?void 0:M.loader,(Ue=x==null?void 0:x.classNames)==null?void 0:Ue.loader,"sonner-loader"),"data-visible":Ft==="loading"},ne):H.createElement(yT,{className:On(M==null?void 0:M.loader,(Ze=x==null?void 0:x.classNames)==null?void 0:Ze.loader),visible:Ft==="loading"})}return H.createElement("li",{tabIndex:0,ref:dr,className:On(D,ur,M==null?void 0:M.toast,(t=x==null?void 0:x.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[Ft],(n=x==null?void 0:x.classNames)==null?void 0:n[Ft]),"data-sonner-toast":"","data-rich-colors":(s=x.richColors)!=null?s:_,"data-styled":!(x.jsx||x.unstyled||j),"data-mounted":G,"data-promise":!!x.promise,"data-swiped":ut,"data-removed":L,"data-visible":uu,"data-y-position":mM,"data-x-position":hM,"data-index":g,"data-front":du,"data-swiping":U,"data-dismissible":Dr,"data-type":Ft,"data-invert":pM,"data-swipe-out":Ae,"data-swipe-direction":oe,"data-expanded":!!(S||A&&G),style:{"--index":g,"--toasts-before":g,"--z-index":N.length-g,"--offset":`${L?cr:Uo.current}px`,"--initial-height":A?"auto":`${zo}px`,...R,...x.style},onDragEnd:()=>{he(!1),W(null),Bo.current=null},onPointerDown:Ee=>{Kp||!Dr||(Rl.current=new Date,Rs(Uo.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(he(!0),Bo.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,Ue,Ze,Un;if(Ae||!Dr)return;Bo.current=null;let Bn=Number(((Ee=dr.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Is=Number(((Ue=dr.current)==null?void 0:Ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ka=new Date().getTime()-((Ze=Rl.current)==null?void 0:Ze.getTime()),Vn=$==="x"?Bn:Is,Ms=Math.abs(Vn)/ka;if(Math.abs(Vn)>=LT||Ms>.11){Rs(Uo.current),(Un=x.onDismiss)==null||Un.call(x,x),Se($==="x"?Bn>0?"right":"left":Is>0?"down":"up"),Os(),He(!0),_t(!1);return}he(!1),W(null)},onPointerMove:Ee=>{var Ue,Ze,Un,Bn;if(!Bo.current||!Dr||((Ue=window.getSelection())==null?void 0:Ue.toString().length)>0)return;let Is=Ee.clientY-Bo.current.y,ka=Ee.clientX-Bo.current.x,Vn=(Ze=e.swipeDirections)!=null?Ze:zT(re);!$&&(Math.abs(ka)>1||Math.abs(Is)>1)&&W(Math.abs(ka)>Math.abs(Is)?"x":"y");let Ms={x:0,y:0};$==="y"?(Vn.includes("top")||Vn.includes("bottom"))&&(Vn.includes("top")&&Is<0||Vn.includes("bottom")&&Is>0)&&(Ms.y=Is):$==="x"&&(Vn.includes("left")||Vn.includes("right"))&&(Vn.includes("left")&&ka<0||Vn.includes("right")&&ka>0)&&(Ms.x=ka),(Math.abs(Ms.x)>0||Math.abs(Ms.y)>0)&&_t(!0),(Un=dr.current)==null||Un.style.setProperty("--swipe-amount-x",`${Ms.x}px`),(Bn=dr.current)==null||Bn.style.setProperty("--swipe-amount-y",`${Ms.y}px`)}},Ca&&!x.jsx?H.createElement("button",{"aria-label":xe,"data-disabled":Kp,"data-close-button":!0,onClick:Kp||!Dr?()=>{}:()=>{var Ee;Os(),(Ee=x.onDismiss)==null||Ee.call(x,x)},className:On(M==null?void 0:M.closeButton,(a=x==null?void 0:x.classNames)==null?void 0:a.closeButton)},(o=Z==null?void 0:Z.close)!=null?o:ST):null,x.jsx||f.isValidElement(x.title)?x.jsx?x.jsx:typeof x.title=="function"?x.title():x.title:H.createElement(H.Fragment,null,Ft||x.icon||x.promise?H.createElement("div",{"data-icon":"",className:On(M==null?void 0:M.icon,(i=x==null?void 0:x.classNames)==null?void 0:i.icon)},x.promise||x.type==="loading"&&!x.icon?x.icon||xM():null,x.type!=="loading"?x.icon||(Z==null?void 0:Z[Ft])||gT(Ft):null):null,H.createElement("div",{"data-content":"",className:On(M==null?void 0:M.content,(c=x==null?void 0:x.classNames)==null?void 0:c.content)},H.createElement("div",{"data-title":"",className:On(M==null?void 0:M.title,(d=x==null?void 0:x.classNames)==null?void 0:d.title)},typeof x.title=="function"?x.title():x.title),x.description?H.createElement("div",{"data-description":"",className:On(B,wn,M==null?void 0:M.description,(u=x==null?void 0:x.classNames)==null?void 0:u.description)},typeof x.description=="function"?x.description():x.description):null),f.isValidElement(x.cancel)?x.cancel:x.cancel&&vd(x.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||T,onClick:Ee=>{var Ue,Ze;vd(x.cancel)&&Dr&&((Ze=(Ue=x.cancel).onClick)==null||Ze.call(Ue,Ee),Os())},className:On(M==null?void 0:M.cancelButton,(h=x==null?void 0:x.classNames)==null?void 0:h.cancelButton)},x.cancel.label):null,f.isValidElement(x.action)?x.action:x.action&&vd(x.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||O,onClick:Ee=>{var Ue,Ze;vd(x.action)&&((Ze=(Ue=x.action).onClick)==null||Ze.call(Ue,Ee),!Ee.defaultPrevented&&Os())},className:On(M==null?void 0:M.actionButton,(m=x==null?void 0:x.classNames)==null?void 0:m.actionButton)},x.action.label):null))};function _0(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function BT(e,t){let n={};return[e,t].forEach((s,a)=>{let o=a===1,i=o?"--mobile-offset":"--offset",c=o?MT:IT;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${i}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof s=="number"||typeof s=="string"?d(s):typeof s=="object"?["top","right","bottom","left"].forEach(u=>{s[u]===void 0?n[`${i}-${u}`]=c:n[`${i}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(c)}),n}var VT=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:o,closeButton:i,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:v,style:x,visibleToasts:j=OT,toastOptions:b,dir:w=_0(),gap:y=FT,loadingIcon:p,icons:g,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[k,_]=H.useState([]),C=H.useMemo(()=>Array.from(new Set([s].concat(k.filter(P=>P.position).map(P=>P.position)))),[k,s]),[R,T]=H.useState([]),[O,D]=H.useState(!1),[B,I]=H.useState(!1),[re,F]=H.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ne=H.useRef(null),A=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=H.useRef(null),Z=H.useRef(!1),xe=H.useCallback(P=>{_($=>{var W;return(W=$.find(oe=>oe.id===P.id))!=null&&W.delete||Vt.dismiss(P.id),$.filter(({id:oe})=>oe!==P.id)})},[]);return H.useEffect(()=>Vt.subscribe(P=>{if(P.dismiss){_($=>$.map(W=>W.id===P.id?{...W,delete:!0}:W));return}setTimeout(()=>{Ey.flushSync(()=>{_($=>{let W=$.findIndex(oe=>oe.id===P.id);return W!==-1?[...$.slice(0,W),{...$[W],...P},...$.slice(W+1)]:[P,...$]})})})}),[]),H.useEffect(()=>{if(h!=="system"){F(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window=="undefined")return;let P=window.matchMedia("(prefers-color-scheme: dark)");try{P.addEventListener("change",({matches:$})=>{F($?"dark":"light")})}catch($){P.addListener(({matches:W})=>{try{F(W?"dark":"light")}catch(oe){console.error(oe)}})}},[h]),H.useEffect(()=>{k.length<=1&&D(!1)},[k]),H.useEffect(()=>{let P=$=>{var W,oe;a.every(Se=>$[Se]||$.code===Se)&&(D(!0),(W=ne.current)==null||W.focus()),$.code==="Escape"&&(document.activeElement===ne.current||(oe=ne.current)!=null&&oe.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[a]),H.useEffect(()=>{if(ne.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,Z.current=!1)}},[ne.current]),H.createElement("section",{ref:t,"aria-label":`${N} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((P,$)=>{var W;let[oe,Se]=P.split("-");return k.length?H.createElement("ol",{key:P,dir:w==="auto"?_0():w,tabIndex:-1,ref:ne,className:c,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":oe,"data-lifted":O&&k.length>1&&!o,"data-x-position":Se,style:{"--front-toast-height":`${((W=R[0])==null?void 0:W.height)||0}px`,"--width":`${DT}px`,"--gap":`${y}px`,...x,...BT(d,u)},onBlur:G=>{Z.current&&!G.currentTarget.contains(G.relatedTarget)&&(Z.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||Z.current||(Z.current=!0,M.current=G.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{B||D(!1)},onDragEnd:()=>D(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(G=>!G.position&&$===0||G.position===P).map((G,ve)=>{var L,me;return H.createElement(UT,{key:G.id,icons:g,index:ve,toast:G,defaultRichColors:m,duration:(L=b==null?void 0:b.duration)!=null?L:v,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:n,visibleToasts:j,closeButton:(me=b==null?void 0:b.closeButton)!=null?me:i,interacting:B,position:P,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:xe,toasts:k.filter(U=>U.position==G.position),heights:R.filter(U=>U.position==G.position),setHeights:T,expandByDefault:o,gap:y,loadingIcon:p,expanded:O,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const qT=({...e})=>{const{theme:t="system"}=xT();return r.jsx(VT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var HT=Dl[" useId ".trim().toString()]||(()=>{}),WT=0;function In(e){const[t,n]=f.useState(HT());return ht(()=>{n(s=>s!=null?s:String(WT++))},[e]),e||(t?`radix-${t}`:"")}const KT=["top","right","bottom","left"],ms=Math.min,Jt=Math.max,yd=Math.round,bd=Math.floor,Yn=e=>({x:e,y:e}),QT={left:"right",right:"left",bottom:"top",top:"bottom"};function gh(e,t,n){return Jt(e,ms(t,n))}function Cr(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function vh(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}function Xn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function bh(e){return vh(Xn(e))}function GT(e,t,n){n===void 0&&(n=!1);const s=fo(e),a=bh(e),o=yh(a);let i=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=jd(i)),[i,jd(i)]}function YT(e){const t=jd(e);return[jh(e),t,jh(t)]}function jh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const P0=["left","right"],T0=["right","left"],XT=["top","bottom"],ZT=["bottom","top"];function JT(e,t,n){switch(e){case"top":case"bottom":return n?t?T0:P0:t?P0:T0;case"left":case"right":return t?XT:ZT;default:return[]}}function eR(e,t,n,s){const a=fo(e);let o=JT(kr(e),n==="start",s);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(jh)))),o}function jd(e){const t=kr(e);return QT[t]+e.slice(t.length)}function tR(e){return{top:0,right:0,bottom:0,left:0,...e}}function R0(e){return typeof e!="number"?tR(e):{top:e,right:e,bottom:e,left:e}}function wd(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function A0(e,t,n){let{reference:s,floating:a}=e;const o=Xn(t),i=bh(t),c=yh(i),d=kr(t),u=o==="y",h=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,v=s[c]/2-a[c]/2;let x;switch(d){case"top":x={x:h,y:s.y-a.height};break;case"bottom":x={x:h,y:s.y+s.height};break;case"right":x={x:s.x+s.width,y:m};break;case"left":x={x:s.x-a.width,y:m};break;default:x={x:s.x,y:s.y}}switch(fo(t)){case"start":x[i]-=v*(n&&u?-1:1);break;case"end":x[i]+=v*(n&&u?-1:1);break}return x}async function nR(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:o,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:v=!1,padding:x=0}=Cr(t,e),j=R0(x),w=c[v?m==="floating"?"reference":"floating":m],y=wd(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),N=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},S=wd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:p,offsetParent:g,strategy:d}):p);return{top:(y.top-S.top+j.top)/N.y,bottom:(S.bottom-y.bottom+j.bottom)/N.y,left:(y.left-S.left+j.left)/N.x,right:(S.right-y.right+j.right)/N.x}}const rR=50,sR=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:nR},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=A0(u,s,d),v=s,x=0;const j={};for(let b=0;b<o.length;b++){const w=o[b];if(!w)continue;const{name:y,fn:p}=w,{x:g,y:N,data:S,reset:k}=await p({x:h,y:m,initialPlacement:s,placement:v,strategy:a,middlewareData:j,rects:u,platform:c,elements:{reference:e,floating:t}});h=g!=null?g:h,m=N!=null?N:m,j[y]={...j[y],...S},k&&x<rR&&(x++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:h,y:m}=A0(u,v,d)),b=-1)}return{x:h,y:m,placement:v,strategy:a,middlewareData:j}},aR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:o,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:h=0}=Cr(e,t)||{};if(u==null)return{};const m=R0(h),v={x:n,y:s},x=bh(a),j=yh(x),b=await i.getDimensions(u),w=x==="y",y=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",N=o.reference[j]+o.reference[x]-v[x]-o.floating[j],S=v[x]-o.reference[x],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=k?k[g]:0;(!_||!await(i.isElement==null?void 0:i.isElement(k)))&&(_=c.floating[g]||o.floating[j]);const C=N/2-S/2,R=_/2-b[j]/2-1,T=ms(m[y],R),O=ms(m[p],R),D=T,B=_-b[j]-O,I=_/2-b[j]/2+C,re=gh(D,I,B),F=!d.arrow&&fo(a)!=null&&I!==re&&o.reference[j]/2-(I<D?T:O)-b[j]/2<0,ne=F?I<D?I-D:I-B:0;return{[x]:v[x]+ne,data:{[x]:re,centerOffset:I-re-ne,...F&&{alignmentOffset:ne}},reset:F}}}),oR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:o,rects:i,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:b=!0,...w}=Cr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=kr(a),p=Xn(c),g=kr(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=v||(g||!b?[jd(c)]:YT(c)),k=j!=="none";!v&&k&&S.push(...eR(c,b,j,N));const _=[c,...S],C=await d.detectOverflow(t,w),R=[];let T=((s=o.flip)==null?void 0:s.overflows)||[];if(h&&R.push(C[y]),m){const I=GT(a,i,N);R.push(C[I[0]],C[I[1]])}if(T=[...T,{placement:a,overflows:R}],!R.every(I=>I<=0)){var O,D;const I=(((O=o.flip)==null?void 0:O.index)||0)+1,re=_[I];if(re&&(!(m==="alignment"?p!==Xn(re):!1)||T.every(A=>Xn(A.placement)===p?A.overflows[0]>0:!0)))return{data:{index:I,overflows:T},reset:{placement:re}};let F=(D=T.filter(ne=>ne.overflows[0]<=0).sort((ne,A)=>ne.overflows[1]-A.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(x){case"bestFit":{var B;const ne=(B=T.filter(A=>{if(k){const M=Xn(A.placement);return M===p||M==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(M=>M>0).reduce((M,Z)=>M+Z,0)]).sort((A,M)=>A[1]-M[1])[0])==null?void 0:B[0];ne&&(F=ne);break}case"initialPlacement":F=c;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function O0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I0(e){return KT.some(t=>e[t]>=0)}const iR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...o}=Cr(e,t);switch(a){case"referenceHidden":{const i=await s.detectOverflow(t,{...o,elementContext:"reference"}),c=O0(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:I0(c)}}}case"escaped":{const i=await s.detectOverflow(t,{...o,altBoundary:!0}),c=O0(i,n.floating);return{data:{escapedOffsets:c,escaped:I0(c)}}}default:return{}}}}},M0=new Set(["left","top"]);async function lR(e,t){const{placement:n,platform:s,elements:a}=e,o=await(s.isRTL==null?void 0:s.isRTL(a.floating)),i=kr(n),c=fo(n),d=Xn(n)==="y",u=M0.has(i)?-1:1,h=o&&d?-1:1,m=Cr(t,e);let{mainAxis:v,crossAxis:x,alignmentAxis:j}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof j=="number"&&(x=c==="end"?j*-1:j),d?{x:x*h,y:v*u}:{x:v*u,y:x*h}}const cR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:o,placement:i,middlewareData:c}=t,d=await lR(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:o+d.y,data:{...d,placement:i}}}}},dR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:o}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:y=>{let{x:p,y:g}=y;return{x:p,y:g}}},...u}=Cr(e,t),h={x:n,y:s},m=await o.detectOverflow(t,u),v=Xn(kr(a)),x=vh(v);let j=h[x],b=h[v];if(i){const y=x==="y"?"top":"left",p=x==="y"?"bottom":"right",g=j+m[y],N=j-m[p];j=gh(g,j,N)}if(c){const y=v==="y"?"top":"left",p=v==="y"?"bottom":"right",g=b+m[y],N=b-m[p];b=gh(g,b,N)}const w=d.fn({...t,[x]:j,[v]:b});return{...w,data:{x:w.x-n,y:w.y-s,enabled:{[x]:i,[v]:c}}}}}},uR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:o,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Cr(e,t),h={x:n,y:s},m=Xn(a),v=vh(m);let x=h[v],j=h[m];const b=Cr(c,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const g=v==="y"?"height":"width",N=o.reference[v]-o.floating[g]+w.mainAxis,S=o.reference[v]+o.reference[g]-w.mainAxis;x<N?x=N:x>S&&(x=S)}if(u){var y,p;const g=v==="y"?"width":"height",N=M0.has(kr(a)),S=o.reference[m]-o.floating[g]+(N&&((y=i.offset)==null?void 0:y[m])||0)+(N?0:w.crossAxis),k=o.reference[m]+o.reference[g]+(N?0:((p=i.offset)==null?void 0:p[m])||0)-(N?w.crossAxis:0);j<S?j=S:j>k&&(j=k)}return{[v]:x,[m]:j}}}},fR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:o,platform:i,elements:c}=t,{apply:d=()=>{},...u}=Cr(e,t),h=await i.detectOverflow(t,u),m=kr(a),v=fo(a),x=Xn(a)==="y",{width:j,height:b}=o.floating;let w,y;m==="top"||m==="bottom"?(w=m,y=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=m,w=v==="end"?"top":"bottom");const p=b-h.top-h.bottom,g=j-h.left-h.right,N=ms(b-h[w],p),S=ms(j-h[y],g),k=!t.middlewareData.shift;let _=N,C=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=g),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(_=p),k&&!v){const T=Jt(h.left,0),O=Jt(h.right,0),D=Jt(h.top,0),B=Jt(h.bottom,0);x?C=j-2*(T!==0||O!==0?T+O:Jt(h.left,h.right)):_=b-2*(D!==0||B!==0?D+B:Jt(h.top,h.bottom))}await d({...t,availableWidth:C,availableHeight:_});const R=await i.getDimensions(c.floating);return j!==R.width||b!==R.height?{reset:{rects:!0}}:{}}}};function Nd(){return typeof window!="undefined"}function mo(e){return D0(e)?(e.nodeName||"").toLowerCase():"#document"}function en(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(D0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function D0(e){return Nd()?e instanceof Node||e instanceof en(e).Node:!1}function Mn(e){return Nd()?e instanceof Element||e instanceof en(e).Element:!1}function Er(e){return Nd()?e instanceof HTMLElement||e instanceof en(e).HTMLElement:!1}function F0(e){return!Nd()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof en(e).ShadowRoot}function Xi(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=Dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function mR(e){return/^(table|td|th)$/.test(mo(e))}function Sd(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const hR=/transform|translate|scale|rotate|perspective|filter/,pR=/paint|layout|strict|content/,ia=e=>!!e&&e!=="none";let wh;function Nh(e){const t=Mn(e)?Dn(e):e;return ia(t.transform)||ia(t.translate)||ia(t.scale)||ia(t.rotate)||ia(t.perspective)||!Sh()&&(ia(t.backdropFilter)||ia(t.filter))||hR.test(t.willChange||"")||pR.test(t.contain||"")}function xR(e){let t=hs(e);for(;Er(t)&&!ho(t);){if(Nh(t))return t;if(Sd(t))return null;t=hs(t)}return null}function Sh(){return wh==null&&(wh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wh}function ho(e){return/^(html|body|#document)$/.test(mo(e))}function Dn(e){return en(e).getComputedStyle(e)}function Cd(e){return Mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hs(e){if(mo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||F0(e)&&e.host||Zn(e);return F0(t)?t.host:t}function L0(e){const t=hs(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&Xi(t)?t:L0(t)}function Zi(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=L0(e),o=a===((s=e.ownerDocument)==null?void 0:s.body),i=en(a);if(o){const c=Ch(i);return t.concat(i,i.visualViewport||[],Xi(a)?a:[],c&&n?Zi(c):[])}else return t.concat(a,Zi(a,[],n))}function Ch(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $0(e){const t=Dn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Er(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:s,c=yd(n)!==o||yd(s)!==i;return c&&(n=o,s=i),{width:n,height:s,$:c}}function kh(e){return Mn(e)?e:e.contextElement}function po(e){const t=kh(e);if(!Er(t))return Yn(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:o}=$0(t);let i=(o?yd(n.width):n.width)/s,c=(o?yd(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const gR=Yn(0);function z0(e){const t=en(e);return!Sh()||!t.visualViewport?gR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==en(e)?!1:t}function la(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=kh(e);let i=Yn(1);t&&(s?Mn(s)&&(i=po(s)):i=po(e));const c=vR(o,n,s)?z0(o):Yn(0);let d=(a.left+c.x)/i.x,u=(a.top+c.y)/i.y,h=a.width/i.x,m=a.height/i.y;if(o){const v=en(o),x=s&&Mn(s)?en(s):s;let j=v,b=Ch(j);for(;b&&s&&x!==j;){const w=po(b),y=b.getBoundingClientRect(),p=Dn(b),g=y.left+(b.clientLeft+parseFloat(p.paddingLeft))*w.x,N=y.top+(b.clientTop+parseFloat(p.paddingTop))*w.y;d*=w.x,u*=w.y,h*=w.x,m*=w.y,d+=g,u+=N,j=en(b),b=Ch(j)}}return wd({width:h,height:m,x:d,y:u})}function kd(e,t){const n=Cd(e).scrollLeft;return t?t.left+n:la(Zn(e)).left+n}function U0(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-kd(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function yR(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const o=a==="fixed",i=Zn(s),c=t?Sd(t.floating):!1;if(s===i||c&&o)return n;let d={scrollLeft:0,scrollTop:0},u=Yn(1);const h=Yn(0),m=Er(s);if((m||!m&&!o)&&((mo(s)!=="body"||Xi(i))&&(d=Cd(s)),m)){const x=la(s);u=po(s),h.x=x.x+s.clientLeft,h.y=x.y+s.clientTop}const v=i&&!m&&!o?U0(i,d):Yn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+v.x,y:n.y*u.y-d.scrollTop*u.y+h.y+v.y}}function bR(e){return Array.from(e.getClientRects())}function jR(e){const t=Zn(e),n=Cd(e),s=e.ownerDocument.body,a=Jt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=Jt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let i=-n.scrollLeft+kd(e);const c=-n.scrollTop;return Dn(s).direction==="rtl"&&(i+=Jt(t.clientWidth,s.clientWidth)-a),{width:a,height:o,x:i,y:c}}const B0=25;function wR(e,t){const n=en(e),s=Zn(e),a=n.visualViewport;let o=s.clientWidth,i=s.clientHeight,c=0,d=0;if(a){o=a.width,i=a.height;const h=Sh();(!h||h&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}const u=kd(s);if(u<=0){const h=s.ownerDocument,m=h.body,v=getComputedStyle(m),x=h.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,j=Math.abs(s.clientWidth-m.clientWidth-x);j<=B0&&(o-=j)}else u<=B0&&(o+=u);return{width:o,height:i,x:c,y:d}}function NR(e,t){const n=la(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,o=Er(e)?po(e):Yn(1),i=e.clientWidth*o.x,c=e.clientHeight*o.y,d=a*o.x,u=s*o.y;return{width:i,height:c,x:d,y:u}}function V0(e,t,n){let s;if(t==="viewport")s=wR(e,n);else if(t==="document")s=jR(Zn(e));else if(Mn(t))s=NR(t,n);else{const a=z0(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return wd(s)}function q0(e,t){const n=hs(e);return n===t||!Mn(n)||ho(n)?!1:Dn(n).position==="fixed"||q0(n,t)}function SR(e,t){const n=t.get(e);if(n)return n;let s=Zi(e,[],!1).filter(c=>Mn(c)&&mo(c)!=="body"),a=null;const o=Dn(e).position==="fixed";let i=o?hs(e):e;for(;Mn(i)&&!ho(i);){const c=Dn(i),d=Nh(i);!d&&c.position==="fixed"&&(a=null),(o?!d&&!a:!d&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Xi(i)&&!d&&q0(e,i))?s=s.filter(h=>h!==i):a=c,i=hs(i)}return t.set(e,s),s}function CR(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const i=[...n==="clippingAncestors"?Sd(t)?[]:SR(t,this._c):[].concat(n),s],c=V0(t,i[0],a);let d=c.top,u=c.right,h=c.bottom,m=c.left;for(let v=1;v<i.length;v++){const x=V0(t,i[v],a);d=Jt(x.top,d),u=ms(x.right,u),h=ms(x.bottom,h),m=Jt(x.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function kR(e){const{width:t,height:n}=$0(e);return{width:t,height:n}}function ER(e,t,n){const s=Er(t),a=Zn(t),o=n==="fixed",i=la(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=Yn(0);function u(){d.x=kd(a)}if(s||!s&&!o)if((mo(t)!=="body"||Xi(a))&&(c=Cd(t)),s){const x=la(t,!0,o,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else a&&u();o&&!s&&a&&u();const h=a&&!s&&!o?U0(a,c):Yn(0),m=i.left+c.scrollLeft-d.x-h.x,v=i.top+c.scrollTop-d.y-h.y;return{x:m,y:v,width:i.width,height:i.height}}function Eh(e){return Dn(e).position==="static"}function H0(e,t){if(!Er(e)||Dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zn(e)===n&&(n=n.ownerDocument.body),n}function W0(e,t){const n=en(e);if(Sd(e))return n;if(!Er(e)){let a=hs(e);for(;a&&!ho(a);){if(Mn(a)&&!Eh(a))return a;a=hs(a)}return n}let s=H0(e,t);for(;s&&mR(s)&&Eh(s);)s=H0(s,t);return s&&ho(s)&&Eh(s)&&!Nh(s)?n:s||xR(e)||n}const _R=async function(e){const t=this.getOffsetParent||W0,n=this.getDimensions,s=await n(e.floating);return{reference:ER(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function PR(e){return Dn(e).direction==="rtl"}const TR={convertOffsetParentRelativeRectToViewportRelativeRect:yR,getDocumentElement:Zn,getClippingRect:CR,getOffsetParent:W0,getElementRects:_R,getClientRects:bR,getDimensions:kR,getScale:po,isElement:Mn,isRTL:PR};function K0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function RR(e,t){let n=null,s;const a=Zn(e);function o(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const u=e.getBoundingClientRect(),{left:h,top:m,width:v,height:x}=u;if(c||t(),!v||!x)return;const j=bd(m),b=bd(a.clientWidth-(h+v)),w=bd(a.clientHeight-(m+x)),y=bd(h),g={rootMargin:-j+"px "+-b+"px "+-w+"px "+-y+"px",threshold:Jt(0,ms(1,d))||1};let N=!0;function S(k){const _=k[0].intersectionRatio;if(_!==d){if(!N)return i();_?i(!1,_):s=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!K0(u,e.getBoundingClientRect())&&i(),N=!1}try{n=new IntersectionObserver(S,{...g,root:a.ownerDocument})}catch(k){n=new IntersectionObserver(S,g)}n.observe(e)}return i(!0),o}function AR(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=kh(e),h=a||o?[...u?Zi(u):[],...t?Zi(t):[]]:[];h.forEach(y=>{a&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const m=u&&c?RR(u,n):null;let v=-1,x=null;i&&(x=new ResizeObserver(y=>{let[p]=y;p&&p.target===u&&x&&t&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var g;(g=x)==null||g.observe(t)})),n()}),u&&!d&&x.observe(u),t&&x.observe(t));let j,b=d?la(e):null;d&&w();function w(){const y=la(e);b&&!K0(b,y)&&n(),b=y,j=requestAnimationFrame(w)}return n(),()=>{var y;h.forEach(p=>{a&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),m==null||m(),(y=x)==null||y.disconnect(),x=null,d&&cancelAnimationFrame(j)}}const OR=cR,IR=dR,MR=oR,DR=fR,FR=iR,Q0=aR,LR=uR,$R=(e,t,n)=>{const s=new Map,a={platform:TR,...n},o={...a.platform,_c:s};return sR(e,t,{...a,platform:o})};var zR=typeof document!="undefined",UR=function(){},Ed=zR?f.useLayoutEffect:UR;function _d(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!_d(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const o=a[s];if(!(o==="_owner"&&e.$$typeof)&&!_d(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function G0(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y0(e,t){const n=G0(e);return Math.round(t*n)/n}function _h(e){const t=f.useRef(e);return Ed(()=>{t.current=e}),t}function BR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,x]=f.useState(s);_d(v,s)||x(s);const[j,b]=f.useState(null),[w,y]=f.useState(null),p=f.useCallback(A=>{A!==k.current&&(k.current=A,b(A))},[]),g=f.useCallback(A=>{A!==_.current&&(_.current=A,y(A))},[]),N=o||j,S=i||w,k=f.useRef(null),_=f.useRef(null),C=f.useRef(h),R=d!=null,T=_h(d),O=_h(a),D=_h(u),B=f.useCallback(()=>{if(!k.current||!_.current)return;const A={placement:t,strategy:n,middleware:v};O.current&&(A.platform=O.current),$R(k.current,_.current,A).then(M=>{const Z={...M,isPositioned:D.current!==!1};I.current&&!_d(C.current,Z)&&(C.current=Z,Zs.flushSync(()=>{m(Z)}))})},[v,t,n,O,D]);Ed(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[u]);const I=f.useRef(!1);Ed(()=>(I.current=!0,()=>{I.current=!1}),[]),Ed(()=>{if(N&&(k.current=N),S&&(_.current=S),N&&S){if(T.current)return T.current(N,S,B);B()}},[N,S,B,T,R]);const re=f.useMemo(()=>({reference:k,floating:_,setReference:p,setFloating:g}),[p,g]),F=f.useMemo(()=>({reference:N,floating:S}),[N,S]),ne=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!F.floating)return A;const M=Y0(F.floating,h.x),Z=Y0(F.floating,h.y);return c?{...A,transform:"translate("+M+"px, "+Z+"px)",...G0(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:Z}},[n,c,F.floating,h.x,h.y]);return f.useMemo(()=>({...h,update:B,refs:re,elements:F,floatingStyles:ne}),[h,B,re,F,ne])}const VR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:a}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?Q0({element:s.current,padding:a}).fn(n):{}:s?Q0({element:s,padding:a}).fn(n):{}}}},qR=(e,t)=>{const n=OR(e);return{name:n.name,fn:n.fn,options:[e,t]}},HR=(e,t)=>{const n=IR(e);return{name:n.name,fn:n.fn,options:[e,t]}},WR=(e,t)=>({fn:LR(e).fn,options:[e,t]}),KR=(e,t)=>{const n=MR(e);return{name:n.name,fn:n.fn,options:[e,t]}},QR=(e,t)=>{const n=DR(e);return{name:n.name,fn:n.fn,options:[e,t]}},GR=(e,t)=>{const n=FR(e);return{name:n.name,fn:n.fn,options:[e,t]}},YR=(e,t)=>{const n=VR(e);return{name:n.name,fn:n.fn,options:[e,t]}};var XR="Arrow",X0=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...o}=e;return r.jsx(ge.svg,{...o,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});X0.displayName=XR;var ZR=X0;function Pd(e){const[t,n]=f.useState(void 0);return ht(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,c;if("borderBoxSize"in o){const d=o.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Ph="Popper",[Z0,Td]=It(Ph),[JR,J0]=Z0(Ph),ej=e=>{const{__scopePopper:t,children:n}=e,[s,a]=f.useState(null);return r.jsx(JR,{scope:t,anchor:s,onAnchorChange:a,children:n})};ej.displayName=Ph;var tj="PopperAnchor",nj=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,o=J0(tj,n),i=f.useRef(null),c=Ie(t,i),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||i.current,u!==d.current&&o.onAnchorChange(d.current)}),s?null:r.jsx(ge.div,{...a,ref:c})});nj.displayName=tj;var Th="PopperContent",[e4,t4]=Z0(Th),rj=f.forwardRef((e,t)=>{var G,ve,L,me,U,he,Ae,He;const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:o="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:j,...b}=e,w=J0(Th,n),[y,p]=f.useState(null),g=Ie(t,ut=>p(ut)),[N,S]=f.useState(null),k=Pd(N),_=(G=k==null?void 0:k.width)!=null?G:0,C=(ve=k==null?void 0:k.height)!=null?ve:0,R=s+(o!=="center"?"-"+o:""),T=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},O=Array.isArray(u)?u:[u],D=O.length>0,B={padding:T,boundary:O.filter(r4),altBoundary:D},{refs:I,floatingStyles:re,placement:F,isPositioned:ne,middlewareData:A}=BR({strategy:"fixed",placement:R,whileElementsMounted:(...ut)=>AR(...ut,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[qR({mainAxis:a+C,alignmentAxis:i}),d&&HR({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?WR():void 0,...B}),d&&KR({...B}),QR({...B,apply:({elements:ut,rects:_t,availableWidth:cr,availableHeight:Rs})=>{const{width:zo,height:Sa}=_t.reference,on=ut.floating.style;on.setProperty("--radix-popper-available-width",`${cr}px`),on.setProperty("--radix-popper-available-height",`${Rs}px`),on.setProperty("--radix-popper-anchor-width",`${zo}px`),on.setProperty("--radix-popper-anchor-height",`${Sa}px`)}}),N&&YR({element:N,padding:c}),s4({arrowWidth:_,arrowHeight:C}),v&&GR({strategy:"referenceHidden",...B})]}),[M,Z]=oj(F),xe=gn(j);ht(()=>{ne&&(xe==null||xe())},[ne,xe]);const P=(L=A.arrow)==null?void 0:L.x,$=(me=A.arrow)==null?void 0:me.y,W=((U=A.arrow)==null?void 0:U.centerOffset)!==0,[oe,Se]=f.useState();return ht(()=>{y&&Se(window.getComputedStyle(y).zIndex)},[y]),r.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:ne?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(he=A.transformOrigin)==null?void 0:he.x,(Ae=A.transformOrigin)==null?void 0:Ae.y].join(" "),...((He=A.hide)==null?void 0:He.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(e4,{scope:n,placedSide:M,onArrowChange:S,arrowX:P,arrowY:$,shouldHideArrow:W,children:r.jsx(ge.div,{"data-side":M,"data-align":Z,...b,ref:g,style:{...b.style,animation:ne?void 0:"none"}})})})});rj.displayName=Th;var sj="PopperArrow",n4={top:"bottom",right:"left",bottom:"top",left:"right"},aj=f.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,o=t4(sj,s),i=n4[o.placedSide];return r.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:r.jsx(ZR,{...a,ref:n,style:{...a.style,display:"block"}})})});aj.displayName=sj;function r4(e){return e!==null}var s4=e=>({name:"transformOrigin",options:e,fn(t){var w,y,p,g,N;const{placement:n,rects:s,middlewareData:a}=t,i=((w=a.arrow)==null?void 0:w.centerOffset)!==0,c=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,h]=oj(n),m={start:"0%",center:"50%",end:"100%"}[h],v=((p=(y=a.arrow)==null?void 0:y.x)!=null?p:0)+c/2,x=((N=(g=a.arrow)==null?void 0:g.y)!=null?N:0)+d/2;let j="",b="";return u==="bottom"?(j=i?m:`${v}px`,b=`${-d}px`):u==="top"?(j=i?m:`${v}px`,b=`${s.floating.height+d}px`):u==="right"?(j=`${-d}px`,b=i?m:`${x}px`):u==="left"&&(j=`${s.floating.width+d}px`,b=i?m:`${x}px`),{data:{x:j,y:b}}}});function oj(e){const[t,n="center"]=e.split("-");return[t,n]}var ij=ej,lj=nj,cj=rj,dj=aj,a4=Symbol("radix.slottable");function o4(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=a4,t}var[Rd]=It("Tooltip",[Td]),Ad=Td(),uj="TooltipProvider",i4=700,Rh="tooltip.open",[l4,Ah]=Rd(uj),fj=e=>{const{__scopeTooltip:t,delayDuration:n=i4,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:o}=e,i=f.useRef(!0),c=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(l4,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,s)},[s]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:a,children:o})};fj.displayName=uj;var Ji="Tooltip",[c4,el]=Rd(Ji),mj=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:c}=e,d=Ah(Ji,e.__scopeTooltip),u=Ad(t),[h,m]=f.useState(null),v=In(),x=f.useRef(0),j=i!=null?i:d.disableHoverableContent,b=c!=null?c:d.delayDuration,w=f.useRef(!1),[y,p]=Zt({prop:s,defaultProp:a!=null?a:!1,onChange:_=>{_?(d.onOpen(),document.dispatchEvent(new CustomEvent(Rh))):d.onClose(),o==null||o(_)},caller:Ji}),g=f.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),N=f.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(x.current),x.current=0,p(!1)},[p]),k=f.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,p(!0),x.current=0},b)},[b,p]);return f.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),r.jsx(ij,{...u,children:r.jsx(c4,{scope:t,contentId:v,open:y,stateAttribute:g,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?k():N()},[d.isOpenDelayedRef,k,N]),onTriggerLeave:f.useCallback(()=>{j?S():(window.clearTimeout(x.current),x.current=0)},[S,j]),onOpen:N,onClose:S,disableHoverableContent:j,children:n})})};mj.displayName=Ji;var Oh="TooltipTrigger",hj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=el(Oh,n),o=Ah(Oh,n),i=Ad(n),c=f.useRef(null),d=Ie(t,c,a.onTriggerChange),u=f.useRef(!1),h=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),r.jsx(lj,{asChild:!0,...i,children:r.jsx(ge.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:d,onPointerMove:pe(e.onPointerMove,v=>{v.pointerType!=="touch"&&!h.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:pe(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:pe(e.onBlur,a.onClose),onClick:pe(e.onClick,a.onClose)})})});hj.displayName=Oh;var Ih="TooltipPortal",[d4,u4]=Rd(Ih,{forceMount:void 0}),pj=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:a}=e,o=el(Ih,t);return r.jsx(d4,{scope:t,forceMount:n,children:r.jsx(Tn,{present:n||o.open,children:r.jsx(Bi,{asChild:!0,container:a,children:s})})})};pj.displayName=Ih;var xo="TooltipContent",xj=f.forwardRef((e,t)=>{const n=u4(xo,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...o}=e,i=el(xo,e.__scopeTooltip);return r.jsx(Tn,{present:s||i.open,children:i.disableHoverableContent?r.jsx(gj,{side:a,...o,ref:t}):r.jsx(f4,{side:a,...o,ref:t})})}),f4=f.forwardRef((e,t)=>{const n=el(xo,e.__scopeTooltip),s=Ah(xo,e.__scopeTooltip),a=f.useRef(null),o=Ie(t,a),[i,c]=f.useState(null),{trigger:d,onClose:u}=n,h=a.current,{onPointerInTransitChange:m}=s,v=f.useCallback(()=>{c(null),m(!1)},[m]),x=f.useCallback((j,b)=>{const w=j.currentTarget,y={x:j.clientX,y:j.clientY},p=g4(y,w.getBoundingClientRect()),g=v4(y,p),N=y4(b.getBoundingClientRect()),S=j4([...g,...N]);c(S),m(!0)},[m]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(d&&h){const j=w=>x(w,h),b=w=>x(w,d);return d.addEventListener("pointerleave",j),h.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",j),h.removeEventListener("pointerleave",b)}}},[d,h,x,v]),f.useEffect(()=>{if(i){const j=b=>{const w=b.target,y={x:b.clientX,y:b.clientY},p=(d==null?void 0:d.contains(w))||(h==null?void 0:h.contains(w)),g=!b4(y,i);p?v():g&&(v(),u())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[d,h,i,u,v]),r.jsx(gj,{...e,ref:o})}),[m4,h4]=Rd(Ji,{isInside:!1}),p4=o4("TooltipContent"),gj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...c}=e,d=el(xo,n),u=Ad(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(Rh,h),()=>document.removeEventListener(Rh,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=v=>{const x=v.target;x!=null&&x.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Ui,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(cj,{"data-state":d.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(p4,{children:s}),r.jsx(m4,{scope:n,isInside:!0,children:r.jsx(z_,{id:d.contentId,role:"tooltip",children:a||s})})]})})});xj.displayName=xo;var vj="TooltipArrow",x4=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Ad(n);return h4(vj,n).isInside?null:r.jsx(dj,{...a,...s,ref:t})});x4.displayName=vj;function g4(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,s,a,o)){case o:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function v4(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function y4(e){const{top:t,right:n,bottom:s,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:s},{x:a,y:s}]}function b4(e,t){const{x:n,y:s}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o],d=t[i],u=c.x,h=c.y,m=d.x,v=d.y;h>s!=v>s&&n<(m-u)*(s-h)/(v-h)+u&&(a=!a)}return a}function j4(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),w4(t)}function w4(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var N4=fj,S4=mj,C4=hj,k4=pj,yj=xj;const bj=N4,E4=S4,_4=C4,jj=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(k4,{container:Yi(),children:r.jsx(yj,{ref:s,sideOffset:t,className:q("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",e),...n})}));jj.displayName=yj.displayName;const wj=f.createContext(void 0);function P4({children:e}){const t=kt(),n=!!t.isProInstalled,s=!!t.isProActive,a=n?s?"pro-active":"pro-no-license":"free";return r.jsx(wj.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:a},children:e})}function tl(){const e=f.useContext(wj);if(!e)throw new Error("usePro must be used within ProProvider");return e}var T4=Symbol.for("react.lazy"),Od=Dl[" use ".trim().toString()];function R4(e){return typeof e=="object"&&e!==null&&"then"in e}function Nj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===T4&&"_payload"in e&&R4(e._payload)}function Mh(e){const t=A4(e),n=f.forwardRef((s,a)=>{let{children:o,...i}=s;Nj(o)&&typeof Od=="function"&&(o=Od(o._payload));const c=f.Children.toArray(o),d=c.find(I4);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var ca=Mh("Slot");function A4(e){const t=f.forwardRef((n,s)=>{let{children:a,...o}=n;if(Nj(a)&&typeof Od=="function"&&(a=Od(a._payload)),f.isValidElement(a)){const i=D4(a),c=M4(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O4=Symbol("radix.slottable");function I4(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O4}function M4(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function D4(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Dh=768;function F4(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Dh-1}px)`),s=()=>{t(window.innerWidth<Dh)};return n.addEventListener("change",s),t(window.innerWidth<Dh),()=>n.removeEventListener("change",s)},[]),!!e}const Fh=ao("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",upgrade:"bg-success text-success-foreground hover:bg-success/90 font-semibold shadow-sm"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),V=f.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...a},o)=>{const i=s?ca:"button";return r.jsx(i,{className:q(Fh({variant:t,size:n,className:e})),ref:o,...a})});V.displayName="Button";const Pe=f.forwardRef(({className:e,type:t,...n},s)=>r.jsx("input",{type:t,className:q("flex h-10 w-full rounded-md border border-input bg-card px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors hover:border-foreground/30",e),ref:s,...n}));Pe.displayName="Input";var L4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$4=L4.reduce((e,t)=>{const n=Mh(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),z4="Separator",Sj="horizontal",U4=["horizontal","vertical"],Cj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=Sj,...a}=e,o=B4(s)?s:Sj,c=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return r.jsx($4.div,{"data-orientation":o,...c,...a,ref:t})});Cj.displayName=z4;function B4(e){return U4.includes(e)}var kj=Cj;const nl=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},a)=>r.jsx(kj,{ref:a,decorative:n,orientation:t,className:q("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));nl.displayName=kj.displayName;var Lh="focusScope.autoFocusOnMount",$h="focusScope.autoFocusOnUnmount",Ej={bubbles:!1,cancelable:!0},V4="FocusScope",zh=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[c,d]=f.useState(null),u=gn(a),h=gn(o),m=f.useRef(null),v=Ie(t,b=>d(b)),x=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let b=function(g){if(x.paused||!c)return;const N=g.target;c.contains(N)?m.current=N:ps(m.current,{select:!0})},w=function(g){if(x.paused||!c)return;const N=g.relatedTarget;N!==null&&(c.contains(N)||ps(m.current,{select:!0}))},y=function(g){if(document.activeElement===document.body)for(const S of g)S.removedNodes.length>0&&ps(c)};document.addEventListener("focusin",b),document.addEventListener("focusout",w);const p=new MutationObserver(y);return c&&p.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",w),p.disconnect()}}},[s,c,x.paused]),f.useEffect(()=>{if(c){Tj.add(x);const b=document.activeElement;if(!c.contains(b)){const y=new CustomEvent(Lh,Ej);c.addEventListener(Lh,u),c.dispatchEvent(y),y.defaultPrevented||(q4(G4(_j(c)),{select:!0}),document.activeElement===b&&ps(c))}return()=>{c.removeEventListener(Lh,u),setTimeout(()=>{const y=new CustomEvent($h,Ej);c.addEventListener($h,h),c.dispatchEvent(y),y.defaultPrevented||ps(b!=null?b:document.body,{select:!0}),c.removeEventListener($h,h),Tj.remove(x)},0)}}},[c,u,h,x]);const j=f.useCallback(b=>{if(!n&&!s||x.paused)return;const w=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,y=document.activeElement;if(w&&y){const p=b.currentTarget,[g,N]=H4(p);g&&N?!b.shiftKey&&y===N?(b.preventDefault(),n&&ps(g,{select:!0})):b.shiftKey&&y===g&&(b.preventDefault(),n&&ps(N,{select:!0})):y===p&&b.preventDefault()}},[n,s,x.paused]);return r.jsx(ge.div,{tabIndex:-1,...i,ref:v,onKeyDown:j})});zh.displayName=V4;function q4(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(ps(s,{select:t}),document.activeElement!==n)return}function H4(e){const t=_j(e),n=Pj(t,e),s=Pj(t.reverse(),e);return[n,s]}function _j(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pj(e,t){for(const n of e)if(!W4(n,{upTo:t}))return n}function W4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function K4(e){return e instanceof HTMLInputElement&&"select"in e}function ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&K4(e)&&t&&e.select()}}var Tj=Q4();function Q4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rj(e,t),e.unshift(t)},remove(t){var n;e=Rj(e,t),(n=e[0])==null||n.resume()}}}function Rj(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function G4(e){return e.filter(t=>t.tagName!=="A")}var Uh=0;function Aj(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:Oj()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:Oj()),Uh++,()=>{Uh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),Uh--}},[])}function Oj(){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 Jn=function(){return Jn=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Jn.apply(this,arguments)};function Ij(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]]);return n}function Y4(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,o;s<a;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Id="right-scroll-bar-position",Md="width-before-scroll-bar",X4="with-scroll-bars-hidden",Z4="--removed-body-scroll-bar-size";function Bh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function J4(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var a=n.value;a!==s&&(n.value=s,n.callback(s,a))}}}})[0];return n.callback=t,n.facade}var eA=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,Mj=new WeakMap;function tA(e,t){var n=J4(null,function(s){return e.forEach(function(a){return Bh(a,s)})});return eA(function(){var s=Mj.get(n);if(s){var a=new Set(s),o=new Set(e),i=n.current;a.forEach(function(c){o.has(c)||Bh(c,null)}),o.forEach(function(c){a.has(c)||Bh(c,i)})}Mj.set(n,e)},[e]),n}function nA(e){return e}function rA(e,t){t===void 0&&(t=nA);var n=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,s);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(o){for(s=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){s=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(o),i=n}var d=function(){var h=i;i=[],h.forEach(o)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){i.push(h),u()},filter:function(h){return i=i.filter(h),n}}}};return a}function sA(e){e===void 0&&(e={});var t=rA(null);return t.options=Jn({async:!0,ssr:!1},e),t}var Dj=function(e){var t=e.sideCar,n=Ij(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return f.createElement(s,Jn({},n))};Dj.isSideCarExport=!0;function aA(e,t){return e.useMedium(t),Dj}var Fj=sA(),Vh=function(){},Dd=f.forwardRef(function(e,t){var n=f.useRef(null),s=f.useState({onScrollCapture:Vh,onWheelCapture:Vh,onTouchMoveCapture:Vh}),a=s[0],o=s[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,v=e.sideCar,x=e.noRelative,j=e.noIsolation,b=e.inert,w=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,g=e.gapMode,N=Ij(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,k=tA([n,t]),_=Jn(Jn({},N),a);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:Fj,removeScrollBar:u,shards:m,noRelative:x,noIsolation:j,inert:b,setCallbacks:o,allowPinchZoom:!!w,lockRef:n,gapMode:g}),i?f.cloneElement(f.Children.only(c),Jn(Jn({},_),{ref:k})):f.createElement(p,Jn({},_,{className:d,ref:k}),c))});Dd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Dd.classNames={fullWidth:Md,zeroRight:Id};var oA=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function iA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oA();return t&&e.setAttribute("nonce",t),e}function lA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iA())&&(lA(t,n),cA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uA=function(){var e=dA();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lj=function(){var e=uA(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},fA={left:0,top:0,right:0,gap:0},qh=function(e){return parseInt(e||"",10)||0},mA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[qh(n),qh(s),qh(a)]},hA=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return fA;var t=mA(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},pA=Lj(),go="data-scroll-locked",xA=function(e,t,n,s){var a=e.left,o=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),` | |
| 421 | + .`.concat(X4,` { | |
| 437 | 422 | overflow: hidden `).concat(s,`; |
| 438 | 423 | padding-right: `).concat(c,"px ").concat(s,`; |
| 439 | 424 | } |
| 440 | 425 | body[`).concat(go,`] { |
| @@ -449,48 +434,48 @@ | ||
| 449 | 434 | margin-right: `).concat(c,"px ").concat(s,`; |
| 450 | 435 | `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),` |
| 451 | 436 | } |
| 452 | 437 | |
| 453 | - .`).concat(Md,` { | |
| 438 | + .`).concat(Id,` { | |
| 454 | 439 | right: `).concat(c,"px ").concat(s,`; |
| 455 | 440 | } |
| 456 | 441 | |
| 457 | - .`).concat(Dd,` { | |
| 442 | + .`).concat(Md,` { | |
| 458 | 443 | margin-right: `).concat(c,"px ").concat(s,`; |
| 459 | 444 | } |
| 460 | 445 | |
| 461 | - .`).concat(Md," .").concat(Md,` { | |
| 446 | + .`).concat(Id," .").concat(Id,` { | |
| 462 | 447 | right: 0 `).concat(s,`; |
| 463 | 448 | } |
| 464 | 449 | |
| 465 | - .`).concat(Dd," .").concat(Dd,` { | |
| 450 | + .`).concat(Md," .").concat(Md,` { | |
| 466 | 451 | margin-right: 0 `).concat(s,`; |
| 467 | 452 | } |
| 468 | 453 | |
| 469 | 454 | body[`).concat(go,`] { |
| 470 | - `).concat(dA,": ").concat(c,`px; | |
| 455 | + `).concat(Z4,": ").concat(c,`px; | |
| 471 | 456 | } |
| 472 | -`)},Gj=function(){var e=parseInt(document.body.getAttribute(go)||"0",10);return isFinite(e)?e:0},PA=function(){f.useEffect(function(){return document.body.setAttribute(go,(Gj()+1).toString()),function(){var e=Gj()-1;e<=0?document.body.removeAttribute(go):document.body.setAttribute(go,e.toString())}},[])},TA=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;PA();var o=f.useMemo(function(){return kA(a)},[a]);return f.createElement(EA,{styles:_A(o,!t,a,n?"":"!important")})},Yh=!1;if(typeof window!="undefined")try{var Ld=Object.defineProperty({},"passive",{get:function(){return Yh=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch(e){Yh=!1}var vo=Yh?{passive:!1}:!1,RA=function(e){return e.tagName==="TEXTAREA"},Yj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!RA(e)&&n[t]==="visible")},AA=function(e){return Yj(e,"overflowY")},OA=function(e){return Yj(e,"overflowX")},Xj=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var a=Zj(e,s);if(a){var o=Jj(e,s),i=o[1],c=o[2];if(i>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},IA=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},MA=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Zj=function(e,t){return e==="v"?AA(t):OA(t)},Jj=function(e,t){return e==="v"?IA(t):MA(t)},DA=function(e,t){return e==="h"&&t==="rtl"?-1:1},FA=function(e,t,n,s,a){var o=DA(e,window.getComputedStyle(t).direction),i=o*s,c=n.target,d=t.contains(c),u=!1,h=i>0,m=0,b=0;do{if(!c)break;var v=Jj(e,c),w=v[0],g=v[1],j=v[2],y=g-j-o*w;(w||y)&&Zj(e,c)&&(m+=y,b+=w);var p=c.parentNode;c=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(b)<1)&&(u=!0),u},$d=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ew=function(e){return[e.deltaX,e.deltaY]},tw=function(e){return e&&"current"in e?e.current:e},LA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$A=function(e){return` | |
| 457 | +`)},$j=function(){var e=parseInt(document.body.getAttribute(go)||"0",10);return isFinite(e)?e:0},gA=function(){f.useEffect(function(){return document.body.setAttribute(go,($j()+1).toString()),function(){var e=$j()-1;e<=0?document.body.removeAttribute(go):document.body.setAttribute(go,e.toString())}},[])},vA=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;gA();var o=f.useMemo(function(){return hA(a)},[a]);return f.createElement(pA,{styles:xA(o,!t,a,n?"":"!important")})},Hh=!1;if(typeof window!="undefined")try{var Fd=Object.defineProperty({},"passive",{get:function(){return Hh=!0,!0}});window.addEventListener("test",Fd,Fd),window.removeEventListener("test",Fd,Fd)}catch(e){Hh=!1}var vo=Hh?{passive:!1}:!1,yA=function(e){return e.tagName==="TEXTAREA"},zj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yA(e)&&n[t]==="visible")},bA=function(e){return zj(e,"overflowY")},jA=function(e){return zj(e,"overflowX")},Uj=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var a=Bj(e,s);if(a){var o=Vj(e,s),i=o[1],c=o[2];if(i>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},wA=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},NA=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Bj=function(e,t){return e==="v"?bA(t):jA(t)},Vj=function(e,t){return e==="v"?wA(t):NA(t)},SA=function(e,t){return e==="h"&&t==="rtl"?-1:1},CA=function(e,t,n,s,a){var o=SA(e,window.getComputedStyle(t).direction),i=o*s,c=n.target,d=t.contains(c),u=!1,h=i>0,m=0,v=0;do{if(!c)break;var x=Vj(e,c),j=x[0],b=x[1],w=x[2],y=b-w-o*j;(j||y)&&Bj(e,c)&&(m+=y,v+=j);var p=c.parentNode;c=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(v)<1)&&(u=!0),u},Ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qj=function(e){return[e.deltaX,e.deltaY]},Hj=function(e){return e&&"current"in e?e.current:e},kA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EA=function(e){return` | |
| 473 | 458 | .block-interactivity-`.concat(e,` {pointer-events: none;} |
| 474 | 459 | .allow-interactivity-`).concat(e,` {pointer-events: all;} |
| 475 | -`)},zA=0,yo=[];function UA(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),a=f.useState(zA++)[0],o=f.useState(Qj)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=lA([e.lockRef.current],(e.shards||[]).map(tw),!0).filter(Boolean);return g.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(g,j){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var y=$d(g),p=n.current,x="deltaX"in g?g.deltaX:p[0]-y[0],N="deltaY"in g?g.deltaY:p[1]-y[1],S,C=g.target,E=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&E==="h"&&C.type==="range")return!1;var k=window.getSelection(),R=k&&k.anchorNode,T=R?R===C||R.contains(C):!1;if(T)return!1;var O=Xj(E,C);if(!O)return!0;if(O?S=E:(S=E==="v"?"h":"v",O=Xj(E,C)),!O)return!1;if(!s.current&&"changedTouches"in g&&(x||N)&&(s.current=S),!S)return!0;var F=s.current||S;return FA(F,j,g,F==="h"?x:N)},[]),d=f.useCallback(function(g){var j=g;if(!(!yo.length||yo[yo.length-1]!==o)){var y="deltaY"in j?ew(j):$d(j),p=t.current.filter(function(S){return S.name===j.type&&(S.target===j.target||j.target===S.shadowParent)&&LA(S.delta,y)})[0];if(p&&p.should){j.cancelable&&j.preventDefault();return}if(!p){var x=(i.current.shards||[]).map(tw).filter(Boolean).filter(function(S){return S.contains(j.target)}),N=x.length>0?c(j,x[0]):!i.current.noIsolation;N&&j.cancelable&&j.preventDefault()}}},[]),u=f.useCallback(function(g,j,y,p){var x={name:g,delta:j,target:y,should:p,shadowParent:BA(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),h=f.useCallback(function(g){n.current=$d(g),s.current=void 0},[]),m=f.useCallback(function(g){u(g.type,ew(g),g.target,c(g,e.lockRef.current))},[]),b=f.useCallback(function(g){u(g.type,$d(g),g.target,c(g,e.lockRef.current))},[]);f.useEffect(function(){return yo.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:b}),document.addEventListener("wheel",d,vo),document.addEventListener("touchmove",d,vo),document.addEventListener("touchstart",h,vo),function(){yo=yo.filter(function(g){return g!==o}),document.removeEventListener("wheel",d,vo),document.removeEventListener("touchmove",d,vo),document.removeEventListener("touchstart",h,vo)}},[]);var v=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(o,{styles:$A(a)}):null,v?f.createElement(TA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const VA=gA(Kj,UA);var Xh=f.forwardRef(function(e,t){return f.createElement(Fd,er({},e,{ref:t,sideCar:VA}))});Xh.classNames=Fd.classNames;var HA=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bo=new WeakMap,zd=new WeakMap,Ud={},Zh=0,nw=function(e){return e&&(e.host||nw(e.parentNode))},WA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=nw(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qA=function(e,t,n,s){var a=WA(t,Array.isArray(e)?e:[e]);Ud[n]||(Ud[n]=new WeakMap);var o=Ud[n],i=[],c=new Set,d=new Set(a),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};a.forEach(u);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(b){if(c.has(b))h(b);else try{var v=b.getAttribute(s),w=v!==null&&v!=="false",g=(bo.get(b)||0)+1,j=(o.get(b)||0)+1;bo.set(b,g),o.set(b,j),i.push(b),g===1&&w&&zd.set(b,!0),j===1&&b.setAttribute(n,"true"),w||b.setAttribute(s,"true")}catch(y){console.error("aria-hidden: cannot operate on ",b,y)}})};return h(t),c.clear(),Zh++,function(){i.forEach(function(m){var b=bo.get(m)-1,v=o.get(m)-1;bo.set(m,b),o.set(m,v),b||(zd.has(m)||m.removeAttribute(s),zd.delete(m)),v||m.removeAttribute(n)}),Zh--,Zh||(bo=new WeakMap,bo=new WeakMap,zd=new WeakMap,Ud={})}},rw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=HA(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),qA(s,a,n,"aria-hidden")):function(){return null}};function KA(e){const t=QA(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(YA);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function QA(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=ZA(a),c=XA(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GA=Symbol("radix.slottable");function YA(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GA}function XA(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function ZA(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bd="Dialog",[sw,aw]=Mt(Bd),[JA,Ln]=sw(Bd),ow=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,c=f.useRef(null),d=f.useRef(null),[u,h]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:Bd});return r.jsx(JA,{scope:t,triggerRef:c,contentRef:d,contentId:Mn(),titleId:Mn(),descriptionId:Mn(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:i,children:n})};ow.displayName=Bd;var iw="DialogTrigger",lw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(iw,n),o=Me(t,a.triggerRef);return r.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tp(a.open),...s,ref:o,onClick:he(e.onClick,a.onOpenToggle)})});lw.displayName=iw;var Jh="DialogPortal",[e5,cw]=sw(Jh,{forceMount:void 0}),dw=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:a}=e,o=Ln(Jh,t);return r.jsx(e5,{scope:t,forceMount:n,children:f.Children.map(s,i=>r.jsx(Rn,{present:n||o.open,children:r.jsx(Vi,{asChild:!0,container:a,children:i})}))})};dw.displayName=Jh;var Vd="DialogOverlay",uw=f.forwardRef((e,t)=>{const n=cw(Vd,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,o=Ln(Vd,e.__scopeDialog);return o.modal?r.jsx(Rn,{present:s||o.open,children:r.jsx(n5,{...a,ref:t})}):null});uw.displayName=Vd;var t5=KA("DialogOverlay.RemoveScroll"),n5=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(Vd,n);return r.jsx(Xh,{as:t5,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(xe.div,{"data-state":tp(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),da="DialogContent",fw=f.forwardRef((e,t)=>{const n=cw(da,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,o=Ln(da,e.__scopeDialog);return r.jsx(Rn,{present:s||o.open,children:o.modal?r.jsx(r5,{...a,ref:t}):r.jsx(s5,{...a,ref:t})})});fw.displayName=da;var r5=f.forwardRef((e,t)=>{const n=Ln(da,e.__scopeDialog),s=f.useRef(null),a=Me(t,n.contentRef,s);return f.useEffect(()=>{const o=s.current;if(o)return rw(o)},[]),r.jsx(mw,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&o.preventDefault()}),onFocusOutside:he(e.onFocusOutside,o=>o.preventDefault())})}),s5=f.forwardRef((e,t)=>{const n=Ln(da,e.__scopeDialog),s=f.useRef(!1),a=f.useRef(!1);return r.jsx(mw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:o=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),mw=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,c=Ln(da,n),d=f.useRef(null),u=Me(t,d);return Bj(),r.jsxs(r.Fragment,{children:[r.jsx(Wh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:o,children:r.jsx(Bi,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":tp(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(o5,{titleId:c.titleId}),r.jsx(l5,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ep="DialogTitle",hw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(ep,n);return r.jsx(xe.h2,{id:a.titleId,...s,ref:t})});hw.displayName=ep;var pw="DialogDescription",xw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(pw,n);return r.jsx(xe.p,{id:a.descriptionId,...s,ref:t})});xw.displayName=pw;var gw="DialogClose",vw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(gw,n);return r.jsx(xe.button,{type:"button",...s,ref:t,onClick:he(e.onClick,()=>a.onOpenChange(!1))})});vw.displayName=gw;function tp(e){return e?"open":"closed"}var yw="DialogTitleWarning",[a5,bw]=b_(yw,{contentName:da,titleName:ep,docsSlug:"dialog"}),o5=({titleId:e})=>{const t=bw(yw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. | |
| 460 | +`)},_A=0,yo=[];function PA(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),a=f.useState(_A++)[0],o=f.useState(Lj)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=Y4([e.lockRef.current],(e.shards||[]).map(Hj),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(b,w){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!i.current.allowPinchZoom;var y=Ld(b),p=n.current,g="deltaX"in b?b.deltaX:p[0]-y[0],N="deltaY"in b?b.deltaY:p[1]-y[1],S,k=b.target,_=Math.abs(g)>Math.abs(N)?"h":"v";if("touches"in b&&_==="h"&&k.type==="range")return!1;var C=window.getSelection(),R=C&&C.anchorNode,T=R?R===k||R.contains(k):!1;if(T)return!1;var O=Uj(_,k);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=Uj(_,k)),!O)return!1;if(!s.current&&"changedTouches"in b&&(g||N)&&(s.current=S),!S)return!0;var D=s.current||S;return CA(D,w,b,D==="h"?g:N)},[]),d=f.useCallback(function(b){var w=b;if(!(!yo.length||yo[yo.length-1]!==o)){var y="deltaY"in w?qj(w):Ld(w),p=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&kA(S.delta,y)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var g=(i.current.shards||[]).map(Hj).filter(Boolean).filter(function(S){return S.contains(w.target)}),N=g.length>0?c(w,g[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),u=f.useCallback(function(b,w,y,p){var g={name:b,delta:w,target:y,should:p,shadowParent:TA(y)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(N){return N!==g})},1)},[]),h=f.useCallback(function(b){n.current=Ld(b),s.current=void 0},[]),m=f.useCallback(function(b){u(b.type,qj(b),b.target,c(b,e.lockRef.current))},[]),v=f.useCallback(function(b){u(b.type,Ld(b),b.target,c(b,e.lockRef.current))},[]);f.useEffect(function(){return yo.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,vo),document.addEventListener("touchmove",d,vo),document.addEventListener("touchstart",h,vo),function(){yo=yo.filter(function(b){return b!==o}),document.removeEventListener("wheel",d,vo),document.removeEventListener("touchmove",d,vo),document.removeEventListener("touchstart",h,vo)}},[]);var x=e.removeScrollBar,j=e.inert;return f.createElement(f.Fragment,null,j?f.createElement(o,{styles:EA(a)}):null,x?f.createElement(vA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function TA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const RA=aA(Fj,PA);var Wh=f.forwardRef(function(e,t){return f.createElement(Dd,Jn({},e,{ref:t,sideCar:RA}))});Wh.classNames=Dd.classNames;var AA=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bo=new WeakMap,$d=new WeakMap,zd={},Kh=0,Wj=function(e){return e&&(e.host||Wj(e.parentNode))},OA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Wj(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},IA=function(e,t,n,s){var a=OA(t,Array.isArray(e)?e:[e]);zd[n]||(zd[n]=new WeakMap);var o=zd[n],i=[],c=new Set,d=new Set(a),u=function(m){!m||c.has(m)||(c.add(m),u(m.parentNode))};a.forEach(u);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(c.has(v))h(v);else try{var x=v.getAttribute(s),j=x!==null&&x!=="false",b=(bo.get(v)||0)+1,w=(o.get(v)||0)+1;bo.set(v,b),o.set(v,w),i.push(v),b===1&&j&&$d.set(v,!0),w===1&&v.setAttribute(n,"true"),j||v.setAttribute(s,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return h(t),c.clear(),Kh++,function(){i.forEach(function(m){var v=bo.get(m)-1,x=o.get(m)-1;bo.set(m,v),o.set(m,x),v||($d.has(m)||m.removeAttribute(s),$d.delete(m)),x||m.removeAttribute(n)}),Kh--,Kh||(bo=new WeakMap,bo=new WeakMap,$d=new WeakMap,zd={})}},Kj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=AA(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),IA(s,a,n,"aria-hidden")):function(){return null}};function MA(e){const t=DA(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(LA);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function DA(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=zA(a),c=$A(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FA=Symbol("radix.slottable");function LA(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FA}function $A(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function zA(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ud="Dialog",[Qj,Gj]=It(Ud),[UA,Fn]=Qj(Ud),Yj=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,c=f.useRef(null),d=f.useRef(null),[u,h]=Zt({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:Ud});return r.jsx(UA,{scope:t,triggerRef:c,contentRef:d,contentId:In(),titleId:In(),descriptionId:In(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:i,children:n})};Yj.displayName=Ud;var Xj="DialogTrigger",Zj=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Fn(Xj,n),o=Ie(t,a.triggerRef);return r.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Yh(a.open),...s,ref:o,onClick:pe(e.onClick,a.onOpenToggle)})});Zj.displayName=Xj;var Qh="DialogPortal",[BA,Jj]=Qj(Qh,{forceMount:void 0}),ew=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:a}=e,o=Fn(Qh,t);return r.jsx(BA,{scope:t,forceMount:n,children:f.Children.map(s,i=>r.jsx(Tn,{present:n||o.open,children:r.jsx(Bi,{asChild:!0,container:a,children:i})}))})};ew.displayName=Qh;var Bd="DialogOverlay",tw=f.forwardRef((e,t)=>{const n=Jj(Bd,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,o=Fn(Bd,e.__scopeDialog);return o.modal?r.jsx(Tn,{present:s||o.open,children:r.jsx(qA,{...a,ref:t})}):null});tw.displayName=Bd;var VA=MA("DialogOverlay.RemoveScroll"),qA=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Fn(Bd,n);return r.jsx(Wh,{as:VA,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(ge.div,{"data-state":Yh(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),da="DialogContent",nw=f.forwardRef((e,t)=>{const n=Jj(da,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,o=Fn(da,e.__scopeDialog);return r.jsx(Tn,{present:s||o.open,children:o.modal?r.jsx(HA,{...a,ref:t}):r.jsx(WA,{...a,ref:t})})});nw.displayName=da;var HA=f.forwardRef((e,t)=>{const n=Fn(da,e.__scopeDialog),s=f.useRef(null),a=Ie(t,n.contentRef,s);return f.useEffect(()=>{const o=s.current;if(o)return Kj(o)},[]),r.jsx(rw,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&o.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,o=>o.preventDefault())})}),WA=f.forwardRef((e,t)=>{const n=Fn(da,e.__scopeDialog),s=f.useRef(!1),a=f.useRef(!1);return r.jsx(rw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:o=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(s.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),rw=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,c=Fn(da,n),d=f.useRef(null),u=Ie(t,d);return Aj(),r.jsxs(r.Fragment,{children:[r.jsx(zh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:o,children:r.jsx(Ui,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Yh(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(QA,{titleId:c.titleId}),r.jsx(YA,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Gh="DialogTitle",sw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Fn(Gh,n);return r.jsx(ge.h2,{id:a.titleId,...s,ref:t})});sw.displayName=Gh;var aw="DialogDescription",ow=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Fn(aw,n);return r.jsx(ge.p,{id:a.descriptionId,...s,ref:t})});ow.displayName=aw;var iw="DialogClose",lw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Fn(iw,n);return r.jsx(ge.button,{type:"button",...s,ref:t,onClick:pe(e.onClick,()=>a.onOpenChange(!1))})});lw.displayName=iw;function Yh(e){return e?"open":"closed"}var cw="DialogTitleWarning",[KA,dw]=c_(cw,{contentName:da,titleName:Gh,docsSlug:"dialog"}),QA=({titleId:e})=>{const t=dw(cw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. | |
| 476 | 461 | |
| 477 | 462 | If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. |
| 478 | 463 | |
| 479 | -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},i5="DialogDescriptionWarning",l5=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bw(i5).contentName}}.`;return f.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},np=ow,c5=lw,rp=dw,sl=uw,al=fw,ol=hw,il=xw,Hd=vw;const d5=np,jw=({container:e,...t})=>r.jsx(rp,{container:e!=null?e:Zi(),...t});jw.displayName="SheetPortal";const ww=f.forwardRef(({className:e,...t},n)=>r.jsx(sl,{className:V("fixed inset-0 z-50 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",e),...t,ref:n}));ww.displayName=sl.displayName;const u5=ao("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Nw=f.forwardRef(({side:e="right",className:t,children:n,...s},a)=>r.jsxs(jw,{children:[r.jsx(ww,{}),r.jsxs(al,{ref:a,className:V(u5({side:e}),t),...s,children:[n,r.jsxs(Hd,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(gd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nw.displayName=al.displayName;const f5=f.forwardRef(({className:e,...t},n)=>r.jsx(ol,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));f5.displayName=ol.displayName;const m5=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));m5.displayName=il.displayName;function ae({className:e,...t}){return r.jsx("div",{className:V("animate-pulse rounded-md bg-muted",e),...t})}const h5="sidebar:state",p5=60*60*24*7,x5="16rem",g5="18rem",v5="3rem",y5="b",Sw=f.createContext(null);function ll(){const e=f.useContext(Sw);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Cw=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:a,children:o,...i},c)=>{const d=G4(),[u,h]=f.useState(!1),[m,b]=f.useState(e),v=t!=null?t:m,w=f.useCallback(p=>{const x=typeof p=="function"?p(v):p;n?n(x):b(x),document.cookie=`${h5}=${x}; path=/; max-age=${p5}`},[n,v]),g=f.useCallback(()=>d?h(p=>!p):w(p=>!p),[d,w,h]);f.useEffect(()=>{const p=x=>{x.key===y5&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[g]);const j=v?"expanded":"collapsed",y=f.useMemo(()=>({state:j,open:v,setOpen:w,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:g}),[j,v,w,d,u,h,g]);return r.jsx(Sw.Provider,{value:y,children:r.jsx(Tj,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":x5,"--sidebar-width-icon":v5,...a},className:V("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:c,...i,children:o})})})});Cw.displayName="SidebarProvider";const kw=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:a,...o},i)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:h}=ll();return n==="none"?r.jsx("div",{className:V("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:i,...o,children:a}):c?r.jsx(d5,{open:u,onOpenChange:h,...o,children:r.jsx(Nw,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":g5},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):r.jsx("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:r.jsx("div",{className:V("sticky top-0 z-10 hidden h-[calc(100svh-var(--wp-admin--admin-bar--height,32px))] w-[--sidebar-width] shrink-0 transition-[width] duration-200 ease-linear md:flex","group-data-[collapsible=offcanvas]:w-0 group-data-[collapsible=offcanvas]:overflow-hidden",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...o,children:r.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})})});kw.displayName="Sidebar";const Ew=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:a}=ll();return r.jsxs(U,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:V("h-7 w-7",e),onClick:o=>{t==null||t(o),a()},...n,children:[r.jsx(MP,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ew.displayName="SidebarTrigger";const b5=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=ll();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:V("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});b5.displayName="SidebarRail";const j5=f.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:V("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));j5.displayName="SidebarInset";const w5=f.forwardRef(({className:e,...t},n)=>r.jsx(Re,{ref:n,"data-sidebar":"input",className:V("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));w5.displayName="SidebarInput";const _w=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:V("flex flex-col gap-2 p-2",e),...t}));_w.displayName="SidebarHeader";const Pw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:V("flex flex-col gap-2 p-2",e),...t}));Pw.displayName="SidebarFooter";const N5=f.forwardRef(({className:e,...t},n)=>r.jsx(rl,{ref:n,"data-sidebar":"separator",className:V("mx-2 w-auto bg-sidebar-border",e),...t}));N5.displayName="SidebarSeparator";const Tw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:V("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Tw.displayName="SidebarContent";const sp=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:V("relative flex w-full min-w-0 flex-col p-2",e),...t}));sp.displayName="SidebarGroup";const ap=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ca:"div";return r.jsx(a,{ref:s,"data-sidebar":"group-label",className:V("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});ap.displayName="SidebarGroupLabel";const S5=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ca:"button";return r.jsx(a,{ref:s,"data-sidebar":"group-action",className:V("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});S5.displayName="SidebarGroupAction";const op=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:V("w-full text-sm",e),...t}));op.displayName="SidebarGroupContent";const ip=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:V("flex w-full min-w-0 flex-col gap-1",e),...t}));ip.displayName="SidebarMenu";const cl=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:V("group/menu-item relative",e),...t}));cl.displayName="SidebarMenuItem";const C5=ao("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),dl=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:a,className:o,...i},c)=>{const d=e?ca:"button",{isMobile:u,state:h}=ll(),m=r.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:V(C5({variant:n,size:s}),o),...i});return a?(typeof a=="string"&&(a={children:a}),r.jsxs($4,{children:[r.jsx(z4,{asChild:!0,children:m}),r.jsx(Rj,{side:"right",align:"center",hidden:h!=="collapsed"||u,...a})]})):m});dl.displayName="SidebarMenuButton";const k5=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},a)=>{const o=t?ca:"button";return r.jsx(o,{ref:a,"data-sidebar":"menu-action",className:V("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...s})});k5.displayName="SidebarMenuAction";const E5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:V("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));E5.displayName="SidebarMenuBadge";const _5=f.forwardRef(({className:e,showIcon:t=!1,...n},s)=>{const a=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:V("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&r.jsx(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(ae,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});_5.displayName="SidebarMenuSkeleton";const P5=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:V("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));P5.displayName="SidebarMenuSub";const T5=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));T5.displayName="SidebarMenuSubItem";const R5=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...a},o)=>{const i=e?ca:"a";return r.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:V("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...a})});R5.displayName="SidebarMenuSubButton";const ul=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...a},o)=>r.jsx(s_,{ref:o,to:s,className:({isActive:i,isPending:c})=>V(e,i&&t,c&&n),...a}));ul.displayName="NavLink";const A5=ao("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-success/15 text-success",pro:"border-transparent bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}});function dt({className:e,variant:t,...n}){return r.jsx("div",{className:V(A5({variant:t}),e),...n})}const Rw="double-opt-in",l=e=>$e.__(e,Rw),Wd=(e,t,n)=>$e._n(e,t,n,Rw),re=(e,...t)=>$e.sprintf(e,...t),O5=[{title:l("Dashboard"),url:"/",icon:TP},{title:l("Opt-Ins"),url:"/optins",icon:On},{title:l("Forms"),url:"/forms",icon:aa},{title:l("Categories"),url:"/categories",icon:xh},{title:l("Settings"),url:"/settings",icon:hh},{title:l("Database"),url:"/database",icon:Ki},{title:l("Audit Log"),url:"/audit",icon:xd}],I5=[],M5={BarChart3:jP,LogOut:bb,UserPlus:Sb,Plug:mh,Mail:On,FileText:aa,Tag:xh,Settings:hh,Palette:jb,Database:Ki,ScrollText:xd,Boxes:oo,Webhook:BP},fl={title:l("License"),url:"/license",icon:yb},ml={title:l("Addons"),url:"/addons",icon:oo};function D5(){var h;const{state:e}=ll(),t=e==="collapsed",n=ls(),{isProInstalled:s,isProLicenseActive:a}=Od(),o=mt(),{data:i}=Ne({queryKey:["addons-manifest"],queryFn:()=>G("/addons"),enabled:s}),d=[...((h=i==null?void 0:i.addons)!=null?h:[]).filter(m=>{var b;return m.available&&Array.isArray((b=m.ui)==null?void 0:b.sidebar)}).flatMap(m=>{var b;return((b=m.ui.sidebar)!=null?b:[]).map(v=>{var w;return{title:v.title,url:v.url,icon:(w=M5[v.icon])!=null?w:mh}})}),...I5],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(kw,{collapsible:"icon",children:[r.jsx(_w,{children:r.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[r.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary text-primary-foreground",children:r.jsx(On,{className:"h-4 w-4"})}),!t&&r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:"text-sm font-semibold",children:"Double Opt-In"}),r.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["v",o.version]})]})]})}),r.jsxs(Tw,{children:[r.jsxs(sp,{children:[r.jsx(ap,{children:l("Navigation")}),r.jsx(op,{children:r.jsx(ip,{children:O5.map(m=>r.jsx(cl,{children:r.jsx(dl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(ul,{to:m.url,end:m.url==="/",className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:m.title})]})})},m.title))})})]}),s&&r.jsxs(sp,{children:[r.jsx(ap,{children:l("Pro Features")}),r.jsx(op,{children:r.jsxs(ip,{children:[d.map(m=>r.jsx(cl,{children:r.jsx(dl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(ul,{to:m.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"flex-1",children:m.title}),!a&&r.jsxs(r.Fragment,{children:[r.jsx(dt,{variant:"outline",className:"text-[10px] px-1.5 py-0 border-primary text-primary",children:l("PRO")}),r.jsx(md,{className:"h-3 w-3 text-warning shrink-0"})]})]})]})})},m.title)),r.jsx(cl,{children:r.jsx(dl,{asChild:!0,isActive:u(fl.url),tooltip:fl.title,children:r.jsxs(ul,{to:fl.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(fl.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:fl.title})]})})}),r.jsx(cl,{children:r.jsx(dl,{asChild:!0,isActive:u(ml.url),tooltip:ml.title,children:r.jsxs(ul,{to:ml.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(ml.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:ml.title})]})})})]})})]})]}),r.jsxs(Pw,{children:[(o.supportUrl||o.feedbackUrl)&&r.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-1",children:[o.supportUrl&&r.jsxs("a",{href:o.supportUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(RP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Support")]}),o.feedbackUrl&&r.jsxs("a",{href:o.feedbackUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(IP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Feedback")]})]}),r.jsx("div",{className:"px-2 py-1 text-[10px] text-muted-foreground text-center",children:!t&&l("Double Opt-In for WordPress")})]})]})}const Aw=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Aw.displayName="Breadcrumb";const Ow=f.forwardRef(({className:e,...t},n)=>r.jsx("ol",{ref:n,className:V("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ow.displayName="BreadcrumbList";const lp=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:V("inline-flex items-center gap-1.5",e),...t}));lp.displayName="BreadcrumbItem";const Iw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const a=e?ca:"a";return r.jsx(a,{ref:s,className:V("transition-colors hover:text-foreground",t),...n})});Iw.displayName="BreadcrumbLink";const Mw=f.forwardRef(({className:e,...t},n)=>r.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:V("font-normal text-foreground",e),...t}));Mw.displayName="BreadcrumbPage";const Dw=({children:e,className:t,...n})=>r.jsx("li",{role:"presentation","aria-hidden":"true",className:V("[&>svg]:size-3.5",t),...n,children:e!=null?e:r.jsx(dh,{})});Dw.displayName="BreadcrumbSeparator";const cp={"/":l("Dashboard"),"/optins":l("Opt-Ins"),"/forms":l("Forms"),"/categories":l("Categories"),"/settings":l("Settings"),"/email-templates":l("Email Templates"),"/database":l("Database"),"/analytics":l("Analytics"),"/addon/webhooks":l("Webhooks"),"/opt-out":l("Opt-Out"),"/user-creation":l("User Creation"),"/api":l("API"),"/audit":l("Audit Log"),"/addons":l("Addons"),"/addon-settings":l("Addons"),"/license":l("License")};function F5(e){let t=e;for(;t!=="";){if(cp[t])return cp[t];t=t.slice(0,t.lastIndexOf("/"))}return cp[e]||l("Page")}function L5(){const e=ls(),t=F5(e.pathname);return r.jsx(Cw,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(D5,{}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsxs("header",{className:"sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-4 md:px-6",children:[r.jsx(Ew,{}),r.jsx(Aw,{children:r.jsxs(Ow,{children:[r.jsx(lp,{children:r.jsx(Iw,{href:"#/",children:"Double Opt-In"})}),r.jsx(Dw,{}),r.jsx(lp,{children:r.jsx(Mw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(WE,{})})]})]})})}function kr({children:e,addonId:t,featureName:n}){var j,y;const s=Tn(),{data:a,isLoading:o}=Ne({queryKey:["addons-manifest"],queryFn:()=>G("/addons")}),i=a==null?void 0:a.addons.find(p=>p.id===t),c=(i==null?void 0:i.available)===!0,{data:d}=Ne({queryKey:["addons-catalog"],queryFn:()=>G("/addons/catalog"),enabled:!o&&!c});if(o)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ae,{className:"h-8 w-64"}),r.jsx(ae,{className:"h-96 w-full"})]});if(c)return r.jsx(r.Fragment,{children:e});const u=d==null?void 0:d.entries.find(p=>p.id===t),h=(j=u==null?void 0:u.status)!=null?j:"not_installed",m=(y=d==null?void 0:d.hasBundleLicense)!=null?y:!1;let b,v,w,g=oo;return h==="not_installed"?(b=re(l("%s requires the %s addon"),n,n),v=l("Install the addon to unlock this page. Bundled addons can be installed in one click on the Addons page once your Pro license is active."),w={label:l("Open Addons"),onClick:()=>s("/addons")},g=oo):h==="inactive"?(b=re(l("%s addon is installed but inactive"),n),v=l("Activate the addon to unlock this page. You can do that from the Addons page in one click."),w={label:l("Open Addons"),onClick:()=>s("/addons")},g=Gi):m?(b=re(l("%s addon is not available"),n),v=l("Check the Addons page for diagnostic details. A prerequisite (such as a third-party plugin) may be missing."),w={label:l("Open Addons"),onClick:()=>s("/addons")},g=oo):(b=re(l("%s is included in Pro"),n),v=l("This addon is part of the Double Opt-In Pro bundle. Activate your bundle license to unlock it — one key unlocks every included module."),w={label:l("Open License"),onClick:()=>s("/license")},g=md),r.jsx("div",{className:"flex items-center justify-center min-h-[60vh] p-6",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-8 max-w-[480px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto mb-4",children:r.jsx(g,{className:"h-6 w-6 text-muted-foreground"})}),r.jsx("h1",{className:"text-lg font-semibold text-foreground mb-2",children:b}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:v}),r.jsx(U,{onClick:w.onClick,className:"w-full",children:w.label})]})})}function $n({id:e,data:t}){const n=f.useSyncExternalStore(P0,()=>T0(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:a})=>r.jsx($5,{name:s,mountId:e,children:r.jsx(a,{data:t})},s))})}class $5 extends f.Component{constructor(){super(...arguments);Vo(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){console.error(`[f12-doi] Addon component "${this.props.name}" at mount "${this.props.mountId}" threw`,n,s)}render(){return this.state.error?null:this.props.children}}const ee=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ee.displayName="Card";const ue=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("flex flex-col space-y-1.5 p-6",e),...t}));ue.displayName="CardHeader";const fe=f.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:V("text-2xl font-semibold leading-none tracking-tight",e),...t}));fe.displayName="CardTitle";const Ae=f.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:V("text-sm text-muted-foreground",e),...t}));Ae.displayName="CardDescription";const ne=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("p-6 pt-0",e),...t}));ne.displayName="CardContent";const z5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("flex items-center p-6 pt-0",e),...t}));z5.displayName="CardFooter";const nn=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:V("w-full caption-bottom text-sm",e),...t})}));nn.displayName="Table";const yn=f.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:V("[&_tr]:border-b",e),...t}));yn.displayName="TableHeader";const rn=f.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:V("[&_tr:last-child]:border-0",e),...t}));rn.displayName="TableBody";const U5=f.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:V("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));U5.displayName="TableFooter";const De=f.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:V("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));De.displayName="TableRow";const Te=f.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:V("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Te.displayName="TableHead";const le=f.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:V("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));le.displayName="TableCell";const B5=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:V("mt-4 text-sm text-muted-foreground",e),...t}));B5.displayName="TableCaption";function qd(e){return e.confirmed?"confirmed":e.revoked?"revoked":"pending"}function Fw(e){switch(qd(e)){case"confirmed":return l("Confirmed");case"revoked":return l("Revoked");default:return l("Pending")}}const V5={confirmed:{className:"bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-50 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",Icon:qi},pending:{className:"bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-50 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",Icon:ds},revoked:{className:"bg-slate-100 text-slate-700 border-slate-300 hover:bg-slate-100 dark:bg-slate-900 dark:text-slate-300 dark:border-slate-700",Icon:hb}};function Kd({optIn:e,size:t="md",className:n}){const{className:s,Icon:a}=V5[qd(e)],o=t==="sm";return r.jsxs(dt,{variant:"secondary",className:V(o?"text-[10px]":"","shrink-0",s,n),children:[r.jsx(a,{className:o?"h-2.5 w-2.5 mr-0.5":"h-3 w-3 mr-1"}),Fw(e)]})}const dp=["setup-status"],up=["setup"];async function H5(){return(await G("/setup")).data}function W5(e,t){return G("/setup/step",{method:"POST",body:JSON.stringify({step:e,data:t})})}function q5(){return G("/setup/test-mail",{method:"POST"})}function K5(){return G("/setup/finish",{method:"POST"})}function Q5(){return G("/setup/skip",{method:"POST"})}function G5(){return G("/setup/restart",{method:"POST"})}function Y5(){return Ne({queryKey:dp,queryFn:()=>{var e;return(e=mt().setup)!=null?e:null},initialData:()=>{var e;return(e=mt().setup)!=null?e:null},staleTime:1/0})}function X5(){const{data:e}=Y5();if(!e||e.status==="done")return null;const t=Math.min(e.step+1,e.steps);return r.jsx(ee,{className:"border-primary/30 bg-primary/[0.04]",children:r.jsxs(ne,{className:"flex flex-wrap items-center justify-between gap-4 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(gh,{className:"h-4 w-4 text-primary","aria-hidden":"true"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-sm font-semibold",children:l("Finish setting up Double Opt-In")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:re(l("Step %1$d of %2$d. Your entries so far are saved."),t,e.steps)})]})]}),r.jsx(U,{asChild:!0,children:r.jsxs(xt,{to:"/setup",children:[l("Continue setup"),r.jsx(Wi,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})})]})})}function Z5(){const e=Tn(),t=Ke(),n=ke({mutationFn:G5,onSuccess:()=>{t.setQueryData(dp,{status:"pending",step:0,steps:4}),t.removeQueries({queryKey:up}),e("/setup")}});return r.jsx(ee,{children:r.jsxs(ne,{className:"grid gap-3 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(gh,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold",children:l("Setup wizard")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Sender, forms, confirmation email and page in four steps. Forms that already use Double Opt-In are not changed.")})]})]}),r.jsx(U,{type:"button",variant:"outline",size:"sm",onClick:()=>n.mutate(),disabled:n.isPending,children:l("Start setup wizard")})]})})}function J5({report:e}){if(!e)return null;const t=mt().adminUrl.replace(/\/?$/,"/")+"site-health.php";return r.jsx(ee,{className:"border-warning/40 bg-warning/[0.06]","data-testid":"stuck-optins",children:r.jsxs(ne,{className:"flex items-start gap-3 p-5",children:[r.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-warning/15",children:r.jsx(Nt,{className:"h-4 w-4 text-warning","aria-hidden":"true"})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h2",{className:"text-sm font-semibold",children:re(l("%1$d%% of the opt-ins from the last %2$d days are not confirmed"),e.share,e.days)}),r.jsx("p",{className:"text-sm text-muted-foreground",children:re(l("%1$d of %2$d people did not click the link in the confirmation mail. The last 24 hours are not counted."),e.unconfirmed,e.total)}),r.jsxs("ul",{className:"space-y-1.5 text-sm",children:[e.mailFailed>0&&r.jsx("li",{children:r.jsxs(xt,{to:"/optins?mail=failed",className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[re(Wd("%d confirmation mail could not be sent. Show it","%d confirmation mails could not be sent. Show them",e.mailFailed),e.mailFailed),r.jsx(Wi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})}),r.jsx("li",{children:r.jsxs("a",{href:t,className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[l("Check in Site Health whether inboxes trust your sender domain"),r.jsx(Wi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})}),!ra("reminder")&&r.jsx("li",{children:r.jsxs(xt,{to:"/addons",className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[l_("reminder")?l("Activate the license of the Reminder add-on: it sends a second mail to people who have not confirmed"):l("The Reminder add-on sends a second mail to people who have not confirmed"),r.jsx(Wi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})})]})]})]})})}function eO(){return r.jsx(ee,{children:r.jsxs(ne,{className:"flex items-start gap-3 p-4",children:[r.jsx(ae,{className:"h-9 w-9 rounded-lg shrink-0"}),r.jsxs("div",{className:"space-y-2 flex-1",children:[r.jsx(ae,{className:"h-3 w-20"}),r.jsx(ae,{className:"h-7 w-16"}),r.jsx(ae,{className:"h-3 w-24"})]})]})})}function tO({rows:e=3,cols:t=3}){return r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsx(De,{children:Array.from({length:t}).map((n,s)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-16"})},s))})}),r.jsx(rn,{children:Array.from({length:e}).map((n,s)=>r.jsx(De,{children:Array.from({length:t}).map((a,o)=>r.jsx(le,{children:r.jsx(ae,{className:"h-3 w-full"})},o))},s))})]})}function Qd(e){return e.toLocaleString()}function nO(){var c,d;const{data:e,isLoading:t}=Ne({queryKey:["dashboard-stats"],queryFn:()=>G("/dashboard/stats")}),{data:n,isLoading:s}=Ne({queryKey:["dashboard-info"],queryFn:()=>G("/dashboard/quick-info")}),a=e==null?void 0:e.data,o=n==null?void 0:n.data,i=a?[{label:l("Total Opt-Ins"),value:Qd(a.totalOptins),icon:On,change:a.confirmed+a.pending>0?l("Active"):l("No data")},{label:l("Confirmed"),value:Qd(a.confirmed),icon:qi,change:re(l("%s%% conversion"),a.conversionRate)},{label:l("Pending"),value:Qd(a.pending),icon:ds,change:re(l("%s%% awaiting"),(a.totalOptins>0?a.pending/a.totalOptins*100:0).toFixed(1))},{label:l("Revoked"),value:Qd((c=a.revoked)!=null?c:0),icon:hb,change:l("Consent withdrawn via the opt-out")}]:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Dashboard")}),r.jsx("p",{className:"text-muted-foreground",children:l("Overview of your Double Opt-In activity")})]}),r.jsx($n,{id:"dashboard.alert"}),r.jsx(X5,{}),r.jsx(J5,{report:a==null?void 0:a.stuckOptins}),r.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:t?Array.from({length:4}).map((u,h)=>r.jsx(eO,{},h)):i.map(u=>r.jsx(ee,{children:r.jsxs(ne,{className:"flex items-start gap-3 p-4",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(u.icon,{className:"h-4.5 w-4.5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:u.label}),r.jsx("p",{className:"text-2xl font-bold text-foreground",children:u.value}),r.jsxs("p",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[r.jsx(zP,{className:"h-3 w-3 text-success"}),u.change]})]})]})},u.label))}),r.jsx($n,{id:"dashboard.widget"}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(fe,{className:"text-base",children:l("Recent Opt-Ins")}),r.jsx(xt,{to:"/optins",className:"text-xs text-primary hover:underline",children:l("View All")})]}),r.jsx(Ae,{children:l("Latest opt-in submissions")})]}),r.jsx(ne,{children:t?r.jsx(tO,{rows:5,cols:4}):r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{children:l("Email")}),r.jsx(Te,{children:l("Form")}),r.jsx(Te,{children:l("Status")}),r.jsx(Te,{className:"text-right",children:l("Date")})]})}),r.jsx(rn,{children:((d=a==null?void 0:a.recentOptins)!=null?d:[]).map(u=>r.jsxs(De,{children:[r.jsx(le,{className:"text-sm",children:u.email}),r.jsx(le,{className:"text-muted-foreground text-xs",children:u.formName}),r.jsx(le,{children:r.jsx(Kd,{optIn:u,size:"sm"})}),r.jsx(le,{className:"text-right text-xs text-muted-foreground",children:u.createtime})]},u.id))})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("Quick Info")})}),r.jsx(ne,{children:s?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((u,h)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(ae,{className:"h-3 w-20"}),r.jsx(ae,{className:"h-3 w-16"})]},h))}):o?r.jsx("dl",{className:"space-y-2 text-sm",children:[[l("Version"),o.version],[l("Token Expiry"),o.tokenExpiry],[l("Retention"),o.retention],[l("Rate Limit"),o.rateLimit],[l("License"),typeof o.licenseStatus=="object"&&o.licenseStatus!==null?o.licenseStatus.isActive?l("Pro Active"):l("Inactive"):o.licenseStatus]].map(([u,h])=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx("dt",{className:"text-muted-foreground",children:u}),r.jsx("dd",{className:"font-medium text-foreground",children:h})]},u))}):null})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("Quick Links")})}),r.jsx(ne,{children:r.jsx("ul",{className:"space-y-1.5 text-sm",children:[[l("All Opt-Ins"),"/optins"],[l("Form Settings"),"/forms"],[l("Global Settings"),"/settings"],[l("Analytics"),"/analytics"],[l("Database"),"/database"]].map(([u,h])=>r.jsx("li",{children:r.jsx(xt,{to:h,className:"text-primary hover:underline",children:u})},u))})})]})]})]})}function Gd(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yd="Checkbox",[rO]=Mt(Yd),[sO,fp]=rO(Yd);function aO(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:a,disabled:o,form:i,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[b,v]=Jt({prop:n,defaultProp:a!=null?a:!1,onChange:d,caller:Yd}),[w,g]=f.useState(null),[j,y]=f.useState(null),p=f.useRef(!1),x=w?!!i||!!w.closest("form"):!0,N={checked:b,disabled:o,setChecked:v,control:w,setControl:g,name:c,form:i,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:xs(a)?!1:a,isFormControl:x,bubbleInput:j,setBubbleInput:y};return r.jsx(sO,{scope:t,...N,children:oO(m)?m(N):s})}var Lw="CheckboxTrigger",$w=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},a)=>{const{control:o,value:i,disabled:c,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:b,isFormControl:v,bubbleInput:w}=fp(Lw,e),g=Me(a,h),j=f.useRef(d);return f.useEffect(()=>{const y=o==null?void 0:o.form;if(y){const p=()=>m(j.current);return y.addEventListener("reset",p),()=>y.removeEventListener("reset",p)}},[o,m]),r.jsx(xe.button,{type:"button",role:"checkbox","aria-checked":xs(d)?"mixed":d,"aria-required":u,"data-state":Hw(d),"data-disabled":c?"":void 0,disabled:c,value:i,...s,ref:g,onKeyDown:he(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:he(n,y=>{m(p=>xs(p)?!0:!p),w&&v&&(b.current=y.isPropagationStopped(),b.current||y.stopPropagation())})})});$w.displayName=Lw;var mp=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:o,required:i,disabled:c,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(aO,{__scopeCheckbox:n,checked:a,defaultChecked:o,disabled:c,required:i,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:b})=>r.jsxs(r.Fragment,{children:[r.jsx($w,{...m,ref:t,__scopeCheckbox:n}),b&&r.jsx(Vw,{__scopeCheckbox:n})]})})});mp.displayName=Yd;var zw="CheckboxIndicator",Uw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,o=fp(zw,n);return r.jsx(Rn,{present:s||xs(o.checked)||o.checked===!0,children:r.jsx(xe.span,{"data-state":Hw(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});Uw.displayName=zw;var Bw="CheckboxBubbleInput",Vw=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:i,required:c,disabled:d,name:u,value:h,form:m,bubbleInput:b,setBubbleInput:v}=fp(Bw,e),w=Me(n,v),g=Gd(o),j=Pd(s);f.useEffect(()=>{const p=b;if(!p)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,C=!a.current;if(g!==o&&S){const E=new Event("click",{bubbles:C});p.indeterminate=xs(o),S.call(p,xs(o)?!1:o),p.dispatchEvent(E)}},[b,g,o,a]);const y=f.useRef(xs(o)?!1:o);return r.jsx(xe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i!=null?i:y.current,required:c,disabled:d,name:u,value:h,form:m,...t,tabIndex:-1,ref:w,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Vw.displayName=Bw;function oO(e){return typeof e=="function"}function xs(e){return e==="indeterminate"}function Hw(e){return xs(e)?"indeterminate":e?"checked":"unchecked"}const jo=f.forwardRef(({className:e,...t},n)=>r.jsx(mp,{ref:n,className:V("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(Uw,{className:V("flex items-center justify-center text-current"),children:r.jsx(cs,{className:"h-4 w-4"})})}));jo.displayName=mp.displayName;function Ww(e,[t,n]){return Math.min(n,Math.max(t,e))}var iO=f.createContext(void 0);function hl(e){const t=f.useContext(iO);return e||t||"ltr"}function lO(e){const t=cO(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(uO);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function cO(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=mO(a),c=fO(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dO=Symbol("radix.slottable");function uO(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dO}function fO(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function mO(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hO=[" ","Enter","ArrowUp","ArrowDown"],pO=[" ","Enter"],ua="Select",[Xd,Zd,xO]=od(ua),[wo]=Mt(ua,[xO,Td]),Jd=Td(),[gO,gs]=wo(ua),[vO,yO]=wo(ua),qw=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:a,onOpenChange:o,value:i,defaultValue:c,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:b,required:v,form:w}=e,g=Jd(t),[j,y]=f.useState(null),[p,x]=f.useState(null),[N,S]=f.useState(!1),C=hl(u),[E,k]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:ua}),[R,T]=Jt({prop:i,defaultProp:c,onChange:d,caller:ua}),O=f.useRef(null),F=j?w||!!j.closest("form"):!0,[B,I]=f.useState(new Set),se=Array.from(B).map(M=>M.props.value).join(";");return r.jsx(gj,{...g,children:r.jsxs(gO,{required:v,scope:t,trigger:j,onTriggerChange:y,valueNode:p,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Mn(),value:R,onValueChange:T,open:E,onOpenChange:k,dir:C,triggerPointerDownPosRef:O,disabled:b,children:[r.jsx(Xd.Provider,{scope:t,children:r.jsx(vO,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(M=>{I(Z=>new Set(Z).add(M))},[]),onNativeOptionRemove:f.useCallback(M=>{I(Z=>{const A=new Set(Z);return A.delete(M),A})},[]),children:n})}),F?r.jsxs(x1,{"aria-hidden":!0,required:v,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:M=>T(M.target.value),disabled:b,form:w,children:[R===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},se):null]})})};qw.displayName=ua;var Kw="SelectTrigger",Qw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...a}=e,o=Jd(n),i=gs(Kw,n),c=i.disabled||s,d=Me(t,i.onTriggerChange),u=Zd(n),h=f.useRef("touch"),[m,b,v]=v1(g=>{const j=u().filter(x=>!x.disabled),y=j.find(x=>x.value===i.value),p=y1(j,g,y);p!==void 0&&i.onValueChange(p.value)}),w=g=>{c||(i.onOpenChange(!0),v()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return r.jsx(vj,{asChild:!0,...o,children:r.jsx(xe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":g1(i.value)?"":void 0,...a,ref:d,onClick:he(a.onClick,g=>{g.currentTarget.focus(),h.current!=="mouse"&&w(g)}),onPointerDown:he(a.onPointerDown,g=>{h.current=g.pointerType;const j=g.target;j.hasPointerCapture(g.pointerId)&&j.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:he(a.onKeyDown,g=>{const j=m.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&b(g.key),!(j&&g.key===" ")&&hO.includes(g.key)&&(w(),g.preventDefault())})})})});Qw.displayName=Kw;var Gw="SelectValue",Yw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,children:o,placeholder:i="",...c}=e,d=gs(Gw,n),{onValueNodeHasChildrenChange:u}=d,h=o!==void 0,m=Me(t,d.onValueNodeChange);return gt(()=>{u(h)},[u,h]),r.jsx(xe.span,{...c,ref:m,style:{pointerEvents:"none"},children:g1(d.value)?r.jsx(r.Fragment,{children:i}):o})});Yw.displayName=Gw;var bO="SelectIcon",Xw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...a}=e;return r.jsx(xe.span,{"aria-hidden":!0,...a,ref:t,children:s||"▼"})});Xw.displayName=bO;var jO="SelectPortal",Zw=e=>r.jsx(Vi,{asChild:!0,...e});Zw.displayName=jO;var fa="SelectContent",Jw=f.forwardRef((e,t)=>{const n=gs(fa,e.__scopeSelect),[s,a]=f.useState();if(gt(()=>{a(new DocumentFragment)},[]),!n.open){const o=s;return o?Zs.createPortal(r.jsx(e1,{scope:e.__scopeSelect,children:r.jsx(Xd.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),o):null}return r.jsx(t1,{...e,ref:t})});Jw.displayName=fa;var zn=10,[e1,vs]=wo(fa),wO="SelectContentImpl",NO=lO("SelectContent.RemoveScroll"),t1=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:b,collisionPadding:v,sticky:w,hideWhenDetached:g,avoidCollisions:j,...y}=e,p=gs(fa,n),[x,N]=f.useState(null),[S,C]=f.useState(null),E=Me(t,X=>N(X)),[k,R]=f.useState(null),[T,O]=f.useState(null),F=Zd(n),[B,I]=f.useState(!1),se=f.useRef(!1);f.useEffect(()=>{if(x)return rw(x)},[x]),Bj();const M=f.useCallback(X=>{const[je,...L]=F().map(Ee=>Ee.ref.current),[me]=L.slice(-1),Ce=document.activeElement;for(const Ee of X)if(Ee===Ce||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===je&&S&&(S.scrollTop=0),Ee===me&&S&&(S.scrollTop=S.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==Ce))return},[F,S]),Z=f.useCallback(()=>M([k,x]),[M,k,x]);f.useEffect(()=>{B&&Z()},[B,Z]);const{onOpenChange:A,triggerPointerDownPosRef:D}=p;f.useEffect(()=>{if(x){let X={x:0,y:0};const je=me=>{var Ce,Ee,Be,H;X={x:Math.abs(Math.round(me.pageX)-((Ee=(Ce=D.current)==null?void 0:Ce.x)!=null?Ee:0)),y:Math.abs(Math.round(me.pageY)-((H=(Be=D.current)==null?void 0:Be.y)!=null?H:0))}},L=me=>{X.x<=10&&X.y<=10?me.preventDefault():x.contains(me.target)||A(!1),document.removeEventListener("pointermove",je),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",je),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",je),document.removeEventListener("pointerup",L,{capture:!0})}}},[x,A,D]),f.useEffect(()=>{const X=()=>A(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[A]);const[J,pe]=v1(X=>{const je=F().filter(Ce=>!Ce.disabled),L=je.find(Ce=>Ce.ref.current===document.activeElement),me=y1(je,X,L);me&&setTimeout(()=>me.ref.current.focus())}),P=f.useCallback((X,je,L)=>{const me=!se.current&&!L;(p.value!==void 0&&p.value===je||me)&&(R(X),me&&(se.current=!0))},[p.value]),z=f.useCallback(()=>x==null?void 0:x.focus(),[x]),q=f.useCallback((X,je,L)=>{const me=!se.current&&!L;(p.value!==void 0&&p.value===je||me)&&O(X)},[p.value]),oe=s==="popper"?hp:n1,Se=oe===hp?{side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:b,collisionPadding:v,sticky:w,hideWhenDetached:g,avoidCollisions:j}:{};return r.jsx(e1,{scope:n,content:x,viewport:S,onViewportChange:C,itemRefCallback:P,selectedItem:k,onItemLeave:z,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:T,position:s,isPositioned:B,searchRef:J,children:r.jsx(Xh,{as:NO,allowPinchZoom:!0,children:r.jsx(Wh,{asChild:!0,trapped:p.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:he(a,X=>{var je;(je=p.trigger)==null||je.focus({preventScroll:!0}),X.preventDefault()}),children:r.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx(oe,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:X=>X.preventDefault(),...y,...Se,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,X=>{const je=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!je&&X.key.length===1&&pe(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let me=F().filter(Ce=>!Ce.disabled).map(Ce=>Ce.ref.current);if(["ArrowUp","End"].includes(X.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const Ce=X.target,Ee=me.indexOf(Ce);me=me.slice(Ee+1)}setTimeout(()=>M(me)),X.preventDefault()}})})})})})})});t1.displayName=wO;var SO="SelectItemAlignedPosition",n1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...a}=e,o=gs(fa,n),i=vs(fa,n),[c,d]=f.useState(null),[u,h]=f.useState(null),m=Me(t,E=>h(E)),b=Zd(n),v=f.useRef(!1),w=f.useRef(!0),{viewport:g,selectedItem:j,selectedItemText:y,focusSelectedItem:p}=i,x=f.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&g&&j&&y){const E=o.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),T=y.getBoundingClientRect();if(o.dir!=="rtl"){const Ce=T.left-k.left,Ee=R.left-Ce,Be=E.left-Ee,H=E.width+Be,Oe=Math.max(H,k.width),Ve=window.innerWidth-zn,qt=Ww(Ee,[zn,Math.max(zn,Ve-Oe)]);c.style.minWidth=H+"px",c.style.left=qt+"px"}else{const Ce=k.right-T.right,Ee=window.innerWidth-R.right-Ce,Be=window.innerWidth-E.right-Ee,H=E.width+Be,Oe=Math.max(H,k.width),Ve=window.innerWidth-zn,qt=Ww(Ee,[zn,Math.max(zn,Ve-Oe)]);c.style.minWidth=H+"px",c.style.right=qt+"px"}const O=b(),F=window.innerHeight-zn*2,B=g.scrollHeight,I=window.getComputedStyle(u),se=parseInt(I.borderTopWidth,10),M=parseInt(I.paddingTop,10),Z=parseInt(I.borderBottomWidth,10),A=parseInt(I.paddingBottom,10),D=se+M+B+A+Z,J=Math.min(j.offsetHeight*5,D),pe=window.getComputedStyle(g),P=parseInt(pe.paddingTop,10),z=parseInt(pe.paddingBottom,10),q=E.top+E.height/2-zn,oe=F-q,Se=j.offsetHeight/2,X=j.offsetTop+Se,je=se+M+X,L=D-je;if(je<=q){const Ce=O.length>0&&j===O[O.length-1].ref.current;c.style.bottom="0px";const Ee=u.clientHeight-g.offsetTop-g.offsetHeight,Be=Math.max(oe,Se+(Ce?z:0)+Ee+Z),H=je+Be;c.style.height=H+"px"}else{const Ce=O.length>0&&j===O[0].ref.current;c.style.top="0px";const Be=Math.max(q,se+g.offsetTop+(Ce?P:0)+Se)+L;c.style.height=Be+"px",g.scrollTop=je-q+g.offsetTop}c.style.margin=`${zn}px 0`,c.style.minHeight=J+"px",c.style.maxHeight=F+"px",s==null||s(),requestAnimationFrame(()=>v.current=!0)}},[b,o.trigger,o.valueNode,c,u,g,j,y,o.dir,s]);gt(()=>x(),[x]);const[N,S]=f.useState();gt(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const C=f.useCallback(E=>{E&&w.current===!0&&(x(),p==null||p(),w.current=!1)},[x,p]);return r.jsx(kO,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:C,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(xe.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});n1.displayName=SO;var CO="SelectPopperPosition",hp=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:a=zn,...o}=e,i=Jd(n);return r.jsx(yj,{...i,...o,ref:t,align:s,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});hp.displayName=CO;var[kO,pp]=wo(fa,{}),xp="SelectViewport",r1=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...a}=e,o=vs(xp,n),i=pp(xp,n),c=Me(t,o.onViewportChange),d=f.useRef(0);return r.jsxs(r.Fragment,{children:[r.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:s}),r.jsx(Xd.Slot,{scope:n,children:r.jsx(xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:he(a.onScroll,u=>{const h=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:b}=i;if(b!=null&&b.current&&m){const v=Math.abs(d.current-h.scrollTop);if(v>0){const w=window.innerHeight-zn*2,g=parseFloat(m.style.minHeight),j=parseFloat(m.style.height),y=Math.max(g,j);if(y<w){const p=y+v,x=Math.min(w,p),N=p-x;m.style.height=x+"px",m.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});r1.displayName=xp;var s1="SelectGroup",[EO,_O]=wo(s1),PO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Mn();return r.jsx(EO,{scope:n,id:a,children:r.jsx(xe.div,{role:"group","aria-labelledby":a,...s,ref:t})})});PO.displayName=s1;var a1="SelectLabel",o1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=_O(a1,n);return r.jsx(xe.div,{id:a.id,...s,ref:t})});o1.displayName=a1;var eu="SelectItem",[TO,i1]=wo(eu),l1=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:a=!1,textValue:o,...i}=e,c=gs(eu,n),d=vs(eu,n),u=c.value===s,[h,m]=f.useState(o!=null?o:""),[b,v]=f.useState(!1),w=Me(t,p=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,p,s,a)}),g=Mn(),j=f.useRef("touch"),y=()=>{a||(c.onValueChange(s),c.onOpenChange(!1))};if(s==="")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 r.jsx(TO,{scope:n,value:s,disabled:a,textId:g,isSelected:u,onItemTextChange:f.useCallback(p=>{m(x=>{var N;return x||((N=p==null?void 0:p.textContent)!=null?N:"").trim()})},[]),children:r.jsx(Xd.ItemSlot,{scope:n,value:s,disabled:a,textValue:h,children:r.jsx(xe.div,{role:"option","aria-labelledby":g,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:w,onFocus:he(i.onFocus,()=>v(!0)),onBlur:he(i.onBlur,()=>v(!1)),onClick:he(i.onClick,()=>{j.current!=="mouse"&&y()}),onPointerUp:he(i.onPointerUp,()=>{j.current==="mouse"&&y()}),onPointerDown:he(i.onPointerDown,p=>{j.current=p.pointerType}),onPointerMove:he(i.onPointerMove,p=>{var x;j.current=p.pointerType,a?(x=d.onItemLeave)==null||x.call(d):j.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(i.onPointerLeave,p=>{var x;p.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:he(i.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(pO.includes(p.key)&&y(),p.key===" "&&p.preventDefault())})})})})});l1.displayName=eu;var pl="SelectItemText",c1=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,...o}=e,i=gs(pl,n),c=vs(pl,n),d=i1(pl,n),u=yO(pl,n),[h,m]=f.useState(null),b=Me(t,y=>m(y),d.onItemTextChange,y=>{var p;return(p=c.itemTextRefCallback)==null?void 0:p.call(c,y,d.value,d.disabled)}),v=h==null?void 0:h.textContent,w=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:g,onNativeOptionRemove:j}=u;return gt(()=>(g(w),()=>j(w)),[g,j,w]),r.jsxs(r.Fragment,{children:[r.jsx(xe.span,{id:d.textId,...o,ref:b}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zs.createPortal(o.children,i.valueNode):null]})});c1.displayName=pl;var d1="SelectItemIndicator",u1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return i1(d1,n).isSelected?r.jsx(xe.span,{"aria-hidden":!0,...s,ref:t}):null});u1.displayName=d1;var gp="SelectScrollUpButton",f1=f.forwardRef((e,t)=>{const n=vs(gp,e.__scopeSelect),s=pp(gp,e.__scopeSelect),[a,o]=f.useState(!1),i=Me(t,s.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;o(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(h1,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});f1.displayName=gp;var vp="SelectScrollDownButton",m1=f.forwardRef((e,t)=>{const n=vs(vp,e.__scopeSelect),s=pp(vp,e.__scopeSelect),[a,o]=f.useState(!1),i=Me(t,s.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;o(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(h1,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});m1.displayName=vp;var h1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...a}=e,o=vs("SelectScrollButton",n),i=f.useRef(null),c=Zd(n),d=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),gt(()=>{var h;const u=c().find(m=>m.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[c]),r.jsx(xe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:he(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(s,50))}),onPointerMove:he(a.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(s,50))}),onPointerLeave:he(a.onPointerLeave,()=>{d()})})}),RO="SelectSeparator",p1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(xe.div,{"aria-hidden":!0,...s,ref:t})});p1.displayName=RO;var yp="SelectArrow",AO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Jd(n),o=gs(yp,n),i=vs(yp,n);return o.open&&i.position==="popper"?r.jsx(bj,{...a,...s,ref:t}):null});AO.displayName=yp;var OO="SelectBubbleInput",x1=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const a=f.useRef(null),o=Me(s,a),i=Gd(t);return f.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[i,t]),r.jsx(xe.select,{...n,style:{...B0,...n.style},ref:o,defaultValue:t})});x1.displayName=OO;function g1(e){return e===""||e===void 0}function v1(e){const t=gn(e),n=f.useRef(""),s=f.useRef(0),a=f.useCallback(i=>{const c=n.current+i;t(c),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),o=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,a,o]}function y1(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=IO(e,Math.max(o,0));a.length===1&&(i=i.filter(u=>u!==n));const d=i.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function IO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var MO=qw,b1=Qw,DO=Yw,FO=Xw,LO=Zw,j1=Jw,$O=r1,w1=o1,N1=l1,zO=c1,UO=u1,S1=f1,C1=m1,k1=p1;const ye=MO,be=DO,ge=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(b1,{ref:s,className:V("flex h-10 w-full items-center justify-between rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-colors hover:border-foreground/30",e),...n,children:[t,r.jsx(FO,{asChild:!0,children:r.jsx(sa,{className:"h-4 w-4 opacity-50"})})]}));ge.displayName=b1.displayName;const E1=f.forwardRef(({className:e,...t},n)=>r.jsx(S1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(wP,{className:"h-4 w-4"})}));E1.displayName=S1.displayName;const _1=f.forwardRef(({className:e,...t},n)=>r.jsx(C1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(sa,{className:"h-4 w-4"})}));_1.displayName=C1.displayName;const ve=f.forwardRef(({className:e,children:t,position:n="popper",...s},a)=>r.jsx(LO,{container:Zi(),children:r.jsxs(j1,{ref:a,className:V("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[r.jsx(E1,{}),r.jsx($O,{className:V("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(_1,{})]})}));ve.displayName=j1.displayName;const BO=f.forwardRef(({className:e,...t},n)=>r.jsx(w1,{ref:n,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));BO.displayName=w1.displayName;const $=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(N1,{ref:s,className:V("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(UO,{children:r.jsx(cs,{className:"h-4 w-4"})})}),r.jsx(zO,{children:t})]}));$.displayName=N1.displayName;const VO=f.forwardRef(({className:e,...t},n)=>r.jsx(k1,{ref:n,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));VO.displayName=k1.displayName;const Er=np,P1=({container:e,...t})=>r.jsx(rp,{container:e!=null?e:Zi(),...t});P1.displayName="DialogPortal";const T1=f.forwardRef(({className:e,...t},n)=>r.jsx(sl,{ref:n,className:V("fixed inset-0 z-50 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",e),...t}));T1.displayName=sl.displayName;const tr=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(P1,{children:[r.jsx(T1,{}),r.jsxs(al,{ref:s,className:V("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(Hd,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(gd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));tr.displayName=al.displayName;const nr=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});nr.displayName="DialogHeader";const ys=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ys.displayName="DialogFooter";const rr=f.forwardRef(({className:e,...t},n)=>r.jsx(ol,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));rr.displayName=ol.displayName;const sr=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));sr.displayName=il.displayName;var tu="Collapsible",[HO,R1]=Mt(tu),[WO,bp]=HO(tu),A1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:o,onOpenChange:i,...c}=e,[d,u]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:tu});return r.jsx(WO,{scope:n,disabled:o,contentId:Mn(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(xe.div,{"data-state":Cp(d),"data-disabled":o?"":void 0,...c,ref:t})})});A1.displayName=tu;var O1="CollapsibleTrigger",jp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=bp(O1,n);return r.jsx(xe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Cp(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:he(e.onClick,a.onOpenToggle)})});jp.displayName=O1;var Np="CollapsibleContent",Sp=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=bp(Np,e.__scopeCollapsible);return r.jsx(Rn,{present:n||a.open,children:({present:o})=>r.jsx(qO,{...s,ref:t,present:o})})});Sp.displayName=Np;var qO=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:a,...o}=e,i=bp(Np,n),[c,d]=f.useState(s),u=f.useRef(null),h=Me(t,u),m=f.useRef(0),b=m.current,v=f.useRef(0),w=v.current,g=i.open||c,j=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(p)},[]),gt(()=>{const p=u.current;if(p){y.current=y.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const x=p.getBoundingClientRect();m.current=x.height,v.current=x.width,j.current||(p.style.transitionDuration=y.current.transitionDuration,p.style.animationName=y.current.animationName),d(s)}},[i.open,s]),r.jsx(xe.div,{"data-state":Cp(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...o,ref:h,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:g&&a})});function Cp(e){return e?"open":"closed"}var I1=A1,KO=jp,QO=Sp;const xl=I1,gl=jp,vl=Sp;function GO(){return r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsx(De,{children:Array.from({length:7}).map((e,t)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-12"})},t))})}),r.jsx(rn,{children:Array.from({length:5}).map((e,t)=>r.jsx(De,{children:Array.from({length:7}).map((n,s)=>r.jsx(le,{children:r.jsx(ae,{className:"h-3 w-full"})},s))},t))})]})}function YO({detail:e,loading:t,open:n,onClose:s,onResend:a,resending:o,onDelete:i}){const[c,d]=f.useState(!1);return r.jsx(Er,{open:n,onOpenChange:()=>s(),children:r.jsx(tr,{className:"max-w-lg p-0 gap-0 overflow-hidden rounded-2xl border border-border/50 shadow-xl",children:t?r.jsx("div",{className:"p-6 space-y-4",children:Array.from({length:6}).map((u,h)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(ae,{className:"h-3 w-24"}),r.jsx(ae,{className:"h-3 w-32"})]},h))}):e?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"px-6 pt-6 pb-4 border-b border-border/50",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"min-w-0",children:r.jsxs(nr,{className:"space-y-1",children:[r.jsx(rr,{className:"text-base font-semibold tracking-tight",children:l("Opt-In Detail")}),r.jsx(sr,{className:"font-mono text-xs text-muted-foreground truncate",children:e.hash})]})}),r.jsx(Kd,{optIn:e})]})}),r.jsxs("div",{className:"px-6 py-4 space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsx(yl,{label:l("Email"),value:e.email,fullWidth:!0}),r.jsx(yl,{label:l("Form"),value:e.formName||`#${e.formId}`}),r.jsx(yl,{label:l("Category"),value:e.category?String(e.category):"—"}),r.jsx(yl,{label:l("Created"),value:e.createtime}),r.jsx(yl,{label:l("Updated"),value:e.updatetime})]}),(e.ipRegister||e.ipConfirmation||e.ipOptout)&&r.jsxs("div",{className:"rounded-lg bg-muted/50 border border-border/50 p-3 space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[r.jsx(EP,{className:"h-3 w-3"}),l("IP Addresses")]}),r.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[e.ipRegister&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Register:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipRegister})]}),e.ipConfirmation&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Confirm:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipConfirmation})]}),e.ipOptout&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Opt-out:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipOptout})]})]}),e.optouttime&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Opt-out time:")," "]}),r.jsx("span",{children:e.optouttime})]}),e.reminderSentAt&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Reminder sent:")," "]}),r.jsx("span",{children:e.reminderSentAt})]})]}),e.formData&&Object.keys(e.formData).length>0&&r.jsxs(xl,{open:c,onOpenChange:d,children:[r.jsxs(gl,{className:"flex items-center justify-between w-full rounded-lg border border-border/50 px-3 py-2 text-xs font-medium text-muted-foreground hover:bg-muted/50 transition-colors",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(aa,{className:"h-3 w-3"}),re(l("Form Data (%s fields)"),Object.keys(e.formData).length)]}),r.jsx(sa,{className:`h-3 w-3 transition-transform duration-200 ${c?"rotate-180":""}`})]}),r.jsx(vl,{className:"mt-2",children:r.jsx("div",{className:"rounded-lg border border-border/50 divide-y divide-border/50 overflow-hidden",children:Object.entries(e.formData).map(([u,h])=>r.jsxs("div",{className:"flex justify-between px-3 py-2 text-xs",children:[r.jsx("span",{className:"text-muted-foreground font-mono",children:u}),r.jsx("span",{className:"font-medium max-w-[60%] text-right break-all",children:typeof h=="object"?JSON.stringify(h):String(h)})]},u))})})]}),e.consentText&&r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-3",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-blue-600 dark:text-blue-400 mb-1",children:[r.jsx(wt,{className:"h-3 w-3"}),l("Consent Text")]}),r.jsx("p",{className:"text-xs text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:e.consentText})]})]}),r.jsxs("div",{className:"px-6 py-4 border-t border-border/50 bg-muted/30 flex items-center gap-2",children:[qd(e)==="pending"&&r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg",disabled:o,onClick:()=>a(e.id),children:[r.jsx(On,{className:"h-3.5 w-3.5 mr-1.5"}),l(o?"Sending...":"Resend Email")]}),r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>i(e.id),children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}):null})})}function yl({label:e,value:t,fullWidth:n}){return r.jsxs("div",{className:n?"col-span-2":"",children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-0.5",children:e}),r.jsx("div",{className:"text-sm font-medium truncate",children:t||"—"})]})}function XO(){var me,Ce,Ee,Be;const e=Ke(),t=Tn(),[n,s]=f.useState(1),[a]=f.useState(20),[o,i]=f.useState(""),[c,d]=f.useState(""),[u,h]=f.useState("all"),[m,b]=f.useState("all"),[v,w]=f.useState("all"),[g]=_0(),[j,y]=f.useState(g.get("mail")==="failed"?"failed":"all"),[p,x]=f.useState(null),[N,S]=f.useState(null),[C,E]=f.useState(new Set),{data:k,isLoading:R}=Ne({queryKey:["optins",n,a,o,u,m,v,j],queryFn:()=>{const H=new URLSearchParams({page:String(n),per_page:String(a)});return o&&H.set("search",o),u!=="all"&&H.set("category",u),m!=="all"&&H.set("status",m),v!=="all"&&H.set("follow_up",v),j!=="all"&&H.set("mail",j),G(`/optins?${H.toString()}`)}}),{data:T}=Ne({queryKey:["categories"],queryFn:()=>G("/categories")}),{data:O,isLoading:F}=Ne({queryKey:["optin",p],queryFn:()=>G(`/optins/${p}`),enabled:!!p}),B=ke({mutationFn:H=>G(`/optins/${H}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),S(null),p===N&&x(null),E(H=>{const Oe=new Set(H);return N!==null&&Oe.delete(N),Oe})},onError:H=>{K.error(H.message||l("Failed to delete opt-in"))}}),I=ke({mutationFn:async H=>{const Ve=(await Promise.allSettled(H.map(qt=>G(`/optins/${qt}`,{method:"DELETE"})))).filter(qt=>qt.status==="rejected").length;if(Ve>0)throw new Error(re(l("Failed to delete %1$s of %2$s items"),Ve,H.length))},onSuccess:()=>{K.success(re(l("%s opt-in(s) deleted"),C.size)),e.invalidateQueries({queryKey:["optins"]}),E(new Set),x(null)},onError:H=>{K.error(H.message||l("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),se=ke({mutationFn:H=>G(`/optins/${H}/resend`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation email resent"))},onError:H=>{K.error(H.message||l("Failed to resend email"))}}),M=k==null?void 0:k.data,Z=(me=M==null?void 0:M.items)!=null?me:[],A=(Ce=M==null?void 0:M.pages)!=null?Ce:1,D=(Ee=T==null?void 0:T.data)!=null?Ee:[],J=O==null?void 0:O.data,pe=f.useMemo(()=>{const H=new Map;for(const Oe of D)H.set(Number(Oe.id),Oe.name);return H},[D]),P=Z.length>0&&Z.every(H=>C.has(H.id)),z=Z.some(H=>C.has(H.id)),q=f.useCallback(()=>{E(H=>{const Oe=new Set(H);if(P)for(const Ve of Z)Oe.delete(Ve.id);else for(const Ve of Z)Oe.add(Ve.id);return Oe})},[P,Z]),oe=f.useCallback(H=>{E(Oe=>{const Ve=new Set(Oe);return Ve.has(H)?Ve.delete(H):Ve.add(H),Ve})},[]);function Se(){i(c),s(1)}function X(H){t(`/optins/${H}`)}const[je,L]=f.useState(!1);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-Ins")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage all opt-in records")})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[r.jsx(FP,{className:"absolute left-2.5 top-2.5 h-3 w-3 text-muted-foreground"}),r.jsx(Re,{placeholder:l("Search email or hash..."),className:"h-8 pl-8 text-xs",value:c,onChange:H=>d(H.target.value),onKeyDown:H=>{H.key==="Enter"&&Se()}})]}),r.jsxs(ye,{value:u,onValueChange:H=>{h(H),s(1)},children:[r.jsx(ge,{className:"h-8 w-[130px] text-xs","aria-label":l("Category"),children:r.jsx(be,{placeholder:l("Category")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All")}),D.map(H=>r.jsx($,{value:String(H.id),children:H.name},H.id))]})]}),r.jsxs(ye,{value:m,onValueChange:H=>{b(H),s(1)},children:[r.jsx(ge,{className:"h-8 w-[120px] text-xs","aria-label":l("Status"),children:r.jsx(be,{placeholder:l("Status")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All")}),r.jsx($,{value:"confirmed",children:l("Confirmed")}),r.jsx($,{value:"pending",children:l("Pending")}),r.jsx($,{value:"revoked",children:l("Revoked")})]})]}),r.jsxs(ye,{value:v,onValueChange:H=>{w(H),s(1)},children:[r.jsx(ge,{className:"h-8 w-[190px] text-xs","aria-label":l("Follow-up actions"),children:r.jsx(be,{placeholder:l("Follow-up actions")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All follow-ups")}),r.jsx($,{value:"problem",children:l("Follow-ups need attention")})]})]}),r.jsxs(ye,{value:j,onValueChange:H=>{y(H),s(1)},children:[r.jsx(ge,{className:"h-8 w-[170px] text-xs","aria-label":l("Confirmation mail"),children:r.jsx(be,{placeholder:l("Confirmation mail")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All mails")}),r.jsx($,{value:"failed",children:l("Mail failed")})]})]})]}),C.size>0&&r.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-muted/50 px-4 py-2.5 animate-in fade-in slide-in-from-top-1 duration-200",children:[r.jsx("span",{className:"text-sm font-medium",children:re(l("%s selected"),C.size)}),r.jsx("div",{className:"h-4 w-px bg-border"}),r.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs text-destructive border-destructive/30 hover:bg-destructive/10",disabled:I.isPending,onClick:()=>L(!0),children:[r.jsx(vn,{className:"h-3 w-3 mr-1"}),I.isPending?l("Deleting..."):l("Delete Selected")]}),r.jsx(U,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:()=>E(new Set),children:l("Clear selection")})]}),r.jsx(ee,{children:r.jsxs(ne,{className:"p-0",children:[R?r.jsx(GO,{}):r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs w-10",children:r.jsx(jo,{checked:P?!0:z?"indeterminate":!1,onCheckedChange:q,"aria-label":l("Select all")})}),r.jsx(Te,{className:"text-xs",children:l("Email")}),r.jsx(Te,{className:"text-xs",children:l("Form")}),r.jsx(Te,{className:"text-xs",children:l("Category")}),r.jsx(Te,{className:"text-xs",children:l("Status")}),r.jsx(Te,{className:"text-xs text-right",children:l("Date")})]})}),r.jsx(rn,{children:Z.length===0?r.jsx(De,{children:r.jsx(le,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No opt-ins found")})}):Z.map(H=>r.jsxs(De,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:Oe=>{Oe.target.closest("[data-checkbox]")||X(H.id)},children:[r.jsx(le,{"data-checkbox":!0,children:r.jsx(jo,{checked:C.has(H.id),onCheckedChange:()=>oe(H.id),onClick:Oe=>Oe.stopPropagation(),"aria-label":re(l("Select opt-in %s"),H.id)})}),r.jsx(le,{children:r.jsx("button",{onClick:Oe=>{Oe.stopPropagation(),t(`/optins/${H.id}`)},className:"text-primary hover:underline text-xs font-medium",children:H.email})}),r.jsx(le,{className:"text-xs text-muted-foreground",children:H.formName||`#${H.formId}`}),r.jsx(le,{className:"text-xs text-muted-foreground",children:pe.get(H.category)||(H.category?String(H.category):"—")}),r.jsxs(le,{children:[r.jsx(Kd,{optIn:H,size:"sm"}),H.mailStatus==="failed"&&r.jsx(dt,{variant:"secondary",className:"ml-1 text-[10px] bg-red-50 text-red-700 border-red-200 dark:bg-red-950 dark:text-red-400 dark:border-red-800",title:l("The confirmation mail could not be handed to the mail server."),children:l("Mail failed")})]}),r.jsx(le,{className:"text-right text-xs text-muted-foreground",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",onClick:Oe=>Oe.stopPropagation(),children:[r.jsx($n,{id:"optins.row-action",data:{optin:H}}),r.jsx("span",{children:H.createtime})]})})]},H.id))})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsxs("span",{className:"text-xs text-muted-foreground",children:[re(l("Page %1$s of %2$s"),(Be=M==null?void 0:M.page)!=null?Be:n,A),M!=null&&M.total?re(l(" (%s total)"),M.total):""]}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n<=1,onClick:()=>s(H=>Math.max(1,H-1)),children:r.jsx(pb,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=A,onClick:()=>s(H=>H+1),children:r.jsx(dh,{className:"h-3 w-3"})})]})]})]})}),r.jsx(YO,{detail:J,loading:F,open:!!p,onClose:()=>x(null),onResend:H=>se.mutate(H),resending:se.isPending,onDelete:H=>{S(H)}}),r.jsx(Er,{open:N!==null,onOpenChange:()=>S(null),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>S(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:B.isPending,onClick:()=>{N!==null&&B.mutate(N)},children:B.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Er,{open:je,onOpenChange:()=>L(!1),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:re(l("Delete %s Opt-In(s)"),C.size)}),r.jsx(sr,{children:re(l("Are you sure you want to permanently delete %s selected opt-in(s)? This action cannot be undone."),C.size)})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>L(!1),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:I.isPending,onClick:()=>{I.mutate(Array.from(C)),L(!1)},children:I.isPending?l("Deleting..."):re(l("Delete %s"),C.size)})]})]})})]})}var ZO=Symbol("radix.slottable");function JO(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ZO,t}var M1="AlertDialog",[e3]=Mt(M1,[aw]),_r=aw(),D1=e=>{const{__scopeAlertDialog:t,...n}=e,s=_r(t);return r.jsx(np,{...s,...n,modal:!0})};D1.displayName=M1;var t3="AlertDialogTrigger",n3=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=_r(n);return r.jsx(c5,{...a,...s,ref:t})});n3.displayName=t3;var r3="AlertDialogPortal",F1=e=>{const{__scopeAlertDialog:t,...n}=e,s=_r(t);return r.jsx(rp,{...s,...n})};F1.displayName=r3;var s3="AlertDialogOverlay",L1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=_r(n);return r.jsx(sl,{...a,...s,ref:t})});L1.displayName=s3;var No="AlertDialogContent",[a3,o3]=e3(No),i3=JO("AlertDialogContent"),$1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:s,...a}=e,o=_r(n),i=f.useRef(null),c=Me(t,i),d=f.useRef(null);return r.jsx(a5,{contentName:No,titleName:z1,docsSlug:"alert-dialog",children:r.jsx(a3,{scope:n,cancelRef:d,children:r.jsxs(al,{role:"alertdialog",...o,...a,ref:c,onOpenAutoFocus:he(a.onOpenAutoFocus,u=>{var h;u.preventDefault(),(h=d.current)==null||h.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[r.jsx(i3,{children:s}),r.jsx(c3,{contentRef:i})]})})})});$1.displayName=No;var z1="AlertDialogTitle",U1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=_r(n);return r.jsx(ol,{...a,...s,ref:t})});U1.displayName=z1;var B1="AlertDialogDescription",V1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=_r(n);return r.jsx(il,{...a,...s,ref:t})});V1.displayName=B1;var l3="AlertDialogAction",H1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=_r(n);return r.jsx(Hd,{...a,...s,ref:t})});H1.displayName=l3;var W1="AlertDialogCancel",q1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,{cancelRef:a}=o3(W1,n),o=_r(n),i=Me(t,a);return r.jsx(Hd,{...o,...s,ref:i})});q1.displayName=W1;var c3=({contentRef:e})=>{const t=`\`${No}\` requires a description for the component to be accessible for screen reader users. | |
| 464 | +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GA="DialogDescriptionWarning",YA=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dw(GA).contentName}}.`;return f.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Xh=Yj,XA=Zj,Zh=ew,rl=tw,sl=nw,al=sw,ol=ow,Vd=lw;const ZA=Xh,uw=({container:e,...t})=>r.jsx(Zh,{container:e!=null?e:Yi(),...t});uw.displayName="SheetPortal";const fw=f.forwardRef(({className:e,...t},n)=>r.jsx(rl,{className:q("fixed inset-0 z-50 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",e),...t,ref:n}));fw.displayName=rl.displayName;const JA=ao("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),mw=f.forwardRef(({side:e="right",className:t,children:n,...s},a)=>r.jsxs(uw,{children:[r.jsx(fw,{}),r.jsxs(sl,{ref:a,className:q(JA({side:e}),t),...s,children:[n,r.jsxs(Vd,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(gd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));mw.displayName=sl.displayName;const e5=f.forwardRef(({className:e,...t},n)=>r.jsx(al,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));e5.displayName=al.displayName;const t5=f.forwardRef(({className:e,...t},n)=>r.jsx(ol,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));t5.displayName=ol.displayName;function ae({className:e,...t}){return r.jsx("div",{className:q("animate-pulse rounded-md bg-muted",e),...t})}const n5="sidebar:state",r5=60*60*24*7,s5="16rem",a5="18rem",o5="3rem",i5="b",hw=f.createContext(null);function il(){const e=f.useContext(hw);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const pw=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:a,children:o,...i},c)=>{const d=F4(),[u,h]=f.useState(!1),[m,v]=f.useState(e),x=t!=null?t:m,j=f.useCallback(p=>{const g=typeof p=="function"?p(x):p;n?n(g):v(g),document.cookie=`${n5}=${g}; path=/; max-age=${r5}`},[n,x]),b=f.useCallback(()=>d?h(p=>!p):j(p=>!p),[d,j,h]);f.useEffect(()=>{const p=g=>{g.key===i5&&(g.metaKey||g.ctrlKey)&&(g.preventDefault(),b())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[b]);const w=x?"expanded":"collapsed",y=f.useMemo(()=>({state:w,open:x,setOpen:j,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:b}),[w,x,j,d,u,h,b]);return r.jsx(hw.Provider,{value:y,children:r.jsx(bj,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":s5,"--sidebar-width-icon":o5,...a},className:q("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:c,...i,children:o})})})});pw.displayName="SidebarProvider";const xw=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:a,...o},i)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:h}=il();return n==="none"?r.jsx("div",{className:q("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:i,...o,children:a}):c?r.jsx(ZA,{open:u,onOpenChange:h,...o,children:r.jsx(mw,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":a5},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):r.jsx("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:r.jsx("div",{className:q("sticky top-0 z-10 hidden h-[calc(100svh-var(--wp-admin--admin-bar--height,32px))] w-[--sidebar-width] shrink-0 transition-[width] duration-200 ease-linear md:flex","group-data-[collapsible=offcanvas]:w-0 group-data-[collapsible=offcanvas]:overflow-hidden",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...o,children:r.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})})});xw.displayName="Sidebar";const gw=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:a}=il();return r.jsxs(V,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:q("h-7 w-7",e),onClick:o=>{t==null||t(o),a()},...n,children:[r.jsx(NP,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});gw.displayName="SidebarTrigger";const l5=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=il();return r.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:q("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});l5.displayName="SidebarRail";const c5=f.forwardRef(({className:e,...t},n)=>r.jsx("main",{ref:n,className:q("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));c5.displayName="SidebarInset";const d5=f.forwardRef(({className:e,...t},n)=>r.jsx(Pe,{ref:n,"data-sidebar":"input",className:q("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));d5.displayName="SidebarInput";const vw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"header",className:q("flex flex-col gap-2 p-2",e),...t}));vw.displayName="SidebarHeader";const yw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"footer",className:q("flex flex-col gap-2 p-2",e),...t}));yw.displayName="SidebarFooter";const u5=f.forwardRef(({className:e,...t},n)=>r.jsx(nl,{ref:n,"data-sidebar":"separator",className:q("mx-2 w-auto bg-sidebar-border",e),...t}));u5.displayName="SidebarSeparator";const bw=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"content",className:q("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));bw.displayName="SidebarContent";const Jh=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group",className:q("relative flex w-full min-w-0 flex-col p-2",e),...t}));Jh.displayName="SidebarGroup";const ep=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ca:"div";return r.jsx(a,{ref:s,"data-sidebar":"group-label",className:q("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});ep.displayName="SidebarGroupLabel";const f5=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?ca:"button";return r.jsx(a,{ref:s,"data-sidebar":"group-action",className:q("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});f5.displayName="SidebarGroupAction";const tp=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:q("w-full text-sm",e),...t}));tp.displayName="SidebarGroupContent";const np=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu",className:q("flex w-full min-w-0 flex-col gap-1",e),...t}));np.displayName="SidebarMenu";const ll=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:q("group/menu-item relative",e),...t}));ll.displayName="SidebarMenuItem";const m5=ao("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),cl=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:s="default",tooltip:a,className:o,...i},c)=>{const d=e?ca:"button",{isMobile:u,state:h}=il(),m=r.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:q(m5({variant:n,size:s}),o),...i});return a?(typeof a=="string"&&(a={children:a}),r.jsxs(E4,{children:[r.jsx(_4,{asChild:!0,children:m}),r.jsx(jj,{side:"right",align:"center",hidden:h!=="collapsed"||u,...a})]})):m});cl.displayName="SidebarMenuButton";const h5=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},a)=>{const o=t?ca:"button";return r.jsx(o,{ref:a,"data-sidebar":"menu-action",className:q("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...s})});h5.displayName="SidebarMenuAction";const p5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:q("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));p5.displayName="SidebarMenuBadge";const x5=f.forwardRef(({className:e,showIcon:t=!1,...n},s)=>{const a=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:q("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&r.jsx(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(ae,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});x5.displayName="SidebarMenuSkeleton";const g5=f.forwardRef(({className:e,...t},n)=>r.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:q("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));g5.displayName="SidebarMenuSub";const v5=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));v5.displayName="SidebarMenuSubItem";const y5=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...a},o)=>{const i=e?ca:"a";return r.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:q("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...a})});y5.displayName="SidebarMenuSubButton";const dl=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...a},o)=>r.jsx(QE,{ref:o,to:s,className:({isActive:i,isPending:c})=>q(e,i&&t,c&&n),...a}));dl.displayName="NavLink";const b5=ao("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-success/15 text-success",pro:"border-transparent bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}});function Ge({className:e,variant:t,...n}){return r.jsx("div",{className:q(b5({variant:t}),e),...n})}const jw="double-opt-in",l=e=>Le.__(e,jw),ww=(e,t,n)=>Le._n(e,t,n,jw),se=(e,...t)=>Le.sprintf(e,...t),j5=[{title:l("Dashboard"),url:"/",icon:vP},{title:l("Opt-Ins"),url:"/optins",icon:An},{title:l("Forms"),url:"/forms",icon:io},{title:l("Categories"),url:"/categories",icon:uh},{title:l("Settings"),url:"/settings",icon:ch},{title:l("Database"),url:"/database",icon:qi},{title:l("Audit Log"),url:"/audit",icon:xd}],w5=[],N5={BarChart3:cP,LogOut:u0,UserPlus:h0,Plug:lh,Mail:An,FileText:io,Tag:uh,Settings:ch,Palette:f0,Database:qi,ScrollText:xd,Boxes:oo},ul={title:l("License"),url:"/license",icon:d0},fl={title:l("Addons"),url:"/addons",icon:oo};function S5(){var h;const{state:e}=il(),t=e==="collapsed",n=cs(),{isProInstalled:s,isProLicenseActive:a}=tl(),o=kt(),{data:i}=Ce({queryKey:["addons-manifest"],queryFn:()=>Y("/addons"),enabled:s}),d=[...((h=i==null?void 0:i.addons)!=null?h:[]).filter(m=>{var v;return m.available&&Array.isArray((v=m.ui)==null?void 0:v.sidebar)}).flatMap(m=>{var v;return((v=m.ui.sidebar)!=null?v:[]).map(x=>{var j;return{title:x.title,url:x.url,icon:(j=N5[x.icon])!=null?j:lh}})}),...w5],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(xw,{collapsible:"icon",children:[r.jsx(vw,{children:r.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[r.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary text-primary-foreground",children:r.jsx(An,{className:"h-4 w-4"})}),!t&&r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:"text-sm font-semibold",children:"Double Opt-In"}),r.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["v",o.version]})]})]})}),r.jsxs(bw,{children:[r.jsxs(Jh,{children:[r.jsx(ep,{children:l("Navigation")}),r.jsx(tp,{children:r.jsx(np,{children:j5.map(m=>r.jsx(ll,{children:r.jsx(cl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(dl,{to:m.url,end:m.url==="/",className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:m.title})]})})},m.title))})})]}),s&&r.jsxs(Jh,{children:[r.jsx(ep,{children:l("Pro Features")}),r.jsx(tp,{children:r.jsxs(np,{children:[d.map(m=>r.jsx(ll,{children:r.jsx(cl,{asChild:!0,isActive:u(m.url),tooltip:m.title,children:r.jsxs(dl,{to:m.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(m.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"flex-1",children:m.title}),!a&&r.jsxs(r.Fragment,{children:[r.jsx(Ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 border-primary text-primary",children:l("PRO")}),r.jsx(Nr,{className:"h-3 w-3 text-warning shrink-0"})]})]})]})})},m.title)),r.jsx(ll,{children:r.jsx(cl,{asChild:!0,isActive:u(ul.url),tooltip:ul.title,children:r.jsxs(dl,{to:ul.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(ul.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:ul.title})]})})}),r.jsx(ll,{children:r.jsx(cl,{asChild:!0,isActive:u(fl.url),tooltip:fl.title,children:r.jsxs(dl,{to:fl.url,end:!0,className:"flex items-center gap-2",children:[r.jsx(fl.icon,{className:"h-4 w-4 shrink-0"}),!t&&r.jsx("span",{children:fl.title})]})})})]})})]})]}),r.jsxs(yw,{children:[(o.supportUrl||o.feedbackUrl)&&r.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-1",children:[o.supportUrl&&r.jsxs("a",{href:o.supportUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(yP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Support")]}),o.feedbackUrl&&r.jsxs("a",{href:o.feedbackUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",children:[r.jsx(wP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Feedback")]})]}),r.jsx("div",{className:"px-2 py-1 text-[10px] text-muted-foreground text-center",children:!t&&l("Double Opt-In for WordPress")})]})]})}const Nw=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Nw.displayName="Breadcrumb";const Sw=f.forwardRef(({className:e,...t},n)=>r.jsx("ol",{ref:n,className:q("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Sw.displayName="BreadcrumbList";const rp=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:q("inline-flex items-center gap-1.5",e),...t}));rp.displayName="BreadcrumbItem";const Cw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const a=e?ca:"a";return r.jsx(a,{ref:s,className:q("transition-colors hover:text-foreground",t),...n})});Cw.displayName="BreadcrumbLink";const kw=f.forwardRef(({className:e,...t},n)=>r.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:q("font-normal text-foreground",e),...t}));kw.displayName="BreadcrumbPage";const Ew=({children:e,className:t,...n})=>r.jsx("li",{role:"presentation","aria-hidden":"true",className:q("[&>svg]:size-3.5",t),...n,children:e!=null?e:r.jsx(ah,{})});Ew.displayName="BreadcrumbSeparator";const C5={"/":l("Dashboard"),"/optins":l("Opt-Ins"),"/forms":l("Forms"),"/categories":l("Categories"),"/settings":l("Settings"),"/email-templates":l("Email Templates"),"/database":l("Database"),"/analytics":l("Analytics"),"/opt-out":l("Opt-Out"),"/user-creation":l("User Creation"),"/api":l("API"),"/audit":l("Audit Log"),"/license":l("License")};function k5(){const e=cs(),t=C5[e.pathname]||l("Page");return r.jsx(pw,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(S5,{}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsxs("header",{className:"sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-4 md:px-6",children:[r.jsx(gw,{}),r.jsx(Nw,{children:r.jsxs(Sw,{children:[r.jsx(rp,{children:r.jsx(Cw,{href:"#/",children:"Double Opt-In"})}),r.jsx(Ew,{}),r.jsx(rp,{children:r.jsx(kw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(ME,{})})]})]})})}function ua({children:e,addonId:t,featureName:n}){var w,y;const s=xn(),{data:a,isLoading:o}=Ce({queryKey:["addons-manifest"],queryFn:()=>Y("/addons")}),i=a==null?void 0:a.addons.find(p=>p.id===t),c=(i==null?void 0:i.available)===!0,{data:d}=Ce({queryKey:["addons-catalog"],queryFn:()=>Y("/addons/catalog"),enabled:!o&&!c});if(o)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ae,{className:"h-8 w-64"}),r.jsx(ae,{className:"h-96 w-full"})]});if(c)return r.jsx(r.Fragment,{children:e});const u=d==null?void 0:d.entries.find(p=>p.id===t),h=(w=u==null?void 0:u.status)!=null?w:"not_installed",m=(y=d==null?void 0:d.hasBundleLicense)!=null?y:!1;let v,x,j,b=oo;return h==="not_installed"?(v=se(l("%s requires the %s addon"),n,n),x=l("Install the addon to unlock this page. Bundled addons can be installed in one click on the Addons page once your Pro license is active."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=oo):h==="inactive"?(v=se(l("%s addon is installed but inactive"),n),x=l("Activate the addon to unlock this page. You can do that from the Addons page in one click."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=Ki):m?(v=se(l("%s addon is not available"),n),x=l("Check the Addons page for diagnostic details. A prerequisite (such as a third-party plugin) may be missing."),j={label:l("Open Addons"),onClick:()=>s("/addons")},b=oo):(v=se(l("%s is included in Pro"),n),x=l("This addon is part of the Double Opt-In Pro bundle. Activate your bundle license to unlock it — one key unlocks every included module."),j={label:l("Open License"),onClick:()=>s("/license")},b=Nr),r.jsx("div",{className:"flex items-center justify-center min-h-[60vh] p-6",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-8 max-w-[480px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto mb-4",children:r.jsx(b,{className:"h-6 w-6 text-muted-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:v}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:x}),r.jsx(V,{onClick:j.onClick,className:"w-full",children:j.label})]})})}function er({id:e,data:t}){const n=f.useSyncExternalStore(wb,()=>Nb(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:a})=>r.jsx(E5,{name:s,mountId:e,children:r.jsx(a,{data:t})},s))})}class E5 extends f.Component{constructor(){super(...arguments);Vo(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){console.error(`[f12-doi] Addon component "${this.props.name}" at mount "${this.props.mountId}" threw`,n,s)}render(){return this.state.error?null:this.props.children}}const ee=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:q("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ee.displayName="Card";const de=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:q("flex flex-col space-y-1.5 p-6",e),...t}));de.displayName="CardHeader";const ue=f.forwardRef(({className:e,...t},n)=>r.jsx("h3",{ref:n,className:q("text-2xl font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";const Re=f.forwardRef(({className:e,...t},n)=>r.jsx("p",{ref:n,className:q("text-sm text-muted-foreground",e),...t}));Re.displayName="CardDescription";const te=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:q("p-6 pt-0",e),...t}));te.displayName="CardContent";const _5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:q("flex items-center p-6 pt-0",e),...t}));_5.displayName="CardFooter";const tn=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:"relative w-full overflow-auto",children:r.jsx("table",{ref:n,className:q("w-full caption-bottom text-sm",e),...t})}));tn.displayName="Table";const yn=f.forwardRef(({className:e,...t},n)=>r.jsx("thead",{ref:n,className:q("[&_tr]:border-b",e),...t}));yn.displayName="TableHeader";const nn=f.forwardRef(({className:e,...t},n)=>r.jsx("tbody",{ref:n,className:q("[&_tr:last-child]:border-0",e),...t}));nn.displayName="TableBody";const P5=f.forwardRef(({className:e,...t},n)=>r.jsx("tfoot",{ref:n,className:q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));P5.displayName="TableFooter";const Me=f.forwardRef(({className:e,...t},n)=>r.jsx("tr",{ref:n,className:q("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Me.displayName="TableRow";const Te=f.forwardRef(({className:e,...t},n)=>r.jsx("th",{ref:n,className:q("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Te.displayName="TableHead";const fe=f.forwardRef(({className:e,...t},n)=>r.jsx("td",{ref:n,className:q("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));fe.displayName="TableCell";const T5=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:q("mt-4 text-sm text-muted-foreground",e),...t}));T5.displayName="TableCaption";const sp=["setup-status"],ap=["setup"];async function R5(){return(await Y("/setup")).data}function A5(e,t){return Y("/setup/step",{method:"POST",body:JSON.stringify({step:e,data:t})})}function O5(){return Y("/setup/test-mail",{method:"POST"})}function I5(){return Y("/setup/finish",{method:"POST"})}function M5(){return Y("/setup/skip",{method:"POST"})}function D5(){return Y("/setup/restart",{method:"POST"})}function F5(){return Ce({queryKey:sp,queryFn:()=>{var e;return(e=kt().setup)!=null?e:null},initialData:()=>{var e;return(e=kt().setup)!=null?e:null},staleTime:1/0})}function L5(){const{data:e}=F5();if(!e||e.status==="done")return null;const t=Math.min(e.step+1,e.steps);return r.jsx(ee,{className:"border-primary/30 bg-primary/[0.04]",children:r.jsxs(te,{className:"flex flex-wrap items-center justify-between gap-4 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(fh,{className:"h-4 w-4 text-primary","aria-hidden":"true"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-sm font-semibold",children:l("Finish setting up Double Opt-In")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:se(l("Step %1$d of %2$d. Your entries so far are saved."),t,e.steps)})]})]}),r.jsx(V,{asChild:!0,children:r.jsxs(Ot,{to:"/setup",children:[l("Continue setup"),r.jsx(a0,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})})]})})}function $5(){const e=xn(),t=qe(),n=ke({mutationFn:D5,onSuccess:()=>{t.setQueryData(sp,{status:"pending",step:0,steps:4}),t.removeQueries({queryKey:ap}),e("/setup")}});return r.jsx(ee,{children:r.jsxs(te,{className:"grid gap-3 p-5",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(fh,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold",children:l("Setup wizard")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Sender, forms, confirmation email and page in four steps. Forms that already use Double Opt-In are not changed.")})]})]}),r.jsx(V,{type:"button",variant:"outline",size:"sm",onClick:()=>n.mutate(),disabled:n.isPending,children:l("Start setup wizard")})]})})}function z5(){return r.jsx(ee,{children:r.jsxs(te,{className:"flex items-start gap-3 p-4",children:[r.jsx(ae,{className:"h-9 w-9 rounded-lg shrink-0"}),r.jsxs("div",{className:"space-y-2 flex-1",children:[r.jsx(ae,{className:"h-3 w-20"}),r.jsx(ae,{className:"h-7 w-16"}),r.jsx(ae,{className:"h-3 w-24"})]})]})})}function U5({rows:e=3,cols:t=3}){return r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsx(Me,{children:Array.from({length:t}).map((n,s)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-16"})},s))})}),r.jsx(nn,{children:Array.from({length:e}).map((n,s)=>r.jsx(Me,{children:Array.from({length:t}).map((a,o)=>r.jsx(fe,{children:r.jsx(ae,{className:"h-3 w-full"})},o))},s))})]})}function op(e){return e.toLocaleString()}function B5(){var c;const{data:e,isLoading:t}=Ce({queryKey:["dashboard-stats"],queryFn:()=>Y("/dashboard/stats")}),{data:n,isLoading:s}=Ce({queryKey:["dashboard-info"],queryFn:()=>Y("/dashboard/quick-info")}),a=e==null?void 0:e.data,o=n==null?void 0:n.data,i=a?[{label:l("Total Opt-Ins"),value:op(a.totalOptins),icon:An,change:a.confirmed+a.pending>0?l("Active"):l("No data")},{label:l("Confirmed"),value:op(a.confirmed),icon:aa,change:se(l("%s%% conversion"),a.conversionRate)},{label:l("Pending"),value:op(a.pending),icon:Gn,change:se(l("%s%% awaiting"),(100-a.conversionRate).toFixed(1))}]:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Dashboard")}),r.jsx("p",{className:"text-muted-foreground",children:l("Overview of your Double Opt-In activity")})]}),r.jsx(er,{id:"dashboard.alert"}),r.jsx(L5,{}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:t?Array.from({length:3}).map((d,u)=>r.jsx(z5,{},u)):i.map(d=>r.jsx(ee,{children:r.jsxs(te,{className:"flex items-start gap-3 p-4",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(d.icon,{className:"h-4.5 w-4.5 text-primary"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:d.label}),r.jsx("p",{className:"text-2xl font-bold text-foreground",children:d.value}),r.jsxs("p",{className:"text-[11px] text-muted-foreground flex items-center gap-1",children:[r.jsx(PP,{className:"h-3 w-3 text-success"}),d.change]})]})]})},d.label))}),r.jsx(er,{id:"dashboard.widget"}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(ue,{className:"text-base",children:l("Recent Opt-Ins")}),r.jsx(Ot,{to:"/optins",className:"text-xs text-primary hover:underline",children:l("View All")})]}),r.jsx(Re,{children:l("Latest opt-in submissions")})]}),r.jsx(te,{children:t?r.jsx(U5,{rows:5,cols:4}):r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{children:l("Email")}),r.jsx(Te,{children:l("Form")}),r.jsx(Te,{children:l("Status")}),r.jsx(Te,{className:"text-right",children:l("Date")})]})}),r.jsx(nn,{children:((c=a==null?void 0:a.recentOptins)!=null?c:[]).map(d=>r.jsxs(Me,{children:[r.jsx(fe,{className:"text-sm",children:d.email}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:d.formName}),r.jsx(fe,{children:r.jsx(Ge,{variant:d.confirmed?"success":"secondary",className:"text-xs",children:d.confirmed?l("Confirmed"):l("Pending")})}),r.jsx(fe,{className:"text-right text-xs text-muted-foreground",children:d.createtime})]},d.id))})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[r.jsxs(ee,{children:[r.jsx(de,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("Quick Info")})}),r.jsx(te,{children:s?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((d,u)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(ae,{className:"h-3 w-20"}),r.jsx(ae,{className:"h-3 w-16"})]},u))}):o?r.jsx("dl",{className:"space-y-2 text-sm",children:[[l("Version"),o.version],[l("Token Expiry"),o.tokenExpiry],[l("Retention"),o.retention],[l("Rate Limit"),o.rateLimit],[l("License"),typeof o.licenseStatus=="object"&&o.licenseStatus!==null?o.licenseStatus.isActive?l("Pro Active"):l("Inactive"):o.licenseStatus]].map(([d,u])=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx("dt",{className:"text-muted-foreground",children:d}),r.jsx("dd",{className:"font-medium text-foreground",children:u})]},d))}):null})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("Quick Links")})}),r.jsx(te,{children:r.jsx("ul",{className:"space-y-1.5 text-sm",children:[[l("All Opt-Ins"),"/optins"],[l("Form Settings"),"/forms"],[l("Global Settings"),"/settings"],[l("Analytics"),"/analytics"],[l("Database"),"/database"]].map(([d,u])=>r.jsx("li",{children:r.jsx(Ot,{to:u,className:"text-primary hover:underline",children:d})},d))})})]})]})]})}function qd(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Hd="Checkbox",[V5]=It(Hd),[q5,ip]=V5(Hd);function H5(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:a,disabled:o,form:i,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[v,x]=Zt({prop:n,defaultProp:a!=null?a:!1,onChange:d,caller:Hd}),[j,b]=f.useState(null),[w,y]=f.useState(null),p=f.useRef(!1),g=j?!!i||!!j.closest("form"):!0,N={checked:v,disabled:o,setChecked:x,control:j,setControl:b,name:c,form:i,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:xs(a)?!1:a,isFormControl:g,bubbleInput:w,setBubbleInput:y};return r.jsx(q5,{scope:t,...N,children:W5(m)?m(N):s})}var _w="CheckboxTrigger",Pw=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},a)=>{const{control:o,value:i,disabled:c,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:v,isFormControl:x,bubbleInput:j}=ip(_w,e),b=Ie(a,h),w=f.useRef(d);return f.useEffect(()=>{const y=o==null?void 0:o.form;if(y){const p=()=>m(w.current);return y.addEventListener("reset",p),()=>y.removeEventListener("reset",p)}},[o,m]),r.jsx(ge.button,{type:"button",role:"checkbox","aria-checked":xs(d)?"mixed":d,"aria-required":u,"data-state":Iw(d),"data-disabled":c?"":void 0,disabled:c,value:i,...s,ref:b,onKeyDown:pe(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:pe(n,y=>{m(p=>xs(p)?!0:!p),j&&x&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})});Pw.displayName=_w;var lp=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:o,required:i,disabled:c,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(H5,{__scopeCheckbox:n,checked:a,defaultChecked:o,disabled:c,required:i,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:v})=>r.jsxs(r.Fragment,{children:[r.jsx(Pw,{...m,ref:t,__scopeCheckbox:n}),v&&r.jsx(Ow,{__scopeCheckbox:n})]})})});lp.displayName=Hd;var Tw="CheckboxIndicator",Rw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,o=ip(Tw,n);return r.jsx(Tn,{present:s||xs(o.checked)||o.checked===!0,children:r.jsx(ge.span,{"data-state":Iw(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});Rw.displayName=Tw;var Aw="CheckboxBubbleInput",Ow=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:i,required:c,disabled:d,name:u,value:h,form:m,bubbleInput:v,setBubbleInput:x}=ip(Aw,e),j=Ie(n,x),b=qd(o),w=Pd(s);f.useEffect(()=>{const p=v;if(!p)return;const g=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(g,"checked").set,k=!a.current;if(b!==o&&S){const _=new Event("click",{bubbles:k});p.indeterminate=xs(o),S.call(p,xs(o)?!1:o),p.dispatchEvent(_)}},[v,b,o,a]);const y=f.useRef(xs(o)?!1:o);return r.jsx(ge.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i!=null?i:y.current,required:c,disabled:d,name:u,value:h,form:m,...t,tabIndex:-1,ref:j,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ow.displayName=Aw;function W5(e){return typeof e=="function"}function xs(e){return e==="indeterminate"}function Iw(e){return xs(e)?"indeterminate":e?"checked":"unchecked"}const jo=f.forwardRef(({className:e,...t},n)=>r.jsx(lp,{ref:n,className:q("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(Rw,{className:q("flex items-center justify-center text-current"),children:r.jsx(ds,{className:"h-4 w-4"})})}));jo.displayName=lp.displayName;function Mw(e,[t,n]){return Math.min(n,Math.max(t,e))}var K5=f.createContext(void 0);function ml(e){const t=f.useContext(K5);return e||t||"ltr"}function Q5(e){const t=G5(e),n=f.forwardRef((s,a)=>{const{children:o,...i}=s,c=f.Children.toArray(o),d=c.find(X5);if(d){const u=d.props.children,h=c.map(m=>m===d?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:m);return r.jsx(t,{...i,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...i,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function G5(e){const t=f.forwardRef((n,s)=>{const{children:a,...o}=n;if(f.isValidElement(a)){const i=J5(a),c=Z5(o,a.props);return a.type!==f.Fragment&&(c.ref=s?so(s,i):i),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y5=Symbol("radix.slottable");function X5(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y5}function Z5(e,t){const n={...t};for(const s in t){const a=e[s],o=t[s];/^on[A-Z]/.test(s)?a&&o?n[s]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...o}:s==="className"&&(n[s]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function J5(e){var s,a;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eO=[" ","Enter","ArrowUp","ArrowDown"],tO=[" ","Enter"],fa="Select",[Wd,Kd,nO]=id(fa),[wo]=It(fa,[nO,Td]),Qd=Td(),[rO,gs]=wo(fa),[sO,aO]=wo(fa),Dw=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:a,onOpenChange:o,value:i,defaultValue:c,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:v,required:x,form:j}=e,b=Qd(t),[w,y]=f.useState(null),[p,g]=f.useState(null),[N,S]=f.useState(!1),k=ml(u),[_,C]=Zt({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:fa}),[R,T]=Zt({prop:i,defaultProp:c,onChange:d,caller:fa}),O=f.useRef(null),D=w?j||!!w.closest("form"):!0,[B,I]=f.useState(new Set),re=Array.from(B).map(F=>F.props.value).join(";");return r.jsx(ij,{...b,children:r.jsxs(rO,{required:x,scope:t,trigger:w,onTriggerChange:y,valueNode:p,onValueNodeChange:g,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:In(),value:R,onValueChange:T,open:_,onOpenChange:C,dir:k,triggerPointerDownPosRef:O,disabled:v,children:[r.jsx(Wd.Provider,{scope:t,children:r.jsx(sO,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{I(ne=>new Set(ne).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{I(ne=>{const A=new Set(ne);return A.delete(F),A})},[]),children:n})}),D?r.jsxs(o1,{"aria-hidden":!0,required:x,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:F=>T(F.target.value),disabled:v,form:j,children:[R===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},re):null]})})};Dw.displayName=fa;var Fw="SelectTrigger",Lw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...a}=e,o=Qd(n),i=gs(Fw,n),c=i.disabled||s,d=Ie(t,i.onTriggerChange),u=Kd(n),h=f.useRef("touch"),[m,v,x]=l1(b=>{const w=u().filter(g=>!g.disabled),y=w.find(g=>g.value===i.value),p=c1(w,b,y);p!==void 0&&i.onValueChange(p.value)}),j=b=>{c||(i.onOpenChange(!0),x()),b&&(i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return r.jsx(lj,{asChild:!0,...o,children:r.jsx(ge.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":i1(i.value)?"":void 0,...a,ref:d,onClick:pe(a.onClick,b=>{b.currentTarget.focus(),h.current!=="mouse"&&j(b)}),onPointerDown:pe(a.onPointerDown,b=>{h.current=b.pointerType;const w=b.target;w.hasPointerCapture(b.pointerId)&&w.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(j(b),b.preventDefault())}),onKeyDown:pe(a.onKeyDown,b=>{const w=m.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&v(b.key),!(w&&b.key===" ")&&eO.includes(b.key)&&(j(),b.preventDefault())})})})});Lw.displayName=Fw;var $w="SelectValue",zw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,children:o,placeholder:i="",...c}=e,d=gs($w,n),{onValueNodeHasChildrenChange:u}=d,h=o!==void 0,m=Ie(t,d.onValueNodeChange);return ht(()=>{u(h)},[u,h]),r.jsx(ge.span,{...c,ref:m,style:{pointerEvents:"none"},children:i1(d.value)?r.jsx(r.Fragment,{children:i}):o})});zw.displayName=$w;var oO="SelectIcon",Uw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...a}=e;return r.jsx(ge.span,{"aria-hidden":!0,...a,ref:t,children:s||"▼"})});Uw.displayName=oO;var iO="SelectPortal",Bw=e=>r.jsx(Bi,{asChild:!0,...e});Bw.displayName=iO;var ma="SelectContent",Vw=f.forwardRef((e,t)=>{const n=gs(ma,e.__scopeSelect),[s,a]=f.useState();if(ht(()=>{a(new DocumentFragment)},[]),!n.open){const o=s;return o?Zs.createPortal(r.jsx(qw,{scope:e.__scopeSelect,children:r.jsx(Wd.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),o):null}return r.jsx(Hw,{...e,ref:t})});Vw.displayName=ma;var Ln=10,[qw,vs]=wo(ma),lO="SelectContentImpl",cO=Q5("SelectContent.RemoveScroll"),Hw=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:x,sticky:j,hideWhenDetached:b,avoidCollisions:w,...y}=e,p=gs(ma,n),[g,N]=f.useState(null),[S,k]=f.useState(null),_=Ie(t,G=>N(G)),[C,R]=f.useState(null),[T,O]=f.useState(null),D=Kd(n),[B,I]=f.useState(!1),re=f.useRef(!1);f.useEffect(()=>{if(g)return Kj(g)},[g]),Aj();const F=f.useCallback(G=>{const[ve,...L]=D().map(he=>he.ref.current),[me]=L.slice(-1),U=document.activeElement;for(const he of G)if(he===U||(he==null||he.scrollIntoView({block:"nearest"}),he===ve&&S&&(S.scrollTop=0),he===me&&S&&(S.scrollTop=S.scrollHeight),he==null||he.focus(),document.activeElement!==U))return},[D,S]),ne=f.useCallback(()=>F([C,g]),[F,C,g]);f.useEffect(()=>{B&&ne()},[B,ne]);const{onOpenChange:A,triggerPointerDownPosRef:M}=p;f.useEffect(()=>{if(g){let G={x:0,y:0};const ve=me=>{var U,he,Ae,He;G={x:Math.abs(Math.round(me.pageX)-((he=(U=M.current)==null?void 0:U.x)!=null?he:0)),y:Math.abs(Math.round(me.pageY)-((He=(Ae=M.current)==null?void 0:Ae.y)!=null?He:0))}},L=me=>{G.x<=10&&G.y<=10?me.preventDefault():g.contains(me.target)||A(!1),document.removeEventListener("pointermove",ve),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",L,{capture:!0})}}},[g,A,M]),f.useEffect(()=>{const G=()=>A(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[A]);const[Z,xe]=l1(G=>{const ve=D().filter(U=>!U.disabled),L=ve.find(U=>U.ref.current===document.activeElement),me=c1(ve,G,L);me&&setTimeout(()=>me.ref.current.focus())}),P=f.useCallback((G,ve,L)=>{const me=!re.current&&!L;(p.value!==void 0&&p.value===ve||me)&&(R(G),me&&(re.current=!0))},[p.value]),$=f.useCallback(()=>g==null?void 0:g.focus(),[g]),W=f.useCallback((G,ve,L)=>{const me=!re.current&&!L;(p.value!==void 0&&p.value===ve||me)&&O(G)},[p.value]),oe=s==="popper"?cp:Ww,Se=oe===cp?{side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:x,sticky:j,hideWhenDetached:b,avoidCollisions:w}:{};return r.jsx(qw,{scope:n,content:g,viewport:S,onViewportChange:k,itemRefCallback:P,selectedItem:C,onItemLeave:$,itemTextRefCallback:W,focusSelectedItem:ne,selectedItemText:T,position:s,isPositioned:B,searchRef:Z,children:r.jsx(Wh,{as:cO,allowPinchZoom:!0,children:r.jsx(zh,{asChild:!0,trapped:p.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:pe(a,G=>{var ve;(ve=p.trigger)==null||ve.focus({preventScroll:!0}),G.preventDefault()}),children:r.jsx(Ui,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx(oe,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:G=>G.preventDefault(),...y,...Se,onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:pe(y.onKeyDown,G=>{const ve=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ve&&G.key.length===1&&xe(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let me=D().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(G.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const U=G.target,he=me.indexOf(U);me=me.slice(he+1)}setTimeout(()=>F(me)),G.preventDefault()}})})})})})})});Hw.displayName=lO;var dO="SelectItemAlignedPosition",Ww=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...a}=e,o=gs(ma,n),i=vs(ma,n),[c,d]=f.useState(null),[u,h]=f.useState(null),m=Ie(t,_=>h(_)),v=Kd(n),x=f.useRef(!1),j=f.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:y,focusSelectedItem:p}=i,g=f.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&b&&w&&y){const _=o.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),T=y.getBoundingClientRect();if(o.dir!=="rtl"){const U=T.left-C.left,he=R.left-U,Ae=_.left-he,He=_.width+Ae,ut=Math.max(He,C.width),_t=window.innerWidth-Ln,cr=Mw(he,[Ln,Math.max(Ln,_t-ut)]);c.style.minWidth=He+"px",c.style.left=cr+"px"}else{const U=C.right-T.right,he=window.innerWidth-R.right-U,Ae=window.innerWidth-_.right-he,He=_.width+Ae,ut=Math.max(He,C.width),_t=window.innerWidth-Ln,cr=Mw(he,[Ln,Math.max(Ln,_t-ut)]);c.style.minWidth=He+"px",c.style.right=cr+"px"}const O=v(),D=window.innerHeight-Ln*2,B=b.scrollHeight,I=window.getComputedStyle(u),re=parseInt(I.borderTopWidth,10),F=parseInt(I.paddingTop,10),ne=parseInt(I.borderBottomWidth,10),A=parseInt(I.paddingBottom,10),M=re+F+B+A+ne,Z=Math.min(w.offsetHeight*5,M),xe=window.getComputedStyle(b),P=parseInt(xe.paddingTop,10),$=parseInt(xe.paddingBottom,10),W=_.top+_.height/2-Ln,oe=D-W,Se=w.offsetHeight/2,G=w.offsetTop+Se,ve=re+F+G,L=M-ve;if(ve<=W){const U=O.length>0&&w===O[O.length-1].ref.current;c.style.bottom="0px";const he=u.clientHeight-b.offsetTop-b.offsetHeight,Ae=Math.max(oe,Se+(U?$:0)+he+ne),He=ve+Ae;c.style.height=He+"px"}else{const U=O.length>0&&w===O[0].ref.current;c.style.top="0px";const Ae=Math.max(W,re+b.offsetTop+(U?P:0)+Se)+L;c.style.height=Ae+"px",b.scrollTop=ve-W+b.offsetTop}c.style.margin=`${Ln}px 0`,c.style.minHeight=Z+"px",c.style.maxHeight=D+"px",s==null||s(),requestAnimationFrame(()=>x.current=!0)}},[v,o.trigger,o.valueNode,c,u,b,w,y,o.dir,s]);ht(()=>g(),[g]);const[N,S]=f.useState();ht(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const k=f.useCallback(_=>{_&&j.current===!0&&(g(),p==null||p(),j.current=!1)},[g,p]);return r.jsx(fO,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:k,children:r.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(ge.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Ww.displayName=dO;var uO="SelectPopperPosition",cp=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:a=Ln,...o}=e,i=Qd(n);return r.jsx(cj,{...i,...o,ref:t,align:s,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});cp.displayName=uO;var[fO,dp]=wo(ma,{}),up="SelectViewport",Kw=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...a}=e,o=vs(up,n),i=dp(up,n),c=Ie(t,o.onViewportChange),d=f.useRef(0);return r.jsxs(r.Fragment,{children:[r.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:s}),r.jsx(Wd.Slot,{scope:n,children:r.jsx(ge.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:pe(a.onScroll,u=>{const h=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=i;if(v!=null&&v.current&&m){const x=Math.abs(d.current-h.scrollTop);if(x>0){const j=window.innerHeight-Ln*2,b=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),y=Math.max(b,w);if(y<j){const p=y+x,g=Math.min(j,p),N=p-g;m.style.height=g+"px",m.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});Kw.displayName=up;var Qw="SelectGroup",[mO,hO]=wo(Qw),pO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=In();return r.jsx(mO,{scope:n,id:a,children:r.jsx(ge.div,{role:"group","aria-labelledby":a,...s,ref:t})})});pO.displayName=Qw;var Gw="SelectLabel",Yw=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=hO(Gw,n);return r.jsx(ge.div,{id:a.id,...s,ref:t})});Yw.displayName=Gw;var Gd="SelectItem",[xO,Xw]=wo(Gd),Zw=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:a=!1,textValue:o,...i}=e,c=gs(Gd,n),d=vs(Gd,n),u=c.value===s,[h,m]=f.useState(o!=null?o:""),[v,x]=f.useState(!1),j=Ie(t,p=>{var g;return(g=d.itemRefCallback)==null?void 0:g.call(d,p,s,a)}),b=In(),w=f.useRef("touch"),y=()=>{a||(c.onValueChange(s),c.onOpenChange(!1))};if(s==="")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 r.jsx(xO,{scope:n,value:s,disabled:a,textId:b,isSelected:u,onItemTextChange:f.useCallback(p=>{m(g=>{var N;return g||((N=p==null?void 0:p.textContent)!=null?N:"").trim()})},[]),children:r.jsx(Wd.ItemSlot,{scope:n,value:s,disabled:a,textValue:h,children:r.jsx(ge.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:j,onFocus:pe(i.onFocus,()=>x(!0)),onBlur:pe(i.onBlur,()=>x(!1)),onClick:pe(i.onClick,()=>{w.current!=="mouse"&&y()}),onPointerUp:pe(i.onPointerUp,()=>{w.current==="mouse"&&y()}),onPointerDown:pe(i.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:pe(i.onPointerMove,p=>{var g;w.current=p.pointerType,a?(g=d.onItemLeave)==null||g.call(d):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(i.onPointerLeave,p=>{var g;p.currentTarget===document.activeElement&&((g=d.onItemLeave)==null||g.call(d))}),onKeyDown:pe(i.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(tO.includes(p.key)&&y(),p.key===" "&&p.preventDefault())})})})})});Zw.displayName=Gd;var hl="SelectItemText",Jw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,...o}=e,i=gs(hl,n),c=vs(hl,n),d=Xw(hl,n),u=aO(hl,n),[h,m]=f.useState(null),v=Ie(t,y=>m(y),d.onItemTextChange,y=>{var p;return(p=c.itemTextRefCallback)==null?void 0:p.call(c,y,d.value,d.disabled)}),x=h==null?void 0:h.textContent,j=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:x},d.value),[d.disabled,d.value,x]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=u;return ht(()=>(b(j),()=>w(j)),[b,w,j]),r.jsxs(r.Fragment,{children:[r.jsx(ge.span,{id:d.textId,...o,ref:v}),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Zs.createPortal(o.children,i.valueNode):null]})});Jw.displayName=hl;var e1="SelectItemIndicator",t1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return Xw(e1,n).isSelected?r.jsx(ge.span,{"aria-hidden":!0,...s,ref:t}):null});t1.displayName=e1;var fp="SelectScrollUpButton",n1=f.forwardRef((e,t)=>{const n=vs(fp,e.__scopeSelect),s=dp(fp,e.__scopeSelect),[a,o]=f.useState(!1),i=Ie(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;o(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(s1,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});n1.displayName=fp;var mp="SelectScrollDownButton",r1=f.forwardRef((e,t)=>{const n=vs(mp,e.__scopeSelect),s=dp(mp,e.__scopeSelect),[a,o]=f.useState(!1),i=Ie(t,s.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<u;o(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(s1,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});r1.displayName=mp;var s1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...a}=e,o=vs("SelectScrollButton",n),i=f.useRef(null),c=Kd(n),d=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>d(),[d]),ht(()=>{var h;const u=c().find(m=>m.ref.current===document.activeElement);(h=u==null?void 0:u.ref.current)==null||h.scrollIntoView({block:"nearest"})},[c]),r.jsx(ge.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:pe(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(s,50))}),onPointerMove:pe(a.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(s,50))}),onPointerLeave:pe(a.onPointerLeave,()=>{d()})})}),gO="SelectSeparator",a1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(ge.div,{"aria-hidden":!0,...s,ref:t})});a1.displayName=gO;var hp="SelectArrow",vO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Qd(n),o=gs(hp,n),i=vs(hp,n);return o.open&&i.position==="popper"?r.jsx(dj,{...a,...s,ref:t}):null});vO.displayName=hp;var yO="SelectBubbleInput",o1=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const a=f.useRef(null),o=Ie(s,a),i=qd(t);return f.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(i!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[i,t]),r.jsx(ge.select,{...n,style:{...Ob,...n.style},ref:o,defaultValue:t})});o1.displayName=yO;function i1(e){return e===""||e===void 0}function l1(e){const t=gn(e),n=f.useRef(""),s=f.useRef(0),a=f.useCallback(i=>{const c=n.current+i;t(c),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),o=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,a,o]}function c1(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=bO(e,Math.max(o,0));a.length===1&&(i=i.filter(u=>u!==n));const d=i.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function bO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var jO=Dw,d1=Lw,wO=zw,NO=Uw,SO=Bw,u1=Vw,CO=Kw,f1=Yw,m1=Zw,kO=Jw,EO=t1,h1=n1,p1=r1,x1=a1;const we=jO,Ne=wO,ye=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(d1,{ref:s,className:q("flex h-10 w-full items-center justify-between rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-colors hover:border-foreground/30",e),...n,children:[t,r.jsx(NO,{asChild:!0,children:r.jsx(sa,{className:"h-4 w-4 opacity-50"})})]}));ye.displayName=d1.displayName;const g1=f.forwardRef(({className:e,...t},n)=>r.jsx(h1,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(dP,{className:"h-4 w-4"})}));g1.displayName=h1.displayName;const v1=f.forwardRef(({className:e,...t},n)=>r.jsx(p1,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(sa,{className:"h-4 w-4"})}));v1.displayName=p1.displayName;const be=f.forwardRef(({className:e,children:t,position:n="popper",...s},a)=>r.jsx(SO,{container:Yi(),children:r.jsxs(u1,{ref:a,className:q("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[r.jsx(g1,{}),r.jsx(CO,{className:q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),r.jsx(v1,{})]})}));be.displayName=u1.displayName;const _O=f.forwardRef(({className:e,...t},n)=>r.jsx(f1,{ref:n,className:q("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));_O.displayName=f1.displayName;const z=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(m1,{ref:s,className:q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(EO,{children:r.jsx(ds,{className:"h-4 w-4"})})}),r.jsx(kO,{children:t})]}));z.displayName=m1.displayName;const PO=f.forwardRef(({className:e,...t},n)=>r.jsx(x1,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));PO.displayName=x1.displayName;const _r=Xh,y1=({container:e,...t})=>r.jsx(Zh,{container:e!=null?e:Yi(),...t});y1.displayName="DialogPortal";const b1=f.forwardRef(({className:e,...t},n)=>r.jsx(rl,{ref:n,className:q("fixed inset-0 z-50 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",e),...t}));b1.displayName=rl.displayName;const tr=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(y1,{children:[r.jsx(b1,{}),r.jsxs(sl,{ref:s,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,r.jsxs(Vd,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(gd,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));tr.displayName=sl.displayName;const nr=({className:e,...t})=>r.jsx("div",{className:q("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});nr.displayName="DialogHeader";const ys=({className:e,...t})=>r.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ys.displayName="DialogFooter";const rr=f.forwardRef(({className:e,...t},n)=>r.jsx(al,{ref:n,className:q("text-lg font-semibold leading-none tracking-tight",e),...t}));rr.displayName=al.displayName;const sr=f.forwardRef(({className:e,...t},n)=>r.jsx(ol,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));sr.displayName=ol.displayName;var Yd="Collapsible",[TO,j1]=It(Yd),[RO,pp]=TO(Yd),w1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:o,onOpenChange:i,...c}=e,[d,u]=Zt({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:Yd});return r.jsx(RO,{scope:n,disabled:o,contentId:In(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(ge.div,{"data-state":yp(d),"data-disabled":o?"":void 0,...c,ref:t})})});w1.displayName=Yd;var N1="CollapsibleTrigger",xp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=pp(N1,n);return r.jsx(ge.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":yp(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:pe(e.onClick,a.onOpenToggle)})});xp.displayName=N1;var gp="CollapsibleContent",vp=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=pp(gp,e.__scopeCollapsible);return r.jsx(Tn,{present:n||a.open,children:({present:o})=>r.jsx(AO,{...s,ref:t,present:o})})});vp.displayName=gp;var AO=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:a,...o}=e,i=pp(gp,n),[c,d]=f.useState(s),u=f.useRef(null),h=Ie(t,u),m=f.useRef(0),v=m.current,x=f.useRef(0),j=x.current,b=i.open||c,w=f.useRef(b),y=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),ht(()=>{const p=u.current;if(p){y.current=y.current||{transitionDuration:p.style.transitionDuration,animationName:p.style.animationName},p.style.transitionDuration="0s",p.style.animationName="none";const g=p.getBoundingClientRect();m.current=g.height,x.current=g.width,w.current||(p.style.transitionDuration=y.current.transitionDuration,p.style.animationName=y.current.animationName),d(s)}},[i.open,s]),r.jsx(ge.div,{"data-state":yp(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...o,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:b&&a})});function yp(e){return e?"open":"closed"}var S1=w1,OO=xp,IO=vp;const pl=S1,xl=xp,gl=vp;function MO(){return r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsx(Me,{children:Array.from({length:7}).map((e,t)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-12"})},t))})}),r.jsx(nn,{children:Array.from({length:5}).map((e,t)=>r.jsx(Me,{children:Array.from({length:7}).map((n,s)=>r.jsx(fe,{children:r.jsx(ae,{className:"h-3 w-full"})},s))},t))})]})}function DO({detail:e,loading:t,open:n,onClose:s,onResend:a,resending:o,onDelete:i}){const[c,d]=f.useState(!1);return r.jsx(_r,{open:n,onOpenChange:()=>s(),children:r.jsx(tr,{className:"max-w-lg p-0 gap-0 overflow-hidden rounded-2xl border border-border/50 shadow-xl",children:t?r.jsx("div",{className:"p-6 space-y-4",children:Array.from({length:6}).map((u,h)=>r.jsxs("div",{className:"flex justify-between",children:[r.jsx(ae,{className:"h-3 w-24"}),r.jsx(ae,{className:"h-3 w-32"})]},h))}):e?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"px-6 pt-6 pb-4 border-b border-border/50",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsx("div",{className:"min-w-0",children:r.jsxs(nr,{className:"space-y-1",children:[r.jsx(rr,{className:"text-base font-semibold tracking-tight",children:l("Opt-In Detail")}),r.jsx(sr,{className:"font-mono text-xs text-muted-foreground truncate",children:e.hash})]})}),e.confirmed?r.jsxs(Ge,{className:"shrink-0 bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-50 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(aa,{className:"h-3 w-3 mr-1"}),l("Confirmed")]}):r.jsxs(Ge,{className:"shrink-0 bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-50 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(Gn,{className:"h-3 w-3 mr-1"}),l("Pending")]})]})}),r.jsxs("div",{className:"px-6 py-4 space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsx(vl,{label:l("Email"),value:e.email,fullWidth:!0}),r.jsx(vl,{label:l("Form"),value:e.formName||`#${e.formId}`}),r.jsx(vl,{label:l("Category"),value:e.category?String(e.category):"—"}),r.jsx(vl,{label:l("Created"),value:e.createtime}),r.jsx(vl,{label:l("Updated"),value:e.updatetime})]}),(e.ipRegister||e.ipConfirmation||e.ipOptout)&&r.jsxs("div",{className:"rounded-lg bg-muted/50 border border-border/50 p-3 space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[r.jsx(pP,{className:"h-3 w-3"}),l("IP Addresses")]}),r.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:[e.ipRegister&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Register:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipRegister})]}),e.ipConfirmation&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Confirm:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipConfirmation})]}),e.ipOptout&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Opt-out:")," "]}),r.jsx("span",{className:"font-mono",children:e.ipOptout})]})]}),e.optouttime&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Opt-out time:")," "]}),r.jsx("span",{children:e.optouttime})]}),e.reminderSentAt&&r.jsxs("div",{className:"text-xs",children:[r.jsxs("span",{className:"text-muted-foreground",children:[l("Reminder sent:")," "]}),r.jsx("span",{children:e.reminderSentAt})]})]}),e.formData&&Object.keys(e.formData).length>0&&r.jsxs(pl,{open:c,onOpenChange:d,children:[r.jsxs(xl,{className:"flex items-center justify-between w-full rounded-lg border border-border/50 px-3 py-2 text-xs font-medium text-muted-foreground hover:bg-muted/50 transition-colors",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(io,{className:"h-3 w-3"}),se(l("Form Data (%s fields)"),Object.keys(e.formData).length)]}),r.jsx(sa,{className:`h-3 w-3 transition-transform duration-200 ${c?"rotate-180":""}`})]}),r.jsx(gl,{className:"mt-2",children:r.jsx("div",{className:"rounded-lg border border-border/50 divide-y divide-border/50 overflow-hidden",children:Object.entries(e.formData).map(([u,h])=>r.jsxs("div",{className:"flex justify-between px-3 py-2 text-xs",children:[r.jsx("span",{className:"text-muted-foreground font-mono",children:u}),r.jsx("span",{className:"font-medium max-w-[60%] text-right break-all",children:typeof h=="object"?JSON.stringify(h):String(h)})]},u))})})]}),e.consentText&&r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-3",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-blue-600 dark:text-blue-400 mb-1",children:[r.jsx(yt,{className:"h-3 w-3"}),l("Consent Text")]}),r.jsx("p",{className:"text-xs text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:e.consentText})]})]}),r.jsxs("div",{className:"px-6 py-4 border-t border-border/50 bg-muted/30 flex items-center gap-2",children:[r.jsxs(V,{variant:"outline",size:"sm",className:"rounded-lg",disabled:o,onClick:()=>a(e.id),children:[r.jsx(An,{className:"h-3.5 w-3.5 mr-1.5"}),l(o?"Sending...":"Resend Email")]}),r.jsxs(V,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>i(e.id),children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}):null})})}function vl({label:e,value:t,fullWidth:n}){return r.jsxs("div",{className:n?"col-span-2":"",children:[r.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-0.5",children:e}),r.jsx("div",{className:"text-sm font-medium truncate",children:t||"—"})]})}function FO(){var G,ve,L,me;const e=qe(),t=xn(),[n,s]=f.useState(1),[a]=f.useState(20),[o,i]=f.useState(""),[c,d]=f.useState(""),[u,h]=f.useState("all"),[m,v]=f.useState("all"),[x,j]=f.useState("all"),[b,w]=f.useState(null),[y,p]=f.useState(null),[g,N]=f.useState(new Set),{data:S,isLoading:k}=Ce({queryKey:["optins",n,a,o,u,m,x],queryFn:()=>{const U=new URLSearchParams({page:String(n),per_page:String(a)});return o&&U.set("search",o),u!=="all"&&U.set("category",u),m!=="all"&&U.set("status",m),x!=="all"&&U.set("follow_up",x),Y(`/optins?${U.toString()}`)}}),{data:_}=Ce({queryKey:["categories"],queryFn:()=>Y("/categories")}),{data:C,isLoading:R}=Ce({queryKey:["optin",b],queryFn:()=>Y(`/optins/${b}`),enabled:!!b}),T=ke({mutationFn:U=>Y(`/optins/${U}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),p(null),b===y&&w(null),N(U=>{const he=new Set(U);return y!==null&&he.delete(y),he})},onError:U=>{K.error(U.message||l("Failed to delete opt-in"))}}),O=ke({mutationFn:async U=>{const Ae=(await Promise.allSettled(U.map(He=>Y(`/optins/${He}`,{method:"DELETE"})))).filter(He=>He.status==="rejected").length;if(Ae>0)throw new Error(se(l("Failed to delete %1$s of %2$s items"),Ae,U.length))},onSuccess:()=>{K.success(se(l("%s opt-in(s) deleted"),g.size)),e.invalidateQueries({queryKey:["optins"]}),N(new Set),w(null)},onError:U=>{K.error(U.message||l("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),D=ke({mutationFn:U=>Y(`/optins/${U}/resend`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation email resent"))},onError:U=>{K.error(U.message||l("Failed to resend email"))}}),B=S==null?void 0:S.data,I=(G=B==null?void 0:B.items)!=null?G:[],re=(ve=B==null?void 0:B.pages)!=null?ve:1,F=(L=_==null?void 0:_.data)!=null?L:[],ne=C==null?void 0:C.data,A=f.useMemo(()=>{const U=new Map;for(const he of F)U.set(he.id,he.name);return U},[F]),M=I.length>0&&I.every(U=>g.has(U.id)),Z=I.some(U=>g.has(U.id)),xe=f.useCallback(()=>{N(U=>{const he=new Set(U);if(M)for(const Ae of I)he.delete(Ae.id);else for(const Ae of I)he.add(Ae.id);return he})},[M,I]),P=f.useCallback(U=>{N(he=>{const Ae=new Set(he);return Ae.has(U)?Ae.delete(U):Ae.add(U),Ae})},[]);function $(){i(c),s(1)}function W(U){t(`/optins/${U}`)}const[oe,Se]=f.useState(!1);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-Ins")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage all opt-in records")})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[r.jsx(kP,{className:"absolute left-2.5 top-2.5 h-3 w-3 text-muted-foreground"}),r.jsx(Pe,{placeholder:l("Search email or hash..."),className:"h-8 pl-8 text-xs",value:c,onChange:U=>d(U.target.value),onKeyDown:U=>{U.key==="Enter"&&$()}})]}),r.jsxs(we,{value:u,onValueChange:U=>{h(U),s(1)},children:[r.jsx(ye,{className:"h-8 w-[130px] text-xs","aria-label":l("Category"),children:r.jsx(Ne,{placeholder:l("Category")})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All")}),F.map(U=>r.jsx(z,{value:String(U.id),children:U.name},U.id))]})]}),r.jsxs(we,{value:m,onValueChange:U=>{v(U),s(1)},children:[r.jsx(ye,{className:"h-8 w-[120px] text-xs","aria-label":l("Status"),children:r.jsx(Ne,{placeholder:l("Status")})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All")}),r.jsx(z,{value:"confirmed",children:l("Confirmed")}),r.jsx(z,{value:"pending",children:l("Pending")})]})]}),r.jsxs(we,{value:x,onValueChange:U=>{j(U),s(1)},children:[r.jsx(ye,{className:"h-8 w-[190px] text-xs","aria-label":l("Follow-up actions"),children:r.jsx(Ne,{placeholder:l("Follow-up actions")})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All follow-ups")}),r.jsx(z,{value:"problem",children:l("Follow-ups need attention")})]})]})]}),g.size>0&&r.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-muted/50 px-4 py-2.5 animate-in fade-in slide-in-from-top-1 duration-200",children:[r.jsx("span",{className:"text-sm font-medium",children:se(l("%s selected"),g.size)}),r.jsx("div",{className:"h-4 w-px bg-border"}),r.jsxs(V,{variant:"outline",size:"sm",className:"h-7 text-xs text-destructive border-destructive/30 hover:bg-destructive/10",disabled:O.isPending,onClick:()=>Se(!0),children:[r.jsx(vn,{className:"h-3 w-3 mr-1"}),O.isPending?l("Deleting..."):l("Delete Selected")]}),r.jsx(V,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:()=>N(new Set),children:l("Clear selection")})]}),r.jsx(ee,{children:r.jsxs(te,{className:"p-0",children:[k?r.jsx(MO,{}):r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs w-10",children:r.jsx(jo,{checked:M?!0:Z?"indeterminate":!1,onCheckedChange:xe,"aria-label":l("Select all")})}),r.jsx(Te,{className:"text-xs",children:l("Email")}),r.jsx(Te,{className:"text-xs",children:l("Form")}),r.jsx(Te,{className:"text-xs",children:l("Category")}),r.jsx(Te,{className:"text-xs",children:l("Status")}),r.jsx(Te,{className:"text-xs text-right",children:l("Date")})]})}),r.jsx(nn,{children:I.length===0?r.jsx(Me,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No opt-ins found")})}):I.map(U=>r.jsxs(Me,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:he=>{he.target.closest("[data-checkbox]")||W(U.id)},children:[r.jsx(fe,{"data-checkbox":!0,children:r.jsx(jo,{checked:g.has(U.id),onCheckedChange:()=>P(U.id),onClick:he=>he.stopPropagation(),"aria-label":se(l("Select opt-in %s"),U.id)})}),r.jsx(fe,{children:r.jsx("button",{onClick:he=>{he.stopPropagation(),t(`/optins/${U.id}`)},className:"text-primary hover:underline text-xs font-medium",children:U.email})}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:U.formName||`#${U.formId}`}),r.jsx(fe,{className:"text-xs text-muted-foreground",children:A.get(U.category)||(U.category?String(U.category):"—")}),r.jsx(fe,{children:U.confirmed?r.jsxs(Ge,{variant:"secondary",className:"text-[10px] bg-emerald-50 text-emerald-700 border-emerald-200 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(aa,{className:"h-2.5 w-2.5 mr-0.5"}),l("Confirmed")]}):r.jsxs(Ge,{variant:"secondary",className:"text-[10px] bg-amber-50 text-amber-700 border-amber-200 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(Gn,{className:"h-2.5 w-2.5 mr-0.5"}),l("Pending")]})}),r.jsx(fe,{className:"text-right text-xs text-muted-foreground",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",onClick:he=>he.stopPropagation(),children:[r.jsx(er,{id:"optins.row-action",data:{optin:U}}),r.jsx("span",{children:U.createtime})]})})]},U.id))})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsxs("span",{className:"text-xs text-muted-foreground",children:[se(l("Page %1$s of %2$s"),(me=B==null?void 0:B.page)!=null?me:n,re),B!=null&&B.total?se(l(" (%s total)"),B.total):""]}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(V,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n<=1,onClick:()=>s(U=>Math.max(1,U-1)),children:r.jsx(o0,{className:"h-3 w-3"})}),r.jsx(V,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=re,onClick:()=>s(U=>U+1),children:r.jsx(ah,{className:"h-3 w-3"})})]})]})]})}),r.jsx(DO,{detail:ne,loading:R,open:!!b,onClose:()=>w(null),onResend:U=>D.mutate(U),resending:D.isPending,onDelete:U=>{p(U)}}),r.jsx(_r,{open:y!==null,onOpenChange:()=>p(null),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",className:"rounded-lg",onClick:()=>p(null),children:l("Cancel")}),r.jsx(V,{variant:"destructive",className:"rounded-lg",disabled:T.isPending,onClick:()=>{y!==null&&T.mutate(y)},children:T.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(_r,{open:oe,onOpenChange:()=>Se(!1),children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:se(l("Delete %s Opt-In(s)"),g.size)}),r.jsx(sr,{children:se(l("Are you sure you want to permanently delete %s selected opt-in(s)? This action cannot be undone."),g.size)})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",className:"rounded-lg",onClick:()=>Se(!1),children:l("Cancel")}),r.jsx(V,{variant:"destructive",className:"rounded-lg",disabled:O.isPending,onClick:()=>{O.mutate(Array.from(g)),Se(!1)},children:O.isPending?l("Deleting..."):se(l("Delete %s"),g.size)})]})]})})]})}var LO=Symbol("radix.slottable");function $O(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=LO,t}var C1="AlertDialog",[zO]=It(C1,[Gj]),Pr=Gj(),k1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(Xh,{...s,...n,modal:!0})};k1.displayName=C1;var UO="AlertDialogTrigger",BO=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(XA,{...a,...s,ref:t})});BO.displayName=UO;var VO="AlertDialogPortal",E1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(Zh,{...s,...n})};E1.displayName=VO;var qO="AlertDialogOverlay",_1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(rl,{...a,...s,ref:t})});_1.displayName=qO;var No="AlertDialogContent",[HO,WO]=zO(No),KO=$O("AlertDialogContent"),P1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:s,...a}=e,o=Pr(n),i=f.useRef(null),c=Ie(t,i),d=f.useRef(null);return r.jsx(KA,{contentName:No,titleName:T1,docsSlug:"alert-dialog",children:r.jsx(HO,{scope:n,cancelRef:d,children:r.jsxs(sl,{role:"alertdialog",...o,...a,ref:c,onOpenAutoFocus:pe(a.onOpenAutoFocus,u=>{var h;u.preventDefault(),(h=d.current)==null||h.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[r.jsx(KO,{children:s}),r.jsx(GO,{contentRef:i})]})})})});P1.displayName=No;var T1="AlertDialogTitle",R1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(al,{...a,...s,ref:t})});R1.displayName=T1;var A1="AlertDialogDescription",O1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(ol,{...a,...s,ref:t})});O1.displayName=A1;var QO="AlertDialogAction",I1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(Vd,{...a,...s,ref:t})});I1.displayName=QO;var M1="AlertDialogCancel",D1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,{cancelRef:a}=WO(M1,n),o=Pr(n),i=Ie(t,a);return r.jsx(Vd,{...o,...s,ref:i})});D1.displayName=M1;var GO=({contentRef:e})=>{const t=`\`${No}\` requires a description for the component to be accessible for screen reader users. | |
| 480 | 465 | |
| 481 | -You can add a description to the \`${No}\` by passing a \`${B1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. | |
| 466 | +You can add a description to the \`${No}\` by passing a \`${A1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. | |
| 482 | 467 | |
| 483 | 468 | Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${No}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. |
| 484 | 469 | |
| 485 | -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var s;document.getElementById((s=e.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},d3=D1,u3=F1,K1=L1,Q1=$1,G1=H1,Y1=q1,X1=U1,Z1=V1;const f3=d3,J1=({container:e,...t})=>r.jsx(u3,{container:e!=null?e:Zi(),...t});J1.displayName="AlertDialogPortal";const eN=f.forwardRef(({className:e,...t},n)=>r.jsx(K1,{className:V("fixed inset-0 z-50 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",e),...t,ref:n}));eN.displayName=K1.displayName;const tN=f.forwardRef(({className:e,...t},n)=>r.jsxs(J1,{children:[r.jsx(eN,{}),r.jsx(Q1,{ref:n,className:V("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));tN.displayName=Q1.displayName;const nN=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});nN.displayName="AlertDialogHeader";const rN=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});rN.displayName="AlertDialogFooter";const sN=f.forwardRef(({className:e,...t},n)=>r.jsx(X1,{ref:n,className:V("text-lg font-semibold",e),...t}));sN.displayName=X1.displayName;const aN=f.forwardRef(({className:e,...t},n)=>r.jsx(Z1,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));aN.displayName=Z1.displayName;const oN=f.forwardRef(({className:e,...t},n)=>r.jsx(G1,{ref:n,className:V(Bh(),e),...t}));oN.displayName=G1.displayName;const iN=f.forwardRef(({className:e,...t},n)=>r.jsx(Y1,{ref:n,className:V(Bh({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));iN.displayName=Y1.displayName;function m3(e){switch(e){case"pending":return l("Pending");case"running":return l("Running");case"succeeded":return l("Done");case"failed_retryable":return l("Failed — retry scheduled");case"failed_permanent":return l("Failed");case"unknown":return l("Outcome unknown");case"skipped":return l("Skipped")}}function h3(e){switch(e){case"completed":return l("Completed");case"partial":return l("Partially successful");case"failed":return l("Failed");case"unknown":return l("Unclear");case"pending":return l("In progress");case"legacy_unknown":return l("No status recorded");default:return l("None")}}function p3(e){var n;return(n={http_forbidden:l("The internal request was blocked (HTTP 401/403) — usually a firewall or security plugin."),http_not_found:l("The internal request target was not found (HTTP 404)."),http_rate_limited:l("The internal request was rate-limited (HTTP 429)."),http_redirect:l("The internal request was redirected; redirects are not followed."),http_server_error:l("The server answered with an error (HTTP 5xx) — the action may have run."),http_client_error:l("The internal request was rejected."),invalid_response:l("The response could not be read — the action may have run."),transport_connect_failed:l("The site could not reach itself; nothing was executed."),transport_timeout_unknown:l("The request timed out after it was sent — the action may have run."),transport_error_unknown:l("The connection broke after the request was sent — the action may have run."),captcha_revalidation_failed:l("The spam protection rejected the confirmed submission."),validation_failed:l("The form rejected the stored submission."),form_rejected:l("The form rejected the stored submission."),form_missing:l("The form no longer exists."),integration_unavailable:l("The form plugin is not active."),replay_unauthorized:l("The internal request was not accepted as an authorised replay."),registrar_unavailable:l("The form plugin's actions could not be restricted; nothing was executed."),entry_write_failed:l("The entry could not be saved."),entry_write_partial:l("The entry was saved incompletely."),entry_missing:l("The stored form entry no longer exists."),mail_handoff_failed:l("The mail was not handed to the mailer."),action_failed:l("The action reported an error."),action_outcome_unknown:l("The action did not report a result — it may have run."),action_removed:l("The action was removed from the form after the opt-in was confirmed."),adapter_exception:l("An unexpected error interrupted the action — it may have run."),lease_expired:l("The attempt was interrupted — the action may have run."),payload_missing:l("The stored submission data is missing."),files_missing:l("Uploaded files needed for this action are missing."),plan_failed:l("The follow-up actions could not be determined."),spam_rejected:l("The form's spam check rejected the stored submission."),submission_aborted:l("The form plugin aborted the submission."),send_default_mail_disabled:l("Disabled by the f12_cf7_doubleoptin_send_default_mail filter."),not_supported:l("Not supported by this form plugin edition."),not_applicable_in_replay:l("Not applicable after confirmation."),no_recipient:l("No recipient configured."),no_actions_configured:l("The form has no follow-up actions."),no_notifications_configured:l("The form has no notification mails set up."),opted_out:l("The address has opted out.")}[e])!=null?n:e}function x3({status:e}){switch(e){case"succeeded":return r.jsx(qi,{className:"h-3.5 w-3.5 text-emerald-600","aria-hidden":"true"});case"failed_permanent":return r.jsx(uh,{className:"h-3.5 w-3.5 text-destructive","aria-hidden":"true"});case"failed_retryable":return r.jsx(pd,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"unknown":return r.jsx(NP,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"skipped":return r.jsx("span",{className:"inline-block h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true",children:"–"});default:return r.jsx(ds,{className:"h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true"})}}function g3({optinId:e}){const t=Ke(),[n,s]=f.useState(!1),a=["optin-follow-ups",e],{data:o,isLoading:i}=Ne({queryKey:a,queryFn:()=>G(`/optins/${e}/follow-ups`)}),c=ke({mutationFn:w=>G(`/optins/${e}/follow-ups/retry`,{method:"POST",body:JSON.stringify({include_unknown:w})}),onSuccess:w=>{var j;t.setQueryData(a,w),t.invalidateQueries({queryKey:["optins"]}),((j=w==null?void 0:w.data)==null?void 0:j.aggregate)==="completed"?K.success(l("Follow-up actions completed")):K.warning(l("Retry finished — some actions still need attention"))},onError:w=>K.error(w.message||l("Retry failed"))});if(i)return r.jsx(ae,{className:"h-32 w-full"});const d=o==null?void 0:o.data;if(!d||!d.confirmed&&d.actions.length===0)return null;const u=d.actions.filter(w=>w.action_kind!=="marker"||w.status!=="skipped"),h=u.some(w=>["pending","failed_retryable","failed_permanent"].includes(w.status)),m=u.some(w=>w.status==="unknown"),b=["partial","failed","unknown"].includes(d.aggregate),v=()=>{const w={optin_id:d.optin_id,form_id:d.form_id,aggregate:d.aggregate,versions:d.versions,actions:d.actions.map(g=>({action_id:g.action_id,status:g.status,error_code:g.error_code,http_status:g.http_status,response_kind:g.response_kind,attempts:g.attempts,attempt_id:g.attempt_id,trigger:g.trigger,started_at:g.started_at,finished_at:g.finished_at,next_attempt_at:g.next_attempt_at,evidence:g.evidence,entry_ref:g.entry_ref}))};navigator.clipboard.writeText(JSON.stringify(w,null,2)).then(()=>K.success(l("Diagnosis copied to clipboard")),()=>K.error(l("Failed to copy")))};return r.jsxs(ee,{role:"region","aria-label":l("Follow-up actions"),className:b?"border-amber-300 dark:border-amber-800":void 0,children:[r.jsxs(ue,{className:"flex flex-row flex-wrap items-center justify-between gap-2 space-y-0",children:[r.jsxs(fe,{className:"text-sm flex items-center gap-2 whitespace-nowrap",children:[b&&r.jsx(Nt,{className:"h-4 w-4 text-amber-600","aria-hidden":"true"}),l("Follow-up actions"),r.jsx(dt,{variant:"outline",className:"font-normal",children:h3(d.aggregate)})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(U,{variant:"ghost",size:"sm",onClick:v,children:[r.jsx(fh,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),l("Copy diagnosis")]}),d.managed&&h&&r.jsxs(U,{variant:"outline",size:"sm",disabled:c.isPending,onClick:()=>c.mutate(!1),children:[r.jsx(pd,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),c.isPending?l("Running..."):l("Retry failed actions")]}),d.managed&&m&&r.jsx(U,{variant:"outline",size:"sm",className:"text-amber-700 border-amber-300 hover:bg-amber-50 dark:text-amber-400 dark:border-amber-800 dark:hover:bg-amber-950",disabled:c.isPending,onClick:()=>s(!0),children:l("Also retry unclear actions")})]})]}),r.jsxs(ne,{className:"space-y-3",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The confirmation stays valid either way. This shows whether the form's own actions — stored entry, notification mails, webhooks — ran after it.")}),d.aggregate==="legacy_unknown"&&r.jsx("p",{className:"text-sm",children:l("This opt-in was confirmed before follow-up actions were recorded (or by an integration that does not report them). It is not replayed automatically, so historic mails are not sent again.")}),u.length>0&&r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{children:l("Action")}),r.jsx(Te,{children:l("Status")}),r.jsx(Te,{children:l("Reason")}),r.jsx(Te,{className:"text-right",children:l("Attempts")}),r.jsx(Te,{children:l("Last attempt (UTC)")})]})}),r.jsx(rn,{children:u.map(w=>r.jsxs(De,{children:[r.jsxs(le,{children:[r.jsx("div",{className:"font-medium",children:w.action_label||w.action_id}),r.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:w.action_id})]}),r.jsx(le,{children:r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(x3,{status:w.status}),m3(w.status)]})}),r.jsxs(le,{className:"text-xs",children:[w.error_code?p3(w.error_code):"—",w.http_status>0&&r.jsxs("span",{className:"text-muted-foreground",children:[" (HTTP ",w.http_status,")"]}),w.status==="failed_retryable"&&w.next_attempt_at&&r.jsx("div",{className:"text-muted-foreground",children:re(l("Next automatic attempt: %s"),w.next_attempt_at)}),w.entry_ref&&r.jsx("div",{className:"text-muted-foreground",children:re(l("Entry: %s"),w.entry_ref)})]}),r.jsx(le,{className:"text-right tabular-nums",children:w.attempts}),r.jsx(le,{className:"text-xs font-mono",children:w.finished_at||w.started_at||"—"})]},w.id))})]}),u.some(w=>w.status==="failed_retryable")&&r.jsx("p",{className:"text-xs text-muted-foreground",children:l('Automatic retries depend on WP-Cron, which only runs when the site has visitors. Use "Retry failed actions" to run them now.')})]}),r.jsx(f3,{open:n,onOpenChange:s,children:r.jsxs(tN,{children:[r.jsxs(nN,{children:[r.jsx(sN,{children:l("Retry actions with an unknown outcome?")}),r.jsx(aN,{children:l("These actions may already have run — for example a mail that was sent before the connection broke. Retrying them can send a duplicate mail or create a duplicate entry. Check the recipient's mailbox or the form plugin's entries first.")})]}),r.jsxs(rN,{children:[r.jsx(iN,{children:l("Cancel")}),r.jsx(oN,{onClick:()=>c.mutate(!0),children:l("Retry anyway")})]})]})})]})}function lN(e){navigator.clipboard.writeText(e).then(()=>K.success(l("Copied to clipboard")),()=>K.error(l("Failed to copy")))}function kp(e,t=""){const n=[];for(const[s,a]of Object.entries(e)){const o=t?`${t}.${s}`:s;a&&typeof a=="object"&&!Array.isArray(a)?n.push(...kp(a,o)):Array.isArray(a)?n.push([o,a.join(", ")]):n.push([o,String(a!=null?a:"")])}return n}function v3(){var N,S;const{id:e}=$i(),t=Tn(),n=Ke(),s=mt(),[a,o]=f.useState(!1),[i,c]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:b,isLoading:v}=Ne({queryKey:["optin",e],queryFn:()=>G(`/optins/${e}`),enabled:!!e}),w=ke({mutationFn:()=>G(`/optins/${e}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Opt-in deleted")),n.invalidateQueries({queryKey:["optins"]}),t("/optins")},onError:C=>K.error(C.message||l("Delete failed"))}),g=ke({mutationFn:()=>G(`/optins/${e}/resend`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation email resent")),n.invalidateQueries({queryKey:["optin",e]})},onError:C=>{K.error(C.message||l("Failed to resend")),n.invalidateQueries({queryKey:["optin",e]})}}),j=ke({mutationFn:()=>G(`/optins/${e}/reset-confirmation`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation reset — click the email link again to re-test")),n.invalidateQueries({queryKey:["optin",e]}),n.invalidateQueries({queryKey:["optins"]})},onError:C=>K.error(C.message||l("Failed to reset"))}),y=b==null?void 0:b.data;if(v)return r.jsxs("div",{className:"space-y-6",children:[r.jsx(ae,{className:"h-8 w-48"}),r.jsx(ae,{className:"h-64 w-full"}),r.jsx(ae,{className:"h-48 w-full"})]});if(!y)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(U,{variant:"ghost",size:"sm",asChild:!0,children:r.jsxs(xt,{to:"/optins",children:[r.jsx(ud,{className:"h-4 w-4 mr-1"})," ",l("Back to Opt-Ins")]})}),r.jsx("p",{className:"text-muted-foreground",children:l("Opt-In not found.")})]});const p=y.formData?y.formData.fields?kp(y.formData.fields):kp(y.formData):[],x=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${y.id}&_wpnonce=${encodeURIComponent((N=s.consentExportNonce)!=null?N:"")}`;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(U,{variant:"ghost",size:"icon",className:"h-8 w-8",asChild:!0,children:r.jsx(xt,{to:"/optins",children:r.jsx(ud,{className:"h-4 w-4"})})}),r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-In Detail")}),r.jsx(Kd,{optIn:y})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:y.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[qd(y)==="pending"&&r.jsxs(U,{variant:"outline",size:"sm",disabled:g.isPending,onClick:()=>g.mutate(),children:[r.jsx(On,{className:"h-3.5 w-3.5 mr-1.5"}),g.isPending?l("Sending..."):l("Resend Email")]}),y._devResetAvailable&&y.confirmed&&r.jsxs(U,{variant:"outline",size:"sm",className:"text-amber-700 border-amber-300 hover:bg-amber-50 dark:text-amber-400 dark:border-amber-800 dark:hover:bg-amber-950",disabled:j.isPending,onClick:()=>{window.confirm(l(`Reset this opt-in to PENDING for re-testing? | |
| 470 | +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var s;document.getElementById((s=e.current)==null?void 0:s.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},YO=k1,XO=E1,F1=_1,L1=P1,$1=I1,z1=D1,U1=R1,B1=O1;const ZO=YO,V1=({container:e,...t})=>r.jsx(XO,{container:e!=null?e:Yi(),...t});V1.displayName="AlertDialogPortal";const q1=f.forwardRef(({className:e,...t},n)=>r.jsx(F1,{className:q("fixed inset-0 z-50 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",e),...t,ref:n}));q1.displayName=F1.displayName;const H1=f.forwardRef(({className:e,...t},n)=>r.jsxs(V1,{children:[r.jsx(q1,{}),r.jsx(L1,{ref:n,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));H1.displayName=L1.displayName;const W1=({className:e,...t})=>r.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});W1.displayName="AlertDialogHeader";const K1=({className:e,...t})=>r.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});K1.displayName="AlertDialogFooter";const Q1=f.forwardRef(({className:e,...t},n)=>r.jsx(U1,{ref:n,className:q("text-lg font-semibold",e),...t}));Q1.displayName=U1.displayName;const G1=f.forwardRef(({className:e,...t},n)=>r.jsx(B1,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));G1.displayName=B1.displayName;const Y1=f.forwardRef(({className:e,...t},n)=>r.jsx($1,{ref:n,className:q(Fh(),e),...t}));Y1.displayName=$1.displayName;const X1=f.forwardRef(({className:e,...t},n)=>r.jsx(z1,{ref:n,className:q(Fh({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));X1.displayName=z1.displayName;function JO(e){switch(e){case"pending":return l("Pending");case"running":return l("Running");case"succeeded":return l("Done");case"failed_retryable":return l("Failed — retry scheduled");case"failed_permanent":return l("Failed");case"unknown":return l("Outcome unknown");case"skipped":return l("Skipped")}}function e3(e){switch(e){case"completed":return l("Completed");case"partial":return l("Partially successful");case"failed":return l("Failed");case"unknown":return l("Unclear");case"pending":return l("In progress");case"legacy_unknown":return l("No status recorded");default:return l("None")}}function t3(e){var n;return(n={http_forbidden:l("The internal request was blocked (HTTP 401/403) — usually a firewall or security plugin."),http_not_found:l("The internal request target was not found (HTTP 404)."),http_rate_limited:l("The internal request was rate-limited (HTTP 429)."),http_redirect:l("The internal request was redirected; redirects are not followed."),http_server_error:l("The server answered with an error (HTTP 5xx) — the action may have run."),http_client_error:l("The internal request was rejected."),invalid_response:l("The response could not be read — the action may have run."),transport_connect_failed:l("The site could not reach itself; nothing was executed."),transport_timeout_unknown:l("The request timed out after it was sent — the action may have run."),transport_error_unknown:l("The connection broke after the request was sent — the action may have run."),captcha_revalidation_failed:l("The spam protection rejected the confirmed submission."),validation_failed:l("The form rejected the stored submission."),form_rejected:l("The form rejected the stored submission."),form_missing:l("The form no longer exists."),integration_unavailable:l("The form plugin is not active."),replay_unauthorized:l("The internal request was not accepted as an authorised replay."),registrar_unavailable:l("The form plugin's actions could not be restricted; nothing was executed."),entry_write_failed:l("The entry could not be saved."),entry_write_partial:l("The entry was saved incompletely."),entry_missing:l("The stored form entry no longer exists."),mail_handoff_failed:l("The mail was not handed to the mailer."),action_failed:l("The action reported an error."),action_outcome_unknown:l("The action did not report a result — it may have run."),action_removed:l("The action was removed from the form after the opt-in was confirmed."),adapter_exception:l("An unexpected error interrupted the action — it may have run."),lease_expired:l("The attempt was interrupted — the action may have run."),payload_missing:l("The stored submission data is missing."),files_missing:l("Uploaded files needed for this action are missing."),plan_failed:l("The follow-up actions could not be determined."),spam_rejected:l("The form's spam check rejected the stored submission."),submission_aborted:l("The form plugin aborted the submission."),send_default_mail_disabled:l("Disabled by the f12_cf7_doubleoptin_send_default_mail filter."),not_supported:l("Not supported by this form plugin edition."),not_applicable_in_replay:l("Not applicable after confirmation."),no_recipient:l("No recipient configured."),no_actions_configured:l("The form has no follow-up actions."),opted_out:l("The address has opted out.")}[e])!=null?n:e}function n3({status:e}){switch(e){case"succeeded":return r.jsx(aa,{className:"h-3.5 w-3.5 text-emerald-600","aria-hidden":"true"});case"failed_permanent":return r.jsx(oh,{className:"h-3.5 w-3.5 text-destructive","aria-hidden":"true"});case"failed_retryable":return r.jsx(pd,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"unknown":return r.jsx(uP,{className:"h-3.5 w-3.5 text-amber-600","aria-hidden":"true"});case"skipped":return r.jsx("span",{className:"inline-block h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true",children:"–"});default:return r.jsx(Gn,{className:"h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true"})}}function r3({optinId:e}){const t=qe(),[n,s]=f.useState(!1),a=["optin-follow-ups",e],{data:o,isLoading:i}=Ce({queryKey:a,queryFn:()=>Y(`/optins/${e}/follow-ups`)}),c=ke({mutationFn:j=>Y(`/optins/${e}/follow-ups/retry`,{method:"POST",body:JSON.stringify({include_unknown:j})}),onSuccess:j=>{var w;t.setQueryData(a,j),t.invalidateQueries({queryKey:["optins"]}),((w=j==null?void 0:j.data)==null?void 0:w.aggregate)==="completed"?K.success(l("Follow-up actions completed")):K.warning(l("Retry finished — some actions still need attention"))},onError:j=>K.error(j.message||l("Retry failed"))});if(i)return r.jsx(ae,{className:"h-32 w-full"});const d=o==null?void 0:o.data;if(!d||!d.confirmed&&d.actions.length===0)return null;const u=d.actions.filter(j=>j.action_kind!=="marker"||j.status!=="skipped"),h=u.some(j=>["pending","failed_retryable","failed_permanent"].includes(j.status)),m=u.some(j=>j.status==="unknown"),v=["partial","failed","unknown"].includes(d.aggregate),x=()=>{const j={optin_id:d.optin_id,form_id:d.form_id,aggregate:d.aggregate,versions:d.versions,actions:d.actions.map(b=>({action_id:b.action_id,status:b.status,error_code:b.error_code,http_status:b.http_status,response_kind:b.response_kind,attempts:b.attempts,attempt_id:b.attempt_id,trigger:b.trigger,started_at:b.started_at,finished_at:b.finished_at,next_attempt_at:b.next_attempt_at,evidence:b.evidence,entry_ref:b.entry_ref}))};navigator.clipboard.writeText(JSON.stringify(j,null,2)).then(()=>K.success(l("Diagnosis copied to clipboard")),()=>K.error(l("Failed to copy")))};return r.jsxs(ee,{role:"region","aria-label":l("Follow-up actions"),className:v?"border-amber-300 dark:border-amber-800":void 0,children:[r.jsxs(de,{className:"flex flex-row flex-wrap items-center justify-between gap-2 space-y-0",children:[r.jsxs(ue,{className:"text-sm flex items-center gap-2 whitespace-nowrap",children:[v&&r.jsx(Mt,{className:"h-4 w-4 text-amber-600","aria-hidden":"true"}),l("Follow-up actions"),r.jsx(Ge,{variant:"outline",className:"font-normal",children:e3(d.aggregate)})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(V,{variant:"ghost",size:"sm",onClick:x,children:[r.jsx(ih,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),l("Copy diagnosis")]}),d.managed&&h&&r.jsxs(V,{variant:"outline",size:"sm",disabled:c.isPending,onClick:()=>c.mutate(!1),children:[r.jsx(pd,{className:"h-3.5 w-3.5 mr-1.5","aria-hidden":"true"}),c.isPending?l("Running..."):l("Retry failed actions")]}),d.managed&&m&&r.jsx(V,{variant:"outline",size:"sm",className:"text-amber-700 border-amber-300 hover:bg-amber-50 dark:text-amber-400 dark:border-amber-800 dark:hover:bg-amber-950",disabled:c.isPending,onClick:()=>s(!0),children:l("Also retry unclear actions")})]})]}),r.jsxs(te,{className:"space-y-3",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The confirmation stays valid either way. This shows whether the form's own actions — stored entry, notification mails, webhooks — ran after it.")}),d.aggregate==="legacy_unknown"&&r.jsx("p",{className:"text-sm",children:l("This opt-in was confirmed before follow-up actions were recorded (or by an integration that does not report them). It is not replayed automatically, so historic mails are not sent again.")}),u.length>0&&r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{children:l("Action")}),r.jsx(Te,{children:l("Status")}),r.jsx(Te,{children:l("Reason")}),r.jsx(Te,{className:"text-right",children:l("Attempts")}),r.jsx(Te,{children:l("Last attempt (UTC)")})]})}),r.jsx(nn,{children:u.map(j=>r.jsxs(Me,{children:[r.jsxs(fe,{children:[r.jsx("div",{className:"font-medium",children:j.action_label||j.action_id}),r.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:j.action_id})]}),r.jsx(fe,{children:r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(n3,{status:j.status}),JO(j.status)]})}),r.jsxs(fe,{className:"text-xs",children:[j.error_code?t3(j.error_code):"—",j.http_status>0&&r.jsxs("span",{className:"text-muted-foreground",children:[" (HTTP ",j.http_status,")"]}),j.status==="failed_retryable"&&j.next_attempt_at&&r.jsx("div",{className:"text-muted-foreground",children:se(l("Next automatic attempt: %s"),j.next_attempt_at)}),j.entry_ref&&r.jsx("div",{className:"text-muted-foreground",children:se(l("Entry: %s"),j.entry_ref)})]}),r.jsx(fe,{className:"text-right tabular-nums",children:j.attempts}),r.jsx(fe,{className:"text-xs font-mono",children:j.finished_at||j.started_at||"—"})]},j.id))})]}),u.some(j=>j.status==="failed_retryable")&&r.jsx("p",{className:"text-xs text-muted-foreground",children:l('Automatic retries depend on WP-Cron, which only runs when the site has visitors. Use "Retry failed actions" to run them now.')})]}),r.jsx(ZO,{open:n,onOpenChange:s,children:r.jsxs(H1,{children:[r.jsxs(W1,{children:[r.jsx(Q1,{children:l("Retry actions with an unknown outcome?")}),r.jsx(G1,{children:l("These actions may already have run — for example a mail that was sent before the connection broke. Retrying them can send a duplicate mail or create a duplicate entry. Check the recipient's mailbox or the form plugin's entries first.")})]}),r.jsxs(K1,{children:[r.jsx(X1,{children:l("Cancel")}),r.jsx(Y1,{onClick:()=>c.mutate(!0),children:l("Retry anyway")})]})]})})]})}function Z1(e){navigator.clipboard.writeText(e).then(()=>K.success(l("Copied to clipboard")),()=>K.error(l("Failed to copy")))}function bp(e,t=""){const n=[];for(const[s,a]of Object.entries(e)){const o=t?`${t}.${s}`:s;a&&typeof a=="object"&&!Array.isArray(a)?n.push(...bp(a,o)):Array.isArray(a)?n.push([o,a.join(", ")]):n.push([o,String(a!=null?a:"")])}return n}function s3(){var N;const{id:e}=ed(),t=xn(),n=qe(),s=kt(),[a,o]=f.useState(!1),[i,c]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:v,isLoading:x}=Ce({queryKey:["optin",e],queryFn:()=>Y(`/optins/${e}`),enabled:!!e}),j=ke({mutationFn:()=>Y(`/optins/${e}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Opt-in deleted")),n.invalidateQueries({queryKey:["optins"]}),t("/optins")},onError:S=>K.error(S.message||l("Delete failed"))}),b=ke({mutationFn:()=>Y(`/optins/${e}/resend`,{method:"POST"}),onSuccess:()=>K.success(l("Confirmation email resent")),onError:S=>K.error(S.message||l("Failed to resend"))}),w=ke({mutationFn:()=>Y(`/optins/${e}/reset-confirmation`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation reset — click the email link again to re-test")),n.invalidateQueries({queryKey:["optin",e]}),n.invalidateQueries({queryKey:["optins"]})},onError:S=>K.error(S.message||l("Failed to reset"))}),y=v==null?void 0:v.data;if(x)return r.jsxs("div",{className:"space-y-6",children:[r.jsx(ae,{className:"h-8 w-48"}),r.jsx(ae,{className:"h-64 w-full"}),r.jsx(ae,{className:"h-48 w-full"})]});if(!y)return r.jsxs("div",{className:"space-y-4",children:[r.jsx(V,{variant:"ghost",size:"sm",asChild:!0,children:r.jsxs(Ot,{to:"/optins",children:[r.jsx(fd,{className:"h-4 w-4 mr-1"})," ",l("Back to Opt-Ins")]})}),r.jsx("p",{className:"text-muted-foreground",children:l("Opt-In not found.")})]});const p=y.formData?y.formData.fields?bp(y.formData.fields):bp(y.formData):[],g=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${y.id}&_wpnonce=${encodeURIComponent((N=s.consentExportNonce)!=null?N:"")}`;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(V,{variant:"ghost",size:"icon",className:"h-8 w-8",asChild:!0,children:r.jsx(Ot,{to:"/optins",children:r.jsx(fd,{className:"h-4 w-4"})})}),r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Opt-In Detail")}),y.confirmed?r.jsxs(Ge,{className:"bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-50 dark:bg-emerald-950 dark:text-emerald-400 dark:border-emerald-800",children:[r.jsx(aa,{className:"h-3 w-3 mr-1"}),l("Confirmed")]}):r.jsxs(Ge,{className:"bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-50 dark:bg-amber-950 dark:text-amber-400 dark:border-amber-800",children:[r.jsx(Gn,{className:"h-3 w-3 mr-1"}),l("Pending")]})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:y.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!y.confirmed&&r.jsxs(V,{variant:"outline",size:"sm",disabled:b.isPending,onClick:()=>b.mutate(),children:[r.jsx(An,{className:"h-3.5 w-3.5 mr-1.5"}),b.isPending?l("Sending..."):l("Resend Email")]}),y._devResetAvailable&&y.confirmed&&r.jsxs(V,{variant:"outline",size:"sm",className:"text-amber-700 border-amber-300 hover:bg-amber-50 dark:text-amber-400 dark:border-amber-800 dark:hover:bg-amber-950",disabled:w.isPending,onClick:()=>{window.confirm(l(`Reset this opt-in to PENDING for re-testing? | |
| 486 | 471 | |
| 487 | 472 | This is a DEV-ONLY action (WP_DEBUG mode). It clears the confirmation flag so you can click the same email link again. |
| 488 | 473 | |
| 489 | 474 | Note: any Avada submissions/entries written by the previous confirmation are kept — delete them via Avada's Form Entries UI if you need a clean slate. |
| 490 | 475 | |
| 491 | -Files: any uploaded files were already handed off to the form system or sent as mail attachments at the previous confirmation, so they are NOT restored. Re-submit the form if you want files in the next test cycle.`))&&j.mutate()},title:l("Dev-only: revert to pending so the same confirmation link can be re-tested"),children:[r.jsx(ds,{className:"h-3.5 w-3.5 mr-1.5"}),j.isPending?l("Resetting..."):l("Reset to pending (dev)")]}),r.jsxs(U,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>o(!0),children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(g3,{optinId:y.id}),r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsx(fe,{className:"text-sm",children:l("Basic Information")})}),r.jsx(ne,{children:r.jsx(nn,{children:r.jsxs(rn,{children:[r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground w-40",children:l("ID")}),r.jsx(le,{children:y.id})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Email")}),r.jsx(le,{children:y.email})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Form")}),r.jsxs(le,{children:[y.formName," (#",y.formId,")"]})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Category")}),r.jsx(le,{children:y.categoryName?r.jsxs(xt,{to:`/categories/${y.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(xh,{className:"h-3 w-3"}),y.categoryName]}):y.category?String(y.category):"—"})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Registration Date")}),r.jsx(le,{children:y.createtime})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Registration IP")}),r.jsx(le,{className:"font-mono text-xs",children:y.ipRegister||"—"})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Confirmation Date")}),r.jsx(le,{children:y.confirmed||y.revoked&&y.ipConfirmation?y.updatetime:"—"})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Confirmation IP")}),r.jsx(le,{className:"font-mono text-xs",children:y.ipConfirmation||"—"})]}),y.ipOptout&&r.jsxs(r.Fragment,{children:[r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Opt-Out IP")}),r.jsx(le,{className:"font-mono text-xs",children:y.ipOptout})]}),y.optouttime&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Opt-Out Date")}),r.jsx(le,{children:y.optouttime})]})]}),y.reminderSentAt&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Reminder Sent")}),r.jsx(le,{children:y.reminderSentAt})]}),y.mailStatus&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Confirmation mail")}),r.jsx(le,{children:y.mailStatus==="failed"?r.jsxs("span",{className:"text-red-700 dark:text-red-400",children:[re(l("Could not be sent (%s)"),y.mailStatusAt||""),y.mailError&&r.jsx("span",{className:"block text-xs text-muted-foreground font-mono break-all",children:y.mailError}),r.jsx("span",{className:"block text-xs text-muted-foreground",children:l("Check the mail settings of your site, then use “Resend Email”.")})]}):r.jsxs("span",{children:[re(l("Handed to the mail server (%s)"),y.mailStatusAt||""),r.jsx("span",{className:"block text-xs text-muted-foreground",children:l("Whether it arrived in the inbox is beyond what WordPress can see.")})]})})]})]})})})]}),r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsxs(fe,{className:"text-sm flex items-center gap-2",children:[r.jsx(wt,{className:"h-4 w-4"}),l("Consent Evidence")]})}),r.jsxs(ne,{className:"space-y-3",children:[y.consentText?r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-4",children:[r.jsx("p",{className:"text-xs font-medium text-blue-900/70 dark:text-blue-300/60 mb-1",children:l("Consent text shown to user")}),r.jsx("p",{className:"text-sm text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:y.consentText})]}):r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No consent text was configured for this form at the time of submission.")}),y.consentField?r.jsxs("div",{className:"text-xs space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("Acknowledgment field:")})," ",r.jsx("code",{className:"font-mono bg-muted px-1 py-0.5 rounded",children:y.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("User acknowledged:")})," ",y.consentAcknowledged?r.jsx("span",{className:"font-medium text-green-700 dark:text-green-400",children:l("✓ Yes")}):r.jsx("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:l("✗ No (legacy record or gate disabled)")})]})]}):y.consentText?r.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400 italic",children:l("⚠ No acknowledgment field configured — consent text is stored but not legally provable. Configure a consent acceptance field in form settings.")}):null]})]}),p.length>0&&r.jsx(xl,{open:i,onOpenChange:c,children:r.jsxs(ee,{children:[r.jsx(gl,{asChild:!0,children:r.jsx(ue,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(aa,{className:"h-4 w-4"}),re(l("Form Fields (%d)"),p.length)]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${i?"rotate-180":""}`})]})})}),r.jsx(vl,{children:r.jsx(ne,{className:"pt-0",children:r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs",children:l("Key")}),r.jsx(Te,{className:"text-xs",children:l("Value")})]})}),r.jsx(rn,{children:p.map(([C,E])=>r.jsxs(De,{children:[r.jsx(le,{className:"font-mono text-xs text-muted-foreground",children:C}),r.jsx(le,{className:"text-sm break-all",children:E})]},C))})]})})})]})}),y.formHtml&&r.jsx(xl,{open:d,onOpenChange:u,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(gl,{asChild:!0,children:r.jsx(ue,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(vb,{className:"h-4 w-4"}),l("Form HTML")]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${d?"rotate-180":""}`})]})})}),r.jsx(vl,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("The form HTML used to collect this opt-in. You can copy it to inspect the original form.")}),r.jsxs("div",{className:"relative",children:[r.jsx(U,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>lN(y.formHtml),children:r.jsx(fh,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:y.formHtml})})]})]})})]})}),y.mailOptinHtml&&r.jsx(xl,{open:h,onOpenChange:m,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(gl,{asChild:!0,children:r.jsx(ue,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(fe,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(On,{className:"h-4 w-4"}),l("Opt-In Mail")]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${h?"rotate-180":""}`})]})})}),r.jsx(vl,{children:r.jsxs(ne,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("The confirmation email that was sent to the visitor.")}),r.jsxs("div",{className:"relative",children:[r.jsx(U,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>lN(y.mailOptinHtml),children:r.jsx(fh,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:y.mailOptinHtml})})]})]})})]})}),r.jsx($n,{id:"optin.detail-panel",data:{optin:y}})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsxs(fe,{className:"text-sm flex items-center gap-2",children:[r.jsx(Qi,{className:"h-4 w-4"}),l("Export Consent Record (GDPR)")]})}),r.jsxs(ne,{className:"space-y-2",children:[r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${x}&format=json`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Qi,{className:"h-3.5 w-3.5 mr-2"}),l("Export JSON")]})}),r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${x}&format=csv`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Qi,{className:"h-3.5 w-3.5 mr-2"}),l("Export CSV")]})}),((S=y.exportLinks)!=null?S:[]).filter(C=>typeof(C==null?void 0:C.url)=="string"&&/^https?:\/\//.test(C.url)&&C.label).map(C=>r.jsx(U,{variant:"outline",size:"sm",className:"w-full justify-start h-auto min-h-9 py-2 whitespace-normal text-left",asChild:!0,children:r.jsxs("a",{href:C.url,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(aa,{className:"h-3.5 w-3.5 mr-2 shrink-0"}),C.label]})},C.url))]})]}),r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsx(fe,{className:"text-sm",children:l("Quick Info")})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Status")}),r.jsx("p",{className:"text-sm font-medium",children:Fw(y)})]}),r.jsx(rl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Form")}),r.jsx("p",{className:"text-sm font-medium",children:y.formName})]}),r.jsx(rl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Category")}),r.jsx("p",{className:"text-sm font-medium",children:y.categoryName||(y.category?`#${y.category}`:"—")})]}),r.jsx(rl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Created")}),r.jsx("p",{className:"text-sm font-medium",children:y.createtime})]})]})]})]})]}),r.jsx(Er,{open:a,onOpenChange:o,children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",className:"rounded-lg",onClick:()=>o(!1),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:w.isPending,onClick:()=>w.mutate(),children:w.isPending?l("Deleting..."):l("Delete")})]})]})})]})}var nu="Switch",[y3]=Mt(nu),[b3,j3]=y3(nu),cN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:o,required:i,disabled:c,value:d="on",onCheckedChange:u,form:h,...m}=e,[b,v]=f.useState(null),w=Me(t,x=>v(x)),g=f.useRef(!1),j=b?h||!!b.closest("form"):!0,[y,p]=Jt({prop:a,defaultProp:o!=null?o:!1,onChange:u,caller:nu});return r.jsxs(b3,{scope:n,checked:y,disabled:c,children:[r.jsx(xe.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":mN(y),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:w,onClick:he(e.onClick,x=>{p(N=>!N),j&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),j&&r.jsx(fN,{control:b,bubbles:!g.current,name:s,value:d,checked:y,required:i,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});cN.displayName=nu;var dN="SwitchThumb",uN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,a=j3(dN,n);return r.jsx(xe.span,{"data-state":mN(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});uN.displayName=dN;var w3="SwitchBubbleInput",fN=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...a},o)=>{const i=f.useRef(null),c=Me(i,o),d=Gd(n),u=Pd(t);return f.useEffect(()=>{const h=i.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&v){const w=new Event("click",{bubbles:s});v.call(h,n),h.dispatchEvent(w)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});fN.displayName=w3;function mN(e){return e?"checked":"unchecked"}var hN=cN,N3=uN;const sn=f.forwardRef(({className:e,...t},n)=>r.jsx(hN,{className:V("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:r.jsx(N3,{className:V("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));sn.displayName=hN.displayName;function Ep(){return r.jsx("span",{className:"pro-badge ml-1.5",children:l("PRO")})}function S3({title:e,description:t,upgradeUrl:n}){const{isProInstalled:s,isProLicenseActive:a}=Od(),o=Tn();return s&&a?null:r.jsx("div",{className:"border border-dashed border-border rounded-lg p-6",children:r.jsxs("div",{className:"text-center",children:[r.jsx("span",{className:"pro-badge mb-3 inline-block",children:l("PRO")}),r.jsx("h4",{className:"text-base font-semibold text-foreground mb-1",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4 max-w-md mx-auto",children:t}),s&&!a?r.jsx(U,{variant:"default",size:"sm",onClick:()=>o("/license"),children:l("Activate License")}):r.jsxs("a",{href:n||mt().upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90",children:[l("See the add-on"),r.jsx(io,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})})}const C3=["[doubleoptinlink]","[doubleoptoutlink]","[doubleoptin_form_date]","[doubleoptin_form_time]","[doubleoptin_form_url]","[doubleoptin_privacy_url]","[doi_email]","[doi_name]","[doi_first_name]","[doi_last_name]","[doi_phone]","[doi_company]","[doi_message]","[doi_subject]","[doi_address]","[doi_city]","[doi_zip]","[doi_country]"],_p=[{tag:"[doi_email]",key:"doi_email",label:"E-Mail",group:"identity"},{tag:"[doi_name]",key:"doi_name",label:"Name",group:"identity"},{tag:"[doi_first_name]",key:"doi_first_name",label:"First Name",group:"identity"},{tag:"[doi_last_name]",key:"doi_last_name",label:"Last Name",group:"identity"},{tag:"[doi_phone]",key:"doi_phone",label:"Phone",group:"contact"},{tag:"[doi_company]",key:"doi_company",label:"Company",group:"contact"},{tag:"[doi_subject]",key:"doi_subject",label:"Subject",group:"message"},{tag:"[doi_message]",key:"doi_message",label:"Message",group:"message"},{tag:"[doi_address]",key:"doi_address",label:"Address",group:"address"},{tag:"[doi_city]",key:"doi_city",label:"City",group:"address"},{tag:"[doi_zip]",key:"doi_zip",label:"ZIP",group:"address"},{tag:"[doi_country]",key:"doi_country",label:"Country",group:"address"}],k3=[{id:"identity",label:"Identity",description:"Who the user is."},{id:"contact",label:"Contact",description:"Phone, company."},{id:"message",label:"Message",description:"Free-text fields submitted with the form."},{id:"address",label:"Address",description:"Postal address parts."}];function pN(e){switch(e){case"recipient":return l("Recipient field");case"subject":return l("Subject");case"body_or_template":return l("Email body or template");default:return e}}function ma(e){return!e||e.length===0?"":e.map(pN).join(", ")}function Pp(e,t){var h,m,b,v;const n=[],s=((h=e.recipient)!=null?h:"").toString().trim(),a=t?new Set(t.map(w=>w.name)):null;(s===""||a!==null&&!a.has(s))&&n.push("recipient"),((m=e.subject)!=null?m:"").toString().trim()===""&&n.push("subject");const c=((b=e.body)!=null?b:"").toString().includes("[doubleoptinlink]"),u=((v=e.template)!=null?v:"").toString().trim()!=="";return!c&&!u&&n.push("body_or_template"),n}const Tp={cf7:{label:"Contact Form 7",pro:!1},avada:{label:"Avada Forms",pro:!0,detectorId:"avada"},elementor:{label:"Elementor Forms",pro:!0,detectorId:"elementor_pro",info:l('1. Open Elementor editor 2. Select form widget 3. Add "Double Opt-In" to Submit Actions 4. Configure settings here')},wpforms:{label:"WPForms",pro:!0,detectorId:"wpforms"},gravity:{label:"Gravity Forms",pro:!0,detectorId:"gravityforms"}};function E3(){var v,w;const{isProInstalled:e,isProLicenseActive:t}=Od(),n=Ke(),s=Tn(),{data:a,isLoading:o}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),i=(v=a==null?void 0:a.data)!=null?v:{},c=ke({mutationFn:({integration:g,formId:j})=>G(`/forms/${g}/${j}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),K.success(l("Form toggled"))},onError:g=>{if(g instanceof rd&&g.code==="INCOMPLETE_CONFIG"){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:g.missing&&g.missing.length>0?re(l("Missing: %s"),ma(g.missing)):void 0});return}K.error(g.message)}}),d=Object.entries(i).flatMap(([,g])=>{var j;return(j=g==null?void 0:g.forms)!=null?j:[]}),u=d.length,h=d.filter(g=>g.enabled).length;if(o)return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:[1,2,3].map(g=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(ae,{className:"h-8 w-20"})})},g))}),[1,2].map(g=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(ae,{className:"h-24 w-full"})})},g))]});const m=(w=mt().formPlugins)!=null?w:[],b=Object.keys(Tp).filter(g=>{const j=Tp[g];return!j.pro||i[g]!==void 0||m.some(y=>y.id===j.detectorId)}).map(g=>{var p,x,N;const j=Tp[g],y=i[g];return{key:g,name:(p=y==null?void 0:y.name)!=null?p:j.label,forms:(x=y==null?void 0:y.forms)!=null?x:[],pro:j.pro,notice:j.notice,info:j.info,productUrl:(N=m.find(S=>S.id===j.detectorId))==null?void 0:N.productUrl}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("Total Forms")})}),r.jsx(ne,{children:r.jsxs("div",{className:"text-2xl font-bold flex items-center gap-2",children:[u," ",r.jsx(aa,{className:"h-4 w-4 text-primary"})]})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("DOI Active")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-success",children:h})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("DOI Inactive")})}),r.jsx(ne,{children:r.jsx("div",{className:"text-2xl font-bold text-warning",children:u-h})})]})]}),b.map(g=>{const j=g.pro,y=j&&i[g.key]===void 0,p=e&&t;return r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(aa,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(fe,{className:"text-sm font-semibold",children:g.name}),j&&!t&&r.jsx(Ep,{}),r.jsx(dt,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:re(Wd("%s form","%s forms",g.forms.length),g.forms.length)})]})}),r.jsxs(ne,{children:[g.notice&&r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded px-3 py-2 text-xs mb-3",children:[r.jsx(wt,{className:"h-3.5 w-3.5"})," ",g.notice]}),g.info&&!y&&r.jsxs("div",{className:"flex items-start gap-2 bg-primary/5 text-primary rounded px-3 py-2 text-xs mb-3",children:[r.jsx(wt,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"})," ",g.info]}),y&&p?r.jsxs("p",{className:"text-sm text-muted-foreground py-4 text-center",children:[re(l("The %s add-on is not active yet."),g.name)," ",r.jsx(xt,{to:"/addons",className:"text-primary underline",children:l("Open Add-ons")})]}):y?r.jsx(S3,{title:re(l("%s Integration"),g.name),description:re(l("%s is installed on this site, but its forms do not have Double Opt-In yet. The add-on adds it."),g.name),upgradeUrl:g.productUrl}):g.forms.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:l("No forms detected.")}):r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs w-20",children:l("Status")}),r.jsx(Te,{className:"text-xs",children:l("Form Title")}),r.jsx(Te,{className:"text-xs w-24",children:l("Form ID")}),r.jsx(Te,{className:"text-xs text-right w-40",children:l("Actions")})]})}),r.jsx(rn,{children:g.forms.map(x=>{var E;const N=x.isComplete!==!1,S=(E=x.missingFields)!=null?E:[],C=!N&&!x.enabled;return r.jsxs(De,{children:[r.jsx(le,{children:r.jsx("span",{title:C?re(l("Complete the configuration to enable. Missing: %s"),ma(S)):void 0,children:r.jsx(sn,{checked:!!x.enabled,disabled:C,onCheckedChange:()=>c.mutate({integration:g.key,formId:x.id}),className:"data-[state=checked]:bg-success"})})}),r.jsx(le,{className:"font-medium text-sm",children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:x.title}),!N&&r.jsxs(dt,{variant:"outline",title:re(l("Missing: %s"),ma(S)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(Nt,{className:"h-3 w-3"}),l("Configuration incomplete")]})]})}),r.jsx(le,{children:r.jsxs(dt,{variant:"secondary",className:"font-mono text-[10px]",children:["#",x.id]})}),r.jsx(le,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[r.jsx(U,{size:"sm",className:"text-xs",onClick:()=>s(`/forms/${g.key}/${x.id}/settings`),children:l("Configure")}),r.jsx(U,{size:"icon",variant:"ghost",className:"h-9 w-9 text-muted-foreground hover:text-foreground",title:l("Edit form"),"aria-label":l("Edit form"),disabled:!x.edit_url,onClick:()=>{x.edit_url&&window.open(String(x.edit_url),"_blank","noopener,noreferrer")},children:r.jsx(io,{className:"h-4 w-4"})})]})})]},x.id)})})]})]})]},g.key)})]})}var _3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P3=_3.reduce((e,t)=>{const n=zh(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),T3="Label",xN=f.forwardRef((e,t)=>r.jsx(P3.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));xN.displayName=T3;var gN=xN;const R3=ao("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Y=f.forwardRef(({className:e,...t},n)=>r.jsx(gN,{ref:n,className:V(R3(),e),...t}));Y.displayName=gN.displayName;var Rp="rovingFocusGroup.onEntryFocus",A3={bubbles:!1,cancelable:!0},bl="RovingFocusGroup",[Ap,vN,O3]=od(bl),[I3,ru]=Mt(bl,[O3]),[M3,D3]=I3(bl),yN=f.forwardRef((e,t)=>r.jsx(Ap.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Ap.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(F3,{...e,ref:t})})}));yN.displayName=bl;var F3=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,b=f.useRef(null),v=Me(t,b),w=hl(o),[g,j]=Jt({prop:i,defaultProp:c!=null?c:null,onChange:d,caller:bl}),[y,p]=f.useState(!1),x=gn(u),N=vN(n),S=f.useRef(!1),[C,E]=f.useState(0);return f.useEffect(()=>{const k=b.current;if(k)return k.addEventListener(Rp,x),()=>k.removeEventListener(Rp,x)},[x]),r.jsx(M3,{scope:n,orientation:s,dir:w,loop:a,currentTabStopId:g,onItemFocus:f.useCallback(k=>j(k),[j]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:f.useCallback(()=>E(k=>k-1),[]),children:r.jsx(xe.div,{tabIndex:y||C===0?-1:0,"data-orientation":s,...m,ref:v,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,k=>{const R=!S.current;if(k.target===k.currentTarget&&R&&!y){const T=new CustomEvent(Rp,A3);if(k.currentTarget.dispatchEvent(T),!T.defaultPrevented){const O=N().filter(M=>M.focusable),F=O.find(M=>M.active),B=O.find(M=>M.id===g),se=[F,B,...O].filter(Boolean).map(M=>M.ref.current);wN(se,h)}}S.current=!1}),onBlur:he(e.onBlur,()=>p(!1))})})}),bN="RovingFocusGroupItem",jN=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:o,children:i,...c}=e,d=Mn(),u=o||d,h=D3(bN,n),m=h.currentTabStopId===u,b=vN(n),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:g}=h;return f.useEffect(()=>{if(s)return v(),()=>w()},[s,v,w]),r.jsx(Ap.ItemSlot,{scope:n,id:u,focusable:s,active:a,children:r.jsx(xe.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:he(e.onMouseDown,j=>{s?h.onItemFocus(u):j.preventDefault()}),onFocus:he(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:he(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){h.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const y=z3(j,h.orientation,h.dir);if(y!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let x=b().filter(N=>N.focusable).map(N=>N.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const N=x.indexOf(j.currentTarget);x=h.loop?U3(x,N+1):x.slice(N+1)}setTimeout(()=>wN(x))}}),children:typeof i=="function"?i({isCurrentTabStop:m,hasTabStop:g!=null}):i})})});jN.displayName=bN;var L3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $3(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function z3(e,t,n){const s=$3(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return L3[s]}function wN(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function U3(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var NN=yN,SN=jN,su="Tabs",[B3]=Mt(su,[ru]),CN=ru(),[V3,Op]=B3(su),kN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:c,activationMode:d="automatic",...u}=e,h=hl(c),[m,b]=Jt({prop:s,onChange:a,defaultProp:o!=null?o:"",caller:su});return r.jsx(V3,{scope:n,baseId:Mn(),value:m,onValueChange:b,orientation:i,dir:h,activationMode:d,children:r.jsx(xe.div,{dir:h,"data-orientation":i,...u,ref:t})})});kN.displayName=su;var EN="TabsList",_N=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...a}=e,o=Op(EN,n),i=CN(n);return r.jsx(NN,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:s,children:r.jsx(xe.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});_N.displayName=EN;var PN="TabsTrigger",TN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:a=!1,...o}=e,i=Op(PN,n),c=CN(n),d=ON(i.baseId,s),u=IN(i.baseId,s),h=s===i.value;return r.jsx(SN,{asChild:!0,...c,focusable:!a,active:h,children:r.jsx(xe.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...o,ref:t,onMouseDown:he(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?i.onValueChange(s):m.preventDefault()}),onKeyDown:he(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(s)}),onFocus:he(e.onFocus,()=>{const m=i.activationMode!=="manual";!h&&!a&&m&&i.onValueChange(s)})})})});TN.displayName=PN;var RN="TabsContent",AN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:a,children:o,...i}=e,c=Op(RN,n),d=ON(c.baseId,s),u=IN(c.baseId,s),h=s===c.value,m=f.useRef(h);return f.useEffect(()=>{const b=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(Rn,{present:a||h,children:({present:b})=>r.jsx(xe.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!b,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:b&&o})})});AN.displayName=RN;function ON(e,t){return`${e}-trigger-${t}`}function IN(e,t){return`${e}-content-${t}`}var H3=kN,MN=_N,DN=TN,FN=AN;const LN=H3,Ip=f.forwardRef(({className:e,...t},n)=>r.jsx(MN,{ref:n,className:V("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Ip.displayName=MN.displayName;const bs=f.forwardRef(({className:e,...t},n)=>r.jsx(DN,{ref:n,className:V("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));bs.displayName=DN.displayName;const jl=f.forwardRef(({className:e,...t},n)=>r.jsx(FN,{ref:n,className:V("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));jl.displayName=FN.displayName;const Pr=f.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:V("flex min-h-[80px] w-full rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors hover:border-foreground/30",e),ref:n,...t}));Pr.displayName="Textarea";function W3({settings:e,onChange:t,fields:n,categories:s,pages:a}){var v,w,g,j,y,p,x,N,S,C;const o=((v=e.consentText)!=null?v:"").toString().trim(),i=((w=e.consentField)!=null?w:"").toString().trim(),c=new Set(n.map(E=>E.name===null||E.name===void 0?"":String(E.name).toLowerCase()).filter(Boolean)),d=l("Submissions are still accepted, but they are stored without any provable consent."),u=i&&!c.has(i.toLowerCase())?{tone:"red",message:re(l('The selected acceptance field "%s" does not exist on this form.'),i)+" "+d+" "+l("Pick a field that's actually present, or leave the dropdown empty.")}:o&&!i?{tone:"amber",message:l("Consent text is configured but no acceptance field is set. The text is stored with each opt-in for audit, but the user never has to confirm it — this is not GDPR Art. 7 compliant. Pick an acceptance field below to enable the consent gate.")}:null,h=E=>E.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),m=i?h((j=(g=n.find(E=>{var k;return String((k=E.name)!=null?k:"").toLowerCase()===i.toLowerCase()}))==null?void 0:g.text)!=null?j:""):"",b=m!==""&&h(o)!==m;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{className:"text-base",children:l("Consent & categorization")}),r.jsx(Ae,{children:l("What gets stored with each opt-in for GDPR audit, and how this form's opt-ins are grouped.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"consent-text",children:l("Consent text (GDPR)")}),r.jsx(Pr,{id:"consent-text",className:"mt-1.5",placeholder:l("I agree to receive the newsletter..."),rows:3,value:(y=e.consentText)!=null?y:"",onChange:E=>t("consentText",E.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("The wording the user is asked to agree to. Stored alongside each opt-in for the GDPR Art. 7 audit trail. Should match the label of the acceptance field below.")})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"consent-field",children:l("Consent acceptance field")}),r.jsxs(ye,{value:(p=e.consentField)!=null?p:"",onValueChange:E=>t("consentField",E==="__none__"?"":E),children:[r.jsx(ge,{id:"consent-field",className:"mt-1.5",children:r.jsx(be,{placeholder:l("-- None --")})}),r.jsxs(ve,{children:[r.jsx($,{value:"__none__",children:l("-- None --")}),n.filter(E=>E.name!==null&&E.name!==void 0&&E.name!=="").map(E=>{const k=String(E.name);return r.jsx($,{value:k,children:E.label||k},k)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Form field that captures the user's explicit consent (e.g. a CF7")," ",r.jsx("code",{children:"[acceptance]"})," ",l("checkbox). Submissions without this field set are rejected — the user must actively confirm. Leave empty for no acknowledgment gate (audit log only, not GDPR-compliant).")]})]}),u&&r.jsxs("div",{className:"rounded-md border p-3 flex items-start gap-2 text-xs "+(u.tone==="red"?"border-red-200 bg-red-50 text-red-900 dark:border-red-900/50 dark:bg-red-950/30 dark:text-red-200":"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200"),role:u.tone==="red"?"alert":void 0,children:[u.tone==="red"?r.jsx(fd,{className:"h-4 w-4 mt-0.5 shrink-0"}):r.jsx(Nt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsx("span",{className:"leading-relaxed",children:u.message})]}),!u&&b&&r.jsx("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-xs text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(Nt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsxs("div",{className:"grid gap-2 leading-relaxed",children:[r.jsx("span",{children:l(o===""?"The form shows this text next to the checkbox:":"The consent text differs from what the form shows next to the checkbox. Each opt-in stores the consent text above, not the wording the visitor actually saw:")}),r.jsx("q",{className:"italic",children:m}),r.jsx(U,{type:"button",size:"sm",variant:"outline",className:"justify-self-start h-auto min-h-8 whitespace-normal text-left",onClick:()=>t("consentText",m),children:l("Use the form's text")})]})]})}),r.jsxs("div",{children:[r.jsx(Y,{children:l("Category")}),r.jsxs(ye,{value:String((x=e.category)!=null?x:0),onValueChange:E=>t("category",Number(E)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select category")})}),r.jsx(ve,{children:Object.entries(s).map(([E,k])=>r.jsx($,{value:String(E),children:String(k)},E))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Optional grouping for opt-ins in the overview and stats. Useful when several forms feed into different topics (newsletter, contact, etc.).")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{className:"text-base",children:l("Submission rules")}),r.jsx(Ae,{children:l("Decide when a submission triggers the opt-in and where the user lands afterwards.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(Y,{children:l("Conditional trigger")}),r.jsxs(ye,{value:(N=e.conditions)!=null?N:"disabled",onValueChange:E=>t("conditions",E),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"disabled",children:l("Disabled")}),n.filter(E=>E.name!==null&&E.name!==void 0&&E.name!=="").map(E=>{const k=String(E.name);return r.jsx($,{value:k,children:E.label||k},k)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l('Gate the opt-in on a form field. Example: only fire the confirmation mail when the user ticked a "Subscribe me" checkbox. Different from the consent acceptance field above — that one is the mandatory GDPR gate, this one is an optional secondary trigger. Set to')," ",r.jsx("code",{children:"Disabled"})," ",l("to always fire when the form is submitted.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{children:l("Confirmation page")}),r.jsxs(ye,{value:String((S=e.confirmationPage)!=null?S:-1),onValueChange:E=>t("confirmationPage",Number(E)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ve,{children:Object.entries(a).map(([E,k])=>r.jsx($,{value:String(E),children:String(k)},E))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Where the user lands after clicking the confirmation link. Leave on default to fall back to the site-wide confirmation page.")})]}),r.jsxs("div",{children:[r.jsx(Y,{children:l("Error redirect page")}),r.jsxs(ye,{value:String((C=e.errorRedirectPage)!=null?C:-1),onValueChange:E=>t("errorRedirectPage",Number(E)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ve,{children:Object.entries(a).map(([E,k])=>r.jsx($,{value:String(E),children:String(k)},E))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Where the user is sent on opt-in errors (invalid email, expired link, etc.). Leave on default to show a toast notification instead of a redirect.")})]})]})]})]})]})}function q3({settings:e,onChange:t,fields:n,templates:s,templateDetails:a,adminUrl:o}){var m,b,v,w,g,j,y,p;const i=(m=e.template)!=null?m:"",c=i.startsWith("custom_"),d=c?a==null?void 0:a[i]:null,u=c,h=d&&o?`#/email-templates/${d.id}/edit`:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{className:"text-base",children:l("Sender & recipient")}),r.jsx(Ae,{children:l("Where the confirmation email comes from and which form field carries the user's address.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(Y,{children:[l("Recipient field")," ",r.jsx(Mp,{})]}),r.jsxs(ye,{value:(b=e.recipient)!=null?b:"",onValueChange:x=>t("recipient",x),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select field")})}),r.jsx(ve,{children:n.filter(x=>x.name!==null&&x.name!==void 0&&x.name!=="").map(x=>{const N=String(x.name);return r.jsx($,{value:N,children:x.label||N},N)})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("The form field that holds the subscriber's email address.")," ",r.jsx("strong",{children:l("Required")})," ",l("— without it the confirmation mail has nowhere to go and the opt-in is rejected.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"from-email",children:l("From email")}),r.jsx(Re,{id:"from-email",className:"mt-1.5",value:(v=e.sender)!=null?v:"",onChange:x=>t("sender",x.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Sender address for the confirmation mail. Leave empty to use the WordPress default (site admin email).")})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"from-name",children:l("From name")}),r.jsx(Re,{id:"from-name",className:"mt-1.5",value:(w=e.senderName)!=null?w:"",onChange:x=>t("senderName",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Display name shown as")," ",r.jsx("code",{children:"From: Name <email>"}),l(". Leave empty for a bare-email From header.")]})]})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{className:"text-base",children:l("Email content")}),r.jsx(Ae,{children:l("Subject, template, and the body shown to the user.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(Y,{htmlFor:"subject",children:[l("Subject")," ",r.jsx(Mp,{})]}),r.jsx(Re,{id:"subject",className:"mt-1.5",value:(g=e.subject)!=null?g:"",onChange:x=>t("subject",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Subject line of the confirmation mail.")," ",r.jsx("strong",{children:l("Required")}),l(" — empty subjects often land in spam folders.")]})]}),r.jsxs("div",{children:[r.jsx(Y,{children:l("Email template")}),r.jsxs(ye,{value:(j=e.template)!=null?j:"",onValueChange:x=>t("template",x),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select template")})}),r.jsx(ve,{children:Object.entries(s).map(([x,N])=>r.jsx($,{value:x,children:String(N)},x))})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("HTML wrapper for the body.")," ",r.jsx("code",{children:"blank"})," ",l("keeps the body verbatim; the built-in")," ",r.jsx("code",{children:"newsletter_*"})," ",l("templates wrap it in a styled HTML shell. Custom templates are built in the Email Designer and override the body field below.")]})]}),r.jsxs("div",{children:[r.jsxs(Y,{htmlFor:"body",children:[l("Message body")," ",!c&&r.jsx(Mp,{})]}),u?r.jsx(K3,{title:(y=d==null?void 0:d.title)!=null?y:i,editorUrl:h}):r.jsxs(r.Fragment,{children:[r.jsx(Pr,{id:"body",className:"mt-1.5 font-mono text-xs",rows:12,value:(p=e.body)!=null?p:"",onChange:x=>t("body",x.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Mail body. Must contain")," ",r.jsx("code",{children:"[doubleoptinlink]"}),l(" — that placeholder is replaced by the actual confirmation URL at send time. Pick a custom template above to bypass this field and edit the body visually instead.")]}),r.jsxs(xl,{children:[r.jsx(gl,{className:"text-xs text-primary hover:underline mt-1",children:l("Show placeholders")}),r.jsx(vl,{className:"mt-2 flex flex-wrap gap-1",children:C3.map(x=>r.jsx("code",{className:"bg-secondary text-foreground text-[10px] px-1.5 py-0.5 rounded cursor-pointer hover:bg-primary/10",children:x},x))})]})]})]})]})]})]})}function Mp(){return r.jsx("span",{"aria-label":l("Required"),title:l("Required field — Double Opt-In cannot be enabled until this is filled in"),className:"text-destructive font-bold",children:"*"})}function K3({title:e,editorUrl:t}){return r.jsxs("div",{className:"mt-1.5 rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(On,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:re(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),e)}),t?r.jsx(U,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:t,children:[r.jsx(hd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(U,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})}function Q3({settings:e,onChange:t,fields:n}){var c;const s=(d,u)=>{var m;const h={...(m=e.fieldMapping)!=null?m:{},[d]:u};t("fieldMapping",h)},a=_p.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,o=new Set(Object.values((c=e.fieldMapping)!=null?c:{}).filter(Boolean).map(d=>String(d))),i=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!o.has(String(d.name)));return r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{className:"text-base",children:l("Field mapping")}),r.jsxs(Ae,{children:[l("Map placeholder tags used in the email body to the real form fields. Unmapped tags fall back to auto-detection by name (e.g.")," ",r.jsx("code",{children:"your-email"})," → ",r.jsx("code",{children:"[doi_email]"}),l("); if no auto-match is found they render as an empty string. System placeholders like")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("are filled by the plugin itself and are not mapped here.")]})]}),r.jsxs(ne,{className:"space-y-6",children:[k3.map(d=>{const u=_p.filter(h=>h.group===d.id);return u.length===0?null:r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-baseline gap-2 mb-3",children:[r.jsx("h4",{className:"text-sm font-semibold",children:d.label}),r.jsx("span",{className:"text-xs text-muted-foreground",children:d.description})]}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:u.map(h=>{var m,b;return r.jsx(G3,{mapping:h,value:(b=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?b:"",fields:n,onChange:v=>s(h.key,v)},h.key)})})]},d.id)}),r.jsxs("div",{className:"border-t pt-4 space-y-2 text-xs",children:[r.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx(xb,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:re(l("%d of %d placeholders mapped"),a,_p.length)})]}),i.length>0&&r.jsxs("div",{className:"flex items-start gap-2 text-amber-700",children:[r.jsx(fd,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-medium",children:[i.length," form field",i.length===1?"":"s"," not mapped"]}),r.jsxs("span",{className:"text-muted-foreground",children:[" ",l("— captured on submit but never read by the email.")," "]}),r.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[i.slice(0,8).map(d=>{const u=String(d.name);return r.jsx(dt,{variant:"outline",className:"text-[10px] font-mono",children:d.label||u},u)}),i.length>8&&r.jsxs(dt,{variant:"outline",className:"text-[10px]",children:["+",i.length-8]})]})]})]})]})]})]})}function G3({mapping:e,value:t,fields:n,onChange:s}){const a=!!t;return r.jsxs("div",{className:"rounded-md border p-3 space-y-2 transition-colors "+(a?"bg-primary/5 border-primary/20":"bg-muted/30"),children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("code",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded "+(a?"bg-primary/10 text-primary":"bg-secondary text-muted-foreground"),children:e.tag}),r.jsx("span",{className:"text-xs text-muted-foreground truncate",children:e.label})]}),r.jsxs(ye,{value:t||"__none__",onValueChange:o=>s(o==="__none__"?"":o),children:[r.jsx(ge,{className:"h-8 text-xs",children:r.jsx(be,{placeholder:l("Select form field")})}),r.jsxs(ve,{children:[r.jsx($,{value:"__none__",children:l("-- None --")}),n.filter(o=>o.name!==null&&o.name!==void 0&&o.name!=="").map(o=>{const i=String(o.name);return r.jsx($,{value:i,children:o.label||i},i)})]})]})]})}const Y3=["general","email","mapping","pro"];function X3(){var T,O,F,B,I,se;const{integration:e,id:t}=$i(),n=Tn(),s=Ke(),[a,o]=_0(),i=a.get("tab"),c=Y3.includes(i!=null?i:"")?i:"general",d=M=>{const Z=new URLSearchParams(a);M==="general"?Z.delete("tab"):Z.set("tab",M),o(Z,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:b}=Ne({queryKey:["form-settings",t,e],queryFn:()=>G(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),v=(T=m==null?void 0:m.data)!=null&&T.fields&&Array.isArray(m.data.fields)?m.data.fields:[];f.useEffect(()=>{var M;if((M=m==null?void 0:m.data)!=null&&M.settings){const Z=m.data.settings,A=Array.isArray(m.data.fields)?m.data.fields:[];if(Z.enabled&&Pp(Z,A).length>0){h({...Z,enabled:!1});return}h({...Z})}},[m]);const w=ke({mutationFn:M=>G(`/forms/${e}/${t}/settings`,{method:"PUT",body:JSON.stringify({settings:M})}),onSuccess:M=>{var Z,A;if(s.invalidateQueries({queryKey:["forms"]}),s.invalidateQueries({queryKey:["form-settings"]}),(Z=M.data)!=null&&Z.autoDisabled){const D=(A=M.data.missing)!=null?A:[];K.warning(l("Double Opt-In was auto-disabled."),{description:D.length>0?re(l("Configuration is incomplete: %s."),ma(D)):l("Configuration is incomplete.")}),h(J=>({...J,enabled:!1}));return}K.success(l("Settings saved"))},onError:M=>{if(M instanceof rd&&M.code==="INCOMPLETE_CONFIG"){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:M.missing&&M.missing.length>0?re(l("Missing: %s"),ma(M.missing)):void 0}),h(Z=>({...Z,enabled:!1}));return}K.error(M.message)}}),g=(M,Z)=>h(A=>{const D={...A,[M]:Z};return D.enabled&&Pp(D,v).length>0&&(D.enabled=!1),D}),y=f.useSyncExternalStore(P0,()=>T0("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{c==="pro"&&!y&&d("general")},[c,y]),b||!(m!=null&&m.data))return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ae,{className:"h-10 w-64"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-96 w-full"})]});const p=m.data,x=mt(),N={settings:u,onChange:g,fields:v,templates:(O=p.templates)!=null?O:{},categories:(F=p.categories)!=null?F:{},pages:(B=p.pages)!=null?B:{},templateDetails:(I=p.templateDetails)!=null?I:{},adminUrl:x.adminUrl,integration:p.integration},S=Pp(u,v),C=S.length===0,E=!C&&!u.enabled,k=M=>{if(M&&!C){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:re(l("Missing: %s."),ma(S))});return}g("enabled",M)},R=new Set;return(S.includes("recipient")||S.includes("subject")||S.includes("body_or_template"))&&R.add("email"),r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{className:"sticky top-0 z-30 -mx-4 sm:-mx-6 px-4 sm:px-6 pt-4 pb-4 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 border-b",children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"space-y-2 min-w-0",children:[r.jsxs("button",{onClick:()=>n("/forms"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(ud,{className:"h-3.5 w-3.5"}),l("Back to forms")]}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight truncate",children:p.title}),r.jsx("p",{className:"text-muted-foreground text-sm",children:re(l("Configure Double Opt-In for this %s form."),p.integration)})]})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-2 rounded-lg border px-3 py-2 "+(C?"bg-card":"bg-amber-50 border-amber-300 dark:bg-amber-950/30 dark:border-amber-900/50"),title:C?void 0:re(l("Configuration incomplete. Missing: %s"),ma(S)),children:[!C&&r.jsx(Nt,{className:"h-4 w-4 text-amber-600 shrink-0","aria-label":l("Configuration incomplete")}),r.jsx(Y,{htmlFor:"form-enabled",className:"text-sm",children:u.enabled?l("Enabled"):l("Disabled")}),r.jsx(sn,{id:"form-enabled",checked:(se=u.enabled)!=null?se:!1,disabled:E,onCheckedChange:k,className:"data-[state=checked]:bg-success"})]}),r.jsxs(dt,{variant:"secondary",className:"font-mono text-[10px] hidden sm:inline-flex",children:["#",p.id]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(U,{variant:"outline",size:"sm",onClick:()=>n("/forms"),children:l("Cancel")}),r.jsx(U,{size:"sm",disabled:w.isPending,onClick:()=>w.mutate(u),children:w.isPending?l("Saving..."):l("Save settings")})]})]})]})}),!C&&r.jsx("div",{role:"alert",className:"!mt-20 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(Nt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("div",{className:"font-semibold",children:l("Configuration incomplete")}),r.jsx("p",{className:"leading-relaxed",children:l("Double Opt-In cannot be enabled for this form until the following required fields are filled in:")}),r.jsx("ul",{className:"list-disc list-inside ml-1 space-y-0.5",children:S.map(M=>r.jsx("li",{children:pN(M)},M))})]})]})}),r.jsxs(LN,{value:c,onValueChange:d,className:"!mt-12",children:[r.jsxs(Ip,{children:[r.jsx(bs,{value:"general",children:l("General")}),r.jsxs(bs,{value:"email",className:"gap-1",children:[l("Email"),R.has("email")&&r.jsx(Nt,{className:"h-3 w-3 text-amber-600","aria-label":l("Tab contains incomplete required fields")})]}),r.jsx(bs,{value:"mapping",children:l("Mapping")}),y&&r.jsx(bs,{value:"pro",children:l("Pro Features")})]}),r.jsx(jl,{value:"general",className:"mt-6",children:r.jsx(W3,{...N})}),r.jsx(jl,{value:"email",className:"mt-6",children:r.jsx(q3,{...N})}),r.jsx(jl,{value:"mapping",className:"mt-6",children:r.jsx(Q3,{...N})}),y&&r.jsx(jl,{value:"pro",className:"mt-6",children:r.jsx($n,{id:"forms.pro-features",data:N})})]}),r.jsx($n,{id:"forms.integration-settings",data:{form:{id:p.id,title:p.title,integration:p.integration},integration:p.integration,settings:u}})]})}function Z3(){return r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsx(De,{children:Array.from({length:6}).map((e,t)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-16"})},t))})}),r.jsx(rn,{children:Array.from({length:3}).map((e,t)=>r.jsx(De,{children:Array.from({length:6}).map((n,s)=>r.jsx(le,{children:r.jsx(ae,{className:"h-3 w-full"})},s))},t))})]})}function $N(){var p;const e=Ke(),[t,n]=f.useState(""),[s,a]=f.useState(null),[o,i]=f.useState(null),[c,d]=f.useState(""),{data:u,isLoading:h}=Ne({queryKey:["categories"],queryFn:()=>G("/categories")}),m=ke({mutationFn:x=>G("/categories",{method:"POST",body:JSON.stringify({name:x})}),onSuccess:()=>{K.success(l("Category created")),n(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{K.error(x.message||l("Failed to create category"))}}),b=ke({mutationFn:({id:x,name:N})=>G(`/categories/${x}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{K.success(l("Category updated")),i(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{K.error(x.message||l("Failed to update category"))}}),v=ke({mutationFn:x=>G(`/categories/${x}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Category deleted")),a(null),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{K.error(x.message||l("Failed to delete category"))}}),w=(p=u==null?void 0:u.data)!=null?p:[];function g(x){i(x.id),d(x.name)}function j(){i(null),d("")}function y(){o!==null&&c.trim()&&b.mutate({id:o,name:c.trim()})}return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Categories")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage opt-in categories")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(ee,{children:r.jsx(ne,{className:"p-0",children:h?r.jsx(Z3,{}):r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs",children:l("ID")}),r.jsx(Te,{className:"text-xs",children:l("Name")}),r.jsx(Te,{className:"text-xs",children:l("Opt-Ins")}),r.jsx(Te,{className:"text-xs",children:l("Created")}),r.jsx(Te,{className:"text-xs",children:l("Updated")}),r.jsx(Te,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(rn,{children:w.length===0?r.jsx(De,{children:r.jsx(le,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No categories found")})}):w.map(x=>r.jsxs(De,{children:[r.jsx(le,{className:"tabular-nums text-muted-foreground text-xs",children:x.id}),r.jsx(le,{children:o===x.id?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Re,{value:c,onChange:N=>d(N.target.value),className:"h-7 text-sm",onKeyDown:N=>{N.key==="Enter"&&y(),N.key==="Escape"&&j()},autoFocus:!0}),r.jsx(U,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:y,disabled:b.isPending,children:r.jsx(cs,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(U,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:j,children:r.jsx(gd,{className:"h-3.5 w-3.5"})})]}):r.jsx(xt,{to:`/categories/${x.id}`,className:"text-primary hover:underline font-medium text-sm",children:x.name})}),r.jsx(le,{className:"tabular-nums text-muted-foreground text-xs",children:x.optin_count}),r.jsx(le,{className:"text-muted-foreground text-xs",children:x.createtime}),r.jsx(le,{className:"text-muted-foreground text-xs",children:x.updatetime}),r.jsx(le,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsxs(U,{variant:"ghost",size:"sm",className:"text-xs h-7",onClick:()=>g(x),children:[r.jsx(hd,{className:"h-3 w-3 mr-1"}),l("Edit")]}),r.jsx(U,{variant:"ghost",size:"sm",className:"text-destructive text-xs h-7",onClick:()=>a(x.id),children:l("Delete")})]})})]},x.id))})]})})})}),r.jsx("div",{children:r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-3",children:r.jsx(fe,{className:"text-sm font-medium",children:l("New Category")})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Name:")}),r.jsx(Re,{className:"mt-1.5",value:t,onChange:x=>n(x.target.value),placeholder:l("Category name"),onKeyDown:x=>{x.key==="Enter"&&t.trim()&&m.mutate(t.trim())}})]}),r.jsx(U,{size:"sm",disabled:!t.trim()||m.isPending,onClick:()=>{t.trim()&&m.mutate(t.trim())},children:m.isPending?l("Adding..."):l("Add")})]})]})})]}),r.jsx(Er,{open:s!==null,onOpenChange:()=>a(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Category")}),r.jsx(sr,{children:l("Are you sure? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",onClick:()=>a(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:v.isPending,onClick:()=>{s!==null&&v.mutate(s)},children:v.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function Dp({icon:e,title:t,description:n,children:s}){return r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(e,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:t}),r.jsx(Ae,{className:"text-xs",children:n})]})]})}),r.jsx(ne,{className:"border-t pt-4 space-y-4",children:s})]})}function J3(){return r.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((e,t)=>r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ae,{className:"h-9 w-9 rounded-lg"}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(ae,{className:"h-4 w-32"}),r.jsx(ae,{className:"h-3 w-48"})]})]})}),r.jsxs(ne,{className:"border-t pt-4 space-y-4",children:[r.jsx(ae,{className:"h-9 w-full"}),r.jsx(ae,{className:"h-9 w-full"})]})]},t))})}function eI(){var p,x,N,S,C,E,k,R,T;const{isProInstalled:e,isProLicenseActive:t}=Od(),n=ra("reminder"),s=ra("mx-validator"),a=ra("domain-blocklist"),o=!n&&!s&&!a,i=Ke(),c=mt(),{data:d,isLoading:u}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),{data:h}=Ne({queryKey:["pages"],queryFn:()=>G("/settings/pages")}),[m,b]=f.useState({}),[v,w]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!v&&(b(d.data),w(!0))},[d,v]);const g=ke({mutationFn:()=>G("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:O=>{K.success(l("Settings saved successfully")),i.invalidateQueries({queryKey:["settings"]})},onError:O=>{K.error(O.message||l("Failed to save settings"))}});function j(O,F){b(B=>({...B,[O]:F}))}const y=(p=h==null?void 0:h.data)!=null?p:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Settings")}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure global Double Opt-In settings")})]}),r.jsxs(U,{size:"sm",onClick:()=>g.mutate(),disabled:g.isPending,children:[r.jsx(oa,{className:"mr-2 h-4 w-4"}),g.isPending?l("Saving..."):l("Save Changes")]})]}),u?r.jsx(J3,{}):r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs(Dp,{icon:ds,title:l("Data Retention"),description:l("Configure automatic cleanup of opt-in records"),children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Delete Opt-Ins after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Re,{type:"number",value:(x=m.delete)!=null?x:12,onChange:O=>j("delete",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(ye,{value:(N=m.delete_period)!=null?N:"months",onValueChange:O=>j("delete_period",O),children:[r.jsx(ge,{className:"w-28 h-9",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"days",children:l("Days")}),r.jsx($,{value:"months",children:l("Months")}),r.jsx($,{value:"years",children:l("Years")})]})]})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Set to 0 to disable. GDPR recommends regular cleanup.")})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Delete Unconfirmed after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Re,{type:"number",value:(S=m.delete_unconfirmed)!=null?S:7,onChange:O=>j("delete_unconfirmed",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(ye,{value:(C=m.delete_unconfirmed_period)!=null?C:"months",onValueChange:O=>j("delete_unconfirmed_period",O),children:[r.jsx(ge,{className:"w-28 h-9",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"days",children:l("Days")}),r.jsx($,{value:"months",children:l("Months")}),r.jsx($,{value:"years",children:l("Years")})]})]})]})]})]}),r.jsx(Dp,{icon:SP,title:l("Privacy"),description:l("Privacy policy and GDPR settings"),children:r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Privacy Policy Page")}),r.jsxs(ye,{value:m.privacy_policy_page?String(m.privacy_policy_page):"",onValueChange:O=>j("privacy_policy_page",Number(O)),children:[r.jsx(ge,{className:"mt-1.5 h-9",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ve,{children:y.map(O=>r.jsx($,{value:String(O.id),children:O.title},O.id))})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Used for [doubleoptin_privacy_url] placeholder")})]})}),r.jsx(Dp,{icon:ph,title:l("Security"),description:l("Token and rate limiting configuration"),children:r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Token Expiry (Hours)")}),r.jsx(Re,{type:"number",value:(E=m.token_expiry_hours)!=null?E:48,onChange:O=>j("token_expiry_hours",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:720})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Rate Limit IP")}),r.jsx(Re,{type:"number",value:(k=m.rate_limit_ip)!=null?k:5,onChange:O=>j("rate_limit_ip",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Rate Limit Email")}),r.jsx(Re,{type:"number",value:(R=m.rate_limit_email)!=null?R:3,onChange:O=>j("rate_limit_email",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs font-medium",children:l("Rate Limit Window (Min)")}),r.jsx(Re,{type:"number",value:(T=m.rate_limit_window)!=null?T:60,onChange:O=>j("rate_limit_window",Number(O.target.value)),className:"mt-1.5 h-9",min:1,max:1440})]})]})}),r.jsx(ee,{children:r.jsx(ue,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(wt,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Telemetry")}),r.jsx(Ae,{className:"text-xs",children:l("Helps improve the plugin. No personal data collected.")})]})]}),r.jsx(sn,{checked:!!m.telemetry,onCheckedChange:O=>j("telemetry",O?1:0)})]})})}),r.jsx(ee,{children:r.jsx(ue,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(_P,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Show credit link")}),r.jsx(Ae,{className:"text-xs",children:l('Adds a small "Double Opt-In by Forge12" link on the page a subscriber lands on after confirming. Off by default.')})]})]}),r.jsx(sn,{checked:!!m.credit_link,onCheckedChange:O=>j("credit_link",O?1:0)})]})})}),r.jsx(ee,{children:r.jsx(ue,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(Ki,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(fe,{className:"text-sm font-medium",children:l("Keep data on uninstall")}),r.jsx(Ae,{className:"text-xs",children:l("Preserve opt-in records and categories if the plugin is deleted. Turn off for a full cleanup on uninstall.")})]})]}),r.jsx(sn,{checked:!!m.keep_data_on_uninstall,onCheckedChange:O=>j("keep_data_on_uninstall",O?1:0)})]})})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(ee,{children:r.jsxs(ne,{className:"flex items-start gap-2 p-4",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Global settings affect all forms. Individual form settings can override some options.")})]})}),r.jsx(Z5,{}),o&&r.jsx(ee,{className:"border-primary/20 bg-primary/[0.03]",children:r.jsx(ne,{className:"p-5",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(wb,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l("Available as add-ons")}),r.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mt-2",children:[r.jsxs("li",{children:["✓ ",l("Automatic reminders")]}),r.jsxs("li",{children:["✓ ",l("Email domain validation")]}),r.jsxs("li",{children:["✓ ",l("Disposable email blocking")]}),r.jsxs("li",{children:["✓ ",l("Priority support")]})]}),r.jsx("a",{href:c.upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90 mt-3 w-full justify-center",children:l("See the add-ons")})]})]})})})]})]}),r.jsx($n,{id:"settings.tab",data:{settings:m}})]})}function tI(){var h;const e=Ke(),[t,n]=f.useState(null),{data:s,isLoading:a}=Ne({queryKey:["email-templates"],queryFn:()=>G("/email-templates"),refetchOnMount:"always"}),o=(h=s==null?void 0:s.data)!=null?h:[],i=ke({mutationFn:m=>G(`/email-templates/${m}/duplicate`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(l("Template duplicated"))},onError:m=>K.error(m.message)}),c=ke({mutationFn:m=>G(`/email-templates/${m}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(l("Template deleted")),n(null)},onError:m=>{K.error(m.message),n(null)}}),d=ke({mutationFn:({id:m,status:b})=>G(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:b})}),onSuccess:(m,b)=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(b.status==="publish"?l("Template published"):l("Template moved to draft"))},onError:m=>K.error(m.message)}),u=m=>m==="publish"||m==="Published";return a?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(ee,{children:r.jsx(ne,{className:"pt-6 space-y-3",children:[1,2,3].map(m=>r.jsx(ae,{className:"h-10 w-full"},m))})})]}):o.length===0?r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")})}),r.jsx(ee,{className:"py-16 text-center",children:r.jsxs(ne,{children:[r.jsx(jb,{className:"h-16 w-16 text-muted-foreground/30 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-1",children:l("No templates yet")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l("Create your first email template")}),r.jsx(U,{asChild:!0,children:r.jsx(xt,{to:"/email-templates/new",children:l("Create Template")})})]})})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(U,{size:"sm",asChild:!0,children:r.jsxs(xt,{to:"/email-templates/new",children:[r.jsx(lo,{className:"h-4 w-4 mr-1"})," ",l("Create New")]})})]}),r.jsx(ee,{children:r.jsx(ne,{className:"p-0",children:r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs",children:l("Name")}),r.jsx(Te,{className:"text-xs",children:l("Status")}),r.jsx(Te,{className:"text-xs",children:l("Created")}),r.jsx(Te,{className:"text-xs",children:l("Modified")}),r.jsx(Te,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(rn,{children:o.map(m=>r.jsxs(De,{children:[r.jsx(le,{children:r.jsx(xt,{to:`/email-templates/${m.id}/edit`,className:"text-primary hover:underline font-medium text-sm",children:m.title})}),r.jsx(le,{children:r.jsxs(ye,{value:u(m.status)?"publish":"draft",onValueChange:b=>d.mutate({id:m.id,status:b}),disabled:d.isPending,children:[r.jsx(ge,{className:`h-8 w-[150px] text-xs ${u(m.status)?"text-green-600 dark:text-green-500":"text-muted-foreground"}`,children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"publish",children:l("Published")}),r.jsx($,{value:"draft",children:l("Draft")})]})]})}),r.jsx(le,{className:"text-muted-foreground text-xs",children:m.created_at}),r.jsx(le,{className:"text-muted-foreground text-xs",children:m.modified_at}),r.jsxs(le,{className:"text-right space-x-1",children:[r.jsx(U,{size:"sm",className:"text-xs",asChild:!0,children:r.jsx(xt,{to:`/email-templates/${m.id}/edit`,children:l("Edit")})}),r.jsx(U,{size:"sm",variant:"outline",className:"text-xs",disabled:i.isPending,onClick:()=>i.mutate(m.id),children:l("Duplicate")}),r.jsx(U,{size:"sm",variant:"ghost",className:"text-destructive text-xs",onClick:()=>n(m.id),children:l("Delete")})]})]},m.id))})]})})}),r.jsx(Er,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Template")}),r.jsx(sr,{children:l("Are you sure you want to delete this template? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:c.isPending,onClick:()=>{t!==null&&c.mutate(t)},children:c.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function nI(){var m;const e=Ke(),[t,n]=f.useState(null),[s,a]=f.useState(""),{data:o,isLoading:i}=Ne({queryKey:["db-stats"],queryFn:()=>G("/database/stats")}),c=(m=o==null?void 0:o.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=ke({mutationFn:b=>G("/database/clean",{method:"POST",body:JSON.stringify({scope:b})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(l("Records deleted successfully")),n(null)},onError:b=>{K.error(b.message),n(null)}}),u=ke({mutationFn:()=>G("/database/reset",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(l("Database reset successfully")),n(null),a("")},onError:b=>{K.error(b.message),n(null),a("")}}),h=[{key:"all",title:l("Delete All Opt-Ins"),desc:l("Remove all opt-in records from the database"),icon:vn},{key:"confirmed",title:l("Delete Confirmed Only"),desc:l("Remove only confirmed opt-in records"),icon:qi},{key:"unconfirmed",title:l("Delete Unconfirmed Only"),desc:l("Remove only unconfirmed/pending opt-in records"),icon:ds}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Database Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your opt-in database records")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Ki,{className:"h-3 w-3"})," ",l("Total Records")]})}),r.jsx(ne,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold",children:c.total})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(qi,{className:"h-3 w-3 text-success"})," ",l("Confirmed")]})}),r.jsx(ne,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-success",children:c.confirmed})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(ds,{className:"h-3 w-3 text-warning"})," ",l("Unconfirmed")]})}),r.jsx(ne,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:c.unconfirmed})})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded-lg px-4 py-3 text-sm",children:[r.jsx(Nt,{className:"h-4 w-4 shrink-0"}),l("These actions are irreversible. Please backup your database first.")]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:h.map(b=>r.jsx(ee,{className:"text-center",children:r.jsxs(ne,{className:"pt-6 pb-4",children:[r.jsx(b.icon,{className:"h-8 w-8 mx-auto mb-3 text-muted-foreground"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:b.title}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:b.desc}),r.jsx(U,{variant:b.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(b.key),children:b.title})]})},b.key))}),r.jsx(ee,{className:"border-destructive/50",children:r.jsxs(ne,{className:"pt-6 pb-4 text-center",children:[r.jsx(pd,{className:"h-8 w-8 mx-auto mb-3 text-destructive"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:l("Reset Database")}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:l("Drop and recreate all Double Opt-In tables. This removes all data permanently.")}),r.jsx(U,{variant:"destructive",size:"sm",className:"text-xs",onClick:()=>n("reset"),children:l("Reset Database")})]})})]}),r.jsx("div",{children:r.jsx(ee,{children:r.jsxs(ne,{className:"flex items-start gap-2 p-4",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:l("For automated cleanup, configure auto-deletion in Settings.")}),r.jsxs("a",{href:"#/settings",className:"text-xs text-primary hover:underline flex items-center gap-1",children:[r.jsx(AP,{className:"h-3 w-3"})," ",l("Go to Settings")]})]})]})})})]}),r.jsx(Er,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Confirm Deletion")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete these records? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:d.isPending,onClick:()=>{t&&d.mutate(t)},children:d.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(Er,{open:t==="reset",onOpenChange:()=>{n(null),a("")},children:r.jsxs(tr,{className:"max-w-[440px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{className:"text-destructive",children:l("Reset Database")}),r.jsx(sr,{children:l("This will drop and recreate all Double Opt-In tables, permanently destroying all data. This cannot be undone.")})]}),r.jsxs("div",{className:"space-y-3 py-2",children:[r.jsx(Y,{className:"text-sm",children:l("Type DELETE to confirm:")}),r.jsx(Re,{value:s,onChange:b=>a(b.target.value),placeholder:"DELETE",className:"font-mono"})]}),r.jsxs(ys,{children:[r.jsx(U,{variant:"outline",onClick:()=>{n(null),a("")},children:l("Cancel")}),r.jsx(U,{variant:"destructive",disabled:s!=="DELETE"||u.isPending,onClick:()=>u.mutate(),children:u.isPending?l("Resetting..."):l("Reset Database")})]})]})})]})}var Un="Accordion",rI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Fp,sI,aI]=od(Un),[au]=Mt(Un,[aI,R1]),Lp=R1(),zN=W.forwardRef((e,t)=>{const{type:n,...s}=e,a=s,o=s;return r.jsx(Fp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(cI,{...o,ref:t}):r.jsx(lI,{...a,ref:t})})});zN.displayName=Un;var[UN,oI]=au(Un),[BN,iI]=au(Un,{collapsible:!1}),lI=W.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},collapsible:o=!1,...i}=e,[c,d]=Jt({prop:n,defaultProp:s!=null?s:"",onChange:a,caller:Un});return r.jsx(UN,{scope:e.__scopeAccordion,value:W.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:W.useCallback(()=>o&&d(""),[o,d]),children:r.jsx(BN,{scope:e.__scopeAccordion,collapsible:o,children:r.jsx(VN,{...i,ref:t})})})}),cI=W.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},...o}=e,[i,c]=Jt({prop:n,defaultProp:s!=null?s:[],onChange:a,caller:Un}),d=W.useCallback(h=>c((m=[])=>[...m,h]),[c]),u=W.useCallback(h=>c((m=[])=>m.filter(b=>b!==h)),[c]);return r.jsx(UN,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:u,children:r.jsx(BN,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(VN,{...o,ref:t})})})}),[dI,ou]=au(Un),VN=W.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:a,orientation:o="vertical",...i}=e,c=W.useRef(null),d=Me(c,t),u=sI(n),m=hl(a)==="ltr",b=he(e.onKeyDown,v=>{var k;if(!rI.includes(v.key))return;const w=v.target,g=u().filter(R=>{var T;return!((T=R.ref.current)!=null&&T.disabled)}),j=g.findIndex(R=>R.ref.current===w),y=g.length;if(j===-1)return;v.preventDefault();let p=j;const x=0,N=y-1,S=()=>{p=j+1,p>N&&(p=x)},C=()=>{p=j-1,p<x&&(p=N)};switch(v.key){case"Home":p=x;break;case"End":p=N;break;case"ArrowRight":o==="horizontal"&&(m?S():C());break;case"ArrowDown":o==="vertical"&&S();break;case"ArrowLeft":o==="horizontal"&&(m?C():S());break;case"ArrowUp":o==="vertical"&&C();break}const E=p%y;(k=g[E].ref.current)==null||k.focus()});return r.jsx(dI,{scope:n,disabled:s,direction:a,orientation:o,children:r.jsx(Fp.Slot,{scope:n,children:r.jsx(xe.div,{...i,"data-orientation":o,ref:d,onKeyDown:s?void 0:b})})})}),iu="AccordionItem",[uI,$p]=au(iu),HN=W.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,o=ou(iu,n),i=oI(iu,n),c=Lp(n),d=Mn(),u=s&&i.value.includes(s)||!1,h=o.disabled||e.disabled;return r.jsx(uI,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(I1,{"data-orientation":o.orientation,"data-state":YN(u),...c,...a,ref:t,disabled:h,open:u,onOpenChange:m=>{m?i.onItemOpen(s):i.onItemClose(s)}})})});HN.displayName=iu;var WN="AccordionHeader",qN=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=ou(Un,n),o=$p(WN,n);return r.jsx(xe.h3,{"data-orientation":a.orientation,"data-state":YN(o.open),"data-disabled":o.disabled?"":void 0,...s,ref:t})});qN.displayName=WN;var zp="AccordionTrigger",KN=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=ou(Un,n),o=$p(zp,n),i=iI(zp,n),c=Lp(n);return r.jsx(Fp.ItemSlot,{scope:n,children:r.jsx(KO,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...c,...s,ref:t})})});KN.displayName=zp;var QN="AccordionContent",GN=W.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=ou(Un,n),o=$p(QN,n),i=Lp(n);return r.jsx(QO,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...i,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});GN.displayName=QN;function YN(e){return e?"open":"closed"}var fI=zN,mI=HN,hI=qN,XN=KN,ZN=GN;const pI=fI,JN=f.forwardRef(({className:e,...t},n)=>r.jsx(mI,{ref:n,className:V("border-b",e),...t}));JN.displayName="AccordionItem";const eS=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(hI,{className:"flex",children:r.jsxs(XN,{ref:s,className:V("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsx(sa,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));eS.displayName=XN.displayName;const tS=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(ZN,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:r.jsx("div",{className:V("pb-4 pt-0",e),children:t})}));tS.displayName=ZN.displayName;const Up=["success","invalid_email","invalid_nonce","save_failed","send_failed"],nS={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""},send_failed:{title:"",body:""}},rS={success:{label:l("Success — email sent"),hint:l("Shown after the user submits their email and the confirmation mail goes out.")},invalid_email:{label:l("Error — invalid email"),hint:l("Shown when the visitor entered an obviously malformed address.")},invalid_nonce:{label:l("Error — session expired"),hint:l("Shown when the form's CSRF nonce was rejected (form sat unsubmitted for too long).")},save_failed:{label:l("Error — save failed"),hint:l("Shown on rare DB write failures.")},send_failed:{label:l("Error — email not sent"),hint:l("Shown when the request was recorded but the email could not go out — most often because the subject or body below is still empty. This case used to show the success notice instead, so visitors waited for a mail that was never sent.")}},Bp=["column_subscription","column_signed_up","column_status","column_valid_until","badge_active","badge_cancelled","cancel_button","cancel_confirm","bulk_button","bulk_confirm","reactivate_button","reactivate_confirm","empty_state","confirm_yes","confirm_no"],sS=Bp.reduce((e,t)=>({...e,[t]:""}),{}),xI=[{group:l("Table columns"),items:[{key:"column_subscription"},{key:"column_signed_up"},{key:"column_status"},{key:"column_valid_until"}]},{group:l("Status badges"),items:[{key:"badge_active"},{key:"badge_cancelled"}]},{group:l("Action buttons"),items:[{key:"cancel_button",hint:l("Per-row button to cancel one subscription.")},{key:"bulk_button",hint:l("Button above the table, shown when 2+ active rows exist.")},{key:"reactivate_button",hint:l("Per-row button to re-activate a cancelled subscription.")}]},{group:l("Confirm modal — prompts"),items:[{key:"cancel_confirm",hint:l("Shown in the modal before cancelling a single subscription.")},{key:"bulk_confirm",hint:l("Shown in the modal before bulk-cancelling all subscriptions.")},{key:"reactivate_confirm",hint:l("Shown in the modal before re-activating a cancelled subscription.")}]},{group:l("Confirm modal — buttons"),items:[{key:"confirm_yes",hint:l("Confirms the action — red button. Shared across all three prompts.")},{key:"confirm_no",hint:l("Closes the modal without acting — neutral button. Shared across all three prompts.")}]},{group:l("Empty state"),items:[{key:"empty_state",hint:l("Shown when the email has no subscriptions on file.")}]}],Vp=["cancelled","cancelled_all","reactivated"],aS={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},Hp={cancelled:{label:l("After cancelling one subscription"),hint:l("Green notice shown on the list page after the visitor clicks Cancel on a single row."),bodyPlaceholders:l("%s = form/subscription title")},cancelled_all:{label:l("After bulk-cancelling"),hint:l("Green notice shown after the visitor confirms the Cancel ALL action."),bodyPlaceholders:l("%d = number of cancelled subscriptions")},reactivated:{label:l("After re-activating"),hint:l("Green notice shown after the visitor clicks Reactivate on a previously cancelled subscription."),bodyPlaceholders:l("%s = form/subscription title")}},gI={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:nS,labels:sS,list_notices:aS,disabled_notice:{enabled:!1,title:"",body:""}},forms:[]};function vI(){var A,D,J,pe;const e=ra("opt-out"),t=Ke(),{data:n,isLoading:s}=Ne({queryKey:["optout-settings"],queryFn:()=>G("/optout/settings"),enabled:e}),{data:a}=Ne({queryKey:["pages"],queryFn:()=>G("/settings/pages")}),{data:o}=Ne({queryKey:["email-templates-list"],queryFn:()=>G("/settings/email-templates-list")}),{data:i}=Ne({queryKey:["forms"],queryFn:()=>G("/forms"),enabled:e}),[c,d]=f.useState(gI),[u,h]=f.useState(!1),[m,b]=f.useState("");f.useEffect(()=>{var Ee,Be,H,Oe,Ve,qt,Rs,zo,Na,ln,Al,cr,pu,xu,Ft,Mr;if(!(n!=null&&n.data)||u)return;const P=n.data,z=(Ve=P._defaults)!=null?Ve:{optout_page:Number((Ee=P.optout_page)!=null?Ee:0),optout_subject:String((Be=P.optout_subject)!=null?Be:""),optout_template:String((H=P.optout_template)!=null?H:""),optout_body:String((Oe=P.optout_body)!=null?Oe:"")},q=(qt=P._defaults)==null?void 0:qt.notices,oe=Up.reduce((dr,wn)=>{var cn,Sa,As,Dr;return dr[wn]={title:String((Sa=(cn=q==null?void 0:q[wn])==null?void 0:cn.title)!=null?Sa:""),body:String((Dr=(As=q==null?void 0:q[wn])==null?void 0:As.body)!=null?Dr:"")},dr},{}),Se=(Rs=P._defaults)==null?void 0:Rs.labels,X=Bp.reduce((dr,wn)=>{var cn;return dr[wn]=String((cn=Se==null?void 0:Se[wn])!=null?cn:""),dr},{}),je=(zo=P._defaults)==null?void 0:zo.list_notices,L=Vp.reduce((dr,wn)=>{var cn,Sa,As,Dr;return dr[wn]={title:String((Sa=(cn=je==null?void 0:je[wn])==null?void 0:cn.title)!=null?Sa:""),body:String((Dr=(As=je==null?void 0:je[wn])==null?void 0:As.body)!=null?Dr:"")},dr},{}),me=(Na=P._defaults)==null?void 0:Na.disabled_notice,Ce={enabled:!!((ln=me==null?void 0:me.enabled)!=null&&ln),title:String((Al=me==null?void 0:me.title)!=null?Al:""),body:String((cr=me==null?void 0:me.body)!=null?cr:"")};d({enabled:P._enabled!==!1,defaults:{optout_page:Number((pu=z.optout_page)!=null?pu:0),optout_subject:String((xu=z.optout_subject)!=null?xu:""),optout_template:String((Ft=z.optout_template)!=null?Ft:""),optout_body:String((Mr=z.optout_body)!=null?Mr:""),notices:oe,labels:X,list_notices:L,disabled_notice:Ce},forms:Array.isArray(P._forms)?P._forms:[]}),h(!0)},[n,u]);const v=f.useMemo(()=>{var z,q,oe;const P=(z=n==null?void 0:n.data)==null?void 0:z._disabled_notice_defaults;return{title:String((q=P==null?void 0:P.title)!=null?q:""),body:String((oe=P==null?void 0:P.body)!=null?oe:"")}},[n]),w=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._labels_defaults;return P?Bp.reduce((q,oe)=>{var Se;return q[oe]=String((Se=P[oe])!=null?Se:""),q},{}):sS},[n]),g=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._list_notices_defaults;return P?Vp.reduce((q,oe)=>{var Se,X,je,L;return q[oe]={title:String((X=(Se=P[oe])==null?void 0:Se.title)!=null?X:""),body:String((L=(je=P[oe])==null?void 0:je.body)!=null?L:"")},q},{}):aS},[n]),j=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._notices_defaults;return P?Up.reduce((q,oe)=>{var Se,X,je,L;return q[oe]={title:String((X=(Se=P[oe])==null?void 0:Se.title)!=null?X:""),body:String((L=(je=P[oe])==null?void 0:je.body)!=null?L:"")},q},{}):nS},[n]),y=f.useMemo(()=>{var q;const P=(q=i==null?void 0:i.data)!=null?q:{},z=[];for(const[oe,Se]of Object.entries(P))if(Se)for(const X of Se.forms){const je=typeof X.id=="string"?X.id:String(X.id),L=Number(je.split("_")[0]);L&&z.push({key:`${oe}_${je}`,integration:oe,integrationName:Se.name,formId:L,restId:je,title:X.title||`#${L}`})}return z},[i]),p=(P,z)=>{const q=y.find(oe=>oe.integration===P&&oe.formId===z);return q?`${q.integrationName} / ${q.title}`:`${P} / #${z}`},x=ke({mutationFn:()=>G("/optout/page/generate",{method:"POST"}),onSuccess:P=>{t.invalidateQueries({queryKey:["pages"]}),d(z=>({...z,defaults:{...z.defaults,optout_page:P.page_id}})),K.success(P.message)},onError:P=>{const z=(P==null?void 0:P.message)||l("Failed to generate opt-out page.");K.error(z)}}),N=ke({mutationFn:P=>G("/optout/settings",{method:"PUT",body:JSON.stringify({enabled:P.enabled,optout_page:P.defaults.optout_page,optout_subject:P.defaults.optout_subject,optout_template:P.defaults.optout_template,optout_body:P.defaults.optout_body,defaults:P.defaults,forms:P.forms})}),onSuccess:P=>{t.invalidateQueries({queryKey:["optout-settings"]}),K.success(P.message||l("Opt-out settings saved."))},onError:P=>{K.error(P.message||l("Failed to save settings."))}}),S=(A=a==null?void 0:a.data)!=null?A:[],C=(D=o==null?void 0:o.data)!=null?D:[];function E(P,z){d(q=>({...q,defaults:{...q.defaults,[P]:z}}))}function k(P,z,q){d(oe=>({...oe,defaults:{...oe.defaults,notices:{...oe.defaults.notices,[P]:{...oe.defaults.notices[P],[z]:q}}}}))}function R(P,z){d(q=>({...q,defaults:{...q.defaults,labels:{...q.defaults.labels,[P]:z}}}))}function T(P,z,q){d(oe=>({...oe,defaults:{...oe.defaults,list_notices:{...oe.defaults.list_notices,[P]:{...oe.defaults.list_notices[P],[z]:q}}}}))}function O(P,z){d(q=>({...q,defaults:{...q.defaults,disabled_notice:{...q.defaults.disabled_notice,[P]:z}}}))}function F(){if(!m)return;const P=y.find(z=>z.key===m);if(P){if(c.forms.some(z=>z.integration===P.integration&&z.form_id===P.formId)){K.warning(l("This form is already in the list."));return}d(z=>({...z,forms:[...z.forms,{integration:P.integration,form_id:P.formId,enabled:null,optout_page:null,optout_subject:null,optout_template:null,optout_body:null}]})),b("")}}function B(P){d(z=>({...z,forms:z.forms.filter((q,oe)=>oe!==P)}))}function I(P,z,q){d(oe=>({...oe,forms:oe.forms.map((Se,X)=>X===P?{...Se,[z]:q}:Se)}))}const se=f.useMemo(()=>{const P=S.find(z=>z.id===c.defaults.optout_page);return P?P.title:l("(no page selected)")},[S,c.defaults.optout_page]),M=f.useMemo(()=>{if(!c.defaults.optout_template)return l("(inline body)");const P=C.find(z=>String(z.id)===String(c.defaults.optout_template));return P?P.title:c.defaults.optout_template},[C,c.defaults.optout_template]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(bb,{className:"h-6 w-6"}),l("Opt-Out Settings"),!e&&r.jsx(Ep,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure the opt-out system for your subscribers")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Ae,{children:l("Turn the entire opt-out feature on or off without deactivating the addon plugin. Useful for pausing while debugging.")})]}),r.jsx(ne,{children:s?r.jsx(ae,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"optout-enabled",className:"text-base",children:l("Opt-Out enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no opt-out mails are sent for any form — regardless of per-form overrides below.")})]}),r.jsx(sn,{id:"optout-enabled",checked:c.enabled,onCheckedChange:P=>d(z=>({...z,enabled:P}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("When disabled")}),r.jsxs(Ae,{children:[l("Controls what visitors see if the master toggle above is off. By default the opt-out form + list shortcodes render")," ",r.jsx("strong",{children:l("nothing")})," ",l("when the feature is paused. Turn this on to display a configurable amber notice instead — useful for telling people the feature is temporarily unavailable rather than letting them wonder why the page is blank.")]})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsx(ae,{className:"h-32 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"disabled-notice-enabled",className:"text-base",children:l("Show the notice when disabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Only relevant when the master toggle above is off — has no effect while opt-out is active.")})]}),r.jsx(sn,{id:"disabled-notice-enabled",checked:c.defaults.disabled_notice.enabled,onCheckedChange:P=>O("enabled",P)})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:"disabled-notice-title",children:l("Title")}),r.jsx(Re,{id:"disabled-notice-title",className:"mt-1 h-9 text-xs",placeholder:v.title||l("Default title"),value:c.defaults.disabled_notice.title,onChange:P=>O("title",P.target.value)})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:"disabled-notice-body",children:l("Body")}),r.jsx(Pr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:v.body||l("Default body"),value:c.defaults.disabled_notice.body,onChange:P=>O("body",P.target.value)})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Opt-Out Page (default)")}),r.jsxs(Ae,{children:[l("Page that hosts the opt-out form and list — applies to every form unless overridden below. Use")," ",r.jsx("strong",{children:l("Generate")})," ",l("to create one in a single click with both shortcodes already in place.")]})]}),r.jsxs(ne,{children:[s?r.jsx(ae,{className:"h-10 w-full"}):r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:c.defaults.optout_page?String(c.defaults.optout_page):"",onValueChange:P=>E("optout_page",P?Number(P):0),children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a page...")})}),r.jsx(ve,{children:S.map(P=>r.jsx($,{value:P.id.toString(),children:P.title},P.id))})]}),r.jsxs(U,{type:"button",variant:"outline",onClick:()=>x.mutate(),disabled:x.isPending,title:l("Create a new page with the opt-out shortcodes"),children:[r.jsx(gh,{className:"h-4 w-4 mr-1.5"}),x.isPending?l("Generating..."):l("Generate")]})]}),c.defaults.optout_page>0&&r.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-xs",children:[r.jsxs("a",{href:`${window.location.origin}/?page_id=${c.defaults.optout_page}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(io,{className:"h-3 w-3"}),l("Open page")]}),r.jsxs("a",{href:`${mt().adminUrl.replace(/\/+$/,"")}/post.php?post=${c.defaults.optout_page}&action=edit`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(hd,{className:"h-3 w-3"}),l("Edit page")]})]})]})]}),r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(vb,{className:"h-4 w-4"}),l("Shortcode Reference")]})}),r.jsxs(ne,{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-form]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:l("Display the opt-out request form")})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-list]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:l("Display the opt-in/opt-out status list")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Opt-Out Email (defaults)")}),r.jsx(Ae,{children:l("Subject + body for the confirmation email. Per-form overrides below take precedence over these defaults.")})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-40 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{htmlFor:"optout-subject",children:l("Subject")}),r.jsx(Re,{id:"optout-subject",value:c.defaults.optout_subject,onChange:P=>E("optout_subject",P.target.value),placeholder:l("Opt-out Confirmation")})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{htmlFor:"optout-template",children:l("Template")}),r.jsxs(ye,{value:c.defaults.optout_template||"__none__",onValueChange:P=>E("optout_template",P==="__none__"?"":P),children:[r.jsx(ge,{id:"optout-template",children:r.jsx(be,{placeholder:l("None (use body below)")})}),r.jsxs(ve,{children:[r.jsx($,{value:"__none__",children:l("None")}),C.map(P=>r.jsx($,{value:String(P.id),children:P.title},P.id))]})]})]}),c.defaults.optout_template?r.jsx(bI,{templateId:c.defaults.optout_template,title:(pe=(J=C.find(P=>String(P.id)===String(c.defaults.optout_template)))==null?void 0:J.title)!=null?pe:c.defaults.optout_template}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{htmlFor:"optout-body",children:l("Email Body")}),r.jsx(Pr,{id:"optout-body",value:c.defaults.optout_body,onChange:P=>E("optout_body",P.target.value),className:"font-mono min-h-[300px]",placeholder:l("HTML email body...")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Available placeholder:")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"[doubleoptin_optout_url]"})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Notice texts")}),r.jsxs(Ae,{children:[l("Messages shown to the visitor after they submit the opt-out form (success + error states). Leave a field empty to use the built-in default. With WPML active, each text appears under")," ",r.jsx("strong",{children:l('String Translation → Domain "double-opt-in-opt-out"')})," ",l("so you can translate it per language; without WPML the text is shown as-is.")]})]}),r.jsx(ne,{className:"space-y-5",children:s?r.jsx(ae,{className:"h-64 w-full"}):Up.map(P=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:rS[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:rS[P].hint})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:`notice-${P}-title`,children:l("Title")}),r.jsx(Re,{id:`notice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:j[P].title||l("Default title"),value:c.defaults.notices[P].title,onChange:z=>k(P,"title",z.target.value)})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:`notice-${P}-body`,children:l("Body")}),r.jsx(Pr,{id:`notice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:j[P].body||l("Default body"),value:c.defaults.notices[P].body,onChange:z=>k(P,"body",z.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("List page labels")}),r.jsx(Ae,{children:l("Every user-facing string on the opt-out list page is configurable here — table columns, button labels, the confirm-dialog prompts shown before cancelling / bulk-cancelling / re-activating, plus the empty state. Leave empty to use the built-in default. WPML String Translation picks up custom values automatically.")})]}),r.jsx(ne,{children:s?r.jsx(ae,{className:"h-64 w-full"}):r.jsx(pI,{type:"multiple",className:"w-full",children:xI.map(P=>r.jsxs(JN,{value:P.group,children:[r.jsx(eS,{className:"text-sm",children:P.group}),r.jsx(tS,{children:r.jsx("div",{className:"space-y-3 pt-2",children:P.items.map(({key:z,hint:q})=>r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:`label-${z}`,children:z}),r.jsx(Re,{id:`label-${z}`,className:"mt-1 h-9 text-xs",placeholder:w[z]||l("Default"),value:c.defaults.labels[z],onChange:oe=>R(z,oe.target.value)}),q&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:q})]},z))})})]},P.group))})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("List page notices")}),r.jsxs(Ae,{children:[l("Success notices rendered above the table after the visitor cancels, bulk-cancels, or re-activates a subscription. Some bodies accept")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%s"})," /",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%d"})," ",l("placeholders — see each entry's hint.")]})]}),r.jsx(ne,{className:"space-y-5",children:s?r.jsx(ae,{className:"h-64 w-full"}):Vp.map(P=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Hp[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:Hp[P].hint}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[r.jsx("strong",{children:l("Placeholder:")})," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:Hp[P].bodyPlaceholders})]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:`listnotice-${P}-title`,children:l("Title")}),r.jsx(Re,{id:`listnotice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:g[P].title||l("Default title"),value:c.defaults.list_notices[P].title,onChange:z=>T(P,"title",z.target.value)})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",htmlFor:`listnotice-${P}-body`,children:l("Body")}),r.jsx(Pr,{id:`listnotice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:g[P].body||l("Default body"),value:c.defaults.list_notices[P].body,onChange:z=>T(P,"body",z.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Per-form overrides")}),r.jsx(Ae,{children:l('Override the defaults above for specific forms — e.g. a different confirmation mail per newsletter, or fully disabling opt-out for a transactional form. Empty fields inherit from defaults; the on/off switch can be left on "Inherit" or set explicitly per form.')})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:m,onValueChange:b,children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ve,{children:y.length===0?r.jsx($,{value:"__empty",disabled:!0,children:l("No forms detected")}):y.map(P=>r.jsxs($,{value:P.key,children:[P.integrationName," / ",P.title]},P.key))})]}),r.jsxs(U,{onClick:F,disabled:!m,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),c.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("No per-form overrides yet — every form uses the defaults above. Add a form to override its opt-out mail, page, or to disable opt-out for it entirely.")})]}):r.jsx("div",{className:"space-y-4",children:c.forms.map((P,z)=>r.jsx(yI,{entry:P,label:p(P.integration,P.form_id),pages:S,templates:C,defaultPageLabel:se,defaultTemplateLabel:M,defaultSubject:c.defaults.optout_subject,onChange:(q,oe)=>I(z,q,oe),onRemove:()=>B(z)},`${P.integration}_${P.form_id}`))})]})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r.jsx(U,{onClick:()=>N.mutate(c),disabled:N.isPending,children:N.isPending?l("Saving..."):l("Save")})})]}),r.jsx("div",{className:"space-y-6",children:r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsx(fe,{className:"text-sm",children:l("Hooks Reference")})}),r.jsx(ne,{children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Filter")}),r.jsx("code",{className:"block bg-muted px-2 py-1 rounded text-xs font-mono",children:"f12_cf7_doubleoptin_optout_body"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Modify the opt-out email body before sending.")})]})})]})})]})]})}function yI({entry:e,label:t,pages:n,templates:s,defaultPageLabel:a,defaultTemplateLabel:o,defaultSubject:i,onChange:c,onRemove:d}){var h,m;const u=e.enabled===null?"__inherit":e.enabled?"yes":"no";return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:t}),r.jsx(U,{variant:"ghost",size:"sm",onClick:d,title:l("Remove this override"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Opt-out for this form")}),r.jsxs(ye,{value:u,onValueChange:b=>{b==="__inherit"?c("enabled",null):b==="yes"?c("enabled",!0):c("enabled",!1)},children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:l("Inherit (active)")}),r.jsx($,{value:"yes",children:l("Enabled for this form")}),r.jsx($,{value:"no",children:l("Disabled for this form")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:l('"Disabled" suppresses opt-out invitation mails for this form. Existing opt-out hashes still resolve.')})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Opt-out page")}),r.jsxs(ye,{value:e.optout_page?String(e.optout_page):"__inherit",onValueChange:b=>c("optout_page",b==="__inherit"?null:Number(b)),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),a)}),n.map(b=>r.jsx($,{value:b.id.toString(),children:b.title},b.id))]})]})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Y,{className:"text-xs",children:l("Subject override")}),r.jsx(Re,{className:"mt-1 h-9 text-xs",placeholder:re(l("Inherit (%s)"),i||l("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:b=>c("optout_subject",b.target.value===""?null:b.target.value)})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Y,{className:"text-xs",children:l("Template override")}),r.jsxs(ye,{value:e.optout_template||"__inherit",onValueChange:b=>c("optout_template",b==="__inherit"?null:b),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),o)}),s.map(b=>r.jsx($,{value:String(b.id),children:b.title},b.id))]})]})]}),!e.optout_template&&r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(Y,{className:"text-xs",children:l("Body override")}),r.jsx(Pr,{className:"mt-1 text-xs font-mono min-h-[120px]",placeholder:l("Inherit from defaults — leave empty to use the default body."),value:(m=e.optout_body)!=null?m:"",onChange:b=>c("optout_body",b.target.value===""?null:b.target.value)})]})]})]})}function bI({templateId:e,title:t}){const n=e?`#/email-templates/${encodeURIComponent(String(e))}/edit`:null;return r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{children:l("Email Body")}),r.jsxs("div",{className:"rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(On,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:re(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),t)}),n?r.jsx(U,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:n,children:[r.jsx(hd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(U,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})]})}const Wp=[{value:"subscriber",label:l("Subscriber")},{value:"contributor",label:l("Contributor")},{value:"author",label:l("Author")},{value:"editor",label:l("Editor")}];function oS(e){var t,n;return(n=(t=Wp.find(s=>s.value===e))==null?void 0:t.label)!=null?n:e}const qp={all:{title:l("All forms (every confirmation creates a user)"),hint:l("Every DOI-enabled form on the site auto-creates a user on confirmation. Use this only if you really mean it — auto user creation is a privileged action.")},selected:{title:l("Only selected forms (opt-in list — default)"),hint:l("Auto-creation runs ONLY on the forms in the list below. The safe default — drift here from `all` would silently create users from every form.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form auto-creates EXCEPT those in the list. Symmetric to `all` with an exclusion list.")}},jI={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function wI(e,t,n,s){const a=oS(t),o=l(s==="skip"?"If the email already belongs to a user, no action is taken.":s==="update_meta"?"If the email already belongs to a user, their meta fields get updated from the field map (role stays unchanged).":"If the email already belongs to a user, the confirmation is logged as an error and no user is updated.");return e==="all"?{headline:re(l("Auto-create a %s on every confirmation"),a),detail:re(l("Every DOI form on the site triggers user creation on confirm. %s"),o)}:e==="selected"?n===0?{headline:l("No forms in scope — auto user creation is currently inactive"),detail:l("mode=selected with an empty list means no form is in scope. Add at least one form below to enable.")}:{headline:re(Wd("Auto-create a %1$s on confirmations from the %2$s listed form","Auto-create a %1$s on confirmations from the %2$s listed forms",n),a,n),detail:re(l("Only the listed forms trigger user creation. Forms not in the list are completely unaffected. %s"),o)}:n===0?{headline:re(l("Auto-create a %s on every confirmation"),a),detail:re(l("No exclusions configured — every form triggers user creation. %s"),o)}:{headline:re(l("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),a,n),detail:re(Wd("%1$s form is excluded; everything else triggers user creation. %2$s","%1$s forms are excluded; everything else triggers user creation. %2$s",n),n,o)}}function NI(){const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["user-creation-settings"],queryFn:()=>G("/user-creation/settings")}),{data:s}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),[a,o]=f.useState(jI),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,C,E,k,R,T,O,F;if(!t||i)return;const x=(N=t.data)!=null?N:t;o({enabled:x.enabled!==!1,mode:(S=x.mode)!=null?S:"selected",defaults:{role:(E=(C=x.defaults)==null?void 0:C.role)!=null?E:"subscriber",send_welcome_mail:((k=x.defaults)==null?void 0:k.send_welcome_mail)!==!1,force_password_change:((R=x.defaults)==null?void 0:R.force_password_change)===!0,duplicate_policy:(O=(T=x.defaults)==null?void 0:T.duplicate_policy)!=null?O:"skip",field_map:(F=x.defaults)!=null&&F.field_map&&typeof x.defaults.field_map=="object"?x.defaults.field_map:{}},conditions:Array.isArray(x.conditions)?x.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var S;const x=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[C,E]of Object.entries(x))if(E)for(const k of E.forms){const R=Number(typeof k.id=="string"?k.id.split("_")[0]:k.id);R&&N.push({key:`${C}_${R}`,integration:C,integrationName:E.name,formId:R,title:k.title||`#${R}`})}return N},[s]),m=(x,N)=>{const S=h.find(C=>C.integration===x&&C.formId===N);return S?`${S.integrationName} / ${S.title}`:`${x} / #${N}`},b=ke({mutationFn:()=>G("/user-creation/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("User Creation settings saved.")),e.invalidateQueries({queryKey:["user-creation-settings"]})},onError:x=>{K.error(x.message||l("Failed to save User Creation settings."))}});function v(x,N){o(S=>({...S,defaults:{...S.defaults,[x]:N}}))}function w(){if(!d)return;const x=h.find(N=>N.key===d);if(x){if(a.conditions.some(N=>N.integration===x.integration&&N.form_id===x.formId)){K.warning(l("This form is already in the list."));return}o(N=>({...N,conditions:[...N.conditions,{integration:x.integration,form_id:x.formId,role:null,send_welcome_mail:null,duplicate_policy:null,field_map:null}]})),u("")}}function g(x){o(N=>({...N,conditions:N.conditions.filter((S,C)=>C!==x)}))}function j(x,N,S){o(C=>({...C,conditions:C.conditions.map((E,k)=>k===x?{...E,[N]:S}:E)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const y=wI(a.mode,a.defaults.role,a.conditions.length,a.defaults.duplicate_policy);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(Sb,{className:"h-6 w-6"}),l("Auto User Creation")]}),r.jsx("p",{className:"text-muted-foreground",children:l("Create a WordPress user automatically after opt-in confirmation")})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Ae,{children:l("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause auto-creation temporarily (e.g. while debugging a form). All settings below are preserved while the feature is off.")})]}),r.jsx(ne,{children:r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"uc-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no users are auto-created — confirmations still complete normally, just without a WP user being made.")})]}),r.jsx(sn,{id:"uc-enabled",checked:a.enabled,onCheckedChange:x=>o(N=>({...N,enabled:x}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("How User Creation applies")}),r.jsx(Ae,{children:l("Pick whether every confirmation creates a user, only confirmations on selected forms, or every form except the ones you exclude. The defaults below apply to forms in scope; per-form entries override.")})]}),r.jsxs(ne,{className:"space-y-3",children:[Object.keys(qp).map(x=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===x?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"uc-mode",value:x,checked:a.mode===x,onChange:()=>o(N=>({...N,mode:x})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:qp[x].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:qp[x].hint})]})]},x)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Default settings")}),r.jsx(Ae,{children:l("Applied to every form in scope. Per-form entries can override individually.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"uc-role",children:l("Default role")}),r.jsxs(ye,{value:a.defaults.role,onValueChange:x=>v("role",x),children:[r.jsx(ge,{id:"uc-role",className:"mt-1.5",children:r.jsx(be,{})}),r.jsx(ve,{children:Wp.map(x=>r.jsx($,{value:x.value,children:x.label},x.value))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Administrator is excluded for security — no role-escalation via opt-in.")})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"uc-policy",children:l("Duplicate user policy")}),r.jsxs(ye,{value:a.defaults.duplicate_policy,onValueChange:x=>v("duplicate_policy",x),children:[r.jsx(ge,{id:"uc-policy",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"skip",children:l("Skip (do nothing)")}),r.jsx($,{value:"update_meta",children:l("Update meta of existing user")}),r.jsx($,{value:"error",children:l("Treat as error")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:"update_meta"})," ",l("applies the field map to the existing user but never changes their role (privilege guard).")]})]})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"uc-welcome",children:l("Send WP password-reset email")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Standard WP welcome flow — let the new user set their own password. Disable if you handle onboarding mails elsewhere.")})]}),r.jsx(sn,{id:"uc-welcome",checked:a.defaults.send_welcome_mail,onCheckedChange:x=>v("send_welcome_mail",x)})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"uc-force-pw",children:l("Force password change on first login")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("On their next login the user lands on the password-reset page instead of wp-admin. Catches the rare case where someone logs in before opening the welcome mail. One-shot.")})]}),r.jsx(sn,{id:"uc-force-pw",checked:a.defaults.force_password_change,onCheckedChange:x=>v("force_password_change",x)})]}),r.jsx("div",{className:"rounded-lg border border-blue-200 bg-blue-50/50 p-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(wt,{className:"h-4 w-4 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"font-medium text-foreground",children:l("Want to block disposable-email domains?")})," ",l("Install the")," ",r.jsx("strong",{children:"Domain Blocklist"})," ",l("addon. It intercepts before any opt-in record or confirmation mail — cleaner than skipping just the user-create step.")," ",l("For one-off custom rules, third-party code can subscribe to the")," ",r.jsx("code",{className:"px-1 mx-0.5 bg-background rounded text-[10px]",children:"f12_doi_user_registration_should_create"})," ",l("filter.")]})]})})]})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:a.mode==="selected"?l("Forms to apply auto-creation to"):a.mode==="all_except"?l("Forms to exclude from auto-creation"):l("Per-form overrides")}),r.jsxs(Ae,{children:[a.mode==="all"&&l("All forms are in scope. Add entries here to override the defaults for specific forms."),a.mode==="selected"&&l("Only forms in this list create users on confirmation."),a.mode==="all_except"&&l("These forms are exempt — they confirm normally but no WP user is created.")]})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:d,onValueChange:u,children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ve,{children:h.length===0?r.jsx($,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(x=>r.jsxs($,{value:x.key,children:[x.integrationName," / ",x.title]},x.key))})]}),r.jsxs(U,{onClick:w,disabled:!d,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:a.mode==="selected"?l("No forms in the list yet. Auto user creation is currently inactive — add at least one form above."):a.mode==="all_except"?l("No exclusions configured. Every form creates users — same as mode=all."):l("No per-form overrides. Defaults apply to every form.")})]}):r.jsx("div",{className:"space-y-3",children:a.conditions.map((x,N)=>{var S,C;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(x.integration,x.form_id)}),r.jsx(U,{variant:"ghost",size:"sm",onClick:()=>g(N),title:l("Remove from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),a.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 mt-3",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override role")}),r.jsxs(ye,{value:(S=x.role)!=null?S:"__inherit",onValueChange:E=>j(N,"role",E==="__inherit"?null:E),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),oS(a.defaults.role))}),Wp.map(E=>r.jsx($,{value:E.value,children:E.label},E.value))]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override duplicate policy")}),r.jsxs(ye,{value:(C=x.duplicate_policy)!=null?C:"__inherit",onValueChange:E=>j(N,"duplicate_policy",E==="__inherit"?null:E),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.duplicate_policy)}),r.jsx($,{value:"skip",children:l("Skip")}),r.jsx($,{value:"update_meta",children:l("Update meta")}),r.jsx($,{value:"error",children:l("Error")})]})]})]})]})]},`${x.integration}_${x.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(U,{onClick:()=>b.mutate(),disabled:b.isPending,children:[b.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save User Creation settings")]})})]})]}),r.jsx(ee,{className:"border-blue-200 bg-blue-50/50",children:r.jsx(ne,{className:"pt-6",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx(wt,{className:"h-5 w-5 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"space-y-2 text-sm",children:[r.jsx("p",{children:l("Auto-created users get a random password. The standard WordPress password-reset email is sent automatically (toggle above to disable).")}),r.jsxs("p",{children:[l("For field mapping (form fields → WP user meta), use the")," ",r.jsx("code",{className:"px-1 mx-1 bg-background rounded",children:"f12_doi_user_registration_form_fields"})," ",l("filter — see the addon documentation.")]})]})]})})})]})}const SI=[{value:"__none__",label:l("None")},{value:"cleverreach",label:"CleverReach"}];function CI(){var u;const e=ra("cleverreach"),t=Ke(),{data:n,isLoading:s}=Ne({queryKey:["api-settings"],queryFn:()=>G("/api/settings"),enabled:e}),[a,o]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&o(n.data)},[n]);const i=ke({mutationFn:h=>G("/api/settings",{method:"PUT",body:JSON.stringify(h)}),onSuccess:h=>{t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||l("API settings saved."))},onError:h=>{K.error(h.message||l("Failed to save settings."))}}),c=ke({mutationFn:()=>G("/cleverreach/connect",{method:"POST"}),onSuccess:h=>{var m;(m=h.data)!=null&&m.redirect_url?window.location.href=h.data.redirect_url:(t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||l("Connected to CleverReach.")))},onError:h=>{K.error(h.message||l("Failed to connect to CleverReach."))}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(mh,{className:"h-6 w-6"}),l("API Integrations"),!e&&r.jsx(Ep,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Connect external services to your Double Opt-In system")})]}),r.jsxs("div",{className:"max-w-[600px] space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("API Endpoint")}),r.jsx(Ae,{children:l("Select the external service to connect.")})]}),r.jsx(ne,{children:s?r.jsx(ae,{className:"h-10 w-full"}):r.jsxs(ye,{value:a.service||"__none__",onValueChange:h=>o(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(ge,{children:r.jsx(be,{placeholder:l("None")})}),r.jsx(ve,{children:SI.map(h=>r.jsx($,{value:h.value,children:h.label},h.value))})]})})]}),a.service==="cleverreach"&&r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:"CleverReach"}),r.jsx(Ae,{children:l("Configure your CleverReach API credentials.")})]}),r.jsx(ne,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{htmlFor:"cr-client-id",children:l("Client ID")}),r.jsx(Re,{id:"cr-client-id",value:a.cleverreach_client_id,onChange:h=>o(m=>({...m,cleverreach_client_id:h.target.value})),placeholder:l("Enter Client ID")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[l("CleverReach REST API settings"),r.jsx(io,{className:"h-3 w-3"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(Y,{htmlFor:"cr-client-secret",children:l("Client Secret")}),r.jsx(Re,{id:"cr-client-secret",type:"password",value:(u=a.cleverreach_client_secret)!=null?u:"",onChange:h=>o(m=>({...m,cleverreach_client_secret:h.target.value})),placeholder:l("Enter Client Secret")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[l("CleverReach REST API settings"),r.jsx(io,{className:"h-3 w-3"})]})]})]}),r.jsx(ee,{className:"border-dashed",children:r.jsx(ne,{className:"pt-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:l("Connection Status")}),r.jsx(dt,{variant:a.cleverreach_connected?"default":"secondary",className:a.cleverreach_connected?"bg-green-100 text-green-800 hover:bg-green-100":"bg-amber-100 text-amber-800 hover:bg-amber-100",children:a.cleverreach_connected?l("Connected"):l("Not Connected")}),a.cleverreach_connected&&a.cleverreach_expires_at&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",a.cleverreach_expires_at]})]}),r.jsx(U,{variant:a.cleverreach_connected?"outline":"default",size:"sm",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Connecting..."):a.cleverreach_connected?l("Reconnect"):l("Connect to CleverReach")})]})})})]})})]}),r.jsx(U,{onClick:()=>i.mutate(a),disabled:i.isPending||s,children:i.isPending?l("Saving..."):l("Save")})]})]})}function kI(){var d;const e=Ke(),[t,n]=f.useState(""),{data:s,isLoading:a}=Ne({queryKey:["license"],queryFn:()=>G("/license")}),o=s==null?void 0:s.data,i=ke({mutationFn:u=>G("/license/activate",{method:"POST",body:JSON.stringify({key:u})}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||l("License activated successfully.")),n("")},onError:u=>{K.error(u.message||l("Failed to activate license."))}}),c=ke({mutationFn:()=>G("/license/deactivate",{method:"POST"}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||l("License deactivated."))},onError:u=>{K.error(u.message||l("Failed to deactivate license."))}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("License")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your Double Opt-In Pro license")})]}),r.jsxs("div",{className:"max-w-[600px] mx-auto space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(ue,{className:"text-center",children:[r.jsx("div",{className:"mx-auto mb-2",children:r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto",children:r.jsx(ph,{className:"h-6 w-6 text-muted-foreground"})})}),r.jsx(fe,{children:l("License Status")})]}),r.jsx(ne,{className:"text-center space-y-3",children:a?r.jsxs("div",{className:"space-y-2",children:[r.jsx(ae,{className:"h-6 w-24 mx-auto"}),r.jsx(ae,{className:"h-4 w-40 mx-auto"})]}):r.jsxs(r.Fragment,{children:[r.jsx(dt,{variant:o!=null&&o.isActive?"default":"secondary",className:o!=null&&o.isActive?"bg-green-100 text-green-800 hover:bg-green-100":"",children:o!=null&&o.isActive?l("Active"):l("Inactive")}),(o==null?void 0:o.isActive)&&r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:o.licenseType}),o.expiresAt&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",o.expiresAt]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(yb,{className:"h-4 w-4"}),l("License Key")]}),r.jsx(Ae,{children:o!=null&&o.isActive?l("Your license is currently active."):l("Enter your license key to activate Pro features.")})]}),r.jsx(ne,{children:o!=null&&o.isActive?r.jsxs("div",{className:"space-y-3",children:[r.jsx(Re,{value:o.key||"",readOnly:!0,className:"font-mono text-center bg-muted"}),r.jsx(U,{variant:"destructive",className:"w-full",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Deactivating..."):l("Deactivate")})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsx(Re,{value:t,onChange:u=>n(u.target.value),placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono text-center"}),r.jsx(U,{className:"w-full",onClick:()=>i.mutate(t),disabled:!t.trim()||i.isPending,children:i.isPending?l("Activating..."):l("Activate")})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Included modules")}),r.jsx(Ae,{children:l("Every module below is unlocked by your Pro bundle license. A check means it is installed and active on this site.")})]}),r.jsx(ne,{children:a?r.jsx("div",{className:"space-y-2",children:Array.from({length:6}).map((u,h)=>r.jsx(ae,{className:"h-5 w-full"},h))}):r.jsx("ul",{className:"space-y-2",children:((d=o==null?void 0:o.features)!=null?d:[]).map(u=>r.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[u.available?r.jsx(cs,{className:"h-4 w-4 text-green-600 shrink-0"}):r.jsx(md,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsx("span",{className:u.available?"":"text-muted-foreground",children:u.name})]},u.slug))})})]})]}),r.jsx($n,{id:"license.section",data:{license:o}})]})}const iS=new Set(["avada","elementor","wpforms","gravity-forms"]);function EI(){var v,w;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["addons-catalog"],queryFn:()=>G("/addons/catalog")}),{data:s}=Ne({queryKey:["license"],queryFn:()=>G("/license")}),a=s==null?void 0:s.data,o=(v=t==null?void 0:t.entries)!=null?v:[],i=(w=t==null?void 0:t.hasBundleLicense)!=null?w:!1,c=mt(),d=()=>{e.invalidateQueries({queryKey:["addons-catalog"]}),m_().then(()=>e.invalidateQueries({queryKey:["addons-manifest"]}))},u=ke({mutationFn:g=>G(`/addons/${g}/activate`,{method:"POST"}),onSuccess:(g,j)=>{var p,x;const y=(x=(p=o.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;K.success(re(l("%s activated."),y)),d()},onError:g=>{K.error(g.message||l("Failed to activate addon."))}}),h=ke({mutationFn:g=>G(`/addons/${g}/deactivate`,{method:"POST"}),onSuccess:(g,j)=>{var p,x;const y=(x=(p=o.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;K.success(re(l("%s deactivated."),y)),d()},onError:g=>{K.error(g.message||l("Failed to deactivate addon."))}}),m=ke({mutationFn:g=>G("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:g})}),onSuccess:(g,j)=>{var p,x;const y=(x=(p=o.find(N=>N.id===j))==null?void 0:p.name)!=null?x:j;K.success(re(l("%s installed."),y)),d()},onError:g=>{K.error(g.message||l("Failed to install addon."))}});f.useEffect(()=>{const g=()=>{d()};return window.addEventListener("f12-doi:addons-changed",g),()=>window.removeEventListener("f12-doi:addons-changed",g)},[e]);const b=o.reduce((g,j)=>(g[j.status]++,g),{active:0,inactive:0,not_installed:0});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Addons")}),r.jsx("p",{className:"text-muted-foreground",children:l("Extend Double Opt-In with official addons. Bundled addons can be installed in one click once your Pro license is active.")})]}),r.jsx($n,{id:"addons.list",data:{entries:o,license:a,hasLicense:i}}),r.jsxs(ee,{children:[r.jsx(ue,{children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{children:[r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(oo,{className:"h-5 w-5"}),l("Addon catalog")]}),r.jsx(Ae,{children:n?l("Loading…"):re(l("%1$s active · %2$s installed · %3$s available"),b.active,b.inactive,b.not_installed)})]}),!i&&!n&&r.jsx(U,{asChild:!0,size:"sm",variant:"default",children:r.jsxs("a",{href:"#/license",children:[r.jsx(md,{className:"h-4 w-4 mr-1"}),l("Activate Pro")]})})]})}),r.jsx(ne,{children:n?r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((g,j)=>r.jsx(ae,{className:"h-44 w-full"},j))}):o.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No addons in the catalog. Check that the Double Opt-In core is up to date.")}):r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:o.map(g=>r.jsx(_I,{entry:g,hasLicense:i,adminUrl:c.adminUrl,onActivate:()=>u.mutate(g.id),onDeactivate:()=>h.mutate(g.id),onInstall:()=>m.mutate(g.id),isActivating:u.isPending&&u.variables===g.id,isDeactivating:h.isPending&&h.variables===g.id,isInstalling:m.isPending&&m.variables===g.id},g.id))})})]})]})}function _I({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}){const[d,u]=f.useState(!1),h=iS.has(e.id),m=e.status==="active"&&e.operational&&h&&(e.integrationRegistered===!1||e.integrationAvailable===!1),b=e.status==="active"&&!e.operational||m;return r.jsxs("div",{className:"rounded-lg border bg-card p-4 flex flex-col gap-3 h-full","data-addon-id":e.id,"data-addon-status":e.status,children:[r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(TI,{entry:e}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"font-semibold leading-tight flex items-center gap-2",children:[r.jsx(PI,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(RI,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),b&&r.jsx(AI,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(v=>r.jsx(dt,{variant:"outline",className:"text-[10px] font-mono",children:v},v))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(DI,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}),r.jsx(U,{size:"sm",variant:"ghost",onClick:()=>u(v=>!v),"aria-label":l("Toggle diagnostic info"),title:l("Diagnostic info"),children:r.jsx(bP,{className:"h-4 w-4"})})]}),d&&r.jsx(MI,{entry:e})]})}function PI({loaded:e}){return r.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full shrink-0 "+(e?"bg-green-500 ring-2 ring-green-500/20":"bg-red-500 ring-2 ring-red-500/20"),title:l(e?"Loaded":"Not loaded"),"aria-label":l(e?"Loaded":"Not loaded")})}function TI({entry:e}){return e.status==="active"?e.operational?r.jsx(xb,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(Nt,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Gi,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(gb,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function RI({entry:e}){return e.status==="active"?e.operational?r.jsx(dt,{className:"bg-green-100 text-green-800 hover:bg-green-100 mt-1",children:l("Active")}):r.jsx(dt,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:l("Active · issues")}):e.status==="inactive"?r.jsx(dt,{variant:"secondary",className:"mt-1",children:l("Installed · inactive")}):r.jsx(dt,{variant:"outline",className:"mt-1",children:l("Not installed")})}function AI({entry:e}){const t=e.inactiveReason?II(e.inactiveReason):OI(e);if(!t)return null;const n=t.icon;return r.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-xs text-amber-900 flex items-start gap-2",children:[r.jsx(n,{className:"h-4 w-4 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"font-medium",children:t.title}),r.jsx("div",{className:"mt-0.5 text-amber-800",children:t.body}),t.cta&&r.jsxs("a",{href:t.cta.href,className:"inline-block mt-1 underline font-medium",children:[t.cta.label," →"]})]})]})}function OI(e){return iS.has(e.id)?e.integrationRegistered===!1?{icon:Nt,title:l("Form integration not registered"),body:l("The addon booted but did not register its form integration. Most likely the integration's own prerequisite check failed at boot time (e.g. the third-party form builder's class symbols differ from what the integration probes for)."),cta:null}:e.integrationAvailable===!1?{icon:Nt,title:l("Form integration unavailable at runtime"),body:l("The integration is registered but its isAvailable() check is currently failing. The third-party form plugin may have been deactivated after boot, or its class symbols are no longer present."),cta:null}:null:null}function II(e){return e==="prerequisite"?{icon:wb,title:l("Prerequisite missing"),body:l("The license is fine, but a third-party plugin or PHP class the addon needs is not present. Check the addon's Requires Plugins header."),cta:null}:e==="not_registered"?{icon:Nt,title:l("Addon failed to register"),body:l("The plugin file is active but the addon never reached the registry. Look for a fatal during boot in the PHP error log."),cta:null}:null}function MI({entry:e}){var a;const t=o=>o===null?"—":String(o),n=o=>o===null?"—":String(o),s=[["status",e.status],["registered",String(e.registered)],["operational",String(e.operational)],["inactiveReason",(a=e.inactiveReason)!=null?a:"—"],["integrationRegistered",t(e.integrationRegistered)],["integrationAvailable",t(e.integrationAvailable)],["formCount",n(e.formCount)],["pluginFile",e.pluginFile],["bundleMember",String(e.bundleMember)]];return r.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 text-xs font-mono overflow-x-auto",children:[r.jsx("div",{className:"text-muted-foreground mb-1 font-sans font-medium",children:l("Diagnostic")}),r.jsx("table",{className:"w-full",children:r.jsx("tbody",{children:s.map(([o,i])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:o}),r.jsx("td",{className:"break-all",children:i})]},o))})})]})}function DI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}){return e.status==="active"?r.jsxs(U,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:i,children:[i?r.jsx(An,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Gi,{className:"h-4 w-4 mr-1"}),l(i?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(U,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:o,children:[o?r.jsx(An,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Gi,{className:"h-4 w-4 mr-1"}),l(o?"Activating…":"Activate")]}):t?r.jsxs(U,{size:"sm",variant:"default",className:"flex-1",onClick:a,disabled:c,children:[c?r.jsx(An,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Qi,{className:"h-4 w-4 mr-1"}),l(c?"Installing…":"Install")]}):r.jsx(U,{asChild:!0,size:"sm",variant:"default",className:"flex-1",children:r.jsxs("a",{href:mt().upgradeUrl,target:"_blank",rel:"noopener noreferrer",children:[r.jsx($P,{className:"h-4 w-4 mr-1"}),l("Upgrade to Pro")]})})}const Kp="__dummy__",FI=l("Don't forget to confirm your subscription");function LI(){var x,N,S,C,E;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),{data:s}=Ne({queryKey:["email-templates-list"],queryFn:()=>G("/settings/email-templates-list")}),[a,o]=f.useState({}),[i,c]=f.useState(!1);f.useEffect(()=>{var k,R,T,O;t!=null&&t.data&&!i&&(o({reminder_enabled:(k=t.data.reminder_enabled)!=null?k:0,reminder_delay:(R=t.data.reminder_delay)!=null?R:24,reminder_subject:(T=t.data.reminder_subject)!=null?T:"",reminder_template:(O=t.data.reminder_template)!=null?O:"",token_expiry_hours:t.data.token_expiry_hours}),c(!0))},[t,i]);const d=ke({mutationFn:()=>G("/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("Reminder settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:k=>{K.error(k.message||l("Failed to save reminder settings."))}}),u=ke({mutationFn:()=>G("/addons/reminder/regenerate-template",{method:"POST"}),onSuccess:k=>{if(!k.success||!k.templateId){K.error(k.message||l("Could not regenerate the default template."));return}K.success(k.message),o(R=>({...R,reminder_template:`custom_${k.templateId}`})),e.invalidateQueries({queryKey:["email-templates-list"]})},onError:k=>{K.error(k.message||l("Could not regenerate the default template."))}});function h(k,R){o(T=>({...T,[k]:R}))}const m=(x=s==null?void 0:s.data)!=null?x:[],[b,v]=f.useState(""),[w,g]=f.useState(Kp),{data:j}=Ne({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>G("/addons/reminder/recent-unconfirmed")}),y=ke({mutationFn:()=>G("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:b,optin_id:w===Kp?null:Number(w)})}),onSuccess:k=>{k.success?K.success(k.message):K.error(k.message||l("Could not send the test reminder."))},onError:k=>{K.error(k.message||l("Could not send the test reminder."))}}),p=(N=j==null?void 0:j.data)!=null?N:[];return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Reminder behaviour")}),r.jsx(Ae,{children:l("Send a follow-up email to subscribers who haven't confirmed their opt-in within the configured delay. The send is hourly via WP-Cron — make sure your site is reachable for loopback requests.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{className:"text-sm font-medium",children:l("Send reminder emails")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Master switch. When off the cron runs but skips every pending opt-in. When on the fields below take effect.")})]}),r.jsx(sn,{checked:!!a.reminder_enabled,onCheckedChange:k=>h("reminder_enabled",k?1:0)})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"reminder-delay",children:l("Delay before reminder (hours)")}),r.jsx(Re,{id:"reminder-delay",type:"number",min:1,className:"mt-1.5",value:(S=a.reminder_delay)!=null?S:24,onChange:k=>h("reminder_delay",Number(k.target.value))}),a.reminder_delay!==void 0&&a.token_expiry_hours!==void 0&&a.reminder_delay>=a.token_expiry_hours&&r.jsx("p",{className:"text-[11px] text-destructive mt-1.5",children:re(l("Delay is ≥ confirmation-link expiry (%dh) — the reminder may arrive after the link has already expired."),a.token_expiry_hours)})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"reminder-subject",children:l("Subject line")}),r.jsx(Re,{id:"reminder-subject",className:"mt-1.5",placeholder:FI,value:(C=a.reminder_subject)!=null?C:"",onChange:k=>h("reminder_subject",k.target.value)})]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"reminder-template",children:l("Email template")}),r.jsxs(ye,{value:(E=a.reminder_template)!=null?E:"",onValueChange:k=>h("reminder_template",k),children:[r.jsx(ge,{id:"reminder-template",className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select a template")})}),r.jsx(ve,{children:m.length===0?r.jsx($,{value:"__empty__",disabled:!0,children:l("No templates available — click Regenerate below.")}):m.map(k=>r.jsx($,{value:String(k.id),children:k.title},k.id))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Pick any custom template from the Email Designer. The")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("placeholder is required — it's replaced with the confirmation URL at send time.")]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(U,{onClick:()=>d.mutate(),disabled:d.isPending,children:[d.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save reminder settings")]}),r.jsxs(U,{variant:"outline",onClick:()=>u.mutate(),disabled:u.isPending,title:l("Re-create the default reminder template in the Email Designer. Useful if you deleted it by accident."),children:[u.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(DP,{className:"h-4 w-4 mr-1.5"}),l("Regenerate default template")]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Send test reminder")}),r.jsx(Ae,{children:l("Trigger a one-off reminder send to verify subject, sender, template, and placeholder substitution before the cron-driven send hits real subscribers. Uses the saved settings above — save first if you just changed something.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"test-recipient",children:l("Recipient")}),r.jsx(Re,{id:"test-recipient",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:b,onChange:k=>v(k.target.value)}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("The test mail is sent here, not to the opt-in's real email address.")})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"test-optin",children:l("Use opt-in data for placeholders")}),r.jsxs(ye,{value:w,onValueChange:k=>g(k),children:[r.jsx(ge,{id:"test-optin",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:Kp,children:l("Dummy data (no real record)")}),p.map(k=>r.jsxs($,{value:String(k.id),children:["#",k.id," — ",k.email," (",k.created_at,")"]},k.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Dummy mode uses safe sample values + a clearly-fake confirmation URL. Real opt-ins use their actual data so you can verify placeholder substitution end-to-end.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(U,{onClick:()=>y.mutate(),disabled:y.isPending||!b,variant:"secondary",children:[y.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(LP,{className:"h-4 w-4 mr-1.5"}),l("Send test reminder")]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[l("The subject is prefixed with")," ",r.jsx("code",{children:"[TEST]"})," ",l("so it's obvious in your inbox.")]})]})]})]})]})}const $I=l("The email domain does not appear to accept emails. Please check your email address.");function zI(){var u,h;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),[s,a]=f.useState({}),[o,i]=f.useState(!1);f.useEffect(()=>{var m,b;t!=null&&t.data&&!o&&(a({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(b=t.data.mx_validation_message)!=null?b:""}),i(!0))},[t,o]);const c=ke({mutationFn:()=>G("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(l("MX validation settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:m=>{K.error(m.message||l("Failed to save MX validation settings."))}});function d(m,b){a(v=>({...v,[m]:b}))}return r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("MX validation behaviour")}),r.jsx(Ae,{children:l("Before accepting an opt-in, look up the recipient's email domain via DNS and confirm it has a working mail server (MX record, or A-record as fallback). Results are cached: 24 h for valid domains, 1 h for invalid ones. DNS lookup errors fail open — a temporary resolver outage will not block real subscribers.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"mx-behavior",children:l("Validation behaviour")}),r.jsxs(ye,{value:(u=s.mx_validation_behavior)!=null?u:"silent",onValueChange:m=>d("mx_validation_behavior",m),children:[r.jsx(ge,{id:"mx-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx($,{value:"block",children:l("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Silent")})," ",l("looks like a successful submission to the user but no record is created — useful for spam suppression.")," ",r.jsx("strong",{children:l("Block")})," ",l("is better UX for legit users with typos (e.g.")," ",r.jsx("code",{children:"gmial.com"}),")."]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"mx-message",children:l("Custom error message")}),r.jsx(Re,{id:"mx-message",className:"mt-1.5",placeholder:$I,value:(h=s.mx_validation_message)!=null?h:"",onChange:m=>d("mx_validation_message",m.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Fail-open behaviour: if the DNS lookup itself errors or times out, the email is treated as valid so a transient outage cannot block sign-ups. Only confirmed lookup failures (NXDOMAIN, no MX/A) trigger rejection.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(U,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save MX settings")]})})]})})]})}const UI=l("This email domain is not allowed. Please use a different email address."),BI=`tempmail.com | |
| 476 | +Files: any uploaded files were already handed off to the form system or sent as mail attachments at the previous confirmation, so they are NOT restored. Re-submit the form if you want files in the next test cycle.`))&&w.mutate()},title:l("Dev-only: revert to pending so the same confirmation link can be re-tested"),children:[r.jsx(Gn,{className:"h-3.5 w-3.5 mr-1.5"}),w.isPending?l("Resetting..."):l("Reset to pending (dev)")]}),r.jsxs(V,{variant:"outline",size:"sm",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>o(!0),children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Delete")]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(r3,{optinId:y.id}),r.jsxs(ee,{children:[r.jsx(de,{children:r.jsx(ue,{className:"text-sm",children:l("Basic Information")})}),r.jsx(te,{children:r.jsx(tn,{children:r.jsxs(nn,{children:[r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground w-40",children:l("ID")}),r.jsx(fe,{children:y.id})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Email")}),r.jsx(fe,{children:y.email})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Form")}),r.jsxs(fe,{children:[y.formName," (#",y.formId,")"]})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Category")}),r.jsx(fe,{children:y.categoryName?r.jsxs(Ot,{to:`/categories/${y.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(uh,{className:"h-3 w-3"}),y.categoryName]}):y.category?String(y.category):"—"})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Registration Date")}),r.jsx(fe,{children:y.createtime})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Registration IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipRegister||"—"})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Confirmation Date")}),r.jsx(fe,{children:y.confirmed?y.updatetime:"—"})]}),r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Confirmation IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipConfirmation||"—"})]}),y.ipOptout&&r.jsxs(r.Fragment,{children:[r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Opt-Out IP")}),r.jsx(fe,{className:"font-mono text-xs",children:y.ipOptout})]}),y.optouttime&&r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Opt-Out Date")}),r.jsx(fe,{children:y.optouttime})]})]}),y.reminderSentAt&&r.jsxs(Me,{children:[r.jsx(fe,{className:"font-medium text-muted-foreground",children:l("Reminder Sent")}),r.jsx(fe,{children:y.reminderSentAt})]})]})})})]}),r.jsxs(ee,{children:[r.jsx(de,{children:r.jsxs(ue,{className:"text-sm flex items-center gap-2",children:[r.jsx(yt,{className:"h-4 w-4"}),l("Consent Evidence")]})}),r.jsxs(te,{className:"space-y-3",children:[y.consentText?r.jsxs("div",{className:"rounded-lg bg-blue-50/50 dark:bg-blue-950/20 border border-blue-200/50 dark:border-blue-800/30 p-4",children:[r.jsx("p",{className:"text-xs font-medium text-blue-900/70 dark:text-blue-300/60 mb-1",children:l("Consent text shown to user")}),r.jsx("p",{className:"text-sm text-blue-800/80 dark:text-blue-300/80 leading-relaxed",children:y.consentText})]}):r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No consent text was configured for this form at the time of submission.")}),y.consentField?r.jsxs("div",{className:"text-xs space-y-1",children:[r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("Acknowledgment field:")})," ",r.jsx("code",{className:"font-mono bg-muted px-1 py-0.5 rounded",children:y.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("User acknowledged:")})," ",y.consentAcknowledged?r.jsx("span",{className:"font-medium text-green-700 dark:text-green-400",children:l("✓ Yes")}):r.jsx("span",{className:"font-medium text-amber-700 dark:text-amber-400",children:l("✗ No (legacy record or gate disabled)")})]})]}):y.consentText?r.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-400 italic",children:l("⚠ No acknowledgment field configured — consent text is stored but not legally provable. Configure a consent acceptance field in form settings.")}):null]})]}),p.length>0&&r.jsx(pl,{open:i,onOpenChange:c,children:r.jsxs(ee,{children:[r.jsx(xl,{asChild:!0,children:r.jsx(de,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(io,{className:"h-4 w-4"}),se(l("Form Fields (%d)"),p.length)]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${i?"rotate-180":""}`})]})})}),r.jsx(gl,{children:r.jsx(te,{className:"pt-0",children:r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs",children:l("Key")}),r.jsx(Te,{className:"text-xs",children:l("Value")})]})}),r.jsx(nn,{children:p.map(([S,k])=>r.jsxs(Me,{children:[r.jsx(fe,{className:"font-mono text-xs text-muted-foreground",children:S}),r.jsx(fe,{className:"text-sm break-all",children:k})]},S))})]})})})]})}),y.formHtml&&r.jsx(pl,{open:d,onOpenChange:u,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(xl,{asChild:!0,children:r.jsx(de,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(c0,{className:"h-4 w-4"}),l("Form HTML")]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${d?"rotate-180":""}`})]})})}),r.jsx(gl,{children:r.jsxs(te,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("The form HTML used to collect this opt-in. You can copy it to inspect the original form.")}),r.jsxs("div",{className:"relative",children:[r.jsx(V,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>Z1(y.formHtml),children:r.jsx(ih,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:y.formHtml})})]})]})})]})}),y.mailOptinHtml&&r.jsx(pl,{open:h,onOpenChange:m,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(xl,{asChild:!0,children:r.jsx(de,{className:"cursor-pointer hover:bg-muted/50 transition-colors",children:r.jsxs(ue,{className:"text-sm flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(An,{className:"h-4 w-4"}),l("Opt-In Mail")]}),r.jsx(sa,{className:`h-4 w-4 text-muted-foreground transition-transform duration-200 ${h?"rotate-180":""}`})]})})}),r.jsx(gl,{children:r.jsxs(te,{className:"pt-0",children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:l("The confirmation email that was sent to the visitor.")}),r.jsxs("div",{className:"relative",children:[r.jsx(V,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-7 w-7 z-10",onClick:()=>Z1(y.mailOptinHtml),children:r.jsx(ih,{className:"h-3.5 w-3.5"})}),r.jsx("pre",{className:"bg-muted rounded-lg p-4 overflow-auto text-xs font-mono max-h-[400px] whitespace-pre-wrap break-all",children:r.jsx("code",{children:y.mailOptinHtml})})]})]})})]})}),r.jsx(er,{id:"optin.detail-panel",data:{optin:y}})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsx(de,{children:r.jsxs(ue,{className:"text-sm flex items-center gap-2",children:[r.jsx(Hi,{className:"h-4 w-4"}),l("Export Consent Record (GDPR)")]})}),r.jsxs(te,{className:"space-y-2",children:[r.jsx(V,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${g}&format=json`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Hi,{className:"h-3.5 w-3.5 mr-2"}),l("Export JSON")]})}),r.jsx(V,{variant:"outline",size:"sm",className:"w-full justify-start",asChild:!0,children:r.jsxs("a",{href:`${g}&format=csv`,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(Hi,{className:"h-3.5 w-3.5 mr-2"}),l("Export CSV")]})})]})]}),r.jsxs(ee,{children:[r.jsx(de,{children:r.jsx(ue,{className:"text-sm",children:l("Quick Info")})}),r.jsxs(te,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Status")}),r.jsx("p",{className:"text-sm font-medium",children:y.confirmed?l("Confirmed"):l("Pending")})]}),r.jsx(nl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Form")}),r.jsx("p",{className:"text-sm font-medium",children:y.formName})]}),r.jsx(nl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Category")}),r.jsx("p",{className:"text-sm font-medium",children:y.categoryName||(y.category?`#${y.category}`:"—")})]}),r.jsx(nl,{}),r.jsxs("div",{children:[r.jsx("p",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:l("Created")}),r.jsx("p",{className:"text-sm font-medium",children:y.createtime})]})]})]})]})]}),r.jsx(_r,{open:a,onOpenChange:o,children:r.jsxs(tr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Opt-In")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete this opt-in? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",className:"rounded-lg",onClick:()=>o(!1),children:l("Cancel")}),r.jsx(V,{variant:"destructive",className:"rounded-lg",disabled:j.isPending,onClick:()=>j.mutate(),children:j.isPending?l("Deleting..."):l("Delete")})]})]})})]})}var Xd="Switch",[a3]=It(Xd),[o3,i3]=a3(Xd),J1=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:o,required:i,disabled:c,value:d="on",onCheckedChange:u,form:h,...m}=e,[v,x]=f.useState(null),j=Ie(t,g=>x(g)),b=f.useRef(!1),w=v?h||!!v.closest("form"):!0,[y,p]=Zt({prop:a,defaultProp:o!=null?o:!1,onChange:u,caller:Xd});return r.jsxs(o3,{scope:n,checked:y,disabled:c,children:[r.jsx(ge.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":rN(y),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:j,onClick:pe(e.onClick,g=>{p(N=>!N),w&&(b.current=g.isPropagationStopped(),b.current||g.stopPropagation())})}),w&&r.jsx(nN,{control:v,bubbles:!b.current,name:s,value:d,checked:y,required:i,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});J1.displayName=Xd;var eN="SwitchThumb",tN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,a=i3(eN,n);return r.jsx(ge.span,{"data-state":rN(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});tN.displayName=eN;var l3="SwitchBubbleInput",nN=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...a},o)=>{const i=f.useRef(null),c=Ie(i,o),d=qd(n),u=Pd(t);return f.useEffect(()=>{const h=i.current;if(!h)return;const m=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&x){const j=new Event("click",{bubbles:s});x.call(h,n),h.dispatchEvent(j)}},[d,n,s]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nN.displayName=l3;function rN(e){return e?"checked":"unchecked"}var sN=J1,c3=tN;const rn=f.forwardRef(({className:e,...t},n)=>r.jsx(sN,{className:q("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:r.jsx(c3,{className:q("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));rn.displayName=sN.displayName;function jp(){return r.jsx("span",{className:"pro-badge ml-1.5",children:l("PRO")})}function d3({title:e,description:t,featurePreview:n}){const{isProInstalled:s,isProLicenseActive:a}=tl(),o=xn();return s&&a?null:r.jsxs("div",{className:"border border-dashed border-border rounded-lg p-6 relative overflow-hidden",children:[n&&r.jsx("div",{className:"blur-sm opacity-40 pointer-events-none select-none mb-4",children:n}),r.jsxs("div",{className:"relative z-10 text-center",children:[r.jsx("span",{className:"pro-badge mb-3 inline-block",children:l("PRO")}),r.jsx("h4",{className:"text-base font-semibold text-foreground mb-1",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4 max-w-md mx-auto",children:t}),s&&!a?r.jsx(V,{variant:"default",size:"sm",onClick:()=>o("/license"),children:l("Activate License")}):r.jsxs("a",{href:kt().upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90",children:[r.jsx(Nr,{className:"h-3.5 w-3.5"}),l("Upgrade to Pro")]})]})]})}const u3=["[doubleoptinlink]","[doubleoptoutlink]","[doubleoptin_form_date]","[doubleoptin_form_time]","[doubleoptin_form_url]","[doubleoptin_privacy_url]","[doi_email]","[doi_name]","[doi_first_name]","[doi_last_name]","[doi_phone]","[doi_company]","[doi_message]","[doi_subject]","[doi_address]","[doi_city]","[doi_zip]","[doi_country]"],Np=[{tag:"[doi_email]",key:"doi_email",label:"E-Mail",group:"identity"},{tag:"[doi_name]",key:"doi_name",label:"Name",group:"identity"},{tag:"[doi_first_name]",key:"doi_first_name",label:"First Name",group:"identity"},{tag:"[doi_last_name]",key:"doi_last_name",label:"Last Name",group:"identity"},{tag:"[doi_phone]",key:"doi_phone",label:"Phone",group:"contact"},{tag:"[doi_company]",key:"doi_company",label:"Company",group:"contact"},{tag:"[doi_subject]",key:"doi_subject",label:"Subject",group:"message"},{tag:"[doi_message]",key:"doi_message",label:"Message",group:"message"},{tag:"[doi_address]",key:"doi_address",label:"Address",group:"address"},{tag:"[doi_city]",key:"doi_city",label:"City",group:"address"},{tag:"[doi_zip]",key:"doi_zip",label:"ZIP",group:"address"},{tag:"[doi_country]",key:"doi_country",label:"Country",group:"address"}],f3=[{id:"identity",label:"Identity",description:"Who the user is."},{id:"contact",label:"Contact",description:"Phone, company."},{id:"message",label:"Message",description:"Free-text fields submitted with the form."},{id:"address",label:"Address",description:"Postal address parts."}];function aN(e){switch(e){case"recipient":return l("Recipient field");case"subject":return l("Subject");case"body_or_template":return l("Email body or template");default:return e}}function ha(e){return!e||e.length===0?"":e.map(aN).join(", ")}function Sp(e,t){var h,m,v,x;const n=[],s=((h=e.recipient)!=null?h:"").toString().trim(),a=t?new Set(t.map(j=>j.name)):null;(s===""||a!==null&&!a.has(s))&&n.push("recipient"),((m=e.subject)!=null?m:"").toString().trim()===""&&n.push("subject");const c=((v=e.body)!=null?v:"").toString().includes("[doubleoptinlink]"),u=((x=e.template)!=null?x:"").toString().trim()!=="";return!c&&!u&&n.push("body_or_template"),n}const oN={cf7:{label:"Contact Form 7",pro:!1},avada:{label:"Avada Forms",pro:!1,notice:l("Moving to Pro in 3.8.0")},elementor:{label:"Elementor Forms",pro:!0,info:l('1. Open Elementor editor 2. Select form widget 3. Add "Double Opt-In" to Submit Actions 4. Configure settings here')},wpforms:{label:"WPForms",pro:!0},gravity:{label:"Gravity Forms",pro:!0}};function m3(){var v;const{isProInstalled:e,isProLicenseActive:t}=tl(),n=qe(),s=xn(),{data:a,isLoading:o}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms")}),i=(v=a==null?void 0:a.data)!=null?v:{},c=ke({mutationFn:({integration:x,formId:j})=>Y(`/forms/${x}/${j}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),K.success(l("Form toggled"))},onError:x=>{if(x instanceof rd&&x.code==="INCOMPLETE_CONFIG"){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:x.missing&&x.missing.length>0?se(l("Missing: %s"),ha(x.missing)):void 0});return}K.error(x.message)}}),d=Object.entries(i).flatMap(([,x])=>{var j;return(j=x==null?void 0:x.forms)!=null?j:[]}),u=d.length,h=d.filter(x=>x.enabled).length;if(o)return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:[1,2,3].map(x=>r.jsx(ee,{children:r.jsx(te,{className:"pt-6",children:r.jsx(ae,{className:"h-8 w-20"})})},x))}),[1,2].map(x=>r.jsx(ee,{children:r.jsx(te,{className:"pt-6",children:r.jsx(ae,{className:"h-24 w-full"})})},x))]});const m=Object.keys(oN).map(x=>{var w,y;const j=oN[x],b=i[x];return{key:x,name:(w=b==null?void 0:b.name)!=null?w:j.label,forms:(y=b==null?void 0:b.forms)!=null?y:[],pro:j.pro,notice:j.notice,info:j.info}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Form Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage Double Opt-In settings for all your forms")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("Total Forms")})}),r.jsx(te,{children:r.jsxs("div",{className:"text-2xl font-bold flex items-center gap-2",children:[u," ",r.jsx(io,{className:"h-4 w-4 text-primary"})]})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("DOI Active")})}),r.jsx(te,{children:r.jsx("div",{className:"text-2xl font-bold text-success",children:h})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("DOI Inactive")})}),r.jsx(te,{children:r.jsx("div",{className:"text-2xl font-bold text-warning",children:u-h})})]})]}),m.map(x=>{const j=x.pro,b=j&&(!e||!t);return r.jsxs(ee,{children:[r.jsx(de,{className:"pb-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(io,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(ue,{className:"text-sm font-semibold",children:x.name}),j&&!t&&r.jsx(jp,{}),r.jsx(Ge,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:se(l("%s forms"),x.forms.length)})]})}),r.jsxs(te,{children:[x.notice&&r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded px-3 py-2 text-xs mb-3",children:[r.jsx(yt,{className:"h-3.5 w-3.5"})," ",x.notice]}),x.info&&!b&&r.jsxs("div",{className:"flex items-start gap-2 bg-primary/5 text-primary rounded px-3 py-2 text-xs mb-3",children:[r.jsx(yt,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"})," ",x.info]}),b?r.jsx(d3,{title:se(l("%s Integration"),x.name),description:se(l("Unlock Double Opt-In support for %s with Pro."),x.name)}):x.forms.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:l("No forms detected.")}):r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs w-20",children:l("Status")}),r.jsx(Te,{className:"text-xs",children:l("Form Title")}),r.jsx(Te,{className:"text-xs w-24",children:l("Form ID")}),r.jsx(Te,{className:"text-xs text-right w-40",children:l("Actions")})]})}),r.jsx(nn,{children:x.forms.map(w=>{var N;const y=w.isComplete!==!1,p=(N=w.missingFields)!=null?N:[],g=!y&&!w.enabled;return r.jsxs(Me,{children:[r.jsx(fe,{children:r.jsx("span",{title:g?se(l("Complete the configuration to enable. Missing: %s"),ha(p)):void 0,children:r.jsx(rn,{checked:!!w.enabled,disabled:g,onCheckedChange:()=>c.mutate({integration:x.key,formId:w.id}),className:"data-[state=checked]:bg-success"})})}),r.jsx(fe,{className:"font-medium text-sm",children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:w.title}),!y&&r.jsxs(Ge,{variant:"outline",title:se(l("Missing: %s"),ha(p)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(Mt,{className:"h-3 w-3"}),l("Configuration incomplete")]})]})}),r.jsx(fe,{children:r.jsxs(Ge,{variant:"secondary",className:"font-mono text-[10px]",children:["#",w.id]})}),r.jsx(fe,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[r.jsx(V,{size:"sm",className:"text-xs",onClick:()=>s(`/forms/${x.key}/${w.id}/settings`),children:l("Configure")}),r.jsx(V,{size:"icon",variant:"ghost",className:"h-9 w-9 text-muted-foreground hover:text-foreground",title:l("Edit form"),"aria-label":l("Edit form"),disabled:!w.edit_url,onClick:()=>{w.edit_url&&window.open(String(w.edit_url),"_blank","noopener,noreferrer")},children:r.jsx(Wi,{className:"h-4 w-4"})})]})})]},w.id)})})]})]})]},x.key)})]})}var h3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],p3=h3.reduce((e,t)=>{const n=Mh(`Primitive.${t}`),s=f.forwardRef((a,o)=>{const{asChild:i,...c}=a,d=i?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),x3="Label",iN=f.forwardRef((e,t)=>r.jsx(p3.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));iN.displayName=x3;var lN=iN;const g3=ao("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=f.forwardRef(({className:e,...t},n)=>r.jsx(lN,{ref:n,className:q(g3(),e),...t}));X.displayName=lN.displayName;var Cp="rovingFocusGroup.onEntryFocus",v3={bubbles:!1,cancelable:!0},yl="RovingFocusGroup",[kp,cN,y3]=id(yl),[b3,Zd]=It(yl,[y3]),[j3,w3]=b3(yl),dN=f.forwardRef((e,t)=>r.jsx(kp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(kp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(N3,{...e,ref:t})})}));dN.displayName=yl;var N3=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,v=f.useRef(null),x=Ie(t,v),j=ml(o),[b,w]=Zt({prop:i,defaultProp:c!=null?c:null,onChange:d,caller:yl}),[y,p]=f.useState(!1),g=gn(u),N=cN(n),S=f.useRef(!1),[k,_]=f.useState(0);return f.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(Cp,g),()=>C.removeEventListener(Cp,g)},[g]),r.jsx(j3,{scope:n,orientation:s,dir:j,loop:a,currentTabStopId:b,onItemFocus:f.useCallback(C=>w(C),[w]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>_(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>_(C=>C-1),[]),children:r.jsx(ge.div,{tabIndex:y||k===0?-1:0,"data-orientation":s,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{S.current=!0}),onFocus:pe(e.onFocus,C=>{const R=!S.current;if(C.target===C.currentTarget&&R&&!y){const T=new CustomEvent(Cp,v3);if(C.currentTarget.dispatchEvent(T),!T.defaultPrevented){const O=N().filter(F=>F.focusable),D=O.find(F=>F.active),B=O.find(F=>F.id===b),re=[D,B,...O].filter(Boolean).map(F=>F.ref.current);mN(re,h)}}S.current=!1}),onBlur:pe(e.onBlur,()=>p(!1))})})}),uN="RovingFocusGroupItem",fN=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:o,children:i,...c}=e,d=In(),u=o||d,h=w3(uN,n),m=h.currentTabStopId===u,v=cN(n),{onFocusableItemAdd:x,onFocusableItemRemove:j,currentTabStopId:b}=h;return f.useEffect(()=>{if(s)return x(),()=>j()},[s,x,j]),r.jsx(kp.ItemSlot,{scope:n,id:u,focusable:s,active:a,children:r.jsx(ge.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:pe(e.onMouseDown,w=>{s?h.onItemFocus(u):w.preventDefault()}),onFocus:pe(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:pe(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){h.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const y=k3(w,h.orientation,h.dir);if(y!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let g=v().filter(N=>N.focusable).map(N=>N.ref.current);if(y==="last")g.reverse();else if(y==="prev"||y==="next"){y==="prev"&&g.reverse();const N=g.indexOf(w.currentTarget);g=h.loop?E3(g,N+1):g.slice(N+1)}setTimeout(()=>mN(g))}}),children:typeof i=="function"?i({isCurrentTabStop:m,hasTabStop:b!=null}):i})})});fN.displayName=uN;var S3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C3(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function k3(e,t,n){const s=C3(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return S3[s]}function mN(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function E3(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var hN=dN,pN=fN,Jd="Tabs",[_3]=It(Jd,[Zd]),xN=Zd(),[P3,Ep]=_3(Jd),gN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:c,activationMode:d="automatic",...u}=e,h=ml(c),[m,v]=Zt({prop:s,onChange:a,defaultProp:o!=null?o:"",caller:Jd});return r.jsx(P3,{scope:n,baseId:In(),value:m,onValueChange:v,orientation:i,dir:h,activationMode:d,children:r.jsx(ge.div,{dir:h,"data-orientation":i,...u,ref:t})})});gN.displayName=Jd;var vN="TabsList",yN=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...a}=e,o=Ep(vN,n),i=xN(n);return r.jsx(hN,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:s,children:r.jsx(ge.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});yN.displayName=vN;var bN="TabsTrigger",jN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:a=!1,...o}=e,i=Ep(bN,n),c=xN(n),d=SN(i.baseId,s),u=CN(i.baseId,s),h=s===i.value;return r.jsx(pN,{asChild:!0,...c,focusable:!a,active:h,children:r.jsx(ge.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...o,ref:t,onMouseDown:pe(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?i.onValueChange(s):m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(s)}),onFocus:pe(e.onFocus,()=>{const m=i.activationMode!=="manual";!h&&!a&&m&&i.onValueChange(s)})})})});jN.displayName=bN;var wN="TabsContent",NN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:a,children:o,...i}=e,c=Ep(wN,n),d=SN(c.baseId,s),u=CN(c.baseId,s),h=s===c.value,m=f.useRef(h);return f.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),r.jsx(Tn,{present:a||h,children:({present:v})=>r.jsx(ge.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:v&&o})})});NN.displayName=wN;function SN(e,t){return`${e}-trigger-${t}`}function CN(e,t){return`${e}-content-${t}`}var T3=gN,kN=yN,EN=jN,_N=NN;const PN=T3,_p=f.forwardRef(({className:e,...t},n)=>r.jsx(kN,{ref:n,className:q("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));_p.displayName=kN.displayName;const bs=f.forwardRef(({className:e,...t},n)=>r.jsx(EN,{ref:n,className:q("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));bs.displayName=EN.displayName;const bl=f.forwardRef(({className:e,...t},n)=>r.jsx(_N,{ref:n,className:q("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));bl.displayName=_N.displayName;const Tr=f.forwardRef(({className:e,...t},n)=>r.jsx("textarea",{className:q("flex min-h-[80px] w-full rounded-md border border-input bg-card px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors hover:border-foreground/30",e),ref:n,...t}));Tr.displayName="Textarea";function R3({settings:e,onChange:t,fields:n,categories:s,pages:a}){var h,m,v,x,j,b,w,y;const o=((h=e.consentText)!=null?h:"").toString().trim(),i=((m=e.consentField)!=null?m:"").toString().trim(),c=new Set(n.map(p=>p.name===null||p.name===void 0?"":String(p.name).toLowerCase()).filter(Boolean)),d=l("Submissions are still accepted, but they are stored without any provable consent."),u=i&&!c.has(i.toLowerCase())?{tone:"red",message:se(l('The selected acceptance field "%s" does not exist on this form.'),i)+" "+d+" "+l("Pick a field that's actually present, or leave the dropdown empty.")}:o&&!i?{tone:"amber",message:l("Consent text is configured but no acceptance field is set. The text is stored with each opt-in for audit, but the user never has to confirm it — this is not GDPR Art. 7 compliant. Pick an acceptance field below to enable the consent gate.")}:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{className:"text-base",children:l("Consent & categorization")}),r.jsx(Re,{children:l("What gets stored with each opt-in for GDPR audit, and how this form's opt-ins are grouped.")})]}),r.jsxs(te,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"consent-text",children:l("Consent text (GDPR)")}),r.jsx(Tr,{id:"consent-text",className:"mt-1.5",placeholder:l("I agree to receive the newsletter..."),rows:3,value:(v=e.consentText)!=null?v:"",onChange:p=>t("consentText",p.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("The wording the user is asked to agree to. Stored alongside each opt-in for the GDPR Art. 7 audit trail. Should match the label of the acceptance field below.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"consent-field",children:l("Consent acceptance field")}),r.jsxs(we,{value:(x=e.consentField)!=null?x:"",onValueChange:p=>t("consentField",p==="__none__"?"":p),children:[r.jsx(ye,{id:"consent-field",className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("-- None --")})}),r.jsxs(be,{children:[r.jsx(z,{value:"__none__",children:l("-- None --")}),n.filter(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const g=String(p.name);return r.jsx(z,{value:g,children:p.label||g},g)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Form field that captures the user's explicit consent (e.g. a CF7")," ",r.jsx("code",{children:"[acceptance]"})," ",l("checkbox). Submissions without this field set are rejected — the user must actively confirm. Leave empty for no acknowledgment gate (audit log only, not GDPR-compliant).")]})]}),u&&r.jsxs("div",{className:"rounded-md border p-3 flex items-start gap-2 text-xs "+(u.tone==="red"?"border-red-200 bg-red-50 text-red-900 dark:border-red-900/50 dark:bg-red-950/30 dark:text-red-200":"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200"),role:u.tone==="red"?"alert":void 0,children:[u.tone==="red"?r.jsx(md,{className:"h-4 w-4 mt-0.5 shrink-0"}):r.jsx(Mt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsx("span",{className:"leading-relaxed",children:u.message})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Category")}),r.jsxs(we,{value:String((j=e.category)!=null?j:0),onValueChange:p=>t("category",Number(p)),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select category")})}),r.jsx(be,{children:Object.entries(s).map(([p,g])=>r.jsx(z,{value:String(p),children:String(g)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Optional grouping for opt-ins in the overview and stats. Useful when several forms feed into different topics (newsletter, contact, etc.).")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{className:"text-base",children:l("Submission rules")}),r.jsx(Re,{children:l("Decide when a submission triggers the opt-in and where the user lands afterwards.")})]}),r.jsxs(te,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(X,{children:l("Conditional trigger")}),r.jsxs(we,{value:(b=e.conditions)!=null?b:"disabled",onValueChange:p=>t("conditions",p),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"disabled",children:l("Disabled")}),n.filter(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const g=String(p.name);return r.jsx(z,{value:g,children:p.label||g},g)})]})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l('Gate the opt-in on a form field. Example: only fire the confirmation mail when the user ticked a "Subscribe me" checkbox. Different from the consent acceptance field above — that one is the mandatory GDPR gate, this one is an optional secondary trigger. Set to')," ",r.jsx("code",{children:"Disabled"})," ",l("to always fire when the form is submitted.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{children:l("Confirmation page")}),r.jsxs(we,{value:String((w=e.confirmationPage)!=null?w:-1),onValueChange:p=>t("confirmationPage",Number(p)),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select page")})}),r.jsx(be,{children:Object.entries(a).map(([p,g])=>r.jsx(z,{value:String(p),children:String(g)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Where the user lands after clicking the confirmation link. Leave on default to fall back to the site-wide confirmation page.")})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Error redirect page")}),r.jsxs(we,{value:String((y=e.errorRedirectPage)!=null?y:-1),onValueChange:p=>t("errorRedirectPage",Number(p)),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select page")})}),r.jsx(be,{children:Object.entries(a).map(([p,g])=>r.jsx(z,{value:String(p),children:String(g)},p))})]}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Where the user is sent on opt-in errors (invalid email, expired link, etc.). Leave on default to show a toast notification instead of a redirect.")})]})]})]})]})]})}function A3({settings:e,onChange:t,fields:n,templates:s,templateDetails:a,adminUrl:o}){var m,v,x,j,b,w,y,p;const i=(m=e.template)!=null?m:"",c=i.startsWith("custom_"),d=c?a==null?void 0:a[i]:null,u=c,h=d&&o?`#/email-templates/${d.id}/edit`:null;return r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{className:"text-base",children:l("Sender & recipient")}),r.jsx(Re,{children:l("Where the confirmation email comes from and which form field carries the user's address.")})]}),r.jsxs(te,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(X,{children:[l("Recipient field")," ",r.jsx(Pp,{})]}),r.jsxs(we,{value:(v=e.recipient)!=null?v:"",onValueChange:g=>t("recipient",g),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select field")})}),r.jsx(be,{children:n.filter(g=>g.name!==null&&g.name!==void 0&&g.name!=="").map(g=>{const N=String(g.name);return r.jsx(z,{value:N,children:g.label||N},N)})})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("The form field that holds the subscriber's email address.")," ",r.jsx("strong",{children:l("Required")})," ",l("— without it the confirmation mail has nowhere to go and the opt-in is rejected.")]})]}),r.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"from-email",children:l("From email")}),r.jsx(Pe,{id:"from-email",className:"mt-1.5",value:(x=e.sender)!=null?x:"",onChange:g=>t("sender",g.target.value)}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Sender address for the confirmation mail. Leave empty to use the WordPress default (site admin email).")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"from-name",children:l("From name")}),r.jsx(Pe,{id:"from-name",className:"mt-1.5",value:(j=e.senderName)!=null?j:"",onChange:g=>t("senderName",g.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Display name shown as")," ",r.jsx("code",{children:"From: Name <email>"}),l(". Leave empty for a bare-email From header.")]})]})]})]})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{className:"text-base",children:l("Email content")}),r.jsx(Re,{children:l("Subject, template, and the body shown to the user.")})]}),r.jsxs(te,{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs(X,{htmlFor:"subject",children:[l("Subject")," ",r.jsx(Pp,{})]}),r.jsx(Pe,{id:"subject",className:"mt-1.5",value:(b=e.subject)!=null?b:"",onChange:g=>t("subject",g.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Subject line of the confirmation mail.")," ",r.jsx("strong",{children:l("Required")}),l(" — empty subjects often land in spam folders.")]})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Email template")}),r.jsxs(we,{value:(w=e.template)!=null?w:"",onValueChange:g=>t("template",g),children:[r.jsx(ye,{className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select template")})}),r.jsx(be,{children:Object.entries(s).map(([g,N])=>r.jsx(z,{value:g,children:String(N)},g))})]}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("HTML wrapper for the body.")," ",r.jsx("code",{children:"blank"})," ",l("keeps the body verbatim; the built-in")," ",r.jsx("code",{children:"newsletter_*"})," ",l("templates wrap it in a styled HTML shell. Custom templates are built in the Email Designer and override the body field below.")]})]}),r.jsxs("div",{children:[r.jsxs(X,{htmlFor:"body",children:[l("Message body")," ",!c&&r.jsx(Pp,{})]}),u?r.jsx(O3,{title:(y=d==null?void 0:d.title)!=null?y:i,editorUrl:h}):r.jsxs(r.Fragment,{children:[r.jsx(Tr,{id:"body",className:"mt-1.5 font-mono text-xs",rows:12,value:(p=e.body)!=null?p:"",onChange:g=>t("body",g.target.value)}),r.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[l("Mail body. Must contain")," ",r.jsx("code",{children:"[doubleoptinlink]"}),l(" — that placeholder is replaced by the actual confirmation URL at send time. Pick a custom template above to bypass this field and edit the body visually instead.")]}),r.jsxs(pl,{children:[r.jsx(xl,{className:"text-xs text-primary hover:underline mt-1",children:l("Show placeholders")}),r.jsx(gl,{className:"mt-2 flex flex-wrap gap-1",children:u3.map(g=>r.jsx("code",{className:"bg-secondary text-foreground text-[10px] px-1.5 py-0.5 rounded cursor-pointer hover:bg-primary/10",children:g},g))})]})]})]})]})]})]})}function Pp(){return r.jsx("span",{"aria-label":l("Required"),title:l("Required field — Double Opt-In cannot be enabled until this is filled in"),className:"text-destructive font-bold",children:"*"})}function O3({title:e,editorUrl:t}){return r.jsxs("div",{className:"mt-1.5 rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(An,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:se(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),e)}),t?r.jsx(V,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:t,children:[r.jsx(hd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(V,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})}function I3({settings:e,onChange:t,fields:n}){var c;const s=(d,u)=>{var m;const h={...(m=e.fieldMapping)!=null?m:{},[d]:u};t("fieldMapping",h)},a=Np.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,o=new Set(Object.values((c=e.fieldMapping)!=null?c:{}).filter(Boolean).map(d=>String(d))),i=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!o.has(String(d.name)));return r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{className:"text-base",children:l("Field mapping")}),r.jsxs(Re,{children:[l("Map placeholder tags used in the email body to the real form fields. Unmapped tags fall back to auto-detection by name (e.g.")," ",r.jsx("code",{children:"your-email"})," → ",r.jsx("code",{children:"[doi_email]"}),l("); if no auto-match is found they render as an empty string. System placeholders like")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("are filled by the plugin itself and are not mapped here.")]})]}),r.jsxs(te,{className:"space-y-6",children:[f3.map(d=>{const u=Np.filter(h=>h.group===d.id);return u.length===0?null:r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-baseline gap-2 mb-3",children:[r.jsx("h4",{className:"text-sm font-semibold",children:d.label}),r.jsx("span",{className:"text-xs text-muted-foreground",children:d.description})]}),r.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:u.map(h=>{var m,v;return r.jsx(M3,{mapping:h,value:(v=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?v:"",fields:n,onChange:x=>s(h.key,x)},h.key)})})]},d.id)}),r.jsxs("div",{className:"border-t pt-4 space-y-2 text-xs",children:[r.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx(i0,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:se(l("%d of %d placeholders mapped"),a,Np.length)})]}),i.length>0&&r.jsxs("div",{className:"flex items-start gap-2 text-amber-700",children:[r.jsx(md,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsxs("span",{className:"font-medium",children:[i.length," form field",i.length===1?"":"s"," not mapped"]}),r.jsxs("span",{className:"text-muted-foreground",children:[" ",l("— captured on submit but never read by the email.")," "]}),r.jsxs("div",{className:"mt-1 flex flex-wrap gap-1",children:[i.slice(0,8).map(d=>{const u=String(d.name);return r.jsx(Ge,{variant:"outline",className:"text-[10px] font-mono",children:d.label||u},u)}),i.length>8&&r.jsxs(Ge,{variant:"outline",className:"text-[10px]",children:["+",i.length-8]})]})]})]})]})]})]})}function M3({mapping:e,value:t,fields:n,onChange:s}){const a=!!t;return r.jsxs("div",{className:"rounded-md border p-3 space-y-2 transition-colors "+(a?"bg-primary/5 border-primary/20":"bg-muted/30"),children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("code",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded "+(a?"bg-primary/10 text-primary":"bg-secondary text-muted-foreground"),children:e.tag}),r.jsx("span",{className:"text-xs text-muted-foreground truncate",children:e.label})]}),r.jsxs(we,{value:t||"__none__",onValueChange:o=>s(o==="__none__"?"":o),children:[r.jsx(ye,{className:"h-8 text-xs",children:r.jsx(Ne,{placeholder:l("Select form field")})}),r.jsxs(be,{children:[r.jsx(z,{value:"__none__",children:l("-- None --")}),n.filter(o=>o.name!==null&&o.name!==void 0&&o.name!=="").map(o=>{const i=String(o.name);return r.jsx(z,{value:i,children:o.label||i},i)})]})]})]})}const D3=["general","email","mapping","pro"];function F3(){var T,O,D,B,I,re;const{integration:e,id:t}=ed(),n=xn(),s=qe(),[a,o]=XE(),i=a.get("tab"),c=D3.includes(i!=null?i:"")?i:"general",d=F=>{const ne=new URLSearchParams(a);F==="general"?ne.delete("tab"):ne.set("tab",F),o(ne,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:v}=Ce({queryKey:["form-settings",t,e],queryFn:()=>Y(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),x=(T=m==null?void 0:m.data)!=null&&T.fields&&Array.isArray(m.data.fields)?m.data.fields:[];f.useEffect(()=>{var F;if((F=m==null?void 0:m.data)!=null&&F.settings){const ne=m.data.settings,A=Array.isArray(m.data.fields)?m.data.fields:[];if(ne.enabled&&Sp(ne,A).length>0){h({...ne,enabled:!1});return}h({...ne})}},[m]);const j=ke({mutationFn:F=>Y(`/forms/${e}/${t}/settings`,{method:"PUT",body:JSON.stringify({settings:F})}),onSuccess:F=>{var ne,A;if(s.invalidateQueries({queryKey:["forms"]}),s.invalidateQueries({queryKey:["form-settings"]}),(ne=F.data)!=null&&ne.autoDisabled){const M=(A=F.data.missing)!=null?A:[];K.warning(l("Double Opt-In was auto-disabled."),{description:M.length>0?se(l("Configuration is incomplete: %s."),ha(M)):l("Configuration is incomplete.")}),h(Z=>({...Z,enabled:!1}));return}K.success(l("Settings saved"))},onError:F=>{if(F instanceof rd&&F.code==="INCOMPLETE_CONFIG"){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:F.missing&&F.missing.length>0?se(l("Missing: %s"),ha(F.missing)):void 0}),h(ne=>({...ne,enabled:!1}));return}K.error(F.message)}}),b=(F,ne)=>h(A=>{const M={...A,[F]:ne};return M.enabled&&Sp(M,x).length>0&&(M.enabled=!1),M}),y=f.useSyncExternalStore(wb,()=>Nb("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{c==="pro"&&!y&&d("general")},[c,y]),v||!(m!=null&&m.data))return r.jsxs("div",{className:"space-y-4",children:[r.jsx(ae,{className:"h-10 w-64"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-96 w-full"})]});const p=m.data,g=kt(),N={settings:u,onChange:b,fields:x,templates:(O=p.templates)!=null?O:{},categories:(D=p.categories)!=null?D:{},pages:(B=p.pages)!=null?B:{},templateDetails:(I=p.templateDetails)!=null?I:{},adminUrl:g.adminUrl,integration:p.integration},S=Sp(u,x),k=S.length===0,_=!k&&!u.enabled,C=F=>{if(F&&!k){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:se(l("Missing: %s."),ha(S))});return}b("enabled",F)},R=new Set;return(S.includes("recipient")||S.includes("subject")||S.includes("body_or_template"))&&R.add("email"),r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{className:"sticky top-0 z-30 -mx-4 sm:-mx-6 px-4 sm:px-6 pt-4 pb-4 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 border-b",children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{className:"space-y-2 min-w-0",children:[r.jsxs("button",{onClick:()=>n("/forms"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(fd,{className:"h-3.5 w-3.5"}),l("Back to forms")]}),r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight truncate",children:p.title}),r.jsx("p",{className:"text-muted-foreground text-sm",children:se(l("Configure Double Opt-In for this %s form."),p.integration)})]})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-2 rounded-lg border px-3 py-2 "+(k?"bg-card":"bg-amber-50 border-amber-300 dark:bg-amber-950/30 dark:border-amber-900/50"),title:k?void 0:se(l("Configuration incomplete. Missing: %s"),ha(S)),children:[!k&&r.jsx(Mt,{className:"h-4 w-4 text-amber-600 shrink-0","aria-label":l("Configuration incomplete")}),r.jsx(X,{htmlFor:"form-enabled",className:"text-sm",children:u.enabled?l("Enabled"):l("Disabled")}),r.jsx(rn,{id:"form-enabled",checked:(re=u.enabled)!=null?re:!1,disabled:_,onCheckedChange:C,className:"data-[state=checked]:bg-success"})]}),r.jsxs(Ge,{variant:"secondary",className:"font-mono text-[10px] hidden sm:inline-flex",children:["#",p.id]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(V,{variant:"outline",size:"sm",onClick:()=>n("/forms"),children:l("Cancel")}),r.jsx(V,{size:"sm",disabled:j.isPending,onClick:()=>j.mutate(u),children:j.isPending?l("Saving..."):l("Save settings")})]})]})]})}),!k&&r.jsx("div",{role:"alert",className:"!mt-20 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200",children:r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(Mt,{className:"h-4 w-4 mt-0.5 shrink-0"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("div",{className:"font-semibold",children:l("Configuration incomplete")}),r.jsx("p",{className:"leading-relaxed",children:l("Double Opt-In cannot be enabled for this form until the following required fields are filled in:")}),r.jsx("ul",{className:"list-disc list-inside ml-1 space-y-0.5",children:S.map(F=>r.jsx("li",{children:aN(F)},F))})]})]})}),r.jsxs(PN,{value:c,onValueChange:d,className:"!mt-12",children:[r.jsxs(_p,{children:[r.jsx(bs,{value:"general",children:l("General")}),r.jsxs(bs,{value:"email",className:"gap-1",children:[l("Email"),R.has("email")&&r.jsx(Mt,{className:"h-3 w-3 text-amber-600","aria-label":l("Tab contains incomplete required fields")})]}),r.jsx(bs,{value:"mapping",children:l("Mapping")}),y&&r.jsx(bs,{value:"pro",children:l("Pro Features")})]}),r.jsx(bl,{value:"general",className:"mt-6",children:r.jsx(R3,{...N})}),r.jsx(bl,{value:"email",className:"mt-6",children:r.jsx(A3,{...N})}),r.jsx(bl,{value:"mapping",className:"mt-6",children:r.jsx(I3,{...N})}),y&&r.jsx(bl,{value:"pro",className:"mt-6",children:r.jsx(er,{id:"forms.pro-features",data:N})})]}),r.jsx(er,{id:"forms.integration-settings",data:{form:{id:p.id,title:p.title,integration:p.integration},integration:p.integration,settings:u}})]})}function L3(){return r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsx(Me,{children:Array.from({length:6}).map((e,t)=>r.jsx(Te,{children:r.jsx(ae,{className:"h-3 w-16"})},t))})}),r.jsx(nn,{children:Array.from({length:3}).map((e,t)=>r.jsx(Me,{children:Array.from({length:6}).map((n,s)=>r.jsx(fe,{children:r.jsx(ae,{className:"h-3 w-full"})},s))},t))})]})}function TN(){var p;const e=qe(),[t,n]=f.useState(""),[s,a]=f.useState(null),[o,i]=f.useState(null),[c,d]=f.useState(""),{data:u,isLoading:h}=Ce({queryKey:["categories"],queryFn:()=>Y("/categories")}),m=ke({mutationFn:g=>Y("/categories",{method:"POST",body:JSON.stringify({name:g})}),onSuccess:()=>{K.success(l("Category created")),n(""),e.invalidateQueries({queryKey:["categories"]})},onError:g=>{K.error(g.message||l("Failed to create category"))}}),v=ke({mutationFn:({id:g,name:N})=>Y(`/categories/${g}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{K.success(l("Category updated")),i(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:g=>{K.error(g.message||l("Failed to update category"))}}),x=ke({mutationFn:g=>Y(`/categories/${g}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Category deleted")),a(null),e.invalidateQueries({queryKey:["categories"]})},onError:g=>{K.error(g.message||l("Failed to delete category"))}}),j=(p=u==null?void 0:u.data)!=null?p:[];function b(g){i(g.id),d(g.name)}function w(){i(null),d("")}function y(){o!==null&&c.trim()&&v.mutate({id:o,name:c.trim()})}return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Categories")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage opt-in categories")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(ee,{children:r.jsx(te,{className:"p-0",children:h?r.jsx(L3,{}):r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs",children:l("ID")}),r.jsx(Te,{className:"text-xs",children:l("Name")}),r.jsx(Te,{className:"text-xs",children:l("Opt-Ins")}),r.jsx(Te,{className:"text-xs",children:l("Created")}),r.jsx(Te,{className:"text-xs",children:l("Updated")}),r.jsx(Te,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(nn,{children:j.length===0?r.jsx(Me,{children:r.jsx(fe,{colSpan:6,className:"text-center py-8 text-muted-foreground text-sm",children:l("No categories found")})}):j.map(g=>r.jsxs(Me,{children:[r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:g.id}),r.jsx(fe,{children:o===g.id?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(Pe,{value:c,onChange:N=>d(N.target.value),className:"h-7 text-sm",onKeyDown:N=>{N.key==="Enter"&&y(),N.key==="Escape"&&w()},autoFocus:!0}),r.jsx(V,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:y,disabled:v.isPending,children:r.jsx(ds,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(V,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:w,children:r.jsx(gd,{className:"h-3.5 w-3.5"})})]}):r.jsx(Ot,{to:`/categories/${g.id}`,className:"text-primary hover:underline font-medium text-sm",children:g.name})}),r.jsx(fe,{className:"tabular-nums text-muted-foreground text-xs",children:g.optin_count}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:g.createtime}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:g.updatetime}),r.jsx(fe,{className:"text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-1",children:[r.jsxs(V,{variant:"ghost",size:"sm",className:"text-xs h-7",onClick:()=>b(g),children:[r.jsx(hd,{className:"h-3 w-3 mr-1"}),l("Edit")]}),r.jsx(V,{variant:"ghost",size:"sm",className:"text-destructive text-xs h-7",onClick:()=>a(g.id),children:l("Delete")})]})})]},g.id))})]})})})}),r.jsx("div",{children:r.jsxs(ee,{children:[r.jsx(de,{className:"pb-3",children:r.jsx(ue,{className:"text-sm font-medium",children:l("New Category")})}),r.jsxs(te,{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Name:")}),r.jsx(Pe,{className:"mt-1.5",value:t,onChange:g=>n(g.target.value),placeholder:l("Category name"),onKeyDown:g=>{g.key==="Enter"&&t.trim()&&m.mutate(t.trim())}})]}),r.jsx(V,{size:"sm",disabled:!t.trim()||m.isPending,onClick:()=>{t.trim()&&m.mutate(t.trim())},children:m.isPending?l("Adding..."):l("Add")})]})]})})]}),r.jsx(_r,{open:s!==null,onOpenChange:()=>a(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Category")}),r.jsx(sr,{children:l("Are you sure? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",onClick:()=>a(null),children:l("Cancel")}),r.jsx(V,{variant:"destructive",disabled:x.isPending,onClick:()=>{s!==null&&x.mutate(s)},children:x.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function Tp({icon:e,title:t,description:n,children:s}){return r.jsxs(ee,{children:[r.jsx(de,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(e,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:t}),r.jsx(Re,{className:"text-xs",children:n})]})]})}),r.jsx(te,{className:"border-t pt-4 space-y-4",children:s})]})}function $3(){return r.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((e,t)=>r.jsxs(ee,{children:[r.jsx(de,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ae,{className:"h-9 w-9 rounded-lg"}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(ae,{className:"h-4 w-32"}),r.jsx(ae,{className:"h-3 w-48"})]})]})}),r.jsxs(te,{className:"border-t pt-4 space-y-4",children:[r.jsx(ae,{className:"h-9 w-full"}),r.jsx(ae,{className:"h-9 w-full"})]})]},t))})}function z3(){var p,g,N,S,k,_,C,R,T;const{isProInstalled:e,isProLicenseActive:t}=tl(),n=ra("reminder"),s=ra("mx-validator"),a=ra("domain-blocklist"),o=!n&&!s&&!a,i=qe(),c=kt(),{data:d,isLoading:u}=Ce({queryKey:["settings"],queryFn:()=>Y("/settings")}),{data:h}=Ce({queryKey:["pages"],queryFn:()=>Y("/settings/pages")}),[m,v]=f.useState({}),[x,j]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!x&&(v(d.data),j(!0))},[d,x]);const b=ke({mutationFn:()=>Y("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:O=>{K.success(l("Settings saved successfully")),i.invalidateQueries({queryKey:["settings"]})},onError:O=>{K.error(O.message||l("Failed to save settings"))}});function w(O,D){v(B=>({...B,[O]:D}))}const y=(p=h==null?void 0:h.data)!=null?p:[];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Settings")}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure global Double Opt-In settings")})]}),r.jsxs(V,{size:"sm",onClick:()=>b.mutate(),disabled:b.isPending,children:[r.jsx(oa,{className:"mr-2 h-4 w-4"}),b.isPending?l("Saving..."):l("Save Changes")]})]}),u?r.jsx($3,{}):r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs(Tp,{icon:Gn,title:l("Data Retention"),description:l("Configure automatic cleanup of opt-in records"),children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Delete Opt-Ins after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Pe,{type:"number",value:(g=m.delete)!=null?g:12,onChange:O=>w("delete",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(we,{value:(N=m.delete_period)!=null?N:"months",onValueChange:O=>w("delete_period",O),children:[r.jsx(ye,{className:"w-28 h-9",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"days",children:l("Days")}),r.jsx(z,{value:"months",children:l("Months")}),r.jsx(z,{value:"years",children:l("Years")})]})]})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Set to 0 to disable. GDPR recommends regular cleanup.")})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Delete Unconfirmed after")}),r.jsxs("div",{className:"flex gap-2 mt-1.5",children:[r.jsx(Pe,{type:"number",value:(S=m.delete_unconfirmed)!=null?S:7,onChange:O=>w("delete_unconfirmed",Number(O.target.value)),className:"w-20 h-9",min:0,max:30}),r.jsxs(we,{value:(k=m.delete_unconfirmed_period)!=null?k:"months",onValueChange:O=>w("delete_unconfirmed_period",O),children:[r.jsx(ye,{className:"w-28 h-9",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"days",children:l("Days")}),r.jsx(z,{value:"months",children:l("Months")}),r.jsx(z,{value:"years",children:l("Years")})]})]})]})]})]}),r.jsx(Tp,{icon:fP,title:l("Privacy"),description:l("Privacy policy and GDPR settings"),children:r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Privacy Policy Page")}),r.jsxs(we,{value:m.privacy_policy_page?String(m.privacy_policy_page):"",onValueChange:O=>w("privacy_policy_page",Number(O)),children:[r.jsx(ye,{className:"mt-1.5 h-9",children:r.jsx(Ne,{placeholder:l("Select page")})}),r.jsx(be,{children:y.map(O=>r.jsx(z,{value:String(O.id),children:O.title},O.id))})]}),r.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:l("Used for [doubleoptin_privacy_url] placeholder")})]})}),r.jsx(Tp,{icon:dh,title:l("Security"),description:l("Token and rate limiting configuration"),children:r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Token Expiry (Hours)")}),r.jsx(Pe,{type:"number",value:(_=m.token_expiry_hours)!=null?_:48,onChange:O=>w("token_expiry_hours",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:720})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit IP")}),r.jsx(Pe,{type:"number",value:(C=m.rate_limit_ip)!=null?C:5,onChange:O=>w("rate_limit_ip",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit Email")}),r.jsx(Pe,{type:"number",value:(R=m.rate_limit_email)!=null?R:3,onChange:O=>w("rate_limit_email",Number(O.target.value)),className:"mt-1.5 h-9",min:0,max:100})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs font-medium",children:l("Rate Limit Window (Min)")}),r.jsx(Pe,{type:"number",value:(T=m.rate_limit_window)!=null?T:60,onChange:O=>w("rate_limit_window",Number(O.target.value)),className:"mt-1.5 h-9",min:1,max:1440})]})]})}),r.jsx(ee,{children:r.jsx(de,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(yt,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:l("Telemetry")}),r.jsx(Re,{className:"text-xs",children:l("Helps improve the plugin. No personal data collected.")})]})]}),r.jsx(rn,{checked:!!m.telemetry,onCheckedChange:O=>w("telemetry",O?1:0)})]})})}),r.jsx(ee,{children:r.jsx(de,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(xP,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:l("Show credit link")}),r.jsx(Re,{className:"text-xs",children:l('Adds a small "Double Opt-In by Forge12" link on the page a subscriber lands on after confirming. Off by default.')})]})]}),r.jsx(rn,{checked:!!m.credit_link,onCheckedChange:O=>w("credit_link",O?1:0)})]})})}),r.jsx(ee,{children:r.jsx(de,{className:"pb-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(qi,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx(ue,{className:"text-sm font-medium",children:l("Keep data on uninstall")}),r.jsx(Re,{className:"text-xs",children:l("Preserve opt-in records and categories if the plugin is deleted. Turn off for a full cleanup on uninstall.")})]})]}),r.jsx(rn,{checked:!!m.keep_data_on_uninstall,onCheckedChange:O=>w("keep_data_on_uninstall",O?1:0)})]})})})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsx(ee,{children:r.jsxs(te,{className:"flex items-start gap-2 p-4",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Global settings affect all forms. Individual form settings can override some options.")})]})}),r.jsx($5,{}),o&&r.jsx(ee,{className:"border-primary/20 bg-primary/[0.03]",children:r.jsx(te,{className:"p-5",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:r.jsx(Nr,{className:"h-4 w-4 text-primary"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l("Unlock Pro Features")}),r.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mt-2",children:[r.jsxs("li",{children:["✓ ",l("Automatic reminders")]}),r.jsxs("li",{children:["✓ ",l("Email domain validation")]}),r.jsxs("li",{children:["✓ ",l("Disposable email blocking")]}),r.jsxs("li",{children:["✓ ",l("Priority support")]})]}),r.jsxs("a",{href:c.upgradeUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 pro-gradient text-primary-foreground font-semibold text-sm px-5 py-2 rounded transition-opacity hover:opacity-90 mt-3 w-full justify-center",children:[r.jsx(Nr,{className:"h-3.5 w-3.5"}),l("Upgrade to Pro")]})]})]})})})]})]}),r.jsx(er,{id:"settings.tab",data:{settings:m}})]})}function U3(){var h;const e=qe(),[t,n]=f.useState(null),{data:s,isLoading:a}=Ce({queryKey:["email-templates"],queryFn:()=>Y("/email-templates"),refetchOnMount:"always"}),o=(h=s==null?void 0:s.data)!=null?h:[],i=ke({mutationFn:m=>Y(`/email-templates/${m}/duplicate`,{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(l("Template duplicated"))},onError:m=>K.error(m.message)}),c=ke({mutationFn:m=>Y(`/email-templates/${m}`,{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(l("Template deleted")),n(null)},onError:m=>{K.error(m.message),n(null)}}),d=ke({mutationFn:({id:m,status:v})=>Y(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:v})}),onSuccess:(m,v)=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(v.status==="publish"?l("Template published"):l("Template moved to draft"))},onError:m=>K.error(m.message)}),u=m=>m==="publish"||m==="Published";return a?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(ee,{children:r.jsx(te,{className:"pt-6 space-y-3",children:[1,2,3].map(m=>r.jsx(ae,{className:"h-10 w-full"},m))})})]}):o.length===0?r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{children:r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")})}),r.jsx(ee,{className:"py-16 text-center",children:r.jsxs(te,{children:[r.jsx(f0,{className:"h-16 w-16 text-muted-foreground/30 mx-auto mb-4"}),r.jsx("h3",{className:"text-lg font-semibold mb-1",children:l("No templates yet")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l("Create your first email template")}),r.jsx(V,{asChild:!0,children:r.jsx(Ot,{to:"/email-templates/new",children:l("Create Template")})})]})})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Email Templates")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your email templates")})]}),r.jsx(V,{size:"sm",asChild:!0,children:r.jsxs(Ot,{to:"/email-templates/new",children:[r.jsx(lo,{className:"h-4 w-4 mr-1"})," ",l("Create New")]})})]}),r.jsx(ee,{children:r.jsx(te,{className:"p-0",children:r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs",children:l("Name")}),r.jsx(Te,{className:"text-xs",children:l("Status")}),r.jsx(Te,{className:"text-xs",children:l("Created")}),r.jsx(Te,{className:"text-xs",children:l("Modified")}),r.jsx(Te,{className:"text-xs text-right",children:l("Actions")})]})}),r.jsx(nn,{children:o.map(m=>r.jsxs(Me,{children:[r.jsx(fe,{children:r.jsx(Ot,{to:`/email-templates/${m.id}/edit`,className:"text-primary hover:underline font-medium text-sm",children:m.title})}),r.jsx(fe,{children:r.jsxs(we,{value:u(m.status)?"publish":"draft",onValueChange:v=>d.mutate({id:m.id,status:v}),disabled:d.isPending,children:[r.jsx(ye,{className:`h-8 w-[150px] text-xs ${u(m.status)?"text-green-600 dark:text-green-500":"text-muted-foreground"}`,children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"publish",children:l("Published")}),r.jsx(z,{value:"draft",children:l("Draft")})]})]})}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:m.created_at}),r.jsx(fe,{className:"text-muted-foreground text-xs",children:m.modified_at}),r.jsxs(fe,{className:"text-right space-x-1",children:[r.jsx(V,{size:"sm",className:"text-xs",asChild:!0,children:r.jsx(Ot,{to:`/email-templates/${m.id}/edit`,children:l("Edit")})}),r.jsx(V,{size:"sm",variant:"outline",className:"text-xs",disabled:i.isPending,onClick:()=>i.mutate(m.id),children:l("Duplicate")}),r.jsx(V,{size:"sm",variant:"ghost",className:"text-destructive text-xs",onClick:()=>n(m.id),children:l("Delete")})]})]},m.id))})]})})}),r.jsx(_r,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Delete Template")}),r.jsx(sr,{children:l("Are you sure you want to delete this template? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(V,{variant:"destructive",disabled:c.isPending,onClick:()=>{t!==null&&c.mutate(t)},children:c.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function B3(){var m;const e=qe(),[t,n]=f.useState(null),[s,a]=f.useState(""),{data:o,isLoading:i}=Ce({queryKey:["db-stats"],queryFn:()=>Y("/database/stats")}),c=(m=o==null?void 0:o.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=ke({mutationFn:v=>Y("/database/clean",{method:"POST",body:JSON.stringify({scope:v})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(l("Records deleted successfully")),n(null)},onError:v=>{K.error(v.message),n(null)}}),u=ke({mutationFn:()=>Y("/database/reset",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(l("Database reset successfully")),n(null),a("")},onError:v=>{K.error(v.message),n(null),a("")}}),h=[{key:"all",title:l("Delete All Opt-Ins"),desc:l("Remove all opt-in records from the database"),icon:vn},{key:"confirmed",title:l("Delete Confirmed Only"),desc:l("Remove only confirmed opt-in records"),icon:aa},{key:"unconfirmed",title:l("Delete Unconfirmed Only"),desc:l("Remove only unconfirmed/pending opt-in records"),icon:Gn}];return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Database Management")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your opt-in database records")})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(qi,{className:"h-3 w-3"})," ",l("Total Records")]})}),r.jsx(te,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold",children:c.total})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(aa,{className:"h-3 w-3 text-success"})," ",l("Confirmed")]})}),r.jsx(te,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-success",children:c.confirmed})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Gn,{className:"h-3 w-3 text-warning"})," ",l("Unconfirmed")]})}),r.jsx(te,{children:i?r.jsx(ae,{className:"h-8 w-16"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:c.unconfirmed})})]})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-warning/10 text-warning rounded-lg px-4 py-3 text-sm",children:[r.jsx(Mt,{className:"h-4 w-4 shrink-0"}),l("These actions are irreversible. Please backup your database first.")]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:h.map(v=>r.jsx(ee,{className:"text-center",children:r.jsxs(te,{className:"pt-6 pb-4",children:[r.jsx(v.icon,{className:"h-8 w-8 mx-auto mb-3 text-muted-foreground"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:v.title}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:v.desc}),r.jsx(V,{variant:v.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(v.key),children:v.title})]})},v.key))}),r.jsx(ee,{className:"border-destructive/50",children:r.jsxs(te,{className:"pt-6 pb-4 text-center",children:[r.jsx(pd,{className:"h-8 w-8 mx-auto mb-3 text-destructive"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:l("Reset Database")}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:l("Drop and recreate all Double Opt-In tables. This removes all data permanently.")}),r.jsx(V,{variant:"destructive",size:"sm",className:"text-xs",onClick:()=>n("reset"),children:l("Reset Database")})]})})]}),r.jsx("div",{children:r.jsx(ee,{children:r.jsxs(te,{className:"flex items-start gap-2 p-4",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:l("For automated cleanup, configure auto-deletion in Settings.")}),r.jsxs("a",{href:"#/settings",className:"text-xs text-primary hover:underline flex items-center gap-1",children:[r.jsx(bP,{className:"h-3 w-3"})," ",l("Go to Settings")]})]})]})})})]}),r.jsx(_r,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(tr,{className:"max-w-[400px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Confirm Deletion")}),r.jsx(sr,{children:l("Are you sure you want to permanently delete these records? This action cannot be undone.")})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",onClick:()=>n(null),children:l("Cancel")}),r.jsx(V,{variant:"destructive",disabled:d.isPending,onClick:()=>{t&&d.mutate(t)},children:d.isPending?l("Deleting..."):l("Delete")})]})]})}),r.jsx(_r,{open:t==="reset",onOpenChange:()=>{n(null),a("")},children:r.jsxs(tr,{className:"max-w-[440px]",children:[r.jsxs(nr,{children:[r.jsx(rr,{className:"text-destructive",children:l("Reset Database")}),r.jsx(sr,{children:l("This will drop and recreate all Double Opt-In tables, permanently destroying all data. This cannot be undone.")})]}),r.jsxs("div",{className:"space-y-3 py-2",children:[r.jsx(X,{className:"text-sm",children:l("Type DELETE to confirm:")}),r.jsx(Pe,{value:s,onChange:v=>a(v.target.value),placeholder:"DELETE",className:"font-mono"})]}),r.jsxs(ys,{children:[r.jsx(V,{variant:"outline",onClick:()=>{n(null),a("")},children:l("Cancel")}),r.jsx(V,{variant:"destructive",disabled:s!=="DELETE"||u.isPending,onClick:()=>u.mutate(),children:u.isPending?l("Resetting..."):l("Reset Database")})]})]})})]})}function Rp({children:e,featureName:t=l("this feature"),requireAddon:n}){const{isProInstalled:s,isProLicenseActive:a}=tl(),o=xn();if(n!==void 0){if(ra(n))return r.jsx(r.Fragment,{children:e});const i=s&&a,c=l(i?"Addon Required":"Pro Bundle Required"),d=i?r.jsxs(r.Fragment,{children:[l("The")," ",r.jsx("span",{className:"font-medium",children:n})," ",se(l("addon isn't active on this site. Install and activate it to use %s."),t)]}):se(l("Activate your Double Opt-In Pro bundle to unlock %s."),t),u=i?{label:l("Open Addons Page"),to:"/addons"}:{label:l("Open License Page"),to:"/license"};return r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"blur-[3px] pointer-events-none select-none",children:e}),r.jsx("div",{className:"absolute inset-0 bg-card/85 flex items-center justify-center z-10",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-lg p-8 max-w-[440px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full pro-gradient flex items-center justify-center mx-auto mb-4",children:r.jsx(Nr,{className:"h-6 w-6 text-primary-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:c}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:d}),r.jsx(V,{onClick:()=>o(u.to),className:"w-full",children:u.label})]})})]})}return s&&a?r.jsx(r.Fragment,{children:e}):s&&!a?r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"blur-[3px] pointer-events-none select-none",children:e}),r.jsx("div",{className:"absolute inset-0 bg-card/85 flex items-center justify-center z-10",children:r.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-lg p-8 max-w-[440px] w-full text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-full pro-gradient flex items-center justify-center mx-auto mb-4",children:r.jsx(Nr,{className:"h-6 w-6 text-primary-foreground"})}),r.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:l("Activate Pro License")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:se(l("Enter your license key to unlock %s."),t)}),r.jsx(Pe,{placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono mb-3 text-center"}),r.jsx(V,{className:"w-full mb-2",children:l("Activate License")}),r.jsx("button",{onClick:()=>o("/license"),className:"text-xs text-muted-foreground hover:text-primary",children:l("Or enter your key on the License page")})]})})]}):null}var $n="Accordion",V3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ap,q3,H3]=id($n),[eu]=It($n,[H3,j1]),Op=j1(),RN=H.forwardRef((e,t)=>{const{type:n,...s}=e,a=s,o=s;return r.jsx(Ap.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(G3,{...o,ref:t}):r.jsx(Q3,{...a,ref:t})})});RN.displayName=$n;var[AN,W3]=eu($n),[ON,K3]=eu($n,{collapsible:!1}),Q3=H.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},collapsible:o=!1,...i}=e,[c,d]=Zt({prop:n,defaultProp:s!=null?s:"",onChange:a,caller:$n});return r.jsx(AN,{scope:e.__scopeAccordion,value:H.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:H.useCallback(()=>o&&d(""),[o,d]),children:r.jsx(ON,{scope:e.__scopeAccordion,collapsible:o,children:r.jsx(IN,{...i,ref:t})})})}),G3=H.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},...o}=e,[i,c]=Zt({prop:n,defaultProp:s!=null?s:[],onChange:a,caller:$n}),d=H.useCallback(h=>c((m=[])=>[...m,h]),[c]),u=H.useCallback(h=>c((m=[])=>m.filter(v=>v!==h)),[c]);return r.jsx(AN,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:u,children:r.jsx(ON,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(IN,{...o,ref:t})})})}),[Y3,tu]=eu($n),IN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:a,orientation:o="vertical",...i}=e,c=H.useRef(null),d=Ie(c,t),u=q3(n),m=ml(a)==="ltr",v=pe(e.onKeyDown,x=>{var C;if(!V3.includes(x.key))return;const j=x.target,b=u().filter(R=>{var T;return!((T=R.ref.current)!=null&&T.disabled)}),w=b.findIndex(R=>R.ref.current===j),y=b.length;if(w===-1)return;x.preventDefault();let p=w;const g=0,N=y-1,S=()=>{p=w+1,p>N&&(p=g)},k=()=>{p=w-1,p<g&&(p=N)};switch(x.key){case"Home":p=g;break;case"End":p=N;break;case"ArrowRight":o==="horizontal"&&(m?S():k());break;case"ArrowDown":o==="vertical"&&S();break;case"ArrowLeft":o==="horizontal"&&(m?k():S());break;case"ArrowUp":o==="vertical"&&k();break}const _=p%y;(C=b[_].ref.current)==null||C.focus()});return r.jsx(Y3,{scope:n,disabled:s,direction:a,orientation:o,children:r.jsx(Ap.Slot,{scope:n,children:r.jsx(ge.div,{...i,"data-orientation":o,ref:d,onKeyDown:s?void 0:v})})})}),nu="AccordionItem",[X3,Ip]=eu(nu),MN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,o=tu(nu,n),i=W3(nu,n),c=Op(n),d=In(),u=s&&i.value.includes(s)||!1,h=o.disabled||e.disabled;return r.jsx(X3,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(S1,{"data-orientation":o.orientation,"data-state":UN(u),...c,...a,ref:t,disabled:h,open:u,onOpenChange:m=>{m?i.onItemOpen(s):i.onItemClose(s)}})})});MN.displayName=nu;var DN="AccordionHeader",FN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=tu($n,n),o=Ip(DN,n);return r.jsx(ge.h3,{"data-orientation":a.orientation,"data-state":UN(o.open),"data-disabled":o.disabled?"":void 0,...s,ref:t})});FN.displayName=DN;var Mp="AccordionTrigger",LN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=tu($n,n),o=Ip(Mp,n),i=K3(Mp,n),c=Op(n);return r.jsx(Ap.ItemSlot,{scope:n,children:r.jsx(OO,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...c,...s,ref:t})})});LN.displayName=Mp;var $N="AccordionContent",zN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=tu($n,n),o=Ip($N,n),i=Op(n);return r.jsx(IO,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...i,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});zN.displayName=$N;function UN(e){return e?"open":"closed"}var Z3=RN,J3=MN,eI=FN,BN=LN,VN=zN;const tI=Z3,qN=f.forwardRef(({className:e,...t},n)=>r.jsx(J3,{ref:n,className:q("border-b",e),...t}));qN.displayName="AccordionItem";const HN=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(eI,{className:"flex",children:r.jsxs(BN,{ref:s,className:q("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsx(sa,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));HN.displayName=BN.displayName;const WN=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(VN,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:r.jsx("div",{className:q("pb-4 pt-0",e),children:t})}));WN.displayName=VN.displayName;const Dp=["success","invalid_email","invalid_nonce","save_failed","send_failed"],KN={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""},send_failed:{title:"",body:""}},QN={success:{label:l("Success — email sent"),hint:l("Shown after the user submits their email and the confirmation mail goes out.")},invalid_email:{label:l("Error — invalid email"),hint:l("Shown when the visitor entered an obviously malformed address.")},invalid_nonce:{label:l("Error — session expired"),hint:l("Shown when the form's CSRF nonce was rejected (form sat unsubmitted for too long).")},save_failed:{label:l("Error — save failed"),hint:l("Shown on rare DB write failures.")},send_failed:{label:l("Error — email not sent"),hint:l("Shown when the request was recorded but the email could not go out — most often because the subject or body below is still empty. This case used to show the success notice instead, so visitors waited for a mail that was never sent.")}},Fp=["column_subscription","column_signed_up","column_status","column_valid_until","badge_active","badge_cancelled","cancel_button","cancel_confirm","bulk_button","bulk_confirm","reactivate_button","reactivate_confirm","empty_state","confirm_yes","confirm_no"],GN=Fp.reduce((e,t)=>({...e,[t]:""}),{}),nI=[{group:l("Table columns"),items:[{key:"column_subscription"},{key:"column_signed_up"},{key:"column_status"},{key:"column_valid_until"}]},{group:l("Status badges"),items:[{key:"badge_active"},{key:"badge_cancelled"}]},{group:l("Action buttons"),items:[{key:"cancel_button",hint:l("Per-row button to cancel one subscription.")},{key:"bulk_button",hint:l("Button above the table, shown when 2+ active rows exist.")},{key:"reactivate_button",hint:l("Per-row button to re-activate a cancelled subscription.")}]},{group:l("Confirm modal — prompts"),items:[{key:"cancel_confirm",hint:l("Shown in the modal before cancelling a single subscription.")},{key:"bulk_confirm",hint:l("Shown in the modal before bulk-cancelling all subscriptions.")},{key:"reactivate_confirm",hint:l("Shown in the modal before re-activating a cancelled subscription.")}]},{group:l("Confirm modal — buttons"),items:[{key:"confirm_yes",hint:l("Confirms the action — red button. Shared across all three prompts.")},{key:"confirm_no",hint:l("Closes the modal without acting — neutral button. Shared across all three prompts.")}]},{group:l("Empty state"),items:[{key:"empty_state",hint:l("Shown when the email has no subscriptions on file.")}]}],Lp=["cancelled","cancelled_all","reactivated"],YN={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},$p={cancelled:{label:l("After cancelling one subscription"),hint:l("Green notice shown on the list page after the visitor clicks Cancel on a single row."),bodyPlaceholders:l("%s = form/subscription title")},cancelled_all:{label:l("After bulk-cancelling"),hint:l("Green notice shown after the visitor confirms the Cancel ALL action."),bodyPlaceholders:l("%d = number of cancelled subscriptions")},reactivated:{label:l("After re-activating"),hint:l("Green notice shown after the visitor clicks Reactivate on a previously cancelled subscription."),bodyPlaceholders:l("%s = form/subscription title")}},rI={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:KN,labels:GN,list_notices:YN,disabled_notice:{enabled:!1,title:"",body:""}},forms:[]};function sI(){var A,M,Z,xe;const e=ra("opt-out"),t=qe(),{data:n,isLoading:s}=Ce({queryKey:["optout-settings"],queryFn:()=>Y("/optout/settings"),enabled:e}),{data:a}=Ce({queryKey:["pages"],queryFn:()=>Y("/settings/pages")}),{data:o}=Ce({queryKey:["email-templates-list"],queryFn:()=>Y("/settings/email-templates-list")}),{data:i}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms"),enabled:e}),[c,d]=f.useState(rI),[u,h]=f.useState(!1),[m,v]=f.useState("");f.useEffect(()=>{var he,Ae,He,ut,_t,cr,Rs,zo,Sa,on,Rl,dr,du,uu,Ft,Dr;if(!(n!=null&&n.data)||u)return;const P=n.data,$=(_t=P._defaults)!=null?_t:{optout_page:Number((he=P.optout_page)!=null?he:0),optout_subject:String((Ae=P.optout_subject)!=null?Ae:""),optout_template:String((He=P.optout_template)!=null?He:""),optout_body:String((ut=P.optout_body)!=null?ut:"")},W=(cr=P._defaults)==null?void 0:cr.notices,oe=Dp.reduce((ur,wn)=>{var ln,Ca,As,Fr;return ur[wn]={title:String((Ca=(ln=W==null?void 0:W[wn])==null?void 0:ln.title)!=null?Ca:""),body:String((Fr=(As=W==null?void 0:W[wn])==null?void 0:As.body)!=null?Fr:"")},ur},{}),Se=(Rs=P._defaults)==null?void 0:Rs.labels,G=Fp.reduce((ur,wn)=>{var ln;return ur[wn]=String((ln=Se==null?void 0:Se[wn])!=null?ln:""),ur},{}),ve=(zo=P._defaults)==null?void 0:zo.list_notices,L=Lp.reduce((ur,wn)=>{var ln,Ca,As,Fr;return ur[wn]={title:String((Ca=(ln=ve==null?void 0:ve[wn])==null?void 0:ln.title)!=null?Ca:""),body:String((Fr=(As=ve==null?void 0:ve[wn])==null?void 0:As.body)!=null?Fr:"")},ur},{}),me=(Sa=P._defaults)==null?void 0:Sa.disabled_notice,U={enabled:!!((on=me==null?void 0:me.enabled)!=null&&on),title:String((Rl=me==null?void 0:me.title)!=null?Rl:""),body:String((dr=me==null?void 0:me.body)!=null?dr:"")};d({enabled:P._enabled!==!1,defaults:{optout_page:Number((du=$.optout_page)!=null?du:0),optout_subject:String((uu=$.optout_subject)!=null?uu:""),optout_template:String((Ft=$.optout_template)!=null?Ft:""),optout_body:String((Dr=$.optout_body)!=null?Dr:""),notices:oe,labels:G,list_notices:L,disabled_notice:U},forms:Array.isArray(P._forms)?P._forms:[]}),h(!0)},[n,u]);const x=f.useMemo(()=>{var $,W,oe;const P=($=n==null?void 0:n.data)==null?void 0:$._disabled_notice_defaults;return{title:String((W=P==null?void 0:P.title)!=null?W:""),body:String((oe=P==null?void 0:P.body)!=null?oe:"")}},[n]),j=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._labels_defaults;return P?Fp.reduce((W,oe)=>{var Se;return W[oe]=String((Se=P[oe])!=null?Se:""),W},{}):GN},[n]),b=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._list_notices_defaults;return P?Lp.reduce((W,oe)=>{var Se,G,ve,L;return W[oe]={title:String((G=(Se=P[oe])==null?void 0:Se.title)!=null?G:""),body:String((L=(ve=P[oe])==null?void 0:ve.body)!=null?L:"")},W},{}):YN},[n]),w=f.useMemo(()=>{var $;const P=($=n==null?void 0:n.data)==null?void 0:$._notices_defaults;return P?Dp.reduce((W,oe)=>{var Se,G,ve,L;return W[oe]={title:String((G=(Se=P[oe])==null?void 0:Se.title)!=null?G:""),body:String((L=(ve=P[oe])==null?void 0:ve.body)!=null?L:"")},W},{}):KN},[n]),y=f.useMemo(()=>{var W;const P=(W=i==null?void 0:i.data)!=null?W:{},$=[];for(const[oe,Se]of Object.entries(P))if(Se)for(const G of Se.forms){const ve=typeof G.id=="string"?G.id:String(G.id),L=Number(ve.split("_")[0]);L&&$.push({key:`${oe}_${ve}`,integration:oe,integrationName:Se.name,formId:L,restId:ve,title:G.title||`#${L}`})}return $},[i]),p=(P,$)=>{const W=y.find(oe=>oe.integration===P&&oe.formId===$);return W?`${W.integrationName} / ${W.title}`:`${P} / #${$}`},g=ke({mutationFn:()=>Y("/optout/page/generate",{method:"POST"}),onSuccess:P=>{t.invalidateQueries({queryKey:["pages"]}),d($=>({...$,defaults:{...$.defaults,optout_page:P.page_id}})),K.success(P.message)},onError:P=>{const $=(P==null?void 0:P.message)||l("Failed to generate opt-out page.");K.error($)}}),N=ke({mutationFn:P=>Y("/optout/settings",{method:"PUT",body:JSON.stringify({enabled:P.enabled,optout_page:P.defaults.optout_page,optout_subject:P.defaults.optout_subject,optout_template:P.defaults.optout_template,optout_body:P.defaults.optout_body,defaults:P.defaults,forms:P.forms})}),onSuccess:P=>{t.invalidateQueries({queryKey:["optout-settings"]}),K.success(P.message||l("Opt-out settings saved."))},onError:P=>{K.error(P.message||l("Failed to save settings."))}}),S=(A=a==null?void 0:a.data)!=null?A:[],k=(M=o==null?void 0:o.data)!=null?M:[];function _(P,$){d(W=>({...W,defaults:{...W.defaults,[P]:$}}))}function C(P,$,W){d(oe=>({...oe,defaults:{...oe.defaults,notices:{...oe.defaults.notices,[P]:{...oe.defaults.notices[P],[$]:W}}}}))}function R(P,$){d(W=>({...W,defaults:{...W.defaults,labels:{...W.defaults.labels,[P]:$}}}))}function T(P,$,W){d(oe=>({...oe,defaults:{...oe.defaults,list_notices:{...oe.defaults.list_notices,[P]:{...oe.defaults.list_notices[P],[$]:W}}}}))}function O(P,$){d(W=>({...W,defaults:{...W.defaults,disabled_notice:{...W.defaults.disabled_notice,[P]:$}}}))}function D(){if(!m)return;const P=y.find($=>$.key===m);if(P){if(c.forms.some($=>$.integration===P.integration&&$.form_id===P.formId)){K.warning(l("This form is already in the list."));return}d($=>({...$,forms:[...$.forms,{integration:P.integration,form_id:P.formId,enabled:null,optout_page:null,optout_subject:null,optout_template:null,optout_body:null}]})),v("")}}function B(P){d($=>({...$,forms:$.forms.filter((W,oe)=>oe!==P)}))}function I(P,$,W){d(oe=>({...oe,forms:oe.forms.map((Se,G)=>G===P?{...Se,[$]:W}:Se)}))}const re=f.useMemo(()=>{const P=S.find($=>$.id===c.defaults.optout_page);return P?P.title:l("(no page selected)")},[S,c.defaults.optout_page]),F=f.useMemo(()=>{if(!c.defaults.optout_template)return l("(inline body)");const P=k.find($=>String($.id)===String(c.defaults.optout_template));return P?P.title:c.defaults.optout_template},[k,c.defaults.optout_template]),ne=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(u0,{className:"h-6 w-6"}),l("Opt-Out Settings"),!e&&r.jsx(jp,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Configure the opt-out system for your subscribers")})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_300px] gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Re,{children:l("Turn the entire opt-out feature on or off without deactivating the addon plugin. Useful for pausing while debugging.")})]}),r.jsx(te,{children:s?r.jsx(ae,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"optout-enabled",className:"text-base",children:l("Opt-Out enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no opt-out mails are sent for any form — regardless of per-form overrides below.")})]}),r.jsx(rn,{id:"optout-enabled",checked:c.enabled,onCheckedChange:P=>d($=>({...$,enabled:P}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("When disabled")}),r.jsxs(Re,{children:[l("Controls what visitors see if the master toggle above is off. By default the opt-out form + list shortcodes render")," ",r.jsx("strong",{children:l("nothing")})," ",l("when the feature is paused. Turn this on to display a configurable amber notice instead — useful for telling people the feature is temporarily unavailable rather than letting them wonder why the page is blank.")]})]}),r.jsx(te,{className:"space-y-4",children:s?r.jsx(ae,{className:"h-32 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"disabled-notice-enabled",className:"text-base",children:l("Show the notice when disabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("Only relevant when the master toggle above is off — has no effect while opt-out is active.")})]}),r.jsx(rn,{id:"disabled-notice-enabled",checked:c.defaults.disabled_notice.enabled,onCheckedChange:P=>O("enabled",P)})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:"disabled-notice-title",children:l("Title")}),r.jsx(Pe,{id:"disabled-notice-title",className:"mt-1 h-9 text-xs",placeholder:x.title||l("Default title"),value:c.defaults.disabled_notice.title,onChange:P=>O("title",P.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:"disabled-notice-body",children:l("Body")}),r.jsx(Tr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:x.body||l("Default body"),value:c.defaults.disabled_notice.body,onChange:P=>O("body",P.target.value)})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Opt-Out Page (default)")}),r.jsxs(Re,{children:[l("Page that hosts the opt-out form and list — applies to every form unless overridden below. Use")," ",r.jsx("strong",{children:l("Generate")})," ",l("to create one in a single click with both shortcodes already in place.")]})]}),r.jsxs(te,{children:[s?r.jsx(ae,{className:"h-10 w-full"}):r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:c.defaults.optout_page?String(c.defaults.optout_page):"",onValueChange:P=>_("optout_page",P?Number(P):0),children:[r.jsx(ye,{className:"flex-1",children:r.jsx(Ne,{placeholder:l("Select a page...")})}),r.jsx(be,{children:S.map(P=>r.jsx(z,{value:P.id.toString(),children:P.title},P.id))})]}),r.jsxs(V,{type:"button",variant:"outline",onClick:()=>g.mutate(),disabled:g.isPending,title:l("Create a new page with the opt-out shortcodes"),children:[r.jsx(fh,{className:"h-4 w-4 mr-1.5"}),g.isPending?l("Generating..."):l("Generate")]})]}),c.defaults.optout_page>0&&r.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-xs",children:[r.jsxs("a",{href:`${window.location.origin}/?page_id=${c.defaults.optout_page}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(Wi,{className:"h-3 w-3"}),l("Open page")]}),r.jsxs("a",{href:`${kt().adminUrl.replace(/\/+$/,"")}/post.php?post=${c.defaults.optout_page}&action=edit`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-muted-foreground hover:text-foreground",children:[r.jsx(hd,{className:"h-3 w-3"}),l("Edit page")]})]})]})]}),r.jsxs(ee,{children:[r.jsx(de,{children:r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(c0,{className:"h-4 w-4"}),l("Shortcode Reference")]})}),r.jsxs(te,{className:"space-y-3",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-form]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:l("Display the opt-out request form")})]}),r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("code",{className:"bg-muted px-2 py-1 rounded text-sm font-mono whitespace-nowrap",children:"[f12-cf7-doubleoptin-optout-list]"}),r.jsx("span",{className:"text-sm text-muted-foreground",children:l("Display the opt-in/opt-out status list")})]})]})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Opt-Out Email (defaults)")}),r.jsx(Re,{children:l("Subject + body for the confirmation email. Per-form overrides below take precedence over these defaults.")})]}),r.jsx(te,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-40 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"optout-subject",children:l("Subject")}),r.jsx(Pe,{id:"optout-subject",value:c.defaults.optout_subject,onChange:P=>_("optout_subject",P.target.value),placeholder:l("Opt-out Confirmation")})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"optout-template",children:l("Template")}),r.jsxs(we,{value:c.defaults.optout_template||"__none__",onValueChange:P=>_("optout_template",P==="__none__"?"":P),children:[r.jsx(ye,{id:"optout-template",children:r.jsx(Ne,{placeholder:l("None (use body below)")})}),r.jsxs(be,{children:[r.jsx(z,{value:"__none__",children:l("None")}),k.map(P=>r.jsx(z,{value:String(P.id),children:P.title},P.id))]})]})]}),c.defaults.optout_template?r.jsx(oI,{templateId:c.defaults.optout_template,title:(xe=(Z=k.find(P=>String(P.id)===String(c.defaults.optout_template)))==null?void 0:Z.title)!=null?xe:c.defaults.optout_template}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"optout-body",children:l("Email Body")}),r.jsx(Tr,{id:"optout-body",value:c.defaults.optout_body,onChange:P=>_("optout_body",P.target.value),className:"font-mono min-h-[300px]",placeholder:l("HTML email body...")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Available placeholder:")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"[doubleoptin_optout_url]"})]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Notice texts")}),r.jsxs(Re,{children:[l("Messages shown to the visitor after they submit the opt-out form (success + error states). Leave a field empty to use the built-in default. With WPML active, each text appears under")," ",r.jsx("strong",{children:l('String Translation → Domain "double-opt-in-opt-out"')})," ",l("so you can translate it per language; without WPML the text is shown as-is.")]})]}),r.jsx(te,{className:"space-y-5",children:s?r.jsx(ae,{className:"h-64 w-full"}):Dp.map(P=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:QN[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:QN[P].hint})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`notice-${P}-title`,children:l("Title")}),r.jsx(Pe,{id:`notice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:w[P].title||l("Default title"),value:c.defaults.notices[P].title,onChange:$=>C(P,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`notice-${P}-body`,children:l("Body")}),r.jsx(Tr,{id:`notice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:w[P].body||l("Default body"),value:c.defaults.notices[P].body,onChange:$=>C(P,"body",$.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("List page labels")}),r.jsx(Re,{children:l("Every user-facing string on the opt-out list page is configurable here — table columns, button labels, the confirm-dialog prompts shown before cancelling / bulk-cancelling / re-activating, plus the empty state. Leave empty to use the built-in default. WPML String Translation picks up custom values automatically.")})]}),r.jsx(te,{children:s?r.jsx(ae,{className:"h-64 w-full"}):r.jsx(tI,{type:"multiple",className:"w-full",children:nI.map(P=>r.jsxs(qN,{value:P.group,children:[r.jsx(HN,{className:"text-sm",children:P.group}),r.jsx(WN,{children:r.jsx("div",{className:"space-y-3 pt-2",children:P.items.map(({key:$,hint:W})=>r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`label-${$}`,children:$}),r.jsx(Pe,{id:`label-${$}`,className:"mt-1 h-9 text-xs",placeholder:j[$]||l("Default"),value:c.defaults.labels[$],onChange:oe=>R($,oe.target.value)}),W&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:W})]},$))})})]},P.group))})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("List page notices")}),r.jsxs(Re,{children:[l("Success notices rendered above the table after the visitor cancels, bulk-cancels, or re-activates a subscription. Some bodies accept")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%s"})," /",r.jsx("code",{className:"bg-muted px-1 rounded",children:"%d"})," ",l("placeholders — see each entry's hint.")]})]}),r.jsx(te,{className:"space-y-5",children:s?r.jsx(ae,{className:"h-64 w-full"}):Lp.map(P=>r.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:$p[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:$p[P].hint}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:[r.jsx("strong",{children:l("Placeholder:")})," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:$p[P].bodyPlaceholders})]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-[1fr_2fr]",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`listnotice-${P}-title`,children:l("Title")}),r.jsx(Pe,{id:`listnotice-${P}-title`,className:"mt-1 h-9 text-xs",placeholder:b[P].title||l("Default title"),value:c.defaults.list_notices[P].title,onChange:$=>T(P,"title",$.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",htmlFor:`listnotice-${P}-body`,children:l("Body")}),r.jsx(Tr,{id:`listnotice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:b[P].body||l("Default body"),value:c.defaults.list_notices[P].body,onChange:$=>T(P,"body",$.target.value)})]})]})]},P))})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Per-form overrides")}),r.jsx(Re,{children:l('Override the defaults above for specific forms — e.g. a different confirmation mail per newsletter, or fully disabling opt-out for a transactional form. Empty fields inherit from defaults; the on/off switch can be left on "Inherit" or set explicitly per form.')})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:m,onValueChange:v,children:[r.jsx(ye,{className:"flex-1",children:r.jsx(Ne,{placeholder:l("Select a form to add…")})}),r.jsx(be,{children:y.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):y.map(P=>r.jsxs(z,{value:P.key,children:[P.integrationName," / ",P.title]},P.key))})]}),r.jsxs(V,{onClick:D,disabled:!m,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),c.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("No per-form overrides yet — every form uses the defaults above. Add a form to override its opt-out mail, page, or to disable opt-out for it entirely.")})]}):r.jsx("div",{className:"space-y-4",children:c.forms.map((P,$)=>r.jsx(aI,{entry:P,label:p(P.integration,P.form_id),pages:S,templates:k,defaultPageLabel:re,defaultTemplateLabel:F,defaultSubject:c.defaults.optout_subject,onChange:(W,oe)=>I($,W,oe),onRemove:()=>B($)},`${P.integration}_${P.form_id}`))})]})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r.jsx(V,{onClick:()=>N.mutate(c),disabled:N.isPending,children:N.isPending?l("Saving..."):l("Save")})})]}),r.jsx("div",{className:"space-y-6",children:r.jsxs(ee,{children:[r.jsx(de,{children:r.jsx(ue,{className:"text-sm",children:l("Hooks Reference")})}),r.jsx(te,{children:r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Filter")}),r.jsx("code",{className:"block bg-muted px-2 py-1 rounded text-xs font-mono",children:"f12_cf7_doubleoptin_optout_body"}),r.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:l("Modify the opt-out email body before sending.")})]})})]})})]})]});return r.jsx(Rp,{featureName:l("Opt-Out System"),requireAddon:"opt-out",children:ne})}function aI({entry:e,label:t,pages:n,templates:s,defaultPageLabel:a,defaultTemplateLabel:o,defaultSubject:i,onChange:c,onRemove:d}){var h,m;const u=e.enabled===null?"__inherit":e.enabled?"yes":"no";return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:t}),r.jsx(V,{variant:"ghost",size:"sm",onClick:d,title:l("Remove this override"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Opt-out for this form")}),r.jsxs(we,{value:u,onValueChange:v=>{v==="__inherit"?c("enabled",null):v==="yes"?c("enabled",!0):c("enabled",!1)},children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:l("Inherit (active)")}),r.jsx(z,{value:"yes",children:l("Enabled for this form")}),r.jsx(z,{value:"no",children:l("Disabled for this form")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:l('"Disabled" suppresses opt-out invitation mails for this form. Existing opt-out hashes still resolve.')})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Opt-out page")}),r.jsxs(we,{value:e.optout_page?String(e.optout_page):"__inherit",onValueChange:v=>c("optout_page",v==="__inherit"?null:Number(v)),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a)}),n.map(v=>r.jsx(z,{value:v.id.toString(),children:v.title},v.id))]})]})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Subject override")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:se(l("Inherit (%s)"),i||l("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:v=>c("optout_subject",v.target.value===""?null:v.target.value)})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Template override")}),r.jsxs(we,{value:e.optout_template||"__inherit",onValueChange:v=>c("optout_template",v==="__inherit"?null:v),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),o)}),s.map(v=>r.jsx(z,{value:String(v.id),children:v.title},v.id))]})]})]}),!e.optout_template&&r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx(X,{className:"text-xs",children:l("Body override")}),r.jsx(Tr,{className:"mt-1 text-xs font-mono min-h-[120px]",placeholder:l("Inherit from defaults — leave empty to use the default body."),value:(m=e.optout_body)!=null?m:"",onChange:v=>c("optout_body",v.target.value===""?null:v.target.value)})]})]})]})}function oI({templateId:e,title:t}){const n=e?`#/email-templates/${encodeURIComponent(String(e))}/edit`:null;return r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{children:l("Email Body")}),r.jsxs("div",{className:"rounded-lg border bg-gradient-to-br from-primary to-primary/70 text-primary-foreground p-5 flex items-start gap-4",children:[r.jsx("div",{className:"rounded-full bg-primary-foreground/15 p-2 shrink-0",children:r.jsx(An,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-semibold mb-1",children:l("Custom template selected")}),r.jsx("p",{className:"text-sm text-primary-foreground/80 mb-3",children:se(l("%s was built in the email designer. Edit the message body there — this textarea is bypassed for custom templates."),t)}),n?r.jsx(V,{asChild:!0,variant:"secondary",size:"sm",children:r.jsxs("a",{href:n,children:[r.jsx(hd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Edit in Email Designer")]})}):r.jsx(V,{variant:"secondary",size:"sm",disabled:!0,children:l("Editor link unavailable")})]})]})]})}const XN=[{value:"subscriber",label:l("Subscriber")},{value:"contributor",label:l("Contributor")},{value:"author",label:l("Author")},{value:"editor",label:l("Editor")}],zp={all:{title:l("All forms (every confirmation creates a user)"),hint:l("Every DOI-enabled form on the site auto-creates a user on confirmation. Use this only if you really mean it — auto user creation is a privileged action.")},selected:{title:l("Only selected forms (opt-in list — default)"),hint:l("Auto-creation runs ONLY on the forms in the list below. The safe default — drift here from `all` would silently create users from every form.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form auto-creates EXCEPT those in the list. Symmetric to `all` with an exclusion list.")}},iI={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function lI(e,t,n,s){const a=l(s==="skip"?"If the email already belongs to a user, no action is taken.":s==="update_meta"?"If the email already belongs to a user, their meta fields get updated from the field map (role stays unchanged).":"If the email already belongs to a user, the confirmation is logged as an error and no user is updated.");return e==="all"?{headline:se(l("Auto-create a %s on every confirmation"),t),detail:se(l("Every DOI form on the site triggers user creation on confirm. %s"),a)}:e==="selected"?n===0?{headline:l("No forms in scope — auto user creation is currently inactive"),detail:l("mode=selected with an empty list means no form is in scope. Add at least one form below to enable.")}:{headline:se(ww("Auto-create a %1$s on confirmations from the %2$s listed form","Auto-create a %1$s on confirmations from the %2$s listed forms",n),t,n),detail:se(l("Only the listed forms trigger user creation. Forms not in the list are completely unaffected. %s"),a)}:n===0?{headline:se(l("Auto-create a %s on every confirmation"),t),detail:se(l("No exclusions configured — every form triggers user creation. %s"),a)}:{headline:se(l("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),t,n),detail:se(ww("%1$s form is excluded; everything else triggers user creation. %2$s","%1$s forms are excluded; everything else triggers user creation. %2$s",n),n,a)}}function cI(){const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["user-creation-settings"],queryFn:()=>Y("/user-creation/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms")}),[a,o]=f.useState(iI),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,k,_,C,R,T,O,D;if(!t||i)return;const g=(N=t.data)!=null?N:t;o({enabled:g.enabled!==!1,mode:(S=g.mode)!=null?S:"selected",defaults:{role:(_=(k=g.defaults)==null?void 0:k.role)!=null?_:"subscriber",send_welcome_mail:((C=g.defaults)==null?void 0:C.send_welcome_mail)!==!1,force_password_change:((R=g.defaults)==null?void 0:R.force_password_change)===!0,duplicate_policy:(O=(T=g.defaults)==null?void 0:T.duplicate_policy)!=null?O:"skip",field_map:(D=g.defaults)!=null&&D.field_map&&typeof g.defaults.field_map=="object"?g.defaults.field_map:{}},conditions:Array.isArray(g.conditions)?g.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var S;const g=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[k,_]of Object.entries(g))if(_)for(const C of _.forms){const R=Number(typeof C.id=="string"?C.id.split("_")[0]:C.id);R&&N.push({key:`${k}_${R}`,integration:k,integrationName:_.name,formId:R,title:C.title||`#${R}`})}return N},[s]),m=(g,N)=>{const S=h.find(k=>k.integration===g&&k.formId===N);return S?`${S.integrationName} / ${S.title}`:`${g} / #${N}`},v=ke({mutationFn:()=>Y("/user-creation/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("User Creation settings saved.")),e.invalidateQueries({queryKey:["user-creation-settings"]})},onError:g=>{K.error(g.message||l("Failed to save User Creation settings."))}});function x(g,N){o(S=>({...S,defaults:{...S.defaults,[g]:N}}))}function j(){if(!d)return;const g=h.find(N=>N.key===d);if(g){if(a.conditions.some(N=>N.integration===g.integration&&N.form_id===g.formId)){K.warning(l("This form is already in the list."));return}o(N=>({...N,conditions:[...N.conditions,{integration:g.integration,form_id:g.formId,role:null,send_welcome_mail:null,duplicate_policy:null,field_map:null}]})),u("")}}function b(g){o(N=>({...N,conditions:N.conditions.filter((S,k)=>k!==g)}))}function w(g,N,S){o(k=>({...k,conditions:k.conditions.map((_,C)=>C===g?{..._,[N]:S}:_)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const y=lI(a.mode,a.defaults.role,a.conditions.length,a.defaults.duplicate_policy),p=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(h0,{className:"h-6 w-6"}),l("Auto User Creation")]}),r.jsx("p",{className:"text-muted-foreground",children:l("Create a WordPress user automatically after opt-in confirmation")})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Re,{children:l("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause auto-creation temporarily (e.g. while debugging a form). All settings below are preserved while the feature is off.")})]}),r.jsx(te,{children:r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"uc-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, no users are auto-created — confirmations still complete normally, just without a WP user being made.")})]}),r.jsx(rn,{id:"uc-enabled",checked:a.enabled,onCheckedChange:g=>o(N=>({...N,enabled:g}))})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("How User Creation applies")}),r.jsx(Re,{children:l("Pick whether every confirmation creates a user, only confirmations on selected forms, or every form except the ones you exclude. The defaults below apply to forms in scope; per-form entries override.")})]}),r.jsxs(te,{className:"space-y-3",children:[Object.keys(zp).map(g=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===g?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"uc-mode",value:g,checked:a.mode===g,onChange:()=>o(N=>({...N,mode:g})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:zp[g].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:zp[g].hint})]})]},g)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Default settings")}),r.jsx(Re,{children:l("Applied to every form in scope. Per-form entries can override individually.")})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"uc-role",children:l("Default role")}),r.jsxs(we,{value:a.defaults.role,onValueChange:g=>x("role",g),children:[r.jsx(ye,{id:"uc-role",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsx(be,{children:XN.map(g=>r.jsx(z,{value:g.value,children:g.label},g.value))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Administrator is excluded for security — no role-escalation via opt-in.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"uc-policy",children:l("Duplicate user policy")}),r.jsxs(we,{value:a.defaults.duplicate_policy,onValueChange:g=>x("duplicate_policy",g),children:[r.jsx(ye,{id:"uc-policy",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"skip",children:l("Skip (do nothing)")}),r.jsx(z,{value:"update_meta",children:l("Update meta of existing user")}),r.jsx(z,{value:"error",children:l("Treat as error")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:"update_meta"})," ",l("applies the field map to the existing user but never changes their role (privilege guard).")]})]})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"uc-welcome",children:l("Send WP password-reset email")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Standard WP welcome flow — let the new user set their own password. Disable if you handle onboarding mails elsewhere.")})]}),r.jsx(rn,{id:"uc-welcome",checked:a.defaults.send_welcome_mail,onCheckedChange:g=>x("send_welcome_mail",g)})]}),r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"uc-force-pw",children:l("Force password change on first login")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("On their next login the user lands on the password-reset page instead of wp-admin. Catches the rare case where someone logs in before opening the welcome mail. One-shot.")})]}),r.jsx(rn,{id:"uc-force-pw",checked:a.defaults.force_password_change,onCheckedChange:g=>x("force_password_change",g)})]}),r.jsx("div",{className:"rounded-lg border border-blue-200 bg-blue-50/50 p-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx(yt,{className:"h-4 w-4 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs text-muted-foreground leading-relaxed",children:[r.jsx("span",{className:"font-medium text-foreground",children:l("Want to block disposable-email domains?")})," ",l("Install the")," ",r.jsx("strong",{children:"Domain Blocklist"})," ",l("addon. It intercepts before any opt-in record or confirmation mail — cleaner than skipping just the user-create step.")," ",l("For one-off custom rules, third-party code can subscribe to the")," ",r.jsx("code",{className:"px-1 mx-0.5 bg-background rounded text-[10px]",children:"f12_doi_user_registration_should_create"})," ",l("filter.")]})]})})]})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:a.mode==="selected"?l("Forms to apply auto-creation to"):a.mode==="all_except"?l("Forms to exclude from auto-creation"):l("Per-form overrides")}),r.jsxs(Re,{children:[a.mode==="all"&&l("All forms are in scope. Add entries here to override the defaults for specific forms."),a.mode==="selected"&&l("Only forms in this list create users on confirmation."),a.mode==="all_except"&&l("These forms are exempt — they confirm normally but no WP user is created.")]})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:d,onValueChange:u,children:[r.jsx(ye,{className:"flex-1",children:r.jsx(Ne,{placeholder:l("Select a form to add…")})}),r.jsx(be,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(g=>r.jsxs(z,{value:g.key,children:[g.integrationName," / ",g.title]},g.key))})]}),r.jsxs(V,{onClick:j,disabled:!d,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:a.mode==="selected"?l("No forms in the list yet. Auto user creation is currently inactive — add at least one form above."):a.mode==="all_except"?l("No exclusions configured. Every form creates users — same as mode=all."):l("No per-form overrides. Defaults apply to every form.")})]}):r.jsx("div",{className:"space-y-3",children:a.conditions.map((g,N)=>{var S,k;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(g.integration,g.form_id)}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>b(N),title:l("Remove from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),a.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 mt-3",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override role")}),r.jsxs(we,{value:(S=g.role)!=null?S:"__inherit",onValueChange:_=>w(N,"role",_==="__inherit"?null:_),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a.defaults.role)}),XN.map(_=>r.jsx(z,{value:_.value,children:_.label},_.value))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override duplicate policy")}),r.jsxs(we,{value:(k=g.duplicate_policy)!=null?k:"__inherit",onValueChange:_=>w(N,"duplicate_policy",_==="__inherit"?null:_),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a.defaults.duplicate_policy)}),r.jsx(z,{value:"skip",children:l("Skip")}),r.jsx(z,{value:"update_meta",children:l("Update meta")}),r.jsx(z,{value:"error",children:l("Error")})]})]})]})]})]},`${g.integration}_${g.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(V,{onClick:()=>v.mutate(),disabled:v.isPending,children:[v.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save User Creation settings")]})})]})]}),r.jsx(ee,{className:"border-blue-200 bg-blue-50/50",children:r.jsx(te,{className:"pt-6",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx(yt,{className:"h-5 w-5 text-blue-600 shrink-0 mt-0.5"}),r.jsxs("div",{className:"space-y-2 text-sm",children:[r.jsx("p",{children:l("Auto-created users get a random password. The standard WordPress password-reset email is sent automatically (toggle above to disable).")}),r.jsxs("p",{children:[l("For field mapping (form fields → WP user meta), use the")," ",r.jsx("code",{className:"px-1 mx-1 bg-background rounded",children:"f12_doi_user_registration_form_fields"})," ",l("filter — see the addon documentation.")]})]})]})})})]});return r.jsx(Rp,{featureName:l("Auto User Creation"),requireAddon:"user-registration",children:p})}const dI=[{value:"__none__",label:l("None")},{value:"cleverreach",label:"CleverReach"}];function uI(){var u;const e=ra("cleverreach"),t=qe(),{data:n,isLoading:s}=Ce({queryKey:["api-settings"],queryFn:()=>Y("/api/settings"),enabled:e}),[a,o]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&o(n.data)},[n]);const i=ke({mutationFn:h=>Y("/api/settings",{method:"PUT",body:JSON.stringify(h)}),onSuccess:h=>{t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||l("API settings saved."))},onError:h=>{K.error(h.message||l("Failed to save settings."))}}),c=ke({mutationFn:()=>Y("/cleverreach/connect",{method:"POST"}),onSuccess:h=>{var m;(m=h.data)!=null&&m.redirect_url?window.location.href=h.data.redirect_url:(t.invalidateQueries({queryKey:["api-settings"]}),K.success(h.message||l("Connected to CleverReach.")))},onError:h=>{K.error(h.message||l("Failed to connect to CleverReach."))}}),d=r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[r.jsx(lh,{className:"h-6 w-6"}),l("API Integrations"),!e&&r.jsx(jp,{})]}),r.jsx("p",{className:"text-muted-foreground",children:l("Connect external services to your Double Opt-In system")})]}),r.jsxs("div",{className:"max-w-[600px] space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("API Endpoint")}),r.jsx(Re,{children:l("Select the external service to connect.")})]}),r.jsx(te,{children:s?r.jsx(ae,{className:"h-10 w-full"}):r.jsxs(we,{value:a.service||"__none__",onValueChange:h=>o(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(ye,{children:r.jsx(Ne,{placeholder:l("None")})}),r.jsx(be,{children:dI.map(h=>r.jsx(z,{value:h.value,children:h.label},h.value))})]})})]}),a.service==="cleverreach"&&r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:"CleverReach"}),r.jsx(Re,{children:l("Configure your CleverReach API credentials.")})]}),r.jsx(te,{className:"space-y-4",children:s?r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"}),r.jsx(ae,{className:"h-10 w-full"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"cr-client-id",children:l("Client ID")}),r.jsx(Pe,{id:"cr-client-id",value:a.cleverreach_client_id,onChange:h=>o(m=>({...m,cleverreach_client_id:h.target.value})),placeholder:l("Enter Client ID")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[l("CleverReach REST API settings"),r.jsx(Wi,{className:"h-3 w-3"})]})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(X,{htmlFor:"cr-client-secret",children:l("Client Secret")}),r.jsx(Pe,{id:"cr-client-secret",type:"password",value:(u=a.cleverreach_client_secret)!=null?u:"",onChange:h=>o(m=>({...m,cleverreach_client_secret:h.target.value})),placeholder:l("Enter Client Secret")}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Get credentials at")," ",r.jsxs("a",{href:"https://rest.cleverreach.com/clients/index.html",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[l("CleverReach REST API settings"),r.jsx(Wi,{className:"h-3 w-3"})]})]})]}),r.jsx(ee,{className:"border-dashed",children:r.jsx(te,{className:"pt-4",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:l("Connection Status")}),r.jsx(Ge,{variant:a.cleverreach_connected?"default":"secondary",className:a.cleverreach_connected?"bg-green-100 text-green-800 hover:bg-green-100":"bg-amber-100 text-amber-800 hover:bg-amber-100",children:a.cleverreach_connected?l("Connected"):l("Not Connected")}),a.cleverreach_connected&&a.cleverreach_expires_at&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",a.cleverreach_expires_at]})]}),r.jsx(V,{variant:a.cleverreach_connected?"outline":"default",size:"sm",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Connecting..."):a.cleverreach_connected?l("Reconnect"):l("Connect to CleverReach")})]})})})]})})]}),r.jsx(V,{onClick:()=>i.mutate(a),disabled:i.isPending||s,children:i.isPending?l("Saving..."):l("Save")})]})]});return r.jsx(Rp,{featureName:l("API Integrations"),requireAddon:"cleverreach",children:d})}function fI(){var d;const e=qe(),[t,n]=f.useState(""),{data:s,isLoading:a}=Ce({queryKey:["license"],queryFn:()=>Y("/license")}),o=s==null?void 0:s.data,i=ke({mutationFn:u=>Y("/license/activate",{method:"POST",body:JSON.stringify({key:u})}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||l("License activated successfully.")),n("")},onError:u=>{K.error(u.message||l("Failed to activate license."))}}),c=ke({mutationFn:()=>Y("/license/deactivate",{method:"POST"}),onSuccess:u=>{e.invalidateQueries({queryKey:["license"]}),K.success(u.message||l("License deactivated."))},onError:u=>{K.error(u.message||l("Failed to deactivate license."))}});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("License")}),r.jsx("p",{className:"text-muted-foreground",children:l("Manage your Double Opt-In Pro license")})]}),r.jsxs("div",{className:"max-w-[600px] mx-auto space-y-6",children:[r.jsxs(ee,{children:[r.jsxs(de,{className:"text-center",children:[r.jsx("div",{className:"mx-auto mb-2",children:r.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center mx-auto",children:r.jsx(dh,{className:"h-6 w-6 text-muted-foreground"})})}),r.jsx(ue,{children:l("License Status")})]}),r.jsx(te,{className:"text-center space-y-3",children:a?r.jsxs("div",{className:"space-y-2",children:[r.jsx(ae,{className:"h-6 w-24 mx-auto"}),r.jsx(ae,{className:"h-4 w-40 mx-auto"})]}):r.jsxs(r.Fragment,{children:[r.jsx(Ge,{variant:o!=null&&o.isActive?"default":"secondary",className:o!=null&&o.isActive?"bg-green-100 text-green-800 hover:bg-green-100":"",children:o!=null&&o.isActive?l("Active"):l("Inactive")}),(o==null?void 0:o.isActive)&&r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:o.licenseType}),o.expiresAt&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",o.expiresAt]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(d0,{className:"h-4 w-4"}),l("License Key")]}),r.jsx(Re,{children:o!=null&&o.isActive?l("Your license is currently active."):l("Enter your license key to activate Pro features.")})]}),r.jsx(te,{children:o!=null&&o.isActive?r.jsxs("div",{className:"space-y-3",children:[r.jsx(Pe,{value:o.key||"",readOnly:!0,className:"font-mono text-center bg-muted"}),r.jsx(V,{variant:"destructive",className:"w-full",onClick:()=>c.mutate(),disabled:c.isPending,children:c.isPending?l("Deactivating..."):l("Deactivate")})]}):r.jsxs("div",{className:"space-y-3",children:[r.jsx(Pe,{value:t,onChange:u=>n(u.target.value),placeholder:"XXXX-XXXX-XXXX-XXXX",className:"font-mono text-center"}),r.jsx(V,{className:"w-full",onClick:()=>i.mutate(t),disabled:!t.trim()||i.isPending,children:i.isPending?l("Activating..."):l("Activate")})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Included modules")}),r.jsx(Re,{children:l("Every module below is unlocked by your Pro bundle license. A check means it is installed and active on this site.")})]}),r.jsx(te,{children:a?r.jsx("div",{className:"space-y-2",children:Array.from({length:6}).map((u,h)=>r.jsx(ae,{className:"h-5 w-full"},h))}):r.jsx("ul",{className:"space-y-2",children:((d=o==null?void 0:o.features)!=null?d:[]).map(u=>r.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[u.available?r.jsx(ds,{className:"h-4 w-4 text-green-600 shrink-0"}):r.jsx(Nr,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsx("span",{className:u.available?"":"text-muted-foreground",children:u.name})]},u.slug))})})]})]}),r.jsx(er,{id:"license.section",data:{license:o}})]})}const ZN=new Set(["avada","elementor","wpforms","gravity-forms"]);function mI(){var v,x;const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["addons-catalog"],queryFn:()=>Y("/addons/catalog")}),{data:s}=Ce({queryKey:["license"],queryFn:()=>Y("/license")}),a=s==null?void 0:s.data,o=(v=t==null?void 0:t.entries)!=null?v:[],i=(x=t==null?void 0:t.hasBundleLicense)!=null?x:!1,c=kt(),d=ke({mutationFn:j=>Y(`/addons/${j}/activate`,{method:"POST"}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=o.find(g=>g.id===b))==null?void 0:y.name)!=null?p:b;K.success(se(l("%s activated."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{K.error(j.message||l("Failed to activate addon."))}}),u=ke({mutationFn:j=>Y(`/addons/${j}/deactivate`,{method:"POST"}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=o.find(g=>g.id===b))==null?void 0:y.name)!=null?p:b;K.success(se(l("%s deactivated."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{K.error(j.message||l("Failed to deactivate addon."))}}),h=ke({mutationFn:j=>Y("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:j})}),onSuccess:(j,b)=>{var y,p;const w=(p=(y=o.find(g=>g.id===b))==null?void 0:y.name)!=null?p:b;K.success(se(l("%s installed."),w)),e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})},onError:j=>{K.error(j.message||l("Failed to install addon."))}});f.useEffect(()=>{const j=()=>{e.invalidateQueries({queryKey:["addons-catalog"]}),e.invalidateQueries({queryKey:["addons-manifest"]})};return window.addEventListener("f12-doi:addons-changed",j),()=>window.removeEventListener("f12-doi:addons-changed",j)},[e]);const m=o.reduce((j,b)=>(j[b.status]++,j),{active:0,inactive:0,not_installed:0});return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Addons")}),r.jsx("p",{className:"text-muted-foreground",children:l("Extend Double Opt-In with official addons. Bundled addons can be installed in one click once your Pro license is active.")})]}),r.jsx(er,{id:"addons.list",data:{entries:o,license:a,hasLicense:i}}),r.jsxs(ee,{children:[r.jsx(de,{children:r.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[r.jsxs("div",{children:[r.jsxs(ue,{className:"flex items-center gap-2",children:[r.jsx(oo,{className:"h-5 w-5"}),l("Addon catalog")]}),r.jsx(Re,{children:n?l("Loading…"):se(l("%1$s active · %2$s installed · %3$s available"),m.active,m.inactive,m.not_installed)})]}),!i&&!n&&r.jsx(V,{asChild:!0,size:"sm",variant:"default",children:r.jsxs("a",{href:"#/license",children:[r.jsx(Nr,{className:"h-4 w-4 mr-1"}),l("Activate Pro")]})})]})}),r.jsx(te,{children:n?r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((j,b)=>r.jsx(ae,{className:"h-44 w-full"},b))}):o.length===0?r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No addons in the catalog. Check that the Double Opt-In core is up to date.")}):r.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:o.map(j=>r.jsx(hI,{entry:j,hasLicense:i,adminUrl:c.adminUrl,onActivate:()=>d.mutate(j.id),onDeactivate:()=>u.mutate(j.id),onInstall:()=>h.mutate(j.id),isActivating:d.isPending&&d.variables===j.id,isDeactivating:u.isPending&&u.variables===j.id,isInstalling:h.isPending&&h.variables===j.id},j.id))})})]})]})}function hI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}){const[d,u]=f.useState(!1),h=ZN.has(e.id),m=e.status==="active"&&e.operational&&h&&(e.integrationRegistered===!1||e.integrationAvailable===!1),v=e.status==="active"&&!e.operational||m;return r.jsxs("div",{className:"rounded-lg border bg-card p-4 flex flex-col gap-3 h-full","data-addon-id":e.id,"data-addon-status":e.status,children:[r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(xI,{entry:e}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"font-semibold leading-tight flex items-center gap-2",children:[r.jsx(pI,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(gI,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),v&&r.jsx(vI,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(x=>r.jsx(Ge,{variant:"outline",className:"text-[10px] font-mono",children:x},x))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(wI,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}),r.jsx(V,{size:"sm",variant:"ghost",onClick:()=>u(x=>!x),"aria-label":l("Toggle diagnostic info"),title:l("Diagnostic info"),children:r.jsx(lP,{className:"h-4 w-4"})})]}),d&&r.jsx(jI,{entry:e})]})}function pI({loaded:e}){return r.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full shrink-0 "+(e?"bg-green-500 ring-2 ring-green-500/20":"bg-red-500 ring-2 ring-red-500/20"),title:l(e?"Loaded":"Not loaded"),"aria-label":l(e?"Loaded":"Not loaded")})}function xI({entry:e}){return e.status==="active"?e.operational?r.jsx(i0,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(Mt,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Ki,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(l0,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function gI({entry:e}){return e.status==="active"?e.operational?r.jsx(Ge,{className:"bg-green-100 text-green-800 hover:bg-green-100 mt-1",children:l("Active")}):r.jsx(Ge,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:l("Active · issues")}):e.status==="inactive"?r.jsx(Ge,{variant:"secondary",className:"mt-1",children:l("Installed · inactive")}):r.jsx(Ge,{variant:"outline",className:"mt-1",children:l("Not installed")})}function vI({entry:e}){const t=e.inactiveReason?bI(e.inactiveReason):yI(e);if(!t)return null;const n=t.icon;return r.jsxs("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3 text-xs text-amber-900 flex items-start gap-2",children:[r.jsx(n,{className:"h-4 w-4 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"font-medium",children:t.title}),r.jsx("div",{className:"mt-0.5 text-amber-800",children:t.body}),t.cta&&r.jsxs("a",{href:t.cta.href,className:"inline-block mt-1 underline font-medium",children:[t.cta.label," →"]})]})]})}function yI(e){return ZN.has(e.id)?e.integrationRegistered===!1?{icon:Mt,title:l("Form integration not registered"),body:l("The addon booted but did not register its form integration. Most likely the integration's own prerequisite check failed at boot time (e.g. the third-party form builder's class symbols differ from what the integration probes for)."),cta:null}:e.integrationAvailable===!1?{icon:Mt,title:l("Form integration unavailable at runtime"),body:l("The integration is registered but its isAvailable() check is currently failing. The third-party form plugin may have been deactivated after boot, or its class symbols are no longer present."),cta:null}:null:null}function bI(e){return e==="prerequisite"?{icon:SP,title:l("Prerequisite missing"),body:l("The license is fine, but a third-party plugin or PHP class the addon needs is not present. Check the addon's Requires Plugins header."),cta:null}:e==="not_registered"?{icon:Mt,title:l("Addon failed to register"),body:l("The plugin file is active but the addon never reached the registry. Look for a fatal during boot in the PHP error log."),cta:null}:null}function jI({entry:e}){var a;const t=o=>o===null?"—":String(o),n=o=>o===null?"—":String(o),s=[["status",e.status],["registered",String(e.registered)],["operational",String(e.operational)],["inactiveReason",(a=e.inactiveReason)!=null?a:"—"],["integrationRegistered",t(e.integrationRegistered)],["integrationAvailable",t(e.integrationAvailable)],["formCount",n(e.formCount)],["pluginFile",e.pluginFile],["bundleMember",String(e.bundleMember)]];return r.jsxs("div",{className:"rounded-md border bg-muted/30 p-3 text-xs font-mono overflow-x-auto",children:[r.jsx("div",{className:"text-muted-foreground mb-1 font-sans font-medium",children:l("Diagnostic")}),r.jsx("table",{className:"w-full",children:r.jsx("tbody",{children:s.map(([o,i])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:o}),r.jsx("td",{className:"break-all",children:i})]},o))})})]})}function wI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:o,isDeactivating:i,isInstalling:c}){return e.status==="active"?r.jsxs(V,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:i,children:[i?r.jsx(Rn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Ki,{className:"h-4 w-4 mr-1"}),l(i?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(V,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:o,children:[o?r.jsx(Rn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Ki,{className:"h-4 w-4 mr-1"}),l(o?"Activating…":"Activate")]}):t?r.jsxs(V,{size:"sm",variant:"default",className:"flex-1",onClick:a,disabled:c,children:[c?r.jsx(Rn,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Hi,{className:"h-4 w-4 mr-1"}),l(c?"Installing…":"Install")]}):r.jsx(V,{asChild:!0,size:"sm",variant:"default",className:"flex-1",children:r.jsxs("a",{href:kt().upgradeUrl,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(_P,{className:"h-4 w-4 mr-1"}),l("Upgrade to Pro")]})})}const Up="__dummy__",NI=l("Don't forget to confirm your subscription");function SI(){var g,N,S,k,_;const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Y("/settings")}),{data:s}=Ce({queryKey:["email-templates-list"],queryFn:()=>Y("/settings/email-templates-list")}),[a,o]=f.useState({}),[i,c]=f.useState(!1);f.useEffect(()=>{var C,R,T,O;t!=null&&t.data&&!i&&(o({reminder_enabled:(C=t.data.reminder_enabled)!=null?C:0,reminder_delay:(R=t.data.reminder_delay)!=null?R:24,reminder_subject:(T=t.data.reminder_subject)!=null?T:"",reminder_template:(O=t.data.reminder_template)!=null?O:"",token_expiry_hours:t.data.token_expiry_hours}),c(!0))},[t,i]);const d=ke({mutationFn:()=>Y("/settings",{method:"PUT",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("Reminder settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:C=>{K.error(C.message||l("Failed to save reminder settings."))}}),u=ke({mutationFn:()=>Y("/addons/reminder/regenerate-template",{method:"POST"}),onSuccess:C=>{if(!C.success||!C.templateId){K.error(C.message||l("Could not regenerate the default template."));return}K.success(C.message),o(R=>({...R,reminder_template:`custom_${C.templateId}`})),e.invalidateQueries({queryKey:["email-templates-list"]})},onError:C=>{K.error(C.message||l("Could not regenerate the default template."))}});function h(C,R){o(T=>({...T,[C]:R}))}const m=(g=s==null?void 0:s.data)!=null?g:[],[v,x]=f.useState(""),[j,b]=f.useState(Up),{data:w}=Ce({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>Y("/addons/reminder/recent-unconfirmed")}),y=ke({mutationFn:()=>Y("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:v,optin_id:j===Up?null:Number(j)})}),onSuccess:C=>{C.success?K.success(C.message):K.error(C.message||l("Could not send the test reminder."))},onError:C=>{K.error(C.message||l("Could not send the test reminder."))}}),p=(N=w==null?void 0:w.data)!=null?N:[];return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Reminder behaviour")}),r.jsx(Re,{children:l("Send a follow-up email to subscribers who haven't confirmed their opt-in within the configured delay. The send is hourly via WP-Cron — make sure your site is reachable for loopback requests.")})]}),r.jsx(te,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{className:"text-sm font-medium",children:l("Send reminder emails")}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Master switch. When off the cron runs but skips every pending opt-in. When on the fields below take effect.")})]}),r.jsx(rn,{checked:!!a.reminder_enabled,onCheckedChange:C=>h("reminder_enabled",C?1:0)})]}),r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"reminder-delay",children:l("Delay before reminder (hours)")}),r.jsx(Pe,{id:"reminder-delay",type:"number",min:1,className:"mt-1.5",value:(S=a.reminder_delay)!=null?S:24,onChange:C=>h("reminder_delay",Number(C.target.value))}),a.reminder_delay!==void 0&&a.token_expiry_hours!==void 0&&a.reminder_delay>=a.token_expiry_hours&&r.jsx("p",{className:"text-[11px] text-destructive mt-1.5",children:se(l("Delay is ≥ confirmation-link expiry (%dh) — the reminder may arrive after the link has already expired."),a.token_expiry_hours)})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"reminder-subject",children:l("Subject line")}),r.jsx(Pe,{id:"reminder-subject",className:"mt-1.5",placeholder:NI,value:(k=a.reminder_subject)!=null?k:"",onChange:C=>h("reminder_subject",C.target.value)})]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"reminder-template",children:l("Email template")}),r.jsxs(we,{value:(_=a.reminder_template)!=null?_:"",onValueChange:C=>h("reminder_template",C),children:[r.jsx(ye,{id:"reminder-template",className:"mt-1.5",children:r.jsx(Ne,{placeholder:l("Select a template")})}),r.jsx(be,{children:m.length===0?r.jsx(z,{value:"__empty__",disabled:!0,children:l("No templates available — click Regenerate below.")}):m.map(C=>r.jsx(z,{value:String(C.id),children:C.title},C.id))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Pick any custom template from the Email Designer. The")," ",r.jsx("code",{children:"[doubleoptinlink]"})," ",l("placeholder is required — it's replaced with the confirmation URL at send time.")]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(V,{onClick:()=>d.mutate(),disabled:d.isPending,children:[d.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save reminder settings")]}),r.jsxs(V,{variant:"outline",onClick:()=>u.mutate(),disabled:u.isPending,title:l("Re-create the default reminder template in the Email Designer. Useful if you deleted it by accident."),children:[u.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(CP,{className:"h-4 w-4 mr-1.5"}),l("Regenerate default template")]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Send test reminder")}),r.jsx(Re,{children:l("Trigger a one-off reminder send to verify subject, sender, template, and placeholder substitution before the cron-driven send hits real subscribers. Uses the saved settings above — save first if you just changed something.")})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"test-recipient",children:l("Recipient")}),r.jsx(Pe,{id:"test-recipient",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:v,onChange:C=>x(C.target.value)}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("The test mail is sent here, not to the opt-in's real email address.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"test-optin",children:l("Use opt-in data for placeholders")}),r.jsxs(we,{value:j,onValueChange:C=>b(C),children:[r.jsx(ye,{id:"test-optin",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:Up,children:l("Dummy data (no real record)")}),p.map(C=>r.jsxs(z,{value:String(C.id),children:["#",C.id," — ",C.email," (",C.created_at,")"]},C.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Dummy mode uses safe sample values + a clearly-fake confirmation URL. Real opt-ins use their actual data so you can verify placeholder substitution end-to-end.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:[r.jsxs(V,{onClick:()=>y.mutate(),disabled:y.isPending||!v,variant:"secondary",children:[y.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(EP,{className:"h-4 w-4 mr-1.5"}),l("Send test reminder")]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[l("The subject is prefixed with")," ",r.jsx("code",{children:"[TEST]"})," ",l("so it's obvious in your inbox.")]})]})]})]})]})}const CI=l("The email domain does not appear to accept emails. Please check your email address.");function kI(){var u,h;const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Y("/settings")}),[s,a]=f.useState({}),[o,i]=f.useState(!1);f.useEffect(()=>{var m,v;t!=null&&t.data&&!o&&(a({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(v=t.data.mx_validation_message)!=null?v:""}),i(!0))},[t,o]);const c=ke({mutationFn:()=>Y("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(l("MX validation settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:m=>{K.error(m.message||l("Failed to save MX validation settings."))}});function d(m,v){a(x=>({...x,[m]:v}))}return r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("MX validation behaviour")}),r.jsx(Re,{children:l("Before accepting an opt-in, look up the recipient's email domain via DNS and confirm it has a working mail server (MX record, or A-record as fallback). Results are cached: 24 h for valid domains, 1 h for invalid ones. DNS lookup errors fail open — a temporary resolver outage will not block real subscribers.")})]}),r.jsx(te,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"mx-behavior",children:l("Validation behaviour")}),r.jsxs(we,{value:(u=s.mx_validation_behavior)!=null?u:"silent",onValueChange:m=>d("mx_validation_behavior",m),children:[r.jsx(ye,{id:"mx-behavior",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:l("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Silent")})," ",l("looks like a successful submission to the user but no record is created — useful for spam suppression.")," ",r.jsx("strong",{children:l("Block")})," ",l("is better UX for legit users with typos (e.g.")," ",r.jsx("code",{children:"gmial.com"}),")."]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"mx-message",children:l("Custom error message")}),r.jsx(Pe,{id:"mx-message",className:"mt-1.5",placeholder:CI,value:(h=s.mx_validation_message)!=null?h:"",onChange:m=>d("mx_validation_message",m.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("Fail-open behaviour: if the DNS lookup itself errors or times out, the email is treated as valid so a transient outage cannot block sign-ups. Only confirmed lookup failures (NXDOMAIN, no MX/A) trigger rejection.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(V,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save MX settings")]})})]})})]})}const EI=l("This email domain is not allowed. Please use a different email address."),_I=`tempmail.com | |
| 492 | 477 | disposable-email.com |
| 493 | -10minutemail.com`;function VI(){var h,m,b,v;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),[s,a]=f.useState({}),[o,i]=f.useState(!1);f.useEffect(()=>{var w,g,j;t!=null&&t.data&&!o&&(a({domain_blocklist:(w=t.data.domain_blocklist)!=null?w:"",domain_blocklist_behavior:(g=t.data.domain_blocklist_behavior)!=null?g:"silent",domain_blocklist_message:(j=t.data.domain_blocklist_message)!=null?j:""}),i(!0))},[t,o]);const c=ke({mutationFn:()=>G("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(l("Domain blocklist settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:w=>{K.error(w.message||l("Failed to save domain blocklist settings."))}});function d(w,g){a(j=>({...j,[w]:g}))}const u=((h=s.domain_blocklist)!=null?h:"").split(` | |
| 494 | -`).map(w=>w.trim()).filter(w=>w!=="").length;return r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Domain blocklist")}),r.jsx(Ae,{children:l("Reject opt-in submissions where the recipient's email domain matches one of the configured entries. Designed for disposable-mail services (tempmail.com, mailinator, etc.) and known spam sources. Matching is exact, case-insensitive, one domain per line.")})]}),r.jsx(ne,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"domain-blocklist",children:re(l(u===1?"Blocked domains (%d entry)":"Blocked domains (%d entries)"),u)}),r.jsx(Pr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:BI,value:(m=s.domain_blocklist)!=null?m:"",onChange:w=>d("domain_blocklist",w.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("One domain per line. No")," ",r.jsx("code",{children:"@"}),l(", no protocol, no wildcards. Submissions to")," ",r.jsx("code",{children:"user@<domain>"})," ",l("are rejected on exact match.")]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"domain-behavior",children:l("Validation behaviour")}),r.jsxs(ye,{value:(b=s.domain_blocklist_behavior)!=null?b:"silent",onValueChange:w=>d("domain_blocklist_behavior",w),children:[r.jsx(ge,{id:"domain-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx($,{value:"block",children:l("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Silent")})," ",l("is the typical choice for spam suppression — bots get a fake success, real users see nothing.")," ",r.jsx("strong",{children:l("Block")})," ",l("is appropriate if your blocklist also blocks legit-typo domains the user might want to correct.")]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"domain-message",children:l("Custom error message")}),r.jsx(Re,{id:"domain-message",className:"mt-1.5",placeholder:UI,value:(v=s.domain_blocklist_message)!=null?v:"",onChange:w=>d("domain_blocklist_message",w.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The blocklist is read once per request and cached in a static property — changes here take effect on the next form submission, no cache flush needed.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(U,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save blocklist")]})})]})})]})}const Qp={all:{title:l("All forms (defaults apply everywhere)"),hint:l("Every form runs Unique Email with the default settings below. Use the conditions list to override single forms only.")},selected:{title:l("Only selected forms (opt-in list)"),hint:l("Unique Email runs ONLY for forms in the conditions list. Forms not listed are unaffected.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form runs Unique Email EXCEPT those in the conditions list.")}};function HI(e,t,n){return t==="form"?e==="all"?{headline:l("Per-form check on every form"),detail:l("At submit time, the validator looks up the email in the SAME form only. The same address may opt into Form A AND Form B without conflict.")}:e==="selected"?{headline:re(l("Per-form check on the %d listed form%s"),n,n===1?"":"s"),detail:l("The validator only runs on forms in the list. Each listed form checks for duplicates WITHIN ITSELF — they do not affect each other. Forms not listed are completely ignored.")}:{headline:re(l("Per-form check on every form EXCEPT the %d listed"),n),detail:l("Every form runs a per-form duplicate check on itself, except the excluded forms (which skip the check entirely).")}:e==="all"?{headline:l("Sitewide check on every form"),detail:l("At submit time, the validator looks up the email across the ENTIRE opt-in database — every form, every integration. One email = one opt-in across the whole site (former Single Mail Registration behavior).")}:e==="selected"?n===0?{headline:l("Sitewide — but the list is empty"),detail:l("Add at least one form to the list. Until you do, Unique Email is effectively off because mode=selected with no entries excludes every form.")}:{headline:re(l("Sitewide pool over the %d listed form%s"),n,n===1?"":"s"),detail:re(l("At submit time on any listed form, the validator looks up the email across all %d listed forms — but NOT against other forms on the site. Example: a submission on Form A is rejected if the same email already opted into Form A or Form B. Forms not in the list are completely ignored — they neither feed records into the check nor get checked themselves."),n)}:n===0?{headline:l("Sitewide check on every form"),detail:l("No exclusions are configured, so this behaves like Mode = All. Pool is the entire opt-in database.")}:{headline:re(l("Sitewide pool over every form EXCEPT the %d excluded"),n),detail:re(l("At submit time on any non-excluded form, the validator looks up the email across all forms on the site EXCEPT the %d excluded. The excluded forms are bypassed entirely — they neither get checked nor feed records into the check."),n)}}const WI={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function qI(){const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["addon-settings","unique-email"],queryFn:()=>G("/addons/unique-email/settings")}),{data:s}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),[a,o]=f.useState(WI),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var x,N,S,C,E,k,R,T,O,F,B,I;if(!t||i)return;const p=(x=t.data)!=null?x:t;o({enabled:p.enabled!==!1,mode:(N=p.mode)!=null?N:"all",defaults:{scope:(C=(S=p.defaults)==null?void 0:S.scope)!=null?C:"confirmed",behavior:(k=(E=p.defaults)==null?void 0:E.behavior)!=null?k:"block",match_scope:(T=(R=p.defaults)==null?void 0:R.match_scope)!=null?T:"form",message:(F=(O=p.defaults)==null?void 0:O.message)!=null?F:"",redirect_page:Number((I=(B=p.defaults)==null?void 0:B.redirect_page)!=null?I:0)},conditions:Array.isArray(p.conditions)?p.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var N;const p=(N=s==null?void 0:s.data)!=null?N:{},x=[];for(const[S,C]of Object.entries(p))if(C)for(const E of C.forms){const k=Number(typeof E.id=="string"?E.id.split("_")[0]:E.id);k&&x.push({key:`${S}_${k}`,integration:S,integrationName:C.name,formId:k,title:E.title||`#${k}`})}return x},[s]),m=(p,x)=>{const N=h.find(S=>S.integration===p&&S.formId===x);return N?`${N.integrationName} / ${N.title}`:`${p} / #${x}`},b=ke({mutationFn:()=>G("/addons/unique-email/settings",{method:"POST",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("Unique Email settings saved.")),e.invalidateQueries({queryKey:["addon-settings","unique-email"]})},onError:p=>{K.error(p.message||l("Failed to save Unique Email settings."))}});function v(p,x){o(N=>({...N,defaults:{...N.defaults,[p]:x}}))}function w(){if(!d)return;const p=h.find(x=>x.key===d);if(p){if(a.conditions.some(x=>x.integration===p.integration&&x.form_id===p.formId)){K.warning(l("This form is already in the list."));return}o(x=>({...x,conditions:[...x.conditions,{integration:p.integration,form_id:p.formId,scope:null,behavior:null,match_scope:null,message:null,redirect_page:null}]})),u("")}}function g(p){o(x=>({...x,conditions:x.conditions.filter((N,S)=>S!==p)}))}function j(p,x,N){o(S=>({...S,conditions:S.conditions.map((C,E)=>E===p?{...C,[x]:N}:C)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const y=HI(a.mode,a.defaults.match_scope,a.conditions.length);return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("How Unique Email applies")}),r.jsx(Ae,{children:l("Pick whether Unique Email runs on every form, only the forms you select, or every form except the ones you exclude. The defaults below apply to every form that's in scope; the conditions list lets you override individual settings per form.")})]}),r.jsxs(ne,{className:"space-y-3",children:[Object.keys(Qp).map(p=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===p?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-mode",value:p,checked:a.mode===p,onChange:()=>o(x=>({...x,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Qp[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Qp[p].hint})]})]},p)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Default settings")}),r.jsx(Ae,{children:l("Applied to every form in scope. Per-form entries below can override these individually — leave an override empty to inherit.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"ue-scope",children:l("Scope")}),r.jsxs(ye,{value:a.defaults.scope,onValueChange:p=>v("scope",p),children:[r.jsx(ge,{id:"ue-scope",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"confirmed",children:l("Confirmed opt-ins only")}),r.jsx($,{value:"all",children:l("All opt-ins (incl. unconfirmed)")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Confirmed")}),l(": users can re-submit until they confirm once.")," ",r.jsx("strong",{children:l("All")}),l(': stricter — any prior attempt blocks. Use "all" to suppress double-submit bots.')]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"ue-behavior",children:l("Behavior on duplicate")}),r.jsxs(ye,{value:a.defaults.behavior,onValueChange:p=>v("behavior",p),children:[r.jsx(ge,{id:"ue-behavior",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"silent",children:l("Silent rejection")}),r.jsx($,{value:"block",children:l("Show error message")}),r.jsx($,{value:"redirect",children:l("Redirect to page")})]})]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{children:l("Match scope")}),r.jsx("div",{className:"grid gap-2 sm:grid-cols-2 mt-1.5",children:[{value:"form",title:l("Per form"),hint:l("The same address may opt into Form A AND Form B.")},{value:"sitewide",title:l("Sitewide"),hint:l("One email = one opt-in across every form on the site (formerly Single Mail Registration).")}].map(p=>r.jsxs("label",{className:"flex items-start gap-2 rounded-lg border p-3 cursor-pointer transition-colors "+(a.defaults.match_scope===p.value?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-match-scope",value:p.value,checked:a.defaults.match_scope===p.value,onChange:()=>v("match_scope",p.value),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:p.title}),r.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:p.hint})]})]},p.value))})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"ue-message",children:l("Custom error message")}),r.jsx(Re,{id:"ue-message",className:"mt-1.5",placeholder:l("This email address has already been used for this form."),value:a.defaults.message,onChange:p=>v("message",p.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown for")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty for the default text.")]})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ue,{children:[r.jsx(fe,{children:a.mode==="selected"?l("Forms to apply Unique Email to"):a.mode==="all_except"?l("Forms to exclude from Unique Email"):l("Per-form overrides")}),r.jsxs(Ae,{children:[a.mode==="all"&&a.defaults.match_scope==="form"&&l("All forms are in scope by default with a per-form check. Add entries here to override the defaults for specific forms."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("All forms are in scope with a sitewide check — the lookup runs across the entire opt-in database. Add entries here to override the defaults for specific forms."),a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Only the forms in this list run Unique Email. Each listed form checks duplicates within itself — they do not affect each other."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("The forms in this list form a sitewide pool. A submission on any of them is rejected if the email already opted into ANY OTHER form in the list. Forms not in the list are completely outside this check."),a.mode==="all_except"&&a.defaults.match_scope==="form"&&l("These forms are exempt from Unique Email checks. All other forms run a per-form duplicate check on themselves."),a.mode==="all_except"&&a.defaults.match_scope==="sitewide"&&l("These forms are exempt entirely — neither checked nor counted. Every other form on the site runs a sitewide check whose pool spans all non-excluded forms.")]})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:d,onValueChange:u,children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ve,{children:h.length===0?r.jsx($,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(p=>r.jsxs($,{value:p.key,children:[p.integrationName," / ",p.title]},p.key))})]}),r.jsxs(U,{onClick:w,disabled:!d,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("No forms in the list yet.")," ",a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Unique Email is currently inactive on every form — add at least one above."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("Unique Email is currently inactive on every form. Even though the match scope is sitewide, mode=selected with an empty list excludes everything. Add at least two forms to make the sitewide pool meaningful."),a.mode==="all_except"&&l("Unique Email is active on every form with the defaults above."),a.mode==="all"&&a.defaults.match_scope==="form"&&l("Unique Email is active on every form with a per-form check. Use this list to override settings per form."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("Unique Email is active on every form with a sitewide check (equivalent to the legacy Single Mail Registration). Use this list only if you need per-form overrides.")]})]}):r.jsx("div",{className:"space-y-3",children:a.conditions.map((p,x)=>{var N,S,C,E;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(p.integration,p.form_id)}),r.jsx(U,{variant:"ghost",size:"sm",onClick:()=>g(x),title:l("Remove from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),a.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4 mt-3",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override scope")}),r.jsxs(ye,{value:(N=p.scope)!=null?N:"__inherit",onValueChange:k=>j(x,"scope",k==="__inherit"?null:k),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.scope)}),r.jsx($,{value:"confirmed",children:l("Confirmed")}),r.jsx($,{value:"all",children:l("All")})]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override behavior")}),r.jsxs(ye,{value:(S=p.behavior)!=null?S:"__inherit",onValueChange:k=>j(x,"behavior",k==="__inherit"?null:k),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.behavior)}),r.jsx($,{value:"silent",children:l("Silent")}),r.jsx($,{value:"block",children:l("Block")}),r.jsx($,{value:"redirect",children:l("Redirect")})]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override match scope")}),r.jsxs(ye,{value:(C=p.match_scope)!=null?C:"__inherit",onValueChange:k=>j(x,"match_scope",k==="__inherit"?null:k),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"__inherit",children:re(l("Inherit (%s)"),a.defaults.match_scope)}),r.jsx($,{value:"form",children:l("Per form")}),r.jsx($,{value:"sitewide",children:l("Sitewide")})]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Override message")}),r.jsx(Re,{className:"mt-1 h-9 text-xs",placeholder:l("(inherit)"),value:(E=p.message)!=null?E:"",onChange:k=>j(x,"message",k.target.value===""?null:k.target.value)})]})]})]},`${p.integration}_${p.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(U,{onClick:()=>b.mutate(),disabled:b.isPending,children:[b.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save Unique Email settings")]})})]})]})]})}const lS={equals:l("Equals"),not_equals:l("Not equals"),contains:l("Contains"),not_empty:l("Not empty"),empty:l("Empty")},KI=new Set(["not_empty","empty"]),QI={enabled:!0,forms:[]};function GI(){return`rule_${Math.random().toString(36).slice(2,10)}`}function cS(){return{id:GI(),field:"",operator:"equals",value:"",template:"",priority:10}}function YI(){var k;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["addon-settings","conditional"],queryFn:()=>G("/addons/conditional/settings")}),{data:s}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),{data:a}=Ne({queryKey:["email-templates-list"],queryFn:()=>G("/settings/email-templates-list")}),[o,i]=f.useState(QI),[c,d]=f.useState(!1),[u,h]=f.useState("");f.useEffect(()=>{var T;if(!t||c)return;const R=(T=t.data)!=null?T:t;i({enabled:R.enabled!==!1,forms:Array.isArray(R.forms)?R.forms:[]}),d(!0)},[t,c]);const m=f.useMemo(()=>{var O;const R=(O=s==null?void 0:s.data)!=null?O:{},T=[];for(const[F,B]of Object.entries(R))if(B)for(const I of B.forms){const se=typeof I.id=="string"?I.id:String(I.id),M=Number(se.split("_")[0]);M&&T.push({key:`${F}_${se}`,integration:F,integrationName:B.name,formId:M,restId:se,title:I.title||`#${M}`})}return T},[s]),b=(R,T)=>{const O=m.find(F=>F.integration===R&&F.formId===T);return O?O.restId:String(T)},v=(R,T)=>{const O=m.find(F=>F.integration===R&&F.formId===T);return O?`${O.integrationName} / ${O.title}`:`${R} / #${T}`},w=J2({queries:o.forms.map(R=>{const T=b(R.integration,R.form_id);return{queryKey:["form-fields",R.integration,T],queryFn:()=>G(`/forms/${R.integration}/${T}/fields`),staleTime:5*60*1e3,retry:!1}})}),g=(R,T)=>{var B;const O=o.forms.findIndex(I=>I.integration===R&&I.form_id===T);if(O===-1)return[];const F=w[O];return F!=null&&F.data?(B=F.data.data)!=null?B:[]:[]},j=ke({mutationFn:()=>G("/addons/conditional/settings",{method:"POST",body:JSON.stringify(o)}),onSuccess:()=>{K.success(l("Conditional Templates settings saved.")),e.invalidateQueries({queryKey:["addon-settings","conditional"]})},onError:R=>{K.error(R.message||l("Failed to save Conditional Templates settings."))}});function y(){if(!u)return;const R=m.find(T=>T.key===u);if(R){if(o.forms.some(T=>T.integration===R.integration&&T.form_id===R.formId)){K.warning(l("This form is already in the list."));return}i(T=>({...T,forms:[...T.forms,{integration:R.integration,form_id:R.formId,fallback_template:"blank",rules:[cS()]}]})),h("")}}function p(R){i(T=>({...T,forms:T.forms.filter((O,F)=>F!==R)}))}function x(R,T,O){i(F=>({...F,forms:F.forms.map((B,I)=>I===R?{...B,[T]:O}:B)}))}function N(R){i(T=>({...T,forms:T.forms.map((O,F)=>F===R?{...O,rules:[...O.rules,cS()]}:O)}))}function S(R,T){i(O=>({...O,forms:O.forms.map((F,B)=>B===R?{...F,rules:F.rules.filter((I,se)=>se!==T)}:F)}))}function C(R,T,O,F){i(B=>({...B,forms:B.forms.map((I,se)=>se===R?{...I,rules:I.rules.map((M,Z)=>Z===T?{...M,[O]:F}:M)}:I)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const E=(k=a==null?void 0:a.data)!=null?k:[];return r.jsxs(r.Fragment,{children:[r.jsx(ee,{className:"mt-6",children:r.jsxs(ue,{children:[r.jsx(fe,{children:l("How Conditional Templates work")}),r.jsx(Ae,{children:l("Pick a form and define rules that decide which email template to send based on the form's submitted field values. Forms not in this list use their normal template. Rules are evaluated by priority (lower runs first); the first matching rule wins. If no rule matches, the form's fallback template applies.")})]})}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Forms with conditional templates")}),r.jsx(Ae,{children:l("Add a form below to start configuring per-field template rules for it.")})]}),r.jsxs(ne,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:u,onValueChange:h,children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ve,{children:m.length===0?r.jsx($,{value:"__empty",disabled:!0,children:l("No forms detected")}):m.map(R=>r.jsxs($,{value:R.key,children:[R.integrationName," / ",R.title]},R.key))})]}),r.jsxs(U,{onClick:y,disabled:!u,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),o.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(wt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("No forms configured yet. Conditional Templates is inactive on every form. Add at least one form above to start.")})]}):r.jsx("div",{className:"space-y-4",children:o.forms.map((R,T)=>{const O=g(R.integration,R.form_id),F=w[T];return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:v(R.integration,R.form_id)}),r.jsx(U,{variant:"ghost",size:"sm",onClick:()=>p(T),title:l("Remove form from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Fallback template")}),r.jsxs(ye,{value:R.fallback_template||"blank",onValueChange:B=>x(T,"fallback_template",B),children:[r.jsx(ge,{className:"mt-1 h-9 text-xs",children:r.jsx(be,{})}),r.jsx(ve,{children:E.length===0?r.jsx($,{value:"blank",children:l("Default (blank)")}):E.map(B=>r.jsx($,{value:B.id,children:B.title},B.id))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Used when no rule matches the submitted data.")})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-xs",children:l("Rules")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 mb-2",children:l("Lower priority runs first. First match wins.")}),F!=null&&F.isLoading?r.jsx(ae,{className:"h-20 w-full"}):R.rules.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-md bg-accent p-2",children:[r.jsx(wt,{className:"h-3.5 w-3.5 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("No rules — only the fallback template applies.")})]}):r.jsx("div",{className:"space-y-2",children:R.rules.map((B,I)=>{const se=!KI.has(B.operator);return r.jsxs("div",{className:"grid gap-2 sm:grid-cols-[1.2fr_1fr_1.2fr_1.5fr_0.6fr_auto] items-end rounded-md border p-2",children:[r.jsxs("div",{children:[r.jsx(Y,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Field")}),r.jsxs(ye,{value:B.field||"__none",onValueChange:M=>C(T,I,"field",M==="__none"?"":M),children:[r.jsx(ge,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{placeholder:"—"})}),r.jsxs(ve,{children:[r.jsx($,{value:"__none",disabled:!0,children:l("Choose a field")}),O.length===0?r.jsx($,{value:"__nofields",disabled:!0,children:l("(no fields detected)")}):O.map(M=>r.jsx($,{value:M.name,children:M.label||M.name},M.name))]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Operator")}),r.jsxs(ye,{value:B.operator,onValueChange:M=>C(T,I,"operator",M),children:[r.jsx(ge,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{})}),r.jsx(ve,{children:Object.keys(lS).map(M=>r.jsx($,{value:M,children:lS[M]},M))})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Value")}),r.jsx(Re,{className:"mt-1 h-8 text-xs",placeholder:l(se?"e.g. DE":"(not used)"),value:B.value,disabled:!se,onChange:M=>C(T,I,"value",M.target.value)})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Template")}),r.jsxs(ye,{value:B.template||"__none",onValueChange:M=>C(T,I,"template",M==="__none"?"":M),children:[r.jsx(ge,{className:"mt-1 h-8 text-xs",children:r.jsx(be,{placeholder:"—"})}),r.jsxs(ve,{children:[r.jsx($,{value:"__none",disabled:!0,children:l("Choose a template")}),E.map(M=>r.jsx($,{value:M.id,children:M.title},M.id))]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Prio")}),r.jsx(Re,{type:"number",min:1,max:99,className:"mt-1 h-8 text-xs",value:B.priority,onChange:M=>C(T,I,"priority",Math.max(1,Number(M.target.value)||1))})]}),r.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(T,I),title:l("Remove rule"),children:r.jsx(vn,{className:"h-3.5 w-3.5"})})]},B.id)})}),r.jsxs(U,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>N(T),children:[r.jsx(lo,{className:"h-3.5 w-3.5 mr-1.5"}),l("Add rule")]})]})]},`${R.integration}_${R.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(U,{onClick:()=>j.mutate(),disabled:j.isPending,children:[j.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save Conditional Templates settings")]})})]})]})]})}const dS={",":l("Comma — , (RFC 4180 default)"),";":l("Semicolon — ; (German/French Excel)"),"\\t":l("Tab (TSV-style)"),"|":l("Pipe — |")},XI={all:l("Every record — confirmed, unconfirmed, and opted-out."),confirmed:l("Active subscribers only (confirmed AND not opted-out)."),unconfirmed:l("Users who never clicked the confirmation link."),opted_out:l("Records with a recorded opt-out (unsubscribed).")},ar="__all";function uS(e){if(!e)return"—";const t=new Date(e*1e3),n=s=>String(s).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${t.getFullYear()} ${n(t.getHours())}:${n(t.getMinutes())}`}function ZI(){var oe,Se,X,je;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[a,o]=f.useState("all"),[i,c]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[b,v]=f.useState(""),[w,g]=f.useState(""),[j,y]=f.useState(ar),[p,x]=f.useState(ar),[N,S]=f.useState(!1),C=Ke(),E=f.useRef(null),{data:k}=Ne({queryKey:["categories"],queryFn:()=>G("/categories")}),{data:R}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),T=f.useMemo(()=>{var Ee;const L=(Ee=R==null?void 0:R.data)!=null?Ee:{},me=[];for(const[Be,H]of Object.entries(L))if(H)for(const Oe of H.forms){const Ve=Number(typeof Oe.id=="string"?Oe.id.split("_")[0]:Oe.id);Ve&&me.push({id:Ve,label:`${H.name} / ${Oe.title||`#${Ve}`}`})}const Ce=new Set;return me.filter(Be=>Ce.has(Be.id)?!1:(Ce.add(Be.id),!0))},[R]),O=f.useMemo(()=>{var L;return((L=k==null?void 0:k.data)!=null?L:[]).filter(me=>Number(me.id)>0)},[k]),F=a,B=a==="email"?i.trim():"",I=h,se=j===ar?"":j,M=p===ar?"":p,Z=Ne({queryKey:["consent-export-stream-info",F,B,I,se,M],queryFn:()=>{const L=new URLSearchParams({scope:F,email:B,status:I,form_id:se,category_id:M});return G(`/consent-export/stream-info?${L.toString()}`)}}),A=(Se=(oe=Z.data)==null?void 0:oe.data)!=null?Se:{exported_count:0,run_count:0,last_run_at:0},D=Ne({queryKey:["consent-export-history"],queryFn:()=>G("/consent-export/history?limit=20")}),J=(je=(X=D.data)==null?void 0:X.data)!=null?je:[],pe=ke({mutationFn:()=>G("/consent-export/history",{method:"DELETE"}),onSuccess:()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(l("Export history cleared."))},onError:L=>{K.error(L.message||l("Failed to clear history."))}}),P=ke({mutationFn:L=>G(`/consent-export/history/${L}`,{method:"DELETE"}),onSuccess:()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(l("Run removed from history."))},onError:L=>{K.error(L.message||l("Failed to delete run."))}});function z(L){var me;if(o(L.scope==="email"?"email":"all"),c((me=L.email)!=null?me:""),m(["all","confirmed","unconfirmed","opted_out"].includes(L.status)?L.status:"all"),y(L.form_id>0?String(L.form_id):ar),x(L.category_id>0?String(L.category_id):ar),t(L.format==="json"?"json":"csv"),u(L.include_form_data===1),L.format==="csv"&&L.delimiter){const Ce=L.delimiter===" "?"\\t":L.delimiter;s(Ce)}K.info(l("Filters restored from this run."))}function q(){var Be;if(a==="email"&&i.trim()===""){K.error(l("Enter an email address before exporting."));return}if(b!==""&&w!==""&&b>w){K.error(l("The 'from' date is after the 'to' date."));return}const L=mt(),me=new URLSearchParams({action:"doi_export_consent",_wpnonce:(Be=L.consentExportNonce)!=null?Be:"",format:e,scope:a});a==="email"&&me.set("email",i.trim()),d&&me.set("include_formdata","1"),e==="csv"&&n!==","&&me.set("delimiter",n),h!=="all"&&me.set("status",h),b!==""&&me.set("date_from",b),w!==""&&me.set("date_to",w),j!==ar&&me.set("form_id",j),p!==ar&&me.set("category_id",p),N&&me.set("since_last_export","1");const Ee=`${L.adminUrl.replace(/\/+$/,"")}/admin-ajax.php?${me.toString()}`;window.open(Ee,"_blank","noopener,noreferrer"),setTimeout(()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]})},1500),setTimeout(()=>{C.invalidateQueries({queryKey:["consent-export-history"]}),C.invalidateQueries({queryKey:["consent-export-stream-info"]})},6e3)}return r.jsxs(ee,{className:"mt-6",children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Export consent records (GDPR)")}),r.jsx(Ae,{children:l("Download consent records as CSV or JSON for GDPR Art. 15 subject-access requests, internal audits, or migration to another system. The export covers every recorded submission, confirmation, and opt-out with timestamps, IPs, and the exact consent text presented at signup.")})]}),r.jsxs(ne,{className:"space-y-5",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-format",children:l("Format")}),r.jsxs(ye,{value:e,onValueChange:L=>t(L),children:[r.jsx(ge,{id:"export-format",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"csv",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(kP,{className:"h-4 w-4"}),l("CSV (Excel-friendly, UTF-8 BOM)")]})}),r.jsx($,{value:"json",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(CP,{className:"h-4 w-4"}),l("JSON (pretty-printed)")]})})]})]})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-scope",children:l("Scope")}),r.jsxs(ye,{value:a,onValueChange:L=>o(L),children:[r.jsx(ge,{id:"export-scope",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All records")}),r.jsx($,{value:"email",children:l("By email address")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("By email")}),l(": useful for GDPR subject-access requests — exports every record tied to one address.")]})]})]}),e==="csv"&&r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-delimiter",children:l("CSV separator")}),r.jsxs(ye,{value:n,onValueChange:L=>s(L),children:[r.jsx(ge,{id:"export-delimiter",className:"mt-1.5",children:r.jsx(be,{})}),r.jsx(ve,{children:Object.keys(dS).map(L=>r.jsx($,{value:L,children:dS[L]},L))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Excel honours the OS-locale default — German installs expect")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:";"})," ",l("because")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:","})," ",l("is their decimal mark. If you open the CSV and see every row crammed into one column, switch separator and re-export.")]})]}),a==="email"&&r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-email",children:l("Email address")}),r.jsx(Re,{id:"export-email",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:i,onChange:L=>c(L.target.value)})]}),r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsx("div",{className:"text-sm font-medium",children:l("Filters")}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-status",children:l("Status")}),r.jsxs(ye,{value:h,onValueChange:L=>m(L),children:[r.jsx(ge,{id:"export-status",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All statuses")}),r.jsx($,{value:"confirmed",children:l("Confirmed (active subscribers)")}),r.jsx($,{value:"unconfirmed",children:l("Unconfirmed")}),r.jsx($,{value:"opted_out",children:l("Opted out")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:XI[h]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-date-from",children:l("Signed up from")}),r.jsx(Re,{id:"export-date-from",type:"date",className:"mt-1.5",value:b,onChange:L=>v(L.target.value),max:w||void 0})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-date-to",children:l("Signed up until")}),r.jsx(Re,{id:"export-date-to",type:"date",className:"mt-1.5",value:w,onChange:L=>g(L.target.value),min:b||void 0})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground -mt-2",children:l("Filters on the signup date (when the record was first submitted). Leave either field empty for an open-ended range. Inclusive on both sides.")}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-form",children:l("Form")}),r.jsxs(ye,{value:j,onValueChange:y,children:[r.jsx(ge,{id:"export-form",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:ar,children:l("All forms")}),T.length===0?r.jsx($,{value:"__nofields",disabled:!0,children:l("(no forms detected)")}):T.map(L=>r.jsx($,{value:String(L.id),children:L.label},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to records tied to one specific form (CF7, Avada, Elementor, WPForms, Gravity, …). Matches on the form's post id.")})]}),r.jsxs("div",{children:[r.jsx(Y,{htmlFor:"export-category",children:l("Category")}),r.jsxs(ye,{value:p,onValueChange:x,children:[r.jsx(ge,{id:"export-category",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:ar,children:l("All categories")}),O.length===0?r.jsx($,{value:"__nocat",disabled:!0,children:l("(no categories defined)")}):O.map(L=>r.jsxs($,{value:String(L.id),children:[L.name,typeof L.optin_count=="number"&&r.jsxs("span",{className:"text-muted-foreground",children:[" ","(",L.optin_count,")"]})]},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to records tagged with one specific category. Configure categories under DOI → Categories.")})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-3 bg-accent/50",children:[r.jsx(jo,{id:"export-since-last",checked:N,onCheckedChange:L=>S(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsx(Y,{htmlFor:"export-since-last",className:"cursor-pointer text-sm font-medium",children:l("Only records not yet exported in this stream")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("Excludes OptIn IDs that appeared in any previous export with the same scope + status + form + category + email. Date range is ignored for the stream identity — it's an extra filter on the result. Each export's contents is recorded in an indexed audit table for constant-time filtering.")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:Z.isLoading?l("Loading stream info…"):A.run_count===0?r.jsxs("span",{children:[r.jsx("strong",{children:l("No prior exports")})," ",l("for this filter combination. Toggle is a no-op until you do your first export.")]}):r.jsxs("span",{children:[r.jsx("strong",{children:A.exported_count})," ",l("record(s) previously exported in this stream across")," ",r.jsx("strong",{children:A.run_count})," ",l("run(s). Last run:")," ",uS(A.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(jo,{id:"export-include-formdata",checked:d,onCheckedChange:L=>u(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(Y,{htmlFor:"export-include-formdata",className:"cursor-pointer text-sm font-medium",children:l("Include form data (submitted field values)")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("Adds one column per form field per record (Name, Address, custom checkboxes, …). Each record may have different fields — the CSV exporter collects all column names across the entire result set.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:[r.jsxs(U,{onClick:q,children:[r.jsx(Qi,{className:"h-4 w-4 mr-1.5"}),l("Export")]}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("The download starts in a new tab. Sensitive data — store the file in line with your retention policy.")})]})]}),r.jsxs(ue,{className:"border-t",children:[r.jsxs(fe,{className:"flex items-center gap-2 text-base",children:[r.jsx(PP,{className:"h-4 w-4"}),l("Recent exports")]}),r.jsxs(Ae,{children:[l("Audit log of past exports. Each row records who ran it, when, from where, and which records went into the file.")," ",l("Click")," ",r.jsx(Nb,{className:"inline h-3 w-3"})," ",l("to restore that run's filter combination, or")," ",r.jsx(vn,{className:"inline h-3 w-3"})," ",l("to remove a single accidental run from the audit history.")]})]}),r.jsxs(ne,{children:[D.isLoading?r.jsx(ae,{className:"h-32 w-full"}):J.length===0?r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No exports yet — the table fills up as you run them.")}):r.jsx("div",{className:"rounded-lg border overflow-hidden",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{className:"bg-muted",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left p-2 font-medium",children:l("When")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("User")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("IP")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("Stream")}),r.jsx("th",{className:"text-right p-2 font-medium",children:l("Count")}),r.jsx("th",{className:"p-2"})]})}),r.jsx("tbody",{children:J.map(L=>{const me=[L.scope==="email"?`email:${L.email}`:L.scope,L.status,L.form_id>0?`form#${L.form_id}`:null,L.category_id>0?`cat#${L.category_id}`:null].filter(Boolean).join(" / ");return r.jsxs("tr",{className:"border-t hover:bg-accent/30",children:[r.jsx("td",{className:"p-2",children:uS(L.started_at)}),r.jsx("td",{className:"p-2",children:L.user_login||"—"}),r.jsx("td",{className:"p-2 font-mono text-[10px]",children:L.ip_address||"—"}),r.jsx("td",{className:"p-2",children:me}),r.jsx("td",{className:"p-2 text-right tabular-nums",children:L.count}),r.jsx("td",{className:"p-2",children:r.jsxs("div",{className:"flex gap-1 justify-end",children:[r.jsx("button",{type:"button",onClick:()=>z(L),title:l("Restore this run's filters"),className:"p-1 rounded hover:bg-accent",children:r.jsx(Nb,{className:"h-3.5 w-3.5"})}),r.jsx("button",{type:"button",onClick:()=>{window.confirm(l("Delete this run from the audit history? The originally exported records remain in the database — this only removes the audit row."))&&P.mutate(L.id)},title:l("Remove this run from the audit history"),className:"p-1 rounded hover:bg-accent text-destructive",children:r.jsx(vn,{className:"h-3.5 w-3.5"})})]})})]},L.id)})})]})}),r.jsxs("div",{className:"flex items-center gap-2 pt-4",children:[r.jsxs(U,{variant:"outline",size:"sm",onClick:()=>C.invalidateQueries({queryKey:["consent-export-history"]}),children:[r.jsx(pd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Refresh")]}),J.length>0&&r.jsxs(U,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>{var L;return(L=E.current)==null?void 0:L.showModal()},children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Clear all history")]})]})]}),r.jsxs("dialog",{ref:E,className:"rounded-lg p-6 max-w-md backdrop:bg-black/50 backdrop:backdrop-blur-sm",children:[r.jsx("h3",{className:"font-semibold text-base mb-2",children:l("Clear export history?")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l('Removes every audit row plus the per-record exported-ID links. The originally exported records remain in the database; only the audit trail is cleared. After this, "Only records not yet exported in this stream" treats every record as fresh.')}),r.jsxs("div",{className:"flex justify-end gap-2",children:[r.jsx(U,{variant:"outline",size:"sm",onClick:()=>{var L;return(L=E.current)==null?void 0:L.close()},children:l("Cancel")}),r.jsx(U,{size:"sm",className:"text-destructive border-destructive",variant:"outline",onClick:()=>{var L;(L=E.current)==null||L.close(),pe.mutate()},children:l("Yes, clear everything")})]})]})]})}function JI(){const{id:e}=$i();return e?r.jsx(kr,{addonId:e,featureName:e,children:r.jsx(eM,{id:e})}):null}function eM({id:e}){var h;const t=Ke(),{data:n}=Ne({queryKey:["addons-catalog"],queryFn:()=>G("/addons/catalog")}),{data:s,isLoading:a}=Ne({queryKey:["addon-settings",e],queryFn:()=>G(`/addons/${e}/settings`)}),[o,i]=f.useState(!0);f.useEffect(()=>{s&&i(s.enabled)},[s]);const c=ke({mutationFn:m=>G(`/addons/${e}/settings`,{method:"POST",body:JSON.stringify(m)}),onSuccess:m=>{K.success(m.enabled?l("Feature enabled."):l("Feature disabled.")),t.invalidateQueries({queryKey:["addon-settings",e]})},onError:m=>{K.error(m.message||l("Failed to save settings."))}}),d=n==null?void 0:n.entries.find(m=>m.id===e),u=m=>{i(m),c.mutate({enabled:m})};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:(h=d==null?void 0:d.name)!=null?h:e}),(d==null?void 0:d.description)&&r.jsx("p",{className:"text-muted-foreground",children:d.description})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsx(fe,{children:l("Feature toggle")}),r.jsx(Ae,{children:l("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause the feature temporarily (e.g. while debugging a form).")})]}),r.jsx(ne,{children:a?r.jsx(ae,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(Y,{htmlFor:"addon-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, the addon's hooks no-op but the plugin stays installed and can be re-enabled in one click.")})]}),r.jsx(sn,{id:"addon-enabled",checked:o,onCheckedChange:u,disabled:c.isPending})]})})]}),e==="reminder"&&r.jsx(LI,{}),e==="mx-validator"&&r.jsx(zI,{}),e==="domain-blocklist"&&r.jsx(VI,{}),e==="unique-email"&&r.jsx(qI,{}),e==="conditional"&&r.jsx(YI,{}),e==="consent-export"&&r.jsx(ZI,{})]})}const fS="doi-email-editor-root",tM="email-editor";function mS(){var h;const{id:e}=$i(),t=Tn(),n=f.useRef(null),[s,a]=f.useState(null),[o,i]=f.useState(!0),{data:c,isLoading:d}=Ne({queryKey:["addons-manifest"],queryFn:()=>G("/addons")}),u=!d&&((h=c==null?void 0:c.addons)!=null?h:[]).some(m=>m.id===tM&&m.available);return f.useEffect(()=>{if(d)return;if(!u){i(!1),a(l("The Email Editor addon isn't active on this site. Activate it to use the in-app editor, or open the legacy editor below."));return}let m=!1,b=null,v=null,w=null;const g=()=>{var N;if(m)return!0;const j=window.doiMountEmailEditor;if(typeof j!="function")return!1;const y=n.current;if(!y)return!1;y.id=fS;const p=e&&e!=="new"?Number(e):0,x=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:mt().restUrl+"email-templates",nonce:mt().nonce};return b=j(fS,{templateId:p,restUrl:x.restUrl,nonce:x.nonce}),b&&(i(!1),a(null)),!!b};return g()||(v=setInterval(()=>{g()&&v&&(clearInterval(v),v=null)},100),w=setTimeout(()=>{v&&(clearInterval(v),v=null),!b&&!m&&(i(!1),a(l("Email editor bundle didn't attach in time. Reload the page; if this persists, check the browser console for a script load error.")))},5e3)),()=>{if(m=!0,v&&clearInterval(v),w&&clearTimeout(w),b)try{b.unmount()}catch(j){}}},[e,d,u]),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:r.jsxs("button",{onClick:()=>t("/email-templates"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(ud,{className:"h-3.5 w-3.5"}),l("Back to email templates")]})}),o&&r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-8 w-64"}),r.jsx(ae,{className:"h-[600px] w-full"})]}),s&&r.jsx("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Nt,{className:"h-5 w-5 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium mb-1",children:l("Email editor not available")}),r.jsx("p",{className:"text-amber-800 mb-3",children:s}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(U,{variant:"default",size:"sm",onClick:()=>t("/addons"),children:l("Open Addons")})})]})]})}),r.jsx("div",{ref:n,className:"doi-editor-host"})]})}const lu={info:{label:l("Info"),color:"secondary",icon:wt},warning:{label:l("Warning"),color:"default",icon:Nt},error:{label:l("Error"),color:"destructive",icon:fd},critical:{label:l("Critical"),color:"destructive",icon:uh}},nM={settings:hh,cron:ds,activation:Gi,rate_limit:ph,api_error:VP,db_error:Ki,email:On,auth:UP,follow_up:OP,consent:yP};function hS(e){var n;return(n={settings:l("Settings Change"),cron:l("Cron"),activation:l("Activation"),rate_limit:l("Rate Limit"),api_error:l("API Error"),db_error:l("DB Error"),email:l("Email"),auth:l("Auth"),follow_up:l("Follow-up actions"),consent:l("Consent")}[e])!=null?n:e.replace(/_/g," ")}function rM(){var S,C,E,k,R,T,O,F,B;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[a,o]=f.useState("all"),[i,c]=f.useState(1),[d,u]=f.useState(null),h=15,m=I=>{t(I),c(1)},b=I=>{s(I),c(1)},v=I=>{o(I),c(1)},{data:w,isLoading:g}=Ne({queryKey:["audit-events",e,n,a,i],queryFn:()=>G(`/audit/events?period=${e}&type=${n}&severity=${a}&page=${i}&per_page=${h}`)}),{data:j,isLoading:y}=Ne({queryKey:["audit-summary",e],queryFn:()=>G(`/audit/summary?period=${e}`)}),p=(C=(S=w==null?void 0:w.data)==null?void 0:S.events)!=null?C:[],x=(k=(E=w==null?void 0:w.data)==null?void 0:E.pages)!=null?k:1,N=(R=j==null?void 0:j.data)!=null?R:{total:0,warning:0,error:0,critical:0};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Audit Log")}),r.jsx("p",{className:"text-muted-foreground",children:l("System events and change log")})]}),r.jsx(LN,{value:e,onValueChange:m,children:r.jsxs(Ip,{children:[r.jsx(bs,{value:"7",className:"text-xs",children:l("7 Days")}),r.jsx(bs,{value:"30",className:"text-xs",children:l("30 Days")}),r.jsx(bs,{value:"90",className:"text-xs",children:l("90 Days")})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsx(fe,{className:"text-xs text-muted-foreground",children:l("Total Events")})}),r.jsx(ne,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Nt,{className:"h-3 w-3 text-warning"}),l("Warnings")]})}),r.jsx(ne,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:N.warning})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(fd,{className:"h-3 w-3 text-destructive"}),l("Errors")]})}),r.jsx(ne,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-destructive",children:N.error})})]}),r.jsxs(ee,{children:[r.jsx(ue,{className:"pb-2",children:r.jsxs(fe,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(uh,{className:"h-3 w-3"}),l("Critical")]})}),r.jsx(ne,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.critical})})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(ye,{value:n,onValueChange:b,children:[r.jsx(ge,{className:"h-8 w-[160px] text-xs",children:r.jsx(be,{placeholder:l("Event Type")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All Types")}),r.jsx($,{value:"settings",children:l("Settings Change")}),r.jsx($,{value:"cron",children:l("Cron")}),r.jsx($,{value:"activation",children:l("Activation")}),r.jsx($,{value:"rate_limit",children:l("Rate Limit")}),r.jsx($,{value:"api_error",children:l("API Error")}),r.jsx($,{value:"db_error",children:l("DB Error")}),r.jsx($,{value:"email",children:l("Email")}),r.jsx($,{value:"auth",children:l("Auth")}),r.jsx($,{value:"follow_up",children:l("Follow-up actions")}),r.jsx($,{value:"consent",children:l("Consent")})]})]}),r.jsxs(ye,{value:a,onValueChange:v,children:[r.jsx(ge,{className:"h-8 w-[140px] text-xs",children:r.jsx(be,{placeholder:l("Severity")})}),r.jsxs(ve,{children:[r.jsx($,{value:"all",children:l("All")}),r.jsx($,{value:"info",children:l("Info")}),r.jsx($,{value:"warning",children:l("Warning")}),r.jsx($,{value:"error",children:l("Error")}),r.jsx($,{value:"critical",children:l("Critical")})]})]})]}),r.jsx(ee,{children:r.jsx(ne,{className:"p-0",children:g?r.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:5}).map((I,se)=>r.jsx(ae,{className:"h-10 w-full"},se))}):p.length===0?r.jsxs("div",{className:"py-16 text-center",children:[r.jsx(xd,{className:"h-12 w-12 text-muted-foreground/30 mx-auto mb-3"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No events found for the selected filters.")})]}):r.jsxs(r.Fragment,{children:[r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs w-[160px]",children:l("Timestamp")}),r.jsx(Te,{className:"text-xs w-[100px]",children:l("Type")}),r.jsx(Te,{className:"text-xs w-[90px]",children:l("Severity")}),r.jsx(Te,{className:"text-xs",children:l("Message")}),r.jsx(Te,{className:"text-xs w-[70px]",children:l("User")})]})}),r.jsx(rn,{children:p.map(I=>{var Z;const se=nM[I.event_type]||xd,M=(Z=lu[I.severity])!=null?Z:lu.info;return r.jsxs(De,{className:"cursor-pointer hover:bg-accent",onClick:()=>u(I),children:[r.jsx(le,{className:"text-xs text-muted-foreground",children:I.created_at}),r.jsx(le,{children:r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(se,{className:"h-3 w-3 text-muted-foreground"}),r.jsx("span",{className:"text-xs",children:hS(I.event_type)})]})}),r.jsx(le,{children:r.jsx(dt,{variant:M.color,className:"text-[10px]",children:M.label})}),r.jsx(le,{className:"text-xs max-w-[300px] truncate",children:I.message}),r.jsx(le,{children:r.jsx(dt,{variant:"outline",className:"text-[10px]",children:I.user_display})})]},I.id)})})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:re(l("Page %1$s of %2$s"),i,x)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i===1,onClick:()=>c(I=>I-1),children:r.jsx(pb,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i>=x,onClick:()=>c(I=>I+1),children:r.jsx(dh,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(Er,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(tr,{children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Event Details")}),r.jsx(sr,{children:l("Full event information")})]}),d&&r.jsxs("div",{className:"space-y-3 text-sm",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Timestamp:")}),r.jsx("p",{className:"text-xs",children:d.created_at})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Type:")}),r.jsx("p",{className:"text-xs",children:hS(d.event_type)})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Severity:")}),r.jsx("p",{children:r.jsx(dt,{variant:(O=(T=lu[d.severity])==null?void 0:T.color)!=null?O:"secondary",className:"text-[10px]",children:(B=(F=lu[d.severity])==null?void 0:F.label)!=null?B:d.severity})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("User:")}),r.jsx("p",{className:"text-xs",children:d.user_display})]})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Message:")}),r.jsx("p",{className:"text-xs mt-1 rounded-lg bg-accent p-3",children:d.message})]})]})]})})]})}var Gp="Radio",[sM,pS]=Mt(Gp),[aM,oM]=sM(Gp),xS=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:a=!1,required:o,disabled:i,value:c="on",onCheck:d,form:u,...h}=e,[m,b]=f.useState(null),v=Me(t,j=>b(j)),w=f.useRef(!1),g=m?u||!!m.closest("form"):!0;return r.jsxs(aM,{scope:n,checked:a,disabled:i,children:[r.jsx(xe.button,{type:"button",role:"radio","aria-checked":a,"data-state":bS(a),"data-disabled":i?"":void 0,disabled:i,value:c,...h,ref:v,onClick:he(e.onClick,j=>{a||d==null||d(),g&&(w.current=j.isPropagationStopped(),w.current||j.stopPropagation())})}),g&&r.jsx(yS,{control:m,bubbles:!w.current,name:s,value:c,checked:a,required:o,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});xS.displayName=Gp;var gS="RadioIndicator",vS=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...a}=e,o=oM(gS,n);return r.jsx(Rn,{present:s||o.checked,children:r.jsx(xe.span,{"data-state":bS(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})});vS.displayName=gS;var iM="RadioBubbleInput",yS=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:s=!0,...a},o)=>{const i=f.useRef(null),c=Me(i,o),d=Gd(n),u=Pd(t);return f.useEffect(()=>{const h=i.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&v){const w=new Event("click",{bubbles:s});v.call(h,n),h.dispatchEvent(w)}},[d,n,s]),r.jsx(xe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yS.displayName=iM;function bS(e){return e?"checked":"unchecked"}var lM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cu="RadioGroup",[cM]=Mt(cu,[ru,pS]),jS=ru(),wS=pS(),[dM,uM]=cM(cu),NS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:a,value:o,required:i=!1,disabled:c=!1,orientation:d,dir:u,loop:h=!0,onValueChange:m,...b}=e,v=jS(n),w=hl(u),[g,j]=Jt({prop:o,defaultProp:a!=null?a:null,onChange:m,caller:cu});return r.jsx(dM,{scope:n,name:s,required:i,disabled:c,value:g,onValueChange:j,children:r.jsx(NN,{asChild:!0,...v,orientation:d,dir:w,loop:h,children:r.jsx(xe.div,{role:"radiogroup","aria-required":i,"aria-orientation":d,"data-disabled":c?"":void 0,dir:w,...b,ref:t})})})});NS.displayName=cu;var SS="RadioGroupItem",CS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...a}=e,o=uM(SS,n),i=o.disabled||s,c=jS(n),d=wS(n),u=f.useRef(null),h=Me(t,u),m=o.value===a.value,b=f.useRef(!1);return f.useEffect(()=>{const v=g=>{lM.includes(g.key)&&(b.current=!0)},w=()=>b.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",w)}},[]),r.jsx(SN,{asChild:!0,...c,focusable:!i,active:m,children:r.jsx(xS,{disabled:i,required:o.required,checked:m,...d,...a,name:o.name,ref:h,onCheck:()=>o.onValueChange(a.value),onKeyDown:he(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:he(a.onFocus,()=>{var v;b.current&&((v=u.current)==null||v.click())})})})});CS.displayName=SS;var fM="RadioGroupIndicator",kS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,a=wS(n);return r.jsx(vS,{...a,...s,ref:t})});kS.displayName=fM;var ES=NS,_S=CS,mM=kS;const PS=f.forwardRef(({className:e,...t},n)=>r.jsx(ES,{className:V("grid gap-2",e),...t,ref:n}));PS.displayName=ES.displayName;const Yp=f.forwardRef(({className:e,...t},n)=>r.jsx(_S,{ref:n,className:V("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(mM,{className:"flex items-center justify-center",children:r.jsx(gb,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Yp.displayName=_S.displayName;const wl=["sender","forms","mail","page"],TS=8;function hM(e){var n,s;const t={};return e.forms.forEach(a=>{t[a.key]={selected:a.selected,field:a.field}}),{senderEmail:e.sender.email,senderName:e.sender.name,forms:t,subject:e.mail.subject,design:e.mail.design,pageMode:e.page.mode,pageId:e.page.pageId||((s=(n=e.page.pages[0])==null?void 0:n.id)!=null?s:0)}}function Xp(e){if(e instanceof rd){const t=e.body;return t!=null&&t.errors&&Object.keys(t.errors).length?t.errors:{_:e.message}}return{_:l("Something went wrong. Please try again.")}}function pM(e){const t=e.lastIndexOf("@");return t===-1?"":e.slice(t+1).toLowerCase().replace(/^www\./,"")}function xM(){var se,M,Z;const e=Tn(),t=Ke(),{data:n,isLoading:s,isError:a}=Ne({queryKey:up,queryFn:H5,staleTime:1/0}),[o,i]=f.useState(0),[c,d]=f.useState(null),[u,h]=f.useState({}),[m,b]=f.useState(null),[v,w]=f.useState(null);f.useEffect(()=>{n&&!c&&(d(hM(n)),i(n.status==="done"?0:Math.min(n.step,wl.length-1)))},[n,c]);const g=(A,D=o)=>t.setQueryData(dp,{status:A,step:D,steps:wl.length}),j=ke({mutationFn:({name:A,data:D})=>W5(A,D)}),y=ke({mutationFn:q5}),p=ke({mutationFn:K5}),x=ke({mutationFn:Q5,onSuccess:()=>{g("skipped"),e("/")}}),N=j.isPending||p.isPending||y.isPending;if(a)return r.jsx(du,{children:r.jsx(ee,{children:r.jsxs(ne,{className:"p-6 space-y-3",children:[r.jsx("p",{children:l("The setup wizard could not be loaded.")}),r.jsx(U,{variant:"outline",onClick:()=>e("/"),children:l("Go to the dashboard")})]})})});if(s||!n||!c)return r.jsxs(du,{children:[r.jsx(ae,{className:"h-8 w-1/2"}),r.jsx(ae,{className:"h-64 w-full"})]});const S=A=>{d({...c,...A}),h({})},C=A=>{switch(A){case"sender":return{email:c.senderEmail,name:c.senderName};case"forms":return{forms:Object.entries(c.forms).filter(([,D])=>D.selected).map(([D,J])=>({key:D,field:J.field}))};case"mail":return{subject:c.subject,design:c.design};case"page":return c.pageMode==="new"?{mode:"new"}:{mode:"existing",pageId:c.pageId}}},E=async()=>{try{return await j.mutateAsync({name:wl[o],data:C(wl[o])}),!0}catch(A){return h(Xp(A)),!1}},k=async()=>{await E()&&(g("pending",o+1),i(o+1))},R=async()=>{var A,D;if(w(null),!!await E())try{const J=await y.mutateAsync();w((D=(A=J.data)==null?void 0:A.to)!=null?D:n.testMailTo)}catch(J){h(Xp(J))}},T=async()=>{var A;if(await E())try{const D=await p.mutateAsync();b((A=D.data)!=null?A:{enabled:[],incomplete:[]}),g("done",wl.length),t.invalidateQueries({queryKey:["forms"]}),t.invalidateQueries({queryKey:up})}catch(D){h(Xp(D))}};if(m)return r.jsx(du,{children:r.jsx(NM,{overview:n,draft:c,result:m,testMailSent:v!==null})});const F=n.forms.filter(A=>!A.enabled).filter(A=>{var D;return(D=c.forms[A.key])==null?void 0:D.selected}),B=F.every(A=>c.forms[A.key].field!==""),I=/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(c.senderEmail);return r.jsxs(du,{onSkip:()=>x.mutate(),skipDisabled:x.isPending,progress:r.jsx(gM,{current:o}),children:[o===0&&r.jsxs(uu,{title:l("Who sends the confirmation?"),lead:l("This is how the email appears in your visitors' inbox. It also applies to forms you switch on later."),error:u._,footer:r.jsx(fu,{step:o,onBack:()=>i(o-1),onNext:k,nextDisabled:!I||N}),children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsx(mu,{id:"setup-sender-name",label:l("Sender name"),prefilled:!0,error:u.name,children:r.jsx(Re,{id:"setup-sender-name",value:c.senderName,onChange:A=>S({senderName:A.target.value}),"aria-describedby":u.name?"setup-sender-name-error":void 0})}),r.jsx(mu,{id:"setup-sender-email",label:l("Sender address"),prefilled:!0,hint:l("Ideally an address on your own domain."),error:u.email,children:r.jsx(Re,{id:"setup-sender-email",type:"email",value:c.senderEmail,onChange:A=>S({senderEmail:A.target.value.trim()}),"aria-invalid":!I||!!u.email,"aria-describedby":u.email?"setup-sender-email-error":"setup-sender-email-hint"})})]}),I&&n.sender.domain!==""&&pM(c.senderEmail)!==n.sender.domain&&r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:re(l("This address does not belong to the domain of this site (%s)."),n.sender.domain)})," ",re(l("Many inboxes treat such mails as spam. Use an address ending in @%s."),n.sender.domain)]})]}),o===1&&r.jsxs(uu,{title:l("Which forms should ask for confirmation?"),lead:l("The regular form email is only sent after the visitor has clicked the confirmation link."),error:(se=u._)!=null?se:u.forms,footer:r.jsx(fu,{step:o,onBack:()=>i(o-1),onNext:k,nextDisabled:!B||N,nextLabel:F.length===0?l("Skip"):void 0}),children:[r.jsx(vM,{overview:n,draft:c,onChange:A=>S({forms:A})}),r.jsx(AS,{plugins:n.formPlugins})]}),o===2&&r.jsxs(uu,{title:l("This is what the confirmation email looks like"),lead:l("Text and design apply to all selected forms. You can change them per form later."),error:u._,footer:r.jsx(fu,{step:o,onBack:()=>i(o-1),onNext:k,nextDisabled:c.subject.trim()===""||N}),children:[r.jsx(mu,{id:"setup-subject",label:l("Subject"),prefilled:!0,error:u.subject,children:r.jsx(Re,{id:"setup-subject",value:c.subject,onChange:A=>S({subject:A.target.value}),"aria-describedby":u.subject?"setup-subject-error":void 0})}),r.jsx(jM,{value:c.design,designs:n.mail.designs,onChange:A=>S({design:A})}),r.jsx(wM,{subject:c.subject,design:c.design}),!ra("email-editor")&&n.editorUrl!==""&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Your own designs with images, columns and logo?")," ",r.jsx("a",{className:"text-amber-700 dark:text-amber-400 underline",href:n.editorUrl,target:"_blank",rel:"noopener noreferrer",children:l("See the email editor (Pro)")})]})]}),o===3&&r.jsxs(uu,{title:l("What does the visitor see after clicking?"),lead:l("This page appears as soon as someone has confirmed their address."),error:(Z=(M=u._)!=null?M:u.page)!=null?Z:u.testMail,footer:r.jsx(fu,{step:o,onBack:()=>i(o-1),onNext:T,nextDisabled:N||c.pageMode==="existing"&&!c.pageId,nextLabel:l("Finish setup")}),children:[r.jsxs(PS,{value:c.pageMode,onValueChange:A=>S({pageMode:A}),"aria-label":l("Confirmation page"),children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Yp,{id:"setup-page-new",value:"new"}),r.jsx(Y,{htmlFor:"setup-page-new",className:"font-normal",children:l("Create and publish the page “Email address confirmed”")}),r.jsx(RS,{label:l("recommended")})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Yp,{id:"setup-page-existing",value:"existing",disabled:n.page.pages.length===0}),r.jsx(Y,{htmlFor:"setup-page-existing",className:"font-normal",children:l("Use an existing page")})]})]}),c.pageMode==="existing"&&r.jsx(mu,{id:"setup-page-select",label:l("Page"),error:u.pageId,children:r.jsx("select",{id:"setup-page-select",className:"flex h-10 w-full rounded-md border border-input bg-background px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",value:c.pageId,onChange:A=>S({pageId:Number(A.target.value)}),"aria-describedby":u.pageId?"setup-page-select-error":void 0,children:n.page.pages.map(A=>r.jsx("option",{value:A.id,children:A.title||`#${A.id}`},A.id))})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-sm font-medium",children:l("Test")}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsxs(U,{type:"button",variant:"outline",onClick:R,disabled:N,children:[r.jsx(On,{className:"mr-2 h-4 w-4"}),l("Send me a test email")]}),n.testMailTo!==""&&r.jsx("span",{className:"text-xs text-muted-foreground",children:re(l("goes to %s"),n.testMailTo)})]}),v&&r.jsxs(So,{tone:"ok",children:[r.jsx("strong",{children:re(l("Test email sent to %s."),v)})," ",l("The link in it leads to the confirmation page and confirms nothing.")]})]})]})]})}function du({children:e,onSkip:t,skipDisabled:n,progress:s}){return r.jsx("div",{className:"min-h-[70vh] bg-background px-4 py-8",children:r.jsxs("div",{className:"mx-auto grid w-full max-w-2xl gap-5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsxs("span",{className:"flex items-center gap-2 text-sm font-semibold",children:[r.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-primary text-primary-foreground",children:r.jsx(cs,{className:"h-4 w-4","aria-hidden":"true"})}),l("Set up Double Opt-In")]}),t&&r.jsx("button",{type:"button",onClick:t,disabled:n,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:l("Set up later")})]}),s,e]})})}function gM({current:e}){const t=[l("Sender"),l("Forms"),l("Confirmation email"),l("After the click")];return r.jsx("ol",{className:"grid grid-cols-4 gap-2","aria-label":l("Progress"),children:t.map((n,s)=>r.jsxs("li",{"aria-current":s===e?"step":void 0,className:V("grid gap-1.5 text-xs",s===e?"font-semibold text-foreground":"text-muted-foreground"),children:[r.jsx("span",{className:V("h-1 rounded-full",s<=e?"bg-primary":"bg-border")}),r.jsxs("span",{className:"truncate",children:[s+1," ",n]})]},n))})}function uu({title:e,lead:t,error:n,footer:s,children:a}){return r.jsx(ee,{children:r.jsxs(ne,{className:"grid gap-5 p-6",children:[r.jsxs("div",{className:"grid gap-1",children:[r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t})]}),a,n&&r.jsx(So,{tone:"warn",role:"alert",children:n}),s]})})}function fu({step:e,onBack:t,onNext:n,nextDisabled:s,nextLabel:a}){return r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e>0?r.jsx(U,{type:"button",variant:"outline",onClick:t,children:l("Back")}):r.jsx("span",{className:"text-xs text-muted-foreground",children:l("Takes about 3 minutes")}),r.jsxs(U,{type:"button",onClick:n,disabled:s,children:[a!=null?a:l("Next"),r.jsx(Wi,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})]})}function mu({id:e,label:t,hint:n,error:s,prefilled:a,children:o}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsxs(Y,{htmlFor:e,className:"flex items-center gap-2",children:[t,a&&r.jsx(RS,{label:l("prefilled")})]}),o,n&&!s&&r.jsx("span",{id:`${e}-hint`,className:"text-xs text-muted-foreground",children:n}),s&&r.jsx("span",{id:`${e}-error`,className:"text-xs text-destructive",children:s})]})}function RS({label:e}){return r.jsx("span",{className:"rounded bg-primary/10 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wide text-primary",children:e})}function So({tone:e,role:t,children:n}){return r.jsxs("div",{role:t,className:V("flex gap-2 rounded-md px-3 py-2.5 text-sm",e==="warn"?"bg-orange-50 text-orange-900 dark:bg-orange-950/40 dark:text-orange-200":"bg-emerald-50 text-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-200"),children:[e==="warn"?r.jsx(Nt,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}):r.jsx(cs,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),r.jsx("div",{children:n})]})}function vM({overview:e,draft:t,onChange:n}){var h;const[s,a]=f.useState(!1),o=e.forms,i=Object.keys((h=e.integrations)!=null?h:{}),c=new Set(o.map(m=>m.integration)).size>1;if(!e.cf7.installed&&i.length===0)return r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:l("Contact Form 7 is not installed.")})," ",l("The free plugin protects Contact Form 7 forms. Install it, create a form and come back here.")," ",r.jsx("a",{className:"underline",href:e.cf7.installUrl,children:l("Install Contact Form 7")})]});if(o.length===0){const m=i.length===0||i.length===1&&i[0]==="cf7";return r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:l(m?"There is no Contact Form 7 form yet.":"There is no form yet.")})," ",l("Create one and come back here. You can also skip this step.")," ",e.cf7.installed&&r.jsx("a",{className:"underline",href:e.cf7.newFormUrl,children:l("Create a form")})]})}const d=s?o:o.slice(0,TS),u=(m,b)=>n({...t.forms,[m.key]:{...t.forms[m.key],...b}});return r.jsxs("div",{className:"grid gap-2",children:[d.map(m=>{const b=t.forms[m.key],v=b.selected&&b.field==="",w=m.key.replace(/[^a-zA-Z0-9_-]/g,"-"),g=`setup-form-${w}`,j=`setup-form-field-${w}`;return r.jsxs("div",{className:V("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-2 rounded-md border p-3 sm:grid-cols-[auto_1fr_12rem]",v&&"border-orange-400"),children:[r.jsx(jo,{id:g,checked:m.enabled||b.selected,disabled:m.enabled,onCheckedChange:y=>u(m,{selected:y===!0})}),r.jsxs(Y,{htmlFor:g,className:"grid cursor-pointer gap-0.5 font-normal",children:[r.jsxs("span",{className:"font-medium",children:[m.title,c&&r.jsx("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:m.integrationName})]}),r.jsx("span",{className:"text-xs text-muted-foreground",children:m.enabled?l("Double Opt-In is already active — this form stays as it is."):m.detectedField?l("Email field detected automatically"):l("No email field detected, please choose one")})]}),!m.enabled&&r.jsxs("select",{id:j,"aria-label":re(l("Email field for %s"),m.title),className:"col-span-2 flex h-9 w-full rounded-md border border-input bg-background px-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:col-span-1",value:b.field,onChange:y=>u(m,{field:y.target.value,selected:y.target.value!==""||b.selected}),children:[r.jsx("option",{value:"",children:l("Choose email field …")}),m.fields.map(y=>r.jsx("option",{value:y.key,children:y.label===y.key?y.key:`${y.label} (${y.key})`},y.key))]})]},m.key)}),!s&&o.length>TS&&r.jsx(U,{type:"button",variant:"ghost",className:"justify-self-start",onClick:()=>a(!0),children:re(l("Show all %d forms"),o.length)})]})}function AS({plugins:e}){return e.length===0?null:r.jsx("div",{className:"grid gap-2",children:e.map(t=>r.jsxs("div",{className:"grid gap-1 rounded-md border border-dashed border-amber-500 bg-amber-50 p-3 text-sm dark:bg-amber-950/30",children:[r.jsxs("span",{children:[r.jsx("strong",{className:"text-amber-800 dark:text-amber-300",children:re(l("%s detected."),t.name)})," ",re(l("Forms built with %s do not have Double Opt-In yet. There is an addon for that."),t.name)]}),t.productUrl!==""&&r.jsxs("a",{href:t.productUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-semibold text-amber-800 underline dark:text-amber-300",children:[re(l("See the %s addon"),t.name),r.jsx(io,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]},t.id))})}const yM={light:()=>l("Light"),dark:()=>l("Dark"),accent:()=>l("Accent"),plain:()=>l("Text only")},bM={light:{page:"#f3f4f6",card:"#ffffff",button:"#2271b1"},dark:{page:"#0f1216",card:"#1c2128",button:"#3b82f6"},accent:{page:"#fdf6dd",card:"#ffffff",button:"#f5c518"},plain:{page:"#ffffff",card:"#ffffff"}};function jM({value:e,designs:t,onChange:n}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsx("span",{className:"text-sm font-medium",id:"setup-design-label",children:l("Design")}),r.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"group","aria-labelledby":"setup-design-label",children:t.map(s=>{const a=bM[s];return r.jsxs("button",{type:"button","aria-pressed":e===s,onClick:()=>n(s),className:V("grid gap-1.5 rounded-md border-2 p-2 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e===s?"border-primary":"border-border"),children:[r.jsx("span",{className:"grid aspect-[4/3] content-center justify-items-center gap-1 rounded p-2",style:{background:a.page},"aria-hidden":"true",children:r.jsxs("span",{className:"grid w-full gap-1 rounded-sm p-1.5",style:{background:a.card},children:[r.jsx("span",{className:"h-1 w-3/4 rounded bg-slate-300"}),r.jsx("span",{className:"h-1 w-full rounded bg-slate-200"}),a.button?r.jsx("span",{className:"mx-auto h-1.5 w-1/2 rounded",style:{background:a.button}}):r.jsx("span",{className:"h-1 w-1/2 rounded bg-sky-400"})]})}),yM[s]()]},s)})})]})}function wM({subject:e,design:t}){return r.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/40 p-3 text-sm","aria-label":l("Preview of the email text"),children:[r.jsx("strong",{children:e}),r.jsx("span",{children:l("Hello, this email address was just entered on our site. To make sure it was really you, please confirm it with one click.")}),r.jsx("span",{className:"font-mono text-xs text-primary",children:t==="plain"?"[doubleoptinlink]":`[ ${l("Confirm email address")} ]`}),r.jsx("span",{className:"text-muted-foreground",children:l("If you did not request this, simply ignore this email. Nothing happens without your confirmation.")})]})}function NM({overview:e,draft:t,result:n,testMailSent:s}){const a=f.useMemo(()=>{const o=new Map(e.forms.map(i=>[i.key,i.title]));return{enabled:n.enabled.map(i=>{var c;return(c=o.get(i))!=null?c:`#${i}`}),incomplete:n.incomplete.map(i=>{var c;return(c=o.get(i.id))!=null?c:`#${i.id}`})}},[e,n]);return r.jsx(ee,{children:r.jsxs(ne,{className:"grid gap-5 p-6",children:[r.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300",children:r.jsx(cs,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:l("Double Opt-In is set up")}),r.jsxs("ul",{className:"grid gap-2 text-sm",children:[r.jsx(hu,{children:re(l("Sender: %1$s <%2$s>"),t.senderName,t.senderEmail)}),r.jsx(hu,{children:a.enabled.length>0?re(l("Double Opt-In active for: %s"),a.enabled.join(", ")):l("No form switched on yet — you can do that under Forms.")}),r.jsx(hu,{children:t.pageMode==="new"?l("Confirmation page “Email address confirmed” created and published"):l("Confirmation page: existing page")}),s&&r.jsx(hu,{children:l("Test email sent")})]}),a.incomplete.length>0&&r.jsx(So,{tone:"warn",children:re(l("Not switched on because settings are missing: %s"),a.incomplete.join(", "))}),r.jsx(AS,{plugins:e.formPlugins}),r.jsxs("div",{className:"flex flex-wrap justify-between gap-3",children:[r.jsx(U,{asChild:!0,variant:"outline",children:r.jsx(xt,{to:"/forms",children:l("Forms")})}),r.jsx(U,{asChild:!0,children:r.jsx(xt,{to:"/",children:l("Go to the dashboard")})})]})]})})}function hu({children:e}){return r.jsxs("li",{className:"flex gap-2",children:[r.jsx(cs,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600","aria-hidden":"true"}),r.jsx("span",{children:e})]})}function SM(){return r.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[r.jsx("h1",{className:"text-4xl font-bold",children:"404"}),r.jsx("p",{className:"text-muted-foreground",children:l("Page not found")}),r.jsx(xt,{to:"/",className:"text-primary hover:underline",children:l("Return to Dashboard")})]})}function CM(){const{id:e=""}=$i(),t=/^[a-z0-9-]{1,40}$/.test(e)?e:"";return t===""?null:r.jsx(kr,{addonId:t,featureName:t,children:r.jsx($n,{id:`page.${t}`})})}const kM=new Q2({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),EM=()=>(f.useEffect(()=>{f_()},[]),r.jsx(G2,{client:kM,children:r.jsxs(Tj,{children:[r.jsx(ST,{}),r.jsx(nR,{}),r.jsx(U4,{children:r.jsx(t_,{children:r.jsxs(KE,{children:[r.jsxs(Ye,{element:r.jsx(L5,{}),children:[r.jsx(Ye,{path:"/",element:r.jsx(nO,{})}),r.jsx(Ye,{path:"/analytics",element:r.jsx(kr,{addonId:"analytics",featureName:"Analytics",children:r.jsx($n,{id:"page.analytics"})})}),r.jsx(Ye,{path:"/optins",element:r.jsx(XO,{})}),r.jsx(Ye,{path:"/optins/:id",element:r.jsx(v3,{})}),r.jsx(Ye,{path:"/forms",element:r.jsx(E3,{})}),r.jsx(Ye,{path:"/forms/:integration/:id/settings",element:r.jsx(X3,{})}),r.jsx(Ye,{path:"/categories",element:r.jsx($N,{})}),r.jsx(Ye,{path:"/categories/:id",element:r.jsx($N,{})}),r.jsx(Ye,{path:"/settings",element:r.jsx(eI,{})}),r.jsx(Ye,{path:"/email-templates",element:r.jsx(kr,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(tI,{})})}),r.jsx(Ye,{path:"/email-templates/new",element:r.jsx(kr,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(mS,{})})}),r.jsx(Ye,{path:"/email-templates/:id/edit",element:r.jsx(kr,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(mS,{})})}),r.jsx(Ye,{path:"/database",element:r.jsx(nI,{})}),r.jsx(Ye,{path:"/opt-out",element:r.jsx(kr,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx(vI,{})})}),r.jsx(Ye,{path:"/user-creation",element:r.jsx(kr,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(NI,{})})}),r.jsx(Ye,{path:"/api",element:r.jsx(kr,{addonId:"cleverreach",featureName:"CleverReach",children:r.jsx(CI,{})})}),r.jsx(Ye,{path:"/audit",element:r.jsx(rM,{})}),r.jsx(Ye,{path:"/license",element:r.jsx(kI,{})}),r.jsx(Ye,{path:"/addons",element:r.jsx(EI,{})}),r.jsx(Ye,{path:"/addon-settings/:id",element:r.jsx(JI,{})}),r.jsx(Ye,{path:"/addon/:id",element:r.jsx(CM,{})})]}),r.jsx(Ye,{path:"/setup",element:r.jsx(xM,{})}),r.jsx(Ye,{path:"*",element:r.jsx(SM,{})})]})})})]})})),OS=document.getElementById("doi-admin-root");OS&&Iy(OS).render(r.jsx(EM,{}))})(wp.i18n); | |
| 478 | +10minutemail.com`;function PI(){var h,m,v,x;const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["settings"],queryFn:()=>Y("/settings")}),[s,a]=f.useState({}),[o,i]=f.useState(!1);f.useEffect(()=>{var j,b,w;t!=null&&t.data&&!o&&(a({domain_blocklist:(j=t.data.domain_blocklist)!=null?j:"",domain_blocklist_behavior:(b=t.data.domain_blocklist_behavior)!=null?b:"silent",domain_blocklist_message:(w=t.data.domain_blocklist_message)!=null?w:""}),i(!0))},[t,o]);const c=ke({mutationFn:()=>Y("/settings",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>{K.success(l("Domain blocklist settings saved.")),e.invalidateQueries({queryKey:["settings"]})},onError:j=>{K.error(j.message||l("Failed to save domain blocklist settings."))}});function d(j,b){a(w=>({...w,[j]:b}))}const u=((h=s.domain_blocklist)!=null?h:"").split(` | |
| 479 | +`).map(j=>j.trim()).filter(j=>j!=="").length;return r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Domain blocklist")}),r.jsx(Re,{children:l("Reject opt-in submissions where the recipient's email domain matches one of the configured entries. Designed for disposable-mail services (tempmail.com, mailinator, etc.) and known spam sources. Matching is exact, case-insensitive, one domain per line.")})]}),r.jsx(te,{className:"space-y-5",children:n?r.jsx(ae,{className:"h-40 w-full"}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"domain-blocklist",children:se(l(u===1?"Blocked domains (%d entry)":"Blocked domains (%d entries)"),u)}),r.jsx(Tr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:_I,value:(m=s.domain_blocklist)!=null?m:"",onChange:j=>d("domain_blocklist",j.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("One domain per line. No")," ",r.jsx("code",{children:"@"}),l(", no protocol, no wildcards. Submissions to")," ",r.jsx("code",{children:"user@<domain>"})," ",l("are rejected on exact match.")]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"domain-behavior",children:l("Validation behaviour")}),r.jsxs(we,{value:(v=s.domain_blocklist_behavior)!=null?v:"silent",onValueChange:j=>d("domain_blocklist_behavior",j),children:[r.jsx(ye,{id:"domain-behavior",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"silent",children:l("Silent rejection — drop the opt-in without telling the user")}),r.jsx(z,{value:"block",children:l("Show error message — surface a validation error at the form")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Silent")})," ",l("is the typical choice for spam suppression — bots get a fake success, real users see nothing.")," ",r.jsx("strong",{children:l("Block")})," ",l("is appropriate if your blocklist also blocks legit-typo domains the user might want to correct.")]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"domain-message",children:l("Custom error message")}),r.jsx(Pe,{id:"domain-message",className:"mt-1.5",placeholder:EI,value:(x=s.domain_blocklist_message)!=null?x:"",onChange:j=>d("domain_blocklist_message",j.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown when behaviour is set to")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty to use the default text.")]})]}),r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("The blocklist is read once per request and cached in a static property — changes here take effect on the next form submission, no cache flush needed.")})]}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-2 border-t",children:r.jsxs(V,{onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save blocklist")]})})]})})]})}const Bp={all:{title:l("All forms (defaults apply everywhere)"),hint:l("Every form runs Unique Email with the default settings below. Use the conditions list to override single forms only.")},selected:{title:l("Only selected forms (opt-in list)"),hint:l("Unique Email runs ONLY for forms in the conditions list. Forms not listed are unaffected.")},all_except:{title:l("All forms EXCEPT selected (opt-out list)"),hint:l("Every form runs Unique Email EXCEPT those in the conditions list.")}};function TI(e,t,n){return t==="form"?e==="all"?{headline:l("Per-form check on every form"),detail:l("At submit time, the validator looks up the email in the SAME form only. The same address may opt into Form A AND Form B without conflict.")}:e==="selected"?{headline:se(l("Per-form check on the %d listed form%s"),n,n===1?"":"s"),detail:l("The validator only runs on forms in the list. Each listed form checks for duplicates WITHIN ITSELF — they do not affect each other. Forms not listed are completely ignored.")}:{headline:se(l("Per-form check on every form EXCEPT the %d listed"),n),detail:l("Every form runs a per-form duplicate check on itself, except the excluded forms (which skip the check entirely).")}:e==="all"?{headline:l("Sitewide check on every form"),detail:l("At submit time, the validator looks up the email across the ENTIRE opt-in database — every form, every integration. One email = one opt-in across the whole site (former Single Mail Registration behavior).")}:e==="selected"?n===0?{headline:l("Sitewide — but the list is empty"),detail:l("Add at least one form to the list. Until you do, Unique Email is effectively off because mode=selected with no entries excludes every form.")}:{headline:se(l("Sitewide pool over the %d listed form%s"),n,n===1?"":"s"),detail:se(l("At submit time on any listed form, the validator looks up the email across all %d listed forms — but NOT against other forms on the site. Example: a submission on Form A is rejected if the same email already opted into Form A or Form B. Forms not in the list are completely ignored — they neither feed records into the check nor get checked themselves."),n)}:n===0?{headline:l("Sitewide check on every form"),detail:l("No exclusions are configured, so this behaves like Mode = All. Pool is the entire opt-in database.")}:{headline:se(l("Sitewide pool over every form EXCEPT the %d excluded"),n),detail:se(l("At submit time on any non-excluded form, the validator looks up the email across all forms on the site EXCEPT the %d excluded. The excluded forms are bypassed entirely — they neither get checked nor feed records into the check."),n)}}const RI={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function AI(){const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["addon-settings","unique-email"],queryFn:()=>Y("/addons/unique-email/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms")}),[a,o]=f.useState(RI),[i,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var g,N,S,k,_,C,R,T,O,D,B,I;if(!t||i)return;const p=(g=t.data)!=null?g:t;o({enabled:p.enabled!==!1,mode:(N=p.mode)!=null?N:"all",defaults:{scope:(k=(S=p.defaults)==null?void 0:S.scope)!=null?k:"confirmed",behavior:(C=(_=p.defaults)==null?void 0:_.behavior)!=null?C:"block",match_scope:(T=(R=p.defaults)==null?void 0:R.match_scope)!=null?T:"form",message:(D=(O=p.defaults)==null?void 0:O.message)!=null?D:"",redirect_page:Number((I=(B=p.defaults)==null?void 0:B.redirect_page)!=null?I:0)},conditions:Array.isArray(p.conditions)?p.conditions:[]}),c(!0)},[t,i]);const h=f.useMemo(()=>{var N;const p=(N=s==null?void 0:s.data)!=null?N:{},g=[];for(const[S,k]of Object.entries(p))if(k)for(const _ of k.forms){const C=Number(typeof _.id=="string"?_.id.split("_")[0]:_.id);C&&g.push({key:`${S}_${C}`,integration:S,integrationName:k.name,formId:C,title:_.title||`#${C}`})}return g},[s]),m=(p,g)=>{const N=h.find(S=>S.integration===p&&S.formId===g);return N?`${N.integrationName} / ${N.title}`:`${p} / #${g}`},v=ke({mutationFn:()=>Y("/addons/unique-email/settings",{method:"POST",body:JSON.stringify(a)}),onSuccess:()=>{K.success(l("Unique Email settings saved.")),e.invalidateQueries({queryKey:["addon-settings","unique-email"]})},onError:p=>{K.error(p.message||l("Failed to save Unique Email settings."))}});function x(p,g){o(N=>({...N,defaults:{...N.defaults,[p]:g}}))}function j(){if(!d)return;const p=h.find(g=>g.key===d);if(p){if(a.conditions.some(g=>g.integration===p.integration&&g.form_id===p.formId)){K.warning(l("This form is already in the list."));return}o(g=>({...g,conditions:[...g.conditions,{integration:p.integration,form_id:p.formId,scope:null,behavior:null,match_scope:null,message:null,redirect_page:null}]})),u("")}}function b(p){o(g=>({...g,conditions:g.conditions.filter((N,S)=>S!==p)}))}function w(p,g,N){o(S=>({...S,conditions:S.conditions.map((k,_)=>_===p?{...k,[g]:N}:k)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const y=TI(a.mode,a.defaults.match_scope,a.conditions.length);return r.jsxs(r.Fragment,{children:[r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("How Unique Email applies")}),r.jsx(Re,{children:l("Pick whether Unique Email runs on every form, only the forms you select, or every form except the ones you exclude. The defaults below apply to every form that's in scope; the conditions list lets you override individual settings per form.")})]}),r.jsxs(te,{className:"space-y-3",children:[Object.keys(Bp).map(p=>r.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(a.mode===p?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-mode",value:p,checked:a.mode===p,onChange:()=>o(g=>({...g,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Bp[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Bp[p].hint})]})]},p)),r.jsxs("div",{className:"mt-2 rounded-lg border border-primary/30 bg-primary/5 p-3",children:[r.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary mb-1",children:l("Resulting behavior")}),r.jsx("div",{className:"text-sm font-medium",children:y.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:y.detail})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Default settings")}),r.jsx(Re,{children:l("Applied to every form in scope. Per-form entries below can override these individually — leave an override empty to inherit.")})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"ue-scope",children:l("Scope")}),r.jsxs(we,{value:a.defaults.scope,onValueChange:p=>x("scope",p),children:[r.jsx(ye,{id:"ue-scope",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"confirmed",children:l("Confirmed opt-ins only")}),r.jsx(z,{value:"all",children:l("All opt-ins (incl. unconfirmed)")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("Confirmed")}),l(": users can re-submit until they confirm once.")," ",r.jsx("strong",{children:l("All")}),l(': stricter — any prior attempt blocks. Use "all" to suppress double-submit bots.')]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"ue-behavior",children:l("Behavior on duplicate")}),r.jsxs(we,{value:a.defaults.behavior,onValueChange:p=>x("behavior",p),children:[r.jsx(ye,{id:"ue-behavior",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"silent",children:l("Silent rejection")}),r.jsx(z,{value:"block",children:l("Show error message")}),r.jsx(z,{value:"redirect",children:l("Redirect to page")})]})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{children:l("Match scope")}),r.jsx("div",{className:"grid gap-2 sm:grid-cols-2 mt-1.5",children:[{value:"form",title:l("Per form"),hint:l("The same address may opt into Form A AND Form B.")},{value:"sitewide",title:l("Sitewide"),hint:l("One email = one opt-in across every form on the site (formerly Single Mail Registration).")}].map(p=>r.jsxs("label",{className:"flex items-start gap-2 rounded-lg border p-3 cursor-pointer transition-colors "+(a.defaults.match_scope===p.value?"border-primary bg-primary/5":"hover:border-foreground/30"),children:[r.jsx("input",{type:"radio",name:"unique-email-match-scope",value:p.value,checked:a.defaults.match_scope===p.value,onChange:()=>x("match_scope",p.value),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:p.title}),r.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:p.hint})]})]},p.value))})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"ue-message",children:l("Custom error message")}),r.jsx(Pe,{id:"ue-message",className:"mt-1.5",placeholder:l("This email address has already been used for this form."),value:a.defaults.message,onChange:p=>x("message",p.target.value)}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Only shown for")," ",r.jsx("em",{children:l("Show error message")}),"."," ",l("Leave empty for the default text.")]})]})]})]}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(de,{children:[r.jsx(ue,{children:a.mode==="selected"?l("Forms to apply Unique Email to"):a.mode==="all_except"?l("Forms to exclude from Unique Email"):l("Per-form overrides")}),r.jsxs(Re,{children:[a.mode==="all"&&a.defaults.match_scope==="form"&&l("All forms are in scope by default with a per-form check. Add entries here to override the defaults for specific forms."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("All forms are in scope with a sitewide check — the lookup runs across the entire opt-in database. Add entries here to override the defaults for specific forms."),a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Only the forms in this list run Unique Email. Each listed form checks duplicates within itself — they do not affect each other."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("The forms in this list form a sitewide pool. A submission on any of them is rejected if the email already opted into ANY OTHER form in the list. Forms not in the list are completely outside this check."),a.mode==="all_except"&&a.defaults.match_scope==="form"&&l("These forms are exempt from Unique Email checks. All other forms run a per-form duplicate check on themselves."),a.mode==="all_except"&&a.defaults.match_scope==="sitewide"&&l("These forms are exempt entirely — neither checked nor counted. Every other form on the site runs a sitewide check whose pool spans all non-excluded forms.")]})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:d,onValueChange:u,children:[r.jsx(ye,{className:"flex-1",children:r.jsx(Ne,{placeholder:l("Select a form to add…")})}),r.jsx(be,{children:h.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):h.map(p=>r.jsxs(z,{value:p.key,children:[p.integrationName," / ",p.title]},p.key))})]}),r.jsxs(V,{onClick:j,disabled:!d,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add")]})]}),a.conditions.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("No forms in the list yet.")," ",a.mode==="selected"&&a.defaults.match_scope==="form"&&l("Unique Email is currently inactive on every form — add at least one above."),a.mode==="selected"&&a.defaults.match_scope==="sitewide"&&l("Unique Email is currently inactive on every form. Even though the match scope is sitewide, mode=selected with an empty list excludes everything. Add at least two forms to make the sitewide pool meaningful."),a.mode==="all_except"&&l("Unique Email is active on every form with the defaults above."),a.mode==="all"&&a.defaults.match_scope==="form"&&l("Unique Email is active on every form with a per-form check. Use this list to override settings per form."),a.mode==="all"&&a.defaults.match_scope==="sitewide"&&l("Unique Email is active on every form with a sitewide check (equivalent to the legacy Single Mail Registration). Use this list only if you need per-form overrides.")]})]}):r.jsx("div",{className:"space-y-3",children:a.conditions.map((p,g)=>{var N,S,k,_;return r.jsxs("div",{className:"rounded-lg border p-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:m(p.integration,p.form_id)}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>b(g),title:l("Remove from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),a.mode!=="all_except"&&r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4 mt-3",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override scope")}),r.jsxs(we,{value:(N=p.scope)!=null?N:"__inherit",onValueChange:C=>w(g,"scope",C==="__inherit"?null:C),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a.defaults.scope)}),r.jsx(z,{value:"confirmed",children:l("Confirmed")}),r.jsx(z,{value:"all",children:l("All")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override behavior")}),r.jsxs(we,{value:(S=p.behavior)!=null?S:"__inherit",onValueChange:C=>w(g,"behavior",C==="__inherit"?null:C),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a.defaults.behavior)}),r.jsx(z,{value:"silent",children:l("Silent")}),r.jsx(z,{value:"block",children:l("Block")}),r.jsx(z,{value:"redirect",children:l("Redirect")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override match scope")}),r.jsxs(we,{value:(k=p.match_scope)!=null?k:"__inherit",onValueChange:C=>w(g,"match_scope",C==="__inherit"?null:C),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"__inherit",children:se(l("Inherit (%s)"),a.defaults.match_scope)}),r.jsx(z,{value:"form",children:l("Per form")}),r.jsx(z,{value:"sitewide",children:l("Sitewide")})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Override message")}),r.jsx(Pe,{className:"mt-1 h-9 text-xs",placeholder:l("(inherit)"),value:(_=p.message)!=null?_:"",onChange:C=>w(g,"message",C.target.value===""?null:C.target.value)})]})]})]},`${p.integration}_${p.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(V,{onClick:()=>v.mutate(),disabled:v.isPending,children:[v.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save Unique Email settings")]})})]})]})]})}const JN={equals:l("Equals"),not_equals:l("Not equals"),contains:l("Contains"),not_empty:l("Not empty"),empty:l("Empty")},OI=new Set(["not_empty","empty"]),II={enabled:!0,forms:[]};function MI(){return`rule_${Math.random().toString(36).slice(2,10)}`}function eS(){return{id:MI(),field:"",operator:"equals",value:"",template:"",priority:10}}function DI(){var C;const e=qe(),{data:t,isLoading:n}=Ce({queryKey:["addon-settings","conditional"],queryFn:()=>Y("/addons/conditional/settings")}),{data:s}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms")}),{data:a}=Ce({queryKey:["email-templates-list"],queryFn:()=>Y("/settings/email-templates-list")}),[o,i]=f.useState(II),[c,d]=f.useState(!1),[u,h]=f.useState("");f.useEffect(()=>{var T;if(!t||c)return;const R=(T=t.data)!=null?T:t;i({enabled:R.enabled!==!1,forms:Array.isArray(R.forms)?R.forms:[]}),d(!0)},[t,c]);const m=f.useMemo(()=>{var O;const R=(O=s==null?void 0:s.data)!=null?O:{},T=[];for(const[D,B]of Object.entries(R))if(B)for(const I of B.forms){const re=typeof I.id=="string"?I.id:String(I.id),F=Number(re.split("_")[0]);F&&T.push({key:`${D}_${re}`,integration:D,integrationName:B.name,formId:F,restId:re,title:I.title||`#${F}`})}return T},[s]),v=(R,T)=>{const O=m.find(D=>D.integration===R&&D.formId===T);return O?O.restId:String(T)},x=(R,T)=>{const O=m.find(D=>D.integration===R&&D.formId===T);return O?`${O.integrationName} / ${O.title}`:`${R} / #${T}`},j=V2({queries:o.forms.map(R=>{const T=v(R.integration,R.form_id);return{queryKey:["form-fields",R.integration,T],queryFn:()=>Y(`/forms/${R.integration}/${T}/fields`),staleTime:5*60*1e3,retry:!1}})}),b=(R,T)=>{var B;const O=o.forms.findIndex(I=>I.integration===R&&I.form_id===T);if(O===-1)return[];const D=j[O];return D!=null&&D.data?(B=D.data.data)!=null?B:[]:[]},w=ke({mutationFn:()=>Y("/addons/conditional/settings",{method:"POST",body:JSON.stringify(o)}),onSuccess:()=>{K.success(l("Conditional Templates settings saved.")),e.invalidateQueries({queryKey:["addon-settings","conditional"]})},onError:R=>{K.error(R.message||l("Failed to save Conditional Templates settings."))}});function y(){if(!u)return;const R=m.find(T=>T.key===u);if(R){if(o.forms.some(T=>T.integration===R.integration&&T.form_id===R.formId)){K.warning(l("This form is already in the list."));return}i(T=>({...T,forms:[...T.forms,{integration:R.integration,form_id:R.formId,fallback_template:"blank",rules:[eS()]}]})),h("")}}function p(R){i(T=>({...T,forms:T.forms.filter((O,D)=>D!==R)}))}function g(R,T,O){i(D=>({...D,forms:D.forms.map((B,I)=>I===R?{...B,[T]:O}:B)}))}function N(R){i(T=>({...T,forms:T.forms.map((O,D)=>D===R?{...O,rules:[...O.rules,eS()]}:O)}))}function S(R,T){i(O=>({...O,forms:O.forms.map((D,B)=>B===R?{...D,rules:D.rules.filter((I,re)=>re!==T)}:D)}))}function k(R,T,O,D){i(B=>({...B,forms:B.forms.map((I,re)=>re===R?{...I,rules:I.rules.map((F,ne)=>ne===T?{...F,[O]:D}:F)}:I)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const _=(C=a==null?void 0:a.data)!=null?C:[];return r.jsxs(r.Fragment,{children:[r.jsx(ee,{className:"mt-6",children:r.jsxs(de,{children:[r.jsx(ue,{children:l("How Conditional Templates work")}),r.jsx(Re,{children:l("Pick a form and define rules that decide which email template to send based on the form's submitted field values. Forms not in this list use their normal template. Rules are evaluated by priority (lower runs first); the first matching rule wins. If no rule matches, the form's fallback template applies.")})]})}),r.jsxs(ee,{className:"mt-6",children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Forms with conditional templates")}),r.jsx(Re,{children:l("Add a form below to start configuring per-field template rules for it.")})]}),r.jsxs(te,{className:"space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:u,onValueChange:h,children:[r.jsx(ye,{className:"flex-1",children:r.jsx(Ne,{placeholder:l("Select a form to add…")})}),r.jsx(be,{children:m.length===0?r.jsx(z,{value:"__empty",disabled:!0,children:l("No forms detected")}):m.map(R=>r.jsxs(z,{value:R.key,children:[R.integrationName," / ",R.title]},R.key))})]}),r.jsxs(V,{onClick:y,disabled:!u,children:[r.jsx(lo,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),o.forms.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-accent p-3",children:[r.jsx(yt,{className:"h-4 w-4 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:l("No forms configured yet. Conditional Templates is inactive on every form. Add at least one form above to start.")})]}):r.jsx("div",{className:"space-y-4",children:o.forms.map((R,T)=>{const O=b(R.integration,R.form_id),D=j[T];return r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm font-medium",children:x(R.integration,R.form_id)}),r.jsx(V,{variant:"ghost",size:"sm",onClick:()=>p(T),title:l("Remove form from list"),children:r.jsx(vn,{className:"h-4 w-4"})})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Fallback template")}),r.jsxs(we,{value:R.fallback_template||"blank",onValueChange:B=>g(T,"fallback_template",B),children:[r.jsx(ye,{className:"mt-1 h-9 text-xs",children:r.jsx(Ne,{})}),r.jsx(be,{children:_.length===0?r.jsx(z,{value:"blank",children:l("Default (blank)")}):_.map(B=>r.jsx(z,{value:B.id,children:B.title},B.id))})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Used when no rule matches the submitted data.")})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-xs",children:l("Rules")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 mb-2",children:l("Lower priority runs first. First match wins.")}),D!=null&&D.isLoading?r.jsx(ae,{className:"h-20 w-full"}):R.rules.length===0?r.jsxs("div",{className:"flex items-start gap-2 rounded-md bg-accent p-2",children:[r.jsx(yt,{className:"h-3.5 w-3.5 text-muted-foreground mt-0.5 shrink-0"}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("No rules — only the fallback template applies.")})]}):r.jsx("div",{className:"space-y-2",children:R.rules.map((B,I)=>{const re=!OI.has(B.operator);return r.jsxs("div",{className:"grid gap-2 sm:grid-cols-[1.2fr_1fr_1.2fr_1.5fr_0.6fr_auto] items-end rounded-md border p-2",children:[r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Field")}),r.jsxs(we,{value:B.field||"__none",onValueChange:F=>k(T,I,"field",F==="__none"?"":F),children:[r.jsx(ye,{className:"mt-1 h-8 text-xs",children:r.jsx(Ne,{placeholder:"—"})}),r.jsxs(be,{children:[r.jsx(z,{value:"__none",disabled:!0,children:l("Choose a field")}),O.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:l("(no fields detected)")}):O.map(F=>r.jsx(z,{value:F.name,children:F.label||F.name},F.name))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Operator")}),r.jsxs(we,{value:B.operator,onValueChange:F=>k(T,I,"operator",F),children:[r.jsx(ye,{className:"mt-1 h-8 text-xs",children:r.jsx(Ne,{})}),r.jsx(be,{children:Object.keys(JN).map(F=>r.jsx(z,{value:F,children:JN[F]},F))})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Value")}),r.jsx(Pe,{className:"mt-1 h-8 text-xs",placeholder:l(re?"e.g. DE":"(not used)"),value:B.value,disabled:!re,onChange:F=>k(T,I,"value",F.target.value)})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Template")}),r.jsxs(we,{value:B.template||"__none",onValueChange:F=>k(T,I,"template",F==="__none"?"":F),children:[r.jsx(ye,{className:"mt-1 h-8 text-xs",children:r.jsx(Ne,{placeholder:"—"})}),r.jsxs(be,{children:[r.jsx(z,{value:"__none",disabled:!0,children:l("Choose a template")}),_.map(F=>r.jsx(z,{value:F.id,children:F.title},F.id))]})]})]}),r.jsxs("div",{children:[r.jsx(X,{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:l("Prio")}),r.jsx(Pe,{type:"number",min:1,max:99,className:"mt-1 h-8 text-xs",value:B.priority,onChange:F=>k(T,I,"priority",Math.max(1,Number(F.target.value)||1))})]}),r.jsx(V,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(T,I),title:l("Remove rule"),children:r.jsx(vn,{className:"h-3.5 w-3.5"})})]},B.id)})}),r.jsxs(V,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>N(T),children:[r.jsx(lo,{className:"h-3.5 w-3.5 mr-1.5"}),l("Add rule")]})]})]},`${R.integration}_${R.form_id}`)})}),r.jsx("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:r.jsxs(V,{onClick:()=>w.mutate(),disabled:w.isPending,children:[w.isPending?r.jsx(Rn,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(oa,{className:"h-4 w-4 mr-1.5"}),l("Save Conditional Templates settings")]})})]})]})]})}const tS={",":l("Comma — , (RFC 4180 default)"),";":l("Semicolon — ; (German/French Excel)"),"\\t":l("Tab (TSV-style)"),"|":l("Pipe — |")},FI={all:l("Every record — confirmed, unconfirmed, and opted-out."),confirmed:l("Active subscribers only (confirmed AND not opted-out)."),unconfirmed:l("Users who never clicked the confirmation link."),opted_out:l("Records with a recorded opt-out (unsubscribed).")},ar="__all";function nS(e){if(!e)return"—";const t=new Date(e*1e3),n=s=>String(s).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${t.getFullYear()} ${n(t.getHours())}:${n(t.getMinutes())}`}function LI(){var oe,Se,G,ve;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[a,o]=f.useState("all"),[i,c]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[v,x]=f.useState(""),[j,b]=f.useState(""),[w,y]=f.useState(ar),[p,g]=f.useState(ar),[N,S]=f.useState(!1),k=qe(),_=f.useRef(null),{data:C}=Ce({queryKey:["categories"],queryFn:()=>Y("/categories")}),{data:R}=Ce({queryKey:["forms"],queryFn:()=>Y("/forms")}),T=f.useMemo(()=>{var he;const L=(he=R==null?void 0:R.data)!=null?he:{},me=[];for(const[Ae,He]of Object.entries(L))if(He)for(const ut of He.forms){const _t=Number(typeof ut.id=="string"?ut.id.split("_")[0]:ut.id);_t&&me.push({id:_t,label:`${He.name} / ${ut.title||`#${_t}`}`})}const U=new Set;return me.filter(Ae=>U.has(Ae.id)?!1:(U.add(Ae.id),!0))},[R]),O=f.useMemo(()=>{var L;return((L=C==null?void 0:C.data)!=null?L:[]).filter(me=>Number(me.id)>0)},[C]),D=a,B=a==="email"?i.trim():"",I=h,re=w===ar?"":w,F=p===ar?"":p,ne=Ce({queryKey:["consent-export-stream-info",D,B,I,re,F],queryFn:()=>{const L=new URLSearchParams({scope:D,email:B,status:I,form_id:re,category_id:F});return Y(`/consent-export/stream-info?${L.toString()}`)}}),A=(Se=(oe=ne.data)==null?void 0:oe.data)!=null?Se:{exported_count:0,run_count:0,last_run_at:0},M=Ce({queryKey:["consent-export-history"],queryFn:()=>Y("/consent-export/history?limit=20")}),Z=(ve=(G=M.data)==null?void 0:G.data)!=null?ve:[],xe=ke({mutationFn:()=>Y("/consent-export/history",{method:"DELETE"}),onSuccess:()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(l("Export history cleared."))},onError:L=>{K.error(L.message||l("Failed to clear history."))}}),P=ke({mutationFn:L=>Y(`/consent-export/history/${L}`,{method:"DELETE"}),onSuccess:()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]}),K.success(l("Run removed from history."))},onError:L=>{K.error(L.message||l("Failed to delete run."))}});function $(L){var me;if(o(L.scope==="email"?"email":"all"),c((me=L.email)!=null?me:""),m(["all","confirmed","unconfirmed","opted_out"].includes(L.status)?L.status:"all"),y(L.form_id>0?String(L.form_id):ar),g(L.category_id>0?String(L.category_id):ar),t(L.format==="json"?"json":"csv"),u(L.include_form_data===1),L.format==="csv"&&L.delimiter){const U=L.delimiter===" "?"\\t":L.delimiter;s(U)}K.info(l("Filters restored from this run."))}function W(){var Ae;if(a==="email"&&i.trim()===""){K.error(l("Enter an email address before exporting."));return}if(v!==""&&j!==""&&v>j){K.error(l("The 'from' date is after the 'to' date."));return}const L=kt(),me=new URLSearchParams({action:"doi_export_consent",_wpnonce:(Ae=L.consentExportNonce)!=null?Ae:"",format:e,scope:a});a==="email"&&me.set("email",i.trim()),d&&me.set("include_formdata","1"),e==="csv"&&n!==","&&me.set("delimiter",n),h!=="all"&&me.set("status",h),v!==""&&me.set("date_from",v),j!==""&&me.set("date_to",j),w!==ar&&me.set("form_id",w),p!==ar&&me.set("category_id",p),N&&me.set("since_last_export","1");const he=`${L.adminUrl.replace(/\/+$/,"")}/admin-ajax.php?${me.toString()}`;window.open(he,"_blank","noopener,noreferrer"),setTimeout(()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]})},1500),setTimeout(()=>{k.invalidateQueries({queryKey:["consent-export-history"]}),k.invalidateQueries({queryKey:["consent-export-stream-info"]})},6e3)}return r.jsxs(ee,{className:"mt-6",children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Export consent records (GDPR)")}),r.jsx(Re,{children:l("Download consent records as CSV or JSON for GDPR Art. 15 subject-access requests, internal audits, or migration to another system. The export covers every recorded submission, confirmation, and opt-out with timestamps, IPs, and the exact consent text presented at signup.")})]}),r.jsxs(te,{className:"space-y-5",children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-format",children:l("Format")}),r.jsxs(we,{value:e,onValueChange:L=>t(L),children:[r.jsx(ye,{id:"export-format",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"csv",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(hP,{className:"h-4 w-4"}),l("CSV (Excel-friendly, UTF-8 BOM)")]})}),r.jsx(z,{value:"json",children:r.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsx(mP,{className:"h-4 w-4"}),l("JSON (pretty-printed)")]})})]})]})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-scope",children:l("Scope")}),r.jsxs(we,{value:a,onValueChange:L=>o(L),children:[r.jsx(ye,{id:"export-scope",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All records")}),r.jsx(z,{value:"email",children:l("By email address")})]})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[r.jsx("strong",{children:l("By email")}),l(": useful for GDPR subject-access requests — exports every record tied to one address.")]})]})]}),e==="csv"&&r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-delimiter",children:l("CSV separator")}),r.jsxs(we,{value:n,onValueChange:L=>s(L),children:[r.jsx(ye,{id:"export-delimiter",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsx(be,{children:Object.keys(tS).map(L=>r.jsx(z,{value:L,children:tS[L]},L))})]}),r.jsxs("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:[l("Excel honours the OS-locale default — German installs expect")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:";"})," ",l("because")," ",r.jsx("code",{className:"bg-muted px-1 rounded",children:","})," ",l("is their decimal mark. If you open the CSV and see every row crammed into one column, switch separator and re-export.")]})]}),a==="email"&&r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-email",children:l("Email address")}),r.jsx(Pe,{id:"export-email",type:"email",className:"mt-1.5",placeholder:"[email protected]",value:i,onChange:L=>c(L.target.value)})]}),r.jsxs("div",{className:"rounded-lg border p-4 space-y-4",children:[r.jsx("div",{className:"text-sm font-medium",children:l("Filters")}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-status",children:l("Status")}),r.jsxs(we,{value:h,onValueChange:L=>m(L),children:[r.jsx(ye,{id:"export-status",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All statuses")}),r.jsx(z,{value:"confirmed",children:l("Confirmed (active subscribers)")}),r.jsx(z,{value:"unconfirmed",children:l("Unconfirmed")}),r.jsx(z,{value:"opted_out",children:l("Opted out")})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:FI[h]})]}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-date-from",children:l("Signed up from")}),r.jsx(Pe,{id:"export-date-from",type:"date",className:"mt-1.5",value:v,onChange:L=>x(L.target.value),max:j||void 0})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-date-to",children:l("Signed up until")}),r.jsx(Pe,{id:"export-date-to",type:"date",className:"mt-1.5",value:j,onChange:L=>b(L.target.value),min:v||void 0})]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground -mt-2",children:l("Filters on the signup date (when the record was first submitted). Leave either field empty for an open-ended range. Inclusive on both sides.")}),r.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-form",children:l("Form")}),r.jsxs(we,{value:w,onValueChange:y,children:[r.jsx(ye,{id:"export-form",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:ar,children:l("All forms")}),T.length===0?r.jsx(z,{value:"__nofields",disabled:!0,children:l("(no forms detected)")}):T.map(L=>r.jsx(z,{value:String(L.id),children:L.label},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to records tied to one specific form (CF7, Avada, Elementor, WPForms, Gravity, …). Matches on the form's post id.")})]}),r.jsxs("div",{children:[r.jsx(X,{htmlFor:"export-category",children:l("Category")}),r.jsxs(we,{value:p,onValueChange:g,children:[r.jsx(ye,{id:"export-category",className:"mt-1.5",children:r.jsx(Ne,{})}),r.jsxs(be,{children:[r.jsx(z,{value:ar,children:l("All categories")}),O.length===0?r.jsx(z,{value:"__nocat",disabled:!0,children:l("(no categories defined)")}):O.map(L=>r.jsxs(z,{value:String(L.id),children:[L.name,typeof L.optin_count=="number"&&r.jsxs("span",{className:"text-muted-foreground",children:[" ","(",L.optin_count,")"]})]},L.id))]})]}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:l("Limit to records tagged with one specific category. Configure categories under DOI → Categories.")})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-3 bg-accent/50",children:[r.jsx(jo,{id:"export-since-last",checked:N,onCheckedChange:L=>S(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1 flex-1",children:[r.jsx(X,{htmlFor:"export-since-last",className:"cursor-pointer text-sm font-medium",children:l("Only records not yet exported in this stream")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("Excludes OptIn IDs that appeared in any previous export with the same scope + status + form + category + email. Date range is ignored for the stream identity — it's an extra filter on the result. Each export's contents is recorded in an indexed audit table for constant-time filtering.")}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1.5",children:ne.isLoading?l("Loading stream info…"):A.run_count===0?r.jsxs("span",{children:[r.jsx("strong",{children:l("No prior exports")})," ",l("for this filter combination. Toggle is a no-op until you do your first export.")]}):r.jsxs("span",{children:[r.jsx("strong",{children:A.exported_count})," ",l("record(s) previously exported in this stream across")," ",r.jsx("strong",{children:A.run_count})," ",l("run(s). Last run:")," ",nS(A.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(jo,{id:"export-include-formdata",checked:d,onCheckedChange:L=>u(L===!0),className:"mt-0.5"}),r.jsxs("div",{className:"space-y-1",children:[r.jsx(X,{htmlFor:"export-include-formdata",className:"cursor-pointer text-sm font-medium",children:l("Include form data (submitted field values)")}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("Adds one column per form field per record (Name, Address, custom checkboxes, …). Each record may have different fields — the CSV exporter collects all column names across the entire result set.")})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t",children:[r.jsxs(V,{onClick:W,children:[r.jsx(Hi,{className:"h-4 w-4 mr-1.5"}),l("Export")]}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:l("The download starts in a new tab. Sensitive data — store the file in line with your retention policy.")})]})]}),r.jsxs(de,{className:"border-t",children:[r.jsxs(ue,{className:"flex items-center gap-2 text-base",children:[r.jsx(gP,{className:"h-4 w-4"}),l("Recent exports")]}),r.jsxs(Re,{children:[l("Audit log of past exports. Each row records who ran it, when, from where, and which records went into the file.")," ",l("Click")," ",r.jsx(m0,{className:"inline h-3 w-3"})," ",l("to restore that run's filter combination, or")," ",r.jsx(vn,{className:"inline h-3 w-3"})," ",l("to remove a single accidental run from the audit history.")]})]}),r.jsxs(te,{children:[M.isLoading?r.jsx(ae,{className:"h-32 w-full"}):Z.length===0?r.jsx("p",{className:"text-sm text-muted-foreground italic",children:l("No exports yet — the table fills up as you run them.")}):r.jsx("div",{className:"rounded-lg border overflow-hidden",children:r.jsxs("table",{className:"w-full text-xs",children:[r.jsx("thead",{className:"bg-muted",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left p-2 font-medium",children:l("When")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("User")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("IP")}),r.jsx("th",{className:"text-left p-2 font-medium",children:l("Stream")}),r.jsx("th",{className:"text-right p-2 font-medium",children:l("Count")}),r.jsx("th",{className:"p-2"})]})}),r.jsx("tbody",{children:Z.map(L=>{const me=[L.scope==="email"?`email:${L.email}`:L.scope,L.status,L.form_id>0?`form#${L.form_id}`:null,L.category_id>0?`cat#${L.category_id}`:null].filter(Boolean).join(" / ");return r.jsxs("tr",{className:"border-t hover:bg-accent/30",children:[r.jsx("td",{className:"p-2",children:nS(L.started_at)}),r.jsx("td",{className:"p-2",children:L.user_login||"—"}),r.jsx("td",{className:"p-2 font-mono text-[10px]",children:L.ip_address||"—"}),r.jsx("td",{className:"p-2",children:me}),r.jsx("td",{className:"p-2 text-right tabular-nums",children:L.count}),r.jsx("td",{className:"p-2",children:r.jsxs("div",{className:"flex gap-1 justify-end",children:[r.jsx("button",{type:"button",onClick:()=>$(L),title:l("Restore this run's filters"),className:"p-1 rounded hover:bg-accent",children:r.jsx(m0,{className:"h-3.5 w-3.5"})}),r.jsx("button",{type:"button",onClick:()=>{window.confirm(l("Delete this run from the audit history? The originally exported records remain in the database — this only removes the audit row."))&&P.mutate(L.id)},title:l("Remove this run from the audit history"),className:"p-1 rounded hover:bg-accent text-destructive",children:r.jsx(vn,{className:"h-3.5 w-3.5"})})]})})]},L.id)})})]})}),r.jsxs("div",{className:"flex items-center gap-2 pt-4",children:[r.jsxs(V,{variant:"outline",size:"sm",onClick:()=>k.invalidateQueries({queryKey:["consent-export-history"]}),children:[r.jsx(pd,{className:"h-3.5 w-3.5 mr-1.5"}),l("Refresh")]}),Z.length>0&&r.jsxs(V,{variant:"outline",size:"sm",className:"text-destructive",onClick:()=>{var L;return(L=_.current)==null?void 0:L.showModal()},children:[r.jsx(vn,{className:"h-3.5 w-3.5 mr-1.5"}),l("Clear all history")]})]})]}),r.jsxs("dialog",{ref:_,className:"rounded-lg p-6 max-w-md backdrop:bg-black/50 backdrop:backdrop-blur-sm",children:[r.jsx("h3",{className:"font-semibold text-base mb-2",children:l("Clear export history?")}),r.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:l('Removes every audit row plus the per-record exported-ID links. The originally exported records remain in the database; only the audit trail is cleared. After this, "Only records not yet exported in this stream" treats every record as fresh.')}),r.jsxs("div",{className:"flex justify-end gap-2",children:[r.jsx(V,{variant:"outline",size:"sm",onClick:()=>{var L;return(L=_.current)==null?void 0:L.close()},children:l("Cancel")}),r.jsx(V,{size:"sm",className:"text-destructive border-destructive",variant:"outline",onClick:()=>{var L;(L=_.current)==null||L.close(),xe.mutate()},children:l("Yes, clear everything")})]})]})]})}function $I(){const{id:e}=ed();return e?r.jsx(ua,{addonId:e,featureName:e,children:r.jsx(zI,{id:e})}):null}function zI({id:e}){var h;const t=qe(),{data:n}=Ce({queryKey:["addons-catalog"],queryFn:()=>Y("/addons/catalog")}),{data:s,isLoading:a}=Ce({queryKey:["addon-settings",e],queryFn:()=>Y(`/addons/${e}/settings`)}),[o,i]=f.useState(!0);f.useEffect(()=>{s&&i(s.enabled)},[s]);const c=ke({mutationFn:m=>Y(`/addons/${e}/settings`,{method:"POST",body:JSON.stringify(m)}),onSuccess:m=>{K.success(m.enabled?l("Feature enabled."):l("Feature disabled.")),t.invalidateQueries({queryKey:["addon-settings",e]})},onError:m=>{K.error(m.message||l("Failed to save settings."))}}),d=n==null?void 0:n.entries.find(m=>m.id===e),u=m=>{i(m),c.mutate({enabled:m})};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:(h=d==null?void 0:d.name)!=null?h:e}),(d==null?void 0:d.description)&&r.jsx("p",{className:"text-muted-foreground",children:d.description})]}),r.jsxs(ee,{children:[r.jsxs(de,{children:[r.jsx(ue,{children:l("Feature toggle")}),r.jsx(Re,{children:l("Turn this feature on or off without deactivating the addon plugin. Use this when you want to pause the feature temporarily (e.g. while debugging a form).")})]}),r.jsx(te,{children:a?r.jsx(ae,{className:"h-12 w-full"}):r.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[r.jsxs("div",{className:"space-y-0.5",children:[r.jsx(X,{htmlFor:"addon-enabled",className:"text-base",children:l("Enabled")}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("When off, the addon's hooks no-op but the plugin stays installed and can be re-enabled in one click.")})]}),r.jsx(rn,{id:"addon-enabled",checked:o,onCheckedChange:u,disabled:c.isPending})]})})]}),e==="reminder"&&r.jsx(SI,{}),e==="mx-validator"&&r.jsx(kI,{}),e==="domain-blocklist"&&r.jsx(PI,{}),e==="unique-email"&&r.jsx(AI,{}),e==="conditional"&&r.jsx(DI,{}),e==="consent-export"&&r.jsx(LI,{})]})}const rS="doi-email-editor-root",UI="email-editor";function sS(){var h;const{id:e}=ed(),t=xn(),n=f.useRef(null),[s,a]=f.useState(null),[o,i]=f.useState(!0),{data:c,isLoading:d}=Ce({queryKey:["addons-manifest"],queryFn:()=>Y("/addons")}),u=!d&&((h=c==null?void 0:c.addons)!=null?h:[]).some(m=>m.id===UI&&m.available);return f.useEffect(()=>{if(d)return;if(!u){i(!1),a(l("The Email Editor addon isn't active on this site. Activate it to use the in-app editor, or open the legacy editor below."));return}let m=!1,v=null,x=null,j=null;const b=()=>{var N;if(m)return!0;const w=window.doiMountEmailEditor;if(typeof w!="function")return!1;const y=n.current;if(!y)return!1;y.id=rS;const p=e&&e!=="new"?Number(e):0,g=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:kt().restUrl+"email-templates",nonce:kt().nonce};return v=w(rS,{templateId:p,restUrl:g.restUrl,nonce:g.nonce}),v&&(i(!1),a(null)),!!v};return b()||(x=setInterval(()=>{b()&&x&&(clearInterval(x),x=null)},100),j=setTimeout(()=>{x&&(clearInterval(x),x=null),!v&&!m&&(i(!1),a(l("Email editor bundle didn't attach in time. Reload the page; if this persists, check the browser console for a script load error.")))},5e3)),()=>{if(m=!0,x&&clearInterval(x),j&&clearTimeout(j),v)try{v.unmount()}catch(w){}}},[e,d,u]),r.jsxs("div",{className:"space-y-4",children:[r.jsx("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:r.jsxs("button",{onClick:()=>t("/email-templates"),className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[r.jsx(fd,{className:"h-3.5 w-3.5"}),l("Back to email templates")]})}),o&&r.jsxs("div",{className:"space-y-3",children:[r.jsx(ae,{className:"h-8 w-64"}),r.jsx(ae,{className:"h-[600px] w-full"})]}),s&&r.jsx("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Mt,{className:"h-5 w-5 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-medium mb-1",children:l("Email editor not available")}),r.jsx("p",{className:"text-amber-800 mb-3",children:s}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(V,{variant:"default",size:"sm",onClick:()=>t("/addons"),children:l("Open Addons")})})]})]})}),r.jsx("div",{ref:n,className:"doi-editor-host"})]})}const ru={info:{label:l("Info"),color:"secondary",icon:yt},warning:{label:l("Warning"),color:"default",icon:Mt},error:{label:l("Error"),color:"destructive",icon:md},critical:{label:l("Critical"),color:"destructive",icon:oh}},BI={settings:ch,cron:Gn,activation:Ki,ratelimit:dh,api_error:RP,db_error:qi,email:An,auth:TP,follow_up:jP};function VI(){var S,k,_,C,R,T,O,D,B;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[a,o]=f.useState("all"),[i,c]=f.useState(1),[d,u]=f.useState(null),h=15,m=I=>{t(I),c(1)},v=I=>{s(I),c(1)},x=I=>{o(I),c(1)},{data:j,isLoading:b}=Ce({queryKey:["audit-events",e,n,a,i],queryFn:()=>Y(`/audit/events?period=${e}&type=${n}&severity=${a}&page=${i}&per_page=${h}`)}),{data:w,isLoading:y}=Ce({queryKey:["audit-summary",e],queryFn:()=>Y(`/audit/summary?period=${e}`)}),p=(k=(S=j==null?void 0:j.data)==null?void 0:S.events)!=null?k:[],g=(C=(_=j==null?void 0:j.data)==null?void 0:_.pages)!=null?C:1,N=(R=w==null?void 0:w.data)!=null?R:{total:0,warning:0,error:0,critical:0};return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:l("Audit Log")}),r.jsx("p",{className:"text-muted-foreground",children:l("System events and change log")})]}),r.jsx(PN,{value:e,onValueChange:m,children:r.jsxs(_p,{children:[r.jsx(bs,{value:"7",className:"text-xs",children:l("7 Days")}),r.jsx(bs,{value:"30",className:"text-xs",children:l("30 Days")}),r.jsx(bs,{value:"90",className:"text-xs",children:l("90 Days")})]})})]}),r.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsx(ue,{className:"text-xs text-muted-foreground",children:l("Total Events")})}),r.jsx(te,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(Mt,{className:"h-3 w-3 text-warning"}),l("Warnings")]})}),r.jsx(te,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-warning",children:N.warning})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(md,{className:"h-3 w-3 text-destructive"}),l("Errors")]})}),r.jsx(te,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold text-destructive",children:N.error})})]}),r.jsxs(ee,{children:[r.jsx(de,{className:"pb-2",children:r.jsxs(ue,{className:"text-xs text-muted-foreground flex items-center gap-1",children:[r.jsx(oh,{className:"h-3 w-3"}),l("Critical")]})}),r.jsx(te,{children:y?r.jsx(ae,{className:"h-8 w-12"}):r.jsx("div",{className:"text-2xl font-bold",children:N.critical})})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(we,{value:n,onValueChange:v,children:[r.jsx(ye,{className:"h-8 w-[160px] text-xs",children:r.jsx(Ne,{placeholder:l("Event Type")})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All Types")}),r.jsx(z,{value:"settings",children:l("Settings Change")}),r.jsx(z,{value:"cron",children:l("Cron")}),r.jsx(z,{value:"activation",children:l("Activation")}),r.jsx(z,{value:"ratelimit",children:l("Rate Limit")}),r.jsx(z,{value:"api_error",children:l("API Error")}),r.jsx(z,{value:"db_error",children:l("DB Error")}),r.jsx(z,{value:"email",children:l("Email")}),r.jsx(z,{value:"auth",children:l("Auth")}),r.jsx(z,{value:"follow_up",children:l("Follow-up actions")})]})]}),r.jsxs(we,{value:a,onValueChange:x,children:[r.jsx(ye,{className:"h-8 w-[140px] text-xs",children:r.jsx(Ne,{placeholder:l("Severity")})}),r.jsxs(be,{children:[r.jsx(z,{value:"all",children:l("All")}),r.jsx(z,{value:"info",children:l("Info")}),r.jsx(z,{value:"warning",children:l("Warning")}),r.jsx(z,{value:"error",children:l("Error")}),r.jsx(z,{value:"critical",children:l("Critical")})]})]})]}),r.jsx(ee,{children:r.jsx(te,{className:"p-0",children:b?r.jsx("div",{className:"p-6 space-y-3",children:Array.from({length:5}).map((I,re)=>r.jsx(ae,{className:"h-10 w-full"},re))}):p.length===0?r.jsxs("div",{className:"py-16 text-center",children:[r.jsx(xd,{className:"h-12 w-12 text-muted-foreground/30 mx-auto mb-3"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:l("No events found for the selected filters.")})]}):r.jsxs(r.Fragment,{children:[r.jsxs(tn,{children:[r.jsx(yn,{children:r.jsxs(Me,{children:[r.jsx(Te,{className:"text-xs w-[160px]",children:l("Timestamp")}),r.jsx(Te,{className:"text-xs w-[100px]",children:l("Type")}),r.jsx(Te,{className:"text-xs w-[90px]",children:l("Severity")}),r.jsx(Te,{className:"text-xs",children:l("Message")}),r.jsx(Te,{className:"text-xs w-[70px]",children:l("User")})]})}),r.jsx(nn,{children:p.map(I=>{var ne;const re=BI[I.event_type]||xd,F=(ne=ru[I.severity])!=null?ne:ru.info;return r.jsxs(Me,{className:"cursor-pointer hover:bg-accent",onClick:()=>u(I),children:[r.jsx(fe,{className:"text-xs text-muted-foreground",children:I.created_at}),r.jsx(fe,{children:r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(re,{className:"h-3 w-3 text-muted-foreground"}),r.jsx("span",{className:"text-xs capitalize",children:I.event_type.replace("_"," ")})]})}),r.jsx(fe,{children:r.jsx(Ge,{variant:F.color,className:"text-[10px]",children:F.label})}),r.jsx(fe,{className:"text-xs max-w-[300px] truncate",children:I.message}),r.jsx(fe,{children:r.jsx(Ge,{variant:"outline",className:"text-[10px]",children:I.user_display})})]},I.id)})})]}),r.jsxs("div",{className:"flex items-center justify-between p-4 border-t",children:[r.jsx("span",{className:"text-xs text-muted-foreground",children:se(l("Page %1$s of %2$s"),i,g)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(V,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i===1,onClick:()=>c(I=>I-1),children:r.jsx(o0,{className:"h-3 w-3"})}),r.jsx(V,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:i>=g,onClick:()=>c(I=>I+1),children:r.jsx(ah,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(_r,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(tr,{children:[r.jsxs(nr,{children:[r.jsx(rr,{children:l("Event Details")}),r.jsx(sr,{children:l("Full event information")})]}),d&&r.jsxs("div",{className:"space-y-3 text-sm",children:[r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Timestamp:")}),r.jsx("p",{className:"text-xs",children:d.created_at})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Type:")}),r.jsx("p",{className:"text-xs capitalize",children:d.event_type.replace("_"," ")})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Severity:")}),r.jsx("p",{children:r.jsx(Ge,{variant:(O=(T=ru[d.severity])==null?void 0:T.color)!=null?O:"secondary",className:"text-[10px]",children:(B=(D=ru[d.severity])==null?void 0:D.label)!=null?B:d.severity})})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("User:")}),r.jsx("p",{className:"text-xs",children:d.user_display})]})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-muted-foreground text-xs",children:l("Message:")}),r.jsx("p",{className:"text-xs mt-1 rounded-lg bg-accent p-3",children:d.message})]})]})]})})]})}var Vp="Radio",[qI,aS]=It(Vp),[HI,WI]=qI(Vp),oS=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:a=!1,required:o,disabled:i,value:c="on",onCheck:d,form:u,...h}=e,[m,v]=f.useState(null),x=Ie(t,w=>v(w)),j=f.useRef(!1),b=m?u||!!m.closest("form"):!0;return r.jsxs(HI,{scope:n,checked:a,disabled:i,children:[r.jsx(ge.button,{type:"button",role:"radio","aria-checked":a,"data-state":dS(a),"data-disabled":i?"":void 0,disabled:i,value:c,...h,ref:x,onClick:pe(e.onClick,w=>{a||d==null||d(),b&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),b&&r.jsx(cS,{control:m,bubbles:!j.current,name:s,value:c,checked:a,required:o,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});oS.displayName=Vp;var iS="RadioIndicator",lS=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...a}=e,o=WI(iS,n);return r.jsx(Tn,{present:s||o.checked,children:r.jsx(ge.span,{"data-state":dS(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})})});lS.displayName=iS;var KI="RadioBubbleInput",cS=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:s=!0,...a},o)=>{const i=f.useRef(null),c=Ie(i,o),d=qd(n),u=Pd(t);return f.useEffect(()=>{const h=i.current;if(!h)return;const m=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&x){const j=new Event("click",{bubbles:s});x.call(h,n),h.dispatchEvent(j)}},[d,n,s]),r.jsx(ge.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});cS.displayName=KI;function dS(e){return e?"checked":"unchecked"}var QI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],su="RadioGroup",[GI]=It(su,[Zd,aS]),uS=Zd(),fS=aS(),[YI,XI]=GI(su),mS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:a,value:o,required:i=!1,disabled:c=!1,orientation:d,dir:u,loop:h=!0,onValueChange:m,...v}=e,x=uS(n),j=ml(u),[b,w]=Zt({prop:o,defaultProp:a!=null?a:null,onChange:m,caller:su});return r.jsx(YI,{scope:n,name:s,required:i,disabled:c,value:b,onValueChange:w,children:r.jsx(hN,{asChild:!0,...x,orientation:d,dir:j,loop:h,children:r.jsx(ge.div,{role:"radiogroup","aria-required":i,"aria-orientation":d,"data-disabled":c?"":void 0,dir:j,...v,ref:t})})})});mS.displayName=su;var hS="RadioGroupItem",pS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...a}=e,o=XI(hS,n),i=o.disabled||s,c=uS(n),d=fS(n),u=f.useRef(null),h=Ie(t,u),m=o.value===a.value,v=f.useRef(!1);return f.useEffect(()=>{const x=b=>{QI.includes(b.key)&&(v.current=!0)},j=()=>v.current=!1;return document.addEventListener("keydown",x),document.addEventListener("keyup",j),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",j)}},[]),r.jsx(pN,{asChild:!0,...c,focusable:!i,active:m,children:r.jsx(oS,{disabled:i,required:o.required,checked:m,...d,...a,name:o.name,ref:h,onCheck:()=>o.onValueChange(a.value),onKeyDown:pe(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:pe(a.onFocus,()=>{var x;v.current&&((x=u.current)==null||x.click())})})})});pS.displayName=hS;var ZI="RadioGroupIndicator",xS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,a=fS(n);return r.jsx(lS,{...a,...s,ref:t})});xS.displayName=ZI;var gS=mS,vS=pS,JI=xS;const yS=f.forwardRef(({className:e,...t},n)=>r.jsx(gS,{className:q("grid gap-2",e),...t,ref:n}));yS.displayName=gS.displayName;const qp=f.forwardRef(({className:e,...t},n)=>r.jsx(vS,{ref:n,className:q("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsx(JI,{className:"flex items-center justify-center",children:r.jsx(l0,{className:"h-2.5 w-2.5 fill-current text-current"})})}));qp.displayName=vS.displayName;const jl=["sender","forms","mail","page"],bS=8;function eM(e){var n,s;const t={};return e.cf7.forms.forEach(a=>{t[a.id]={selected:a.selected,field:a.field}}),{senderEmail:e.sender.email,senderName:e.sender.name,forms:t,subject:e.mail.subject,design:e.mail.design,pageMode:e.page.mode,pageId:e.page.pageId||((s=(n=e.page.pages[0])==null?void 0:n.id)!=null?s:0)}}function Hp(e){if(e instanceof rd){const t=e.body;return t!=null&&t.errors&&Object.keys(t.errors).length?t.errors:{_:e.message}}return{_:l("Something went wrong. Please try again.")}}function tM(e){const t=e.lastIndexOf("@");return t===-1?"":e.slice(t+1).toLowerCase().replace(/^www\./,"")}function nM(){var re,F,ne;const e=xn(),t=qe(),{data:n,isLoading:s,isError:a}=Ce({queryKey:ap,queryFn:R5,staleTime:1/0}),[o,i]=f.useState(0),[c,d]=f.useState(null),[u,h]=f.useState({}),[m,v]=f.useState(null),[x,j]=f.useState(null);f.useEffect(()=>{n&&!c&&(d(eM(n)),i(n.status==="done"?0:Math.min(n.step,jl.length-1)))},[n,c]);const b=(A,M=o)=>t.setQueryData(sp,{status:A,step:M,steps:jl.length}),w=ke({mutationFn:({name:A,data:M})=>A5(A,M)}),y=ke({mutationFn:O5}),p=ke({mutationFn:I5}),g=ke({mutationFn:M5,onSuccess:()=>{b("skipped"),e("/")}}),N=w.isPending||p.isPending||y.isPending;if(a)return r.jsx(au,{children:r.jsx(ee,{children:r.jsxs(te,{className:"p-6 space-y-3",children:[r.jsx("p",{children:l("The setup wizard could not be loaded.")}),r.jsx(V,{variant:"outline",onClick:()=>e("/"),children:l("Go to the dashboard")})]})})});if(s||!n||!c)return r.jsxs(au,{children:[r.jsx(ae,{className:"h-8 w-1/2"}),r.jsx(ae,{className:"h-64 w-full"})]});const S=A=>{d({...c,...A}),h({})},k=A=>{switch(A){case"sender":return{email:c.senderEmail,name:c.senderName};case"forms":return{forms:Object.entries(c.forms).filter(([,M])=>M.selected).map(([M,Z])=>({id:Number(M),field:Z.field}))};case"mail":return{subject:c.subject,design:c.design};case"page":return c.pageMode==="new"?{mode:"new"}:{mode:"existing",pageId:c.pageId}}},_=async()=>{try{return await w.mutateAsync({name:jl[o],data:k(jl[o])}),!0}catch(A){return h(Hp(A)),!1}},C=async()=>{await _()&&(b("pending",o+1),i(o+1))},R=async()=>{var A,M;if(j(null),!!await _())try{const Z=await y.mutateAsync();j((M=(A=Z.data)==null?void 0:A.to)!=null?M:n.testMailTo)}catch(Z){h(Hp(Z))}},T=async()=>{var A;if(await _())try{const M=await p.mutateAsync();v((A=M.data)!=null?A:{enabled:[],incomplete:[]}),b("done",jl.length),t.invalidateQueries({queryKey:["forms"]}),t.invalidateQueries({queryKey:ap})}catch(M){h(Hp(M))}};if(m)return r.jsx(au,{children:r.jsx(cM,{overview:n,draft:c,result:m,testMailSent:x!==null})});const D=n.cf7.forms.filter(A=>!A.enabled).filter(A=>{var M;return(M=c.forms[A.id])==null?void 0:M.selected}),B=D.every(A=>c.forms[A.id].field!==""),I=/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(c.senderEmail);return r.jsxs(au,{onSkip:()=>g.mutate(),skipDisabled:g.isPending,progress:r.jsx(rM,{current:o}),children:[o===0&&r.jsxs(ou,{title:l("Who sends the confirmation?"),lead:l("This is how the email appears in your visitors' inbox. It also applies to forms you switch on later."),error:u._,footer:r.jsx(iu,{step:o,onBack:()=>i(o-1),onNext:C,nextDisabled:!I||N}),children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsx(lu,{id:"setup-sender-name",label:l("Sender name"),prefilled:!0,error:u.name,children:r.jsx(Pe,{id:"setup-sender-name",value:c.senderName,onChange:A=>S({senderName:A.target.value}),"aria-describedby":u.name?"setup-sender-name-error":void 0})}),r.jsx(lu,{id:"setup-sender-email",label:l("Sender address"),prefilled:!0,hint:l("Ideally an address on your own domain."),error:u.email,children:r.jsx(Pe,{id:"setup-sender-email",type:"email",value:c.senderEmail,onChange:A=>S({senderEmail:A.target.value.trim()}),"aria-invalid":!I||!!u.email,"aria-describedby":u.email?"setup-sender-email-error":"setup-sender-email-hint"})})]}),I&&n.sender.domain!==""&&tM(c.senderEmail)!==n.sender.domain&&r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:se(l("This address does not belong to the domain of this site (%s)."),n.sender.domain)})," ",se(l("Many inboxes treat such mails as spam. Use an address ending in @%s."),n.sender.domain)]})]}),o===1&&r.jsxs(ou,{title:l("Which forms should ask for confirmation?"),lead:l("The regular form email is only sent after the visitor has clicked the confirmation link."),error:(re=u._)!=null?re:u.forms,footer:r.jsx(iu,{step:o,onBack:()=>i(o-1),onNext:C,nextDisabled:!B||N,nextLabel:D.length===0?l("Skip"):void 0}),children:[r.jsx(sM,{overview:n,draft:c,onChange:A=>S({forms:A})}),r.jsx(wS,{plugins:n.formPlugins})]}),o===2&&r.jsxs(ou,{title:l("This is what the confirmation email looks like"),lead:l("Text and design apply to all selected forms. You can change them per form later."),error:u._,footer:r.jsx(iu,{step:o,onBack:()=>i(o-1),onNext:C,nextDisabled:c.subject.trim()===""||N}),children:[r.jsx(lu,{id:"setup-subject",label:l("Subject"),prefilled:!0,error:u.subject,children:r.jsx(Pe,{id:"setup-subject",value:c.subject,onChange:A=>S({subject:A.target.value}),"aria-describedby":u.subject?"setup-subject-error":void 0})}),r.jsx(iM,{value:c.design,designs:n.mail.designs,onChange:A=>S({design:A})}),r.jsx(lM,{subject:c.subject,design:c.design}),!ra("email-editor")&&n.editorUrl!==""&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Your own designs with images, columns and logo?")," ",r.jsx("a",{className:"text-amber-700 dark:text-amber-400 underline",href:n.editorUrl,target:"_blank",rel:"noopener noreferrer",children:l("See the email editor (Pro)")})]})]}),o===3&&r.jsxs(ou,{title:l("What does the visitor see after clicking?"),lead:l("This page appears as soon as someone has confirmed their address."),error:(ne=(F=u._)!=null?F:u.page)!=null?ne:u.testMail,footer:r.jsx(iu,{step:o,onBack:()=>i(o-1),onNext:T,nextDisabled:N||c.pageMode==="existing"&&!c.pageId,nextLabel:l("Finish setup")}),children:[r.jsxs(yS,{value:c.pageMode,onValueChange:A=>S({pageMode:A}),"aria-label":l("Confirmation page"),children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(qp,{id:"setup-page-new",value:"new"}),r.jsx(X,{htmlFor:"setup-page-new",className:"font-normal",children:l("Create and publish the page “Email address confirmed”")}),r.jsx(jS,{label:l("recommended")})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(qp,{id:"setup-page-existing",value:"existing",disabled:n.page.pages.length===0}),r.jsx(X,{htmlFor:"setup-page-existing",className:"font-normal",children:l("Use an existing page")})]})]}),c.pageMode==="existing"&&r.jsx(lu,{id:"setup-page-select",label:l("Page"),error:u.pageId,children:r.jsx("select",{id:"setup-page-select",className:"flex h-10 w-full rounded-md border border-input bg-background px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",value:c.pageId,onChange:A=>S({pageId:Number(A.target.value)}),"aria-describedby":u.pageId?"setup-page-select-error":void 0,children:n.page.pages.map(A=>r.jsx("option",{value:A.id,children:A.title||`#${A.id}`},A.id))})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{className:"text-sm font-medium",children:l("Test")}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsxs(V,{type:"button",variant:"outline",onClick:R,disabled:N,children:[r.jsx(An,{className:"mr-2 h-4 w-4"}),l("Send me a test email")]}),n.testMailTo!==""&&r.jsx("span",{className:"text-xs text-muted-foreground",children:se(l("goes to %s"),n.testMailTo)})]}),x&&r.jsxs(So,{tone:"ok",children:[r.jsx("strong",{children:se(l("Test email sent to %s."),x)})," ",l("The link in it leads to the confirmation page and confirms nothing.")]})]})]})]})}function au({children:e,onSkip:t,skipDisabled:n,progress:s}){return r.jsx("div",{className:"min-h-[70vh] bg-background px-4 py-8",children:r.jsxs("div",{className:"mx-auto grid w-full max-w-2xl gap-5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsxs("span",{className:"flex items-center gap-2 text-sm font-semibold",children:[r.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-primary text-primary-foreground",children:r.jsx(ds,{className:"h-4 w-4","aria-hidden":"true"})}),l("Set up Double Opt-In")]}),t&&r.jsx("button",{type:"button",onClick:t,disabled:n,className:"text-sm text-muted-foreground underline underline-offset-4 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:l("Set up later")})]}),s,e]})})}function rM({current:e}){const t=[l("Sender"),l("Forms"),l("Confirmation email"),l("After the click")];return r.jsx("ol",{className:"grid grid-cols-4 gap-2","aria-label":l("Progress"),children:t.map((n,s)=>r.jsxs("li",{"aria-current":s===e?"step":void 0,className:q("grid gap-1.5 text-xs",s===e?"font-semibold text-foreground":"text-muted-foreground"),children:[r.jsx("span",{className:q("h-1 rounded-full",s<=e?"bg-primary":"bg-border")}),r.jsxs("span",{className:"truncate",children:[s+1," ",n]})]},n))})}function ou({title:e,lead:t,error:n,footer:s,children:a}){return r.jsx(ee,{children:r.jsxs(te,{className:"grid gap-5 p-6",children:[r.jsxs("div",{className:"grid gap-1",children:[r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:e}),r.jsx("p",{className:"text-sm text-muted-foreground",children:t})]}),a,n&&r.jsx(So,{tone:"warn",role:"alert",children:n}),s]})})}function iu({step:e,onBack:t,onNext:n,nextDisabled:s,nextLabel:a}){return r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e>0?r.jsx(V,{type:"button",variant:"outline",onClick:t,children:l("Back")}):r.jsx("span",{className:"text-xs text-muted-foreground",children:l("Takes about 3 minutes")}),r.jsxs(V,{type:"button",onClick:n,disabled:s,children:[a!=null?a:l("Next"),r.jsx(a0,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})]})}function lu({id:e,label:t,hint:n,error:s,prefilled:a,children:o}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsxs(X,{htmlFor:e,className:"flex items-center gap-2",children:[t,a&&r.jsx(jS,{label:l("prefilled")})]}),o,n&&!s&&r.jsx("span",{id:`${e}-hint`,className:"text-xs text-muted-foreground",children:n}),s&&r.jsx("span",{id:`${e}-error`,className:"text-xs text-destructive",children:s})]})}function jS({label:e}){return r.jsx("span",{className:"rounded bg-primary/10 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wide text-primary",children:e})}function So({tone:e,role:t,children:n}){return r.jsxs("div",{role:t,className:q("flex gap-2 rounded-md px-3 py-2.5 text-sm",e==="warn"?"bg-orange-50 text-orange-900 dark:bg-orange-950/40 dark:text-orange-200":"bg-emerald-50 text-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-200"),children:[e==="warn"?r.jsx(Mt,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}):r.jsx(ds,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),r.jsx("div",{children:n})]})}function sM({overview:e,draft:t,onChange:n}){const[s,a]=f.useState(!1),o=e.cf7.forms;if(!e.cf7.installed)return r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:l("Contact Form 7 is not installed.")})," ",l("The free plugin protects Contact Form 7 forms. Install it, create a form and come back here.")," ",r.jsx("a",{className:"underline",href:e.cf7.installUrl,children:l("Install Contact Form 7")})]});if(o.length===0)return r.jsxs(So,{tone:"warn",children:[r.jsx("strong",{children:l("There is no Contact Form 7 form yet.")})," ",l("Create one and come back here. You can also skip this step.")," ",r.jsx("a",{className:"underline",href:e.cf7.newFormUrl,children:l("Create a form")})]});const i=s?o:o.slice(0,bS),c=(d,u)=>n({...t.forms,[d.id]:{...t.forms[d.id],...u}});return r.jsxs("div",{className:"grid gap-2",children:[i.map(d=>{const u=t.forms[d.id],h=u.selected&&u.field==="",m=`setup-form-${d.id}`,v=`setup-form-field-${d.id}`;return r.jsxs("div",{className:q("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-2 rounded-md border p-3 sm:grid-cols-[auto_1fr_12rem]",h&&"border-orange-400"),children:[r.jsx(jo,{id:m,checked:d.enabled||u.selected,disabled:d.enabled,onCheckedChange:x=>c(d,{selected:x===!0})}),r.jsxs(X,{htmlFor:m,className:"grid cursor-pointer gap-0.5 font-normal",children:[r.jsx("span",{className:"font-medium",children:d.title}),r.jsx("span",{className:"text-xs text-muted-foreground",children:d.enabled?l("Double Opt-In is already active — this form stays as it is."):d.detectedField?l("Email field detected automatically"):l("No email field detected, please choose one")})]}),!d.enabled&&r.jsxs("select",{id:v,"aria-label":se(l("Email field for %s"),d.title),className:"col-span-2 flex h-9 w-full rounded-md border border-input bg-background px-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:col-span-1",value:u.field,onChange:x=>c(d,{field:x.target.value,selected:x.target.value!==""||u.selected}),children:[r.jsx("option",{value:"",children:l("Choose email field …")}),d.fields.map(x=>r.jsx("option",{value:x,children:x},x))]})]},d.id)}),!s&&o.length>bS&&r.jsx(V,{type:"button",variant:"ghost",className:"justify-self-start",onClick:()=>a(!0),children:se(l("Show all %d forms"),o.length)})]})}function wS({plugins:e}){return e.length===0?null:r.jsx("div",{className:"grid gap-2",children:e.map(t=>r.jsxs("div",{className:"grid gap-1 rounded-md border border-dashed border-amber-500 bg-amber-50 p-3 text-sm dark:bg-amber-950/30",children:[r.jsxs("span",{children:[r.jsx("strong",{className:"text-amber-800 dark:text-amber-300",children:se(l("%s detected."),t.name)})," ",se(l("Forms built with %s do not have Double Opt-In yet. There is an addon for that."),t.name)]}),t.productUrl!==""&&r.jsxs("a",{href:t.productUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 font-semibold text-amber-800 underline dark:text-amber-300",children:[se(l("See the %s addon"),t.name),r.jsx(Wi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]},t.id))})}const aM={light:()=>l("Light"),dark:()=>l("Dark"),accent:()=>l("Accent"),plain:()=>l("Text only")},oM={light:{page:"#f3f4f6",card:"#ffffff",button:"#2271b1"},dark:{page:"#0f1216",card:"#1c2128",button:"#3b82f6"},accent:{page:"#fdf6dd",card:"#ffffff",button:"#f5c518"},plain:{page:"#ffffff",card:"#ffffff"}};function iM({value:e,designs:t,onChange:n}){return r.jsxs("div",{className:"grid gap-1.5",children:[r.jsx("span",{className:"text-sm font-medium",id:"setup-design-label",children:l("Design")}),r.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"group","aria-labelledby":"setup-design-label",children:t.map(s=>{const a=oM[s];return r.jsxs("button",{type:"button","aria-pressed":e===s,onClick:()=>n(s),className:q("grid gap-1.5 rounded-md border-2 p-2 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e===s?"border-primary":"border-border"),children:[r.jsx("span",{className:"grid aspect-[4/3] content-center justify-items-center gap-1 rounded p-2",style:{background:a.page},"aria-hidden":"true",children:r.jsxs("span",{className:"grid w-full gap-1 rounded-sm p-1.5",style:{background:a.card},children:[r.jsx("span",{className:"h-1 w-3/4 rounded bg-slate-300"}),r.jsx("span",{className:"h-1 w-full rounded bg-slate-200"}),a.button?r.jsx("span",{className:"mx-auto h-1.5 w-1/2 rounded",style:{background:a.button}}):r.jsx("span",{className:"h-1 w-1/2 rounded bg-sky-400"})]})}),aM[s]()]},s)})})]})}function lM({subject:e,design:t}){return r.jsxs("div",{className:"grid gap-2 rounded-md border bg-muted/40 p-3 text-sm","aria-label":l("Preview of the email text"),children:[r.jsx("strong",{children:e}),r.jsx("span",{children:l("Hello, this email address was just entered on our site. To make sure it was really you, please confirm it with one click.")}),r.jsx("span",{className:"font-mono text-xs text-primary",children:t==="plain"?"[doubleoptinlink]":`[ ${l("Confirm email address")} ]`}),r.jsx("span",{className:"text-muted-foreground",children:l("If you did not request this, simply ignore this email. Nothing happens without your confirmation.")})]})}function cM({overview:e,draft:t,result:n,testMailSent:s}){const a=f.useMemo(()=>{const o=new Map(e.cf7.forms.map(i=>[i.id,i.title]));return{enabled:n.enabled.map(i=>{var c;return(c=o.get(i))!=null?c:`#${i}`}),incomplete:n.incomplete.map(i=>{var c;return(c=o.get(i.id))!=null?c:`#${i.id}`})}},[e,n]);return r.jsx(ee,{children:r.jsxs(te,{className:"grid gap-5 p-6",children:[r.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300",children:r.jsx(ds,{className:"h-6 w-6","aria-hidden":"true"})}),r.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:l("Double Opt-In is set up")}),r.jsxs("ul",{className:"grid gap-2 text-sm",children:[r.jsx(cu,{children:se(l("Sender: %1$s <%2$s>"),t.senderName,t.senderEmail)}),r.jsx(cu,{children:a.enabled.length>0?se(l("Double Opt-In active for: %s"),a.enabled.join(", ")):l("No form switched on yet — you can do that under Forms.")}),r.jsx(cu,{children:t.pageMode==="new"?l("Confirmation page “Email address confirmed” created and published"):l("Confirmation page: existing page")}),s&&r.jsx(cu,{children:l("Test email sent")})]}),a.incomplete.length>0&&r.jsx(So,{tone:"warn",children:se(l("Not switched on because settings are missing: %s"),a.incomplete.join(", "))}),r.jsx(wS,{plugins:e.formPlugins}),r.jsxs("div",{className:"flex flex-wrap justify-between gap-3",children:[r.jsx(V,{asChild:!0,variant:"outline",children:r.jsx(Ot,{to:"/forms",children:l("Forms")})}),r.jsx(V,{asChild:!0,children:r.jsx(Ot,{to:"/",children:l("Go to the dashboard")})})]})]})})}function cu({children:e}){return r.jsxs("li",{className:"flex gap-2",children:[r.jsx(ds,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600","aria-hidden":"true"}),r.jsx("span",{children:e})]})}function dM(){return r.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] gap-4",children:[r.jsx("h1",{className:"text-4xl font-bold",children:"404"}),r.jsx("p",{className:"text-muted-foreground",children:l("Page not found")}),r.jsx(Ot,{to:"/",className:"text-primary hover:underline",children:l("Return to Dashboard")})]})}const uM=new L2({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),fM=()=>(f.useEffect(()=>{n_()},[]),r.jsx($2,{client:uM,children:r.jsxs(bj,{children:[r.jsx(fT,{}),r.jsx(qT,{}),r.jsx(P4,{children:r.jsx(HE,{children:r.jsxs(FE,{children:[r.jsxs(Xe,{element:r.jsx(k5,{}),children:[r.jsx(Xe,{path:"/",element:r.jsx(B5,{})}),r.jsx(Xe,{path:"/analytics",element:r.jsx(ua,{addonId:"analytics",featureName:"Analytics",children:r.jsx(er,{id:"page.analytics"})})}),r.jsx(Xe,{path:"/optins",element:r.jsx(FO,{})}),r.jsx(Xe,{path:"/optins/:id",element:r.jsx(s3,{})}),r.jsx(Xe,{path:"/forms",element:r.jsx(m3,{})}),r.jsx(Xe,{path:"/forms/:integration/:id/settings",element:r.jsx(F3,{})}),r.jsx(Xe,{path:"/categories",element:r.jsx(TN,{})}),r.jsx(Xe,{path:"/categories/:id",element:r.jsx(TN,{})}),r.jsx(Xe,{path:"/settings",element:r.jsx(z3,{})}),r.jsx(Xe,{path:"/email-templates",element:r.jsx(ua,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(U3,{})})}),r.jsx(Xe,{path:"/email-templates/new",element:r.jsx(ua,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(sS,{})})}),r.jsx(Xe,{path:"/email-templates/:id/edit",element:r.jsx(ua,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(sS,{})})}),r.jsx(Xe,{path:"/database",element:r.jsx(B3,{})}),r.jsx(Xe,{path:"/opt-out",element:r.jsx(ua,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx(sI,{})})}),r.jsx(Xe,{path:"/user-creation",element:r.jsx(ua,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(cI,{})})}),r.jsx(Xe,{path:"/api",element:r.jsx(uI,{})}),r.jsx(Xe,{path:"/audit",element:r.jsx(VI,{})}),r.jsx(Xe,{path:"/license",element:r.jsx(fI,{})}),r.jsx(Xe,{path:"/addons",element:r.jsx(mI,{})}),r.jsx(Xe,{path:"/addon-settings/:id",element:r.jsx($I,{})})]}),r.jsx(Xe,{path:"/setup",element:r.jsx(nM,{})}),r.jsx(Xe,{path:"*",element:r.jsx(dM,{})})]})})})]})})),NS=document.getElementById("doi-admin-root");NS&&_y(NS).render(r.jsx(fM,{}))})(wp.i18n); | |
| 495 | 480 | |
| 496 | 481 | })(); |