| 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+c8x6yKiPAv2cH/SXIzsw/6FFq5J1BCrkRshm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+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-\\[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-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-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-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 .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-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-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-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\\: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\\: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\\: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 NM=Object.defineProperty;var BS=$e=>{throw TypeError($e)};var SM=($e,He,st)=>He in $e?NM($e,He,{enumerable:!0,configurable:!0,writable:!0,value:st}):$e[He]=st;var Bi=($e,He,st)=>SM($e,typeof He!="symbol"?He+"":He,st),Zp=($e,He,st)=>He.has($e)||BS("Cannot "+st);var E=($e,He,st)=>(Zp($e,He,"read from private field"),st?st.call($e):He.get($e)),ce=($e,He,st)=>He.has($e)?BS("Cannot add the same private member more than once"):He instanceof WeakSet?He.add($e):He.set($e,st),te=($e,He,st,Fs)=>(Zp($e,He,"write to private field"),Fs?Fs.call($e,st):He.set($e,st),st),we=($e,He,st)=>(Zp($e,He,"access private method"),st);var mu=($e,He,st,Fs)=>({set _(Ea){te($e,He,Ea,st)},get _(){return E($e,He,Fs)}});(function($e){"use strict";var pa,js,Si,ES,ws,Yp,_S,Ci,Ns,ki,PS,xa,TS,ga,Ei,bn,va,vt,wl,ya,an,VS,Lr,RS,qt,Fe,Nl,Dt,ba,_i,Rr,Ss,Sl,Pi,Ti,ja,wa,Cs,Ri,ze,Al,Jp,ex,tx,nx,rx,sx,ax,qS,AS,Cl,or,Tt,Na,lr,Ds,OS,Ar,Bn,kl,IS,Or,ks,Ht,Ir,Mr,hu,ix,MS,Ai,on,Oi,Ii,jn,Es,El,_l,Pl,Tl,Nt,ox,lx,cx,dx,ux,DS,cr,FS,lt,_s,Ps,Mi,Di,Ts,Fi,Li,LS;function He(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 i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fs={exports:{}},Ea={},fx={exports:{}},Ie={};/** |
| 4 |
* @license React |
| 5 |
* react.production.min.js |
| 6 |
* |
| 7 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 8 |
* |
| 9 |
* This source code is licensed under the MIT license found in the |
| 10 |
* LICENSE file in the root directory of this source tree. |
| 11 |
*/var Vi=Symbol.for("react.element"),HS=Symbol.for("react.portal"),WS=Symbol.for("react.fragment"),KS=Symbol.for("react.strict_mode"),QS=Symbol.for("react.profiler"),GS=Symbol.for("react.provider"),YS=Symbol.for("react.context"),XS=Symbol.for("react.forward_ref"),ZS=Symbol.for("react.suspense"),JS=Symbol.for("react.memo"),eC=Symbol.for("react.lazy"),mx=Symbol.iterator;function tC(e){return e===null||typeof e!="object"?null:(e=mx&&e[mx]||e["@@iterator"],typeof e=="function"?e:null)}var hx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},px=Object.assign,xx={};function _a(e,t,n){this.props=e,this.context=t,this.refs=xx,this.updater=n||hx}_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 gx(){}gx.prototype=_a.prototype;function pu(e,t,n){this.props=e,this.context=t,this.refs=xx,this.updater=n||hx}var xu=pu.prototype=new gx;xu.constructor=pu,px(xu,_a.prototype),xu.isPureReactComponent=!0;var vx=Array.isArray,yx=Object.prototype.hasOwnProperty,gu={current:null},bx={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,n){var s,a={},i=null,o=null;if(t!=null)for(s in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)yx.call(t,s)&&!bx.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:Vi,type:e,key:i,ref:o,props:a,_owner:gu.current}}function nC(e,t){return{$$typeof:Vi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function rC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wx=/\/+/g;function yu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rC(""+e.key):t.toString(36)}function Ol(e,t,n,s,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Vi:case HS:o=!0}}if(o)return o=e,a=a(o),e=s===""?"."+yu(o,0):s,vx(a)?(n="",e!=null&&(n=e.replace(wx,"$&/")+"/"),Ol(a,t,n,"",function(u){return u})):a!=null&&(vu(a)&&(a=nC(a,n+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(wx,"$&/")+"/")+e)),t.push(a)),1;if(o=0,s=s===""?".":s+":",vx(e))for(var c=0;c<e.length;c++){i=e[c];var d=s+yu(i,c);o+=Ol(i,t,n,d,a)}else if(d=tC(e),typeof d=="function")for(e=d.call(e),c=0;!(i=e.next()).done;)i=i.value,d=s+yu(i,c++),o+=Ol(i,t,n,d,a);else if(i==="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 o}function Il(e,t,n){if(e==null)return e;var s=[],a=0;return Ol(e,s,"","",function(i){return t.call(n,i,a++)}),s}function sC(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},Ml={transition:null},aC={ReactCurrentDispatcher:Rt,ReactCurrentBatchConfig:Ml,ReactCurrentOwner:gu};function Nx(){throw Error("act(...) is not supported in production builds of React.")}Ie.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(!vu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ie.Component=_a,Ie.Fragment=WS,Ie.Profiler=QS,Ie.PureComponent=pu,Ie.StrictMode=KS,Ie.Suspense=ZS,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aC,Ie.act=Nx,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=px({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=gu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)yx.call(t,d)&&!bx.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:Vi,type:e.type,key:a,ref:i,props:s,_owner:o}},Ie.createContext=function(e){return e={$$typeof:YS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:GS,_context:e},e.Consumer=e},Ie.createElement=jx,Ie.createFactory=function(e){var t=jx.bind(null,e);return t.type=e,t},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(e){return{$$typeof:XS,render:e}},Ie.isValidElement=vu,Ie.lazy=function(e){return{$$typeof:eC,_payload:{_status:-1,_result:e},_init:sC}},Ie.memo=function(e,t){return{$$typeof:JS,type:e,compare:t===void 0?null:t}},Ie.startTransition=function(e){var t=Ml.transition;Ml.transition={};try{e()}finally{Ml.transition=t}},Ie.unstable_act=Nx,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",fx.exports=Ie;var f=fx.exports;const H=st(f),Dl=He({__proto__:null,default:H},[f]);/** |
| 12 |
* @license React |
| 13 |
* react-jsx-runtime.production.min.js |
| 14 |
* |
| 15 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 16 |
* |
| 17 |
* This source code is licensed under the MIT license found in the |
| 18 |
* LICENSE file in the root directory of this source tree. |
| 19 |
*/var iC=f,oC=Symbol.for("react.element"),lC=Symbol.for("react.fragment"),cC=Object.prototype.hasOwnProperty,dC=iC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uC={key:!0,ref:!0,__self:!0,__source:!0};function Sx(e,t,n){var s,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(s in t)cC.call(t,s)&&!uC.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:oC,type:e,key:i,ref:o,props:a,_owner:dC.current}}Ea.Fragment=lC,Ea.jsx=Sx,Ea.jsxs=Sx,Fs.exports=Ea;var r=Fs.exports,Cx={exports:{}},Kt={},kx={exports:{}},Ex={};/** |
| 20 |
* @license React |
| 21 |
* scheduler.production.min.js |
| 22 |
* |
| 23 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 24 |
* |
| 25 |
* This source code is licensed under the MIT license found in the |
| 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 W=2*(pe+1)-1,ie=A[W],Se=W+1,X=A[Se];if(0>a(ie,J))Se<P&&0>a(X,ie)?(A[pe]=X,A[Se]=J,pe=Se):(A[pe]=ie,A[W]=J,pe=W);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 i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],u=[],h=1,m=null,y=3,g=!1,j=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,b=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(v=!1,x(A),!j)if(n(d)!==null)j=!0,M(S);else{var D=n(u);D!==null&&Z(N,D.startTime-A)}}function S(A,D){j=!1,v&&(v=!1,b(k),k=-1),g=!0;var J=y;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,y=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 W=n(u);W!==null&&Z(N,W.startTime-D),z=!1}return z}finally{m=null,y=J,g=!1}}var C=!1,_=null,k=-1,R=5,T=-1;function O(){return!(e.unstable_now()-T<R)}function F(){if(_!==null){var A=e.unstable_now();T=A;var D=!0;try{D=_(!0,A)}finally{D?B():(C=!1,_=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(){w(F,0)};function M(A){_=A,C||(C=!0,B())}function Z(A,D){k=w(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(){j||g||(j=!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 y},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(y){case 1:case 2:case 3:var D=3;break;default:D=y}var J=y;y=D;try{return A()}finally{y=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=y;y=A;try{return D()}finally{y=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)&&(v?(b(k),k=-1):v=!0,Z(N,J-pe))):(A.sortIndex=P,t(d,A),j||g||(j=!0,M(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var D=y;return function(){var J=y;y=D;try{return A.apply(this,arguments)}finally{y=J}}}})(Ex),kx.exports=Ex;var fC=kx.exports;/** |
| 28 |
* @license React |
| 29 |
* react-dom.production.min.js |
| 30 |
* |
| 31 |
* Copyright (c) Facebook, Inc. and its affiliates. |
| 32 |
* |
| 33 |
* This source code is licensed under the MIT license found in the |
| 34 |
* LICENSE file in the root directory of this source tree. |
| 35 |
*/var mC=f,Qt=fC;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 _x=new Set,qi={};function Ls(e,t){Pa(e,t),Pa(e+"Capture",t)}function Pa(e,t){for(qi[e]=t,e=0;e<t.length;e++)_x.add(t[e])}var fr=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),bu=Object.prototype.hasOwnProperty,hC=/^[: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]*$/,Px={},Tx={};function pC(e){return bu.call(Tx,e)?!0:bu.call(Px,e)?!1:hC.test(e)?Tx[e]=!0:(Px[e]=!0,!1)}function xC(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 gC(e,t,n,s){if(t===null||typeof t=="undefined"||xC(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,i,o){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=i,this.removeEmptyString=o}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 ju=/[\-:]([a-z])/g;function wu(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(ju,wu);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(ju,wu);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(ju,wu);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 Nu(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")&&(gC(t,n,a,s)&&(n=null),s||a===null?pC(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=mC.__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"),Su=Symbol.for("react.strict_mode"),Cu=Symbol.for("react.profiler"),Rx=Symbol.for("react.provider"),Ax=Symbol.for("react.context"),ku=Symbol.for("react.forward_ref"),Eu=Symbol.for("react.suspense"),_u=Symbol.for("react.suspense_list"),Pu=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),Ox=Symbol.for("react.offscreen"),Ix=Symbol.iterator;function Hi(e){return e===null||typeof e!="object"?null:(e=Ix&&e[Ix]||e["@@iterator"],typeof e=="function"?e:null)}var tt=Object.assign,Tu;function Wi(e){if(Tu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Tu=t&&t[1]||""}return` |
| 36 |
`+Tu+e}var Ru=!1;function Au(e,t){if(!e||Ru)return"";Ru=!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 |
`),i=s.stack.split(` |
| 38 |
`),o=a.length-1,c=i.length-1;1<=o&&0<=c&&a[o]!==i[c];)c--;for(;1<=o&&0<=c;o--,c--)if(a[o]!==i[c]){if(o!==1||c!==1)do if(o--,c--,0>c||a[o]!==i[c]){var d=` |
| 39 |
`+a[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=c);break}}}finally{Ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wi(e):""}function vC(e){switch(e.tag){case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 2:case 15:return e=Au(e.type,!1),e;case 11:return e=Au(e.type.render,!1),e;case 1:return e=Au(e.type,!0),e;default:return""}}function Ou(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 Cu:return"Profiler";case Su:return"StrictMode";case Eu:return"Suspense";case _u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ax:return(e.displayName||"Context")+".Consumer";case Rx:return(e._context.displayName||"Context")+".Provider";case ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pu:return t=e.displayName||null,t!==null?t:Ou(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Ou(e(t))}catch(n){}}return null}function yC(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 Ou(t);case 8:return t===Su?"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 Mx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bC(e){var t=Mx(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){s=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(o){s=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ll(e){e._valueTracker||(e._valueTracker=bC(e))}function Dx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Mx(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 Iu(e,t){var n=t.checked;return tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Fx(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 Lx(e,t){t=t.checked,t!=null&&Nu(e,"checked",t,!1)}function Mu(e,t){Lx(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")?Du(e,t.type,n):t.hasOwnProperty("defaultValue")&&Du(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $x(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 Du(e,t,n){(t!=="number"||$l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ki=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 Fu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return tt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zx(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(Ki(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 Ux(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 Bx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vx(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 Lu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zl,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(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 Qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={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},jC=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){jC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Hx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function Wx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=Hx(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var wC=tt({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 $u(e,t){if(t){if(wC[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 zu(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 Uu=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vu=null,Oa=null,Ia=null;function Kx(e){if(e=vo(e)){if(typeof Vu!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=cc(t),Vu(e.stateNode,e.type,t))}}function Qx(e){Oa?Ia?Ia.push(e):Ia=[e]:Oa=e}function Gx(){if(Oa){var e=Oa,t=Ia;if(Ia=Oa=null,Kx(e),t)for(e=0;e<t.length;e++)Kx(t[e])}}function Yx(e,t){return e(t)}function Xx(){}var qu=!1;function Zx(e,t,n){if(qu)return e(t,n);qu=!0;try{return Yx(e,t,n)}finally{qu=!1,(Oa!==null||Ia!==null)&&(Xx(),Gx())}}function Yi(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 Hu=!1;if(fr)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch(e){Hu=!1}function NC(e,t,n,s,a,i,o,c,d){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Zi=!1,Ul=null,Bl=!1,Wu=null,SC={onError:function(e){Zi=!0,Ul=e}};function CC(e,t,n,s,a,i,o,c,d){Zi=!1,Ul=null,NC.apply(SC,arguments)}function kC(e,t,n,s,a,i,o,c,d){if(CC.apply(this,arguments),Zi){if(Zi){var u=Ul;Zi=!1,Ul=null}else throw Error(Q(198));Bl||(Bl=!0,Wu=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 Jx(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 eg(e){if($s(e)!==e)throw Error(Q(188))}function EC(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 i=a.alternate;if(i===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return eg(a),e;if(i===s)return eg(a),t;i=i.sibling}throw Error(Q(188))}if(n.return!==s.return)n=a,s=i;else{for(var o=!1,c=a.child;c;){if(c===n){o=!0,n=a,s=i;break}if(c===s){o=!0,s=a,n=i;break}c=c.sibling}if(!o){for(c=i.child;c;){if(c===n){o=!0,n=i,s=a;break}if(c===s){o=!0,s=i,n=a;break}c=c.sibling}if(!o)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 tg(e){return e=EC(e),e!==null?ng(e):null}function ng(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ng(e);if(t!==null)return t;e=e.sibling}return null}var rg=Qt.unstable_scheduleCallback,sg=Qt.unstable_cancelCallback,_C=Qt.unstable_shouldYield,PC=Qt.unstable_requestPaint,ct=Qt.unstable_now,TC=Qt.unstable_getCurrentPriorityLevel,Ku=Qt.unstable_ImmediatePriority,ag=Qt.unstable_UserBlockingPriority,Vl=Qt.unstable_NormalPriority,RC=Qt.unstable_LowPriority,ig=Qt.unstable_IdlePriority,ql=null,Wn=null;function AC(e){if(Wn&&typeof Wn.onCommitFiberRoot=="function")try{Wn.onCommitFiberRoot(ql,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Nn=Math.clz32?Math.clz32:MC,OC=Math.log,IC=Math.LN2;function MC(e){return e>>>=0,e===0?32:31-(OC(e)/IC|0)|0}var Hl=64,Wl=4194304;function Ji(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,i=e.pingedLanes,o=n&268435455;if(o!==0){var c=o&~a;c!==0?s=Ji(c):(i&=o,i!==0&&(s=Ji(i)))}else o=n&~a,o!==0?s=Ji(o):i!==0&&(s=Ji(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,i=t&-t,a>=i||a===16&&(i&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 DC(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 FC(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Nn(i),c=1<<o,d=a[o];d===-1?(!(c&n)||c&s)&&(a[o]=DC(c,t)):d<=t&&(e.expiredLanes|=c),i&=~c}}function Qu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function og(){var e=Hl;return Hl<<=1,!(Hl&4194240)&&(Hl=64),e}function Gu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eo(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 LC(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),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~i}}function Yu(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 lg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cg,Xu,dg,ug,fg,Zu=!1,Ql=[],Ur=null,Br=null,Vr=null,to=new Map,no=new Map,qr=[],$C="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 mg(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":to.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":no.delete(t.pointerId)}}function ro(e,t,n,s,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},t!==null&&(t=vo(t),t!==null&&Xu(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function zC(e,t,n,s,a){switch(t){case"focusin":return Ur=ro(Ur,e,t,n,s,a),!0;case"dragenter":return Br=ro(Br,e,t,n,s,a),!0;case"mouseover":return Vr=ro(Vr,e,t,n,s,a),!0;case"pointerover":var i=a.pointerId;return to.set(i,ro(to.get(i)||null,e,t,n,s,a)),!0;case"gotpointercapture":return i=a.pointerId,no.set(i,ro(no.get(i)||null,e,t,n,s,a)),!0}return!1}function hg(e){var t=zs(e.target);if(t!==null){var n=$s(t);if(n!==null){if(t=n.tag,t===13){if(t=Jx(n),t!==null){e.blockedOn=t,fg(e.priority,function(){dg(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=ef(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Uu=s,n.target.dispatchEvent(s),Uu=null}else return t=vo(n),t!==null&&Xu(t),e.blockedOn=n,!1;t.shift()}return!0}function pg(e,t,n){Gl(e)&&n.delete(t)}function UC(){Zu=!1,Ur!==null&&Gl(Ur)&&(Ur=null),Br!==null&&Gl(Br)&&(Br=null),Vr!==null&&Gl(Vr)&&(Vr=null),to.forEach(pg),no.forEach(pg)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,Zu||(Zu=!0,Qt.unstable_scheduleCallback(Qt.unstable_NormalPriority,UC)))}function ao(e){function t(a){return so(a,e)}if(0<Ql.length){so(Ql[0],e);for(var n=1;n<Ql.length;n++){var s=Ql[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Ur!==null&&so(Ur,e),Br!==null&&so(Br,e),Vr!==null&&so(Vr,e),to.forEach(t),no.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);)hg(n),n.blockedOn===null&&qr.shift()}var Ma=mr.ReactCurrentBatchConfig,Yl=!0;function BC(e,t,n,s){var a=Ue,i=Ma.transition;Ma.transition=null;try{Ue=1,Ju(e,t,n,s)}finally{Ue=a,Ma.transition=i}}function VC(e,t,n,s){var a=Ue,i=Ma.transition;Ma.transition=null;try{Ue=4,Ju(e,t,n,s)}finally{Ue=a,Ma.transition=i}}function Ju(e,t,n,s){if(Yl){var a=ef(e,t,n,s);if(a===null)vf(e,t,s,Xl,n),mg(e,s);else if(zC(a,e,t,n,s))s.stopPropagation();else if(mg(e,s),t&4&&-1<$C.indexOf(e)){for(;a!==null;){var i=vo(a);if(i!==null&&cg(i),i=ef(e,t,n,s),i===null&&vf(e,t,s,Xl,n),i===a)break;a=i}a!==null&&s.stopPropagation()}else vf(e,t,s,null,n)}}var Xl=null;function ef(e,t,n,s){if(Xl=null,e=Bu(s),e=zs(e),e!==null)if(t=$s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jx(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 xg(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(TC()){case Ku:return 1;case ag:return 4;case Vl:case RC:return 16;case ig:return 536870912;default:return 16}default:return 16}}var Hr=null,tf=null,Zl=null;function gg(){if(Zl)return Zl;var e,t=tf,n=t.length,s,a="value"in Hr?Hr.value:Hr.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(s=1;s<=o&&t[n-s]===a[i-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 vg(){return!1}function Gt(e){function t(n,s,a,i,o){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ec:vg,this.isPropagationStopped=vg,this}return tt(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},nf=Gt(Da),io=tt({},Da,{view:0,detail:0}),qC=Gt(io),rf,sf,oo,tc=tt({},io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:of,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!==oo&&(oo&&e.type==="mousemove"?(rf=e.screenX-oo.screenX,sf=e.screenY-oo.screenY):sf=rf=0,oo=e),rf)},movementY:function(e){return"movementY"in e?e.movementY:sf}}),yg=Gt(tc),HC=tt({},tc,{dataTransfer:0}),WC=Gt(HC),KC=tt({},io,{relatedTarget:0}),af=Gt(KC),QC=tt({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),GC=Gt(QC),YC=tt({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XC=Gt(YC),ZC=tt({},Da,{data:0}),bg=Gt(ZC),JC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ek={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"},tk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tk[e])?!!t[e]:!1}function of(){return nk}var rk=tt({},io,{key:function(e){if(e.key){var t=JC[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"?ek[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:of,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}}),sk=Gt(rk),ak=tt({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jg=Gt(ak),ik=tt({},io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:of}),ok=Gt(ik),lk=tt({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),ck=Gt(lk),dk=tt({},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}),uk=Gt(dk),fk=[9,13,27,32],lf=fr&&"CompositionEvent"in window,lo=null;fr&&"documentMode"in document&&(lo=document.documentMode);var mk=fr&&"TextEvent"in window&&!lo,wg=fr&&(!lf||lo&&8<lo&&11>=lo),Ng=" ",Sg=!1;function Cg(e,t){switch(e){case"keyup":return fk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function hk(e,t){switch(e){case"compositionend":return kg(t);case"keypress":return t.which!==32?null:(Sg=!0,Ng);case"textInput":return e=t.data,e===Ng&&Sg?null:e;default:return null}}function pk(e,t){if(Fa)return e==="compositionend"||!lf&&Cg(e,t)?(e=gg(),Zl=tf=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 wg&&t.locale!=="ko"?null:t.data;default:return null}}var xk={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 Eg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xk[e.type]:t==="textarea"}function _g(e,t,n,s){Qx(s),t=ic(t,"onChange"),0<t.length&&(n=new nf("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var co=null,uo=null;function gk(e){Wg(e,0)}function nc(e){var t=Ba(e);if(Dx(t))return e}function vk(e,t){if(e==="change")return t}var Pg=!1;if(fr){var cf;if(fr){var df="oninput"in document;if(!df){var Tg=document.createElement("div");Tg.setAttribute("oninput","return;"),df=typeof Tg.oninput=="function"}cf=df}else cf=!1;Pg=cf&&(!document.documentMode||9<document.documentMode)}function Rg(){co&&(co.detachEvent("onpropertychange",Ag),uo=co=null)}function Ag(e){if(e.propertyName==="value"&&nc(uo)){var t=[];_g(t,uo,e,Bu(e)),Zx(gk,t)}}function yk(e,t,n){e==="focusin"?(Rg(),co=t,uo=n,co.attachEvent("onpropertychange",Ag)):e==="focusout"&&Rg()}function bk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nc(uo)}function jk(e,t){if(e==="click")return nc(t)}function wk(e,t){if(e==="input"||e==="change")return nc(t)}function Nk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sn=typeof Object.is=="function"?Object.is:Nk;function fo(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(!bu.call(t,a)||!Sn(e[a],t[a]))return!1}return!0}function Og(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ig(e,t){var n=Og(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=Og(n)}}function Mg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dg(){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 uf(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 Sk(e){var t=Dg(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mg(n.ownerDocument.documentElement,n)){if(s!==null&&uf(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,i=Math.min(s.start,a);s=s.end===void 0?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=Ig(n,i);var o=Ig(n,s);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Ck=fr&&"documentMode"in document&&11>=document.documentMode,La=null,ff=null,mo=null,mf=!1;function Fg(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mf||La==null||La!==$l(s)||(s=La,"selectionStart"in s&&uf(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}),mo&&fo(mo,s)||(mo=s,s=ic(ff,"onSelect"),0<s.length&&(t=new nf("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")},hf={},Lg={};fr&&(Lg=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(hf[e])return hf[e];if(!$a[e])return e;var t=$a[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lg)return hf[e]=t[n];return e}var $g=sc("animationend"),zg=sc("animationiteration"),Ug=sc("animationstart"),Bg=sc("transitionend"),Vg=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){Vg.set(e,t),Ls(t,[e])}for(var pf=0;pf<qg.length;pf++){var xf=qg[pf],kk=xf.toLowerCase(),Ek=xf[0].toUpperCase()+xf.slice(1);Wr(kk,"on"+Ek)}Wr($g,"onAnimationEnd"),Wr(zg,"onAnimationIteration"),Wr(Ug,"onAnimationStart"),Wr("dblclick","onDoubleClick"),Wr("focusin","onFocus"),Wr("focusout","onBlur"),Wr(Bg,"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 ho="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(" "),_k=new Set("cancel close invalid load scroll toggle".split(" ").concat(ho));function Hg(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,kC(s,t,void 0,e),e.currentTarget=null}function Wg(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 i=void 0;if(t)for(var o=s.length-1;0<=o;o--){var c=s[o],d=c.instance,u=c.currentTarget;if(c=c.listener,d!==i&&a.isPropagationStopped())break e;Hg(a,c,u),i=d}else for(o=0;o<s.length;o++){if(c=s[o],d=c.instance,u=c.currentTarget,c=c.listener,d!==i&&a.isPropagationStopped())break e;Hg(a,c,u),i=d}}}if(Bl)throw e=Wu,Bl=!1,Wu=null,e}function Ge(e,t){var n=t[Sf];n===void 0&&(n=t[Sf]=new Set);var s=e+"__bubble";n.has(s)||(Kg(t,e,2,!1),n.add(s))}function gf(e,t,n){var s=0;t&&(s|=4),Kg(n,e,s,t)}var ac="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[ac]){e[ac]=!0,_x.forEach(function(n){n!=="selectionchange"&&(_k.has(n)||gf(n,!1,e),gf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ac]||(t[ac]=!0,gf("selectionchange",!1,t))}}function Kg(e,t,n,s){switch(xg(t)){case 1:var a=BC;break;case 4:a=VC;break;default:a=Ju}n=a.bind(null,t,n,e),a=void 0,!Hu||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 vf(e,t,n,s,a){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var o=s.tag;if(o===3||o===4){var c=s.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(o===4)for(o=s.return;o!==null;){var d=o.tag;if((d===3||d===4)&&(d=o.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;o=o.return}for(;c!==null;){if(o=zs(c),o===null)return;if(d=o.tag,d===5||d===6){s=i=o;continue e}c=c.parentNode}}s=s.return}Zx(function(){var u=i,h=Bu(n),m=[];e:{var y=Vg.get(e);if(y!==void 0){var g=nf,j=e;switch(e){case"keypress":if(Jl(n)===0)break e;case"keydown":case"keyup":g=sk;break;case"focusin":j="focus",g=af;break;case"focusout":j="blur",g=af;break;case"beforeblur":case"afterblur":g=af;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":g=yg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=WC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=ok;break;case $g:case zg:case Ug:g=GC;break;case Bg:g=ck;break;case"scroll":g=qC;break;case"wheel":g=uk;break;case"copy":case"cut":case"paste":g=XC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=jg}var v=(t&4)!==0,w=!v&&e==="scroll",b=v?y!==null?y+"Capture":null:y;v=[];for(var p=u,x;p!==null;){x=p;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,b!==null&&(N=Yi(p,b),N!=null&&v.push(xo(p,N,x)))),w)break;p=p.return}0<v.length&&(y=new g(y,j,null,n,h),m.push({event:y,listeners:v}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",y&&n!==Uu&&(j=n.relatedTarget||n.fromElement)&&(zs(j)||j[hr]))break e;if((g||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,g?(j=n.relatedTarget||n.toElement,g=u,j=j?zs(j):null,j!==null&&(w=$s(j),j!==w||j.tag!==5&&j.tag!==6)&&(j=null)):(g=null,j=u),g!==j)){if(v=yg,N="onMouseLeave",b="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=jg,N="onPointerLeave",b="onPointerEnter",p="pointer"),w=g==null?y:Ba(g),x=j==null?y:Ba(j),y=new v(N,p+"leave",g,n,h),y.target=w,y.relatedTarget=x,N=null,zs(h)===u&&(v=new v(b,p+"enter",j,n,h),v.target=x,v.relatedTarget=w,N=v),w=N,g&&j)t:{for(v=g,b=j,p=0,x=v;x;x=za(x))p++;for(x=0,N=b;N;N=za(N))x++;for(;0<p-x;)v=za(v),p--;for(;0<x-p;)b=za(b),x--;for(;p--;){if(v===b||b!==null&&v===b.alternate)break t;v=za(v),b=za(b)}v=null}else v=null;g!==null&&Qg(m,y,g,v,!1),j!==null&&w!==null&&Qg(m,w,j,v,!0)}}e:{if(y=u?Ba(u):window,g=y.nodeName&&y.nodeName.toLowerCase(),g==="select"||g==="input"&&y.type==="file")var S=vk;else if(Eg(y))if(Pg)S=wk;else{S=bk;var C=yk}else(g=y.nodeName)&&g.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(S=jk);if(S&&(S=S(e,u))){_g(m,S,n,h);break e}C&&C(e,y,u),e==="focusout"&&(C=y._wrapperState)&&C.controlled&&y.type==="number"&&Du(y,"number",y.value)}switch(C=u?Ba(u):window,e){case"focusin":(Eg(C)||C.contentEditable==="true")&&(La=C,ff=u,mo=null);break;case"focusout":mo=ff=La=null;break;case"mousedown":mf=!0;break;case"contextmenu":case"mouseup":case"dragend":mf=!1,Fg(m,n,h);break;case"selectionchange":if(Ck)break;case"keydown":case"keyup":Fg(m,n,h)}var _;if(lf)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 Fa?Cg(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(wg&&n.locale!=="ko"&&(Fa||k!=="onCompositionStart"?k==="onCompositionEnd"&&Fa&&(_=gg()):(Hr=h,tf="value"in Hr?Hr.value:Hr.textContent,Fa=!0)),C=ic(u,k),0<C.length&&(k=new bg(k,e,null,n,h),m.push({event:k,listeners:C}),_?k.data=_:(_=kg(n),_!==null&&(k.data=_)))),(_=mk?hk(e,n):pk(e,n))&&(u=ic(u,"onBeforeInput"),0<u.length&&(h=new bg("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:u}),h.data=_))}Wg(m,t)})}function xo(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,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Yi(e,n),i!=null&&s.unshift(xo(e,i,a)),i=Yi(e,t),i!=null&&s.push(xo(e,i,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 i=t._reactName,o=[];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=Yi(n,i),d!=null&&o.unshift(xo(n,d,c))):a||(d=Yi(n,i),d!=null&&o.push(xo(n,d,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pk=/\r\n?/g,Tk=/\u0000|\uFFFD/g;function Gg(e){return(typeof e=="string"?e:""+e).replace(Pk,` |
| 40 |
`).replace(Tk,"")}function oc(e,t,n){if(t=Gg(t),Gg(e)!==t&&n)throw Error(Q(425))}function lc(){}var yf=null,bf=null;function jf(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 wf=typeof setTimeout=="function"?setTimeout:void 0,Rk=typeof clearTimeout=="function"?clearTimeout:void 0,Yg=typeof Promise=="function"?Promise:void 0,Ak=typeof queueMicrotask=="function"?queueMicrotask:typeof Yg!="undefined"?function(e){return Yg.resolve(null).then(e).catch(Ok)}:wf;function Ok(e){setTimeout(function(){throw e})}function Nf(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),ao(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);ao(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 Xg(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),Kn="__reactFiber$"+Ua,go="__reactProps$"+Ua,hr="__reactContainer$"+Ua,Sf="__reactEvents$"+Ua,Ik="__reactListeners$"+Ua,Mk="__reactHandles$"+Ua;function zs(e){var t=e[Kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hr]||n[Kn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xg(e);e!==null;){if(n=e[Kn])return n;e=Xg(e)}return t}e=n,n=e.parentNode}return null}function vo(e){return e=e[Kn]||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[go]||null}var Cf=[],Va=-1;function Qr(e){return{current:e}}function Ye(e){0>Va||(e.current=Cf[Va],Cf[Va]=null,Va--)}function We(e,t){Va++,Cf[Va]=e.current,e.current=t}var Gr={},St=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={},i;for(i in n)a[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function $t(e){return e=e.childContextTypes,e!=null}function dc(){Ye(Lt),Ye(St)}function Zg(e,t,n){if(St.current!==Gr)throw Error(Q(168));We(St,t),We(Lt,n)}function Jg(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,yC(e)||"Unknown",a));return tt({},n,s)}function uc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gr,Us=St.current,We(St,e),We(Lt,Lt.current),!0}function ev(e,t,n){var s=e.stateNode;if(!s)throw Error(Q(169));n?(e=Jg(e,t,Us),s.__reactInternalMemoizedMergedChildContext=e,Ye(Lt),Ye(St),We(St,e)):Ye(Lt),We(Lt,n)}var pr=null,fc=!1,kf=!1;function tv(e){pr===null?pr=[e]:pr.push(e)}function Dk(e){fc=!0,tv(e)}function Yr(){if(!kf&&pr!==null){kf=!0;var e=0,t=Ue;try{var n=pr;for(Ue=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)),rg(Ku,Yr),a}finally{Ue=t,kf=!1}}return null}var Ha=[],Wa=0,mc=null,hc=0,dn=[],un=0,Bs=null,xr=1,gr="";function Vs(e,t){Ha[Wa++]=hc,Ha[Wa++]=mc,mc=e,hc=t}function nv(e,t,n){dn[un++]=xr,dn[un++]=gr,dn[un++]=Bs,Bs=e;var s=xr;e=gr;var a=32-Nn(s)-1;s&=~(1<<a),n+=1;var i=32-Nn(t)+a;if(30<i){var o=a-a%5;i=(s&(1<<o)-1).toString(32),s>>=o,a-=o,xr=1<<32-Nn(t)+a|n<<a|s,gr=i+e}else xr=1<<i|n<<a|s,gr=e}function Ef(e){e.return!==null&&(Vs(e,1),nv(e,1,0))}function _f(e){for(;e===mc;)mc=Ha[--Wa],Ha[Wa]=null,hc=Ha[--Wa],Ha[Wa]=null;for(;e===Bs;)Bs=dn[--un],dn[un]=null,gr=dn[--un],dn[un]=null,xr=dn[--un],dn[un]=null}var Yt=null,Xt=null,Je=!1,Cn=null;function rv(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 sv(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=Kr(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:xr,overflow:gr}: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 Pf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tf(e){if(Je){var t=Xt;if(t){var n=t;if(!sv(e,t)){if(Pf(e))throw Error(Q(418));t=Kr(n.nextSibling);var s=Yt;t&&sv(e,t)?rv(s,n):(e.flags=e.flags&-4097|2,Je=!1,Yt=e)}}else{if(Pf(e))throw Error(Q(418));e.flags=e.flags&-4097|2,Je=!1,Yt=e}}}function av(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function pc(e){if(e!==Yt)return!1;if(!Je)return av(e),Je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jf(e.type,e.memoizedProps)),t&&(t=Xt)){if(Pf(e))throw iv(),Error(Q(418));for(;t;)rv(e,t),t=Kr(t.nextSibling)}if(av(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=Kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xt=null}}else Xt=Yt?Kr(e.stateNode.nextSibling):null;return!0}function iv(){for(var e=Xt;e;)e=Kr(e.nextSibling)}function Ka(){Xt=Yt=null,Je=!1}function Rf(e){Cn===null?Cn=[e]:Cn.push(e)}var Fk=mr.ReactCurrentBatchConfig;function yo(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,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var c=a.refs;o===null?delete c[i]:c[i]=o},t._stringRef=i,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 ov(e){var t=e._init;return t(e._payload)}function lv(e){function t(b,p){if(e){var x=b.deletions;x===null?(b.deletions=[p],b.flags|=16):x.push(p)}}function n(b,p){if(!e)return null;for(;p!==null;)t(b,p),p=p.sibling;return null}function s(b,p){for(b=new Map;p!==null;)p.key!==null?b.set(p.key,p):b.set(p.index,p),p=p.sibling;return b}function a(b,p){return b=ss(b,p),b.index=0,b.sibling=null,b}function i(b,p,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<p?(b.flags|=2,p):x):(b.flags|=2,p)):(b.flags|=1048576,p)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function c(b,p,x,N){return p===null||p.tag!==6?(p=wm(x,b.mode,N),p.return=b,p):(p=a(p,x),p.return=b,p)}function d(b,p,x,N){var S=x.type;return S===Ra?h(b,p,x.props.children,N,x.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&ov(S)===p.type)?(N=a(p,x.props),N.ref=yo(b,p,x),N.return=b,N):(N=zc(x.type,x.key,x.props,null,b.mode,N),N.ref=yo(b,p,x),N.return=b,N)}function u(b,p,x,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=Nm(x,b.mode,N),p.return=b,p):(p=a(p,x.children||[]),p.return=b,p)}function h(b,p,x,N,S){return p===null||p.tag!==7?(p=Xs(x,b.mode,N,S),p.return=b,p):(p=a(p,x),p.return=b,p)}function m(b,p,x){if(typeof p=="string"&&p!==""||typeof p=="number")return p=wm(""+p,b.mode,x),p.return=b,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Fl:return x=zc(p.type,p.key,p.props,null,b.mode,x),x.ref=yo(b,null,p),x.return=b,x;case Ta:return p=Nm(p,b.mode,x),p.return=b,p;case $r:var N=p._init;return m(b,N(p._payload),x)}if(Ki(p)||Hi(p))return p=Xs(p,b.mode,x,null),p.return=b,p;xc(b,p)}return null}function y(b,p,x,N){var S=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return S!==null?null:c(b,p,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Fl:return x.key===S?d(b,p,x,N):null;case Ta:return x.key===S?u(b,p,x,N):null;case $r:return S=x._init,y(b,p,S(x._payload),N)}if(Ki(x)||Hi(x))return S!==null?null:h(b,p,x,N,null);xc(b,x)}return null}function g(b,p,x,N,S){if(typeof N=="string"&&N!==""||typeof N=="number")return b=b.get(x)||null,c(p,b,""+N,S);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Fl:return b=b.get(N.key===null?x:N.key)||null,d(p,b,N,S);case Ta:return b=b.get(N.key===null?x:N.key)||null,u(p,b,N,S);case $r:var C=N._init;return g(b,p,x,C(N._payload),S)}if(Ki(N)||Hi(N))return b=b.get(x)||null,h(p,b,N,S,null);xc(p,N)}return null}function j(b,p,x,N){for(var S=null,C=null,_=p,k=p=0,R=null;_!==null&&k<x.length;k++){_.index>k?(R=_,_=null):R=_.sibling;var T=y(b,_,x[k],N);if(T===null){_===null&&(_=R);break}e&&_&&T.alternate===null&&t(b,_),p=i(T,p,k),C===null?S=T:C.sibling=T,C=T,_=R}if(k===x.length)return n(b,_),Je&&Vs(b,k),S;if(_===null){for(;k<x.length;k++)_=m(b,x[k],N),_!==null&&(p=i(_,p,k),C===null?S=_:C.sibling=_,C=_);return Je&&Vs(b,k),S}for(_=s(b,_);k<x.length;k++)R=g(_,b,k,x[k],N),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?k:R.key),p=i(R,p,k),C===null?S=R:C.sibling=R,C=R);return e&&_.forEach(function(O){return t(b,O)}),Je&&Vs(b,k),S}function v(b,p,x,N){var S=Hi(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,_=p,k=p=0,R=null,T=x.next();_!==null&&!T.done;k++,T=x.next()){_.index>k?(R=_,_=null):R=_.sibling;var O=y(b,_,T.value,N);if(O===null){_===null&&(_=R);break}e&&_&&O.alternate===null&&t(b,_),p=i(O,p,k),C===null?S=O:C.sibling=O,C=O,_=R}if(T.done)return n(b,_),Je&&Vs(b,k),S;if(_===null){for(;!T.done;k++,T=x.next())T=m(b,T.value,N),T!==null&&(p=i(T,p,k),C===null?S=T:C.sibling=T,C=T);return Je&&Vs(b,k),S}for(_=s(b,_);!T.done;k++,T=x.next())T=g(_,b,k,T.value,N),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?k:T.key),p=i(T,p,k),C===null?S=T:C.sibling=T,C=T);return e&&_.forEach(function(F){return t(b,F)}),Je&&Vs(b,k),S}function w(b,p,x,N){if(typeof x=="object"&&x!==null&&x.type===Ra&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Fl:e:{for(var S=x.key,C=p;C!==null;){if(C.key===S){if(S=x.type,S===Ra){if(C.tag===7){n(b,C.sibling),p=a(C,x.props.children),p.return=b,b=p;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$r&&ov(S)===C.type){n(b,C.sibling),p=a(C,x.props),p.ref=yo(b,C,x),p.return=b,b=p;break e}n(b,C);break}else t(b,C);C=C.sibling}x.type===Ra?(p=Xs(x.props.children,b.mode,N,x.key),p.return=b,b=p):(N=zc(x.type,x.key,x.props,null,b.mode,N),N.ref=yo(b,p,x),N.return=b,b=N)}return o(b);case Ta: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(b,p.sibling),p=a(p,x.children||[]),p.return=b,b=p;break e}else{n(b,p);break}else t(b,p);p=p.sibling}p=Nm(x,b.mode,N),p.return=b,b=p}return o(b);case $r:return C=x._init,w(b,p,C(x._payload),N)}if(Ki(x))return j(b,p,x,N);if(Hi(x))return v(b,p,x,N);xc(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(n(b,p.sibling),p=a(p,x),p.return=b,b=p):(n(b,p),p=wm(x,b.mode,N),p.return=b,b=p),o(b)):n(b,p)}return w}var Qa=lv(!0),cv=lv(!1),gc=Qr(null),vc=null,Ga=null,Af=null;function Of(){Af=Ga=vc=null}function If(e){var t=gc.current;Ye(gc),e._currentValue=t}function Mf(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,Af=Ga=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(Af!==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 Df(e){qs===null?qs=[e]:qs.push(e)}function dv(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,Df(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 Ff(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uv(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,Le&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,Df(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,Yu(e,n)}}function fv(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:i,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 i=a.firstBaseUpdate,o=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,u=d.next;d.next=null,o===null?i=u:o.next=u,o=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==o&&(c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=d))}if(i!==null){var m=a.baseState;o=0,h=u=d=null,c=i;do{var y=c.lane,g=c.eventTime;if((s&y)===y){h!==null&&(h=h.next={eventTime:g,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var j=e,v=c;switch(y=t,g=n,v.tag){case 1:if(j=v.payload,typeof j=="function"){m=j.call(g,m,y);break e}m=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=v.payload,y=typeof j=="function"?j.call(g,m,y):j,y==null)break e;m=tt({},m,y);break e;case 2:Xr=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,y=a.effects,y===null?a.effects=[c]:y.push(c))}else g={eventTime:g,lane:y,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(u=h=g,d=m):h=h.next=g,o|=y;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;y=c,c=y.next,y.next=null,a.lastBaseUpdate=y,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 o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Ks|=o,e.lanes=o,e.memoizedState=m}}function mv(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 bo={},Qn=Qr(bo),jo=Qr(bo),wo=Qr(bo);function Hs(e){if(e===bo)throw Error(Q(174));return e}function Lf(e,t){switch(We(wo,t),We(jo,e),We(Qn,bo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lu(t,e)}Ye(Qn),We(Qn,t)}function Xa(){Ye(Qn),Ye(jo),Ye(wo)}function hv(e){Hs(wo.current);var t=Hs(Qn.current),n=Lu(t,e.type);t!==n&&(We(jo,e),We(Qn,n))}function $f(e){jo.current===e&&(Ye(Qn),Ye(jo))}var nt=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 zf=[];function Uf(){for(var e=0;e<zf.length;e++)zf[e]._workInProgressVersionPrimary=null;zf.length=0}var wc=mr.ReactCurrentDispatcher,Bf=mr.ReactCurrentBatchConfig,Ws=0,rt=null,ut=null,ht=null,Nc=!1,No=!1,So=0,Lk=0;function Ct(){throw Error(Q(321))}function Vf(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,i){if(Ws=i,rt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wc.current=e===null||e.memoizedState===null?Bk:Vk,e=n(s,a),No){i=0;do{if(No=!1,So=0,25<=i)throw Error(Q(301));i+=1,ht=ut=null,t.updateQueue=null,wc.current=qk,e=n(s,a)}while(No)}if(wc.current=kc,t=ut!==null&&ut.next!==null,Ws=0,ht=ut=rt=null,Nc=!1,t)throw Error(Q(300));return e}function Hf(){var e=So!==0;return So=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?rt.memoizedState=ht=e:ht=ht.next=e,ht}function mn(){if(ut===null){var e=rt.alternate;e=e!==null?e.memoizedState:null}else e=ut.next;var t=ht===null?rt.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?rt.memoizedState=ht=e:ht=ht.next=e}return ht}function Co(e,t){return typeof t=="function"?t(e):t}function Wf(e){var t=mn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=ut,a=s.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}s.baseQueue=a=i,n.pending=null}if(a!==null){i=a.next,s=s.baseState;var c=o=null,d=null,u=i;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,o=s):d=d.next=m,rt.lanes|=h,Ks|=h}u=u.next}while(u!==null&&u!==i);d===null?o=s:d.next=c,Sn(s,t.memoizedState)||(zt=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do i=a.lane,rt.lanes|=i,Ks|=i,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Kf(e){var t=mn(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Sn(i,t.memoizedState)||(zt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function pv(){}function xv(e,t){var n=rt,s=mn(),a=t(),i=!Sn(s.memoizedState,a);if(i&&(s.memoizedState=a,zt=!0),s=s.queue,Qf(yv.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||ht!==null&&ht.memoizedState.tag&1){if(n.flags|=2048,ko(9,vv.bind(null,n,s,a,t),void 0,null),pt===null)throw Error(Q(349));Ws&30||gv(n,t,a)}return a}function gv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=rt.updateQueue,t===null?(t={lastEffect:null,stores:null},rt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vv(e,t,n,s){t.value=n,t.getSnapshot=s,bv(t)&&jv(e)}function yv(e,t,n){return n(function(){bv(t)&&jv(e)})}function bv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sn(e,n)}catch(s){return!0}}function jv(e){var t=vr(e,1);t!==null&&Pn(t,e,1,-1)}function wv(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:Co,lastRenderedState:e},t.queue=e,e=e.dispatch=Uk.bind(null,rt,e),[t.memoizedState,e]}function ko(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=rt.updateQueue,t===null?(t={lastEffect:null,stores:null},rt.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 Nv(){return mn().memoizedState}function Sc(e,t,n,s){var a=Gn();rt.flags|=e,a.memoizedState=ko(1|t,n,void 0,s===void 0?null:s)}function Cc(e,t,n,s){var a=mn();s=s===void 0?null:s;var i=void 0;if(ut!==null){var o=ut.memoizedState;if(i=o.destroy,s!==null&&Vf(s,o.deps)){a.memoizedState=ko(t,n,i,s);return}}rt.flags|=e,a.memoizedState=ko(1|t,n,i,s)}function Sv(e,t){return Sc(8390656,8,e,t)}function Qf(e,t){return Cc(2048,8,e,t)}function Cv(e,t){return Cc(4,2,e,t)}function kv(e,t){return Cc(4,4,e,t)}function Ev(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 _v(e,t,n){return n=n!=null?n.concat([e]):null,Cc(4,4,Ev.bind(null,t,e),n)}function Gf(){}function Pv(e,t){var n=mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Vf(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Tv(e,t){var n=mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Vf(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Rv(e,t,n){return Ws&21?(Sn(n,t)||(n=og(),rt.lanes|=n,Ks|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=n)}function $k(e,t){var n=Ue;Ue=n!==0&&4>n?n:4,e(!0);var s=Bf.transition;Bf.transition={};try{e(!1),t()}finally{Ue=n,Bf.transition=s}}function Av(){return mn().memoizedState}function zk(e,t,n){var s=ns(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Ov(e))Iv(t,n);else if(n=dv(e,t,n,s),n!==null){var a=It();Pn(n,e,s,a),Mv(n,t,s)}}function Uk(e,t,n){var s=ns(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ov(e))Iv(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,c=i(o,n);if(a.hasEagerState=!0,a.eagerState=c,Sn(c,o)){var d=t.interleaved;d===null?(a.next=a,Df(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch(u){}finally{}n=dv(e,t,a,s),n!==null&&(a=It(),Pn(n,e,s,a),Mv(n,t,s))}}function Ov(e){var t=e.alternate;return e===rt||t!==null&&t===rt}function Iv(e,t){No=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mv(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Yu(e,n)}}var kc={readContext:fn,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},Bk={readContext:fn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:Sv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sc(4194308,4,Ev.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=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=zk.bind(null,rt,e),[s.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:wv,useDebugValue:Gf,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=wv(!1),t=e[0];return e=$k.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=rt,a=Gn();if(Je){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),pt===null)throw Error(Q(349));Ws&30||gv(s,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Sv(yv.bind(null,s,i,e),[e]),s.flags|=2048,ko(9,vv.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Gn(),t=pt.identifierPrefix;if(Je){var n=gr,s=xr;n=(s&~(1<<32-Nn(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=So++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vk={readContext:fn,useCallback:Pv,useContext:fn,useEffect:Qf,useImperativeHandle:_v,useInsertionEffect:Cv,useLayoutEffect:kv,useMemo:Tv,useReducer:Wf,useRef:Nv,useState:function(){return Wf(Co)},useDebugValue:Gf,useDeferredValue:function(e){var t=mn();return Rv(t,ut.memoizedState,e)},useTransition:function(){var e=Wf(Co)[0],t=mn().memoizedState;return[e,t]},useMutableSource:pv,useSyncExternalStore:xv,useId:Av,unstable_isNewReconciler:!1},qk={readContext:fn,useCallback:Pv,useContext:fn,useEffect:Qf,useImperativeHandle:_v,useInsertionEffect:Cv,useLayoutEffect:kv,useMemo:Tv,useReducer:Kf,useRef:Nv,useState:function(){return Kf(Co)},useDebugValue:Gf,useDeferredValue:function(e){var t=mn();return ut===null?t.memoizedState=e:Rv(t,ut.memoizedState,e)},useTransition:function(){var e=Kf(Co)[0],t=mn().memoizedState;return[e,t]},useMutableSource:pv,useSyncExternalStore:xv,useId:Av,unstable_isNewReconciler:!1};function kn(e,t){if(e&&e.defaultProps){t=tt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Yf(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:tt({},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=It(),a=ns(e),i=yr(s,a);i.payload=t,n!=null&&(i.callback=n),t=Zr(e,i,a),t!==null&&(Pn(t,e,a,s),yc(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=It(),a=ns(e),i=yr(s,a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zr(e,i,a),t!==null&&(Pn(t,e,a,s),yc(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=It(),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 Dv(e,t,n,s,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,o):t.prototype&&t.prototype.isPureReactComponent?!fo(n,s)||!fo(a,i):!0}function Fv(e,t,n){var s=!1,a=Gr,i=t.contextType;return typeof i=="object"&&i!==null?i=fn(i):(a=$t(t)?Us:St.current,s=t.contextTypes,i=(s=s!=null)?qa(e,a):Gr),t=new t(n,i),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=i),t}function Lv(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 Xf(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ff(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=fn(i):(i=$t(t)?Us:St.current,a.context=qa(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Yf(e,t,i,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+=vC(s),s=s.return;while(s);var a=n}catch(i){a=` |
| 41 |
Error generating stack: `+i.message+` |
| 42 |
`+i.stack}return{value:e,source:t,stack:a,digest:null}}function Zf(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Jf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hk=typeof WeakMap=="function"?WeakMap:Map;function $v(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,hm=s),Jf(e,t)},n}function zv(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(){Jf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Jf(e,t),typeof s!="function"&&(es===null?es=new Set([this]):es.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Uv(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Hk;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=a2.bind(null,e,t,n),t.then(e,e))}function Bv(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 Vv(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 Wk=mr.ReactCurrentOwner,zt=!1;function Ot(e,t,n,s){t.child=e===null?cv(t,null,n,s):Qa(t,e.child,n,s)}function qv(e,t,n,s,a){n=n.render;var i=t.ref;return Ya(t,a),s=qf(e,t,n,s,i,a),n=Hf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,br(e,t,a)):(Je&&n&&Ef(t),t.flags|=1,Ot(e,t,s,a),t.child)}function Hv(e,t,n,s,a){if(e===null){var i=n.type;return typeof i=="function"&&!jm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Wv(e,t,i,s,a)):(e=zc(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:fo,n(o,s)&&e.ref===t.ref)return br(e,t,a)}return t.flags|=1,e=ss(i,s),e.ref=t.ref,e.return=t,t.child=e}function Wv(e,t,n,s,a){if(e!==null){var i=e.memoizedProps;if(fo(i,s)&&e.ref===t.ref)if(zt=!1,t.pendingProps=s=i,(e.lanes&a)!==0)e.flags&131072&&(zt=!0);else return t.lanes=e.lanes,br(e,t,a)}return em(e,t,n,s,a)}function Kv(e,t,n){var s=t.pendingProps,a=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(ei,Zt),Zt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,We(ei,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,We(ei,Zt),Zt|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,We(ei,Zt),Zt|=s;return Ot(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 em(e,t,n,s,a){var i=$t(n)?Us:St.current;return i=qa(t,i),Ya(t,a),n=qf(e,t,n,s,i,a),s=Hf(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,br(e,t,a)):(Je&&s&&Ef(t),t.flags|=1,Ot(e,t,n,a),t.child)}function Gv(e,t,n,s,a){if($t(n)){var i=!0;uc(t)}else i=!1;if(Ya(t,a),t.stateNode===null)Pc(e,t),Fv(t,n,s),Xf(t,n,s,a),s=!0;else if(e===null){var o=t.stateNode,c=t.memoizedProps;o.props=c;var d=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=fn(u):(u=$t(n)?Us:St.current,u=qa(t,u));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==s||d!==u)&&Lv(t,o,s,u),Xr=!1;var y=t.memoizedState;o.state=y,bc(t,s,o,a),d=t.memoizedState,c!==s||y!==d||Lt.current||Xr?(typeof h=="function"&&(Yf(t,n,h,s),d=t.memoizedState),(c=Xr||Dv(t,n,c,s,y,d,u))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),o.props=s,o.state=d,o.context=u,s=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{o=t.stateNode,uv(e,t),c=t.memoizedProps,u=t.type===t.elementType?c:kn(t.type,c),o.props=u,m=t.pendingProps,y=o.context,d=n.contextType,typeof d=="object"&&d!==null?d=fn(d):(d=$t(n)?Us:St.current,d=qa(t,d));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==m||y!==d)&&Lv(t,o,s,d),Xr=!1,y=t.memoizedState,o.state=y,bc(t,s,o,a);var j=t.memoizedState;c!==m||y!==j||Lt.current||Xr?(typeof g=="function"&&(Yf(t,n,g,s),j=t.memoizedState),(u=Xr||Dv(t,n,u,s,y,j,d)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,j,d),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,j,d)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=j),o.props=s,o.state=j,o.context=d,s=u):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),s=!1)}return tm(e,t,n,s,i,a)}function tm(e,t,n,s,a,i){Qv(e,t);var o=(t.flags&128)!==0;if(!s&&!o)return a&&ev(t,n,!1),br(e,t,i);s=t.stateNode,Wk.current=t;var c=o&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&o?(t.child=Qa(t,e.child,null,i),t.child=Qa(t,null,c,i)):Ot(e,t,c,i),t.memoizedState=s.state,a&&ev(t,n,!0),t.child}function Yv(e){var t=e.stateNode;t.pendingContext?Zg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zg(e,t.context,!1),Lf(e,t.containerInfo)}function Xv(e,t,n,s,a){return Ka(),Rf(a),t.flags|=256,Ot(e,t,n,s),t.child}var nm={dehydrated:null,treeContext:null,retryLane:0};function rm(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zv(e,t,n){var s=t.pendingProps,a=nt.current,i=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),We(nt,a&1),e===null)return Tf(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):(o=s.children,e=s.fallback,i?(s=t.mode,i=t.child,o={mode:"hidden",children:o},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Uc(o,s,0,null),e=Xs(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rm(n),t.memoizedState=nm,e):sm(t,o));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return Kk(e,t,o,s,c,a,n);if(i){i=s.fallback,o=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:s.children};return!(o&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?i=ss(c,i):(i=Xs(i,o,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,o=e.child.memoizedState,o=o===null?rm(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nm,s}return i=e.child,e=i.sibling,s=ss(i,{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 sm(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&&Rf(s),Qa(t,e.child,null,n),e=sm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kk(e,t,n,s,a,i,o){if(n)return t.flags&256?(t.flags&=-257,s=Zf(Error(Q(422))),_c(e,t,o,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,a=t.mode,s=Uc({mode:"visible",children:s.children},a,0,null),i=Xs(i,a,o,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Qa(t,e.child,null,o),t.child.memoizedState=rm(o),t.memoizedState=nm,i);if(!(t.mode&1))return _c(e,t,o,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;return s=c,i=Error(Q(419)),s=Zf(i,s,void 0),_c(e,t,o,s)}if(c=(o&e.childLanes)!==0,zt||c){if(s=pt,s!==null){switch(o&-o){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|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,vr(e,a),Pn(s,e,a,-1))}return bm(),s=Zf(Error(Q(421))),_c(e,t,o,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=i2.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Xt=Kr(a.nextSibling),Yt=t,Je=!0,Cn=null,e!==null&&(dn[un++]=xr,dn[un++]=gr,dn[un++]=Bs,xr=e.id,gr=e.overflow,Bs=t),t=sm(t,s.children),t.flags|=4096,t)}function Jv(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Mf(e.return,t,n)}function am(e,t,n,s,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=a)}function ey(e,t,n){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(Ot(e,t,s.children,n),s=nt.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&&Jv(e,n,t);else if(e.tag===19)Jv(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(We(nt,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),am(t,!1,a,n,i);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}am(t,!0,n,null,i);break;case"together":am(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 Qk(e,t,n){switch(t.tag){case 3:Yv(t),Ka();break;case 5:hv(t);break;case 1:$t(t.type)&&uc(t);break;case 4:Lf(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;We(gc,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(We(nt,nt.current&1),t.flags|=128,null):n&t.child.childLanes?Zv(e,t,n):(We(nt,nt.current&1),e=br(e,t,n),e!==null?e.sibling:null);We(nt,nt.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return ey(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),We(nt,nt.current),s)break;return null;case 22:case 23:return t.lanes=0,Kv(e,t,n)}return br(e,t,n)}var ty,im,ny,ry;ty=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}},im=function(){},ny=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Hs(Qn.current);var i=null;switch(n){case"input":a=Iu(e,a),s=Iu(e,s),i=[];break;case"select":a=tt({},a,{value:void 0}),s=tt({},s,{value:void 0}),i=[];break;case"textarea":a=Fu(e,a),s=Fu(e,s),i=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=lc)}$u(n,s);var o;n=null;for(u in a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var c=a[u];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).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(o in c)!c.hasOwnProperty(o)||d&&d.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in d)d.hasOwnProperty(o)&&c[o]!==d[o]&&(n||(n={}),n[o]=d[o])}else n||(i||(i=[]),i.push(u,n)),n=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(i=i||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qi.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&Ge("scroll",e),i||c===d||(i=[])):(i=i||[]).push(u,d))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},ry=function(e,t,n,s){n!==s&&(t.flags|=4)};function Eo(e,t){if(!Je)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 kt(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 Gk(e,t,n){var s=t.pendingProps;switch(_f(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(t),null;case 1:return $t(t.type)&&dc(),kt(t),null;case 3:return s=t.stateNode,Xa(),Ye(Lt),Ye(St),Uf(),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&&(gm(Cn),Cn=null))),im(e,t),kt(t),null;case 5:$f(t);var a=Hs(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)ny(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 kt(t),null}if(e=Hs(Qn.current),pc(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Kn]=t,s[go]=i,e=(t.mode&1)!==0,n){case"dialog":Ge("cancel",s),Ge("close",s);break;case"iframe":case"object":case"embed":Ge("load",s);break;case"video":case"audio":for(a=0;a<ho.length;a++)Ge(ho[a],s);break;case"source":Ge("error",s);break;case"img":case"image":case"link":Ge("error",s),Ge("load",s);break;case"details":Ge("toggle",s);break;case"input":Fx(s,i),Ge("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},Ge("invalid",s);break;case"textarea":zx(s,i),Ge("invalid",s)}$u(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var c=i[o];o==="children"?typeof c=="string"?s.textContent!==c&&(i.suppressHydrationWarning!==!0&&oc(s.textContent,c,e),a=["children",c]):typeof c=="number"&&s.textContent!==""+c&&(i.suppressHydrationWarning!==!0&&oc(s.textContent,c,e),a=["children",""+c]):qi.hasOwnProperty(o)&&c!=null&&o==="onScroll"&&Ge("scroll",s)}switch(n){case"input":Ll(s),$x(s,i,!0);break;case"textarea":Ll(s),Bx(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=lc)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vx(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=o.createElement(n,{is:s.is}):(e=o.createElement(n),n==="select"&&(o=e,s.multiple?o.multiple=!0:s.size&&(o.size=s.size))):e=o.createElementNS(e,n),e[Kn]=t,e[go]=s,ty(e,t,!1,!1),t.stateNode=e;e:{switch(o=zu(n,s),n){case"dialog":Ge("cancel",e),Ge("close",e),a=s;break;case"iframe":case"object":case"embed":Ge("load",e),a=s;break;case"video":case"audio":for(a=0;a<ho.length;a++)Ge(ho[a],e);a=s;break;case"source":Ge("error",e),a=s;break;case"img":case"image":case"link":Ge("error",e),Ge("load",e),a=s;break;case"details":Ge("toggle",e),a=s;break;case"input":Fx(e,s),a=Iu(e,s),Ge("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=tt({},s,{value:void 0}),Ge("invalid",e);break;case"textarea":zx(e,s),a=Fu(e,s),Ge("invalid",e);break;default:a=s}$u(n,a),c=a;for(i in c)if(c.hasOwnProperty(i)){var d=c[i];i==="style"?Wx(e,d):i==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&qx(e,d)):i==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&Qi(e,d):typeof d=="number"&&Qi(e,""+d):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qi.hasOwnProperty(i)?d!=null&&i==="onScroll"&&Ge("scroll",e):d!=null&&Nu(e,i,d,o))}switch(n){case"input":Ll(e),$x(e,s,!1);break;case"textarea":Ll(e),Bx(e);break;case"option":s.value!=null&&e.setAttribute("value",""+zr(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Aa(e,!!s.multiple,i,!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 kt(t),null;case 6:if(e&&t.stateNode!=null)ry(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(Q(166));if(n=Hs(wo.current),Hs(Qn.current),pc(t)){if(s=t.stateNode,n=t.memoizedProps,s[Kn]=t,(i=s.nodeValue!==n)&&(e=Yt,e!==null))switch(e.tag){case 3:oc(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oc(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Kn]=t,t.stateNode=s}return kt(t),null;case 13:if(Ye(nt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Je&&Xt!==null&&t.mode&1&&!(t.flags&128))iv(),Ka(),t.flags|=98560,i=!1;else if(i=pc(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(Q(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Q(317));i[Kn]=t}else Ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kt(t),i=!1}else Cn!==null&&(gm(Cn),Cn=null),i=!0;if(!i)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||nt.current&1?ft===0&&(ft=3):bm())),t.updateQueue!==null&&(t.flags|=4),kt(t),null);case 4:return Xa(),im(e,t),e===null&&po(t.stateNode.containerInfo),kt(t),null;case 10:return If(t.type._context),kt(t),null;case 17:return $t(t.type)&&dc(),kt(t),null;case 19:if(Ye(nt),i=t.memoizedState,i===null)return kt(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)Eo(i,!1);else{if(ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=jc(e),o!==null){for(t.flags|=128,Eo(i,!1),s=o.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return We(nt,nt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ct()>ti&&(t.flags|=128,s=!0,Eo(i,!1),t.lanes=4194304)}else{if(!s)if(e=jc(o),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Je)return kt(t),null}else 2*ct()-i.renderingStartTime>ti&&n!==1073741824&&(t.flags|=128,s=!0,Eo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ct(),t.sibling=null,n=nt.current,We(nt,s?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return ym(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Zt&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function Yk(e,t){switch(_f(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(),Ye(Lt),Ye(St),Uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $f(t),null;case 13:if(Ye(nt),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 Ye(nt),null;case 4:return Xa(),null;case 10:return If(t.type._context),null;case 22:case 23:return ym(),null;case 24:return null;default:return null}}var Tc=!1,Et=!1,Xk=typeof WeakSet=="function"?WeakSet:Set,de=null;function Ja(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){at(e,t,s)}else n.current=null}function om(e,t,n){try{n()}catch(s){at(e,t,s)}}var sy=!1;function Zk(e,t){if(yf=Yl,e=Dg(),uf(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,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch(N){n=null;break e}var o=0,c=-1,d=-1,u=0,h=0,m=e,y=null;t:for(;;){for(var g;m!==n||a!==0&&m.nodeType!==3||(c=o+a),m!==i||s!==0&&m.nodeType!==3||(d=o+s),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)y=m,m=g;for(;;){if(m===e)break t;if(y===n&&++u===a&&(c=o),y===i&&++h===s&&(d=o),(g=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=g}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(bf={focusedElem:e,selectionRange:n},Yl=!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 j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var v=j.memoizedProps,w=j.memoizedState,b=t.stateNode,p=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:kn(t.type,v),w);b.__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){at(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return j=sy,sy=!1,j}function _o(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 i=a.destroy;a.destroy=void 0,i!==void 0&&om(t,n,i)}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 lm(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 ay(e){var t=e.alternate;t!==null&&(e.alternate=null,ay(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kn],delete t[go],delete t[Sf],delete t[Ik],delete t[Mk])),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 iy(e){return e.tag===5||e.tag===3||e.tag===4}function oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iy(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 cm(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(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function dm(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(dm(e,t,n),e=e.sibling;e!==null;)dm(e,t,n),e=e.sibling}var bt=null,En=!1;function Jr(e,t,n){for(n=n.child;n!==null;)ly(e,t,n),n=n.sibling}function ly(e,t,n){if(Wn&&typeof Wn.onCommitFiberUnmount=="function")try{Wn.onCommitFiberUnmount(ql,n)}catch(c){}switch(n.tag){case 5:Et||Ja(n,t);case 6:var s=bt,a=En;bt=null,Jr(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?Nf(e.parentNode,n):e.nodeType===1&&Nf(e,n),ao(e)):Nf(bt,n.stateNode));break;case 4:s=bt,a=En,bt=n.stateNode.containerInfo,En=!0,Jr(e,t,n),bt=s,En=a;break;case 0:case 11:case 14:case 15:if(!Et&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&om(n,t,o),a=a.next}while(a!==s)}Jr(e,t,n);break;case 1:if(!Et&&(Ja(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(c){at(n,t,c)}Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:n.mode&1?(Et=(s=Et)||n.memoizedState!==null,Jr(e,t,n),Et=s):Jr(e,t,n);break;default:Jr(e,t,n)}}function cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xk),t.forEach(function(s){var a=o2.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 i=e,o=t,c=o;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));ly(i,o,a),bt=null,En=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(u){at(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dy(t,e),t=t.sibling}function dy(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{_o(3,e,e.return),Rc(3,e)}catch(v){at(e,e.return,v)}try{_o(5,e,e.return)}catch(v){at(e,e.return,v)}}break;case 1:_n(t,e),Yn(e),s&512&&n!==null&&Ja(n,n.return);break;case 5:if(_n(t,e),Yn(e),s&512&&n!==null&&Ja(n,n.return),e.flags&32){var a=e.stateNode;try{Qi(a,"")}catch(v){at(e,e.return,v)}}if(s&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&i.type==="radio"&&i.name!=null&&Lx(a,i),zu(c,o);var u=zu(c,i);for(o=0;o<d.length;o+=2){var h=d[o],m=d[o+1];h==="style"?Wx(a,m):h==="dangerouslySetInnerHTML"?qx(a,m):h==="children"?Qi(a,m):Nu(a,h,m,u)}switch(c){case"input":Mu(a,i);break;case"textarea":Ux(a,i);break;case"select":var y=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Aa(a,!!i.multiple,g,!1):y!==!!i.multiple&&(i.defaultValue!=null?Aa(a,!!i.multiple,i.defaultValue,!0):Aa(a,!!i.multiple,i.multiple?[]:"",!1))}a[go]=i}catch(v){at(e,e.return,v)}}break;case 6:if(_n(t,e),Yn(e),s&4){if(e.stateNode===null)throw Error(Q(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){at(e,e.return,v)}}break;case 3:if(_n(t,e),Yn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ao(t.containerInfo)}catch(v){at(e,e.return,v)}break;case 4:_n(t,e),Yn(e);break;case 13:_n(t,e),Yn(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(mm=ct())),s&4&&cy(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||h,_n(t,e),Et=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(y=de,g=y.child,y.tag){case 0:case 11:case 14:case 15:_o(4,y,y.return);break;case 1:Ja(y,y.return);var j=y.stateNode;if(typeof j.componentWillUnmount=="function"){s=y,n=y.return;try{t=s,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(v){at(s,n,v)}}break;case 5:Ja(y,y.return);break;case 22:if(y.memoizedState!==null){my(m);continue}}g!==null?(g.return=y,de=g):my(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{a=m.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=m.stateNode,d=m.memoizedProps.style,o=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=Hx("display",o))}catch(v){at(e,e.return,v)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(v){at(e,e.return,v)}}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&&cy(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(iy(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&&(Qi(a,""),s.flags&=-33);var i=oy(e);dm(e,i,a);break;case 3:case 4:var o=s.stateNode.containerInfo,c=oy(e);cm(e,c,o);break;default:throw Error(Q(161))}}catch(d){at(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jk(e,t,n){de=e,uy(e)}function uy(e,t,n){for(var s=(e.mode&1)!==0;de!==null;){var a=de,i=a.child;if(a.tag===22&&s){var o=a.memoizedState!==null||Tc;if(!o){var c=a.alternate,d=c!==null&&c.memoizedState!==null||Et;c=Tc;var u=Et;if(Tc=o,(Et=d)&&!u)for(de=a;de!==null;)o=de,d=o.child,o.tag===22&&o.memoizedState!==null?hy(a):d!==null?(d.return=o,de=d):hy(a);for(;i!==null;)de=i,uy(i),i=i.sibling;de=a,Tc=c,Et=u}fy(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,de=i):fy(e)}}function fy(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:Et||Rc(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Et)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 i=t.updateQueue;i!==null&&mv(t,i,s);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mv(t,o,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&&ao(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Et||t.flags&512&&lm(t)}catch(y){at(t,t.return,y)}}if(t===e){de=null;break}if(n=t.sibling,n!==null){n.return=t.return,de=n;break}de=t.return}}function my(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 hy(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rc(4,t)}catch(d){at(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(d){at(t,a,d)}}var i=t.return;try{lm(t)}catch(d){at(t,i,d)}break;case 5:var o=t.return;try{lm(t)}catch(d){at(t,o,d)}}}catch(d){at(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 e2=Math.ceil,Ac=mr.ReactCurrentDispatcher,um=mr.ReactCurrentOwner,hn=mr.ReactCurrentBatchConfig,Le=0,pt=null,dt=null,jt=0,Zt=0,ei=Qr(0),ft=0,Po=null,Ks=0,Oc=0,fm=0,To=null,Ut=null,mm=0,ti=1/0,jr=null,Ic=!1,hm=null,es=null,Mc=!1,ts=null,Dc=0,Ro=0,pm=null,Fc=-1,Lc=0;function It(){return Le&6?ct():Fc!==-1?Fc:Fc=ct()}function ns(e){return e.mode&1?Le&2&&jt!==0?jt&-jt:Fk.transition!==null?(Lc===0&&(Lc=og()),Lc):(e=Ue,e!==0||(e=window.event,e=e===void 0?16:xg(e.type)),e):1}function Pn(e,t,n,s){if(50<Ro)throw Ro=0,pm=null,Error(Q(185));eo(e,n,s),(!(Le&2)||e!==pt)&&(e===pt&&(!(Le&2)&&(Oc|=n),ft===4&&rs(e,jt)),Bt(e,s),n===1&&Le===0&&!(t.mode&1)&&(ti=ct()+500,fc&&Yr()))}function Bt(e,t){var n=e.callbackNode;FC(e,t);var s=Kl(e,e===pt?jt:0);if(s===0)n!==null&&sg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&sg(n),t===1)e.tag===0?Dk(xy.bind(null,e)):tv(xy.bind(null,e)),Ak(function(){!(Le&6)&&Yr()}),n=null;else{switch(lg(s)){case 1:n=Ku;break;case 4:n=ag;break;case 16:n=Vl;break;case 536870912:n=ig;break;default:n=Vl}n=Sy(n,py.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function py(e,t){if(Fc=-1,Lc=0,Le&6)throw Error(Q(327));var n=e.callbackNode;if(ni()&&e.callbackNode!==n)return null;var s=Kl(e,e===pt?jt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=$c(e,s);else{t=s;var a=Le;Le|=2;var i=vy();(pt!==e||jt!==t)&&(jr=null,ti=ct()+500,Gs(e,t));do try{r2();break}catch(c){gy(e,c)}while(!0);Of(),Ac.current=i,Le=a,dt!==null?t=0:(pt=null,jt=0,t=ft)}if(t!==0){if(t===2&&(a=Qu(e),a!==0&&(s=a,t=xm(e,a))),t===1)throw n=Po,Gs(e,0),rs(e,s),Bt(e,ct()),n;if(t===6)rs(e,s);else{if(a=e.current.alternate,!(s&30)&&!t2(a)&&(t=$c(e,s),t===2&&(i=Qu(e),i!==0&&(s=i,t=xm(e,i))),t===1))throw n=Po,Gs(e,0),rs(e,s),Bt(e,ct()),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=mm+500-ct(),10<t)){if(Kl(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){It(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=wf(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 o=31-Nn(s);i=1<<o,o=t[o],o>a&&(a=o),s&=~i}if(s=a,s=ct()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*e2(s/1960))-s,10<s){e.timeoutHandle=wf(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,ct()),e.callbackNode===n?py.bind(null,e):null}function xm(e,t){var n=To;return e.current.memoizedState.isDehydrated&&(Gs(e,t).flags|=256),e=$c(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&gm(t)),e}function gm(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function t2(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],i=a.getSnapshot;a=a.value;try{if(!Sn(i(),a))return!1}catch(o){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&=~fm,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 xy(e){if(Le&6)throw Error(Q(327));ni();var t=Kl(e,0);if(!(t&1))return Bt(e,ct()),null;var n=$c(e,t);if(e.tag!==0&&n===2){var s=Qu(e);s!==0&&(t=s,n=xm(e,s))}if(n===1)throw n=Po,Gs(e,0),rs(e,t),Bt(e,ct()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ys(e,Ut,jr),Bt(e,ct()),null}function vm(e,t){var n=Le;Le|=1;try{return e(t)}finally{Le=n,Le===0&&(ti=ct()+500,fc&&Yr())}}function Qs(e){ts!==null&&ts.tag===0&&!(Le&6)&&ni();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)&&Yr()}}function ym(){Zt=ei.current,Ye(ei)}function Gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rk(n)),dt!==null)for(n=dt.return;n!==null;){var s=n;switch(_f(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&dc();break;case 3:Xa(),Ye(Lt),Ye(St),Uf();break;case 5:$f(s);break;case 4:Xa();break;case 13:Ye(nt);break;case 19:Ye(nt);break;case 10:If(s.type._context);break;case 22:case 23:ym()}n=n.return}if(pt=e,dt=e=ss(e.current,null),jt=Zt=t,ft=0,Po=null,fm=Oc=Ks=0,Ut=To=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,i=n.pending;if(i!==null){var o=i.next;i.next=a,s.next=o}n.pending=s}qs=null}return e}function gy(e,t){do{var n=dt;try{if(Of(),wc.current=kc,Nc){for(var s=rt.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Nc=!1}if(Ws=0,ht=ut=rt=null,No=!1,So=0,um.current=null,n===null||n.return===null){ft=1,Po=t,dt=null;break}e:{var i=e,o=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 y=h.alternate;y?(h.updateQueue=y.updateQueue,h.memoizedState=y.memoizedState,h.lanes=y.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=Bv(o);if(g!==null){g.flags&=-257,Vv(g,o,c,i,t),g.mode&1&&Uv(i,u,t),t=g,d=u;var j=t.updateQueue;if(j===null){var v=new Set;v.add(d),t.updateQueue=v}else j.add(d);break e}else{if(!(t&1)){Uv(i,u,t),bm();break e}d=Error(Q(426))}}else if(Je&&c.mode&1){var w=Bv(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Vv(w,o,c,i,t),Rf(Za(d,c));break e}}i=d=Za(d,c),ft!==4&&(ft=2),To===null?To=[i]:To.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=$v(i,d,t);fv(i,b);break e;case 1:c=d;var p=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(es===null||!es.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=zv(i,c,t);fv(i,N);break e}}i=i.return}while(i!==null)}by(n)}catch(S){t=S,dt===n&&n!==null&&(dt=n=n.return);continue}break}while(!0)}function vy(){var e=Ac.current;return Ac.current=kc,e===null?kc:e}function bm(){(ft===0||ft===3||ft===2)&&(ft=4),pt===null||!(Ks&268435455)&&!(Oc&268435455)||rs(pt,jt)}function $c(e,t){var n=Le;Le|=2;var s=vy();(pt!==e||jt!==t)&&(jr=null,Gs(e,t));do try{n2();break}catch(a){gy(e,a)}while(!0);if(Of(),Le=n,Ac.current=s,dt!==null)throw Error(Q(261));return pt=null,jt=0,ft}function n2(){for(;dt!==null;)yy(dt)}function r2(){for(;dt!==null&&!_C();)yy(dt)}function yy(e){var t=Ny(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?by(e):dt=t,um.current=null}function by(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Yk(n,t),n!==null){n.flags&=32767,dt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ft=6,dt=null;return}}else if(n=Gk(n,t,Zt),n!==null){dt=n;return}if(t=t.sibling,t!==null){dt=t;return}dt=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,s2(e,t,n,s)}finally{hn.transition=a,Ue=s}return null}function s2(e,t,n,s){do ni();while(ts!==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 i=n.lanes|n.childLanes;if(LC(e,i),e===pt&&(dt=pt=null,jt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mc||(Mc=!0,Sy(Vl,function(){return ni(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=hn.transition,hn.transition=null;var o=Ue;Ue=1;var c=Le;Le|=4,um.current=null,Zk(e,n),dy(n,e),Sk(bf),Yl=!!yf,bf=yf=null,e.current=n,Jk(n),PC(),Le=c,Ue=o,hn.transition=i}else e.current=n;if(Mc&&(Mc=!1,ts=e,Dc=a),i=e.pendingLanes,i===0&&(es=null),AC(n.stateNode),Bt(e,ct()),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=hm,hm=null,e;return Dc&1&&e.tag!==0&&ni(),i=e.pendingLanes,i&1?e===pm?Ro++:(Ro=0,pm=e):Ro=0,Yr(),null}function ni(){if(ts!==null){var e=lg(Dc),t=hn.transition,n=Ue;try{if(hn.transition=null,Ue=16>e?16:e,ts===null)var s=!1;else{if(e=ts,ts=null,Dc=0,Le&6)throw Error(Q(331));var a=Le;for(Le|=4,de=e.current;de!==null;){var i=de,o=i.child;if(de.flags&16){var c=i.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:_o(8,h,i)}var m=h.child;if(m!==null)m.return=h,de=m;else for(;de!==null;){h=de;var y=h.sibling,g=h.return;if(ay(h),h===u){de=null;break}if(y!==null){y.return=g,de=y;break}de=g}}}var j=i.alternate;if(j!==null){var v=j.child;if(v!==null){j.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}de=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,de=o;else e:for(;de!==null;){if(i=de,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_o(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,de=b;break e}de=i.return}}var p=e.current;for(de=p;de!==null;){o=de;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,de=x;else e:for(o=p;de!==null;){if(c=de,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Rc(9,c)}}catch(S){at(c,c.return,S)}if(c===o){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,Yr(),Wn&&typeof Wn.onPostCommitFiberRoot=="function")try{Wn.onPostCommitFiberRoot(ql,e)}catch(S){}s=!0}return s}finally{Ue=n,hn.transition=t}}return!1}function jy(e,t,n){t=Za(n,t),t=$v(e,t,1),e=Zr(e,t,1),t=It(),e!==null&&(eo(e,1,t),Bt(e,t))}function at(e,t,n){if(e.tag===3)jy(e,e,n);else for(;t!==null;){if(t.tag===3){jy(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=zv(t,e,1),t=Zr(t,e,1),e=It(),t!==null&&(eo(t,1,e),Bt(t,e));break}}t=t.return}}function a2(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>ct()-mm?Gs(e,0):fm|=n),Bt(e,t)}function wy(e,t){t===0&&(e.mode&1?(t=Wl,Wl<<=1,!(Wl&130023424)&&(Wl=4194304)):t=1);var n=It();e=vr(e,t),e!==null&&(eo(e,t,n),Bt(e,n))}function i2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wy(e,n)}function o2(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),wy(e,n)}var Ny;Ny=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,Qk(e,t,n);zt=!!(e.flags&131072)}else zt=!1,Je&&t.flags&1048576&&nv(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,St.current);Ya(t,n),a=qf(null,t,s,e,a,n);var i=Hf();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)?(i=!0,uc(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Ff(t),a.updater=Ec,t.stateNode=a,a._reactInternals=t,Xf(t,s,e,n),t=tm(null,t,s,!0,i,n)):(t.tag=0,Je&&i&&Ef(t),Ot(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=c2(s),e=kn(s,e),a){case 0:t=em(null,t,s,e,n);break e;case 1:t=Gv(null,t,s,e,n);break e;case 11:t=qv(null,t,s,e,n);break e;case 14:t=Hv(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),em(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:kn(s,a),Gv(e,t,s,a,n);case 3:e:{if(Yv(t),e===null)throw Error(Q(387));s=t.pendingProps,i=t.memoizedState,a=i.element,uv(e,t),bc(t,s,null,n);var o=t.memoizedState;if(s=o.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Za(Error(Q(423)),t),t=Xv(e,t,s,n,a);break e}else if(s!==a){a=Za(Error(Q(424)),t),t=Xv(e,t,s,n,a);break e}else for(Xt=Kr(t.stateNode.containerInfo.firstChild),Yt=t,Je=!0,Cn=null,n=cv(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}Ot(e,t,s,n)}t=t.child}return t;case 5:return hv(t),e===null&&Tf(t),s=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,jf(s,a)?o=null:i!==null&&jf(s,i)&&(t.flags|=32),Qv(e,t),Ot(e,t,o,n),t.child;case 6:return e===null&&Tf(t),null;case 13:return Zv(e,t,n);case 4:return Lf(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Qa(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,i=t.memoizedProps,o=a.value,We(gc,s._currentValue),s._currentValue=o,i!==null)if(Sn(i.value,o)){if(i.children===a.children&&!Lt.current){t=br(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){o=i.child;for(var d=c.firstContext;d!==null;){if(d.context===s){if(i.tag===1){d=yr(-1,n&-n),d.tag=2;var u=i.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}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),Mf(i.return,n,t),c.lanes|=n;break}d=d.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(Q(341));o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Mf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ot(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Ya(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),Hv(e,t,s,a,n);case 15:return Wv(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),Fv(t,s,a),Xf(t,s,a,n),tm(null,t,s,!0,e,n);case 19:return ey(e,t,n);case 22:return Kv(e,t,n)}throw Error(Q(156,t.tag))};function Sy(e,t){return rg(e,t)}function l2(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 l2(e,t,n,s)}function jm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function c2(e){if(typeof e=="function")return jm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ku)return 11;if(e===Pu)return 14}return 2}function ss(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 zc(e,t,n,s,a,i){var o=2;if(s=e,typeof e=="function")jm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ra:return Xs(n.children,a,i,t);case Su:o=8,a|=8;break;case Cu:return e=pn(12,n,t,a|2),e.elementType=Cu,e.lanes=i,e;case Eu:return e=pn(13,n,t,a),e.elementType=Eu,e.lanes=i,e;case _u:return e=pn(19,n,t,a),e.elementType=_u,e.lanes=i,e;case Ox:return Uc(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rx:o=10;break e;case Ax:o=9;break e;case ku:o=11;break e;case Pu:o=14;break e;case $r:o=16,s=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=pn(o,n,t,a),t.elementType=e,t.type=s,t.lanes=i,t}function Xs(e,t,n,s){return e=pn(7,e,s,t),e.lanes=n,e}function Uc(e,t,n,s){return e=pn(22,e,s,t),e.elementType=Ox,e.lanes=n,e.stateNode={isHidden:!1},e}function wm(e,t,n){return e=pn(6,e,null,t),e.lanes=n,e}function Nm(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 d2(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=Gu(0),this.expirationTimes=Gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Sm(e,t,n,s,a,i,o,c,d){return e=new d2(e,t,n,c,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ff(i),e}function u2(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 Cy(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 Jg(e,n,t)}return t}function ky(e,t,n,s,a,i,o,c,d){return e=Sm(n,s,!0,e,a,i,o,c,d),e.context=Cy(null),n=e.current,s=It(),a=ns(n),i=yr(s,a),i.callback=t!=null?t:null,Zr(n,i,a),e.current.lanes=a,eo(e,a,s),Bt(e,s),e}function Bc(e,t,n,s){var a=t.current,i=It(),o=ns(a);return n=Cy(n),t.context===null?t.context=n:t.pendingContext=n,t=yr(i,o),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Zr(a,t,o),e!==null&&(Pn(e,a,o,i),yc(e,a,o)),o}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 Ey(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cm(e,t){Ey(e,t),(e=e.alternate)&&Ey(e,t)}function f2(){return null}var _y=typeof reportError=="function"?reportError:function(e){console.error(e)};function km(e){this._internalRoot=e}qc.prototype.render=km.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Bc(e,t,null,null)},qc.prototype.unmount=km.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=ug();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&&hg(e)}};function Em(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 Py(){}function m2(e,t,n,s,a){if(a){if(typeof s=="function"){var i=s;s=function(){var u=Vc(o);i.call(u)}}var o=ky(t,s,e,0,null,!1,!1,"",Py);return e._reactRootContainer=o,e[hr]=o.current,po(e.nodeType===8?e.parentNode:e),Qs(),o}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=Sm(e,0,!1,null,null,!1,!1,"",Py);return e._reactRootContainer=d,e[hr]=d.current,po(e.nodeType===8?e.parentNode:e),Qs(function(){Bc(t,d,n,s)}),d}function Wc(e,t,n,s,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var c=a;a=function(){var d=Vc(o);c.call(d)}}Bc(t,o,e,a)}else o=m2(n,t,e,a,s);return Vc(o)}cg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ji(t.pendingLanes);n!==0&&(Yu(t,n|1),Bt(t,ct()),!(Le&6)&&(ti=ct()+500,Yr()))}break;case 13:Qs(function(){var s=vr(e,1);if(s!==null){var a=It();Pn(s,e,1,a)}}),Cm(e,1)}},Xu=function(e){if(e.tag===13){var t=vr(e,134217728);if(t!==null){var n=It();Pn(t,e,134217728,n)}Cm(e,134217728)}},dg=function(e){if(e.tag===13){var t=ns(e),n=vr(e,t);if(n!==null){var s=It();Pn(n,e,t,s)}Cm(e,t)}},ug=function(){return Ue},fg=function(e,t){var n=Ue;try{return Ue=e,t()}finally{Ue=n}},Vu=function(e,t,n){switch(t){case"input":if(Mu(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));Dx(s),Mu(s,a)}}}break;case"textarea":Ux(e,n);break;case"select":t=n.value,t!=null&&Aa(e,!!n.multiple,t,!1)}},Yx=vm,Xx=Qs;var h2={usingClientEntryPoint:!1,Events:[vo,Ba,cc,Qx,Gx,vm]},Ao={findFiberByHostInstance:zs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},p2={bundleType:Ao.bundleType,version:Ao.version,rendererPackageName:Ao.rendererPackageName,rendererConfig:Ao.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=tg(e),e===null?null:e.stateNode},findFiberByHostInstance:Ao.findFiberByHostInstance||f2,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(p2),Wn=Kc}catch(e){}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h2,Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Em(t))throw Error(Q(200));return u2(e,t,null,n)},Kt.createRoot=function(e,t){if(!Em(e))throw Error(Q(299));var n=!1,s="",a=_y;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Sm(e,1,!1,null,null,n,!1,s,a),e[hr]=t.current,po(e.nodeType===8?e.parentNode:e),new km(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=tg(t),e=e===null?null:e.stateNode,e},Kt.flushSync=function(e){return Qs(e)},Kt.hydrate=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Wc(null,e,t,!0,n)},Kt.hydrateRoot=function(e,t,n){if(!Em(e))throw Error(Q(405));var s=n!=null&&n.hydratedSources||null,a=!1,i="",o=_y;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ky(t,null,e,1,n!=null?n:null,a,!1,i,o),e[hr]=t.current,po(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)},Kt.render=function(e,t,n){if(!Hc(t))throw Error(Q(200));return Wc(null,e,t,!1,n)},Kt.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},Kt.unstable_batchedUpdates=vm,Kt.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)},Kt.version="18.3.1-next-f1338f8080-20240426";function Ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ty)}catch(e){console.error(e)}}Ty(),Cx.exports=Kt;var Zs=Cx.exports;const Ry=st(Zs);var Ay,Oy=Zs;Ay=Oy.createRoot,Oy.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(){}},x2=(ES=class extends Js{constructor(){super();ce(this,pa);ce(this,js);ce(this,Si);te(this,Si,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,Si))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,js))==null||t.call(this),te(this,js,void 0))}setEventListener(t){var n;te(this,Si,t),(n=E(this,js))==null||n.call(this),te(this,js,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){E(this,pa)!==t&&(te(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,Si=new WeakMap,ES),_m=new x2,g2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},v2=(_S=class{constructor(){ce(this,ws,g2);ce(this,Yp,!1)}setTimeoutProvider(e){te(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,Yp=new WeakMap,_S),ea=new v2;function y2(e){setTimeout(e,0)}var b2=typeof window=="undefined"||"Deno"in globalThis;function _t(){}function j2(e,t){return typeof e=="function"?e(t):e}function Pm(e){return typeof e=="number"&&e>=0&&e!==1/0}function Iy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function as(e,t){return typeof e=="function"?e(t):e}function xn(e,t){return typeof e=="function"?e(t):e}function My(e,t){const{type:n="all",exact:s,fetchStatus:a,predicate:i,queryKey:o,stale:c}=e;if(o){if(s){if(t.queryHash!==Tm(o,t.options))return!1}else if(!Oo(t.queryKey,o))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||i&&!i(t))}function Dy(e,t){const{exact:n,status:s,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ta(t.options.mutationKey)!==ta(i))return!1}else if(!Oo(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function Tm(e,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(e)}function ta(e){return JSON.stringify(e,(t,n)=>Am(n)?Object.keys(n).sort().reduce((s,a)=>(s[a]=n[a],s),{}):n)}function Oo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oo(e[n],t[n])):!1}var w2=Object.prototype.hasOwnProperty;function Rm(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Fy(e)&&Fy(t);if(!s&&!(Am(e)&&Am(t)))return t;const i=(s?e:Object.keys(e)).length,o=s?t:Object.keys(t),c=o.length,d=s?new Array(c):{};let u=0;for(let h=0;h<c;h++){const m=s?h:o[h],y=e[m],g=t[m];if(y===g){d[m]=y,(s?h<i:w2.call(e,m))&&u++;continue}if(y===null||g===null||typeof y!="object"||typeof g!="object"){d[m]=g;continue}const j=Rm(y,g,n+1);d[m]=j,j===y&&u++}return i===c&&u===i?e:d}function Io(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 Fy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Am(e){if(!Ly(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ly(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ly(e){return Object.prototype.toString.call(e)==="[object Object]"}function N2(e){return new Promise(t=>{ea.setTimeout(t,e)})}function Om(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rm(e,t):t}function S2(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function C2(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Im=Symbol();function $y(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Im?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Mm(e,t){return typeof e=="function"?e(...t):!!e}function k2(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 Mo=(()=>{let e=()=>b2;return{isServer(){return e()},setIsServer(t){e=t}}})();function Dm(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});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 E2=y2;function _2(){let e=[],t=0,n=c=>{c()},s=c=>{c()},a=E2;const i=c=>{t?e.push(c):a(()=>{n(c)})},o=()=>{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||o()}return d},batchCalls:c=>(...d)=>{i(()=>{c(...d)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{a=c}}}var it=_2(),P2=(PS=class extends Js{constructor(){super();ce(this,Ci,!0);ce(this,Ns);ce(this,ki);te(this,ki,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,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Ns))==null||t.call(this),te(this,Ns,void 0))}setEventListener(t){var n;te(this,ki,t),(n=E(this,Ns))==null||n.call(this),te(this,Ns,t(this.setOnline.bind(this)))}setOnline(t){E(this,Ci)!==t&&(te(this,Ci,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return E(this,Ci)}},Ci=new WeakMap,Ns=new WeakMap,ki=new WeakMap,PS),Qc=new P2;function T2(e){return Math.min(1e3*2**e,3e4)}function zy(e){return(e!=null?e:"online")==="online"?Qc.isOnline():!0}var Fm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Uy(e){let t=!1,n=0,s;const a=Dm(),i=()=>a.status!=="pending",o=v=>{var w;if(!i()){const b=new Fm(v);y(b),(w=e.onCancel)==null||w.call(e,b)}},c=()=>{t=!0},d=()=>{t=!1},u=()=>_m.isFocused()&&(e.networkMode==="always"||Qc.isOnline())&&e.canRun(),h=()=>zy(e.networkMode)&&e.canRun(),m=v=>{i()||(s==null||s(),a.resolve(v))},y=v=>{i()||(s==null||s(),a.reject(v))},g=()=>new Promise(v=>{var w;s=b=>{(i()||u())&&v(b)},(w=e.onPause)==null||w.call(e)}).then(()=>{var v;s=void 0,i()||(v=e.onContinue)==null||v.call(e)}),j=()=>{if(i())return;let v;const w=n===0?e.initialPromise:void 0;try{v=w!=null?w:e.fn()}catch(b){v=Promise.reject(b)}Promise.resolve(v).then(m).catch(b=>{var C,_,k;if(i())return;const p=(C=e.retry)!=null?C:Mo.isServer()?0:3,x=(_=e.retryDelay)!=null?_:T2,N=typeof x=="function"?x(n,b):x,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,b);if(t||!S){y(b);return}n++,(k=e.onFail)==null||k.call(e,n,b),N2(N).then(()=>u()?void 0:g()).then(()=>{t?y(b):j()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(s==null||s(),a),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?j():g().then(j),a)}}var By=(TS=class{constructor(){ce(this,xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pm(this.gcTime)&&te(this,xa,ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Mo.isServer()?1/0:5*60*1e3)}clearGcTimeout(){E(this,xa)!==void 0&&(ea.clearTimeout(E(this,xa)),te(this,xa,void 0))}},xa=new WeakMap,TS),R2=(RS=class extends By{constructor(t){var n;super();ce(this,an);ce(this,ga);ce(this,Ei);ce(this,bn);ce(this,va);ce(this,vt);ce(this,wl);ce(this,ya);te(this,ya,!1),te(this,wl,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,va,t.client),te(this,bn,E(this,va).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,ga,Hy(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,vt))==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=Hy(this.options);n.data!==void 0&&(this.setState(qy(n.data,n.dataUpdatedAt)),te(this,ga,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,bn).remove(this)}setData(t,n){const s=Om(this.state.data,t,this.options);return we(this,an,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){we(this,an,Lr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,a;const n=(s=E(this,vt))==null?void 0:s.promise;return(a=E(this,vt))==null||a.cancel(t),n?n.then(_t).catch(_t):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=>xn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Im||!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:!Iy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,vt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,vt))==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,vt)&&(E(this,ya)||we(this,an,VS).call(this)?E(this,vt).cancel({revert:!0}):E(this,vt).cancelRetry()),this.scheduleGc()),E(this,bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,an,Lr).call(this,{type:"invalidate"})}async fetch(t,n){var d,u,h,m,y,g,j,v,w,b,p,x;if(this.state.fetchStatus!=="idle"&&((d=E(this,vt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,vt))return E(this,vt).continueRetry(),E(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,ya,!0),s.signal)})},i=()=>{const N=$y(this.options,n),C=(()=>{const _={client:E(this,va),queryKey:this.queryKey,meta:this.meta};return a(_),_})();return te(this,ya,!1),this.options.persister?this.options.persister(N,C,this):N(C)},c=(()=>{const N={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,va),state:this.state,fetchFn:i};return a(N),N})();(u=this.options.behavior)==null||u.onFetch(c,this),te(this,Ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&we(this,an,Lr).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),te(this,vt,Uy({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof Fm&&N.revert&&this.setState({...E(this,Ei),fetchStatus:"idle"}),s.abort()},onFail:(N,S)=>{we(this,an,Lr).call(this,{type:"failed",failureCount:N,error:S})},onPause:()=>{we(this,an,Lr).call(this,{type:"pause"})},onContinue:()=>{we(this,an,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,vt).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(g=(y=E(this,bn).config).onSuccess)==null||g.call(y,N,this),(v=(j=E(this,bn).config).onSettled)==null||v.call(j,N,this.state.error,this),N}catch(N){if(N instanceof Fm){if(N.silent)return E(this,vt).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw we(this,an,Lr).call(this,{type:"error",error:N}),(b=(w=E(this,bn).config).onError)==null||b.call(w,N,this),(x=(p=E(this,bn).config).onSettled)==null||x.call(p,this.state.data,N,this),N}finally{this.scheduleGc()}}},ga=new WeakMap,Ei=new WeakMap,bn=new WeakMap,va=new WeakMap,vt=new WeakMap,wl=new WeakMap,ya=new WeakMap,an=new WeakSet,VS=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,...Vy(s.data,this.options),fetchMeta:(a=t.meta)!=null?a:null};case"success":const i={...s,...qy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,Ei,t.manual?i:void 0),i;case"error":const o=t.error;return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),it.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,bn).notify({query:this,type:"updated",action:t})})},RS);function Vy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zy(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 Hy(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 Lm=(AS=class extends Js{constructor(t,n){super();ce(this,ze);ce(this,qt);ce(this,Fe);ce(this,Nl);ce(this,Dt);ce(this,ba);ce(this,_i);ce(this,Rr);ce(this,Ss);ce(this,Sl);ce(this,Pi);ce(this,Ti);ce(this,ja);ce(this,wa);ce(this,Cs);ce(this,Ri,new Set);this.options=n,te(this,qt,t),te(this,Ss,null),te(this,Rr,Dm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Fe).addObserver(this),Wy(E(this,Fe),this.options)?we(this,ze,Al).call(this):this.updateResult(),we(this,ze,nx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $m(E(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $m(E(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,ze,rx).call(this),we(this,ze,sx).call(this),E(this,Fe).removeObserver(this)}setOptions(t){const n=this.options,s=E(this,Fe);if(this.options=E(this,qt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof xn(this.options.enabled,E(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,ze,ax).call(this),E(this,Fe).setOptions(this.options),n._defaulted&&!Io(this.options,n)&&E(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Fe),observer:this});const a=this.hasListeners();a&&Ky(E(this,Fe),s,this.options,n)&&we(this,ze,Al).call(this),this.updateResult(),a&&(E(this,Fe)!==s||xn(this.options.enabled,E(this,Fe))!==xn(n.enabled,E(this,Fe))||as(this.options.staleTime,E(this,Fe))!==as(n.staleTime,E(this,Fe)))&&we(this,ze,Jp).call(this);const i=we(this,ze,ex).call(this);a&&(E(this,Fe)!==s||xn(this.options.enabled,E(this,Fe))!==xn(n.enabled,E(this,Fe))||i!==E(this,Cs))&&we(this,ze,tx).call(this,i)}getOptimisticResult(t){const n=E(this,qt).getQueryCache().build(E(this,qt),t),s=this.createResult(n,t);return O2(this,s)&&(te(this,Dt,s),te(this,_i,this.options),te(this,ba,E(this,Fe).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,Ri).add(t)}getCurrentQuery(){return E(this,Fe)}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 we(this,ze,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,Fe),a=this.options,i=E(this,Dt),o=E(this,ba),c=E(this,_i),u=t!==s?t.state:E(this,Nl),{state:h}=t;let m={...h},y=!1,g;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&Wy(t,n),F=T&&Ky(t,s,n,a);(O||F)&&(m={...m,...Vy(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:j,errorUpdatedAt:v,status:w}=m;g=m.data;let b=!1;if(n.placeholderData!==void 0&&g===void 0&&w==="pending"){let T;i!=null&&i.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(T=i.data,b=!0):T=typeof n.placeholderData=="function"?n.placeholderData((R=E(this,Ti))==null?void 0:R.state.data,E(this,Ti)):n.placeholderData,T!==void 0&&(w="success",g=Om(i==null?void 0:i.data,T,n),y=!0)}if(n.select&&g!==void 0&&!b)if(i&&g===(o==null?void 0:o.data)&&n.select===E(this,Sl))g=E(this,Pi);else try{te(this,Sl,n.select),g=n.select(g),g=Om(i==null?void 0:i.data,g,n),te(this,Pi,g),te(this,Ss,null)}catch(T){te(this,Ss,T)}E(this,Ss)&&(j=E(this,Ss),g=E(this,Pi),v=Date.now(),w="error");const p=m.fetchStatus==="fetching",x=w==="pending",N=w==="error",S=x&&p,C=g!==void 0,k={status:w,fetchStatus:m.fetchStatus,isPending:x,isSuccess:w==="success",isError:N,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:m.dataUpdatedAt,error:j,errorUpdatedAt:v,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:y,isRefetchError:N&&C,isStale:zm(t,n),refetch:this.refetch,promise:E(this,Rr),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,Rr,k.promise=Dm());F(se)},I=E(this,Rr);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=E(this,Dt),n=this.createResult(E(this,Fe),this.options);if(te(this,ba,E(this,Fe).state),te(this,_i,this.options),E(this,ba).data!==void 0&&te(this,Ti,E(this,Fe)),Io(n,t))return;te(this,Dt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!E(this,Ri).size)return!0;const o=new Set(i!=null?i:E(this,Ri));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Dt)).some(c=>{const d=c;return E(this,Dt)[d]!==t[d]&&o.has(d)})};we(this,ze,qS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,ze,nx).call(this)}},qt=new WeakMap,Fe=new WeakMap,Nl=new WeakMap,Dt=new WeakMap,ba=new WeakMap,_i=new WeakMap,Rr=new WeakMap,Ss=new WeakMap,Sl=new WeakMap,Pi=new WeakMap,Ti=new WeakMap,ja=new WeakMap,wa=new WeakMap,Cs=new WeakMap,Ri=new WeakMap,ze=new WeakSet,Al=function(t){we(this,ze,ax).call(this);let n=E(this,Fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_t)),n},Jp=function(){we(this,ze,rx).call(this);const t=as(this.options.staleTime,E(this,Fe));if(Mo.isServer()||E(this,Dt).isStale||!Pm(t))return;const s=Iy(E(this,Dt).dataUpdatedAt,t)+1;te(this,ja,ea.setTimeout(()=>{E(this,Dt).isStale||this.updateResult()},s))},ex=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Fe)):this.options.refetchInterval)!=null?t:!1},tx=function(t){we(this,ze,sx).call(this),te(this,Cs,t),!(Mo.isServer()||xn(this.options.enabled,E(this,Fe))===!1||!Pm(E(this,Cs))||E(this,Cs)===0)&&te(this,wa,ea.setInterval(()=>{(this.options.refetchIntervalInBackground||_m.isFocused())&&we(this,ze,Al).call(this)},E(this,Cs)))},nx=function(){we(this,ze,Jp).call(this),we(this,ze,tx).call(this,we(this,ze,ex).call(this))},rx=function(){E(this,ja)!==void 0&&(ea.clearTimeout(E(this,ja)),te(this,ja,void 0))},sx=function(){E(this,wa)!==void 0&&(ea.clearInterval(E(this,wa)),te(this,wa,void 0))},ax=function(){const t=E(this,qt).getQueryCache().build(E(this,qt),this.options);if(t===E(this,Fe))return;const n=E(this,Fe);te(this,Fe,t),te(this,Nl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},qS=function(t){it.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,Dt))}),E(this,qt).getQueryCache().notify({query:E(this,Fe),type:"observerResultsUpdated"})})},AS);function A2(e,t){return xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wy(e,t){return A2(e,t)||e.state.data!==void 0&&$m(e,t,t.refetchOnMount)}function $m(e,t,n){if(xn(t.enabled,e)!==!1&&as(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&zm(e,t)}return!1}function Ky(e,t,n,s){return(e!==t||xn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zm(e,n)}function zm(e,t){return xn(t.enabled,e)!==!1&&e.isStaleByTime(as(t.staleTime,e))}function O2(e,t){return!Io(e.getCurrentResult(),t)}function Qy(e){return{onFetch:(t,n)=>{var h,m,y,g,j;const s=t.options,a=(y=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],o=((j=t.state.data)==null?void 0:j.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const u=async()=>{var x;let v=!1;const w=N=>{k2(N,()=>t.signal,()=>v=!0)},b=$y(t.options,t.fetchOptions),p=async(N,S,C)=>{if(v)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 w(F),F})(),R=await b(k),{maxPages:T}=t.options,O=C?C2:S2;return{pages:O(N.pages,R,T),pageParams:O(N.pageParams,S,T)}};if(a&&i.length){const N=a==="backward",S=N?I2:Gy,C={pages:i,pageParams:o},_=S(s,C);c=await p(C,_,N)}else{const N=e!=null?e:i.length;do{const S=d===0?(x=o[0])!=null?x:s.initialPageParam:Gy(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 v,w;return(w=(v=t.options).persister)==null?void 0:w.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Gy(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 I2(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 M2=(OS=class extends By{constructor(t){super();ce(this,lr);ce(this,Cl);ce(this,or);ce(this,Tt);ce(this,Na);te(this,Cl,t.client),this.mutationId=t.mutationId,te(this,Tt,t.mutationCache),te(this,or,[]),this.state=t.state||Yy(),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,Tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,or,E(this,or).filter(n=>n!==t)),this.scheduleGc(),E(this,Tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,or).length||(this.state.status==="pending"?this.scheduleGc():E(this,Tt).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 o,c,d,u,h,m,y,g,j,v,w,b,p,x,N,S,C,_,k;const n=()=>{we(this,lr,Ds).call(this,{type:"continue"})},s={client:E(this,Cl),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,Na,Uy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{we(this,lr,Ds).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{we(this,lr,Ds).call(this,{type:"pause"})},onContinue:n,retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Tt).canRun(this)}));const a=this.state.status==="pending",i=!E(this,Na).canStart();try{if(a)n();else{we(this,lr,Ds).call(this,{type:"pending",variables:t,isPaused:i}),E(this,Tt).config.onMutate&&await E(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,lr,Ds).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const R=await E(this,Na).start();return await((h=(u=E(this,Tt).config).onSuccess)==null?void 0:h.call(u,R,t,this.state.context,this,s)),await((y=(m=this.options).onSuccess)==null?void 0:y.call(m,R,t,this.state.context,s)),await((j=(g=E(this,Tt).config).onSettled)==null?void 0:j.call(g,R,null,this.state.variables,this.state.context,this,s)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,R,null,t,this.state.context,s)),we(this,lr,Ds).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(b=E(this,Tt).config).onError)==null?void 0:p.call(b,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=E(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=(_=this.options).onSettled)==null?void 0:k.call(_,void 0,R,t,this.state.context,s))}catch(T){Promise.reject(T)}throw we(this,lr,Ds).call(this,{type:"error",error:R}),R}finally{E(this,Tt).runNext(this)}}},Cl=new WeakMap,or=new WeakMap,Tt=new WeakMap,Na=new WeakMap,lr=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),it.batch(()=>{E(this,or).forEach(s=>{s.onMutationUpdate(t)}),E(this,Tt).notify({mutation:this,type:"updated",action:t})})},OS);function Yy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var D2=(IS=class extends Js{constructor(t={}){super();ce(this,Ar);ce(this,Bn);ce(this,kl);this.config=t,te(this,Ar,new Set),te(this,Bn,new Map),te(this,kl,0)}build(t,n,s){const a=new M2({client:t,mutationCache:this,mutationId:++mu(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,Bn).get(n);s?s.push(t):E(this,Bn).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,Bn).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,Bn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Gc(t);if(typeof n=="string"){const s=E(this,Bn).get(n),a=s==null?void 0:s.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var s,a;const n=Gc(t);if(typeof n=="string"){const i=(s=E(this,Bn).get(n))==null?void 0:s.find(o=>o!==t&&o.state.isPaused);return(a=i==null?void 0:i.continue())!=null?a:Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{E(this,Ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,Ar).clear(),E(this,Bn).clear()})}getAll(){return Array.from(E(this,Ar))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Dy(n,s))}findAll(t={}){return this.getAll().filter(n=>Dy(t,n))}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return it.batch(()=>Promise.all(t.map(n=>n.continue().catch(_t))))}},Ar=new WeakMap,Bn=new WeakMap,kl=new WeakMap,IS);function Gc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var F2=(MS=class extends Js{constructor(n,s){super();ce(this,Mr);ce(this,Or);ce(this,ks);ce(this,Ht);ce(this,Ir);te(this,Or,n),this.setOptions(s),this.bindMethods(),we(this,Mr,hu).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),Io(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){we(this,Mr,hu).call(this),we(this,Mr,ix).call(this,n)}getCurrentResult(){return E(this,ks)}reset(){var n;(n=E(this,Ht))==null||n.removeObserver(this),te(this,Ht,void 0),we(this,Mr,hu).call(this),we(this,Mr,ix).call(this)}mutate(n,s){var a;return te(this,Ir,s),(a=E(this,Ht))==null||a.removeObserver(this),te(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,hu=function(){var s,a;const n=(a=(s=E(this,Ht))==null?void 0:s.state)!=null?a:Yy();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})},ix=function(n){it.batch(()=>{var s,a,i,o,c,d,u,h;if(E(this,Ir)&&this.hasListeners()){const m=E(this,ks).variables,y=E(this,ks).context,g={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,y,g)}catch(j){Promise.reject(j)}try{(o=(i=E(this,Ir)).onSettled)==null||o.call(i,n.data,null,m,y,g)}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,y,g)}catch(j){Promise.reject(j)}try{(h=(u=E(this,Ir)).onSettled)==null||h.call(u,void 0,n.error,m,y,g)}catch(j){Promise.reject(j)}}}this.listeners.forEach(m=>{m(E(this,ks))})})},MS);function Xy(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function L2(e,t,n){const s=e.slice(0);return s[t]=n,s}var $2=(DS=class extends Js{constructor(t,n,s){super();ce(this,Nt);ce(this,Ai);ce(this,on);ce(this,Oi);ce(this,Ii);ce(this,jn);ce(this,Es);ce(this,El);ce(this,_l);ce(this,Pl);ce(this,Tl,[]);te(this,Ai,t),te(this,Ii,s),te(this,Oi,[]),te(this,jn,[]),te(this,on,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&E(this,jn).forEach(t=>{t.subscribe(n=>{we(this,Nt,dx).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){te(this,Oi,t),te(this,Ii,n),it.batch(()=>{const s=E(this,jn),a=we(this,Nt,cx).call(this,E(this,Oi));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const i=a.map(m=>m.observer),o=i.map(m=>m.getCurrentResult()),c=s.length!==i.length,d=i.some((m,y)=>m!==s[y]),u=c||d,h=u?!0:o.some((m,y)=>{const g=E(this,on)[y];return!g||!Io(m,g)});!u&&!h||(u&&(te(this,Tl,a),te(this,jn,i)),te(this,on,o),this.hasListeners()&&(u&&(Xy(s,i).forEach(m=>{m.destroy()}),Xy(i,s).forEach(m=>{m.subscribe(y=>{we(this,Nt,dx).call(this,m,y)})})),we(this,Nt,ux).call(this)))})}getCurrentResult(){return E(this,on)}getQueries(){return E(this,jn).map(t=>t.getCurrentQuery())}getObservers(){return E(this,jn)}getOptimisticResult(t,n){const s=we(this,Nt,cx).call(this,t),a=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions)),i=s.map(o=>o.defaultedQueryOptions.queryHash);return[a,o=>we(this,Nt,lx).call(this,o!=null?o:a,n,i),()=>we(this,Nt,ox).call(this,a,s)]}},Ai=new WeakMap,on=new WeakMap,Oi=new WeakMap,Ii=new WeakMap,jn=new WeakMap,Es=new WeakMap,El=new WeakMap,_l=new WeakMap,Pl=new WeakMap,Tl=new WeakMap,Nt=new WeakSet,ox=function(t,n){return n.map((s,a)=>{const i=t[a];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,o=>{n.forEach(c=>{c.observer.trackProp(o)})})})},lx=function(t,n,s){if(n){const a=E(this,Pl),i=s!==void 0&&a!==void 0&&(a.length!==s.length||s.some((o,c)=>o!==a[c]));return(!E(this,Es)||E(this,on)!==E(this,_l)||i||n!==E(this,El))&&(te(this,El,n),te(this,_l,E(this,on)),s!==void 0&&te(this,Pl,s),te(this,Es,Rm(E(this,Es),n(t)))),E(this,Es)}return t},cx=function(t){const n=new Map;E(this,jn).forEach(a=>{const i=a.options.queryHash;if(!i)return;const o=n.get(i);o?o.push(a):n.set(i,[a])});const s=[];return t.forEach(a=>{var d;const i=E(this,Ai).defaultQueryOptions(a),o=(d=n.get(i.queryHash))==null?void 0:d.shift(),c=o!=null?o:new Lm(E(this,Ai),i);s.push({defaultedQueryOptions:i,observer:c})}),s},dx=function(t,n){const s=E(this,jn).indexOf(t);s!==-1&&(te(this,on,L2(E(this,on),s,n)),we(this,Nt,ux).call(this))},ux=function(){var t;if(this.hasListeners()){const n=E(this,Es),s=we(this,Nt,ox).call(this,E(this,on),E(this,Tl)),a=we(this,Nt,lx).call(this,s,(t=E(this,Ii))==null?void 0:t.combine);n!==a&&it.batch(()=>{this.listeners.forEach(i=>{i(E(this,on))})})}},DS),z2=(FS=class extends Js{constructor(t={}){super();ce(this,cr);this.config=t,te(this,cr,new Map)}build(t,n,s){var c;const a=n.queryKey,i=(c=n.queryHash)!=null?c:Tm(a,n);let o=this.get(i);return o||(o=new R2({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){E(this,cr).has(t.queryHash)||(E(this,cr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,cr).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,cr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){it.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,cr).get(t)}getAll(){return[...E(this,cr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>My(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>My(t,s)):n}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){it.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cr=new WeakMap,FS),U2=(LS=class{constructor(e={}){ce(this,lt);ce(this,_s);ce(this,Ps);ce(this,Mi);ce(this,Di);ce(this,Ts);ce(this,Fi);ce(this,Li);te(this,lt,e.queryCache||new z2),te(this,_s,e.mutationCache||new D2),te(this,Ps,e.defaultOptions||{}),te(this,Mi,new Map),te(this,Di,new Map),te(this,Ts,0)}mount(){mu(this,Ts)._++,E(this,Ts)===1&&(te(this,Fi,_m.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,lt).onFocus())})),te(this,Li,Qc.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,lt).onOnline())})))}unmount(){var e,t;mu(this,Ts)._--,E(this,Ts)===0&&((e=E(this,Fi))==null||e.call(this),te(this,Fi,void 0),(t=E(this,Li))==null||t.call(this),te(this,Li,void 0))}isFetching(e){return E(this,lt).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,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,lt).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,lt).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,lt).get(s.queryHash),i=a==null?void 0:a.state.data,o=j2(t,i);if(o!==void 0)return E(this,lt).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return it.batch(()=>E(this,lt).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,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,lt);it.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,lt);return it.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=it.batch(()=>E(this,lt).findAll(e).map(a=>a.cancel(n)));return Promise.all(s).then(_t).catch(_t)}invalidateQueries(e,t={}){return it.batch(()=>{var n,s;return E(this,lt).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=it.batch(()=>E(this,lt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_t)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(_t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,lt).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(_t).catch(_t)}fetchInfiniteQuery(e){return e.behavior=Qy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_t).catch(_t)}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,lt)}getMutationCache(){return E(this,_s)}getDefaultOptions(){return E(this,Ps)}setDefaultOptions(e){te(this,Ps,e)}setQueryDefaults(e,t){E(this,Mi).set(ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,Mi).values()],n={};return t.forEach(s=>{Oo(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){E(this,Di).set(ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Di).values()],n={};return t.forEach(s=>{Oo(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=Tm(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===Im&&(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,lt).clear(),E(this,_s).clear()}},lt=new WeakMap,_s=new WeakMap,Ps=new WeakMap,Mi=new WeakMap,Di=new WeakMap,Ts=new WeakMap,Fi=new WeakMap,Li=new WeakMap,LS),Zy=f.createContext(void 0),Ke=e=>{const t=f.useContext(Zy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B2=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.jsx(Zy.Provider,{value:e,children:t})),Jy=f.createContext(!1),e0=()=>f.useContext(Jy);Jy.Provider;function V2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var q2=f.createContext(V2()),t0=()=>f.useContext(q2),n0=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Mm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},r0=e=>{f.useEffect(()=>{e.clearReset()},[e])},s0=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||Mm(n,[e.error,s])),a0=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))}},H2=(e,t)=>e.isLoading&&e.isFetching&&!t,Um=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function W2({queries:e,...t},n){const s=Ke(),a=e0(),i=t0(),o=f.useMemo(()=>e.map(v=>{const w=s.defaultQueryOptions(v);return w._optimisticResults=a?"isRestoring":"optimistic",w}),[e,s,a]);o.forEach(v=>{a0(v);const w=s.getQueryCache().get(v.queryHash);n0(v,i,w)}),r0(i);const[c]=f.useState(()=>new $2(s,o,t)),[d,u,h]=c.getOptimisticResult(o,t.combine),m=!a&&t.subscribed!==!1;f.useSyncExternalStore(f.useCallback(v=>m?c.subscribe(it.batchCalls(v)):_t,[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setQueries(o,t)},[o,t,c]);const g=d.some((v,w)=>Um(o[w],v))?d.flatMap((v,w)=>{const b=o[w];if(b&&Um(b,v)){const p=new Lm(s,b);return Bm(b,p,i)}return[]}):[];if(g.length>0)throw Promise.all(g);const j=d.find((v,w)=>{const b=o[w];return b&&s0({result:v,errorResetBoundary:i,throwOnError:b.throwOnError,query:s.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(j!=null&&j.error)throw j.error;return u(h())}function K2(e,t,n){var y,g,j,v;const s=e0(),a=t0(),i=Ke(),o=i.defaultQueryOptions(e);(g=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||g.call(y,o);const c=i.getQueryCache().get(o.queryHash);o._optimisticResults=s?"isRestoring":"optimistic",a0(o),n0(o,a,c),r0(a);const d=!i.getQueryCache().get(o.queryHash),[u]=f.useState(()=>new t(i,o)),h=u.getOptimisticResult(o),m=!s&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(w=>{const b=m?u.subscribe(it.batchCalls(w)):_t;return u.updateResult(),b},[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(o)},[o,u]),Um(o,h))throw Bm(o,u,a);if(s0({result:h,errorResetBoundary:a,throwOnError:o.throwOnError,query:c,suspense:o.suspense}))throw h.error;if((v=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||v.call(j,o,h),o.experimental_prefetchInRender&&!Mo.isServer()&&H2(h,s)){const w=d?Bm(o,u,a):c==null?void 0:c.promise;w==null||w.catch(_t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?h:u.trackResult(h)}function Ne(e,t){return K2(e,Lm)}function ke(e,t){const n=Ke(),[s]=f.useState(()=>new F2(n,e));f.useEffect(()=>{s.setOptions(e)},[s,e]);const a=f.useSyncExternalStore(f.useCallback(o=>s.subscribe(it.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i=f.useCallback((o,c)=>{s.mutate(o,c).catch(_t)},[s]);if(a.error&&Mm(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/** |
| 43 |
* @remix-run/router v1.23.2 |
| 44 |
* |
| 45 |
* Copyright (c) Remix Software Inc. |
| 46 |
* |
| 47 |
* This source code is licensed under the MIT license found in the |
| 48 |
* LICENSE.md file in the root directory of this source tree. |
| 49 |
* |
| 50 |
* @license MIT |
| 51 |
*/function Do(){return Do=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},Do.apply(this,arguments)}var is;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(is||(is={}));const i0="popstate";function Q2(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:c="",hash:d=""}=na(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Vm("",{pathname:o,search:c,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),c="";if(o&&o.getAttribute("href")){let d=a.location.href,u=d.indexOf("#");c=u===-1?d:d.slice(0,u)}return c+"#"+(typeof i=="string"?i:Xc(i))}function s(a,i){Yc(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Y2(t,n,s,e)}function ot(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 G2(){return Math.random().toString(36).substr(2,8)}function o0(e,t){return{usr:e.state,key:e.key,idx:t}}function Vm(e,t,n,s){return n===void 0&&(n=null),Do({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?na(t):t,{state:n,key:t&&t.key||s||G2()})}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 Y2(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:i=!1}=s,o=a.history,c=is.Pop,d=null,u=h();u==null&&(u=0,o.replaceState(Do({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function m(){c=is.Pop;let w=h(),b=w==null?null:w-u;u=w,d&&d({action:c,location:v.location,delta:b})}function y(w,b){c=is.Push;let p=Vm(v.location,w,b);n&&n(p,w),u=h()+1;let x=o0(p,u),N=v.createHref(p);try{o.pushState(x,"",N)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(N)}i&&d&&d({action:c,location:v.location,delta:1})}function g(w,b){c=is.Replace;let p=Vm(v.location,w,b);n&&n(p,w),u=h();let x=o0(p,u),N=v.createHref(p);o.replaceState(x,"",N),i&&d&&d({action:c,location:v.location,delta:0})}function j(w){let b=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof w=="string"?w:Xc(w);return p=p.replace(/ $/,"%20"),ot(b,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,b)}let v={get action(){return c},get location(){return e(a,o)},listen(w){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(i0,m),d=w,()=>{a.removeEventListener(i0,m),d=null}},createHref(w){return t(a,w)},createURL:j,encodeLocation(w){let b=j(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:y,replace:g,go(w){return o.go(w)}};return v}var l0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(l0||(l0={}));function X2(e,t,n){return n===void 0&&(n="/"),Z2(e,t,n)}function Z2(e,t,n,s){let a=typeof t=="string"?na(t):t,i=ri(a.pathname||"/",n);if(i==null)return null;let o=c0(e);J2(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let u=dE(i);c=lE(o[d],u)}return c}function c0(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(i,o,c)=>{let d={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};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);i.children&&i.children.length>0&&(ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),c0(i.children,t,h,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:iE(u,i.index),routesMeta:h})};return e.forEach((i,o)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))a(i,o);else for(let d of d0(i.path))a(i,o,d)}),t}function d0(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return a?[i,""]:[i];let o=d0(s.join("/")),c=[];return c.push(...o.map(d=>d===""?i:[i,d].join("/"))),a&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function J2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oE(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const eE=/^:[\w-]+$/,tE=3,nE=2,rE=1,sE=10,aE=-2,u0=e=>e==="*";function iE(e,t){let n=e.split("/"),s=n.length;return n.some(u0)&&(s+=aE),t&&(s+=nE),n.filter(a=>!u0(a)).reduce((a,i)=>a+(eE.test(i)?tE:i===""?rE:sE),s)}function oE(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 lE(e,t,n){let{routesMeta:s}=e,a={},i="/",o=[];for(let c=0;c<s.length;++c){let d=s[c],u=c===s.length-1,h=i==="/"?t:t.slice(i.length)||"/",m=qm({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},h),y=d.route;if(!m)return null;Object.assign(a,m.params),o.push({params:a,pathname:os([i,m.pathname]),pathnameBase:pE(os([i,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(i=os([i,m.pathnameBase]))}return o}function qm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=cE(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((u,h,m)=>{let{paramName:y,isOptional:g}=h;if(y==="*"){let v=c[m]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const j=c[m];return g&&!j?u[y]=void 0:u[y]=(j||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function cE(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,(o,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 dE(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 ri(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 uE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fE=e=>uE.test(e);function mE(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?na(e):e,i;if(n)if(fE(n))i=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Yc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=f0(n.substring(1),"/"):i=f0(n,t)}else i=t;return{pathname:i,search:xE(s),hash:gE(a)}}function f0(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 Hm(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 hE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m0(e,t){let n=hE(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function h0(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=na(e):(a=Do({},e),ot(!a.pathname||!a.pathname.includes("?"),Hm("?","pathname","search",a)),ot(!a.pathname||!a.pathname.includes("#"),Hm("#","pathname","hash",a)),ot(!a.search||!a.search.includes("#"),Hm("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,c;if(o==null)c=n;else{let m=t.length-1;if(!s&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),m-=1;a.pathname=y.join("/")}c=m>=0?t[m]:"/"}let d=mE(a,c),u=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const os=e=>e.join("/").replace(/\/\/+/g,"/"),pE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const p0=["post","put","patch","delete"];new Set(p0);const yE=["get",...p0];new Set(yE);/** |
| 52 |
* React Router v6.30.3 |
| 53 |
* |
| 54 |
* Copyright (c) Remix Software Inc. |
| 55 |
* |
| 56 |
* This source code is licensed under the MIT license found in the |
| 57 |
* LICENSE.md file in the root directory of this source tree. |
| 58 |
* |
| 59 |
* @license MIT |
| 60 |
*/function Fo(){return Fo=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},Fo.apply(this,arguments)}const Zc=f.createContext(null),x0=f.createContext(null),ls=f.createContext(null),Jc=f.createContext(null),wr=f.createContext({outlet:null,matches:[],isDataRoute:!1}),g0=f.createContext(null);function bE(e,t){let{relative:n}=t===void 0?{}:t;Lo()||ot(!1);let{basename:s,navigator:a}=f.useContext(ls),{hash:i,pathname:o,search:c}=ed(e,{relative:n}),d=o;return s!=="/"&&(d=o==="/"?s:os([s,o])),a.createHref({pathname:d,search:c,hash:i})}function Lo(){return f.useContext(Jc)!=null}function cs(){return Lo()||ot(!1),f.useContext(Jc).location}function v0(e){f.useContext(ls).static||f.useLayoutEffect(e)}function Tn(){let{isDataRoute:e}=f.useContext(wr);return e?ME():jE()}function jE(){Lo()||ot(!1);let e=f.useContext(Zc),{basename:t,future:n,navigator:s}=f.useContext(ls),{matches:a}=f.useContext(wr),{pathname:i}=cs(),o=JSON.stringify(m0(a,n.v7_relativeSplatPath)),c=f.useRef(!1);return v0(()=>{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=h0(u,JSON.parse(o),i,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,o,i,e])}const wE=f.createContext(null);function NE(e){let t=f.useContext(wr).outlet;return t&&f.createElement(wE.Provider,{value:e},t)}function $o(){let{matches:e}=f.useContext(wr),t=e[e.length-1];return t?t.params:{}}function ed(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=f.useContext(ls),{matches:a}=f.useContext(wr),{pathname:i}=cs(),o=JSON.stringify(m0(a,s.v7_relativeSplatPath));return f.useMemo(()=>h0(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function SE(e,t){return CE(e,t)}function CE(e,t,n,s){Lo()||ot(!1);let{navigator:a}=f.useContext(ls),{matches:i}=f.useContext(wr),o=i[i.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.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)||ot(!1),h=w}else h=u;let y=h.pathname||"/",g=y;if(d!=="/"){let w=d.replace(/^\//,"").split("/");g="/"+y.replace(/^\//,"").split("/").slice(w.length).join("/")}let j=X2(e,{pathname:g}),v=TE(j&&j.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:os([d,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:os([d,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,s);return t&&v?f.createElement(Jc.Provider,{value:{location:Fo({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:is.Pop}},v):v}function kE(){let e=IE(),t=vE(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 EE=f.createElement(kE,null);class _E 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(g0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function PE(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 TE(e,t,n,s){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let h=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||ot(!1),o=o.slice(0,Math.min(o.length,h+1))}let d=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=h),m.route.id){let{loaderData:y,errors:g}=n,j=m.route.loader&&y[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||j){d=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,m,y)=>{let g,j=!1,v=null,w=null;n&&(g=c&&m.route.id?c[m.route.id]:void 0,v=m.route.errorElement||EE,d&&(u<0&&y===0?(DE("route-fallback"),j=!0,w=null):u===y&&(j=!0,w=m.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,y+1)),p=()=>{let x;return g?x=v:j?x=w:m.route.Component?x=f.createElement(m.route.Component,null):m.route.element?x=m.route.element:x=h,f.createElement(PE,{match:m,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:x})};return n&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?f.createElement(_E,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:p(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):p()},null)}var y0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(y0||{}),b0=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}(b0||{});function RE(e){let t=f.useContext(Zc);return t||ot(!1),t}function AE(e){let t=f.useContext(x0);return t||ot(!1),t}function OE(e){let t=f.useContext(wr);return t||ot(!1),t}function j0(e){let t=OE(),n=t.matches[t.matches.length-1];return n.route.id||ot(!1),n.route.id}function IE(){var e;let t=f.useContext(g0),n=AE(),s=j0();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function ME(){let{router:e}=RE(y0.UseNavigateStable),t=j0(b0.UseNavigateStable),n=f.useRef(!1);return v0(()=>{n.current=!0}),f.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Fo({fromRouteId:t},i)))},[e,t])}const w0={};function DE(e,t,n){w0[e]||(w0[e]=!0)}function FE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function LE(e){return NE(e.context)}function Xe(e){ot(!1)}function $E(e){let{basename:t="/",children:n=null,location:s,navigationType:a=is.Pop,navigator:i,static:o=!1,future:c}=e;Lo()&&ot(!1);let d=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:d,navigator:i,static:o,future:Fo({v7_relativeSplatPath:!1},c)}),[d,c,i,o]);typeof s=="string"&&(s=na(s));let{pathname:h="/",search:m="",hash:y="",state:g=null,key:j="default"}=s,v=f.useMemo(()=>{let w=ri(h,d);return w==null?null:{location:{pathname:w,search:m,hash:y,state:g,key:j},navigationType:a}},[d,h,m,y,g,j,a]);return v==null?null:f.createElement(ls.Provider,{value:u},f.createElement(Jc.Provider,{children:n,value:v}))}function zE(e){let{children:t,location:n}=e;return SE(Wm(t),n)}new Promise(()=>{});function Wm(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(s,a)=>{if(!f.isValidElement(s))return;let i=[...t,a];if(s.type===f.Fragment){n.push.apply(n,Wm(s.props.children,i));return}s.type!==Xe&&ot(!1),!s.props.index||!s.props.children||ot(!1);let o={id:s.props.id||i.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&&(o.children=Wm(s.props.children,i)),n.push(o)}),n}/** |
| 61 |
* React Router DOM v6.30.3 |
| 62 |
* |
| 63 |
* Copyright (c) Remix Software Inc. |
| 64 |
* |
| 65 |
* This source code is licensed under the MIT license found in the |
| 66 |
* LICENSE.md file in the root directory of this source tree. |
| 67 |
* |
| 68 |
* @license MIT |
| 69 |
*/function td(){return td=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},td.apply(this,arguments)}function N0(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,i;for(i=0;i<s.length;i++)a=s[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function UE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BE(e,t){return e.button===0&&(!t||t==="_self")&&!UE(e)}function Km(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 VE(e,t){let n=Km(e);return t&&t.forEach((s,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const qE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],HE=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],WE="6";try{window.__reactRouterVersion=WE}catch(e){}const KE=f.createContext({isTransitioning:!1}),S0=Dl["startTransition"];function QE(e){let{basename:t,children:n,future:s,window:a}=e,i=f.useRef();i.current==null&&(i.current=Q2({window:a,v5Compat:!0}));let o=i.current,[c,d]=f.useState({action:o.action,location:o.location}),{v7_startTransition:u}=s||{},h=f.useCallback(m=>{u&&S0?S0(()=>d(m)):d(m)},[d,u]);return f.useLayoutEffect(()=>o.listen(h),[o,h]),f.useEffect(()=>FE(s),[s]),f.createElement($E,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:o,future:s})}const GE=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",YE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=f.forwardRef(function(t,n){let{onClick:s,relative:a,reloadDocument:i,replace:o,state:c,target:d,to:u,preventScrollReset:h,viewTransition:m}=t,y=N0(t,qE),{basename:g}=f.useContext(ls),j,v=!1;if(typeof u=="string"&&YE.test(u)&&(j=u,GE))try{let x=new URL(window.location.href),N=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=ri(N.pathname,g);N.origin===x.origin&&S!=null?u=S+N.search+N.hash:v=!0}catch(x){}let w=bE(u,{relative:a}),b=JE(u,{replace:o,state:c,target:d,preventScrollReset:h,relative:a,viewTransition:m});function p(x){s&&s(x),x.defaultPrevented||b(x)}return f.createElement("a",td({},y,{href:j||w,onClick:v||i?s:p,ref:n,target:d}))}),XE=f.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:a=!1,className:i="",end:o=!1,style:c,to:d,viewTransition:u,children:h}=t,m=N0(t,HE),y=ed(d,{relative:m.relative}),g=cs(),j=f.useContext(x0),{navigator:v,basename:w}=f.useContext(ls),b=j!=null&&e_(y)&&u===!0,p=v.encodeLocation?v.encodeLocation(y).pathname:y.pathname,x=g.pathname,N=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;a||(x=x.toLowerCase(),N=N?N.toLowerCase():null,p=p.toLowerCase()),N&&w&&(N=ri(N,w)||N);const S=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let C=x===p||!o&&x.startsWith(p)&&x.charAt(S)==="/",_=N!=null&&(N===p||!o&&N.startsWith(p)&&N.charAt(p.length)==="/"),k={isActive:C,isPending:_,isTransitioning:b},R=C?s:void 0,T;typeof i=="function"?T=i(k):T=[i,C?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let O=typeof c=="function"?c(k):c;return f.createElement(xt,td({},m,{"aria-current":R,className:T,ref:n,style:O,to:d,viewTransition:u}),typeof h=="function"?h(k):h)});var Qm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qm||(Qm={}));var C0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(C0||(C0={}));function ZE(e){let t=f.useContext(Zc);return t||ot(!1),t}function JE(e,t){let{target:n,replace:s,state:a,preventScrollReset:i,relative:o,viewTransition:c}=t===void 0?{}:t,d=Tn(),u=cs(),h=ed(e,{relative:o});return f.useCallback(m=>{if(BE(m,n)){m.preventDefault();let y=s!==void 0?s:Xc(u)===Xc(h);d(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:c})}},[u,d,h,s,a,n,e,i,o,c])}function k0(e){let t=f.useRef(Km(e)),n=f.useRef(!1),s=cs(),a=f.useMemo(()=>VE(s.search,n.current?null:t.current),[s.search]),i=Tn(),o=f.useCallback((c,d)=>{const u=Km(typeof c=="function"?c(a):c);n.current=!0,i("?"+u,d)},[i,a]);return[a,o]}function e_(e,t){t===void 0&&(t={});let n=f.useContext(KE);n==null&&ot(!1);let{basename:s}=ZE(Qm.useViewTransitionState),a=ed(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ri(n.currentLocation.pathname,s)||n.currentLocation.pathname,o=ri(n.nextLocation.pathname,s)||n.nextLocation.pathname;return qm(a.pathname,o)!=null||qm(a.pathname,i)!=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 t_(e){return mt().registeredAddons.includes(e)}class nd extends Error{constructor(n,s,a){var i,o,c,d;super(n);Bi(this,"status");Bi(this,"code");Bi(this,"missing");Bi(this,"body");this.name="ApiError",this.status=s,this.body=a,this.code=(o=a==null?void 0:a.code)!=null?o:(i=a==null?void 0:a.data)==null?void 0:i.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(/^\/+/,""),i=`${s}/${a}`,o=await fetch(i,{...t,headers:{"Content-Type":"application/json","X-WP-Nonce":n.nonce,...t.headers}});if(!o.ok){const d=await o.json().catch(()=>({message:o.statusText})),u=(d==null?void 0:d.message)||((c=d==null?void 0:d.data)==null?void 0:c.message)||o.statusText;throw new nd(u,o.status,d)}return o.json()}const zo={},Gm=new Set,n_=Object.freeze([]);function r_(){Gm.forEach(e=>e())}function s_(e,t,n){typeof e!="string"||e===""||typeof t!="string"||t===""||typeof n!="function"&&typeof n!="object"||(zo[e]||(zo[e]=[]),!zo[e].some(s=>s.name===t)&&(zo[e].push({name:t,Component:n}),r_()))}function E0(e){return Gm.add(e),()=>{Gm.delete(e)}}function _0(e){var t;return(t=zo[e])!=null?t:n_}let rd=null;function a_(){return rd||(typeof window!="undefined"&&!window.f12DoiRegisterComponent&&(window.f12DoiRegisterComponent=(e,t,n)=>{s_(e,t,n)}),rd=(async()=>{let e;try{e=await G("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,i;return(i=(a=s.ui)==null?void 0:a.bundles)!=null?i:[]}).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})(),rd)}const i_=1,o_=1e6;let Ym=0;function l_(){return Ym=(Ym+1)%Number.MAX_SAFE_INTEGER,Ym.toString()}const Xm=new Map,P0=e=>{if(Xm.has(e))return;const t=setTimeout(()=>{Xm.delete(e),Uo({type:"REMOVE_TOAST",toastId:e})},o_);Xm.set(e,t)},c_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,i_)};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?P0(n):e.toasts.forEach(s=>{P0(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 Uo(e){ad=c_(ad,e),sd.forEach(t=>{t(ad)})}function d_({...e}){const t=l_(),n=a=>Uo({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>Uo({type:"DISMISS_TOAST",toastId:t});return Uo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:n}}function u_(){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:d_,dismiss:n=>Uo({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 T0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function si(...e){return t=>{let n=!1;const s=e.map(a=>{const i=T0(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():T0(e[a],null)}}}}function Me(...e){return f.useCallback(si(...e),e)}function f_(e,t){const n=f.createContext(t),s=i=>{const{children:o,...c}=i,d=f.useMemo(()=>c,Object.values(c));return r.jsx(n.Provider,{value:d,children:o})};s.displayName=e+"Provider";function a(i){const o=f.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,a]}function Mt(e,t=[]){let n=[];function s(i,o){const c=f.createContext(o),d=n.length;n=[...n,o];const u=m=>{var b;const{scope:y,children:g,...j}=m,v=((b=y==null?void 0:y[e])==null?void 0:b[d])||c,w=f.useMemo(()=>j,Object.values(j));return r.jsx(v.Provider,{value:w,children:g})};u.displayName=i+"Provider";function h(m,y){var v;const g=((v=y==null?void 0:y[e])==null?void 0:v[d])||c,j=f.useContext(g);if(j)return j;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,h]}const a=()=>{const i=n.map(o=>f.createContext(o));return function(c){const d=(c==null?void 0:c[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return a.scopeName=e,[s,m_(a,...t)]}function m_(...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(i){const o=s.reduce((c,{useScope:d,scopeName:u})=>{const m=d(i)[`__scope${u}`];return{...c,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function R0(e){const t=h_(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(x_);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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function h_(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=v_(a),c=g_(i,a.props);return a.type!==f.Fragment&&(c.ref=s?si(s,o):o),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 x_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p_}function g_(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function v_(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]=Mt(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:w,children:b}=v,p=H.useRef(null),x=H.useRef(new Map).current;return r.jsx(a,{scope:w,itemMap:x,collectionRef:p,children:b})};o.displayName=t;const c=e+"CollectionSlot",d=R0(c),u=H.forwardRef((v,w)=>{const{scope:b,children:p}=v,x=i(c,b),N=Me(w,x.collectionRef);return r.jsx(d,{ref:N,children:p})});u.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",y=R0(h),g=H.forwardRef((v,w)=>{const{scope:b,children:p,...x}=v,N=H.useRef(null),S=Me(w,N),C=i(h,b);return H.useEffect(()=>(C.itemMap.set(N,{ref:N,...x}),()=>void C.itemMap.delete(N))),r.jsx(y,{[m]:"",ref:S,children:p})});g.displayName=h;function j(v){const w=i(e+"CollectionConsumer",v);return H.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const x=Array.from(p.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((C,_)=>x.indexOf(C.ref.current)-x.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:g},j,s]}function y_(e){const t=b_(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(w_);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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function b_(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=S_(a),c=N_(i,a.props);return a.type!==f.Fragment&&(c.ref=s?si(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j_=Symbol("radix.slottable");function w_(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j_}function N_(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function S_(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 C_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=C_.reduce((e,t)=>{const n=y_(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function A0(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 k_(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 E_="DismissableLayer",Zm="dismissableLayer.update",__="dismissableLayer.pointerDownOutside",P_="dismissableLayer.focusOutside",O0,I0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bo=f.forwardRef((e,t)=>{var _;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:c,...d}=e,u=f.useContext(I0),[h,m]=f.useState(null),y=(_=h==null?void 0:h.ownerDocument)!=null?_:globalThis==null?void 0:globalThis.document,[,g]=f.useState({}),j=Me(t,k=>m(k)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(w),p=h?v.indexOf(h):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,N=p>=b,S=R_(k=>{const R=k.target,T=[...u.branches].some(O=>O.contains(R));!N||T||(a==null||a(k),o==null||o(k),k.defaultPrevented||c==null||c())},y),C=A_(k=>{const R=k.target;[...u.branches].some(O=>O.contains(R))||(i==null||i(k),o==null||o(k),k.defaultPrevented||c==null||c())},y);return k_(k=>{p===u.layers.size-1&&(s==null||s(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},y),f.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(O0=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),D0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=O0)}},[h,y,n,u]),f.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),D0())},[h,u]),f.useEffect(()=>{const k=()=>g({});return document.addEventListener(Zm,k),()=>document.removeEventListener(Zm,k)},[]),r.jsx(xe.div,{...d,ref:j,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)})});Bo.displayName=E_;var T_="DismissableLayerBranch",M0=f.forwardRef((e,t)=>{const n=f.useContext(I0),s=f.useRef(null),a=Me(t,s);return f.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),r.jsx(xe.div,{...e,ref:a})});M0.displayName=T_;function R_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1),a=f.useRef(()=>{});return f.useEffect(()=>{const i=c=>{if(c.target&&!s.current){let d=function(){F0(__,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},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function A_(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),s=f.useRef(!1);return f.useEffect(()=>{const a=i=>{i.target&&!s.current&&F0(P_,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function D0(){const e=new CustomEvent(Zm);document.dispatchEvent(e)}function F0(e,t,n,{discrete:s}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?A0(a,i):a.dispatchEvent(i)}var O_=Bo,I_=M0,gt=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},M_="Portal",Vo=f.forwardRef((e,t)=>{var c;const{container:n,...s}=e,[a,i]=f.useState(!1);gt(()=>i(!0),[]);const o=n||a&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?Ry.createPortal(r.jsx(xe.div,{...s,ref:t}),o):null});Vo.displayName=M_;function D_(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=F_(t),a=typeof n=="function"?n({present:s.isPresent}):f.Children.only(n),i=Me(s.ref,L_(a));return typeof n=="function"||s.isPresent?f.cloneElement(a,{ref:i}):null};Rn.displayName="Presence";function F_(e){const[t,n]=f.useState(),s=f.useRef(null),a=f.useRef(e),i=f.useRef("none"),o=e?"mounted":"unmounted",[c,d]=D_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=od(s.current);i.current=c==="mounted"?u:"none"},[c]),gt(()=>{const u=s.current,h=a.current;if(h!==e){const y=i.current,g=od(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(h&&y!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),gt(()=>{var u;if(t){let h;const m=(u=t.ownerDocument.defaultView)!=null?u:window,y=j=>{const w=od(s.current).includes(CSS.escape(j.animationName));if(j.target===t&&w&&(d("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=j=>{j.target===t&&(i.current=od(s.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:f.useCallback(u=>{s.current=u?getComputedStyle(u):null,n(u)},[])}}function od(e){return(e==null?void 0:e.animationName)||"none"}function L_(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 $_=Dl[" useInsertionEffect ".trim().toString()]||gt;function Jt({prop:e,defaultProp:t,onChange:n=()=>{},caller:s}){const[a,i,o]=z_({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 y=U_(h)?h(e):h;y!==e&&((m=o.current)==null||m.call(o,y))}else i(h)},[c,e,i,o]);return[d,u]}function z_({defaultProp:e,onChange:t}){const[n,s]=f.useState(e),a=f.useRef(n),i=f.useRef(t);return $_(()=>{i.current=t},[t]),f.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,s,i]}function U_(e){return typeof e=="function"}var L0=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"}),B_="VisuallyHidden",ld=f.forwardRef((e,t)=>r.jsx(xe.span,{...e,ref:t,style:{...L0,...e.style}}));ld.displayName=B_;var V_=ld,Jm="ToastProvider",[eh,q_,H_]=id("Toast"),[$0]=Mt("Toast",[H_]),[W_,cd]=$0(Jm),z0=e=>{const{__scopeToast:t,label:n="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[c,d]=f.useState(null),[u,h]=f.useState(0),m=f.useRef(!1),y=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Jm}\`. Expected non-empty \`string\`.`),r.jsx(eh.Provider,{scope:t,children:r.jsx(W_,{scope:t,label:n,duration:s,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,onViewportChange:d,onToastAdd:f.useCallback(()=>h(g=>g+1),[]),onToastRemove:f.useCallback(()=>h(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:y,children:o})})};z0.displayName=Jm;var U0="ToastViewport",K_=["F8"],th="toast.viewportPause",nh="toast.viewportResume",B0=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:s=K_,label:a="Notifications ({hotkey})",...i}=e,o=cd(U0,n),c=q_(n),d=f.useRef(null),u=f.useRef(null),h=f.useRef(null),m=f.useRef(null),y=Me(t,m,o.onViewportChange),g=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=o.toastCount>0;f.useEffect(()=>{const w=b=>{var x;s.length!==0&&s.every(N=>b[N]||b.code===N)&&((x=m.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[s]),f.useEffect(()=>{const w=d.current,b=m.current;if(j&&w&&b){const p=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(th);b.dispatchEvent(C),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(nh);b.dispatchEvent(C),o.isClosePausedRef.current=!1}},N=C=>{!w.contains(C.relatedTarget)&&x()},S=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",p),w.addEventListener("focusout",N),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",x)}}},[j,o.isClosePausedRef]);const v=f.useCallback(({tabbingDirection:w})=>{const p=c().map(x=>{const N=x.ref.current,S=[N,...iP(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 b=p=>{var S,C,_;const x=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!x){const k=document.activeElement,R=p.shiftKey;if(p.target===w&&R){(S=u.current)==null||S.focus();return}const F=v({tabbingDirection:R?"backwards":"forwards"}),B=F.findIndex(I=>I===k);ah(F.slice(B+1))?p.preventDefault():R?(C=u.current)==null||C.focus():(_=h.current)==null||_.focus()}};return w.addEventListener("keydown",b),()=>w.removeEventListener("keydown",b)}},[c,v]),r.jsxs(I_,{ref:d,role:"region","aria-label":a.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(rh,{ref:u,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});ah(w)}}),r.jsx(eh.Slot,{scope:n,children:r.jsx(xe.ol,{tabIndex:-1,...i,ref:y})}),j&&r.jsx(rh,{ref:h,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});ah(w)}})]})});B0.displayName=U0;var V0="ToastFocusProxy",rh=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:s,...a}=e,i=cd(V0,n);return r.jsx(ld,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const c=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(c))&&s()}})});rh.displayName=V0;var qo="Toast",Q_="toast.swipeStart",G_="toast.swipeMove",Y_="toast.swipeCancel",X_="toast.swipeEnd",q0=f.forwardRef((e,t)=>{const{forceMount:n,open:s,defaultOpen:a,onOpenChange:i,...o}=e,[c,d]=Jt({prop:s,defaultProp:a!=null?a:!0,onChange:i,caller:qo});return r.jsx(Rn,{present:n||c,children:r.jsx(eP,{open:c,...o,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=qo;var[Z_,J_]=$0(qo,{onClose(){}}),eP=f.forwardRef((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:c,onPause:d,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:g,...j}=e,v=cd(qo,n),[w,b]=f.useState(null),p=Me(t,I=>b(I)),x=f.useRef(null),N=f.useRef(null),S=a||v.duration,C=f.useRef(0),_=f.useRef(S),k=f.useRef(0),{onToastAdd:R,onToastRemove:T}=v,O=gn(()=>{var se;(w==null?void 0:w.contains(document.activeElement))&&((se=v.viewport)==null||se.focus()),o()}),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=v.viewport;if(I){const se=()=>{F(_.current),u==null||u()},M=()=>{const Z=new Date().getTime()-C.current;_.current=_.current-Z,window.clearTimeout(k.current),d==null||d()};return I.addEventListener(th,M),I.addEventListener(nh,se),()=>{I.removeEventListener(th,M),I.removeEventListener(nh,se)}}},[v.viewport,S,d,u,F]),f.useEffect(()=>{i&&!v.isClosePausedRef.current&&F(S)},[i,S,v.isClosePausedRef,F]),f.useEffect(()=>(R(),()=>T()),[R,T]);const B=f.useMemo(()=>w?X0(w):null,[w]);return v.viewport?r.jsxs(r.Fragment,{children:[B&&r.jsx(tP,{__scopeToast:n,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:B}),r.jsx(Z_,{scope:n,onClose:O,children:Zs.createPortal(r.jsx(eh.ItemSlot,{scope:n,children:r.jsx(O_,{asChild:!0,onEscapeKeyDown:he(c,()=>{v.isFocusedToastEscapeKeyDownRef.current||O(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(xe.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...j,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||(v.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(v.swipeDirection),D=["left","up"].includes(v.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},W={originalEvent:I,delta:z};Z?(N.current=z,dd(G_,m,W,{discrete:!1})):Z0(z,v.swipeDirection,P)?(N.current=z,dd(Q_,h,W,{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};Z0(se,v.swipeDirection,v.swipeThreshold)?dd(X_,g,A,{discrete:!0}):dd(Y_,y,A,{discrete:!0}),Z.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),tP=e=>{const{__scopeToast:t,children:n,...s}=e,a=cd(qo,t),[i,o]=f.useState(!1),[c,d]=f.useState(!1);return sP(()=>o(!0)),f.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:r.jsx(Vo,{asChild:!0,children:r.jsx(ld,{...s,children:i&&r.jsxs(r.Fragment,{children:[a.label," ",n]})})})},nP="ToastTitle",H0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(xe.div,{...s,ref:t})});H0.displayName=nP;var rP="ToastDescription",W0=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e;return r.jsx(xe.div,{...s,ref:t})});W0.displayName=rP;var K0="ToastAction",Q0=f.forwardRef((e,t)=>{const{altText:n,...s}=e;return n.trim()?r.jsx(Y0,{altText:n,asChild:!0,children:r.jsx(sh,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${K0}\`. Expected non-empty \`string\`.`),null)});Q0.displayName=K0;var G0="ToastClose",sh=f.forwardRef((e,t)=>{const{__scopeToast:n,...s}=e,a=J_(G0,n);return r.jsx(Y0,{asChild:!0,children:r.jsx(xe.button,{type:"button",...s,ref:t,onClick:he(e.onClick,a.onClose)})})});sh.displayName=G0;var Y0=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 X0(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),aP(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",i=s.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=s.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...X0(s))}}),t}function dd(e,t,n,{discrete:s}){const a=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),s?A0(a,i):a.dispatchEvent(i)}var Z0=(e,t,n=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),i=s>a;return t==="left"||t==="right"?i&&s>n:!i&&a>n};function sP(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 aP(e){return e.nodeType===e.ELEMENT_NODE}function iP(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 ah(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var oP=z0,J0=B0,eb=q0,tb=H0,nb=W0,rb=Q0,sb=sh;function ab(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=ab(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function ib(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ab(e))&&(s&&(s+=" "),s+=t);return s}const ob=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lb=ib,ai=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return lb(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const h=n==null?void 0:n[u],m=i==null?void 0:i[u];if(h===null)return null;const y=ob(h)||ob(m);return a[u][y]}),c=n&&Object.entries(n).reduce((u,h)=>{let[m,y]=h;return y===void 0||(u[m]=y),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,h)=>{let{class:m,className:y,...g}=h;return Object.entries(g).every(j=>{let[v,w]=j;return Array.isArray(w)?w.includes({...i,...c}[v]):{...i,...c}[v]===w})?[...u,m,y]:u},[]);return lb(e,o,d,n==null?void 0:n.class,n==null?void 0:n.className)};/** |
| 70 |
* @license lucide-react v0.462.0 - ISC |
| 71 |
* |
| 72 |
* This source code is licensed under the ISC license. |
| 73 |
* See the LICENSE file in the root directory of this source tree. |
| 74 |
*/const lP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),cb=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** |
| 75 |
* @license lucide-react v0.462.0 - ISC |
| 76 |
* |
| 77 |
* This source code is licensed under the ISC license. |
| 78 |
* See the LICENSE file in the root directory of this source tree. |
| 79 |
*/var cP={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 |
* @license lucide-react v0.462.0 - ISC |
| 81 |
* |
| 82 |
* This source code is licensed under the ISC license. |
| 83 |
* See the LICENSE file in the root directory of this source tree. |
| 84 |
*/const dP=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:i,iconNode:o,...c},d)=>f.createElement("svg",{ref:d,...cP,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:cb("lucide",a),...c},[...o.map(([u,h])=>f.createElement(u,h)),...Array.isArray(i)?i:[i]]));/** |
| 85 |
* @license lucide-react v0.462.0 - ISC |
| 86 |
* |
| 87 |
* This source code is licensed under the ISC license. |
| 88 |
* See the LICENSE file in the root directory of this source tree. |
| 89 |
*/const oe=(e,t)=>{const n=f.forwardRef(({className:s,...a},i)=>f.createElement(dP,{ref:i,iconNode:t,className:cb(`lucide-${lP(e)}`,s),...a}));return n.displayName=`${e}`,n};/** |
| 90 |
* @license lucide-react v0.462.0 - ISC |
| 91 |
* |
| 92 |
* This source code is licensed under the ISC license. |
| 93 |
* See the LICENSE file in the root directory of this source tree. |
| 94 |
*/const ud=oe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** |
| 95 |
* @license lucide-react v0.462.0 - ISC |
| 96 |
* |
| 97 |
* This source code is licensed under the ISC license. |
| 98 |
* See the LICENSE file in the root directory of this source tree. |
| 99 |
*/const Ho=oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** |
| 100 |
* @license lucide-react v0.462.0 - ISC |
| 101 |
* |
| 102 |
* This source code is licensed under the ISC license. |
| 103 |
* See the LICENSE file in the root directory of this source tree. |
| 104 |
*/const uP=oe("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"}]]);/** |
| 105 |
* @license lucide-react v0.462.0 - ISC |
| 106 |
* |
| 107 |
* This source code is licensed under the ISC license. |
| 108 |
* See the LICENSE file in the root directory of this source tree. |
| 109 |
*/const ii=oe("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"}]]);/** |
| 110 |
* @license lucide-react v0.462.0 - ISC |
| 111 |
* |
| 112 |
* This source code is licensed under the ISC license. |
| 113 |
* See the LICENSE file in the root directory of this source tree. |
| 114 |
*/const fP=oe("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"}]]);/** |
| 115 |
* @license lucide-react v0.462.0 - ISC |
| 116 |
* |
| 117 |
* This source code is licensed under the ISC license. |
| 118 |
* See the LICENSE file in the root directory of this source tree. |
| 119 |
*/const mP=oe("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"}]]);/** |
| 120 |
* @license lucide-react v0.462.0 - ISC |
| 121 |
* |
| 122 |
* This source code is licensed under the ISC license. |
| 123 |
* See the LICENSE file in the root directory of this source tree. |
| 124 |
*/const ds=oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** |
| 125 |
* @license lucide-react v0.462.0 - ISC |
| 126 |
* |
| 127 |
* This source code is licensed under the ISC license. |
| 128 |
* See the LICENSE file in the root directory of this source tree. |
| 129 |
*/const sa=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** |
| 130 |
* @license lucide-react v0.462.0 - ISC |
| 131 |
* |
| 132 |
* This source code is licensed under the ISC license. |
| 133 |
* See the LICENSE file in the root directory of this source tree. |
| 134 |
*/const db=oe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** |
| 135 |
* @license lucide-react v0.462.0 - ISC |
| 136 |
* |
| 137 |
* This source code is licensed under the ISC license. |
| 138 |
* See the LICENSE file in the root directory of this source tree. |
| 139 |
*/const ih=oe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** |
| 140 |
* @license lucide-react v0.462.0 - ISC |
| 141 |
* |
| 142 |
* This source code is licensed under the ISC license. |
| 143 |
* See the LICENSE file in the root directory of this source tree. |
| 144 |
*/const hP=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** |
| 145 |
* @license lucide-react v0.462.0 - ISC |
| 146 |
* |
| 147 |
* This source code is licensed under the ISC license. |
| 148 |
* See the LICENSE file in the root directory of this source tree. |
| 149 |
*/const fd=oe("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"}]]);/** |
| 150 |
* @license lucide-react v0.462.0 - ISC |
| 151 |
* |
| 152 |
* This source code is licensed under the ISC license. |
| 153 |
* See the LICENSE file in the root directory of this source tree. |
| 154 |
*/const aa=oe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** |
| 155 |
* @license lucide-react v0.462.0 - ISC |
| 156 |
* |
| 157 |
* This source code is licensed under the ISC license. |
| 158 |
* See the LICENSE file in the root directory of this source tree. |
| 159 |
*/const ub=oe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** |
| 160 |
* @license lucide-react v0.462.0 - ISC |
| 161 |
* |
| 162 |
* This source code is licensed under the ISC license. |
| 163 |
* See the LICENSE file in the root directory of this source tree. |
| 164 |
*/const pP=oe("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"}]]);/** |
| 165 |
* @license lucide-react v0.462.0 - ISC |
| 166 |
* |
| 167 |
* This source code is licensed under the ISC license. |
| 168 |
* See the LICENSE file in the root directory of this source tree. |
| 169 |
*/const oh=oe("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"}]]);/** |
| 170 |
* @license lucide-react v0.462.0 - ISC |
| 171 |
* |
| 172 |
* This source code is licensed under the ISC license. |
| 173 |
* See the LICENSE file in the root directory of this source tree. |
| 174 |
*/const fb=oe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** |
| 175 |
* @license lucide-react v0.462.0 - ISC |
| 176 |
* |
| 177 |
* This source code is licensed under the ISC license. |
| 178 |
* See the LICENSE file in the root directory of this source tree. |
| 179 |
*/const Xn=oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** |
| 180 |
* @license lucide-react v0.462.0 - ISC |
| 181 |
* |
| 182 |
* This source code is licensed under the ISC license. |
| 183 |
* See the LICENSE file in the root directory of this source tree. |
| 184 |
*/const mb=oe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** |
| 185 |
* @license lucide-react v0.462.0 - ISC |
| 186 |
* |
| 187 |
* This source code is licensed under the ISC license. |
| 188 |
* See the LICENSE file in the root directory of this source tree. |
| 189 |
*/const lh=oe("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"}]]);/** |
| 190 |
* @license lucide-react v0.462.0 - ISC |
| 191 |
* |
| 192 |
* This source code is licensed under the ISC license. |
| 193 |
* See the LICENSE file in the root directory of this source tree. |
| 194 |
*/const Wo=oe("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"}]]);/** |
| 195 |
* @license lucide-react v0.462.0 - ISC |
| 196 |
* |
| 197 |
* This source code is licensed under the ISC license. |
| 198 |
* See the LICENSE file in the root directory of this source tree. |
| 199 |
*/const Ko=oe("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"}]]);/** |
| 200 |
* @license lucide-react v0.462.0 - ISC |
| 201 |
* |
| 202 |
* This source code is licensed under the ISC license. |
| 203 |
* See the LICENSE file in the root directory of this source tree. |
| 204 |
*/const oi=oe("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"}]]);/** |
| 205 |
* @license lucide-react v0.462.0 - ISC |
| 206 |
* |
| 207 |
* This source code is licensed under the ISC license. |
| 208 |
* See the LICENSE file in the root directory of this source tree. |
| 209 |
*/const xP=oe("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"}]]);/** |
| 210 |
* @license lucide-react v0.462.0 - ISC |
| 211 |
* |
| 212 |
* This source code is licensed under the ISC license. |
| 213 |
* See the LICENSE file in the root directory of this source tree. |
| 214 |
*/const gP=oe("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"}]]);/** |
| 215 |
* @license lucide-react v0.462.0 - ISC |
| 216 |
* |
| 217 |
* This source code is licensed under the ISC license. |
| 218 |
* See the LICENSE file in the root directory of this source tree. |
| 219 |
*/const vP=oe("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"}]]);/** |
| 220 |
* @license lucide-react v0.462.0 - ISC |
| 221 |
* |
| 222 |
* This source code is licensed under the ISC license. |
| 223 |
* See the LICENSE file in the root directory of this source tree. |
| 224 |
*/const ia=oe("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"}]]);/** |
| 225 |
* @license lucide-react v0.462.0 - ISC |
| 226 |
* |
| 227 |
* This source code is licensed under the ISC license. |
| 228 |
* See the LICENSE file in the root directory of this source tree. |
| 229 |
*/const yP=oe("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"}]]);/** |
| 230 |
* @license lucide-react v0.462.0 - ISC |
| 231 |
* |
| 232 |
* This source code is licensed under the ISC license. |
| 233 |
* See the LICENSE file in the root directory of this source tree. |
| 234 |
*/const bP=oe("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"}]]);/** |
| 235 |
* @license lucide-react v0.462.0 - ISC |
| 236 |
* |
| 237 |
* This source code is licensed under the ISC license. |
| 238 |
* See the LICENSE file in the root directory of this source tree. |
| 239 |
*/const jP=oe("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"}]]);/** |
| 240 |
* @license lucide-react v0.462.0 - ISC |
| 241 |
* |
| 242 |
* This source code is licensed under the ISC license. |
| 243 |
* See the LICENSE file in the root directory of this source tree. |
| 244 |
*/const wt=oe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** |
| 245 |
* @license lucide-react v0.462.0 - ISC |
| 246 |
* |
| 247 |
* This source code is licensed under the ISC license. |
| 248 |
* See the LICENSE file in the root directory of this source tree. |
| 249 |
*/const hb=oe("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"}]]);/** |
| 250 |
* @license lucide-react v0.462.0 - ISC |
| 251 |
* |
| 252 |
* This source code is licensed under the ISC license. |
| 253 |
* See the LICENSE file in the root directory of this source tree. |
| 254 |
*/const wP=oe("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"}]]);/** |
| 255 |
* @license lucide-react v0.462.0 - ISC |
| 256 |
* |
| 257 |
* This source code is licensed under the ISC license. |
| 258 |
* See the LICENSE file in the root directory of this source tree. |
| 259 |
*/const NP=oe("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"}]]);/** |
| 260 |
* @license lucide-react v0.462.0 - ISC |
| 261 |
* |
| 262 |
* This source code is licensed under the ISC license. |
| 263 |
* See the LICENSE file in the root directory of this source tree. |
| 264 |
*/const SP=oe("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"}]]);/** |
| 265 |
* @license lucide-react v0.462.0 - ISC |
| 266 |
* |
| 267 |
* This source code is licensed under the ISC license. |
| 268 |
* See the LICENSE file in the root directory of this source tree. |
| 269 |
*/const CP=oe("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"}]]);/** |
| 270 |
* @license lucide-react v0.462.0 - ISC |
| 271 |
* |
| 272 |
* This source code is licensed under the ISC license. |
| 273 |
* See the LICENSE file in the root directory of this source tree. |
| 274 |
*/const An=oe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** |
| 275 |
* @license lucide-react v0.462.0 - ISC |
| 276 |
* |
| 277 |
* This source code is licensed under the ISC license. |
| 278 |
* See the LICENSE file in the root directory of this source tree. |
| 279 |
*/const md=oe("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"}]]);/** |
| 280 |
* @license lucide-react v0.462.0 - ISC |
| 281 |
* |
| 282 |
* This source code is licensed under the ISC license. |
| 283 |
* See the LICENSE file in the root directory of this source tree. |
| 284 |
*/const pb=oe("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"}]]);/** |
| 285 |
* @license lucide-react v0.462.0 - ISC |
| 286 |
* |
| 287 |
* This source code is licensed under the ISC license. |
| 288 |
* See the LICENSE file in the root directory of this source tree. |
| 289 |
*/const On=oe("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"}]]);/** |
| 290 |
* @license lucide-react v0.462.0 - ISC |
| 291 |
* |
| 292 |
* This source code is licensed under the ISC license. |
| 293 |
* See the LICENSE file in the root directory of this source tree. |
| 294 |
*/const kP=oe("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"}]]);/** |
| 295 |
* @license lucide-react v0.462.0 - ISC |
| 296 |
* |
| 297 |
* This source code is licensed under the ISC license. |
| 298 |
* See the LICENSE file in the root directory of this source tree. |
| 299 |
*/const xb=oe("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"}]]);/** |
| 300 |
* @license lucide-react v0.462.0 - ISC |
| 301 |
* |
| 302 |
* This source code is licensed under the ISC license. |
| 303 |
* See the LICENSE file in the root directory of this source tree. |
| 304 |
*/const EP=oe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** |
| 305 |
* @license lucide-react v0.462.0 - ISC |
| 306 |
* |
| 307 |
* This source code is licensed under the ISC license. |
| 308 |
* See the LICENSE file in the root directory of this source tree. |
| 309 |
*/const hd=oe("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"}]]);/** |
| 310 |
* @license lucide-react v0.462.0 - ISC |
| 311 |
* |
| 312 |
* This source code is licensed under the ISC license. |
| 313 |
* See the LICENSE file in the root directory of this source tree. |
| 314 |
*/const ch=oe("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"}]]);/** |
| 315 |
* @license lucide-react v0.462.0 - ISC |
| 316 |
* |
| 317 |
* This source code is licensed under the ISC license. |
| 318 |
* See the LICENSE file in the root directory of this source tree. |
| 319 |
*/const li=oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** |
| 320 |
* @license lucide-react v0.462.0 - ISC |
| 321 |
* |
| 322 |
* This source code is licensed under the ISC license. |
| 323 |
* See the LICENSE file in the root directory of this source tree. |
| 324 |
*/const Qo=oe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/** |
| 325 |
* @license lucide-react v0.462.0 - ISC |
| 326 |
* |
| 327 |
* This source code is licensed under the ISC license. |
| 328 |
* See the LICENSE file in the root directory of this source tree. |
| 329 |
*/const gb=oe("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"}]]);/** |
| 330 |
* @license lucide-react v0.462.0 - ISC |
| 331 |
* |
| 332 |
* This source code is licensed under the ISC license. |
| 333 |
* See the LICENSE file in the root directory of this source tree. |
| 334 |
*/const _P=oe("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"}]]);/** |
| 335 |
* @license lucide-react v0.462.0 - ISC |
| 336 |
* |
| 337 |
* This source code is licensed under the ISC license. |
| 338 |
* See the LICENSE file in the root directory of this source tree. |
| 339 |
*/const pd=oe("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"}]]);/** |
| 340 |
* @license lucide-react v0.462.0 - ISC |
| 341 |
* |
| 342 |
* This source code is licensed under the ISC license. |
| 343 |
* See the LICENSE file in the root directory of this source tree. |
| 344 |
*/const oa=oe("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"}]]);/** |
| 345 |
* @license lucide-react v0.462.0 - ISC |
| 346 |
* |
| 347 |
* This source code is licensed under the ISC license. |
| 348 |
* See the LICENSE file in the root directory of this source tree. |
| 349 |
*/const xd=oe("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"}]]);/** |
| 350 |
* @license lucide-react v0.462.0 - ISC |
| 351 |
* |
| 352 |
* This source code is licensed under the ISC license. |
| 353 |
* See the LICENSE file in the root directory of this source tree. |
| 354 |
*/const PP=oe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** |
| 355 |
* @license lucide-react v0.462.0 - ISC |
| 356 |
* |
| 357 |
* This source code is licensed under the ISC license. |
| 358 |
* See the LICENSE file in the root directory of this source tree. |
| 359 |
*/const TP=oe("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"}]]);/** |
| 360 |
* @license lucide-react v0.462.0 - ISC |
| 361 |
* |
| 362 |
* This source code is licensed under the ISC license. |
| 363 |
* See the LICENSE file in the root directory of this source tree. |
| 364 |
*/const dh=oe("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"}]]);/** |
| 365 |
* @license lucide-react v0.462.0 - ISC |
| 366 |
* |
| 367 |
* This source code is licensed under the ISC license. |
| 368 |
* See the LICENSE file in the root directory of this source tree. |
| 369 |
*/const uh=oe("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"}]]);/** |
| 370 |
* @license lucide-react v0.462.0 - ISC |
| 371 |
* |
| 372 |
* This source code is licensed under the ISC license. |
| 373 |
* See the LICENSE file in the root directory of this source tree. |
| 374 |
*/const RP=oe("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"}]]);/** |
| 375 |
* @license lucide-react v0.462.0 - ISC |
| 376 |
* |
| 377 |
* This source code is licensed under the ISC license. |
| 378 |
* See the LICENSE file in the root directory of this source tree. |
| 379 |
*/const fh=oe("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"}]]);/** |
| 380 |
* @license lucide-react v0.462.0 - ISC |
| 381 |
* |
| 382 |
* This source code is licensed under the ISC license. |
| 383 |
* See the LICENSE file in the root directory of this source tree. |
| 384 |
*/const vn=oe("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"}]]);/** |
| 385 |
* @license lucide-react v0.462.0 - ISC |
| 386 |
* |
| 387 |
* This source code is licensed under the ISC license. |
| 388 |
* See the LICENSE file in the root directory of this source tree. |
| 389 |
*/const AP=oe("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"}]]);/** |
| 390 |
* @license lucide-react v0.462.0 - ISC |
| 391 |
* |
| 392 |
* This source code is licensed under the ISC license. |
| 393 |
* See the LICENSE file in the root directory of this source tree. |
| 394 |
*/const Pt=oe("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"}]]);/** |
| 395 |
* @license lucide-react v0.462.0 - ISC |
| 396 |
* |
| 397 |
* This source code is licensed under the ISC license. |
| 398 |
* See the LICENSE file in the root directory of this source tree. |
| 399 |
*/const vb=oe("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"}]]);/** |
| 400 |
* @license lucide-react v0.462.0 - ISC |
| 401 |
* |
| 402 |
* This source code is licensed under the ISC license. |
| 403 |
* See the LICENSE file in the root directory of this source tree. |
| 404 |
*/const OP=oe("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"}]]);/** |
| 405 |
* @license lucide-react v0.462.0 - ISC |
| 406 |
* |
| 407 |
* This source code is licensed under the ISC license. |
| 408 |
* See the LICENSE file in the root directory of this source tree. |
| 409 |
*/const yb=oe("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"}]]);/** |
| 410 |
* @license lucide-react v0.462.0 - ISC |
| 411 |
* |
| 412 |
* This source code is licensed under the ISC license. |
| 413 |
* See the LICENSE file in the root directory of this source tree. |
| 414 |
*/const mh=oe("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"}]]);/** |
| 415 |
* @license lucide-react v0.462.0 - ISC |
| 416 |
* |
| 417 |
* This source code is licensed under the ISC license. |
| 418 |
* See the LICENSE file in the root directory of this source tree. |
| 419 |
*/const IP=oe("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"}]]);/** |
| 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 gd=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** |
| 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 MP=oe("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"}]]),hh="-",DP=e=>{const t=LP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const c=o.split(hh);return c[0]===""&&c.length!==1&&c.shift(),bb(c,t)||FP(o)},getConflictingClassGroupIds:(o,c)=>{const d=n[o]||[];return c&&s[o]?[...d,...s[o]]:d}}},bb=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),a=s?bb(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(hh);return(o=t.validators.find(({validator:c})=>c(i)))==null?void 0:o.classGroupId},jb=/^\[(.+)\]$/,FP=e=>{if(jb.test(e)){const t=jb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LP=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return zP(Object.entries(e.classGroups),n).forEach(([i,o])=>{ph(o,s,i,t)}),s},ph=(e,t,n,s)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:wb(t,a);i.classGroupId=n;return}if(typeof a=="function"){if($P(a)){ph(a(s),t,n,s);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{ph(o,wb(t,i),n,s)})})},wb=(e,t)=>{let n=e;return t.split(hh).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},$P=e=>e.isThemeGetter,zP=(e,t)=>t?e.map(([n,s])=>{const a=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,c])=>[t+o,c])):i);return[n,a]}):e,UP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},Nb="!",BP=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,a=t[0],i=t.length,o=c=>{const d=[];let u=0,h=0,m;for(let w=0;w<c.length;w++){let b=c[w];if(u===0){if(b===a&&(s||c.slice(w,w+i)===t)){d.push(c.slice(h,w)),h=w+i;continue}if(b==="/"){m=w;continue}}b==="["?u++:b==="]"&&u--}const y=d.length===0?c:c.substring(h),g=y.startsWith(Nb),j=g?y.substring(1):y,v=m&&m>h?m-h:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:j,maybePostfixModifierPosition:v}};return n?c=>n({className:c,parseClassName:o}):o},VP=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},qP=e=>({cache:UP(e.cacheSize),parseClassName:BP(e),...DP(e)}),HP=/\s+/,WP=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(HP);let c="";for(let d=o.length-1;d>=0;d-=1){const u=o[d],{modifiers:h,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}=n(u);let j=!!g,v=s(j?y.substring(0,g):y);if(!v){if(!j){c=u+(c.length>0?" "+c:c);continue}if(v=s(y),!v){c=u+(c.length>0?" "+c:c);continue}j=!1}const w=VP(h).join(":"),b=m?w+Nb:w,p=b+v;if(i.includes(p))continue;i.push(p);const x=a(v,j);for(let N=0;N<x.length;++N){const S=x[N];i.push(b+S)}c=u+(c.length>0?" "+c:c)}return c};function KP(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Sb(t))&&(s&&(s+=" "),s+=n);return s}const Sb=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Sb(e[s]))&&(n&&(n+=" "),n+=t);return n};function QP(e,...t){let n,s,a,i=o;function o(d){const u=t.reduce((h,m)=>m(h),e());return n=qP(u),s=n.cache.get,a=n.cache.set,i=c,c(d)}function c(d){const u=s(d);if(u)return u;const h=WP(d,n);return a(d,h),h}return function(){return i(KP.apply(null,arguments))}}const Ze=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Cb=/^\[(?:([a-z-]+):)?(.+)\]$/i,GP=/^\d+\/\d+$/,YP=new Set(["px","full","screen"]),XP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZP=/\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$/,JP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nr=e=>ci(e)||YP.has(e)||GP.test(e),us=e=>di(e,"length",cT),ci=e=>!!e&&!Number.isNaN(Number(e)),xh=e=>di(e,"number",ci),Go=e=>!!e&&Number.isInteger(Number(e)),nT=e=>e.endsWith("%")&&ci(e.slice(0,-1)),Pe=e=>Cb.test(e),fs=e=>XP.test(e),rT=new Set(["length","size","percentage"]),sT=e=>di(e,rT,kb),aT=e=>di(e,"position",kb),iT=new Set(["image","url"]),oT=e=>di(e,iT,uT),lT=e=>di(e,"",dT),Yo=()=>!0,di=(e,t,n)=>{const s=Cb.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},cT=e=>ZP.test(e)&&!JP.test(e),kb=()=>!1,dT=e=>eT.test(e),uT=e=>tT.test(e),fT=QP(()=>{const e=Ze("colors"),t=Ze("spacing"),n=Ze("blur"),s=Ze("brightness"),a=Ze("borderColor"),i=Ze("borderRadius"),o=Ze("borderSpacing"),c=Ze("borderWidth"),d=Ze("contrast"),u=Ze("grayscale"),h=Ze("hueRotate"),m=Ze("invert"),y=Ze("gap"),g=Ze("gradientColorStops"),j=Ze("gradientColorStopPositions"),v=Ze("inset"),w=Ze("margin"),b=Ze("opacity"),p=Ze("padding"),x=Ze("saturate"),N=Ze("scale"),S=Ze("sepia"),C=Ze("skew"),_=Ze("space"),k=Ze("translate"),R=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Pe,t],F=()=>[Pe,t],B=()=>["",Nr,us],I=()=>["auto",ci,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=()=>[ci,Pe];return{cacheSize:500,separator:":",theme:{colors:[Yo],spacing:[Nr,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:[nT,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:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Go,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",Go,Pe]}],"grid-cols":[{"grid-cols":[Yo]}],"col-start-end":[{col:["auto",{span:["full",Go,Pe]},Pe]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Yo]}],"row-start-end":[{row:["auto",{span:[Go,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:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"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",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",xh]}],"font-family":[{font:[Yo]}],"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",ci,xh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Nr,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":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Nr,us]}],"underline-offset":[{"underline-offset":["auto",Nr,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":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),aT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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":[b]}],"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":[b]}],"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":[Nr,Pe]}],"outline-w":[{outline:[Nr,us]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Nr,us]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fs,lT]}],"shadow-color":[{shadow:[Yo]}],opacity:[{opacity:[b]}],"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":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"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:[Go,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:[Nr,us,xh]}],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 fT(ib(e))}function Xo(){var e;if(typeof document!="undefined")return(e=document.getElementById("doi-admin-root"))!=null?e:void 0}const mT=oP,Eb=f.forwardRef(({className:e,...t},n)=>r.jsx(J0,{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}));Eb.displayName=J0.displayName;const hT=ai("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"}}),_b=f.forwardRef(({className:e,variant:t,...n},s)=>r.jsx(eb,{ref:s,className:V(hT({variant:t}),e),...n}));_b.displayName=eb.displayName;const pT=f.forwardRef(({className:e,...t},n)=>r.jsx(rb,{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}));pT.displayName=rb.displayName;const Pb=f.forwardRef(({className:e,...t},n)=>r.jsx(sb,{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"})}));Pb.displayName=sb.displayName;const Tb=f.forwardRef(({className:e,...t},n)=>r.jsx(tb,{ref:n,className:V("text-sm font-semibold",e),...t}));Tb.displayName=tb.displayName;const Rb=f.forwardRef(({className:e,...t},n)=>r.jsx(nb,{ref:n,className:V("text-sm opacity-90",e),...t}));Rb.displayName=nb.displayName;function xT(){const{toasts:e}=u_();return r.jsxs(mT,{children:[e.map(function({id:t,title:n,description:s,action:a,...i}){return r.jsxs(_b,{...i,children:[r.jsxs("div",{className:"grid gap-1",children:[n&&r.jsx(Tb,{children:n}),s&&r.jsx(Rb,{children:s})]}),a,r.jsx(Pb,{})]},t)}),r.jsx(Eb,{})]})}var gT=(e,t,n,s,a,i,o,c)=>{let d=document.documentElement,u=["light","dark"];function h(g){(Array.isArray(e)?e:[e]).forEach(j=>{let v=j==="class",w=v&&i?a.map(b=>i[b]||b):a;v?(d.classList.remove(...w),d.classList.add(i&&i[g]?i[g]:g)):d.setAttribute(j,g)}),m(g)}function m(g){c&&u.includes(g)&&(d.style.colorScheme=g)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)h(s);else try{let g=localStorage.getItem(t)||n,j=o&&g==="system"?y():g;h(j)}catch(g){}},vT=f.createContext(void 0),yT={setTheme:e=>{},themes:[]},bT=()=>{var e;return(e=f.useContext(vT))!=null?e:yT};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:a,defaultTheme:i,value:o,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([n,t,i,e,c,o,s,a]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window=="undefined"?d:"",dangerouslySetInnerHTML:{__html:`(${gT.toString()})(${h})`}})});var jT=e=>{switch(e){case"success":return ST;case"info":return kT;case"warning":return CT;case"error":return ET;default:return null}},wT=Array(12).fill(0),NT=({visible:e,className:t})=>H.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},H.createElement("div",{className:"sonner-spinner"},wT.map((n,s)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),ST=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"})),CT=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"})),kT=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"})),ET=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"})),_T=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"})),PT=()=>{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},gh=1,TT=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:gh++,i=this.toasts.find(c=>c.id===a),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(c=>c.id===a?(this.publish({...c,...e,id:a,title:n}),{...c,...e,id:a,dismissible:o,title:n}):c):this.addToast({title:n,...s,dismissible:o,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,i,o=s.then(async d=>{if(i=["resolve",d],H.isValidElement(d))a=!1,this.create({id:n,type:"default",message:d});else if(AT(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(i=["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)=>o.then(()=>i[0]==="reject"?u(i[1]):d(i[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)||gh++;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 TT,RT=(e,t)=>{let n=(t==null?void 0:t.id)||gh++;return Vt.addToast({title:e,...t,id:n}),n},AT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",OT=RT,IT=()=>Vt.toasts,MT=()=>Vt.getActiveToasts(),K=Object.assign(OT,{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:IT,getToasts:MT});function DT(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))}DT(`: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%)} |
| 430 |
`);function vd(e){return e.label!==void 0}var FT=3,LT="32px",$T="16px",Ab=4e3,zT=356,UT=14,BT=20,VT=200;function In(...e){return e.filter(Boolean).join(" ")}function qT(e){let[t,n]=e.split("-"),s=[];return t&&s.push(t),n&&s.push(n),s}var HT=e=>{var t,n,s,a,i,o,c,d,u,h,m;let{invert:y,toast:g,unstyled:j,interacting:v,setHeights:w,visibleToasts:b,heights:p,index:x,toasts:N,expanded:S,removeToast:C,defaultRichColors:_,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,W]=H.useState(null),[ie,Se]=H.useState(null),[X,je]=H.useState(!1),[L,me]=H.useState(!1),[Ce,Ee]=H.useState(!1),[Be,q]=H.useState(!1),[Oe,Ve]=H.useState(!1),[Wt,Rs]=H.useState(0),[$i,Sa]=H.useState(0),ln=H.useRef(g.duration||I||Ab),Rl=H.useRef(null),dr=H.useRef(null),uu=x===0,fu=x+1<=b,Ft=g.type,Dr=g.dismissible!==!1,ur=g.className||"",wn=g.descriptionClassName||"",cn=H.useMemo(()=>p.findIndex(_e=>_e.toastId===g.id)||0,[p,g.id]),Ca=H.useMemo(()=>{var _e;return(_e=g.closeButton)!=null?_e:k},[g.closeButton,k]),As=H.useMemo(()=>g.duration||I||Ab,[g.duration,I]),Fr=H.useRef(0),zi=H.useRef(0),$S=H.useRef(0),Ui=H.useRef(null),[yM,bM]=se.split("-"),zS=H.useMemo(()=>p.reduce((_e,qe,et)=>et>=cn?_e:_e+qe.height,0),[p,cn]),US=PT(),jM=g.invert||y,Xp=Ft==="loading";zi.current=H.useMemo(()=>cn*M+zS,[cn,zS]),H.useEffect(()=>{ln.current=As},[As]),H.useEffect(()=>{je(!0)},[]),H.useEffect(()=>{let _e=dr.current;if(_e){let qe=_e.getBoundingClientRect().height;return Sa(qe),w(et=>[{toastId:g.id,height:qe,position:g.position},...et]),()=>w(et=>et.filter(Vn=>Vn.toastId!==g.id))}},[w,g.id]),H.useLayoutEffect(()=>{if(!X)return;let _e=dr.current,qe=_e.style.height;_e.style.height="auto";let et=_e.getBoundingClientRect().height;_e.style.height=qe,Sa(et),w(Vn=>Vn.find(qn=>qn.toastId===g.id)?Vn.map(qn=>qn.toastId===g.id?{...qn,height:et}:qn):[{toastId:g.id,height:et,position:g.position},...Vn])},[X,g.title,g.description,w,g.id]);let Os=H.useCallback(()=>{me(!0),Rs(zi.current),w(_e=>_e.filter(qe=>qe.toastId!==g.id)),setTimeout(()=>{C(g)},VT)},[g,C,w,zi]);H.useEffect(()=>{if(g.promise&&Ft==="loading"||g.duration===1/0||g.type==="loading")return;let _e;return S||v||P&&US?(()=>{if($S.current<Fr.current){let qe=new Date().getTime()-Fr.current;ln.current=ln.current-qe}$S.current=new Date().getTime()})():ln.current!==1/0&&(Fr.current=new Date().getTime(),_e=setTimeout(()=>{var qe;(qe=g.onAutoClose)==null||qe.call(g,g),Os()},ln.current)),()=>clearTimeout(_e)},[S,v,g,Ft,P,US,Os]),H.useEffect(()=>{g.delete&&Os()},[Os,g.delete]);function wM(){var _e,qe,et;return J!=null&&J.loading?H.createElement("div",{className:In(D==null?void 0:D.loader,(_e=g==null?void 0:g.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":Ft==="loading"},J.loading):Z?H.createElement("div",{className:In(D==null?void 0:D.loader,(qe=g==null?void 0:g.classNames)==null?void 0:qe.loader,"sonner-loader"),"data-visible":Ft==="loading"},Z):H.createElement(NT,{className:In(D==null?void 0:D.loader,(et=g==null?void 0:g.classNames)==null?void 0:et.loader),visible:Ft==="loading"})}return H.createElement("li",{tabIndex:0,ref:dr,className:In(F,ur,D==null?void 0:D.toast,(t=g==null?void 0:g.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[Ft],(n=g==null?void 0:g.classNames)==null?void 0:n[Ft]),"data-sonner-toast":"","data-rich-colors":(s=g.richColors)!=null?s:_,"data-styled":!(g.jsx||g.unstyled||j),"data-mounted":X,"data-promise":!!g.promise,"data-swiped":Oe,"data-removed":L,"data-visible":fu,"data-y-position":yM,"data-x-position":bM,"data-index":x,"data-front":uu,"data-swiping":Ce,"data-dismissible":Dr,"data-type":Ft,"data-invert":jM,"data-swipe-out":Be,"data-swipe-direction":ie,"data-expanded":!!(S||A&&X),style:{"--index":x,"--toasts-before":x,"--z-index":N.length-x,"--offset":`${L?Wt:zi.current}px`,"--initial-height":A?"auto":`${$i}px`,...R,...g.style},onDragEnd:()=>{Ee(!1),W(null),Ui.current=null},onPointerDown:_e=>{Xp||!Dr||(Rl.current=new Date,Rs(zi.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Ee(!0),Ui.current={x:_e.clientX,y:_e.clientY}))},onPointerUp:()=>{var _e,qe,et,Vn;if(Be||!Dr)return;Ui.current=null;let qn=Number(((_e=dr.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Is=Number(((qe=dr.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ka=new Date().getTime()-((et=Rl.current)==null?void 0:et.getTime()),Hn=z==="x"?qn:Is,Ms=Math.abs(Hn)/ka;if(Math.abs(Hn)>=BT||Ms>.11){Rs(zi.current),(Vn=g.onDismiss)==null||Vn.call(g,g),Se(z==="x"?qn>0?"right":"left":Is>0?"down":"up"),Os(),q(!0),Ve(!1);return}Ee(!1),W(null)},onPointerMove:_e=>{var qe,et,Vn,qn;if(!Ui.current||!Dr||((qe=window.getSelection())==null?void 0:qe.toString().length)>0)return;let Is=_e.clientY-Ui.current.y,ka=_e.clientX-Ui.current.x,Hn=(et=e.swipeDirections)!=null?et:qT(se);!z&&(Math.abs(ka)>1||Math.abs(Is)>1)&&W(Math.abs(ka)>Math.abs(Is)?"x":"y");let Ms={x:0,y:0};z==="y"?(Hn.includes("top")||Hn.includes("bottom"))&&(Hn.includes("top")&&Is<0||Hn.includes("bottom")&&Is>0)&&(Ms.y=Is):z==="x"&&(Hn.includes("left")||Hn.includes("right"))&&(Hn.includes("left")&&ka<0||Hn.includes("right")&&ka>0)&&(Ms.x=ka),(Math.abs(Ms.x)>0||Math.abs(Ms.y)>0)&&Ve(!0),(Vn=dr.current)==null||Vn.style.setProperty("--swipe-amount-x",`${Ms.x}px`),(qn=dr.current)==null||qn.style.setProperty("--swipe-amount-y",`${Ms.y}px`)}},Ca&&!g.jsx?H.createElement("button",{"aria-label":pe,"data-disabled":Xp,"data-close-button":!0,onClick:Xp||!Dr?()=>{}:()=>{var _e;Os(),(_e=g.onDismiss)==null||_e.call(g,g)},className:In(D==null?void 0:D.closeButton,(a=g==null?void 0:g.classNames)==null?void 0:a.closeButton)},(i=J==null?void 0:J.close)!=null?i:_T):null,g.jsx||f.isValidElement(g.title)?g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title:H.createElement(H.Fragment,null,Ft||g.icon||g.promise?H.createElement("div",{"data-icon":"",className:In(D==null?void 0:D.icon,(o=g==null?void 0:g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||wM():null,g.type!=="loading"?g.icon||(J==null?void 0:J[Ft])||jT(Ft):null):null,H.createElement("div",{"data-content":"",className:In(D==null?void 0:D.content,(c=g==null?void 0:g.classNames)==null?void 0:c.content)},H.createElement("div",{"data-title":"",className:In(D==null?void 0:D.title,(d=g==null?void 0:g.classNames)==null?void 0:d.title)},typeof g.title=="function"?g.title():g.title),g.description?H.createElement("div",{"data-description":"",className:In(B,wn,D==null?void 0:D.description,(u=g==null?void 0:g.classNames)==null?void 0:u.description)},typeof g.description=="function"?g.description():g.description):null),f.isValidElement(g.cancel)?g.cancel:g.cancel&&vd(g.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||T,onClick:_e=>{var qe,et;vd(g.cancel)&&Dr&&((et=(qe=g.cancel).onClick)==null||et.call(qe,_e),Os())},className:In(D==null?void 0:D.cancelButton,(h=g==null?void 0:g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,f.isValidElement(g.action)?g.action:g.action&&vd(g.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||O,onClick:_e=>{var qe,et;vd(g.action)&&((et=(qe=g.action).onClick)==null||et.call(qe,_e),!_e.defaultPrevented&&Os())},className:In(D==null?void 0:D.actionButton,(m=g==null?void 0:g.classNames)==null?void 0:m.actionButton)},g.action.label):null))};function Ob(){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 WT(e,t){let n={};return[e,t].forEach((s,a)=>{let i=a===1,o=i?"--mobile-offset":"--offset",c=i?$T:LT;function d(u){["top","right","bottom","left"].forEach(h=>{n[`${o}-${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[`${o}-${u}`]=c:n[`${o}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):d(c)}),n}var KT=f.forwardRef(function(e,t){let{invert:n,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:m,duration:y,style:g,visibleToasts:j=FT,toastOptions:v,dir:w=Ob(),gap:b=UT,loadingIcon:p,icons:x,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:S}=e,[C,_]=H.useState([]),k=H.useMemo(()=>Array.from(new Set([s].concat(C.filter(P=>P.position).map(P=>P.position)))),[C,s]),[R,T]=H.useState([]),[O,F]=H.useState(!1),[B,I]=H.useState(!1),[se,M]=H.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=H.useRef(null),A=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=H.useRef(null),J=H.useRef(!1),pe=H.useCallback(P=>{_(z=>{var W;return(W=z.find(ie=>ie.id===P.id))!=null&&W.delete||Vt.dismiss(P.id),z.filter(({id:ie})=>ie!==P.id)})},[]);return H.useEffect(()=>Vt.subscribe(P=>{if(P.dismiss){_(z=>z.map(W=>W.id===P.id?{...W,delete:!0}:W));return}setTimeout(()=>{Ry.flushSync(()=>{_(z=>{let W=z.findIndex(ie=>ie.id===P.id);return W!==-1?[...z.slice(0,W),{...z[W],...P},...z.slice(W+1)]:[P,...z]})})})}),[]),H.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:W})=>{try{M(W?"dark":"light")}catch(ie){console.error(ie)}})}},[h]),H.useEffect(()=>{C.length<=1&&F(!1)},[C]),H.useEffect(()=>{let P=z=>{var W,ie;a.every(Se=>z[Se]||z.code===Se)&&(F(!0),(W=Z.current)==null||W.focus()),z.code==="Escape"&&(document.activeElement===Z.current||(ie=Z.current)!=null&&ie.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[a]),H.useEffect(()=>{if(Z.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,J.current=!1)}},[Z.current]),H.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 W;let[ie,Se]=P.split("-");return C.length?H.createElement("ol",{key:P,dir:w==="auto"?Ob():w,tabIndex:-1,ref:Z,className:c,"data-sonner-toaster":!0,"data-theme":se,"data-y-position":ie,"data-lifted":O&&C.length>1&&!i,"data-x-position":Se,style:{"--front-toast-height":`${((W=R[0])==null?void 0:W.height)||0}px`,"--width":`${zT}px`,"--gap":`${b}px`,...g,...WT(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 H.createElement(HT,{key:X.id,icons:x,index:je,toast:X,defaultRichColors:m,duration:(L=v==null?void 0:v.duration)!=null?L:y,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:j,closeButton:(me=v==null?void 0:v.closeButton)!=null?me:o,interacting:B,position:P,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:pe,toasts:C.filter(Ce=>Ce.position==X.position),heights:R.filter(Ce=>Ce.position==X.position),setHeights:T,expandByDefault:i,gap:b,loadingIcon:p,expanded:O,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const QT=({...e})=>{const{theme:t="system"}=bT();return r.jsx(KT,{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 GT=Dl[" useId ".trim().toString()]||(()=>{}),YT=0;function Mn(e){const[t,n]=f.useState(GT());return gt(()=>{n(s=>s!=null?s:String(YT++))},[e]),e||(t?`radix-${t}`:"")}const XT=["top","right","bottom","left"],ms=Math.min,en=Math.max,yd=Math.round,bd=Math.floor,Zn=e=>({x:e,y:e}),ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function vh(e,t,n){return en(e,ms(t,n))}function Sr(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function ui(e){return e.split("-")[1]}function yh(e){return e==="x"?"y":"x"}function bh(e){return e==="y"?"height":"width"}function Jn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jh(e){return yh(Jn(e))}function JT(e,t,n){n===void 0&&(n=!1);const s=ui(e),a=jh(e),i=bh(a);let o=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=jd(o)),[o,jd(o)]}function eR(e){const t=jd(e);return[wh(e),t,wh(t)]}function wh(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ib=["left","right"],Mb=["right","left"],tR=["top","bottom"],nR=["bottom","top"];function rR(e,t,n){switch(e){case"top":case"bottom":return n?t?Mb:Ib:t?Ib:Mb;case"left":case"right":return t?tR:nR;default:return[]}}function sR(e,t,n,s){const a=ui(e);let i=rR(Cr(e),n==="start",s);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(wh)))),i}function jd(e){const t=Cr(e);return ZT[t]+e.slice(t.length)}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Db(e){return typeof e!="number"?aR(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 Fb(e,t,n){let{reference:s,floating:a}=e;const i=Jn(t),o=jh(t),c=bh(o),d=Cr(t),u=i==="y",h=s.x+s.width/2-a.width/2,m=s.y+s.height/2-a.height/2,y=s[c]/2-a[c]/2;let g;switch(d){case"top":g={x:h,y:s.y-a.height};break;case"bottom":g={x:h,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:m};break;case"left":g={x:s.x-a.width,y:m};break;default:g={x:s.x,y:s.y}}switch(ui(t)){case"start":g[o]-=y*(n&&u?-1:1);break;case"end":g[o]+=y*(n&&u?-1:1);break}return g}async function iR(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:i,rects:o,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:g=0}=Sr(t,e),j=Db(g),w=c[y?m==="floating"?"reference":"floating":m],b=wd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:d})),p=m==="floating"?{x:s,y:a,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),N=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=wd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:p,offsetParent:x,strategy:d}):p);return{top:(b.top-S.top+j.top)/N.y,bottom:(S.bottom-b.bottom+j.bottom)/N.y,left:(b.left-S.left+j.left)/N.x,right:(S.right-b.right+j.right)/N.x}}const oR=50,lR=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,c=o.detectOverflow?o:{...o,detectOverflow:iR},d=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:m}=Fb(u,s,d),y=s,g=0;const j={};for(let v=0;v<i.length;v++){const w=i[v];if(!w)continue;const{name:b,fn:p}=w,{x,y:N,data:S,reset:C}=await p({x:h,y:m,initialPlacement:s,placement:y,strategy:a,middlewareData:j,rects:u,platform:c,elements:{reference:e,floating:t}});h=x!=null?x:h,m=N!=null?N:m,j[b]={...j[b],...S},C&&g<oR&&(g++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:h,y:m}=Fb(u,y,d)),v=-1)}return{x:h,y:m,placement:y,strategy:a,middlewareData:j}},cR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:i,platform:o,elements:c,middlewareData:d}=t,{element:u,padding:h=0}=Sr(e,t)||{};if(u==null)return{};const m=Db(h),y={x:n,y:s},g=jh(a),j=bh(g),v=await o.getDimensions(u),w=g==="y",b=w?"top":"left",p=w?"bottom":"right",x=w?"clientHeight":"clientWidth",N=i.reference[j]+i.reference[g]-y[g]-i.floating[j],S=y[g]-i.reference[g],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=C?C[x]:0;(!_||!await(o.isElement==null?void 0:o.isElement(C)))&&(_=c.floating[x]||i.floating[j]);const k=N/2-S/2,R=_/2-v[j]/2-1,T=ms(m[b],R),O=ms(m[p],R),F=T,B=_-v[j]-O,I=_/2-v[j]/2+k,se=vh(F,I,B),M=!d.arrow&&ui(a)!=null&&I!==se&&i.reference[j]/2-(I<F?T:O)-v[j]/2<0,Z=M?I<F?I-F:I-B:0;return{[g]:y[g]+Z,data:{[g]:se,centerOffset:I-se-Z,...M&&{alignmentOffset:Z}},reset:M}}}),dR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:i,rects:o,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:v=!0,...w}=Sr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Cr(a),p=Jn(c),x=Cr(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=y||(x||!v?[jd(c)]:eR(c)),C=j!=="none";!y&&C&&S.push(...sR(c,v,j,N));const _=[c,...S],k=await d.detectOverflow(t,w),R=[];let T=((s=i.flip)==null?void 0:s.overflows)||[];if(h&&R.push(k[b]),m){const I=JT(a,o,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=i.flip)==null?void 0:O.index)||0)+1,se=_[I];if(se&&(!(m==="alignment"?p!==Jn(se):!1)||T.every(A=>Jn(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(g){case"bestFit":{var B;const Z=(B=T.filter(A=>{if(C){const D=Jn(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 Lb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $b(e){return XT.some(t=>e[t]>=0)}const uR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:a="referenceHidden",...i}=Sr(e,t);switch(a){case"referenceHidden":{const o=await s.detectOverflow(t,{...i,elementContext:"reference"}),c=Lb(o,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:$b(c)}}}case"escaped":{const o=await s.detectOverflow(t,{...i,altBoundary:!0}),c=Lb(o,n.floating);return{data:{escapedOffsets:c,escaped:$b(c)}}}default:return{}}}}},zb=new Set(["left","top"]);async function fR(e,t){const{placement:n,platform:s,elements:a}=e,i=await(s.isRTL==null?void 0:s.isRTL(a.floating)),o=Cr(n),c=ui(n),d=Jn(n)==="y",u=zb.has(o)?-1:1,h=i&&d?-1:1,m=Sr(t,e);let{mainAxis:y,crossAxis:g,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"&&(g=c==="end"?j*-1:j),d?{x:g*h,y:y*u}:{x:y*u,y:g*h}}const mR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:i,placement:o,middlewareData:c}=t,d=await fR(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:o}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:b=>{let{x:p,y:x}=b;return{x:p,y:x}}},...u}=Sr(e,t),h={x:n,y:s},m=await i.detectOverflow(t,u),y=Jn(Cr(a)),g=yh(y);let j=h[g],v=h[y];if(o){const b=g==="y"?"top":"left",p=g==="y"?"bottom":"right",x=j+m[b],N=j-m[p];j=vh(x,j,N)}if(c){const b=y==="y"?"top":"left",p=y==="y"?"bottom":"right",x=v+m[b],N=v-m[p];v=vh(x,v,N)}const w=d.fn({...t,[g]:j,[y]:v});return{...w,data:{x:w.x-n,y:w.y-s,enabled:{[g]:o,[y]:c}}}}}},pR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:i,middlewareData:o}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Sr(e,t),h={x:n,y:s},m=Jn(a),y=yh(m);let g=h[y],j=h[m];const v=Sr(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const x=y==="y"?"height":"width",N=i.reference[y]-i.floating[x]+w.mainAxis,S=i.reference[y]+i.reference[x]-w.mainAxis;g<N?g=N:g>S&&(g=S)}if(u){var b,p;const x=y==="y"?"width":"height",N=zb.has(Cr(a)),S=i.reference[m]-i.floating[x]+(N&&((b=o.offset)==null?void 0:b[m])||0)+(N?0:w.crossAxis),C=i.reference[m]+i.reference[x]+(N?0:((p=o.offset)==null?void 0:p[m])||0)-(N?w.crossAxis:0);j<S?j=S:j>C&&(j=C)}return{[y]:g,[m]:j}}}},xR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:i,platform:o,elements:c}=t,{apply:d=()=>{},...u}=Sr(e,t),h=await o.detectOverflow(t,u),m=Cr(a),y=ui(a),g=Jn(a)==="y",{width:j,height:v}=i.floating;let w,b;m==="top"||m==="bottom"?(w=m,b=y===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,w=y==="end"?"top":"bottom");const p=v-h.top-h.bottom,x=j-h.left-h.right,N=ms(v-h[w],p),S=ms(j-h[b],x),C=!t.middlewareData.shift;let _=N,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(_=p),C&&!y){const T=en(h.left,0),O=en(h.right,0),F=en(h.top,0),B=en(h.bottom,0);g?k=j-2*(T!==0||O!==0?T+O:en(h.left,h.right)):_=v-2*(F!==0||B!==0?F+B:en(h.top,h.bottom))}await d({...t,availableWidth:k,availableHeight:_});const R=await o.getDimensions(c.floating);return j!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function Nd(){return typeof window!="undefined"}function fi(e){return Ub(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Ub(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ub(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 kr(e){return Nd()?e instanceof HTMLElement||e instanceof tn(e).HTMLElement:!1}function Bb(e){return!Nd()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}function Zo(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 gR(e){return/^(table|td|th)$/.test(fi(e))}function Sd(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const vR=/transform|translate|scale|rotate|perspective|filter/,yR=/paint|layout|strict|content/,la=e=>!!e&&e!=="none";let Nh;function Sh(e){const t=Dn(e)?Fn(e):e;return la(t.transform)||la(t.translate)||la(t.scale)||la(t.rotate)||la(t.perspective)||!Ch()&&(la(t.backdropFilter)||la(t.filter))||vR.test(t.willChange||"")||yR.test(t.contain||"")}function bR(e){let t=hs(e);for(;kr(t)&&!mi(t);){if(Sh(t))return t;if(Sd(t))return null;t=hs(t)}return null}function Ch(){return Nh==null&&(Nh=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nh}function mi(e){return/^(html|body|#document)$/.test(fi(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(fi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bb(e)&&e.host||er(e);return Bb(t)?t.host:t}function Vb(e){const t=hs(e);return mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:kr(t)&&Zo(t)?t:Vb(t)}function Jo(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Vb(e),i=a===((s=e.ownerDocument)==null?void 0:s.body),o=tn(a);if(i){const c=kh(o);return t.concat(o,o.visualViewport||[],Zo(a)?a:[],c&&n?Jo(c):[])}else return t.concat(a,Jo(a,[],n))}function kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qb(e){const t=Fn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=kr(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:s,c=yd(n)!==i||yd(s)!==o;return c&&(n=i,s=o),{width:n,height:s,$:c}}function Eh(e){return Dn(e)?e:e.contextElement}function hi(e){const t=Eh(e);if(!kr(t))return Zn(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:i}=qb(t);let o=(i?yd(n.width):n.width)/s,c=(i?yd(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const jR=Zn(0);function Hb(e){const t=tn(e);return!Ch()||!t.visualViewport?jR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function ca(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Eh(e);let o=Zn(1);t&&(s?Dn(s)&&(o=hi(s)):o=hi(e));const c=wR(i,n,s)?Hb(i):Zn(0);let d=(a.left+c.x)/o.x,u=(a.top+c.y)/o.y,h=a.width/o.x,m=a.height/o.y;if(i){const y=tn(i),g=s&&Dn(s)?tn(s):s;let j=y,v=kh(j);for(;v&&s&&g!==j;){const w=hi(v),b=v.getBoundingClientRect(),p=Fn(v),x=b.left+(v.clientLeft+parseFloat(p.paddingLeft))*w.x,N=b.top+(v.clientTop+parseFloat(p.paddingTop))*w.y;d*=w.x,u*=w.y,h*=w.x,m*=w.y,d+=x,u+=N,j=tn(v),v=kh(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:ca(er(e)).left+n}function Wb(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 NR(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const i=a==="fixed",o=er(s),c=t?Sd(t.floating):!1;if(s===o||c&&i)return n;let d={scrollLeft:0,scrollTop:0},u=Zn(1);const h=Zn(0),m=kr(s);if((m||!m&&!i)&&((fi(s)!=="body"||Zo(o))&&(d=Cd(s)),m)){const g=ca(s);u=hi(s),h.x=g.x+s.clientLeft,h.y=g.y+s.clientTop}const y=o&&!m&&!i?Wb(o,d):Zn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+h.x+y.x,y:n.y*u.y-d.scrollTop*u.y+h.y+y.y}}function SR(e){return Array.from(e.getClientRects())}function CR(e){const t=er(e),n=Cd(e),s=e.ownerDocument.body,a=en(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=en(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+kd(e);const c=-n.scrollTop;return Fn(s).direction==="rtl"&&(o+=en(t.clientWidth,s.clientWidth)-a),{width:a,height:i,x:o,y:c}}const Kb=25;function kR(e,t){const n=tn(e),s=er(e),a=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,c=0,d=0;if(a){i=a.width,o=a.height;const h=Ch();(!h||h&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}const u=kd(s);if(u<=0){const h=s.ownerDocument,m=h.body,y=getComputedStyle(m),g=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,j=Math.abs(s.clientWidth-m.clientWidth-g);j<=Kb&&(i-=j)}else u<=Kb&&(i+=u);return{width:i,height:o,x:c,y:d}}function ER(e,t){const n=ca(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,i=kr(e)?hi(e):Zn(1),o=e.clientWidth*i.x,c=e.clientHeight*i.y,d=a*i.x,u=s*i.y;return{width:o,height:c,x:d,y:u}}function Qb(e,t,n){let s;if(t==="viewport")s=kR(e,n);else if(t==="document")s=CR(er(e));else if(Dn(t))s=ER(t,n);else{const a=Hb(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return wd(s)}function Gb(e,t){const n=hs(e);return n===t||!Dn(n)||mi(n)?!1:Fn(n).position==="fixed"||Gb(n,t)}function _R(e,t){const n=t.get(e);if(n)return n;let s=Jo(e,[],!1).filter(c=>Dn(c)&&fi(c)!=="body"),a=null;const i=Fn(e).position==="fixed";let o=i?hs(e):e;for(;Dn(o)&&!mi(o);){const c=Fn(o),d=Sh(o);!d&&c.position==="fixed"&&(a=null),(i?!d&&!a:!d&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Zo(o)&&!d&&Gb(e,o))?s=s.filter(h=>h!==o):a=c,o=hs(o)}return t.set(e,s),s}function PR(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const o=[...n==="clippingAncestors"?Sd(t)?[]:_R(t,this._c):[].concat(n),s],c=Qb(t,o[0],a);let d=c.top,u=c.right,h=c.bottom,m=c.left;for(let y=1;y<o.length;y++){const g=Qb(t,o[y],a);d=en(g.top,d),u=ms(g.right,u),h=ms(g.bottom,h),m=en(g.left,m)}return{width:u-m,height:h-d,x:m,y:d}}function TR(e){const{width:t,height:n}=qb(e);return{width:t,height:n}}function RR(e,t,n){const s=kr(t),a=er(t),i=n==="fixed",o=ca(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const d=Zn(0);function u(){d.x=kd(a)}if(s||!s&&!i)if((fi(t)!=="body"||Zo(a))&&(c=Cd(t)),s){const g=ca(t,!0,i,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else a&&u();i&&!s&&a&&u();const h=a&&!s&&!i?Wb(a,c):Zn(0),m=o.left+c.scrollLeft-d.x-h.x,y=o.top+c.scrollTop-d.y-h.y;return{x:m,y,width:o.width,height:o.height}}function _h(e){return Fn(e).position==="static"}function Yb(e,t){if(!kr(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return er(e)===n&&(n=n.ownerDocument.body),n}function Xb(e,t){const n=tn(e);if(Sd(e))return n;if(!kr(e)){let a=hs(e);for(;a&&!mi(a);){if(Dn(a)&&!_h(a))return a;a=hs(a)}return n}let s=Yb(e,t);for(;s&&gR(s)&&_h(s);)s=Yb(s,t);return s&&mi(s)&&_h(s)&&!Sh(s)?n:s||bR(e)||n}const AR=async function(e){const t=this.getOffsetParent||Xb,n=this.getDimensions,s=await n(e.floating);return{reference:RR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function OR(e){return Fn(e).direction==="rtl"}const IR={convertOffsetParentRelativeRectToViewportRelativeRect:NR,getDocumentElement:er,getClippingRect:PR,getOffsetParent:Xb,getElementRects:AR,getClientRects:SR,getDimensions:TR,getScale:hi,isElement:Dn,isRTL:OR};function Zb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function MR(e,t){let n=null,s;const a=er(e);function i(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:h,top:m,width:y,height:g}=u;if(c||t(),!y||!g)return;const j=bd(m),v=bd(a.clientWidth-(h+y)),w=bd(a.clientHeight-(m+g)),b=bd(h),x={rootMargin:-j+"px "+-v+"px "+-w+"px "+-b+"px",threshold:en(0,ms(1,d))||1};let N=!0;function S(C){const _=C[0].intersectionRatio;if(_!==d){if(!N)return o();_?o(!1,_):s=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Zb(u,e.getBoundingClientRect())&&o(),N=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch(C){n=new IntersectionObserver(S,x)}n.observe(e)}return o(!0),i}function DR(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,u=Eh(e),h=a||i?[...u?Jo(u):[],...t?Jo(t):[]]:[];h.forEach(b=>{a&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const m=u&&c?MR(u,n):null;let y=-1,g=null;o&&(g=new ResizeObserver(b=>{let[p]=b;p&&p.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),u&&!d&&g.observe(u),t&&g.observe(t));let j,v=d?ca(e):null;d&&w();function w(){const b=ca(e);v&&!Zb(v,b)&&n(),v=b,j=requestAnimationFrame(w)}return n(),()=>{var b;h.forEach(p=>{a&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),m==null||m(),(b=g)==null||b.disconnect(),g=null,d&&cancelAnimationFrame(j)}}const FR=mR,LR=hR,$R=dR,zR=xR,UR=uR,Jb=cR,BR=pR,VR=(e,t,n)=>{const s=new Map,a={platform:IR,...n},i={...a.platform,_c:s};return lR(e,t,{...a,platform:i})};var qR=typeof document!="undefined",HR=function(){},Ed=qR?f.useLayoutEffect:HR;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 i=a[s];if(!(i==="_owner"&&e.$$typeof)&&!_d(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ej(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tj(e,t){const n=ej(e);return Math.round(t*n)/n}function Ph(e){const t=f.useRef(e);return Ed(()=>{t.current=e}),t}function WR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:i,floating:o}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,g]=f.useState(s);_d(y,s)||g(s);const[j,v]=f.useState(null),[w,b]=f.useState(null),p=f.useCallback(A=>{A!==C.current&&(C.current=A,v(A))},[]),x=f.useCallback(A=>{A!==_.current&&(_.current=A,b(A))},[]),N=i||j,S=o||w,C=f.useRef(null),_=f.useRef(null),k=f.useRef(h),R=d!=null,T=Ph(d),O=Ph(a),F=Ph(u),B=f.useCallback(()=>{if(!C.current||!_.current)return;const A={placement:t,strategy:n,middleware:y};O.current&&(A.platform=O.current),VR(C.current,_.current,A).then(D=>{const J={...D,isPositioned:F.current!==!1};I.current&&!_d(k.current,J)&&(k.current=J,Zs.flushSync(()=>{m(J)}))})},[y,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&&(_.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:_,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=tj(M.floating,h.x),J=tj(M.floating,h.y);return c?{...A,transform:"translate("+D+"px, "+J+"px)",...ej(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 KR=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?Jb({element:s.current,padding:a}).fn(n):{}:s?Jb({element:s,padding:a}).fn(n):{}}}},QR=(e,t)=>{const n=FR(e);return{name:n.name,fn:n.fn,options:[e,t]}},GR=(e,t)=>{const n=LR(e);return{name:n.name,fn:n.fn,options:[e,t]}},YR=(e,t)=>({fn:BR(e).fn,options:[e,t]}),XR=(e,t)=>{const n=$R(e);return{name:n.name,fn:n.fn,options:[e,t]}},ZR=(e,t)=>{const n=zR(e);return{name:n.name,fn:n.fn,options:[e,t]}},JR=(e,t)=>{const n=UR(e);return{name:n.name,fn:n.fn,options:[e,t]}},e4=(e,t)=>{const n=KR(e);return{name:n.name,fn:n.fn,options:[e,t]}};var t4="Arrow",nj=f.forwardRef((e,t)=>{const{children:n,width:s=10,height:a=5,...i}=e;return r.jsx(xe.svg,{...i,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"})})});nj.displayName=t4;var n4=nj;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 i=a[0];let o,c;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;o=u.inlineSize,c=u.blockSize}else o=e.offsetWidth,c=e.offsetHeight;n({width:o,height:c})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Th="Popper",[rj,Td]=Mt(Th),[r4,sj]=rj(Th),aj=e=>{const{__scopePopper:t,children:n}=e,[s,a]=f.useState(null);return r.jsx(r4,{scope:t,anchor:s,onAnchorChange:a,children:n})};aj.displayName=Th;var ij="PopperAnchor",oj=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...a}=e,i=sj(ij,n),o=f.useRef(null),c=Me(t,o),d=f.useRef(null);return f.useEffect(()=>{const u=d.current;d.current=(s==null?void 0:s.current)||o.current,u!==d.current&&i.onAnchorChange(d.current)}),s?null:r.jsx(xe.div,{...a,ref:c})});oj.displayName=ij;var Rh="PopperContent",[s4,a4]=rj(Rh),lj=f.forwardRef((e,t)=>{var X,je,L,me,Ce,Ee,Be,q;const{__scopePopper:n,side:s="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:g="optimized",onPlaced:j,...v}=e,w=sj(Rh,n),[b,p]=f.useState(null),x=Me(t,Oe=>p(Oe)),[N,S]=f.useState(null),C=Pd(N),_=(X=C==null?void 0:C.width)!=null?X:0,k=(je=C==null?void 0:C.height)!=null?je:0,R=s+(i!=="center"?"-"+i:""),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(o4),altBoundary:F},{refs:I,floatingStyles:se,placement:M,isPositioned:Z,middlewareData:A}=WR({strategy:"fixed",placement:R,whileElementsMounted:(...Oe)=>DR(...Oe,{animationFrame:g==="always"}),elements:{reference:w.anchor},middleware:[QR({mainAxis:a+k,alignmentAxis:o}),d&&GR({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?YR():void 0,...B}),d&&XR({...B}),ZR({...B,apply:({elements:Oe,rects:Ve,availableWidth:Wt,availableHeight:Rs})=>{const{width:$i,height:Sa}=Ve.reference,ln=Oe.floating.style;ln.setProperty("--radix-popper-available-width",`${Wt}px`),ln.setProperty("--radix-popper-available-height",`${Rs}px`),ln.setProperty("--radix-popper-anchor-width",`${$i}px`),ln.setProperty("--radix-popper-anchor-height",`${Sa}px`)}}),N&&e4({element:N,padding:c}),l4({arrowWidth:_,arrowHeight:k}),y&&JR({strategy:"referenceHidden",...B})]}),[D,J]=uj(M),pe=gn(j);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,W=((Ce=A.arrow)==null?void 0:Ce.centerOffset)!==0,[ie,Se]=f.useState();return gt(()=>{b&&Se(window.getComputedStyle(b).zIndex)},[b]),r.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(Ee=A.transformOrigin)==null?void 0:Ee.x,(Be=A.transformOrigin)==null?void 0:Be.y].join(" "),...((q=A.hide)==null?void 0:q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(s4,{scope:n,placedSide:D,onArrowChange:S,arrowX:P,arrowY:z,shouldHideArrow:W,children:r.jsx(xe.div,{"data-side":D,"data-align":J,...v,ref:x,style:{...v.style,animation:Z?void 0:"none"}})})})});lj.displayName=Rh;var cj="PopperArrow",i4={top:"bottom",right:"left",bottom:"top",left:"right"},dj=f.forwardRef(function(t,n){const{__scopePopper:s,...a}=t,i=a4(cj,s),o=i4[i.placedSide];return r.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:r.jsx(n4,{...a,ref:n,style:{...a.style,display:"block"}})})});dj.displayName=cj;function o4(e){return e!==null}var l4=e=>({name:"transformOrigin",options:e,fn(t){var w,b,p,x,N;const{placement:n,rects:s,middlewareData:a}=t,o=((w=a.arrow)==null?void 0:w.centerOffset)!==0,c=o?0:e.arrowWidth,d=o?0:e.arrowHeight,[u,h]=uj(n),m={start:"0%",center:"50%",end:"100%"}[h],y=((p=(b=a.arrow)==null?void 0:b.x)!=null?p:0)+c/2,g=((N=(x=a.arrow)==null?void 0:x.y)!=null?N:0)+d/2;let j="",v="";return u==="bottom"?(j=o?m:`${y}px`,v=`${-d}px`):u==="top"?(j=o?m:`${y}px`,v=`${s.floating.height+d}px`):u==="right"?(j=`${-d}px`,v=o?m:`${g}px`):u==="left"&&(j=`${s.floating.width+d}px`,v=o?m:`${g}px`),{data:{x:j,y:v}}}});function uj(e){const[t,n="center"]=e.split("-");return[t,n]}var fj=aj,mj=oj,hj=lj,pj=dj,c4=Symbol("radix.slottable");function d4(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=c4,t}var[Rd]=Mt("Tooltip",[Td]),Ad=Td(),xj="TooltipProvider",u4=700,Ah="tooltip.open",[f4,Oh]=Rd(xj),gj=e=>{const{__scopeTooltip:t,delayDuration:n=u4,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:i}=e,o=f.useRef(!0),c=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),r.jsx(f4,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(d.current),o.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>o.current=!0,s)},[s]),isPointerInTransitRef:c,onPointerInTransitChange:f.useCallback(u=>{c.current=u},[]),disableHoverableContent:a,children:i})};gj.displayName=xj;var el="Tooltip",[m4,tl]=Rd(el),vj=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:c}=e,d=Oh(el,e.__scopeTooltip),u=Ad(t),[h,m]=f.useState(null),y=Mn(),g=f.useRef(0),j=o!=null?o:d.disableHoverableContent,v=c!=null?c:d.delayDuration,w=f.useRef(!1),[b,p]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:_=>{_?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ah))):d.onClose(),i==null||i(_)},caller:el}),x=f.useMemo(()=>b?w.current?"delayed-open":"instant-open":"closed",[b]),N=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w.current=!1,p(!0)},[p]),S=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,p(!1)},[p]),C=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,p(!0),g.current=0},v)},[v,p]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),r.jsx(fj,{...u,children:r.jsx(m4,{scope:t,contentId:y,open:b,stateAttribute:x,trigger:h,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?C():N()},[d.isOpenDelayedRef,C,N]),onTriggerLeave:f.useCallback(()=>{j?S():(window.clearTimeout(g.current),g.current=0)},[S,j]),onOpen:N,onClose:S,disableHoverableContent:j,children:n})})};vj.displayName=el;var Ih="TooltipTrigger",yj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=tl(Ih,n),i=Oh(Ih,n),o=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(mj,{asChild:!0,...o,children:r.jsx(xe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:d,onPointerMove:he(e.onPointerMove,y=>{y.pointerType!=="touch"&&!h.current&&!i.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)})})});yj.displayName=Ih;var Mh="TooltipPortal",[h4,p4]=Rd(Mh,{forceMount:void 0}),bj=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:a}=e,i=tl(Mh,t);return r.jsx(h4,{scope:t,forceMount:n,children:r.jsx(Rn,{present:n||i.open,children:r.jsx(Vo,{asChild:!0,container:a,children:s})})})};bj.displayName=Mh;var pi="TooltipContent",jj=f.forwardRef((e,t)=>{const n=p4(pi,e.__scopeTooltip),{forceMount:s=n.forceMount,side:a="top",...i}=e,o=tl(pi,e.__scopeTooltip);return r.jsx(Rn,{present:s||o.open,children:o.disableHoverableContent?r.jsx(wj,{side:a,...i,ref:t}):r.jsx(x4,{side:a,...i,ref:t})})}),x4=f.forwardRef((e,t)=>{const n=tl(pi,e.__scopeTooltip),s=Oh(pi,e.__scopeTooltip),a=f.useRef(null),i=Me(t,a),[o,c]=f.useState(null),{trigger:d,onClose:u}=n,h=a.current,{onPointerInTransitChange:m}=s,y=f.useCallback(()=>{c(null),m(!1)},[m]),g=f.useCallback((j,v)=>{const w=j.currentTarget,b={x:j.clientX,y:j.clientY},p=j4(b,w.getBoundingClientRect()),x=w4(b,p),N=N4(v.getBoundingClientRect()),S=C4([...x,...N]);c(S),m(!0)},[m]);return f.useEffect(()=>()=>y(),[y]),f.useEffect(()=>{if(d&&h){const j=w=>g(w,h),v=w=>g(w,d);return d.addEventListener("pointerleave",j),h.addEventListener("pointerleave",v),()=>{d.removeEventListener("pointerleave",j),h.removeEventListener("pointerleave",v)}}},[d,h,g,y]),f.useEffect(()=>{if(o){const j=v=>{const w=v.target,b={x:v.clientX,y:v.clientY},p=(d==null?void 0:d.contains(w))||(h==null?void 0:h.contains(w)),x=!S4(b,o);p?y():x&&(y(),u())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[d,h,o,u,y]),r.jsx(wj,{...e,ref:i})}),[g4,v4]=Rd(el,{isInside:!1}),y4=d4("TooltipContent"),wj=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...c}=e,d=tl(pi,n),u=Ad(n),{onClose:h}=d;return f.useEffect(()=>(document.addEventListener(Ah,h),()=>document.removeEventListener(Ah,h)),[h]),f.useEffect(()=>{if(d.trigger){const m=y=>{const g=y.target;g!=null&&g.contains(d.trigger)&&h()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,h]),r.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:m=>m.preventDefault(),onDismiss:h,children:r.jsxs(hj,{"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(y4,{children:s}),r.jsx(g4,{scope:n,isInside:!0,children:r.jsx(V_,{id:d.contentId,role:"tooltip",children:a||s})})]})})});jj.displayName=pi;var Nj="TooltipArrow",b4=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,a=Ad(n);return v4(Nj,n).isInside?null:r.jsx(pj,{...a,...s,ref:t})});b4.displayName=Nj;function j4(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,s,a,i)){case i:return"left";case a:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function w4(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 N4(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 S4(e,t){const{x:n,y:s}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const c=t[i],d=t[o],u=c.x,h=c.y,m=d.x,y=d.y;h>s!=y>s&&n<(m-u)*(s-h)/(y-h)+u&&(a=!a)}return a}function C4(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),k4(t)}function k4(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 i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.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 i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.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 E4=gj,_4=vj,P4=yj,T4=bj,Sj=jj;const Cj=E4,R4=_4,A4=P4,kj=f.forwardRef(({className:e,sideOffset:t=4,...n},s)=>r.jsx(T4,{container:Xo(),children:r.jsx(Sj,{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})}));kj.displayName=Sj.displayName;const Ej=f.createContext(void 0);function O4({children:e}){const t=mt(),n=!!t.isProInstalled,s=!!t.isProActive,a=n?s?"pro-active":"pro-no-license":"free";return r.jsx(Ej.Provider,{value:{isProInstalled:n,isProLicenseActive:s,proState:a},children:e})}function Od(){const e=f.useContext(Ej);if(!e)throw new Error("usePro must be used within ProProvider");return e}var I4=Symbol.for("react.lazy"),Id=Dl[" use ".trim().toString()];function M4(e){return typeof e=="object"&&e!==null&&"then"in e}function _j(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===I4&&"_payload"in e&&M4(e._payload)}function Dh(e){const t=D4(e),n=f.forwardRef((s,a)=>{let{children:i,...o}=s;_j(i)&&typeof Id=="function"&&(i=Id(i._payload));const c=f.Children.toArray(i),d=c.find(L4);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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var da=Dh("Slot");function D4(e){const t=f.forwardRef((n,s)=>{let{children:a,...i}=n;if(_j(a)&&typeof Id=="function"&&(a=Id(a._payload)),f.isValidElement(a)){const o=z4(a),c=$4(i,a.props);return a.type!==f.Fragment&&(c.ref=s?si(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F4=Symbol("radix.slottable");function L4(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F4}function $4(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function z4(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 Fh=768;function U4(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Fh-1}px)`),s=()=>{t(window.innerWidth<Fh)};return n.addEventListener("change",s),t(window.innerWidth<Fh),()=>n.removeEventListener("change",s)},[]),!!e}const Lh=ai("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},i)=>{const o=s?da:"button";return r.jsx(o,{className:V(Lh({variant:t,size:n,className:e})),ref:i,...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 B4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V4=B4.reduce((e,t)=>{const n=Dh(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),q4="Separator",Pj="horizontal",H4=["horizontal","vertical"],Tj=f.forwardRef((e,t)=>{const{decorative:n,orientation:s=Pj,...a}=e,i=W4(s)?s:Pj,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return r.jsx(V4.div,{"data-orientation":i,...c,...a,ref:t})});Tj.displayName=q4;function W4(e){return H4.includes(e)}var Rj=Tj;const nl=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...s},a)=>r.jsx(Rj,{ref:a,decorative:n,orientation:t,className:V("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));nl.displayName=Rj.displayName;var $h="focusScope.autoFocusOnMount",zh="focusScope.autoFocusOnUnmount",Aj={bubbles:!1,cancelable:!0},K4="FocusScope",Uh=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[c,d]=f.useState(null),u=gn(a),h=gn(i),m=f.useRef(null),y=Me(t,v=>d(v)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(s){let v=function(x){if(g.paused||!c)return;const N=x.target;c.contains(N)?m.current=N:ps(m.current,{select:!0})},w=function(x){if(g.paused||!c)return;const N=x.relatedTarget;N!==null&&(c.contains(N)||ps(m.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&ps(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const p=new MutationObserver(b);return c&&p.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),p.disconnect()}}},[s,c,g.paused]),f.useEffect(()=>{if(c){Mj.add(g);const v=document.activeElement;if(!c.contains(v)){const b=new CustomEvent($h,Aj);c.addEventListener($h,u),c.dispatchEvent(b),b.defaultPrevented||(Q4(J4(Oj(c)),{select:!0}),document.activeElement===v&&ps(c))}return()=>{c.removeEventListener($h,u),setTimeout(()=>{const b=new CustomEvent(zh,Aj);c.addEventListener(zh,h),c.dispatchEvent(b),b.defaultPrevented||ps(v!=null?v:document.body,{select:!0}),c.removeEventListener(zh,h),Mj.remove(g)},0)}}},[c,u,h,g]);const j=f.useCallback(v=>{if(!n&&!s||g.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(w&&b){const p=v.currentTarget,[x,N]=G4(p);x&&N?!v.shiftKey&&b===N?(v.preventDefault(),n&&ps(x,{select:!0})):v.shiftKey&&b===x&&(v.preventDefault(),n&&ps(N,{select:!0})):b===p&&v.preventDefault()}},[n,s,g.paused]);return r.jsx(xe.div,{tabIndex:-1,...o,ref:y,onKeyDown:j})});Uh.displayName=K4;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 G4(e){const t=Oj(e),n=Ij(t,e),s=Ij(t.reverse(),e);return[n,s]}function Oj(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 Ij(e,t){for(const n of e)if(!Y4(n,{upTo:t}))return n}function Y4(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 X4(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&&X4(e)&&t&&e.select()}}var Mj=Z4();function Z4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dj(e,t),e.unshift(t)},remove(t){var n;e=Dj(e,t),(n=e[0])==null||n.resume()}}}function Dj(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function J4(e){return e.filter(t=>t.tagName!=="A")}var Bh=0;function Fj(){f.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:Lj()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:Lj()),Bh++,()=>{Bh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),Bh--}},[])}function Lj(){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 tr=function(){return tr=Object.assign||function(t){for(var n,s=1,a=arguments.length;s<a;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},tr.apply(this,arguments)};function $j(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 eA(e,t,n){if(n||arguments.length===2)for(var s=0,a=t.length,i;s<a;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Md="right-scroll-bar-position",Dd="width-before-scroll-bar",tA="with-scroll-bars-hidden",nA="--removed-body-scroll-bar-size";function Vh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rA(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 sA=typeof window!="undefined"?f.useLayoutEffect:f.useEffect,zj=new WeakMap;function aA(e,t){var n=rA(null,function(s){return e.forEach(function(a){return Vh(a,s)})});return sA(function(){var s=zj.get(n);if(s){var a=new Set(s),i=new Set(e),o=n.current;a.forEach(function(c){i.has(c)||Vh(c,null)}),i.forEach(function(c){a.has(c)||Vh(c,o)})}zj.set(n,e)},[e]),n}function iA(e){return e}function oA(e,t){t===void 0&&(t=iA);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(i){var o=t(i,s);return n.push(o),function(){n=n.filter(function(c){return c!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){s=!0;var o=[];if(n.length){var c=n;n=[],c.forEach(i),o=n}var d=function(){var h=o;o=[],h.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(h){o.push(h),u()},filter:function(h){return o=o.filter(h),n}}}};return a}function lA(e){e===void 0&&(e={});var t=oA(null);return t.options=tr({async:!0,ssr:!1},e),t}var Uj=function(e){var t=e.sideCar,n=$j(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,tr({},n))};Uj.isSideCarExport=!0;function cA(e,t){return e.useMedium(t),Uj}var Bj=lA(),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],i=s[1],o=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,y=e.sideCar,g=e.noRelative,j=e.noIsolation,v=e.inert,w=e.allowPinchZoom,b=e.as,p=b===void 0?"div":b,x=e.gapMode,N=$j(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,C=aA([n,t]),_=tr(tr({},N),a);return f.createElement(f.Fragment,null,h&&f.createElement(S,{sideCar:Bj,removeScrollBar:u,shards:m,noRelative:g,noIsolation:j,inert:v,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:x}),o?f.cloneElement(f.Children.only(c),tr(tr({},_),{ref:C})):f.createElement(p,tr({},_,{className:d,ref:C}),c))});Fd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fd.classNames={fullWidth:Dd,zeroRight:Md};var dA=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function uA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dA();return t&&e.setAttribute("nonce",t),e}function fA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uA())&&(fA(t,n),mA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pA=function(){var e=hA();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vj=function(){var e=pA(),t=function(n){var s=n.styles,a=n.dynamic;return e(s,a),null};return t},xA={left:0,top:0,right:0,gap:0},Hh=function(e){return parseInt(e||"",10)||0},gA=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[Hh(n),Hh(s),Hh(a)]},vA=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return xA;var t=gA(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])}},yA=Vj(),xi="data-scroll-locked",bA=function(e,t,n,s){var a=e.left,i=e.top,o=e.right,c=e.gap;return n===void 0&&(n="margin"),` |
| 431 |
.`.concat(tA,` { |
| 432 |
overflow: hidden `).concat(s,`; |
| 433 |
padding-right: `).concat(c,"px ").concat(s,`; |
| 434 |
} |
| 435 |
body[`).concat(xi,`] { |
| 436 |
overflow: hidden `).concat(s,`; |
| 437 |
overscroll-behavior: contain; |
| 438 |
`).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` |
| 439 |
padding-left: `.concat(a,`px; |
| 440 |
padding-top: `).concat(i,`px; |
| 441 |
padding-right: `).concat(o,`px; |
| 442 |
margin-left:0; |
| 443 |
margin-top:0; |
| 444 |
margin-right: `).concat(c,"px ").concat(s,`; |
| 445 |
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(s,";")].filter(Boolean).join(""),` |
| 446 |
} |
| 447 |
|
| 448 |
.`).concat(Md,` { |
| 449 |
right: `).concat(c,"px ").concat(s,`; |
| 450 |
} |
| 451 |
|
| 452 |
.`).concat(Dd,` { |
| 453 |
margin-right: `).concat(c,"px ").concat(s,`; |
| 454 |
} |
| 455 |
|
| 456 |
.`).concat(Md," .").concat(Md,` { |
| 457 |
right: 0 `).concat(s,`; |
| 458 |
} |
| 459 |
|
| 460 |
.`).concat(Dd," .").concat(Dd,` { |
| 461 |
margin-right: 0 `).concat(s,`; |
| 462 |
} |
| 463 |
|
| 464 |
body[`).concat(xi,`] { |
| 465 |
`).concat(nA,": ").concat(c,`px; |
| 466 |
} |
| 467 |
`)},qj=function(){var e=parseInt(document.body.getAttribute(xi)||"0",10);return isFinite(e)?e:0},jA=function(){f.useEffect(function(){return document.body.setAttribute(xi,(qj()+1).toString()),function(){var e=qj()-1;e<=0?document.body.removeAttribute(xi):document.body.setAttribute(xi,e.toString())}},[])},wA=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;jA();var i=f.useMemo(function(){return vA(a)},[a]);return f.createElement(yA,{styles:bA(i,!t,a,n?"":"!important")})},Wh=!1;if(typeof window!="undefined")try{var Ld=Object.defineProperty({},"passive",{get:function(){return Wh=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch(e){Wh=!1}var gi=Wh?{passive:!1}:!1,NA=function(e){return e.tagName==="TEXTAREA"},Hj=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!NA(e)&&n[t]==="visible")},SA=function(e){return Hj(e,"overflowY")},CA=function(e){return Hj(e,"overflowX")},Wj=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot!="undefined"&&s instanceof ShadowRoot&&(s=s.host);var a=Kj(e,s);if(a){var i=Qj(e,s),o=i[1],c=i[2];if(o>c)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},kA=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},EA=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Kj=function(e,t){return e==="v"?SA(t):CA(t)},Qj=function(e,t){return e==="v"?kA(t):EA(t)},_A=function(e,t){return e==="h"&&t==="rtl"?-1:1},PA=function(e,t,n,s,a){var i=_A(e,window.getComputedStyle(t).direction),o=i*s,c=n.target,d=t.contains(c),u=!1,h=o>0,m=0,y=0;do{if(!c)break;var g=Qj(e,c),j=g[0],v=g[1],w=g[2],b=v-w-i*j;(j||b)&&Kj(e,c)&&(m+=b,y+=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(y)<1)&&(u=!0),u},$d=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gj=function(e){return[e.deltaX,e.deltaY]},Yj=function(e){return e&&"current"in e?e.current:e},TA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RA=function(e){return` |
| 468 |
.block-interactivity-`.concat(e,` {pointer-events: none;} |
| 469 |
.allow-interactivity-`).concat(e,` {pointer-events: all;} |
| 470 |
`)},AA=0,vi=[];function OA(e){var t=f.useRef([]),n=f.useRef([0,0]),s=f.useRef(),a=f.useState(AA++)[0],i=f.useState(Vj)[0],o=f.useRef(e);f.useEffect(function(){o.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=eA([e.lockRef.current],(e.shards||[]).map(Yj),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var b=$d(v),p=n.current,x="deltaX"in v?v.deltaX:p[0]-b[0],N="deltaY"in v?v.deltaY:p[1]-b[1],S,C=v.target,_=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in v&&_==="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=Wj(_,C);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=Wj(_,C)),!O)return!1;if(!s.current&&"changedTouches"in v&&(x||N)&&(s.current=S),!S)return!0;var F=s.current||S;return PA(F,w,v,F==="h"?x:N)},[]),d=f.useCallback(function(v){var w=v;if(!(!vi.length||vi[vi.length-1]!==i)){var b="deltaY"in w?Gj(w):$d(w),p=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&TA(S.delta,b)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var x=(o.current.shards||[]).map(Yj).filter(Boolean).filter(function(S){return S.contains(w.target)}),N=x.length>0?c(w,x[0]):!o.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),u=f.useCallback(function(v,w,b,p){var x={name:v,delta:w,target:b,should:p,shadowParent:IA(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),h=f.useCallback(function(v){n.current=$d(v),s.current=void 0},[]),m=f.useCallback(function(v){u(v.type,Gj(v),v.target,c(v,e.lockRef.current))},[]),y=f.useCallback(function(v){u(v.type,$d(v),v.target,c(v,e.lockRef.current))},[]);f.useEffect(function(){return vi.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",d,gi),document.addEventListener("touchmove",d,gi),document.addEventListener("touchstart",h,gi),function(){vi=vi.filter(function(v){return v!==i}),document.removeEventListener("wheel",d,gi),document.removeEventListener("touchmove",d,gi),document.removeEventListener("touchstart",h,gi)}},[]);var g=e.removeScrollBar,j=e.inert;return f.createElement(f.Fragment,null,j?f.createElement(i,{styles:RA(a)}):null,g?f.createElement(wA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function IA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const MA=cA(Bj,OA);var Kh=f.forwardRef(function(e,t){return f.createElement(Fd,tr({},e,{ref:t,sideCar:MA}))});Kh.classNames=Fd.classNames;var DA=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yi=new WeakMap,zd=new WeakMap,Ud={},Qh=0,Xj=function(e){return e&&(e.host||Xj(e.parentNode))},FA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Xj(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})},LA=function(e,t,n,s){var a=FA(t,Array.isArray(e)?e:[e]);Ud[n]||(Ud[n]=new WeakMap);var i=Ud[n],o=[],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(y){if(c.has(y))h(y);else try{var g=y.getAttribute(s),j=g!==null&&g!=="false",v=(yi.get(y)||0)+1,w=(i.get(y)||0)+1;yi.set(y,v),i.set(y,w),o.push(y),v===1&&j&&zd.set(y,!0),w===1&&y.setAttribute(n,"true"),j||y.setAttribute(s,"true")}catch(b){console.error("aria-hidden: cannot operate on ",y,b)}})};return h(t),c.clear(),Qh++,function(){o.forEach(function(m){var y=yi.get(m)-1,g=i.get(m)-1;yi.set(m,y),i.set(m,g),y||(zd.has(m)||m.removeAttribute(s),zd.delete(m)),g||m.removeAttribute(n)}),Qh--,Qh||(yi=new WeakMap,yi=new WeakMap,zd=new WeakMap,Ud={})}},Zj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=DA(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),LA(s,a,n,"aria-hidden")):function(){return null}};function $A(e){const t=zA(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(BA);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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function zA(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=qA(a),c=VA(i,a.props);return a.type!==f.Fragment&&(c.ref=s?si(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UA=Symbol("radix.slottable");function BA(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UA}function VA(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function qA(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",[Jj,ew]=Mt(Bd),[HA,Ln]=Jj(Bd),tw=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,c=f.useRef(null),d=f.useRef(null),[u,h]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:Bd});return r.jsx(HA,{scope:t,triggerRef:c,contentRef:d,contentId:Mn(),titleId:Mn(),descriptionId:Mn(),open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(m=>!m),[h]),modal:o,children:n})};tw.displayName=Bd;var nw="DialogTrigger",rw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(nw,n),i=Me(t,a.triggerRef);return r.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Xh(a.open),...s,ref:i,onClick:he(e.onClick,a.onOpenToggle)})});rw.displayName=nw;var Gh="DialogPortal",[WA,sw]=Jj(Gh,{forceMount:void 0}),aw=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:a}=e,i=Ln(Gh,t);return r.jsx(WA,{scope:t,forceMount:n,children:f.Children.map(s,o=>r.jsx(Rn,{present:n||i.open,children:r.jsx(Vo,{asChild:!0,container:a,children:o})}))})};aw.displayName=Gh;var Vd="DialogOverlay",iw=f.forwardRef((e,t)=>{const n=sw(Vd,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=Ln(Vd,e.__scopeDialog);return i.modal?r.jsx(Rn,{present:s||i.open,children:r.jsx(QA,{...a,ref:t})}):null});iw.displayName=Vd;var KA=$A("DialogOverlay.RemoveScroll"),QA=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(Vd,n);return r.jsx(Kh,{as:KA,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(xe.div,{"data-state":Xh(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ua="DialogContent",ow=f.forwardRef((e,t)=>{const n=sw(ua,e.__scopeDialog),{forceMount:s=n.forceMount,...a}=e,i=Ln(ua,e.__scopeDialog);return r.jsx(Rn,{present:s||i.open,children:i.modal?r.jsx(GA,{...a,ref:t}):r.jsx(YA,{...a,ref:t})})});ow.displayName=ua;var GA=f.forwardRef((e,t)=>{const n=Ln(ua,e.__scopeDialog),s=f.useRef(null),a=Me(t,n.contentRef,s);return f.useEffect(()=>{const i=s.current;if(i)return Zj(i)},[]),r.jsx(lw,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,c=o.button===0&&o.ctrlKey===!0;(o.button===2||c)&&i.preventDefault()}),onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault())})}),YA=f.forwardRef((e,t)=>{const n=Ln(ua,e.__scopeDialog),s=f.useRef(!1),a=f.useRef(!1);return r.jsx(lw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,c;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:i=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),lw=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,c=Ln(ua,n),d=f.useRef(null),u=Me(t,d);return Fj(),r.jsxs(r.Fragment,{children:[r.jsx(Uh,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:i,children:r.jsx(Bo,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Xh(c.open),...o,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(ZA,{titleId:c.titleId}),r.jsx(e5,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Yh="DialogTitle",cw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(Yh,n);return r.jsx(xe.h2,{id:a.titleId,...s,ref:t})});cw.displayName=Yh;var dw="DialogDescription",uw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(dw,n);return r.jsx(xe.p,{id:a.descriptionId,...s,ref:t})});uw.displayName=dw;var fw="DialogClose",mw=f.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,a=Ln(fw,n);return r.jsx(xe.button,{type:"button",...s,ref:t,onClick:he(e.onClick,()=>a.onOpenChange(!1))})});mw.displayName=fw;function Xh(e){return e?"open":"closed"}var hw="DialogTitleWarning",[XA,pw]=f_(hw,{contentName:ua,titleName:Yh,docsSlug:"dialog"}),ZA=({titleId:e})=>{const t=pw(hw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. |
| 471 |
|
| 472 |
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. |
| 473 |
|
| 474 |
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},JA="DialogDescriptionWarning",e5=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pw(JA).contentName}}.`;return f.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Zh=tw,t5=rw,Jh=aw,rl=iw,sl=ow,al=cw,il=uw,qd=mw;const n5=Zh,xw=({container:e,...t})=>r.jsx(Jh,{container:e!=null?e:Xo(),...t});xw.displayName="SheetPortal";const gw=f.forwardRef(({className:e,...t},n)=>r.jsx(rl,{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}));gw.displayName=rl.displayName;const r5=ai("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"}}),vw=f.forwardRef(({side:e="right",className:t,children:n,...s},a)=>r.jsxs(xw,{children:[r.jsx(gw,{}),r.jsxs(sl,{ref:a,className:V(r5({side:e}),t),...s,children:[n,r.jsxs(qd,{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"})]})]})]}));vw.displayName=sl.displayName;const s5=f.forwardRef(({className:e,...t},n)=>r.jsx(al,{ref:n,className:V("text-lg font-semibold text-foreground",e),...t}));s5.displayName=al.displayName;const a5=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));a5.displayName=il.displayName;function ae({className:e,...t}){return r.jsx("div",{className:V("animate-pulse rounded-md bg-muted",e),...t})}const i5="sidebar:state",o5=60*60*24*7,l5="16rem",c5="18rem",d5="3rem",u5="b",yw=f.createContext(null);function ol(){const e=f.useContext(yw);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const bw=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:s,style:a,children:i,...o},c)=>{const d=U4(),[u,h]=f.useState(!1),[m,y]=f.useState(e),g=t!=null?t:m,j=f.useCallback(p=>{const x=typeof p=="function"?p(g):p;n?n(x):y(x),document.cookie=`${i5}=${x}; path=/; max-age=${o5}`},[n,g]),v=f.useCallback(()=>d?h(p=>!p):j(p=>!p),[d,j,h]);f.useEffect(()=>{const p=x=>{x.key===u5&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[v]);const w=g?"expanded":"collapsed",b=f.useMemo(()=>({state:w,open:g,setOpen:j,isMobile:d,openMobile:u,setOpenMobile:h,toggleSidebar:v}),[w,g,j,d,u,h,v]);return r.jsx(yw.Provider,{value:b,children:r.jsx(Cj,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":l5,"--sidebar-width-icon":d5,...a},className:V("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",s),ref:c,...o,children:i})})})});bw.displayName="SidebarProvider";const jw=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:s,children:a,...i},o)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:h}=ol();return n==="none"?r.jsx("div",{className:V("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",s),ref:o,...i,children:a}):c?r.jsx(n5,{open:u,onOpenChange:h,...i,children:r.jsx(vw,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":c5},side:e,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):r.jsx("div",{ref:o,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),...i,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})})})});jw.displayName="Sidebar";const ww=f.forwardRef(({className:e,onClick:t,...n},s)=>{const{toggleSidebar:a}=ol();return r.jsxs(U,{ref:s,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:V("h-7 w-7",e),onClick:i=>{t==null||t(i),a()},...n,children:[r.jsx(EP,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ww.displayName="SidebarTrigger";const f5=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:s}=ol();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})});f5.displayName="SidebarRail";const m5=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}));m5.displayName="SidebarInset";const h5=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}));h5.displayName="SidebarInput";const Nw=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}));Nw.displayName="SidebarHeader";const Sw=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}));Sw.displayName="SidebarFooter";const p5=f.forwardRef(({className:e,...t},n)=>r.jsx(nl,{ref:n,"data-sidebar":"separator",className:V("mx-2 w-auto bg-sidebar-border",e),...t}));p5.displayName="SidebarSeparator";const Cw=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}));Cw.displayName="SidebarContent";const ep=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}));ep.displayName="SidebarGroup";const tp=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?da:"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})});tp.displayName="SidebarGroupLabel";const x5=f.forwardRef(({className:e,asChild:t=!1,...n},s)=>{const a=t?da:"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})});x5.displayName="SidebarGroupAction";const np=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,"data-sidebar":"group-content",className:V("w-full text-sm",e),...t}));np.displayName="SidebarGroupContent";const rp=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}));rp.displayName="SidebarMenu";const ll=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,"data-sidebar":"menu-item",className:V("group/menu-item relative",e),...t}));ll.displayName="SidebarMenuItem";const g5=ai("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:i,...o},c)=>{const d=e?da:"button",{isMobile:u,state:h}=ol(),m=r.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:V(g5({variant:n,size:s}),i),...o});return a?(typeof a=="string"&&(a={children:a}),r.jsxs(R4,{children:[r.jsx(A4,{asChild:!0,children:m}),r.jsx(kj,{side:"right",align:"center",hidden:h!=="collapsed"||u,...a})]})):m});cl.displayName="SidebarMenuButton";const v5=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...s},a)=>{const i=t?da:"button";return r.jsx(i,{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})});v5.displayName="SidebarMenuAction";const y5=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}));y5.displayName="SidebarMenuBadge";const b5=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}})]})});b5.displayName="SidebarMenuSkeleton";const j5=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}));j5.displayName="SidebarMenuSub";const w5=f.forwardRef(({...e},t)=>r.jsx("li",{ref:t,...e}));w5.displayName="SidebarMenuSubItem";const N5=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:s,...a},i)=>{const o=e?da:"a";return r.jsx(o,{ref:i,"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})});N5.displayName="SidebarMenuSubButton";const dl=f.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:s,...a},i)=>r.jsx(XE,{ref:i,to:s,className:({isActive:o,isPending:c})=>V(e,o&&t,c&&n),...a}));dl.displayName="NavLink";const S5=ai("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 Qe({className:e,variant:t,...n}){return r.jsx("div",{className:V(S5({variant:t}),e),...n})}const kw="double-opt-in",l=e=>$e.__(e,kw),sp=(e,t,n)=>$e._n(e,t,n,kw),re=(e,...t)=>$e.sprintf(e,...t),C5=[{title:l("Dashboard"),url:"/",icon:wP},{title:l("Opt-Ins"),url:"/optins",icon:On},{title:l("Forms"),url:"/forms",icon:ia},{title:l("Categories"),url:"/categories",icon:fh},{title:l("Settings"),url:"/settings",icon:dh},{title:l("Database"),url:"/database",icon:Wo},{title:l("Audit Log"),url:"/audit",icon:xd}],k5=[],E5={BarChart3:mP,LogOut:pb,UserPlus:yb,Plug:ch,Mail:On,FileText:ia,Tag:fh,Settings:dh,Palette:xb,Database:Wo,ScrollText:xd,Boxes:ii,Webhook:IP},ul={title:l("License"),url:"/license",icon:hb},fl={title:l("Addons"),url:"/addons",icon:ii};function _5(){var h;const{state:e}=ol(),t=e==="collapsed",n=cs(),{isProInstalled:s,isProLicenseActive:a}=Od(),i=mt(),{data:o}=Ne({queryKey:["addons-manifest"],queryFn:()=>G("/addons"),enabled:s}),d=[...((h=o==null?void 0:o.addons)!=null?h:[]).filter(m=>{var y;return m.available&&Array.isArray((y=m.ui)==null?void 0:y.sidebar)}).flatMap(m=>{var y;return((y=m.ui.sidebar)!=null?y:[]).map(g=>{var j;return{title:g.title,url:g.url,icon:(j=E5[g.icon])!=null?j:ch}})}),...k5],u=m=>m==="/"?n.pathname==="/":n.pathname.startsWith(m);return r.jsxs(jw,{collapsible:"icon",children:[r.jsx(Nw,{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",i.version]})]})]})}),r.jsxs(Cw,{children:[r.jsxs(ep,{children:[r.jsx(tp,{children:l("Navigation")}),r.jsx(np,{children:r.jsx(rp,{children:C5.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(ep,{children:[r.jsx(tp,{children:l("Pro Features")}),r.jsx(np,{children:r.jsxs(rp,{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(Qe,{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(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(Sw,{children:[(i.supportUrl||i.feedbackUrl)&&r.jsxs("div",{className:"flex flex-col gap-1 px-2 pb-1",children:[i.supportUrl&&r.jsxs("a",{href:i.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(NP,{className:"h-3.5 w-3.5 shrink-0"}),!t&&l("Support")]}),i.feedbackUrl&&r.jsxs("a",{href:i.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(kP,{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 Ew=f.forwardRef(({...e},t)=>r.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ew.displayName="Breadcrumb";const _w=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}));_w.displayName="BreadcrumbList";const ap=f.forwardRef(({className:e,...t},n)=>r.jsx("li",{ref:n,className:V("inline-flex items-center gap-1.5",e),...t}));ap.displayName="BreadcrumbItem";const Pw=f.forwardRef(({asChild:e,className:t,...n},s)=>{const a=e?da:"a";return r.jsx(a,{ref:s,className:V("transition-colors hover:text-foreground",t),...n})});Pw.displayName="BreadcrumbLink";const Tw=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}));Tw.displayName="BreadcrumbPage";const Rw=({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(ih,{})});Rw.displayName="BreadcrumbSeparator";const ip={"/":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 P5(e){let t=e;for(;t!=="";){if(ip[t])return ip[t];t=t.slice(0,t.lastIndexOf("/"))}return ip[e]||l("Page")}function T5(){const e=cs(),t=P5(e.pathname);return r.jsx(bw,{children:r.jsxs("div",{className:"min-h-[calc(100vh-var(--wp-admin--admin-bar--height,32px))] flex w-full",children:[r.jsx(_5,{}),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(ww,{}),r.jsx(Ew,{children:r.jsxs(_w,{children:[r.jsx(ap,{children:r.jsx(Pw,{href:"#/",children:"Double Opt-In"})}),r.jsx(Rw,{}),r.jsx(ap,{children:r.jsx(Tw,{children:t})})]})})]}),r.jsx("main",{className:"flex-1 overflow-auto p-4 md:p-6",children:r.jsx(LE,{})})]})]})})}function Er({children:e,addonId:t,featureName:n}){var w,b;const s=Tn(),{data:a,isLoading:i}=Ne({queryKey:["addons-manifest"],queryFn:()=>G("/addons")}),o=a==null?void 0:a.addons.find(p=>p.id===t),c=(o==null?void 0:o.available)===!0,{data:d}=Ne({queryKey:["addons-catalog"],queryFn:()=>G("/addons/catalog"),enabled:!i&&!c});if(i)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=(b=d==null?void 0:d.hasBundleLicense)!=null?b:!1;let y,g,j,v=ii;return h==="not_installed"?(y=re(l("%s requires the %s addon"),n,n),g=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")},v=ii):h==="inactive"?(y=re(l("%s addon is installed but inactive"),n),g=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")},v=Qo):m?(y=re(l("%s addon is not available"),n),g=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")},v=ii):(y=re(l("%s is included in Pro"),n),g=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")},v=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(v,{className:"h-6 w-6 text-muted-foreground"})}),r.jsx("h1",{className:"text-lg font-semibold text-foreground mb-2",children:y}),r.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:g}),r.jsx(U,{onClick:j.onClick,className:"w-full",children:j.label})]})})}function $n({id:e,data:t}){const n=f.useSyncExternalStore(E0,()=>_0(e),()=>[]);return n.length===0?null:r.jsx(r.Fragment,{children:n.map(({name:s,Component:a})=>r.jsx(R5,{name:s,mountId:e,children:r.jsx(a,{data:t})},s))})}class R5 extends f.Component{constructor(){super(...arguments);Bi(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 A5=f.forwardRef(({className:e,...t},n)=>r.jsx("div",{ref:n,className:V("flex items-center p-6 pt-0",e),...t}));A5.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 O5=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}));O5.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 I5=f.forwardRef(({className:e,...t},n)=>r.jsx("caption",{ref:n,className:V("mt-4 text-sm text-muted-foreground",e),...t}));I5.displayName="TableCaption";const op=["setup-status"],lp=["setup"];async function M5(){return(await G("/setup")).data}function D5(e,t){return G("/setup/step",{method:"POST",body:JSON.stringify({step:e,data:t})})}function F5(){return G("/setup/test-mail",{method:"POST"})}function L5(){return G("/setup/finish",{method:"POST"})}function $5(){return G("/setup/skip",{method:"POST"})}function z5(){return G("/setup/restart",{method:"POST"})}function U5(){return Ne({queryKey:op,queryFn:()=>{var e;return(e=mt().setup)!=null?e:null},initialData:()=>{var e;return(e=mt().setup)!=null?e:null},staleTime:1/0})}function B5(){const{data:e}=U5();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(mh,{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(Ho,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})})]})})}function V5(){const e=Tn(),t=Ke(),n=ke({mutationFn:z5,onSuccess:()=>{t.setQueryData(op,{status:"pending",step:0,steps:4}),t.removeQueries({queryKey:lp}),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(mh,{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 q5({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(Pt,{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(sp("%d confirmation mail could not be sent. Show it","%d confirmation mails could not be sent. Show them",e.mailFailed),e.mailFailed),r.jsx(Ho,{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(Ho,{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:[t_("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(Ho,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})})]})]})]})})}function H5(){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 W5({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,i)=>r.jsx(le,{children:r.jsx(ae,{className:"h-3 w-full"})},i))},s))})]})}function cp(e){return e.toLocaleString()}function K5(){var c;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,i=n==null?void 0:n.data,o=a?[{label:l("Total Opt-Ins"),value:cp(a.totalOptins),icon:On,change:a.confirmed+a.pending>0?l("Active"):l("No data")},{label:l("Confirmed"),value:cp(a.confirmed),icon:aa,change:re(l("%s%% conversion"),a.conversionRate)},{label:l("Pending"),value:cp(a.pending),icon:Xn,change:re(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($n,{id:"dashboard.alert"}),r.jsx(B5,{}),r.jsx(q5,{report:a==null?void 0:a.stuckOptins}),r.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:t?Array.from({length:3}).map((d,u)=>r.jsx(H5,{},u)):o.map(d=>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(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(AP,{className:"h-3 w-3 text-success"}),d.change]})]})]})},d.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(W5,{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:((c=a==null?void 0:a.recentOptins)!=null?c:[]).map(d=>r.jsxs(De,{children:[r.jsx(le,{className:"text-sm",children:d.email}),r.jsx(le,{className:"text-muted-foreground text-xs",children:d.formName}),r.jsx(le,{children:r.jsx(Qe,{variant:d.confirmed?"success":"secondary",className:"text-xs",children:d.confirmed?l("Confirmed"):l("Pending")})}),r.jsx(le,{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(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((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))}):i?r.jsx("dl",{className:"space-y-2 text-sm",children:[[l("Version"),i.version],[l("Token Expiry"),i.tokenExpiry],[l("Retention"),i.retention],[l("Rate Limit"),i.rateLimit],[l("License"),typeof i.licenseStatus=="object"&&i.licenseStatus!==null?i.licenseStatus.isActive?l("Pro Active"):l("Inactive"):i.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(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(([d,u])=>r.jsx("li",{children:r.jsx(xt,{to:u,className:"text-primary hover:underline",children:d})},d))})})]})]})]})}function Hd(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 Wd="Checkbox",[Q5]=Mt(Wd),[G5,dp]=Q5(Wd);function Y5(e){const{__scopeCheckbox:t,checked:n,children:s,defaultChecked:a,disabled:i,form:o,name:c,onCheckedChange:d,required:u,value:h="on",internal_do_not_use_render:m}=e,[y,g]=Jt({prop:n,defaultProp:a!=null?a:!1,onChange:d,caller:Wd}),[j,v]=f.useState(null),[w,b]=f.useState(null),p=f.useRef(!1),x=j?!!o||!!j.closest("form"):!0,N={checked:y,disabled:i,setChecked:g,control:j,setControl:v,name:c,form:o,value:h,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:xs(a)?!1:a,isFormControl:x,bubbleInput:w,setBubbleInput:b};return r.jsx(G5,{scope:t,...N,children:X5(m)?m(N):s})}var Aw="CheckboxTrigger",Ow=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...s},a)=>{const{control:i,value:o,disabled:c,checked:d,required:u,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:y,isFormControl:g,bubbleInput:j}=dp(Aw,e),v=Me(a,h),w=f.useRef(d);return f.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const p=()=>m(w.current);return b.addEventListener("reset",p),()=>b.removeEventListener("reset",p)}},[i,m]),r.jsx(xe.button,{type:"button",role:"checkbox","aria-checked":xs(d)?"mixed":d,"aria-required":u,"data-state":Lw(d),"data-disabled":c?"":void 0,disabled:c,value:o,...s,ref:v,onKeyDown:he(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:he(n,b=>{m(p=>xs(p)?!0:!p),j&&g&&(y.current=b.isPropagationStopped(),y.current||b.stopPropagation())})})});Ow.displayName=Aw;var up=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:i,required:o,disabled:c,value:d,onCheckedChange:u,form:h,...m}=e;return r.jsx(Y5,{__scopeCheckbox:n,checked:a,defaultChecked:i,disabled:c,required:o,onCheckedChange:u,name:s,form:h,value:d,internal_do_not_use_render:({isFormControl:y})=>r.jsxs(r.Fragment,{children:[r.jsx(Ow,{...m,ref:t,__scopeCheckbox:n}),y&&r.jsx(Fw,{__scopeCheckbox:n})]})})});up.displayName=Wd;var Iw="CheckboxIndicator",Mw=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,i=dp(Iw,n);return r.jsx(Rn,{present:s||xs(i.checked)||i.checked===!0,children:r.jsx(xe.span,{"data-state":Lw(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});Mw.displayName=Iw;var Dw="CheckboxBubbleInput",Fw=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:c,disabled:d,name:u,value:h,form:m,bubbleInput:y,setBubbleInput:g}=dp(Dw,e),j=Me(n,g),v=Hd(i),w=Pd(s);f.useEffect(()=>{const p=y;if(!p)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,C=!a.current;if(v!==i&&S){const _=new Event("click",{bubbles:C});p.indeterminate=xs(i),S.call(p,xs(i)?!1:i),p.dispatchEvent(_)}},[y,v,i,a]);const b=f.useRef(xs(i)?!1:i);return r.jsx(xe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o!=null?o:b.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%)"}})});Fw.displayName=Dw;function X5(e){return typeof e=="function"}function xs(e){return e==="indeterminate"}function Lw(e){return xs(e)?"indeterminate":e?"checked":"unchecked"}const bi=f.forwardRef(({className:e,...t},n)=>r.jsx(up,{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(Mw,{className:V("flex items-center justify-center text-current"),children:r.jsx(ds,{className:"h-4 w-4"})})}));bi.displayName=up.displayName;function $w(e,[t,n]){return Math.min(n,Math.max(t,e))}var Z5=f.createContext(void 0);function ml(e){const t=f.useContext(Z5);return e||t||"ltr"}function J5(e){const t=eO(e),n=f.forwardRef((s,a)=>{const{children:i,...o}=s,c=f.Children.toArray(i),d=c.find(nO);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,{...o,ref:a,children:f.isValidElement(u)?f.cloneElement(u,void 0,h):null})}return r.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function eO(e){const t=f.forwardRef((n,s)=>{const{children:a,...i}=n;if(f.isValidElement(a)){const o=sO(a),c=rO(i,a.props);return a.type!==f.Fragment&&(c.ref=s?si(s,o):o),f.cloneElement(a,c)}return f.Children.count(a)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tO=Symbol("radix.slottable");function nO(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tO}function rO(e,t){const n={...t};for(const s in t){const a=e[s],i=t[s];/^on[A-Z]/.test(s)?a&&i?n[s]=(...c)=>{const d=i(...c);return a(...c),d}:a&&(n[s]=a):s==="style"?n[s]={...a,...i}:s==="className"&&(n[s]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function sO(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 aO=[" ","Enter","ArrowUp","ArrowDown"],iO=[" ","Enter"],fa="Select",[Kd,Qd,oO]=id(fa),[ji]=Mt(fa,[oO,Td]),Gd=Td(),[lO,gs]=ji(fa),[cO,dO]=ji(fa),zw=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:a,onOpenChange:i,value:o,defaultValue:c,onValueChange:d,dir:u,name:h,autoComplete:m,disabled:y,required:g,form:j}=e,v=Gd(t),[w,b]=f.useState(null),[p,x]=f.useState(null),[N,S]=f.useState(!1),C=ml(u),[_,k]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:i,caller:fa}),[R,T]=Jt({prop:o,defaultProp:c,onChange:d,caller:fa}),O=f.useRef(null),F=w?j||!!w.closest("form"):!0,[B,I]=f.useState(new Set),se=Array.from(B).map(M=>M.props.value).join(";");return r.jsx(fj,{...v,children:r.jsxs(lO,{required:g,scope:t,trigger:w,onTriggerChange:b,valueNode:p,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Mn(),value:R,onValueChange:T,open:_,onOpenChange:k,dir:C,triggerPointerDownPosRef:O,disabled:y,children:[r.jsx(Kd.Provider,{scope:t,children:r.jsx(cO,{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(d1,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:m,value:R,onChange:M=>T(M.target.value),disabled:y,form:j,children:[R===void 0?r.jsx("option",{value:""}):null,Array.from(B)]},se):null]})})};zw.displayName=fa;var Uw="SelectTrigger",Bw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...a}=e,i=Gd(n),o=gs(Uw,n),c=o.disabled||s,d=Me(t,o.onTriggerChange),u=Qd(n),h=f.useRef("touch"),[m,y,g]=f1(v=>{const w=u().filter(x=>!x.disabled),b=w.find(x=>x.value===o.value),p=m1(w,v,b);p!==void 0&&o.onValueChange(p.value)}),j=v=>{c||(o.onOpenChange(!0),g()),v&&(o.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return r.jsx(mj,{asChild:!0,...i,children:r.jsx(xe.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":u1(o.value)?"":void 0,...a,ref:d,onClick:he(a.onClick,v=>{v.currentTarget.focus(),h.current!=="mouse"&&j(v)}),onPointerDown:he(a.onPointerDown,v=>{h.current=v.pointerType;const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(j(v),v.preventDefault())}),onKeyDown:he(a.onKeyDown,v=>{const w=m.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&y(v.key),!(w&&v.key===" ")&&aO.includes(v.key)&&(j(),v.preventDefault())})})})});Bw.displayName=Uw;var Vw="SelectValue",qw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,children:i,placeholder:o="",...c}=e,d=gs(Vw,n),{onValueNodeHasChildrenChange:u}=d,h=i!==void 0,m=Me(t,d.onValueNodeChange);return gt(()=>{u(h)},[u,h]),r.jsx(xe.span,{...c,ref:m,style:{pointerEvents:"none"},children:u1(d.value)?r.jsx(r.Fragment,{children:o}):i})});qw.displayName=Vw;var uO="SelectIcon",Hw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...a}=e;return r.jsx(xe.span,{"aria-hidden":!0,...a,ref:t,children:s||"▼"})});Hw.displayName=uO;var fO="SelectPortal",Ww=e=>r.jsx(Vo,{asChild:!0,...e});Ww.displayName=fO;var ma="SelectContent",Kw=f.forwardRef((e,t)=>{const n=gs(ma,e.__scopeSelect),[s,a]=f.useState();if(gt(()=>{a(new DocumentFragment)},[]),!n.open){const i=s;return i?Zs.createPortal(r.jsx(Qw,{scope:e.__scopeSelect,children:r.jsx(Kd.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),i):null}return r.jsx(Gw,{...e,ref:t})});Kw.displayName=ma;var zn=10,[Qw,vs]=ji(ma),mO="SelectContentImpl",hO=J5("SelectContent.RemoveScroll"),Gw=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:g,sticky:j,hideWhenDetached:v,avoidCollisions:w,...b}=e,p=gs(ma,n),[x,N]=f.useState(null),[S,C]=f.useState(null),_=Me(t,X=>N(X)),[k,R]=f.useState(null),[T,O]=f.useState(null),F=Qd(n),[B,I]=f.useState(!1),se=f.useRef(!1);f.useEffect(()=>{if(x)return Zj(x)},[x]),Fj();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,q;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)-((q=(Be=D.current)==null?void 0:Be.y)!=null?q: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]=f1(X=>{const je=F().filter(Ce=>!Ce.disabled),L=je.find(Ce=>Ce.ref.current===document.activeElement),me=m1(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]),W=f.useCallback((X,je,L)=>{const me=!se.current&&!L;(p.value!==void 0&&p.value===je||me)&&O(X)},[p.value]),ie=s==="popper"?fp:Yw,Se=ie===fp?{side:c,sideOffset:d,align:u,alignOffset:h,arrowPadding:m,collisionBoundary:y,collisionPadding:g,sticky:j,hideWhenDetached:v,avoidCollisions:w}:{};return r.jsx(Qw,{scope:n,content:x,viewport:S,onViewportChange:C,itemRefCallback:P,selectedItem:k,onItemLeave:z,itemTextRefCallback:W,focusSelectedItem:Z,selectedItemText:T,position:s,isPositioned:B,searchRef:J,children:r.jsx(Kh,{as:hO,allowPinchZoom:!0,children:r.jsx(Uh,{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(Bo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:r.jsx(ie,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:X=>X.preventDefault(),...b,...Se,onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:he(b.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()}})})})})})})});Gw.displayName=mO;var pO="SelectItemAlignedPosition",Yw=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...a}=e,i=gs(ma,n),o=vs(ma,n),[c,d]=f.useState(null),[u,h]=f.useState(null),m=Me(t,_=>h(_)),y=Qd(n),g=f.useRef(!1),j=f.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:b,focusSelectedItem:p}=o,x=f.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&u&&v&&w&&b){const _=i.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),T=b.getBoundingClientRect();if(i.dir!=="rtl"){const Ce=T.left-k.left,Ee=R.left-Ce,Be=_.left-Ee,q=_.width+Be,Oe=Math.max(q,k.width),Ve=window.innerWidth-zn,Wt=$w(Ee,[zn,Math.max(zn,Ve-Oe)]);c.style.minWidth=q+"px",c.style.left=Wt+"px"}else{const Ce=k.right-T.right,Ee=window.innerWidth-R.right-Ce,Be=window.innerWidth-_.right-Ee,q=_.width+Be,Oe=Math.max(q,k.width),Ve=window.innerWidth-zn,Wt=$w(Ee,[zn,Math.max(zn,Ve-Oe)]);c.style.minWidth=q+"px",c.style.right=Wt+"px"}const O=y(),F=window.innerHeight-zn*2,B=v.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(w.offsetHeight*5,D),pe=window.getComputedStyle(v),P=parseInt(pe.paddingTop,10),z=parseInt(pe.paddingBottom,10),W=_.top+_.height/2-zn,ie=F-W,Se=w.offsetHeight/2,X=w.offsetTop+Se,je=se+M+X,L=D-je;if(je<=W){const Ce=O.length>0&&w===O[O.length-1].ref.current;c.style.bottom="0px";const Ee=u.clientHeight-v.offsetTop-v.offsetHeight,Be=Math.max(ie,Se+(Ce?z:0)+Ee+Z),q=je+Be;c.style.height=q+"px"}else{const Ce=O.length>0&&w===O[0].ref.current;c.style.top="0px";const Be=Math.max(W,se+v.offsetTop+(Ce?P:0)+Se)+L;c.style.height=Be+"px",v.scrollTop=je-W+v.offsetTop}c.style.margin=`${zn}px 0`,c.style.minHeight=J+"px",c.style.maxHeight=F+"px",s==null||s(),requestAnimationFrame(()=>g.current=!0)}},[y,i.trigger,i.valueNode,c,u,v,w,b,i.dir,s]);gt(()=>x(),[x]);const[N,S]=f.useState();gt(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const C=f.useCallback(_=>{_&&j.current===!0&&(x(),p==null||p(),j.current=!1)},[x,p]);return r.jsx(gO,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,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}})})})});Yw.displayName=pO;var xO="SelectPopperPosition",fp=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:a=zn,...i}=e,o=Gd(n);return r.jsx(hj,{...o,...i,ref:t,align:s,collisionPadding:a,style:{boxSizing:"border-box",...i.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)"}})});fp.displayName=xO;var[gO,mp]=ji(ma,{}),hp="SelectViewport",Xw=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...a}=e,i=vs(hp,n),o=mp(hp,n),c=Me(t,i.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(Kd.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:y}=o;if(y!=null&&y.current&&m){const g=Math.abs(d.current-h.scrollTop);if(g>0){const j=window.innerHeight-zn*2,v=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),b=Math.max(v,w);if(b<j){const p=b+g,x=Math.min(j,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})})})]})});Xw.displayName=hp;var Zw="SelectGroup",[vO,yO]=ji(Zw),bO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Mn();return r.jsx(vO,{scope:n,id:a,children:r.jsx(xe.div,{role:"group","aria-labelledby":a,...s,ref:t})})});bO.displayName=Zw;var Jw="SelectLabel",e1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=yO(Jw,n);return r.jsx(xe.div,{id:a.id,...s,ref:t})});e1.displayName=Jw;var Yd="SelectItem",[jO,t1]=ji(Yd),n1=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:a=!1,textValue:i,...o}=e,c=gs(Yd,n),d=vs(Yd,n),u=c.value===s,[h,m]=f.useState(i!=null?i:""),[y,g]=f.useState(!1),j=Me(t,p=>{var x;return(x=d.itemRefCallback)==null?void 0:x.call(d,p,s,a)}),v=Mn(),w=f.useRef("touch"),b=()=>{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(jO,{scope:n,value:s,disabled:a,textId:v,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(Kd.ItemSlot,{scope:n,value:s,disabled:a,textValue:h,children:r.jsx(xe.div,{role:"option","aria-labelledby":v,"data-highlighted":y?"":void 0,"aria-selected":u&&y,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:j,onFocus:he(o.onFocus,()=>g(!0)),onBlur:he(o.onBlur,()=>g(!1)),onClick:he(o.onClick,()=>{w.current!=="mouse"&&b()}),onPointerUp:he(o.onPointerUp,()=>{w.current==="mouse"&&b()}),onPointerDown:he(o.onPointerDown,p=>{w.current=p.pointerType}),onPointerMove:he(o.onPointerMove,p=>{var x;w.current=p.pointerType,a?(x=d.onItemLeave)==null||x.call(d):w.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(o.onPointerLeave,p=>{var x;p.currentTarget===document.activeElement&&((x=d.onItemLeave)==null||x.call(d))}),onKeyDown:he(o.onKeyDown,p=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&p.key===" "||(iO.includes(p.key)&&b(),p.key===" "&&p.preventDefault())})})})})});n1.displayName=Yd;var hl="SelectItemText",r1=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:a,...i}=e,o=gs(hl,n),c=vs(hl,n),d=t1(hl,n),u=dO(hl,n),[h,m]=f.useState(null),y=Me(t,b=>m(b),d.onItemTextChange,b=>{var p;return(p=c.itemTextRefCallback)==null?void 0:p.call(c,b,d.value,d.disabled)}),g=h==null?void 0:h.textContent,j=f.useMemo(()=>r.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=u;return gt(()=>(v(j),()=>w(j)),[v,w,j]),r.jsxs(r.Fragment,{children:[r.jsx(xe.span,{id:d.textId,...i,ref:y}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Zs.createPortal(i.children,o.valueNode):null]})});r1.displayName=hl;var s1="SelectItemIndicator",a1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return t1(s1,n).isSelected?r.jsx(xe.span,{"aria-hidden":!0,...s,ref:t}):null});a1.displayName=s1;var pp="SelectScrollUpButton",i1=f.forwardRef((e,t)=>{const n=vs(pp,e.__scopeSelect),s=mp(pp,e.__scopeSelect),[a,i]=f.useState(!1),o=Me(t,s.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=d.scrollTop>0;i(u)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(l1,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});i1.displayName=pp;var xp="SelectScrollDownButton",o1=f.forwardRef((e,t)=>{const n=vs(xp,e.__scopeSelect),s=mp(xp,e.__scopeSelect),[a,i]=f.useState(!1),o=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;i(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?r.jsx(l1,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});o1.displayName=xp;var l1=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...a}=e,i=vs("SelectScrollButton",n),o=f.useRef(null),c=Qd(n),d=f.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.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,()=>{o.current===null&&(o.current=window.setInterval(s,50))}),onPointerMove:he(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(s,50))}),onPointerLeave:he(a.onPointerLeave,()=>{d()})})}),wO="SelectSeparator",c1=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return r.jsx(xe.div,{"aria-hidden":!0,...s,ref:t})});c1.displayName=wO;var gp="SelectArrow",NO=f.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,a=Gd(n),i=gs(gp,n),o=vs(gp,n);return i.open&&o.position==="popper"?r.jsx(pj,{...a,...s,ref:t}):null});NO.displayName=gp;var SO="SelectBubbleInput",d1=f.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const a=f.useRef(null),i=Me(s,a),o=Hd(t);return f.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[o,t]),r.jsx(xe.select,{...n,style:{...L0,...n.style},ref:i,defaultValue:t})});d1.displayName=SO;function u1(e){return e===""||e===void 0}function f1(e){const t=gn(e),n=f.useRef(""),s=f.useRef(0),a=f.useCallback(o=>{const c=n.current+o;t(c),function d(u){n.current=u,window.clearTimeout(s.current),u!==""&&(s.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,a,i]}function m1(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=CO(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==n));const d=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function CO(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var kO=zw,h1=Bw,EO=qw,_O=Hw,PO=Ww,p1=Kw,TO=Xw,x1=e1,g1=n1,RO=r1,AO=a1,v1=i1,y1=o1,b1=c1;const ye=kO,be=EO,ge=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(h1,{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(_O,{asChild:!0,children:r.jsx(sa,{className:"h-4 w-4 opacity-50"})})]}));ge.displayName=h1.displayName;const j1=f.forwardRef(({className:e,...t},n)=>r.jsx(v1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(hP,{className:"h-4 w-4"})}));j1.displayName=v1.displayName;const w1=f.forwardRef(({className:e,...t},n)=>r.jsx(y1,{ref:n,className:V("flex cursor-default items-center justify-center py-1",e),...t,children:r.jsx(sa,{className:"h-4 w-4"})}));w1.displayName=y1.displayName;const ve=f.forwardRef(({className:e,children:t,position:n="popper",...s},a)=>r.jsx(PO,{container:Xo(),children:r.jsxs(p1,{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(j1,{}),r.jsx(TO,{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(w1,{})]})}));ve.displayName=p1.displayName;const OO=f.forwardRef(({className:e,...t},n)=>r.jsx(x1,{ref:n,className:V("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));OO.displayName=x1.displayName;const $=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(g1,{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(AO,{children:r.jsx(ds,{className:"h-4 w-4"})})}),r.jsx(RO,{children:t})]}));$.displayName=g1.displayName;const IO=f.forwardRef(({className:e,...t},n)=>r.jsx(b1,{ref:n,className:V("-mx-1 my-1 h-px bg-muted",e),...t}));IO.displayName=b1.displayName;const _r=Zh,N1=({container:e,...t})=>r.jsx(Jh,{container:e!=null?e:Xo(),...t});N1.displayName="DialogPortal";const S1=f.forwardRef(({className:e,...t},n)=>r.jsx(rl,{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}));S1.displayName=rl.displayName;const nr=f.forwardRef(({className:e,children:t,...n},s)=>r.jsxs(N1,{children:[r.jsx(S1,{}),r.jsxs(sl,{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(qd,{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"})]})]})]}));nr.displayName=sl.displayName;const rr=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});rr.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 sr=f.forwardRef(({className:e,...t},n)=>r.jsx(al,{ref:n,className:V("text-lg font-semibold leading-none tracking-tight",e),...t}));sr.displayName=al.displayName;const ar=f.forwardRef(({className:e,...t},n)=>r.jsx(il,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));ar.displayName=il.displayName;var Xd="Collapsible",[MO,C1]=Mt(Xd),[DO,vp]=MO(Xd),k1=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:i,onOpenChange:o,...c}=e,[d,u]=Jt({prop:s,defaultProp:a!=null?a:!1,onChange:o,caller:Xd});return r.jsx(DO,{scope:n,disabled:i,contentId:Mn(),open:d,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),children:r.jsx(xe.div,{"data-state":Np(d),"data-disabled":i?"":void 0,...c,ref:t})})});k1.displayName=Xd;var E1="CollapsibleTrigger",yp=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=vp(E1,n);return r.jsx(xe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Np(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:he(e.onClick,a.onOpenToggle)})});yp.displayName=E1;var bp="CollapsibleContent",jp=f.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=vp(bp,e.__scopeCollapsible);return r.jsx(Rn,{present:n||a.open,children:({present:i})=>r.jsx(FO,{...s,ref:t,present:i})})});jp.displayName=bp;var FO=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:a,...i}=e,o=vp(bp,n),[c,d]=f.useState(s),u=f.useRef(null),h=Me(t,u),m=f.useRef(0),y=m.current,g=f.useRef(0),j=g.current,v=o.open||c,w=f.useRef(v),b=f.useRef(void 0);return f.useEffect(()=>{const p=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(p)},[]),gt(()=>{const p=u.current;if(p){b.current=b.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,g.current=x.width,w.current||(p.style.transitionDuration=b.current.transitionDuration,p.style.animationName=b.current.animationName),d(s)}},[o.open,s]),r.jsx(xe.div,{"data-state":Np(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v,...i,ref:h,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:v&&a})});function Np(e){return e?"open":"closed"}var _1=k1,LO=yp,$O=jp;const pl=_1,xl=yp,gl=jp;function zO(){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 UO({detail:e,loading:t,open:n,onClose:s,onResend:a,resending:i,onDelete:o}){const[c,d]=f.useState(!1);return r.jsx(_r,{open:n,onOpenChange:()=>s(),children:r.jsx(nr,{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(rr,{className:"space-y-1",children:[r.jsx(sr,{className:"text-base font-semibold tracking-tight",children:l("Opt-In Detail")}),r.jsx(ar,{className:"font-mono text-xs text-muted-foreground truncate",children:e.hash})]})}),e.confirmed?r.jsxs(Qe,{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(Qe,{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(Xn,{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(yP,{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(ia,{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(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(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:[r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg",disabled:i,onClick:()=>a(e.id),children:[r.jsx(On,{className:"h-3.5 w-3.5 mr-1.5"}),l(i?"Sending...":"Resend Email")]}),r.jsxs(U,{variant:"outline",size:"sm",className:"rounded-lg text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>o(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 BO(){var me,Ce,Ee,Be;const e=Ke(),t=Tn(),[n,s]=f.useState(1),[a]=f.useState(20),[i,o]=f.useState(""),[c,d]=f.useState(""),[u,h]=f.useState("all"),[m,y]=f.useState("all"),[g,j]=f.useState("all"),[v]=k0(),[w,b]=f.useState(v.get("mail")==="failed"?"failed":"all"),[p,x]=f.useState(null),[N,S]=f.useState(null),[C,_]=f.useState(new Set),{data:k,isLoading:R}=Ne({queryKey:["optins",n,a,i,u,m,g,w],queryFn:()=>{const q=new URLSearchParams({page:String(n),per_page:String(a)});return i&&q.set("search",i),u!=="all"&&q.set("category",u),m!=="all"&&q.set("status",m),g!=="all"&&q.set("follow_up",g),w!=="all"&&q.set("mail",w),G(`/optins?${q.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:q=>G(`/optins/${q}`,{method:"DELETE"}),onSuccess:()=>{K.success(l("Opt-in deleted successfully")),e.invalidateQueries({queryKey:["optins"]}),S(null),p===N&&x(null),_(q=>{const Oe=new Set(q);return N!==null&&Oe.delete(N),Oe})},onError:q=>{K.error(q.message||l("Failed to delete opt-in"))}}),I=ke({mutationFn:async q=>{const Ve=(await Promise.allSettled(q.map(Wt=>G(`/optins/${Wt}`,{method:"DELETE"})))).filter(Wt=>Wt.status==="rejected").length;if(Ve>0)throw new Error(re(l("Failed to delete %1$s of %2$s items"),Ve,q.length))},onSuccess:()=>{K.success(re(l("%s opt-in(s) deleted"),C.size)),e.invalidateQueries({queryKey:["optins"]}),_(new Set),x(null)},onError:q=>{K.error(q.message||l("Bulk delete failed")),e.invalidateQueries({queryKey:["optins"]})}}),se=ke({mutationFn:q=>G(`/optins/${q}/resend`,{method:"POST"}),onSuccess:()=>{K.success(l("Confirmation email resent"))},onError:q=>{K.error(q.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 q=new Map;for(const Oe of D)q.set(Oe.id,Oe.name);return q},[D]),P=Z.length>0&&Z.every(q=>C.has(q.id)),z=Z.some(q=>C.has(q.id)),W=f.useCallback(()=>{_(q=>{const Oe=new Set(q);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]),ie=f.useCallback(q=>{_(Oe=>{const Ve=new Set(Oe);return Ve.has(q)?Ve.delete(q):Ve.add(q),Ve})},[]);function Se(){o(c),s(1)}function X(q){t(`/optins/${q}`)}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(PP,{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:q=>d(q.target.value),onKeyDown:q=>{q.key==="Enter"&&Se()}})]}),r.jsxs(ye,{value:u,onValueChange:q=>{h(q),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(q=>r.jsx($,{value:String(q.id),children:q.name},q.id))]})]}),r.jsxs(ye,{value:m,onValueChange:q=>{y(q),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.jsxs(ye,{value:g,onValueChange:q=>{j(q),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:w,onValueChange:q=>{b(q),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:()=>_(new Set),children:l("Clear selection")})]}),r.jsx(ee,{children:r.jsxs(ne,{className:"p-0",children:[R?r.jsx(zO,{}):r.jsxs(nn,{children:[r.jsx(yn,{children:r.jsxs(De,{children:[r.jsx(Te,{className:"text-xs w-10",children:r.jsx(bi,{checked:P?!0:z?"indeterminate":!1,onCheckedChange:W,"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(q=>r.jsxs(De,{className:"cursor-pointer hover:bg-muted/50 transition-colors",onClick:Oe=>{Oe.target.closest("[data-checkbox]")||X(q.id)},children:[r.jsx(le,{"data-checkbox":!0,children:r.jsx(bi,{checked:C.has(q.id),onCheckedChange:()=>ie(q.id),onClick:Oe=>Oe.stopPropagation(),"aria-label":re(l("Select opt-in %s"),q.id)})}),r.jsx(le,{children:r.jsx("button",{onClick:Oe=>{Oe.stopPropagation(),t(`/optins/${q.id}`)},className:"text-primary hover:underline text-xs font-medium",children:q.email})}),r.jsx(le,{className:"text-xs text-muted-foreground",children:q.formName||`#${q.formId}`}),r.jsx(le,{className:"text-xs text-muted-foreground",children:pe.get(q.category)||(q.category?String(q.category):"—")}),r.jsxs(le,{children:[q.confirmed?r.jsxs(Qe,{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(Qe,{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(Xn,{className:"h-2.5 w-2.5 mr-0.5"}),l("Pending")]}),q.mailStatus==="failed"&&r.jsx(Qe,{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:q}}),r.jsx("span",{children:q.createtime})]})})]},q.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(q=>Math.max(1,q-1)),children:r.jsx(db,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:n>=A,onClick:()=>s(q=>q+1),children:r.jsx(ih,{className:"h-3 w-3"})})]})]})]})}),r.jsx(UO,{detail:J,loading:F,open:!!p,onClose:()=>x(null),onResend:q=>se.mutate(q),resending:se.isPending,onDelete:q=>{S(q)}}),r.jsx(_r,{open:N!==null,onOpenChange:()=>S(null),children:r.jsxs(nr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Delete Opt-In")}),r.jsx(ar,{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(_r,{open:je,onOpenChange:()=>L(!1),children:r.jsxs(nr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:re(l("Delete %s Opt-In(s)"),C.size)}),r.jsx(ar,{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 VO=Symbol("radix.slottable");function qO(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=VO,t}var P1="AlertDialog",[HO]=Mt(P1,[ew]),Pr=ew(),T1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(Zh,{...s,...n,modal:!0})};T1.displayName=P1;var WO="AlertDialogTrigger",KO=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(t5,{...a,...s,ref:t})});KO.displayName=WO;var QO="AlertDialogPortal",R1=e=>{const{__scopeAlertDialog:t,...n}=e,s=Pr(t);return r.jsx(Jh,{...s,...n})};R1.displayName=QO;var GO="AlertDialogOverlay",A1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(rl,{...a,...s,ref:t})});A1.displayName=GO;var wi="AlertDialogContent",[YO,XO]=HO(wi),ZO=qO("AlertDialogContent"),O1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:s,...a}=e,i=Pr(n),o=f.useRef(null),c=Me(t,o),d=f.useRef(null);return r.jsx(XA,{contentName:wi,titleName:I1,docsSlug:"alert-dialog",children:r.jsx(YO,{scope:n,cancelRef:d,children:r.jsxs(sl,{role:"alertdialog",...i,...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(ZO,{children:s}),r.jsx(e3,{contentRef:o})]})})})});O1.displayName=wi;var I1="AlertDialogTitle",M1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(al,{...a,...s,ref:t})});M1.displayName=I1;var D1="AlertDialogDescription",F1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(il,{...a,...s,ref:t})});F1.displayName=D1;var JO="AlertDialogAction",L1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,a=Pr(n);return r.jsx(qd,{...a,...s,ref:t})});L1.displayName=JO;var $1="AlertDialogCancel",z1=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...s}=e,{cancelRef:a}=XO($1,n),i=Pr(n),o=Me(t,a);return r.jsx(qd,{...i,...s,ref:o})});z1.displayName=$1;var e3=({contentRef:e})=>{const t=`\`${wi}\` requires a description for the component to be accessible for screen reader users. |
| 475 |
|
| 476 |
You can add a description to the \`${wi}\` by passing a \`${D1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. |
| 477 |
|
| 478 |
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 \`${wi}\`. 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. |
| 479 |
|
| 480 |
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},t3=T1,n3=R1,U1=A1,B1=O1,V1=L1,q1=z1,H1=M1,W1=F1;const r3=t3,K1=({container:e,...t})=>r.jsx(n3,{container:e!=null?e:Xo(),...t});K1.displayName="AlertDialogPortal";const Q1=f.forwardRef(({className:e,...t},n)=>r.jsx(U1,{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}));Q1.displayName=U1.displayName;const G1=f.forwardRef(({className:e,...t},n)=>r.jsxs(K1,{children:[r.jsx(Q1,{}),r.jsx(B1,{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})]}));G1.displayName=B1.displayName;const Y1=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col space-y-2 text-center sm:text-left",e),...t});Y1.displayName="AlertDialogHeader";const X1=({className:e,...t})=>r.jsx("div",{className:V("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});X1.displayName="AlertDialogFooter";const Z1=f.forwardRef(({className:e,...t},n)=>r.jsx(H1,{ref:n,className:V("text-lg font-semibold",e),...t}));Z1.displayName=H1.displayName;const J1=f.forwardRef(({className:e,...t},n)=>r.jsx(W1,{ref:n,className:V("text-sm text-muted-foreground",e),...t}));J1.displayName=W1.displayName;const eN=f.forwardRef(({className:e,...t},n)=>r.jsx(V1,{ref:n,className:V(Lh(),e),...t}));eN.displayName=V1.displayName;const tN=f.forwardRef(({className:e,...t},n)=>r.jsx(q1,{ref:n,className:V(Lh({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));tN.displayName=q1.displayName;function s3(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 a3(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 i3(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 o3({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(pP,{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(Xn,{className:"h-3.5 w-3.5 text-muted-foreground","aria-hidden":"true"})}}function l3({optinId:e}){const t=Ke(),[n,s]=f.useState(!1),a=["optin-follow-ups",e],{data:i,isLoading:o}=Ne({queryKey:a,queryFn:()=>G(`/optins/${e}/follow-ups`)}),c=ke({mutationFn:j=>G(`/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(o)return r.jsx(ae,{className:"h-32 w-full"});const d=i==null?void 0:i.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"),y=["partial","failed","unknown"].includes(d.aggregate),g=()=>{const j={optin_id:d.optin_id,form_id:d.form_id,aggregate:d.aggregate,versions:d.versions,actions:d.actions.map(v=>({action_id:v.action_id,status:v.status,error_code:v.error_code,http_status:v.http_status,response_kind:v.response_kind,attempts:v.attempts,attempt_id:v.attempt_id,trigger:v.trigger,started_at:v.started_at,finished_at:v.finished_at,next_attempt_at:v.next_attempt_at,evidence:v.evidence,entry_ref:v.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:y?"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:[y&&r.jsx(Pt,{className:"h-4 w-4 text-amber-600","aria-hidden":"true"}),l("Follow-up actions"),r.jsx(Qe,{variant:"outline",className:"font-normal",children:a3(d.aggregate)})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(U,{variant:"ghost",size:"sm",onClick:g,children:[r.jsx(lh,{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(j=>r.jsxs(De,{children:[r.jsxs(le,{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(le,{children:r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx(o3,{status:j.status}),s3(j.status)]})}),r.jsxs(le,{className:"text-xs",children:[j.error_code?i3(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:re(l("Next automatic attempt: %s"),j.next_attempt_at)}),j.entry_ref&&r.jsx("div",{className:"text-muted-foreground",children:re(l("Entry: %s"),j.entry_ref)})]}),r.jsx(le,{className:"text-right tabular-nums",children:j.attempts}),r.jsx(le,{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(r3,{open:n,onOpenChange:s,children:r.jsxs(G1,{children:[r.jsxs(Y1,{children:[r.jsx(Z1,{children:l("Retry actions with an unknown outcome?")}),r.jsx(J1,{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(X1,{children:[r.jsx(tN,{children:l("Cancel")}),r.jsx(eN,{onClick:()=>c.mutate(!0),children:l("Retry anyway")})]})]})})]})}function nN(e){navigator.clipboard.writeText(e).then(()=>K.success(l("Copied to clipboard")),()=>K.error(l("Failed to copy")))}function Sp(e,t=""){const n=[];for(const[s,a]of Object.entries(e)){const i=t?`${t}.${s}`:s;a&&typeof a=="object"&&!Array.isArray(a)?n.push(...Sp(a,i)):Array.isArray(a)?n.push([i,a.join(", ")]):n.push([i,String(a!=null?a:"")])}return n}function c3(){var N,S;const{id:e}=$o(),t=Tn(),n=Ke(),s=mt(),[a,i]=f.useState(!1),[o,c]=f.useState(!0),[d,u]=f.useState(!1),[h,m]=f.useState(!1),{data:y,isLoading:g}=Ne({queryKey:["optin",e],queryFn:()=>G(`/optins/${e}`),enabled:!!e}),j=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"))}),v=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]})}}),w=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"))}),b=y==null?void 0:y.data;if(g)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(!b)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=b.formData?b.formData.fields?Sp(b.formData.fields):Sp(b.formData):[],x=`${s.adminUrl}admin-ajax.php?action=doi_export_consent&scope=single&id=${b.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")}),b.confirmed?r.jsxs(Qe,{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(Qe,{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(Xn,{className:"h-3 w-3 mr-1"}),l("Pending")]})]}),r.jsx("p",{className:"text-xs text-muted-foreground font-mono ml-10",children:b.hash})]}),r.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!b.confirmed&&r.jsxs(U,{variant:"outline",size:"sm",disabled:v.isPending,onClick:()=>v.mutate(),children:[r.jsx(On,{className:"h-3.5 w-3.5 mr-1.5"}),v.isPending?l("Sending..."):l("Resend Email")]}),b._devResetAvailable&&b.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:w.isPending,onClick:()=>{window.confirm(l(`Reset this opt-in to PENDING for re-testing? |
| 481 |
|
| 482 |
This is a DEV-ONLY action (WP_DEBUG mode). It clears the confirmation flag so you can click the same email link again. |
| 483 |
|
| 484 |
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. |
| 485 |
|
| 486 |
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(Xn,{className:"h-3.5 w-3.5 mr-1.5"}),w.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:()=>i(!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(l3,{optinId:b.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:b.id})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Email")}),r.jsx(le,{children:b.email})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Form")}),r.jsxs(le,{children:[b.formName," (#",b.formId,")"]})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Category")}),r.jsx(le,{children:b.categoryName?r.jsxs(xt,{to:`/categories/${b.category}`,className:"text-primary hover:underline inline-flex items-center gap-1",children:[r.jsx(fh,{className:"h-3 w-3"}),b.categoryName]}):b.category?String(b.category):"—"})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Registration Date")}),r.jsx(le,{children:b.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:b.ipRegister||"—"})]}),r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Confirmation Date")}),r.jsx(le,{children:b.confirmed?b.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:b.ipConfirmation||"—"})]}),b.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:b.ipOptout})]}),b.optouttime&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Opt-Out Date")}),r.jsx(le,{children:b.optouttime})]})]}),b.reminderSentAt&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Reminder Sent")}),r.jsx(le,{children:b.reminderSentAt})]}),b.mailStatus&&r.jsxs(De,{children:[r.jsx(le,{className:"font-medium text-muted-foreground",children:l("Confirmation mail")}),r.jsx(le,{children:b.mailStatus==="failed"?r.jsxs("span",{className:"text-red-700 dark:text-red-400",children:[re(l("Could not be sent (%s)"),b.mailStatusAt||""),b.mailError&&r.jsx("span",{className:"block text-xs text-muted-foreground font-mono break-all",children:b.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)"),b.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:[b.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:b.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.")}),b.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:b.consentField})]}),r.jsxs("p",{children:[r.jsx("span",{className:"text-muted-foreground",children:l("User acknowledged:")})," ",b.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)")})]})]}):b.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:o,onOpenChange:c,children:r.jsxs(ee,{children:[r.jsx(xl,{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(ia,{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 ${o?"rotate-180":""}`})]})})}),r.jsx(gl,{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,_])=>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:_})]},C))})]})})})]})}),b.formHtml&&r.jsx(pl,{open:d,onOpenChange:u,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(xl,{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(mb,{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(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:()=>nN(b.formHtml),children:r.jsx(lh,{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:b.formHtml})})]})]})})]})}),b.mailOptinHtml&&r.jsx(pl,{open:h,onOpenChange:m,children:r.jsxs(ee,{className:"overflow-hidden",children:[r.jsx(xl,{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(gl,{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:()=>nN(b.mailOptinHtml),children:r.jsx(lh,{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:b.mailOptinHtml})})]})]})})]})}),r.jsx($n,{id:"optin.detail-panel",data:{optin:b}})]}),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(Ko,{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(Ko,{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(Ko,{className:"h-3.5 w-3.5 mr-2"}),l("Export CSV")]})}),((S=b.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",asChild:!0,children:r.jsxs("a",{href:C.url,target:"_blank",rel:"noopener noreferrer",children:[r.jsx(ia,{className:"h-3.5 w-3.5 mr-2"}),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:b.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:b.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:b.categoryName||(b.category?`#${b.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:b.createtime})]})]})]})]})]}),r.jsx(_r,{open:a,onOpenChange:i,children:r.jsxs(nr,{className:"max-w-[400px] rounded-2xl",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Delete Opt-In")}),r.jsx(ar,{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:()=>i(!1),children:l("Cancel")}),r.jsx(U,{variant:"destructive",className:"rounded-lg",disabled:j.isPending,onClick:()=>j.mutate(),children:j.isPending?l("Deleting..."):l("Delete")})]})]})})]})}var Zd="Switch",[d3]=Mt(Zd),[u3,f3]=d3(Zd),rN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:i,required:o,disabled:c,value:d="on",onCheckedChange:u,form:h,...m}=e,[y,g]=f.useState(null),j=Me(t,x=>g(x)),v=f.useRef(!1),w=y?h||!!y.closest("form"):!0,[b,p]=Jt({prop:a,defaultProp:i!=null?i:!1,onChange:u,caller:Zd});return r.jsxs(u3,{scope:n,checked:b,disabled:c,children:[r.jsx(xe.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":oN(b),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:j,onClick:he(e.onClick,x=>{p(N=>!N),w&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),w&&r.jsx(iN,{control:y,bubbles:!v.current,name:s,value:d,checked:b,required:o,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});rN.displayName=Zd;var sN="SwitchThumb",aN=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...s}=e,a=f3(sN,n);return r.jsx(xe.span,{"data-state":oN(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});aN.displayName=sN;var m3="SwitchBubbleInput",iN=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=f.useRef(null),c=Me(o,i),d=Hd(n),u=Pd(t);return f.useEffect(()=>{const h=o.current;if(!h)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&g){const j=new Event("click",{bubbles:s});g.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}})});iN.displayName=m3;function oN(e){return e?"checked":"unchecked"}var lN=rN,h3=aN;const sn=f.forwardRef(({className:e,...t},n)=>r.jsx(lN,{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(h3,{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=lN.displayName;function Cp(){return r.jsx("span",{className:"pro-badge ml-1.5",children:l("PRO")})}function p3({title:e,description:t,upgradeUrl:n}){const{isProInstalled:s,isProLicenseActive:a}=Od(),i=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:()=>i("/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(oi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})})}const x3=["[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]"],kp=[{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"}],g3=[{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 cN(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(cN).join(", ")}function Ep(e,t){var h,m,y,g;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=((y=e.body)!=null?y:"").toString().includes("[doubleoptinlink]"),u=((g=e.template)!=null?g:"").toString().trim()!=="";return!c&&!u&&n.push("body_or_template"),n}const _p={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 v3(){var g,j;const{isProInstalled:e,isProLicenseActive:t}=Od(),n=Ke(),s=Tn(),{data:a,isLoading:i}=Ne({queryKey:["forms"],queryFn:()=>G("/forms")}),o=(g=a==null?void 0:a.data)!=null?g:{},c=ke({mutationFn:({integration:v,formId:w})=>G(`/forms/${v}/${w}/toggle`,{method:"POST"}),onSuccess:()=>{n.invalidateQueries({queryKey:["forms"]}),K.success(l("Form toggled"))},onError:v=>{if(v instanceof nd&&v.code==="INCOMPLETE_CONFIG"){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:v.missing&&v.missing.length>0?re(l("Missing: %s"),ha(v.missing)):void 0});return}K.error(v.message)}}),d=Object.entries(o).flatMap(([,v])=>{var w;return(w=v==null?void 0:v.forms)!=null?w:[]}),u=d.length,h=d.filter(v=>v.enabled).length;if(i)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(v=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(ae,{className:"h-8 w-20"})})},v))}),[1,2].map(v=>r.jsx(ee,{children:r.jsx(ne,{className:"pt-6",children:r.jsx(ae,{className:"h-24 w-full"})})},v))]});const m=(j=mt().formPlugins)!=null?j:[],y=Object.keys(_p).filter(v=>{const w=_p[v];return!w.pro||o[v]!==void 0||m.some(b=>b.id===w.detectorId)}).map(v=>{var p,x,N;const w=_p[v],b=o[v];return{key:v,name:(p=b==null?void 0:b.name)!=null?p:w.label,forms:(x=b==null?void 0:b.forms)!=null?x:[],pro:w.pro,notice:w.notice,info:w.info,productUrl:(N=m.find(S=>S.id===w.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(ia,{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})})]})]}),y.map(v=>{const w=v.pro,b=w&&o[v.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(ia,{className:"h-4 w-4 text-muted-foreground"}),r.jsx(fe,{className:"text-sm font-semibold",children:v.name}),w&&!t&&r.jsx(Cp,{}),r.jsx(Qe,{variant:"secondary",className:"ml-auto text-[10px] bg-primary/10 text-primary border-0",children:re(l("%s forms"),v.forms.length)})]})}),r.jsxs(ne,{children:[v.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"})," ",v.notice]}),v.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(wt,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"})," ",v.info]}),b&&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."),v.name)," ",r.jsx(xt,{to:"/addons",className:"text-primary underline",children:l("Open Add-ons")})]}):b?r.jsx(p3,{title:re(l("%s Integration"),v.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."),v.name),upgradeUrl:v.productUrl}):v.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:v.forms.map(x=>{var _;const N=x.isComplete!==!1,S=(_=x.missingFields)!=null?_:[],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"),ha(S)):void 0,children:r.jsx(sn,{checked:!!x.enabled,disabled:C,onCheckedChange:()=>c.mutate({integration:v.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(Qe,{variant:"outline",title:re(l("Missing: %s"),ha(S)),className:"text-[10px] border-warning text-warning gap-1",children:[r.jsx(Pt,{className:"h-3 w-3"}),l("Configuration incomplete")]})]})}),r.jsx(le,{children:r.jsxs(Qe,{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/${v.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(oi,{className:"h-4 w-4"})})]})})]},x.id)})})]})]})]},v.key)})]})}var y3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],b3=y3.reduce((e,t)=>{const n=Dh(`Primitive.${t}`),s=f.forwardRef((a,i)=>{const{asChild:o,...c}=a,d=o?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...c,ref:i})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),j3="Label",dN=f.forwardRef((e,t)=>r.jsx(b3.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())}}));dN.displayName=j3;var uN=dN;const w3=ai("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Y=f.forwardRef(({className:e,...t},n)=>r.jsx(uN,{ref:n,className:V(w3(),e),...t}));Y.displayName=uN.displayName;var Pp="rovingFocusGroup.onEntryFocus",N3={bubbles:!1,cancelable:!0},yl="RovingFocusGroup",[Tp,fN,S3]=id(yl),[C3,Jd]=Mt(yl,[S3]),[k3,E3]=C3(yl),mN=f.forwardRef((e,t)=>r.jsx(Tp.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Tp.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(_3,{...e,ref:t})})}));mN.displayName=yl;var _3=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...m}=e,y=f.useRef(null),g=Me(t,y),j=ml(i),[v,w]=Jt({prop:o,defaultProp:c!=null?c:null,onChange:d,caller:yl}),[b,p]=f.useState(!1),x=gn(u),N=fN(n),S=f.useRef(!1),[C,_]=f.useState(0);return f.useEffect(()=>{const k=y.current;if(k)return k.addEventListener(Pp,x),()=>k.removeEventListener(Pp,x)},[x]),r.jsx(k3,{scope:n,orientation:s,dir:j,loop:a,currentTabStopId:v,onItemFocus:f.useCallback(k=>w(k),[w]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>_(k=>k+1),[]),onFocusableItemRemove:f.useCallback(()=>_(k=>k-1),[]),children:r.jsx(xe.div,{tabIndex:b||C===0?-1:0,"data-orientation":s,...m,ref:g,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&&!b){const T=new CustomEvent(Pp,N3);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===v),se=[F,B,...O].filter(Boolean).map(M=>M.ref.current);xN(se,h)}}S.current=!1}),onBlur:he(e.onBlur,()=>p(!1))})})}),hN="RovingFocusGroupItem",pN=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:i,children:o,...c}=e,d=Mn(),u=i||d,h=E3(hN,n),m=h.currentTabStopId===u,y=fN(n),{onFocusableItemAdd:g,onFocusableItemRemove:j,currentTabStopId:v}=h;return f.useEffect(()=>{if(s)return g(),()=>j()},[s,g,j]),r.jsx(Tp.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,w=>{s?h.onItemFocus(u):w.preventDefault()}),onFocus:he(e.onFocus,()=>h.onItemFocus(u)),onKeyDown:he(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){h.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const b=R3(w,h.orientation,h.dir);if(b!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=y().filter(N=>N.focusable).map(N=>N.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const N=x.indexOf(w.currentTarget);x=h.loop?A3(x,N+1):x.slice(N+1)}setTimeout(()=>xN(x))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:v!=null}):o})})});pN.displayName=hN;var P3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T3(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function R3(e,t,n){const s=T3(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return P3[s]}function xN(e,t=!1){const n=document.activeElement;for(const s of e)if(s===n||(s.focus({preventScroll:t}),document.activeElement!==n))return}function A3(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var gN=mN,vN=pN,eu="Tabs",[O3]=Mt(eu,[Jd]),yN=Jd(),[I3,Rp]=O3(eu),bN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:c,activationMode:d="automatic",...u}=e,h=ml(c),[m,y]=Jt({prop:s,onChange:a,defaultProp:i!=null?i:"",caller:eu});return r.jsx(I3,{scope:n,baseId:Mn(),value:m,onValueChange:y,orientation:o,dir:h,activationMode:d,children:r.jsx(xe.div,{dir:h,"data-orientation":o,...u,ref:t})})});bN.displayName=eu;var jN="TabsList",wN=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:s=!0,...a}=e,i=Rp(jN,n),o=yN(n);return r.jsx(gN,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:s,children:r.jsx(xe.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});wN.displayName=jN;var NN="TabsTrigger",SN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,disabled:a=!1,...i}=e,o=Rp(NN,n),c=yN(n),d=EN(o.baseId,s),u=_N(o.baseId,s),h=s===o.value;return r.jsx(vN,{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,...i,ref:t,onMouseDown:he(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?o.onValueChange(s):m.preventDefault()}),onKeyDown:he(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(s)}),onFocus:he(e.onFocus,()=>{const m=o.activationMode!=="manual";!h&&!a&&m&&o.onValueChange(s)})})})});SN.displayName=NN;var CN="TabsContent",kN=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:s,forceMount:a,children:i,...o}=e,c=Rp(CN,n),d=EN(c.baseId,s),u=_N(c.baseId,s),h=s===c.value,m=f.useRef(h);return f.useEffect(()=>{const y=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(y)},[]),r.jsx(Rn,{present:a||h,children:({present:y})=>r.jsx(xe.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:y&&i})})});kN.displayName=CN;function EN(e,t){return`${e}-trigger-${t}`}function _N(e,t){return`${e}-content-${t}`}var M3=bN,PN=wN,TN=SN,RN=kN;const AN=M3,Ap=f.forwardRef(({className:e,...t},n)=>r.jsx(PN,{ref:n,className:V("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Ap.displayName=PN.displayName;const bs=f.forwardRef(({className:e,...t},n)=>r.jsx(TN,{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=TN.displayName;const bl=f.forwardRef(({className:e,...t},n)=>r.jsx(RN,{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}));bl.displayName=RN.displayName;const Tr=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}));Tr.displayName="Textarea";function D3({settings:e,onChange:t,fields:n,categories:s,pages:a}){var h,m,y,g,j,v,w,b;const i=((h=e.consentText)!=null?h:"").toString().trim(),o=((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=o&&!c.has(o.toLowerCase())?{tone:"red",message:re(l('The selected acceptance field "%s" does not exist on this form.'),o)+" "+d+" "+l("Pick a field that's actually present, or leave the dropdown empty.")}:i&&!o?{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(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(Tr,{id:"consent-text",className:"mt-1.5",placeholder:l("I agree to receive the newsletter..."),rows:3,value:(y=e.consentText)!=null?y:"",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(Y,{htmlFor:"consent-field",children:l("Consent acceptance field")}),r.jsxs(ye,{value:(g=e.consentField)!=null?g:"",onValueChange:p=>t("consentField",p==="__none__"?"":p),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(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const x=String(p.name);return r.jsx($,{value:x,children:p.label||x},x)})]})]}),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(Pt,{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(Y,{children:l("Category")}),r.jsxs(ye,{value:String((j=e.category)!=null?j:0),onValueChange:p=>t("category",Number(p)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select category")})}),r.jsx(ve,{children:Object.entries(s).map(([p,x])=>r.jsx($,{value:String(p),children:String(x)},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(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:(v=e.conditions)!=null?v:"disabled",onValueChange:p=>t("conditions",p),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(p=>p.name!==null&&p.name!==void 0&&p.name!=="").map(p=>{const x=String(p.name);return r.jsx($,{value:x,children:p.label||x},x)})]})]}),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((w=e.confirmationPage)!=null?w:-1),onValueChange:p=>t("confirmationPage",Number(p)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ve,{children:Object.entries(a).map(([p,x])=>r.jsx($,{value:String(p),children:String(x)},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(Y,{children:l("Error redirect page")}),r.jsxs(ye,{value:String((b=e.errorRedirectPage)!=null?b:-1),onValueChange:p=>t("errorRedirectPage",Number(p)),children:[r.jsx(ge,{className:"mt-1.5",children:r.jsx(be,{placeholder:l("Select page")})}),r.jsx(ve,{children:Object.entries(a).map(([p,x])=>r.jsx($,{value:String(p),children:String(x)},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 F3({settings:e,onChange:t,fields:n,templates:s,templateDetails:a,adminUrl:i}){var m,y,g,j,v,w,b,p;const o=(m=e.template)!=null?m:"",c=o.startsWith("custom_"),d=c?a==null?void 0:a[o]:null,u=c,h=d&&i?`#/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(Op,{})]}),r.jsxs(ye,{value:(y=e.recipient)!=null?y:"",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:(g=e.sender)!=null?g:"",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:(j=e.senderName)!=null?j:"",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(Op,{})]}),r.jsx(Re,{id:"subject",className:"mt-1.5",value:(v=e.subject)!=null?v:"",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:(w=e.template)!=null?w:"",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(Op,{})]}),u?r.jsx(L3,{title:(b=d==null?void 0:d.title)!=null?b:o,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: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(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:x3.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 Op(){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 L3({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 $3({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=kp.filter(d=>{var u;return!!((u=e.fieldMapping)!=null&&u[d.key])}).length,i=new Set(Object.values((c=e.fieldMapping)!=null?c:{}).filter(Boolean).map(d=>String(d))),o=n.filter(d=>d.name!==null&&d.name!==void 0&&d.name!==""&&!i.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:[g3.map(d=>{const u=kp.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,y;return r.jsx(z3,{mapping:h,value:(y=(m=e.fieldMapping)==null?void 0:m[h.key])!=null?y:"",fields:n,onChange:g=>s(h.key,g)},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(ub,{className:"h-3.5 w-3.5 text-green-600"}),r.jsx("span",{children:re(l("%d of %d placeholders mapped"),a,kp.length)})]}),o.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:[o.length," form field",o.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:[o.slice(0,8).map(d=>{const u=String(d.name);return r.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono",children:d.label||u},u)}),o.length>8&&r.jsxs(Qe,{variant:"outline",className:"text-[10px]",children:["+",o.length-8]})]})]})]})]})]})]})}function z3({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:i=>s(i==="__none__"?"":i),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(i=>i.name!==null&&i.name!==void 0&&i.name!=="").map(i=>{const o=String(i.name);return r.jsx($,{value:o,children:i.label||o},o)})]})]})]})}const U3=["general","email","mapping","pro"];function B3(){var T,O,F,B,I,se;const{integration:e,id:t}=$o(),n=Tn(),s=Ke(),[a,i]=k0(),o=a.get("tab"),c=U3.includes(o!=null?o:"")?o:"general",d=M=>{const Z=new URLSearchParams(a);M==="general"?Z.delete("tab"):Z.set("tab",M),i(Z,{replace:!0})},[u,h]=f.useState({}),{data:m,isLoading:y}=Ne({queryKey:["form-settings",t,e],queryFn:()=>G(`/forms/${e}/${t}/settings`),enabled:!!e&&!!t}),g=(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&&Ep(Z,A).length>0){h({...Z,enabled:!1});return}h({...Z})}},[m]);const j=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."),ha(D)):l("Configuration is incomplete.")}),h(J=>({...J,enabled:!1}));return}K.success(l("Settings saved"))},onError:M=>{if(M instanceof nd&&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"),ha(M.missing)):void 0}),h(Z=>({...Z,enabled:!1}));return}K.error(M.message)}}),v=(M,Z)=>h(A=>{const D={...A,[M]:Z};return D.enabled&&Ep(D,g).length>0&&(D.enabled=!1),D}),b=f.useSyncExternalStore(E0,()=>_0("forms.pro-features"),()=>[]).length>0;if(f.useEffect(()=>{c==="pro"&&!b&&d("general")},[c,b]),y||!(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:v,fields:g,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=Ep(u,g),C=S.length===0,_=!C&&!u.enabled,k=M=>{if(M&&!C){K.error(l("Cannot enable Double Opt-In: configuration is incomplete."),{description:re(l("Missing: %s."),ha(S))});return}v("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"),ha(S)),children:[!C&&r.jsx(Pt,{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:_,onCheckedChange:k,className:"data-[state=checked]:bg-success"})]}),r.jsxs(Qe,{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:j.isPending,onClick:()=>j.mutate(u),children:j.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(Pt,{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:cN(M)},M))})]})]})}),r.jsxs(AN,{value:c,onValueChange:d,className:"!mt-12",children:[r.jsxs(Ap,{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(Pt,{className:"h-3 w-3 text-amber-600","aria-label":l("Tab contains incomplete required fields")})]}),r.jsx(bs,{value:"mapping",children:l("Mapping")}),b&&r.jsx(bs,{value:"pro",children:l("Pro Features")})]}),r.jsx(bl,{value:"general",className:"mt-6",children:r.jsx(D3,{...N})}),r.jsx(bl,{value:"email",className:"mt-6",children:r.jsx(F3,{...N})}),r.jsx(bl,{value:"mapping",className:"mt-6",children:r.jsx($3,{...N})}),b&&r.jsx(bl,{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 V3(){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 ON(){var p;const e=Ke(),[t,n]=f.useState(""),[s,a]=f.useState(null),[i,o]=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"))}}),y=ke({mutationFn:({id:x,name:N})=>G(`/categories/${x}`,{method:"PUT",body:JSON.stringify({name:N})}),onSuccess:()=>{K.success(l("Category updated")),o(null),d(""),e.invalidateQueries({queryKey:["categories"]})},onError:x=>{K.error(x.message||l("Failed to update category"))}}),g=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"))}}),j=(p=u==null?void 0:u.data)!=null?p:[];function v(x){o(x.id),d(x.name)}function w(){o(null),d("")}function b(){i!==null&&c.trim()&&y.mutate({id:i,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(V3,{}):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:j.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")})}):j.map(x=>r.jsxs(De,{children:[r.jsx(le,{className:"tabular-nums text-muted-foreground text-xs",children:x.id}),r.jsx(le,{children:i===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"&&b(),N.key==="Escape"&&w()},autoFocus:!0}),r.jsx(U,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0",onClick:b,disabled:y.isPending,children:r.jsx(ds,{className:"h-3.5 w-3.5 text-success"})}),r.jsx(U,{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(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:()=>v(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(_r,{open:s!==null,onOpenChange:()=>a(null),children:r.jsxs(nr,{className:"max-w-[400px]",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Delete Category")}),r.jsx(ar,{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:g.isPending,onClick:()=>{s!==null&&g.mutate(s)},children:g.isPending?l("Deleting..."):l("Delete")})]})]})})]})}function Ip({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 q3(){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 H3(){var p,x,N,S,C,_,k,R,T;const{isProInstalled:e,isProLicenseActive:t}=Od(),n=ra("reminder"),s=ra("mx-validator"),a=ra("domain-blocklist"),i=!n&&!s&&!a,o=Ke(),c=mt(),{data:d,isLoading:u}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),{data:h}=Ne({queryKey:["pages"],queryFn:()=>G("/settings/pages")}),[m,y]=f.useState({}),[g,j]=f.useState(!1);f.useEffect(()=>{d!=null&&d.data&&!g&&(y(d.data),j(!0))},[d,g]);const v=ke({mutationFn:()=>G("/settings",{method:"PUT",body:JSON.stringify(m)}),onSuccess:O=>{K.success(l("Settings saved successfully")),o.invalidateQueries({queryKey:["settings"]})},onError:O=>{K.error(O.message||l("Failed to save settings"))}});function w(O,F){y(B=>({...B,[O]:F}))}const b=(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:()=>v.mutate(),disabled:v.isPending,children:[r.jsx(oa,{className:"mr-2 h-4 w-4"}),v.isPending?l("Saving..."):l("Save Changes")]})]}),u?r.jsx(q3,{}):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(Ip,{icon:Xn,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=>w("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=>w("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=>w("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=>w("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(Ip,{icon:xP,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=>w("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:b.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(Ip,{icon:uh,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:(_=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(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=>w("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=>w("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=>w("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=>w("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(bP,{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=>w("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(Wo,{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=>w("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(V5,{}),i&&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(gb,{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 W3(){var h;const e=Ke(),[t,n]=f.useState(null),{data:s,isLoading:a}=Ne({queryKey:["email-templates"],queryFn:()=>G("/email-templates"),refetchOnMount:"always"}),i=(h=s==null?void 0:s.data)!=null?h:[],o=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:y})=>G(`/email-templates/${m}`,{method:"PUT",body:JSON.stringify({status:y})}),onSuccess:(m,y)=>{e.invalidateQueries({queryKey:["email-templates"]}),K.success(y.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))})})]}):i.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(xb,{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(li,{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:i.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:y=>d.mutate({id:m.id,status:y}),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:o.isPending,onClick:()=>o.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(_r,{open:t!==null,onOpenChange:()=>n(null),children:r.jsxs(nr,{className:"max-w-[400px]",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Delete Template")}),r.jsx(ar,{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 K3(){var m;const e=Ke(),[t,n]=f.useState(null),[s,a]=f.useState(""),{data:i,isLoading:o}=Ne({queryKey:["db-stats"],queryFn:()=>G("/database/stats")}),c=(m=i==null?void 0:i.data)!=null?m:{total:0,confirmed:0,unconfirmed:0},d=ke({mutationFn:y=>G("/database/clean",{method:"POST",body:JSON.stringify({scope:y})}),onSuccess:()=>{e.invalidateQueries({queryKey:["db-stats"]}),K.success(l("Records deleted successfully")),n(null)},onError:y=>{K.error(y.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:y=>{K.error(y.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:Xn}];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(Wo,{className:"h-3 w-3"})," ",l("Total Records")]})}),r.jsx(ne,{children:o?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(aa,{className:"h-3 w-3 text-success"})," ",l("Confirmed")]})}),r.jsx(ne,{children:o?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(Xn,{className:"h-3 w-3 text-warning"})," ",l("Unconfirmed")]})}),r.jsx(ne,{children:o?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(Pt,{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(y=>r.jsx(ee,{className:"text-center",children:r.jsxs(ne,{className:"pt-6 pb-4",children:[r.jsx(y.icon,{className:"h-8 w-8 mx-auto mb-3 text-muted-foreground"}),r.jsx("h3",{className:"text-sm font-semibold mb-1",children:y.title}),r.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:y.desc}),r.jsx(U,{variant:y.key==="all"?"destructive":"outline",size:"sm",className:"text-xs",onClick:()=>n(y.key),children:y.title})]})},y.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(SP,{className:"h-3 w-3"})," ",l("Go to Settings")]})]})]})})})]}),r.jsx(_r,{open:t!==null&&t!=="reset",onOpenChange:()=>n(null),children:r.jsxs(nr,{className:"max-w-[400px]",children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Confirm Deletion")}),r.jsx(ar,{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(_r,{open:t==="reset",onOpenChange:()=>{n(null),a("")},children:r.jsxs(nr,{className:"max-w-[440px]",children:[r.jsxs(rr,{children:[r.jsx(sr,{className:"text-destructive",children:l("Reset Database")}),r.jsx(ar,{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:y=>a(y.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",Q3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Mp,G3,Y3]=id(Un),[tu]=Mt(Un,[Y3,C1]),Dp=C1(),IN=H.forwardRef((e,t)=>{const{type:n,...s}=e,a=s,i=s;return r.jsx(Mp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsx(eI,{...i,ref:t}):r.jsx(J3,{...a,ref:t})})});IN.displayName=Un;var[MN,X3]=tu(Un),[DN,Z3]=tu(Un,{collapsible:!1}),J3=H.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},collapsible:i=!1,...o}=e,[c,d]=Jt({prop:n,defaultProp:s!=null?s:"",onChange:a,caller:Un});return r.jsx(MN,{scope:e.__scopeAccordion,value:H.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:H.useCallback(()=>i&&d(""),[i,d]),children:r.jsx(DN,{scope:e.__scopeAccordion,collapsible:i,children:r.jsx(FN,{...o,ref:t})})})}),eI=H.forwardRef((e,t)=>{const{value:n,defaultValue:s,onValueChange:a=()=>{},...i}=e,[o,c]=Jt({prop:n,defaultProp:s!=null?s:[],onChange:a,caller:Un}),d=H.useCallback(h=>c((m=[])=>[...m,h]),[c]),u=H.useCallback(h=>c((m=[])=>m.filter(y=>y!==h)),[c]);return r.jsx(MN,{scope:e.__scopeAccordion,value:o,onItemOpen:d,onItemClose:u,children:r.jsx(DN,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsx(FN,{...i,ref:t})})})}),[tI,nu]=tu(Un),FN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:s,dir:a,orientation:i="vertical",...o}=e,c=H.useRef(null),d=Me(c,t),u=G3(n),m=ml(a)==="ltr",y=he(e.onKeyDown,g=>{var k;if(!Q3.includes(g.key))return;const j=g.target,v=u().filter(R=>{var T;return!((T=R.ref.current)!=null&&T.disabled)}),w=v.findIndex(R=>R.ref.current===j),b=v.length;if(w===-1)return;g.preventDefault();let p=w;const x=0,N=b-1,S=()=>{p=w+1,p>N&&(p=x)},C=()=>{p=w-1,p<x&&(p=N)};switch(g.key){case"Home":p=x;break;case"End":p=N;break;case"ArrowRight":i==="horizontal"&&(m?S():C());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(m?C():S());break;case"ArrowUp":i==="vertical"&&C();break}const _=p%b;(k=v[_].ref.current)==null||k.focus()});return r.jsx(tI,{scope:n,disabled:s,direction:a,orientation:i,children:r.jsx(Mp.Slot,{scope:n,children:r.jsx(xe.div,{...o,"data-orientation":i,ref:d,onKeyDown:s?void 0:y})})})}),ru="AccordionItem",[nI,Fp]=tu(ru),LN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,i=nu(ru,n),o=X3(ru,n),c=Dp(n),d=Mn(),u=s&&o.value.includes(s)||!1,h=i.disabled||e.disabled;return r.jsx(nI,{scope:n,open:u,disabled:h,triggerId:d,children:r.jsx(_1,{"data-orientation":i.orientation,"data-state":qN(u),...c,...a,ref:t,disabled:h,open:u,onOpenChange:m=>{m?o.onItemOpen(s):o.onItemClose(s)}})})});LN.displayName=ru;var $N="AccordionHeader",zN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=nu(Un,n),i=Fp($N,n);return r.jsx(xe.h3,{"data-orientation":a.orientation,"data-state":qN(i.open),"data-disabled":i.disabled?"":void 0,...s,ref:t})});zN.displayName=$N;var Lp="AccordionTrigger",UN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=nu(Un,n),i=Fp(Lp,n),o=Z3(Lp,n),c=Dp(n);return r.jsx(Mp.ItemSlot,{scope:n,children:r.jsx(LO,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...c,...s,ref:t})})});UN.displayName=Lp;var BN="AccordionContent",VN=H.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=nu(Un,n),i=Fp(BN,n),o=Dp(n);return r.jsx($O,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});VN.displayName=BN;function qN(e){return e?"open":"closed"}var rI=IN,sI=LN,aI=zN,HN=UN,WN=VN;const iI=rI,KN=f.forwardRef(({className:e,...t},n)=>r.jsx(sI,{ref:n,className:V("border-b",e),...t}));KN.displayName="AccordionItem";const QN=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(aI,{className:"flex",children:r.jsxs(HN,{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"})]})}));QN.displayName=HN.displayName;const GN=f.forwardRef(({className:e,children:t,...n},s)=>r.jsx(WN,{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})}));GN.displayName=WN.displayName;const $p=["success","invalid_email","invalid_nonce","save_failed","send_failed"],YN={success:{title:"",body:""},invalid_email:{title:"",body:""},invalid_nonce:{title:"",body:""},save_failed:{title:"",body:""},send_failed:{title:"",body:""}},XN={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.")}},zp=["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"],ZN=zp.reduce((e,t)=>({...e,[t]:""}),{}),oI=[{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.")}]}],Up=["cancelled","cancelled_all","reactivated"],JN={cancelled:{title:"",body:""},cancelled_all:{title:"",body:""},reactivated:{title:"",body:""}},Bp={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")}},lI={enabled:!0,defaults:{optout_page:0,optout_subject:"Opt-out Confirmation",optout_template:"",optout_body:"",notices:YN,labels:ZN,list_notices:JN,disabled_notice:{enabled:!1,title:"",body:""}},forms:[]};function cI(){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:i}=Ne({queryKey:["email-templates-list"],queryFn:()=>G("/settings/email-templates-list")}),{data:o}=Ne({queryKey:["forms"],queryFn:()=>G("/forms"),enabled:e}),[c,d]=f.useState(lI),[u,h]=f.useState(!1),[m,y]=f.useState("");f.useEffect(()=>{var Ee,Be,q,Oe,Ve,Wt,Rs,$i,Sa,ln,Rl,dr,uu,fu,Ft,Dr;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((q=P.optout_template)!=null?q:""),optout_body:String((Oe=P.optout_body)!=null?Oe:"")},W=(Wt=P._defaults)==null?void 0:Wt.notices,ie=$p.reduce((ur,wn)=>{var cn,Ca,As,Fr;return ur[wn]={title:String((Ca=(cn=W==null?void 0:W[wn])==null?void 0:cn.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,X=zp.reduce((ur,wn)=>{var cn;return ur[wn]=String((cn=Se==null?void 0:Se[wn])!=null?cn:""),ur},{}),je=($i=P._defaults)==null?void 0:$i.list_notices,L=Up.reduce((ur,wn)=>{var cn,Ca,As,Fr;return ur[wn]={title:String((Ca=(cn=je==null?void 0:je[wn])==null?void 0:cn.title)!=null?Ca:""),body:String((Fr=(As=je==null?void 0:je[wn])==null?void 0:As.body)!=null?Fr:"")},ur},{}),me=(Sa=P._defaults)==null?void 0:Sa.disabled_notice,Ce={enabled:!!((ln=me==null?void 0:me.enabled)!=null&&ln),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((uu=z.optout_page)!=null?uu:0),optout_subject:String((fu=z.optout_subject)!=null?fu:""),optout_template:String((Ft=z.optout_template)!=null?Ft:""),optout_body:String((Dr=z.optout_body)!=null?Dr:""),notices:ie,labels:X,list_notices:L,disabled_notice:Ce},forms:Array.isArray(P._forms)?P._forms:[]}),h(!0)},[n,u]);const g=f.useMemo(()=>{var z,W,ie;const P=(z=n==null?void 0:n.data)==null?void 0:z._disabled_notice_defaults;return{title:String((W=P==null?void 0:P.title)!=null?W:""),body:String((ie=P==null?void 0:P.body)!=null?ie:"")}},[n]),j=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._labels_defaults;return P?zp.reduce((W,ie)=>{var Se;return W[ie]=String((Se=P[ie])!=null?Se:""),W},{}):ZN},[n]),v=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._list_notices_defaults;return P?Up.reduce((W,ie)=>{var Se,X,je,L;return W[ie]={title:String((X=(Se=P[ie])==null?void 0:Se.title)!=null?X:""),body:String((L=(je=P[ie])==null?void 0:je.body)!=null?L:"")},W},{}):JN},[n]),w=f.useMemo(()=>{var z;const P=(z=n==null?void 0:n.data)==null?void 0:z._notices_defaults;return P?$p.reduce((W,ie)=>{var Se,X,je,L;return W[ie]={title:String((X=(Se=P[ie])==null?void 0:Se.title)!=null?X:""),body:String((L=(je=P[ie])==null?void 0:je.body)!=null?L:"")},W},{}):YN},[n]),b=f.useMemo(()=>{var W;const P=(W=o==null?void 0:o.data)!=null?W:{},z=[];for(const[ie,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:`${ie}_${je}`,integration:ie,integrationName:Se.name,formId:L,restId:je,title:X.title||`#${L}`})}return z},[o]),p=(P,z)=>{const W=b.find(ie=>ie.integration===P&&ie.formId===z);return W?`${W.integrationName} / ${W.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=i==null?void 0:i.data)!=null?D:[];function _(P,z){d(W=>({...W,defaults:{...W.defaults,[P]:z}}))}function k(P,z,W){d(ie=>({...ie,defaults:{...ie.defaults,notices:{...ie.defaults.notices,[P]:{...ie.defaults.notices[P],[z]:W}}}}))}function R(P,z){d(W=>({...W,defaults:{...W.defaults,labels:{...W.defaults.labels,[P]:z}}}))}function T(P,z,W){d(ie=>({...ie,defaults:{...ie.defaults,list_notices:{...ie.defaults.list_notices,[P]:{...ie.defaults.list_notices[P],[z]:W}}}}))}function O(P,z){d(W=>({...W,defaults:{...W.defaults,disabled_notice:{...W.defaults.disabled_notice,[P]:z}}}))}function F(){if(!m)return;const P=b.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}]})),y("")}}function B(P){d(z=>({...z,forms:z.forms.filter((W,ie)=>ie!==P)}))}function I(P,z,W){d(ie=>({...ie,forms:ie.forms.map((Se,X)=>X===P?{...Se,[z]:W}: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(pb,{className:"h-6 w-6"}),l("Opt-Out Settings"),!e&&r.jsx(Cp,{})]}),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:g.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(Tr,{id:"disabled-notice-body",className:"mt-1 text-xs min-h-[60px]",placeholder:g.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=>_("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(mh,{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(oi,{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(mb,{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=>_("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=>_("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(uI,{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(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(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"}):$p.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:XN[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:XN[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:w[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(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: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(iI,{type:"multiple",className:"w-full",children:oI.map(P=>r.jsxs(KN,{value:P.group,children:[r.jsx(QN,{className:"text-sm",children:P.group}),r.jsx(GN,{children:r.jsx("div",{className:"space-y-3 pt-2",children:P.items.map(({key:z,hint:W})=>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:j[z]||l("Default"),value:c.defaults.labels[z],onChange:ie=>R(z,ie.target.value)}),W&&r.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:W})]},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"}):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:Bp[P].label}),r.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:Bp[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:Bp[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:v[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(Tr,{id:`listnotice-${P}-body`,className:"mt-1 text-xs min-h-[60px]",placeholder:v[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:y,children:[r.jsx(ge,{className:"flex-1",children:r.jsx(be,{placeholder:l("Select a form to add…")})}),r.jsx(ve,{children:b.length===0?r.jsx($,{value:"__empty",disabled:!0,children:l("No forms detected")}):b.map(P=>r.jsxs($,{value:P.key,children:[P.integrationName," / ",P.title]},P.key))})]}),r.jsxs(U,{onClick:F,disabled:!m,children:[r.jsx(li,{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(dI,{entry:P,label:p(P.integration,P.form_id),pages:S,templates:C,defaultPageLabel:se,defaultTemplateLabel:M,defaultSubject:c.defaults.optout_subject,onChange:(W,ie)=>I(z,W,ie),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 dI({entry:e,label:t,pages:n,templates:s,defaultPageLabel:a,defaultTemplateLabel:i,defaultSubject:o,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:y=>{y==="__inherit"?c("enabled",null):y==="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:y=>c("optout_page",y==="__inherit"?null:Number(y)),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(y=>r.jsx($,{value:y.id.toString(),children:y.title},y.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)"),o||l("(empty)")),value:(h=e.optout_subject)!=null?h:"",onChange:y=>c("optout_subject",y.target.value===""?null:y.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:y=>c("optout_template",y==="__inherit"?null:y),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)"),i)}),s.map(y=>r.jsx($,{value:String(y.id),children:y.title},y.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(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:y=>c("optout_body",y.target.value===""?null:y.target.value)})]})]})]})}function uI({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 Vp=[{value:"subscriber",label:l("Subscriber")},{value:"contributor",label:l("Contributor")},{value:"author",label:l("Author")},{value:"editor",label:l("Editor")}];function eS(e){var t,n;return(n=(t=Vp.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.")}},fI={enabled:!0,mode:"selected",defaults:{role:"subscriber",send_welcome_mail:!0,force_password_change:!1,duplicate_policy:"skip",field_map:{}},conditions:[]};function mI(e,t,n,s){const a=eS(t),i=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"),i)}: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(sp("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"),i)}: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"),i)}:{headline:re(l("Auto-create a %1$s on every form EXCEPT the %2$s excluded"),a,n),detail:re(sp("%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,i)}}function hI(){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,i]=f.useState(fI),[o,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var N,S,C,_,k,R,T,O,F;if(!t||o)return;const x=(N=t.data)!=null?N:t;i({enabled:x.enabled!==!1,mode:(S=x.mode)!=null?S:"selected",defaults:{role:(_=(C=x.defaults)==null?void 0:C.role)!=null?_:"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,o]);const h=f.useMemo(()=>{var S;const x=(S=s==null?void 0:s.data)!=null?S:{},N=[];for(const[C,_]of Object.entries(x))if(_)for(const k of _.forms){const R=Number(typeof k.id=="string"?k.id.split("_")[0]:k.id);R&&N.push({key:`${C}_${R}`,integration:C,integrationName:_.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}`},y=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 g(x,N){i(S=>({...S,defaults:{...S.defaults,[x]:N}}))}function j(){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}i(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 v(x){i(N=>({...N,conditions:N.conditions.filter((S,C)=>C!==x)}))}function w(x,N,S){i(C=>({...C,conditions:C.conditions.map((_,k)=>k===x?{..._,[N]:S}:_)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const b=mI(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(yb,{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=>i(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:()=>i(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:b.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:b.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=>g("role",x),children:[r.jsx(ge,{id:"uc-role",className:"mt-1.5",children:r.jsx(be,{})}),r.jsx(ve,{children:Vp.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=>g("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=>g("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=>g("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:j,disabled:!d,children:[r.jsx(li,{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:()=>v(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:_=>w(N,"role",_==="__inherit"?null:_),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)"),eS(a.defaults.role))}),Vp.map(_=>r.jsx($,{value:_.value,children:_.label},_.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:_=>w(N,"duplicate_policy",_==="__inherit"?null:_),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:()=>y.mutate(),disabled:y.isPending,children:[y.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 pI=[{value:"__none__",label:l("None")},{value:"cleverreach",label:"CleverReach"}];function xI(){var u;const e=ra("cleverreach"),t=Ke(),{data:n,isLoading:s}=Ne({queryKey:["api-settings"],queryFn:()=>G("/api/settings"),enabled:e}),[a,i]=f.useState({service:"",cleverreach_client_id:"",cleverreach_client_secret:"",cleverreach_connected:!1});f.useEffect(()=>{n!=null&&n.data&&i(n.data)},[n]);const o=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(ch,{className:"h-6 w-6"}),l("API Integrations"),!e&&r.jsx(Cp,{})]}),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=>i(m=>({...m,service:h==="__none__"?"":h})),children:[r.jsx(ge,{children:r.jsx(be,{placeholder:l("None")})}),r.jsx(ve,{children:pI.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=>i(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(oi,{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=>i(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(oi,{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(Qe,{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:()=>o.mutate(a),disabled:o.isPending||s,children:o.isPending?l("Saving..."):l("Save")})]})]})}function gI(){var d;const e=Ke(),[t,n]=f.useState(""),{data:s,isLoading:a}=Ne({queryKey:["license"],queryFn:()=>G("/license")}),i=s==null?void 0:s.data,o=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(uh,{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(Qe,{variant:i!=null&&i.isActive?"default":"secondary",className:i!=null&&i.isActive?"bg-green-100 text-green-800 hover:bg-green-100":"",children:i!=null&&i.isActive?l("Active"):l("Inactive")}),(i==null?void 0:i.isActive)&&r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-sm font-medium",children:i.licenseType}),i.expiresAt&&r.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("Expires:")," ",i.expiresAt]})]})]})})]}),r.jsxs(ee,{children:[r.jsxs(ue,{children:[r.jsxs(fe,{className:"flex items-center gap-2",children:[r.jsx(hb,{className:"h-4 w-4"}),l("License Key")]}),r.jsx(Ae,{children:i!=null&&i.isActive?l("Your license is currently active."):l("Enter your license key to activate Pro features.")})]}),r.jsx(ne,{children:i!=null&&i.isActive?r.jsxs("div",{className:"space-y-3",children:[r.jsx(Re,{value:i.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:()=>o.mutate(t),disabled:!t.trim()||o.isPending,children:o.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=i==null?void 0:i.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(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:i}})]})}const tS=new Set(["avada","elementor","wpforms","gravity-forms"]);function vI(){var y,g;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,i=(y=t==null?void 0:t.entries)!=null?y:[],o=(g=t==null?void 0:t.hasBundleLicense)!=null?g:!1,c=mt(),d=ke({mutationFn:j=>G(`/addons/${j}/activate`,{method:"POST"}),onSuccess:(j,v)=>{var b,p;const w=(p=(b=i.find(x=>x.id===v))==null?void 0:b.name)!=null?p:v;K.success(re(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=>G(`/addons/${j}/deactivate`,{method:"POST"}),onSuccess:(j,v)=>{var b,p;const w=(p=(b=i.find(x=>x.id===v))==null?void 0:b.name)!=null?p:v;K.success(re(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=>G("/bundle/installer/install",{method:"POST",body:JSON.stringify({id:j})}),onSuccess:(j,v)=>{var b,p;const w=(p=(b=i.find(x=>x.id===v))==null?void 0:b.name)!=null?p:v;K.success(re(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=i.reduce((j,v)=>(j[v.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($n,{id:"addons.list",data:{entries:i,license:a,hasLicense:o}}),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(ii,{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"),m.active,m.inactive,m.not_installed)})]}),!o&&!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((j,v)=>r.jsx(ae,{className:"h-44 w-full"},v))}):i.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:i.map(j=>r.jsx(yI,{entry:j,hasLicense:o,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 yI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}){const[d,u]=f.useState(!1),h=tS.has(e.id),m=e.status==="active"&&e.operational&&h&&(e.integrationRegistered===!1||e.integrationAvailable===!1),y=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(jI,{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(bI,{loaded:e.operational}),r.jsx("span",{children:e.name})]}),r.jsx(wI,{entry:e})]})]}),r.jsx("p",{className:"text-sm text-muted-foreground flex-1",children:e.description}),y&&r.jsx(NI,{entry:e}),e.capabilities.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1",children:e.capabilities.slice(0,3).map(g=>r.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono",children:g},g))}),r.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[r.jsx(EI,{entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}),r.jsx(U,{size:"sm",variant:"ghost",onClick:()=>u(g=>!g),"aria-label":l("Toggle diagnostic info"),title:l("Diagnostic info"),children:r.jsx(fP,{className:"h-4 w-4"})})]}),d&&r.jsx(kI,{entry:e})]})}function bI({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 jI({entry:e}){return e.status==="active"?e.operational?r.jsx(ub,{className:"h-5 w-5 text-green-600 shrink-0 mt-0.5"}):r.jsx(Pt,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):e.status==="inactive"?r.jsx(Qo,{className:"h-5 w-5 text-amber-500 shrink-0 mt-0.5"}):r.jsx(fb,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-0.5"})}function wI({entry:e}){return e.status==="active"?e.operational?r.jsx(Qe,{className:"bg-green-100 text-green-800 hover:bg-green-100 mt-1",children:l("Active")}):r.jsx(Qe,{className:"bg-amber-100 text-amber-800 hover:bg-amber-100 mt-1",children:l("Active · issues")}):e.status==="inactive"?r.jsx(Qe,{variant:"secondary",className:"mt-1",children:l("Installed · inactive")}):r.jsx(Qe,{variant:"outline",className:"mt-1",children:l("Not installed")})}function NI({entry:e}){const t=e.inactiveReason?CI(e.inactiveReason):SI(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 SI(e){return tS.has(e.id)?e.integrationRegistered===!1?{icon:Pt,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:Pt,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 CI(e){return e==="prerequisite"?{icon:gb,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:Pt,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 kI({entry:e}){var a;const t=i=>i===null?"—":String(i),n=i=>i===null?"—":String(i),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(([i,o])=>r.jsxs("tr",{children:[r.jsx("td",{className:"pr-3 text-muted-foreground align-top",children:i}),r.jsx("td",{className:"break-all",children:o})]},i))})})]})}function EI({entry:e,hasLicense:t,onActivate:n,onDeactivate:s,onInstall:a,isActivating:i,isDeactivating:o,isInstalling:c}){return e.status==="active"?r.jsxs(U,{size:"sm",variant:"outline",className:"flex-1",onClick:s,disabled:o,children:[o?r.jsx(An,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Qo,{className:"h-4 w-4 mr-1"}),l(o?"Deactivating…":"Deactivate")]}):e.status==="inactive"?r.jsxs(U,{size:"sm",variant:"default",className:"flex-1",onClick:n,disabled:i,children:[i?r.jsx(An,{className:"h-4 w-4 mr-1 animate-spin"}):r.jsx(Qo,{className:"h-4 w-4 mr-1"}),l(i?"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(Ko,{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(RP,{className:"h-4 w-4 mr-1"}),l("Upgrade to Pro")]})})}const Hp="__dummy__",_I=l("Don't forget to confirm your subscription");function PI(){var x,N,S,C,_;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,i]=f.useState({}),[o,c]=f.useState(!1);f.useEffect(()=>{var k,R,T,O;t!=null&&t.data&&!o&&(i({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,o]);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),i(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){i(T=>({...T,[k]:R}))}const m=(x=s==null?void 0:s.data)!=null?x:[],[y,g]=f.useState(""),[j,v]=f.useState(Hp),{data:w}=Ne({queryKey:["reminder-recent-unconfirmed"],queryFn:()=>G("/addons/reminder/recent-unconfirmed")}),b=ke({mutationFn:()=>G("/addons/reminder/send-test",{method:"POST",body:JSON.stringify({recipient:y,optin_id:j===Hp?null:Number(j)})}),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=w==null?void 0:w.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:_I,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:(_=a.reminder_template)!=null?_:"",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(_P,{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:y,onChange:k=>g(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:j,onValueChange:k=>v(k),children:[r.jsx(ge,{id:"test-optin",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:Hp,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:()=>b.mutate(),disabled:b.isPending||!y,variant:"secondary",children:[b.isPending?r.jsx(An,{className:"h-4 w-4 mr-1.5 animate-spin"}):r.jsx(TP,{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 TI=l("The email domain does not appear to accept emails. Please check your email address.");function RI(){var u,h;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),[s,a]=f.useState({}),[i,o]=f.useState(!1);f.useEffect(()=>{var m,y;t!=null&&t.data&&!i&&(a({mx_validation_behavior:(m=t.data.mx_validation_behavior)!=null?m:"silent",mx_validation_message:(y=t.data.mx_validation_message)!=null?y:""}),o(!0))},[t,i]);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,y){a(g=>({...g,[m]:y}))}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:TI,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 AI=l("This email domain is not allowed. Please use a different email address."),OI=`tempmail.com |
| 487 |
disposable-email.com |
| 488 |
10minutemail.com`;function II(){var h,m,y,g;const e=Ke(),{data:t,isLoading:n}=Ne({queryKey:["settings"],queryFn:()=>G("/settings")}),[s,a]=f.useState({}),[i,o]=f.useState(!1);f.useEffect(()=>{var j,v,w;t!=null&&t.data&&!i&&(a({domain_blocklist:(j=t.data.domain_blocklist)!=null?j:"",domain_blocklist_behavior:(v=t.data.domain_blocklist_behavior)!=null?v:"silent",domain_blocklist_message:(w=t.data.domain_blocklist_message)!=null?w:""}),o(!0))},[t,i]);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:j=>{K.error(j.message||l("Failed to save domain blocklist settings."))}});function d(j,v){a(w=>({...w,[j]:v}))}const u=((h=s.domain_blocklist)!=null?h:"").split(` |
| 489 |
`).map(j=>j.trim()).filter(j=>j!=="").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(Tr,{id:"domain-blocklist",className:"mt-1.5 font-mono text-xs",rows:8,placeholder:OI,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(Y,{htmlFor:"domain-behavior",children:l("Validation behaviour")}),r.jsxs(ye,{value:(y=s.domain_blocklist_behavior)!=null?y:"silent",onValueChange:j=>d("domain_blocklist_behavior",j),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:AI,value:(g=s.domain_blocklist_message)!=null?g:"",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(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 Wp={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 MI(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 DI={enabled:!0,mode:"all",defaults:{scope:"confirmed",behavior:"block",match_scope:"form",message:"",redirect_page:0},conditions:[]};function FI(){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,i]=f.useState(DI),[o,c]=f.useState(!1),[d,u]=f.useState("");f.useEffect(()=>{var x,N,S,C,_,k,R,T,O,F,B,I;if(!t||o)return;const p=(x=t.data)!=null?x:t;i({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=(_=p.defaults)==null?void 0:_.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,o]);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 _ of C.forms){const k=Number(typeof _.id=="string"?_.id.split("_")[0]:_.id);k&&x.push({key:`${S}_${k}`,integration:S,integrationName:C.name,formId:k,title:_.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}`},y=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 g(p,x){i(N=>({...N,defaults:{...N.defaults,[p]:x}}))}function j(){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}i(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 v(p){i(x=>({...x,conditions:x.conditions.filter((N,S)=>S!==p)}))}function w(p,x,N){i(S=>({...S,conditions:S.conditions.map((C,_)=>_===p?{...C,[x]:N}:C)}))}if(n)return r.jsx(ae,{className:"h-96 w-full"});const b=MI(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(Wp).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:()=>i(x=>({...x,mode:p})),className:"mt-1"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:Wp[p].title}),r.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:Wp[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:b.headline}),r.jsx("div",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:b.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=>g("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=>g("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:()=>g("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=>g("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:j,disabled:!d,children:[r.jsx(li,{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,_;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:()=>v(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=>w(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=>w(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=>w(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:(_=p.message)!=null?_:"",onChange:k=>w(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:()=>y.mutate(),disabled:y.isPending,children:[y.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 nS={equals:l("Equals"),not_equals:l("Not equals"),contains:l("Contains"),not_empty:l("Not empty"),empty:l("Empty")},LI=new Set(["not_empty","empty"]),$I={enabled:!0,forms:[]};function zI(){return`rule_${Math.random().toString(36).slice(2,10)}`}function rS(){return{id:zI(),field:"",operator:"equals",value:"",template:"",priority:10}}function UI(){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")}),[i,o]=f.useState($I),[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;o({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]),y=(R,T)=>{const O=m.find(F=>F.integration===R&&F.formId===T);return O?O.restId:String(T)},g=(R,T)=>{const O=m.find(F=>F.integration===R&&F.formId===T);return O?`${O.integrationName} / ${O.title}`:`${R} / #${T}`},j=W2({queries:i.forms.map(R=>{const T=y(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}})}),v=(R,T)=>{var B;const O=i.forms.findIndex(I=>I.integration===R&&I.form_id===T);if(O===-1)return[];const F=j[O];return F!=null&&F.data?(B=F.data.data)!=null?B:[]:[]},w=ke({mutationFn:()=>G("/addons/conditional/settings",{method:"POST",body:JSON.stringify(i)}),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 b(){if(!u)return;const R=m.find(T=>T.key===u);if(R){if(i.forms.some(T=>T.integration===R.integration&&T.form_id===R.formId)){K.warning(l("This form is already in the list."));return}o(T=>({...T,forms:[...T.forms,{integration:R.integration,form_id:R.formId,fallback_template:"blank",rules:[rS()]}]})),h("")}}function p(R){o(T=>({...T,forms:T.forms.filter((O,F)=>F!==R)}))}function x(R,T,O){o(F=>({...F,forms:F.forms.map((B,I)=>I===R?{...B,[T]:O}:B)}))}function N(R){o(T=>({...T,forms:T.forms.map((O,F)=>F===R?{...O,rules:[...O.rules,rS()]}:O)}))}function S(R,T){o(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){o(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 _=(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:b,disabled:!u,children:[r.jsx(li,{className:"h-4 w-4 mr-1.5"}),l("Add form")]})]}),i.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:i.forms.map((R,T)=>{const O=v(R.integration,R.form_id),F=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:g(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:_.length===0?r.jsx($,{value:"blank",children:l("Default (blank)")}):_.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=!LI.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(nS).map(M=>r.jsx($,{value:M,children:nS[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")}),_.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(li,{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:()=>w.mutate(),disabled:w.isPending,children:[w.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 sS={",":l("Comma — , (RFC 4180 default)"),";":l("Semicolon — ; (German/French Excel)"),"\\t":l("Tab (TSV-style)"),"|":l("Pipe — |")},BI={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).")},ir="__all";function aS(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 VI(){var ie,Se,X,je;const[e,t]=f.useState("csv"),[n,s]=f.useState(","),[a,i]=f.useState("all"),[o,c]=f.useState(""),[d,u]=f.useState(!1),[h,m]=f.useState("all"),[y,g]=f.useState(""),[j,v]=f.useState(""),[w,b]=f.useState(ir),[p,x]=f.useState(ir),[N,S]=f.useState(!1),C=Ke(),_=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,q]of Object.entries(L))if(q)for(const Oe of q.forms){const Ve=Number(typeof Oe.id=="string"?Oe.id.split("_")[0]:Oe.id);Ve&&me.push({id:Ve,label:`${q.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"?o.trim():"",I=h,se=w===ir?"":w,M=p===ir?"":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=(ie=Z.data)==null?void 0:ie.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(i(L.scope==="email"?"email":"all"),c((me=L.email)!=null?me:""),m(["all","confirmed","unconfirmed","opted_out"].includes(L.status)?L.status:"all"),b(L.form_id>0?String(L.form_id):ir),x(L.category_id>0?String(L.category_id):ir),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 W(){var Be;if(a==="email"&&o.trim()===""){K.error(l("Enter an email address before exporting."));return}if(y!==""&&j!==""&&y>j){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",o.trim()),d&&me.set("include_formdata","1"),e==="csv"&&n!==","&&me.set("delimiter",n),h!=="all"&&me.set("status",h),y!==""&&me.set("date_from",y),j!==""&&me.set("date_to",j),w!==ir&&me.set("form_id",w),p!==ir&&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(vP,{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(gP,{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=>i(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(sS).map(L=>r.jsx($,{value:L,children:sS[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:o,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:BI[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:y,onChange:L=>g(L.target.value),max:j||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:j,onChange:L=>v(L.target.value),min:y||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:w,onValueChange:b,children:[r.jsx(ge,{id:"export-form",className:"mt-1.5",children:r.jsx(be,{})}),r.jsxs(ve,{children:[r.jsx($,{value:ir,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:ir,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(bi,{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:")," ",aS(A.last_run_at),"."]})})]})]})]}),r.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-4",children:[r.jsx(bi,{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:W,children:[r.jsx(Ko,{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(jP,{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(vb,{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:aS(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(vb,{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=_.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(U,{variant:"outline",size:"sm",onClick:()=>{var L;return(L=_.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=_.current)==null||L.close(),pe.mutate()},children:l("Yes, clear everything")})]})]})]})}function qI(){const{id:e}=$o();return e?r.jsx(Er,{addonId:e,featureName:e,children:r.jsx(HI,{id:e})}):null}function HI({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`)}),[i,o]=f.useState(!0);f.useEffect(()=>{s&&o(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=>{o(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:i,onCheckedChange:u,disabled:c.isPending})]})})]}),e==="reminder"&&r.jsx(PI,{}),e==="mx-validator"&&r.jsx(RI,{}),e==="domain-blocklist"&&r.jsx(II,{}),e==="unique-email"&&r.jsx(FI,{}),e==="conditional"&&r.jsx(UI,{}),e==="consent-export"&&r.jsx(VI,{})]})}const iS="doi-email-editor-root",WI="email-editor";function oS(){var h;const{id:e}=$o(),t=Tn(),n=f.useRef(null),[s,a]=f.useState(null),[i,o]=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===WI&&m.available);return f.useEffect(()=>{if(d)return;if(!u){o(!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,y=null,g=null,j=null;const v=()=>{var N;if(m)return!0;const w=window.doiMountEmailEditor;if(typeof w!="function")return!1;const b=n.current;if(!b)return!1;b.id=iS;const p=e&&e!=="new"?Number(e):0,x=(N=window.doiEmailEditorBootstrap)!=null?N:{restUrl:mt().restUrl+"email-templates",nonce:mt().nonce};return y=w(iS,{templateId:p,restUrl:x.restUrl,nonce:x.nonce}),y&&(o(!1),a(null)),!!y};return v()||(g=setInterval(()=>{v()&&g&&(clearInterval(g),g=null)},100),j=setTimeout(()=>{g&&(clearInterval(g),g=null),!y&&!m&&(o(!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,g&&clearInterval(g),j&&clearTimeout(j),y)try{y.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(ud,{className:"h-3.5 w-3.5"}),l("Back to email templates")]})}),i&&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(Pt,{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 su={info:{label:l("Info"),color:"secondary",icon:wt},warning:{label:l("Warning"),color:"default",icon:Pt},error:{label:l("Error"),color:"destructive",icon:fd},critical:{label:l("Critical"),color:"destructive",icon:oh}},KI={settings:dh,cron:Xn,activation:Qo,ratelimit:uh,api_error:MP,db_error:Wo,email:On,auth:OP,follow_up:CP,consent:uP};function QI(){var S,C,_,k,R,T,O,F,B;const[e,t]=f.useState("30"),[n,s]=f.useState("all"),[a,i]=f.useState("all"),[o,c]=f.useState(1),[d,u]=f.useState(null),h=15,m=I=>{t(I),c(1)},y=I=>{s(I),c(1)},g=I=>{i(I),c(1)},{data:j,isLoading:v}=Ne({queryKey:["audit-events",e,n,a,o],queryFn:()=>G(`/audit/events?period=${e}&type=${n}&severity=${a}&page=${o}&per_page=${h}`)}),{data:w,isLoading:b}=Ne({queryKey:["audit-summary",e],queryFn:()=>G(`/audit/summary?period=${e}`)}),p=(C=(S=j==null?void 0:j.data)==null?void 0:S.events)!=null?C:[],x=(k=(_=j==null?void 0:j.data)==null?void 0:_.pages)!=null?k: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(AN,{value:e,onValueChange:m,children:r.jsxs(Ap,{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:b?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(Pt,{className:"h-3 w-3 text-warning"}),l("Warnings")]})}),r.jsx(ne,{children:b?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:b?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(oh,{className:"h-3 w-3"}),l("Critical")]})}),r.jsx(ne,{children:b?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:y,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:"ratelimit",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:g,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:v?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=KI[I.event_type]||xd,M=(Z=su[I.severity])!=null?Z:su.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 capitalize",children:I.event_type.replace("_"," ")})]})}),r.jsx(le,{children:r.jsx(Qe,{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(Qe,{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"),o,x)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:o===1,onClick:()=>c(I=>I-1),children:r.jsx(db,{className:"h-3 w-3"})}),r.jsx(U,{variant:"outline",size:"icon",className:"h-7 w-7",disabled:o>=x,onClick:()=>c(I=>I+1),children:r.jsx(ih,{className:"h-3 w-3"})})]})]})]})})}),r.jsx(_r,{open:!!d,onOpenChange:()=>u(null),children:r.jsxs(nr,{children:[r.jsxs(rr,{children:[r.jsx(sr,{children:l("Event Details")}),r.jsx(ar,{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(Qe,{variant:(O=(T=su[d.severity])==null?void 0:T.color)!=null?O:"secondary",className:"text-[10px]",children:(B=(F=su[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 Kp="Radio",[GI,lS]=Mt(Kp),[YI,XI]=GI(Kp),cS=f.forwardRef((e,t)=>{const{__scopeRadio:n,name:s,checked:a=!1,required:i,disabled:o,value:c="on",onCheck:d,form:u,...h}=e,[m,y]=f.useState(null),g=Me(t,w=>y(w)),j=f.useRef(!1),v=m?u||!!m.closest("form"):!0;return r.jsxs(YI,{scope:n,checked:a,disabled:o,children:[r.jsx(xe.button,{type:"button",role:"radio","aria-checked":a,"data-state":mS(a),"data-disabled":o?"":void 0,disabled:o,value:c,...h,ref:g,onClick:he(e.onClick,w=>{a||d==null||d(),v&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),v&&r.jsx(fS,{control:m,bubbles:!j.current,name:s,value:c,checked:a,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});cS.displayName=Kp;var dS="RadioIndicator",uS=f.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:s,...a}=e,i=XI(dS,n);return r.jsx(Rn,{present:s||i.checked,children:r.jsx(xe.span,{"data-state":mS(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});uS.displayName=dS;var ZI="RadioBubbleInput",fS=f.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:s=!0,...a},i)=>{const o=f.useRef(null),c=Me(o,i),d=Hd(n),u=Pd(t);return f.useEffect(()=>{const h=o.current;if(!h)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&g){const j=new Event("click",{bubbles:s});g.call(h,n),h.dispatchEvent(j)}},[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}})});fS.displayName=ZI;function mS(e){return e?"checked":"unchecked"}var JI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],au="RadioGroup",[eM]=Mt(au,[Jd,lS]),hS=Jd(),pS=lS(),[tM,nM]=eM(au),xS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:s,defaultValue:a,value:i,required:o=!1,disabled:c=!1,orientation:d,dir:u,loop:h=!0,onValueChange:m,...y}=e,g=hS(n),j=ml(u),[v,w]=Jt({prop:i,defaultProp:a!=null?a:null,onChange:m,caller:au});return r.jsx(tM,{scope:n,name:s,required:o,disabled:c,value:v,onValueChange:w,children:r.jsx(gN,{asChild:!0,...g,orientation:d,dir:j,loop:h,children:r.jsx(xe.div,{role:"radiogroup","aria-required":o,"aria-orientation":d,"data-disabled":c?"":void 0,dir:j,...y,ref:t})})})});xS.displayName=au;var gS="RadioGroupItem",vS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:s,...a}=e,i=nM(gS,n),o=i.disabled||s,c=hS(n),d=pS(n),u=f.useRef(null),h=Me(t,u),m=i.value===a.value,y=f.useRef(!1);return f.useEffect(()=>{const g=v=>{JI.includes(v.key)&&(y.current=!0)},j=()=>y.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",j),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",j)}},[]),r.jsx(vN,{asChild:!0,...c,focusable:!o,active:m,children:r.jsx(cS,{disabled:o,required:i.required,checked:m,...d,...a,name:i.name,ref:h,onCheck:()=>i.onValueChange(a.value),onKeyDown:he(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:he(a.onFocus,()=>{var g;y.current&&((g=u.current)==null||g.click())})})})});vS.displayName=gS;var rM="RadioGroupIndicator",yS=f.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...s}=e,a=pS(n);return r.jsx(uS,{...a,...s,ref:t})});yS.displayName=rM;var bS=xS,jS=vS,sM=yS;const wS=f.forwardRef(({className:e,...t},n)=>r.jsx(bS,{className:V("grid gap-2",e),...t,ref:n}));wS.displayName=bS.displayName;const Qp=f.forwardRef(({className:e,...t},n)=>r.jsx(jS,{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(sM,{className:"flex items-center justify-center",children:r.jsx(fb,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Qp.displayName=jS.displayName;const jl=["sender","forms","mail","page"],NS=8;function aM(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 Gp(e){if(e instanceof nd){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 iM(e){const t=e.lastIndexOf("@");return t===-1?"":e.slice(t+1).toLowerCase().replace(/^www\./,"")}function oM(){var se,M,Z;const e=Tn(),t=Ke(),{data:n,isLoading:s,isError:a}=Ne({queryKey:lp,queryFn:M5,staleTime:1/0}),[i,o]=f.useState(0),[c,d]=f.useState(null),[u,h]=f.useState({}),[m,y]=f.useState(null),[g,j]=f.useState(null);f.useEffect(()=>{n&&!c&&(d(aM(n)),o(n.status==="done"?0:Math.min(n.step,jl.length-1)))},[n,c]);const v=(A,D=i)=>t.setQueryData(op,{status:A,step:D,steps:jl.length}),w=ke({mutationFn:({name:A,data:D})=>D5(A,D)}),b=ke({mutationFn:F5}),p=ke({mutationFn:L5}),x=ke({mutationFn:$5,onSuccess:()=>{v("skipped"),e("/")}}),N=w.isPending||p.isPending||b.isPending;if(a)return r.jsx(iu,{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(iu,{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])=>({id:Number(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}}},_=async()=>{try{return await w.mutateAsync({name:jl[i],data:C(jl[i])}),!0}catch(A){return h(Gp(A)),!1}},k=async()=>{await _()&&(v("pending",i+1),o(i+1))},R=async()=>{var A,D;if(j(null),!!await _())try{const J=await b.mutateAsync();j((D=(A=J.data)==null?void 0:A.to)!=null?D:n.testMailTo)}catch(J){h(Gp(J))}},T=async()=>{var A;if(await _())try{const D=await p.mutateAsync();y((A=D.data)!=null?A:{enabled:[],incomplete:[]}),v("done",jl.length),t.invalidateQueries({queryKey:["forms"]}),t.invalidateQueries({queryKey:lp})}catch(D){h(Gp(D))}};if(m)return r.jsx(iu,{children:r.jsx(hM,{overview:n,draft:c,result:m,testMailSent:g!==null})});const F=n.cf7.forms.filter(A=>!A.enabled).filter(A=>{var D;return(D=c.forms[A.id])==null?void 0:D.selected}),B=F.every(A=>c.forms[A.id].field!==""),I=/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(c.senderEmail);return r.jsxs(iu,{onSkip:()=>x.mutate(),skipDisabled:x.isPending,progress:r.jsx(lM,{current:i}),children:[i===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(lu,{step:i,onBack:()=>o(i-1),onNext:k,nextDisabled:!I||N}),children:[r.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[r.jsx(cu,{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(cu,{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!==""&&iM(c.senderEmail)!==n.sender.domain&&r.jsxs(Ni,{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)]})]}),i===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:(se=u._)!=null?se:u.forms,footer:r.jsx(lu,{step:i,onBack:()=>o(i-1),onNext:k,nextDisabled:!B||N,nextLabel:F.length===0?l("Skip"):void 0}),children:[r.jsx(cM,{overview:n,draft:c,onChange:A=>S({forms:A})}),r.jsx(CS,{plugins:n.formPlugins})]}),i===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(lu,{step:i,onBack:()=>o(i-1),onNext:k,nextDisabled:c.subject.trim()===""||N}),children:[r.jsx(cu,{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(fM,{value:c.design,designs:n.mail.designs,onChange:A=>S({design:A})}),r.jsx(mM,{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)")})]})]}),i===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:(Z=(M=u._)!=null?M:u.page)!=null?Z:u.testMail,footer:r.jsx(lu,{step:i,onBack:()=>o(i-1),onNext:T,nextDisabled:N||c.pageMode==="existing"&&!c.pageId,nextLabel:l("Finish setup")}),children:[r.jsxs(wS,{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(Y,{htmlFor:"setup-page-new",className:"font-normal",children:l("Create and publish the page “Email address confirmed”")}),r.jsx(SS,{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(Y,{htmlFor:"setup-page-existing",className:"font-normal",children:l("Use an existing page")})]})]}),c.pageMode==="existing"&&r.jsx(cu,{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)})]}),g&&r.jsxs(Ni,{tone:"ok",children:[r.jsx("strong",{children:re(l("Test email sent to %s."),g)})," ",l("The link in it leads to the confirmation page and confirms nothing.")]})]})]})]})}function iu({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 lM({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 ou({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(Ni,{tone:"warn",role:"alert",children:n}),s]})})}function lu({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(Ho,{className:"ml-2 h-4 w-4","aria-hidden":"true"})]})]})}function cu({id:e,label:t,hint:n,error:s,prefilled:a,children:i}){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(SS,{label:l("prefilled")})]}),i,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 SS({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 Ni({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(Pt,{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 cM({overview:e,draft:t,onChange:n}){const[s,a]=f.useState(!1),i=e.cf7.forms;if(!e.cf7.installed)return r.jsxs(Ni,{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(i.length===0)return r.jsxs(Ni,{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 o=s?i:i.slice(0,NS),c=(d,u)=>n({...t.forms,[d.id]:{...t.forms[d.id],...u}});return r.jsxs("div",{className:"grid gap-2",children:[o.map(d=>{const u=t.forms[d.id],h=u.selected&&u.field==="",m=`setup-form-${d.id}`,y=`setup-form-field-${d.id}`;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]",h&&"border-orange-400"),children:[r.jsx(bi,{id:m,checked:d.enabled||u.selected,disabled:d.enabled,onCheckedChange:g=>c(d,{selected:g===!0})}),r.jsxs(Y,{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:y,"aria-label":re(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:g=>c(d,{field:g.target.value,selected:g.target.value!==""||u.selected}),children:[r.jsx("option",{value:"",children:l("Choose email field …")}),d.fields.map(g=>r.jsx("option",{value:g,children:g},g))]})]},d.id)}),!s&&i.length>NS&&r.jsx(U,{type:"button",variant:"ghost",className:"justify-self-start",onClick:()=>a(!0),children:re(l("Show all %d forms"),i.length)})]})}function CS({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(oi,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]},t.id))})}const dM={light:()=>l("Light"),dark:()=>l("Dark"),accent:()=>l("Accent"),plain:()=>l("Text only")},uM={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 fM({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=uM[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"})]})}),dM[s]()]},s)})})]})}function mM({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 hM({overview:e,draft:t,result:n,testMailSent:s}){const a=f.useMemo(()=>{const i=new Map(e.cf7.forms.map(o=>[o.id,o.title]));return{enabled:n.enabled.map(o=>{var c;return(c=i.get(o))!=null?c:`#${o}`}),incomplete:n.incomplete.map(o=>{var c;return(c=i.get(o.id))!=null?c:`#${o.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(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(du,{children:re(l("Sender: %1$s <%2$s>"),t.senderName,t.senderEmail)}),r.jsx(du,{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(du,{children:t.pageMode==="new"?l("Confirmation page “Email address confirmed” created and published"):l("Confirmation page: existing page")}),s&&r.jsx(du,{children:l("Test email sent")})]}),a.incomplete.length>0&&r.jsx(Ni,{tone:"warn",children:re(l("Not switched on because settings are missing: %s"),a.incomplete.join(", "))}),r.jsx(CS,{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 du({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 pM(){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 xM(){const{id:e=""}=$o(),t=/^[a-z0-9-]{1,40}$/.test(e)?e:"";return t===""?null:r.jsx(Er,{addonId:t,featureName:t,children:r.jsx($n,{id:`page.${t}`})})}const gM=new U2({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),vM=()=>(f.useEffect(()=>{a_()},[]),r.jsx(B2,{client:gM,children:r.jsxs(Cj,{children:[r.jsx(xT,{}),r.jsx(QT,{}),r.jsx(O4,{children:r.jsx(QE,{children:r.jsxs(zE,{children:[r.jsxs(Xe,{element:r.jsx(T5,{}),children:[r.jsx(Xe,{path:"/",element:r.jsx(K5,{})}),r.jsx(Xe,{path:"/analytics",element:r.jsx(Er,{addonId:"analytics",featureName:"Analytics",children:r.jsx($n,{id:"page.analytics"})})}),r.jsx(Xe,{path:"/optins",element:r.jsx(BO,{})}),r.jsx(Xe,{path:"/optins/:id",element:r.jsx(c3,{})}),r.jsx(Xe,{path:"/forms",element:r.jsx(v3,{})}),r.jsx(Xe,{path:"/forms/:integration/:id/settings",element:r.jsx(B3,{})}),r.jsx(Xe,{path:"/categories",element:r.jsx(ON,{})}),r.jsx(Xe,{path:"/categories/:id",element:r.jsx(ON,{})}),r.jsx(Xe,{path:"/settings",element:r.jsx(H3,{})}),r.jsx(Xe,{path:"/email-templates",element:r.jsx(Er,{addonId:"email-editor",featureName:"Email Templates",children:r.jsx(W3,{})})}),r.jsx(Xe,{path:"/email-templates/new",element:r.jsx(Er,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(oS,{})})}),r.jsx(Xe,{path:"/email-templates/:id/edit",element:r.jsx(Er,{addonId:"email-editor",featureName:"Email Editor",children:r.jsx(oS,{})})}),r.jsx(Xe,{path:"/database",element:r.jsx(K3,{})}),r.jsx(Xe,{path:"/opt-out",element:r.jsx(Er,{addonId:"opt-out",featureName:"Opt-Out",children:r.jsx(cI,{})})}),r.jsx(Xe,{path:"/user-creation",element:r.jsx(Er,{addonId:"user-registration",featureName:"User Creation",children:r.jsx(hI,{})})}),r.jsx(Xe,{path:"/api",element:r.jsx(Er,{addonId:"cleverreach",featureName:"CleverReach",children:r.jsx(xI,{})})}),r.jsx(Xe,{path:"/audit",element:r.jsx(QI,{})}),r.jsx(Xe,{path:"/license",element:r.jsx(gI,{})}),r.jsx(Xe,{path:"/addons",element:r.jsx(vI,{})}),r.jsx(Xe,{path:"/addon-settings/:id",element:r.jsx(qI,{})}),r.jsx(Xe,{path:"/addon/:id",element:r.jsx(xM,{})})]}),r.jsx(Xe,{path:"/setup",element:r.jsx(oM,{})}),r.jsx(Xe,{path:"*",element:r.jsx(pM,{})})]})})})]})})),kS=document.getElementById("doi-admin-root");kS&&Ay(kS).render(r.jsx(vM,{}))})(wp.i18n); |
| 490 |
|
| 491 |
})(); |
| 492 |
|