From 494245d577cc55e7d3549694524d47f6c3985618 Mon Sep 17 00:00:00 2001 From: Isaac Aracena Date: Thu, 6 Aug 2026 08:05:15 -0400 Subject: [PATCH] Add production dist for server deployment --- .gitignore | 2 - dist/assets/index-BOArrs2O.css | 1 + dist/assets/index-D_Mf2Vhc.js | 329 +++++++++++++++++++++++++++++++++ dist/index.html | 15 ++ 4 files changed, 345 insertions(+), 2 deletions(-) create mode 100644 dist/assets/index-BOArrs2O.css create mode 100644 dist/assets/index-D_Mf2Vhc.js create mode 100644 dist/index.html diff --git a/.gitignore b/.gitignore index 14bdfa6..07ba0df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ node_modules/ build/ -dist/ coverage/ .DS_Store *.log @@ -9,7 +8,6 @@ coverage/ # Dependencias y compilación node_modules/ -dist/ # Variables privadas .env diff --git a/dist/assets/index-BOArrs2O.css b/dist/assets/index-BOArrs2O.css new file mode 100644 index 0000000..e5d7960 --- /dev/null +++ b/dist/assets/index-BOArrs2O.css @@ -0,0 +1 @@ +/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--drop-shadow-xs:0 1px 1px #0000000d;--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-xl:24px;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-geist:"Geist", sans-serif;--font-ibm:"IBM Plex Sans", sans-serif;--font-figtree:"Figtree", sans-serif;--font-fira:"Fira Sans", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-24{top:calc(var(--spacing) * -24)}.top-0{top:0}.top-1\/2{top:50%}.top-\[58px\]{top:58px}.top-\[172px\]{top:172px}.top-full{top:100%}.-right-20{right:calc(var(--spacing) * -20)}.right-0{right:0}.right-2{right:calc(var(--spacing) * 2)}.right-3\.5{right:calc(var(--spacing) * 3.5)}.-bottom-28{bottom:calc(var(--spacing) * -28)}.-left-24{left:calc(var(--spacing) * -24)}.-left-\[23px\]{left:-23px}.left-0{left:0}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-3\.5{left:calc(var(--spacing) * 3.5)}.z-10{z-index:10}.z-20{z-index:20}.z-25{z-index:25}.z-30{z-index:30}.z-50{z-index:50}.z-60{z-index:60}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-auto{margin-block:auto}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.ml-3{margin-left:calc(var(--spacing) * 3)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-80{height:calc(var(--spacing) * 80)}.h-96{height:calc(var(--spacing) * 96)}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-\[65vh\]{max-height:65vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[78vh\]{max-height:78vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[640px\]{max-height:640px}.min-h-\[300px\]{min-height:300px}.min-h-screen{min-height:100vh}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-80{width:calc(var(--spacing) * 80)}.w-96{width:calc(var(--spacing) * 96)}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-48{max-width:calc(var(--spacing) * 48)}.max-w-\[180px\]{max-width:180px}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.scrollbar-thin{scrollbar-width:thin}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-sky-100\/60>:not(:last-child)){border-color:#dff2fe99}@supports (color:color-mix(in lab,red,red)){:where(.divide-sky-100\/60>:not(:last-child)){border-color:color-mix(in oklab,var(--color-sky-100) 60%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[28px\]{border-radius:28px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-100{border-color:var(--color-amber-100)}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-200\/80{border-color:#fee685cc}@supports (color:color-mix(in lab,red,red)){.border-amber-200\/80{border-color:color-mix(in oklab,var(--color-amber-200) 80%,transparent)}}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-emerald-100{border-color:var(--color-emerald-100)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-200\/80{border-color:#a4f4cfcc}@supports (color:color-mix(in lab,red,red)){.border-emerald-200\/80{border-color:color-mix(in oklab,var(--color-emerald-200) 80%,transparent)}}.border-rose-100{border-color:var(--color-rose-100)}.border-rose-200{border-color:var(--color-rose-200)}.border-sky-100{border-color:var(--color-sky-100)}.border-sky-100\/60{border-color:#dff2fe99}@supports (color:color-mix(in lab,red,red)){.border-sky-100\/60{border-color:color-mix(in oklab,var(--color-sky-100) 60%,transparent)}}.border-sky-100\/80{border-color:#dff2fecc}@supports (color:color-mix(in lab,red,red)){.border-sky-100\/80{border-color:color-mix(in oklab,var(--color-sky-100) 80%,transparent)}}.border-sky-100\/90{border-color:#dff2fee6}@supports (color:color-mix(in lab,red,red)){.border-sky-100\/90{border-color:color-mix(in oklab,var(--color-sky-100) 90%,transparent)}}.border-sky-200{border-color:var(--color-sky-200)}.border-sky-200\/80{border-color:#b8e6fecc}@supports (color:color-mix(in lab,red,red)){.border-sky-200\/80{border-color:color-mix(in oklab,var(--color-sky-200) 80%,transparent)}}.border-sky-300\/40{border-color:#77d4ff66}@supports (color:color-mix(in lab,red,red)){.border-sky-300\/40{border-color:color-mix(in oklab,var(--color-sky-300) 40%,transparent)}}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-200\/80{border-color:#e2e8f0cc}@supports (color:color-mix(in lab,red,red)){.border-slate-200\/80{border-color:color-mix(in oklab,var(--color-slate-200) 80%,transparent)}}.border-slate-300{border-color:var(--color-slate-300)}.border-l-amber-500{border-left-color:var(--color-amber-500)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\/30{background-color:#fffbeb4d}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/30{background-color:color-mix(in oklab,var(--color-amber-50) 30%,transparent)}}.bg-amber-50\/40{background-color:#fffbeb66}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/40{background-color:color-mix(in oklab,var(--color-amber-50) 40%,transparent)}}.bg-amber-50\/50{background-color:#fffbeb80}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/50{background-color:color-mix(in oklab,var(--color-amber-50) 50%,transparent)}}.bg-amber-50\/60{background-color:#fffbeb99}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/60{background-color:color-mix(in oklab,var(--color-amber-50) 60%,transparent)}}.bg-amber-50\/70{background-color:#fffbebb3}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/70{background-color:color-mix(in oklab,var(--color-amber-50) 70%,transparent)}}.bg-amber-50\/80{background-color:#fffbebcc}@supports (color:color-mix(in lab,red,red)){.bg-amber-50\/80{background-color:color-mix(in oklab,var(--color-amber-50) 80%,transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-100\/70{background-color:#fef3c6b3}@supports (color:color-mix(in lab,red,red)){.bg-amber-100\/70{background-color:color-mix(in oklab,var(--color-amber-100) 70%,transparent)}}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-200\/45{background-color:#fee68573}@supports (color:color-mix(in lab,red,red)){.bg-amber-200\/45{background-color:color-mix(in oklab,var(--color-amber-200) 45%,transparent)}}.bg-amber-300{background-color:var(--color-amber-300)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-50\/20{background-color:#ecfdf533}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\/20{background-color:color-mix(in oklab,var(--color-emerald-50) 20%,transparent)}}.bg-emerald-50\/30{background-color:#ecfdf54d}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\/30{background-color:color-mix(in oklab,var(--color-emerald-50) 30%,transparent)}}.bg-emerald-50\/50{background-color:#ecfdf580}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\/50{background-color:color-mix(in oklab,var(--color-emerald-50) 50%,transparent)}}.bg-emerald-50\/60{background-color:#ecfdf599}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-50\/80{background-color:#ecfdf5cc}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\/80{background-color:color-mix(in oklab,var(--color-emerald-50) 80%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\/60{background-color:#fff1f299}@supports (color:color-mix(in lab,red,red)){.bg-rose-50\/60{background-color:color-mix(in oklab,var(--color-rose-50) 60%,transparent)}}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-sky-50\/20{background-color:#f0f9ff33}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/20{background-color:color-mix(in oklab,var(--color-sky-50) 20%,transparent)}}.bg-sky-50\/30{background-color:#f0f9ff4d}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/30{background-color:color-mix(in oklab,var(--color-sky-50) 30%,transparent)}}.bg-sky-50\/40{background-color:#f0f9ff66}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/40{background-color:color-mix(in oklab,var(--color-sky-50) 40%,transparent)}}.bg-sky-50\/50{background-color:#f0f9ff80}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/50{background-color:color-mix(in oklab,var(--color-sky-50) 50%,transparent)}}.bg-sky-50\/60{background-color:#f0f9ff99}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/60{background-color:color-mix(in oklab,var(--color-sky-50) 60%,transparent)}}.bg-sky-50\/70{background-color:#f0f9ffb3}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/70{background-color:color-mix(in oklab,var(--color-sky-50) 70%,transparent)}}.bg-sky-50\/80{background-color:#f0f9ffcc}@supports (color:color-mix(in lab,red,red)){.bg-sky-50\/80{background-color:color-mix(in oklab,var(--color-sky-50) 80%,transparent)}}.bg-sky-100{background-color:var(--color-sky-100)}.bg-sky-100\/60{background-color:#dff2fe99}@supports (color:color-mix(in lab,red,red)){.bg-sky-100\/60{background-color:color-mix(in oklab,var(--color-sky-100) 60%,transparent)}}.bg-sky-200\/50{background-color:#b8e6fe80}@supports (color:color-mix(in lab,red,red)){.bg-sky-200\/50{background-color:color-mix(in oklab,var(--color-sky-200) 50%,transparent)}}.bg-sky-200\/60{background-color:#b8e6fe99}@supports (color:color-mix(in lab,red,red)){.bg-sky-200\/60{background-color:color-mix(in oklab,var(--color-sky-200) 60%,transparent)}}.bg-sky-400{background-color:var(--color-sky-400)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-sky-600{background-color:var(--color-sky-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\/60{background-color:#f8fafc99}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\/60{background-color:color-mix(in oklab,var(--color-slate-50) 60%,transparent)}}.bg-slate-50\/80{background-color:#f8fafccc}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\/80{background-color:color-mix(in oklab,var(--color-slate-50) 80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-100\/80{background-color:#f1f5f9cc}@supports (color:color-mix(in lab,red,red)){.bg-slate-100\/80{background-color:color-mix(in oklab,var(--color-slate-100) 80%,transparent)}}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\/60{background-color:#0f172b99}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\/60{background-color:color-mix(in oklab,var(--color-slate-900) 60%,transparent)}}.bg-slate-950{background-color:var(--color-slate-950)}.bg-slate-950\/60{background-color:#02061899}@supports (color:color-mix(in lab,red,red)){.bg-slate-950\/60{background-color:color-mix(in oklab,var(--color-slate-950) 60%,transparent)}}.bg-slate-950\/70{background-color:#020618b3}@supports (color:color-mix(in lab,red,red)){.bg-slate-950\/70{background-color:color-mix(in oklab,var(--color-slate-950) 70%,transparent)}}.bg-slate-950\/80{background-color:#020618cc}@supports (color:color-mix(in lab,red,red)){.bg-slate-950\/80{background-color:color-mix(in oklab,var(--color-slate-950) 80%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white) 90%,transparent)}}.bg-white\/95{background-color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.bg-white\/95{background-color:color-mix(in oklab,var(--color-white) 95%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-sky-500{--tw-gradient-from:var(--color-sky-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-950\/80{--tw-gradient-from:#020618cc}@supports (color:color-mix(in lab,red,red)){.from-slate-950\/80{--tw-gradient-from:color-mix(in oklab, var(--color-slate-950) 80%, transparent)}}.from-slate-950\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-blue-600{--tw-gradient-via:var(--color-blue-600);--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-slate-950\/20{--tw-gradient-via:#02061833}@supports (color:color-mix(in lab,red,red)){.via-slate-950\/20{--tw-gradient-via:color-mix(in oklab, var(--color-slate-950) 20%, transparent)}}.via-slate-950\/20{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-amber-400{--tw-gradient-to:var(--color-amber-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-amber-300{fill:var(--color-amber-300)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-7{padding-top:calc(var(--spacing) * 7)}.pr-1{padding-right:var(--spacing)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-7{padding-right:calc(var(--spacing) * 7)}.pr-11{padding-right:calc(var(--spacing) * 11)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-figtree{font-family:var(--font-figtree)}.font-fira{font-family:var(--font-fira)}.font-geist{font-family:var(--font-geist)}.font-ibm{font-family:var(--font-ibm)}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.2em\]{--tw-tracking:.2em;letter-spacing:.2em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-amber-300{color:var(--color-amber-300)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-emerald-950{color:var(--color-emerald-950)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-rose-900{color:var(--color-rose-900)}.text-sky-500{color:var(--color-sky-500)}.text-sky-600{color:var(--color-sky-600)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-900{color:var(--color-sky-900)}.text-sky-950{color:var(--color-sky-950)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-slate-950{color:var(--color-slate-950)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.placeholder-slate-400::placeholder{color:var(--color-slate-400)}.accent-sky-600{accent-color:var(--color-sky-600)}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sky-500\/20{--tw-shadow-color:#00a5ef33}@supports (color:color-mix(in lab,red,red)){.shadow-sky-500\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-sky-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-sky-900\/10{--tw-shadow-color:#024a701a}@supports (color:color-mix(in lab,red,red)){.shadow-sky-900\/10{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-sky-900) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-white{--tw-ring-color:var(--color-white)}.blur{--tw-blur:blur(8px);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,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));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,)}.drop-shadow-xs{--tw-drop-shadow-size:drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000d));--tw-drop-shadow:drop-shadow(var(--drop-shadow-xs));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,)}.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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-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,);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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-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,);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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-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,);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,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-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,);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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-slate-400::placeholder{color:var(--color-slate-400)}@media(hover:hover){.hover\:border-amber-500:hover{border-color:var(--color-amber-500)}.hover\:border-rose-200:hover{border-color:var(--color-rose-200)}.hover\:border-sky-300:hover{border-color:var(--color-sky-300)}.hover\:border-sky-500:hover{border-color:var(--color-sky-500)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-amber-200\/80:hover{background-color:#fee685cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-200\/80:hover{background-color:color-mix(in oklab,var(--color-amber-200) 80%,transparent)}}.hover\:bg-amber-300:hover{background-color:var(--color-amber-300)}.hover\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\:bg-sky-50:hover{background-color:var(--color-sky-50)}.hover\:bg-sky-50\/30:hover{background-color:#f0f9ff4d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-sky-50\/30:hover{background-color:color-mix(in oklab,var(--color-sky-50) 30%,transparent)}}.hover\:bg-sky-50\/60:hover{background-color:#f0f9ff99}@supports (color:color-mix(in lab,red,red)){.hover\:bg-sky-50\/60:hover{background-color:color-mix(in oklab,var(--color-sky-50) 60%,transparent)}}.hover\:bg-sky-100:hover{background-color:var(--color-sky-100)}.hover\:bg-sky-100\/50:hover{background-color:#dff2fe80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-sky-100\/50:hover{background-color:color-mix(in oklab,var(--color-sky-100) 50%,transparent)}}.hover\:bg-sky-100\/60:hover{background-color:#dff2fe99}@supports (color:color-mix(in lab,red,red)){.hover\:bg-sky-100\/60:hover{background-color:color-mix(in oklab,var(--color-sky-100) 60%,transparent)}}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:bg-slate-400:hover{background-color:var(--color-slate-400)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:from-sky-600:hover{--tw-gradient-from:var(--color-sky-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hover\:to-blue-700:hover{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hover\:text-amber-900:hover{color:var(--color-amber-900)}.hover\:text-amber-950:hover{color:var(--color-amber-950)}.hover\:text-rose-700:hover{color:var(--color-rose-700)}.hover\:text-sky-700:hover{color:var(--color-sky-700)}.hover\:text-sky-800:hover{color:var(--color-sky-800)}.hover\:text-sky-900:hover{color:var(--color-sky-900)}.hover\:text-slate-600:hover{color:var(--color-slate-600)}.hover\:text-slate-700:hover{color:var(--color-slate-700)}.hover\:text-slate-800:hover{color:var(--color-slate-800)}.hover\:text-slate-900:hover{color:var(--color-slate-900)}.hover\:text-slate-950:hover{color:var(--color-slate-950)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-xs:hover{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-sky-400:focus{border-color:var(--color-sky-400)}.focus\:bg-white:focus{background-color:var(--color-white)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-amber-400:focus{--tw-ring-color:var(--color-amber-400)}.focus\:ring-sky-100:focus{--tw-ring-color:var(--color-sky-100)}.focus\:ring-sky-500:focus{--tw-ring-color:var(--color-sky-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:scale-\[0\.99\]:active{scale:.99}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:top-\[65px\]{top:65px}.sm\:top-\[175px\]{top:175px}.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:p-4{padding:calc(var(--spacing) * 4)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-8{padding:calc(var(--spacing) * 8)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:48rem){.md\:hidden{display:none}.md\:inline{display:inline}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media(min-width:64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:80rem){.xl\:flex{display:flex}}}html{background:#f8fafc}body{background:#f8fafc;min-width:320px;margin:0;font-family:Figtree,sans-serif}button,input{font:inherit}.font-geist{font-family:Geist,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.font-ibm{font-family:IBM Plex Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.font-figtree{font-family:Figtree,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.font-fira{font-family:Fira Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/dist/assets/index-D_Mf2Vhc.js b/dist/assets/index-D_Mf2Vhc.js new file mode 100644 index 0000000..8c7aa1f --- /dev/null +++ b/dist/assets/index-D_Mf2Vhc.js @@ -0,0 +1,329 @@ +(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))r(g);new MutationObserver(g=>{for(const b of g)if(b.type==="childList")for(const S of b.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&r(S)}).observe(document,{childList:!0,subtree:!0});function x(g){const b={};return g.integrity&&(b.integrity=g.integrity),g.referrerPolicy&&(b.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?b.credentials="include":g.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function r(g){if(g.ep)return;g.ep=!0;const b=x(g);fetch(g.href,b)}})();function bx(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Hr={exports:{}},Js={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o0;function yx(){if(o0)return Js;o0=1;var u=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function x(r,g,b){var S=null;if(b!==void 0&&(S=""+b),g.key!==void 0&&(S=""+g.key),"key"in g){b={};for(var C in g)C!=="key"&&(b[C]=g[C])}else b=g;return g=b.ref,{$$typeof:u,type:r,key:S,ref:g!==void 0?g:null,props:b}}return Js.Fragment=d,Js.jsx=x,Js.jsxs=x,Js}var u0;function gx(){return u0||(u0=1,Hr.exports=yx()),Hr.exports}var s=gx(),Vr={exports:{}},xe={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var d0;function vx(){if(d0)return xe;d0=1;var u=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),U=Symbol.iterator;function J(h){return h===null||typeof h!="object"?null:(h=U&&h[U]||h["@@iterator"],typeof h=="function"?h:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,se={};function I(h,_,V){this.props=h,this.context=_,this.refs=se,this.updater=V||R}I.prototype.isReactComponent={},I.prototype.setState=function(h,_){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,_,"setState")},I.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function ee(){}ee.prototype=I.prototype;function be(h,_,V){this.props=h,this.context=_,this.refs=se,this.updater=V||R}var Oe=be.prototype=new ee;Oe.constructor=be,Z(Oe,I.prototype),Oe.isPureReactComponent=!0;var Ne=Array.isArray;function re(){}var F={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function v(h,_,V){var L=V.ref;return{$$typeof:u,type:h,key:_,ref:L!==void 0?L:null,props:V}}function m(h,_){return v(h.type,_,h.props)}function z(h){return typeof h=="object"&&h!==null&&h.$$typeof===u}function K(h){var _={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(V){return _[V]})}var Q=/\/+/g;function te(h,_){return typeof h=="object"&&h!==null&&h.key!=null?K(""+h.key):_.toString(36)}function he(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(re,re):(h.status="pending",h.then(function(_){h.status==="pending"&&(h.status="fulfilled",h.value=_)},function(_){h.status==="pending"&&(h.status="rejected",h.reason=_)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function T(h,_,V,L,le){var $=typeof h;($==="undefined"||$==="boolean")&&(h=null);var ce=!1;if(h===null)ce=!0;else switch($){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(h.$$typeof){case u:case d:ce=!0;break;case N:return ce=h._init,T(ce(h._payload),_,V,L,le)}}if(ce)return le=le(h),ce=L===""?"."+te(h,0):L,Ne(le)?(V="",ce!=null&&(V=ce.replace(Q,"$&/")+"/"),T(le,_,V,"",function(me){return me})):le!=null&&(z(le)&&(le=m(le,V+(le.key==null||h&&h.key===le.key?"":(""+le.key).replace(Q,"$&/")+"/")+ce)),_.push(le)),1;ce=0;var He=L===""?".":L+":";if(Ne(h))for(var ae=0;ae>>1,G=T[X];if(0>>1;Xg(V,Y))Lg(le,V)?(T[X]=le,T[L]=Y,X=L):(T[X]=V,T[_]=Y,X=_);else if(Lg(le,Y))T[X]=le,T[L]=Y,X=L;else break e}}return M}function g(T,M){var Y=T.sortIndex-M.sortIndex;return Y!==0?Y:T.id-M.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;u.unstable_now=function(){return b.now()}}else{var S=Date,C=S.now();u.unstable_now=function(){return S.now()-C}}var j=[],f=[],N=1,k=null,U=3,J=!1,R=!1,Z=!1,se=!1,I=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Oe(T){for(var M=x(f);M!==null;){if(M.callback===null)r(f);else if(M.startTime<=T)r(f),M.sortIndex=M.expirationTime,d(j,M);else break;M=x(f)}}function Ne(T){if(Z=!1,Oe(T),!R)if(x(j)!==null)R=!0,re||(re=!0,K());else{var M=x(f);M!==null&&he(Ne,M.startTime-T)}}var re=!1,F=-1,ne=5,v=-1;function m(){return se?!0:!(u.unstable_now()-vT&&m());){var X=k.callback;if(typeof X=="function"){k.callback=null,U=k.priorityLevel;var G=X(k.expirationTime<=T);if(T=u.unstable_now(),typeof G=="function"){k.callback=G,Oe(T),M=!0;break t}k===x(j)&&r(j),Oe(T)}else r(j);k=x(j)}if(k!==null)M=!0;else{var h=x(f);h!==null&&he(Ne,h.startTime-T),M=!1}}break e}finally{k=null,U=Y,J=!1}M=void 0}}finally{M?K():re=!1}}}var K;if(typeof be=="function")K=function(){be(z)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,te=Q.port2;Q.port1.onmessage=z,K=function(){te.postMessage(null)}}else K=function(){I(z,0)};function he(T,M){F=I(function(){T(u.unstable_now())},M)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(T){T.callback=null},u.unstable_forceFrameRate=function(T){0>T||125X?(T.sortIndex=Y,d(f,T),x(j)===null&&T===x(f)&&(Z?(ee(F),F=-1):Z=!0,he(Ne,Y-X))):(T.sortIndex=G,d(j,T),R||J||(R=!0,re||(re=!0,K()))),T},u.unstable_shouldYield=m,u.unstable_wrapCallback=function(T){var M=U;return function(){var Y=U;U=M;try{return T.apply(this,arguments)}finally{U=Y}}}})(Zr)),Zr}var m0;function jx(){return m0||(m0=1,Gr.exports=Sx()),Gr.exports}var Kr={exports:{}},jt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var x0;function Nx(){if(x0)return jt;x0=1;var u=ao();function d(j){var f="https://react.dev/errors/"+j;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(d){console.error(d)}}return u(),Kr.exports=Nx(),Kr.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var b0;function wx(){if(b0)return Fs;b0=1;var u=jx(),d=ao(),x=kx();function r(e){var t="https://react.dev/errors/"+e;if(1G||(e.current=X[G],X[G]=null,G--)}function V(e,t){G++,X[G]=e.current,e.current=t}var L=h(null),le=h(null),$=h(null),ce=h(null);function He(e,t){switch(V($,t),V(le,e),V(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tf(t),e=Mf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(L),V(L,e)}function ae(){_(L),_(le),_($)}function me(e){e.memoizedState!==null&&V(ce,e);var t=L.current,l=Mf(t,e.type);t!==l&&(V(le,e),V(L,l))}function Le(e){le.current===e&&(_(L),_(le)),ce.current===e&&(_(ce),Zs._currentValue=Y)}var fe,qe;function Ue(e){if(fe===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||"",qe=-1)":-1n||p[a]!==E[n]){var q=` +`+p[a].replace(" at new "," at ");return e.displayName&&q.includes("")&&(q=q.replace("",e.displayName)),q}while(1<=a&&0<=n);break}}}finally{Te=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ue(l):""}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return Ue(e.type);case 16:return Ue("Lazy");case 13:return e.child!==t&&t!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return Ue("Activity");default:return""}}function at(e){try{var t="",l=null;do t+=ge(e,l),l=e,e=e.return;while(e);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}var _e=Object.prototype.hasOwnProperty,Be=u.unstable_scheduleCallback,Je=u.unstable_cancelCallback,Ht=u.unstable_shouldYield,vt=u.unstable_requestPaint,We=u.unstable_now,et=u.unstable_getCurrentPriorityLevel,Nt=u.unstable_ImmediatePriority,Pe=u.unstable_UserBlockingPriority,st=u.unstable_NormalPriority,Tt=u.unstable_LowPriority,sl=u.unstable_IdlePriority,$l=u.log,ve=u.unstable_setDisableYieldValue,pe=null,Ge=null;function St(e){if(typeof $l=="function"&&ve(e),Ge&&typeof Ge.setStrictMode=="function")try{Ge.setStrictMode(pe,e)}catch{}}var dt=Math.clz32?Math.clz32:en,ba=Math.log,Ps=Math.LN2;function en(e){return e>>>=0,e===0?32:31-(ba(e)/Ps|0)|0}var tn=256,ln=262144,an=4194304;function Il(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=Il(a):(c&=o,c!==0?n=Il(c):l||(l=o&~e,l!==0&&(n=Il(l))))):(o=a&~i,o!==0?n=Il(o):c!==0?n=Il(c):l||(l=a&~e,l!==0&&(n=Il(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function as(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fo(){var e=an;return an<<=1,(an&62914560)===0&&(an=4194304),e}function Ai(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ss(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nh(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,p=e.expirationTimes,E=e.hiddenUpdates;for(l=c&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dh=/[\n"\\]/g;function Yt(e){return e.replace(dh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Di(e,t,l,a,n,i,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ui(e,c,Vt(t)):l!=null?Ui(e,c,Vt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Vt(o):e.removeAttribute("name")}function wo(e,t,l,a,n,i,c,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Mi(e);return}l=l!=null?""+Vt(l):"",t=t!=null?""+Vt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Mi(e)}function Ui(e,t,l){t==="number"&&rn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Na(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(cl)try{var rs={};Object.defineProperty(rs,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Hi=!1}var kl=null,Vi=null,un=null;function To(){if(un)return un;var e,t=Vi,l=t.length,a,n="value"in kl?kl.value:kl.textContent,i=n.length;for(e=0;e=ds),qo=" ",Bo=!1;function Ho(e,t){switch(e){case"keyup":return Bh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _a=!1;function Vh(e,t){switch(e){case"compositionend":return Vo(t);case"keypress":return t.which!==32?null:(Bo=!0,qo);case"textInput":return e=t.data,e===qo&&Bo?null:e;default:return null}}function Yh(e,t){if(_a)return e==="compositionend"||!Qi&&Ho(e,t)?(e=To(),un=Vi=kl=null,_a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Fo(l)}}function Io(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Io(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=rn(e.document)}return t}function Fi(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")}var $h=cl&&"documentMode"in document&&11>=document.documentMode,Aa=null,$i=null,xs=null,Ii=!1;function Po(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ii||Aa==null||Aa!==rn(a)||(a=Aa,"selectionStart"in a&&Fi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),xs&&ms(xs,a)||(xs=a,a=ai($i,"onSelect"),0>=c,n-=c,el=1<<32-dt(t)+n|l<Se?(Ee=P,P=null):Ee=P.sibling;var De=O(w,P,A[Se],B);if(De===null){P===null&&(P=Ee);break}e&&P&&De.alternate===null&&t(w,P),y=i(De,y,Se),Me===null?ie=De:Me.sibling=De,Me=De,P=Ee}if(Se===A.length)return l(w,P),ze&&ol(w,Se),ie;if(P===null){for(;SeSe?(Ee=P,P=null):Ee=P.sibling;var Ql=O(w,P,De.value,B);if(Ql===null){P===null&&(P=Ee);break}e&&P&&Ql.alternate===null&&t(w,P),y=i(Ql,y,Se),Me===null?ie=Ql:Me.sibling=Ql,Me=Ql,P=Ee}if(De.done)return l(w,P),ze&&ol(w,Se),ie;if(P===null){for(;!De.done;Se++,De=A.next())De=H(w,De.value,B),De!==null&&(y=i(De,y,Se),Me===null?ie=De:Me.sibling=De,Me=De);return ze&&ol(w,Se),ie}for(P=a(P);!De.done;Se++,De=A.next())De=D(P,w,Se,De.value,B),De!==null&&(e&&De.alternate!==null&&P.delete(De.key===null?Se:De.key),y=i(De,y,Se),Me===null?ie=De:Me.sibling=De,Me=De);return e&&P.forEach(function(px){return t(w,px)}),ze&&ol(w,Se),ie}function Qe(w,y,A,B){if(typeof A=="object"&&A!==null&&A.type===Z&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case J:e:{for(var ie=A.key;y!==null;){if(y.key===ie){if(ie=A.type,ie===Z){if(y.tag===7){l(w,y.sibling),B=n(y,A.props.children),B.return=w,w=B;break e}}else if(y.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ne&&ra(ie)===y.type){l(w,y.sibling),B=n(y,A.props),Ss(B,A),B.return=w,w=B;break e}l(w,y);break}else t(w,y);y=y.sibling}A.type===Z?(B=aa(A.props.children,w.mode,B,A.key),B.return=w,w=B):(B=vn(A.type,A.key,A.props,null,w.mode,B),Ss(B,A),B.return=w,w=B)}return c(w);case R:e:{for(ie=A.key;y!==null;){if(y.key===ie)if(y.tag===4&&y.stateNode.containerInfo===A.containerInfo&&y.stateNode.implementation===A.implementation){l(w,y.sibling),B=n(y,A.children||[]),B.return=w,w=B;break e}else{l(w,y);break}else t(w,y);y=y.sibling}B=sc(A,w.mode,B),B.return=w,w=B}return c(w);case ne:return A=ra(A),Qe(w,y,A,B)}if(he(A))return W(w,y,A,B);if(K(A)){if(ie=K(A),typeof ie!="function")throw Error(r(150));return A=ie.call(A),ue(w,y,A,B)}if(typeof A.then=="function")return Qe(w,y,_n(A),B);if(A.$$typeof===be)return Qe(w,y,Nn(w,A),B);An(w,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,y!==null&&y.tag===6?(l(w,y.sibling),B=n(y,A),B.return=w,w=B):(l(w,y),B=ac(A,w.mode,B),B.return=w,w=B),c(w)):l(w,y)}return function(w,y,A,B){try{vs=0;var ie=Qe(w,y,A,B);return Ba=null,ie}catch(P){if(P===qa||P===wn)throw P;var Me=Dt(29,P,null,w.mode);return Me.lanes=B,Me.return=w,Me}finally{}}}var ua=ju(!0),Nu=ju(!1),El=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ol(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=gn(e),iu(e,null,l),t}return yn(e,a,t,l),gn(e)}function js(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,mo(e,l)}}function yc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var gc=!1;function Ns(){if(gc){var e=La;if(e!==null)throw e}}function ks(e,t,l,a){gc=!1;var n=e.updateQueue;El=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var p=o,E=p.next;p.next=null,c===null?i=E:c.next=E,c=p;var q=e.alternate;q!==null&&(q=q.updateQueue,o=q.lastBaseUpdate,o!==c&&(o===null?q.firstBaseUpdate=E:o.next=E,q.lastBaseUpdate=p))}if(i!==null){var H=n.baseState;c=0,q=E=p=null,o=i;do{var O=o.lane&-536870913,D=O!==o.lane;if(D?(Ae&O)===O:(a&O)===O){O!==0&&O===Ra&&(gc=!0),q!==null&&(q=q.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var W=e,ue=o;O=t;var Qe=l;switch(ue.tag){case 1:if(W=ue.payload,typeof W=="function"){H=W.call(Qe,H,O);break e}H=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ue.payload,O=typeof W=="function"?W.call(Qe,H,O):W,O==null)break e;H=k({},H,O);break e;case 2:El=!0}}O=o.callback,O!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[O]:D.push(O))}else D={lane:O,tag:o.tag,payload:o.payload,callback:o.callback,next:null},q===null?(E=q=D,p=H):q=q.next=D,c|=O;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;D=o,o=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);q===null&&(p=H),n.baseState=p,n.firstBaseUpdate=E,n.lastBaseUpdate=q,i===null&&(n.shared.lanes=0),Rl|=c,e.lanes=c,e.memoizedState=H}}function ku(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wu(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ei?i:8;var c=T.T,o={};T.T=o,qc(e,!1,t,l);try{var p=n(),E=T.S;if(E!==null&&E(o,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var q=nm(p,a);_s(e,t,q,Bt(e))}else _s(e,t,a,Bt(e))}catch(H){_s(e,t,{then:function(){},status:"rejected",reason:H},Bt())}finally{M.p=i,c!==null&&o.types!==null&&(c.types=o.types),T.T=c}}function dm(){}function Rc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=ad(e).queue;ld(e,n,t,Y,l===null?dm:function(){return sd(e),l(a)})}function ad(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sd(e){var t=ad(e);t.next===null&&(t=e.alternate.memoizedState),_s(e,t.next.queue,{},Bt())}function Lc(){return bt(Zs)}function nd(){return it().memoizedState}function id(){return it().memoizedState}function fm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Bt();e=zl(l);var a=Ol(t,e,l);a!==null&&(Ot(a,t,l),js(a,t,l)),t={cache:fc()},e.payload=t;return}t=t.return}}function hm(e,t,l){var a=Bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qn(e)?rd(t,l):(l=tc(e,t,l,a),l!==null&&(Ot(l,e,a),od(l,t,a)))}function cd(e,t,l){var a=Bt();_s(e,t,l,a)}function _s(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(qn(e))rd(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,o=i(c,l);if(n.hasEagerState=!0,n.eagerState=o,Mt(o,c))return yn(e,t,n,0),Xe===null&&bn(),!1}catch{}finally{}if(l=tc(e,t,n,a),l!==null)return Ot(l,e,a),od(l,t,a),!0}return!1}function qc(e,t,l,a){if(a={lane:2,revertLane:pr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},qn(e)){if(t)throw Error(r(479))}else t=tc(e,l,a,2),t!==null&&Ot(t,e,2)}function qn(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function rd(e,t){Va=On=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,mo(e,l)}}var As={readContext:bt,use:Dn,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};As.useEffectEvent=tt;var ud={readContext:bt,use:Dn,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Xu,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Rn(4194308,4,Iu.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Rn(4194308,4,e,t)},useInsertionEffect:function(e,t){Rn(4,2,e,t)},useMemo:function(e,t){var l=kt();t=t===void 0?null:t;var a=e();if(da){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=kt();if(l!==void 0){var n=l(t);if(da){St(!0);try{l(t)}finally{St(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=hm.bind(null,ye,e),[a.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oc(e);var t=e.queue,l=cd.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=kt();return Uc(l,e,t)},useTransition:function(){var e=Oc(!1);return e=ld.bind(null,ye,e.queue,!0,!1),kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ye,n=kt();if(ze){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Xe===null)throw Error(r(349));(Ae&127)!==0||Ou(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Xu(Mu.bind(null,a,i,e),[e]),a.flags|=2048,Ga(9,{destroy:void 0},Tu.bind(null,a,i,l,t),null),l},useId:function(){var e=kt(),t=Xe.identifierPrefix;if(ze){var l=tl,a=el;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Tn++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[xt]=t,i[wt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(gt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&xl(t)}}return $e(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&xl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=$.current,Da(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=pt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[xt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||zf(e.nodeValue,l)),e||_l(t,!0)}else e=si(e).createTextNode(a),e[xt]=t,t.stateNode=e}return $e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Da(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=t}else sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),e=!1}else l=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return $e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Da(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[xt]=t}else sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),n=!1}else n=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Gn(t,t.updateQueue),$e(t),null);case 4:return ae(),e===null&&vr(t.stateNode.containerInfo),$e(t),null;case 10:return dl(t.type),$e(t),null;case 19:if(_(nt),a=t.memoizedState,a===null)return $e(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)zs(a,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=zn(e),i!==null){for(t.flags|=128,zs(a,!1),e=i.updateQueue,t.updateQueue=e,Gn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)cu(l,e),l=l.sibling;return V(nt,nt.current&1|2),ze&&ol(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&We()>Jn&&(t.flags|=128,n=!0,zs(a,!1),t.lanes=4194304)}else{if(!n)if(e=zn(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gn(t,e),zs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ze)return $e(t),null}else 2*We()-a.renderingStartTime>Jn&&l!==536870912&&(t.flags|=128,n=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=We(),e.sibling=null,l=nt.current,V(nt,n?l&1|2:l&1),ze&&ol(t,a.treeForkCount),e):($e(t),null);case 22:case 23:return Rt(t),Sc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),l=t.updateQueue,l!==null&&Gn(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&_(ca),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),dl(ct),$e(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ym(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dl(ct),ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Le(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(r(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(nt),null;case 4:return ae(),null;case 10:return dl(t.type),null;case 22:case 23:return Rt(t),Sc(),e!==null&&_(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dl(ct),null;case 25:return null;default:return null}}function Dd(e,t){switch(ic(t),t.tag){case 3:dl(ct),ae();break;case 26:case 27:case 5:Le(t);break;case 4:ae();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:_(nt);break;case 10:dl(t.type);break;case 22:case 23:Rt(t),Sc(),e!==null&&_(ca);break;case 24:dl(ct)}}function Os(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(o){Ye(t,t.return,o)}}function Dl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=t;var p=l,E=o;try{E()}catch(q){Ye(n,p,q)}}}a=a.next}while(a!==i)}}catch(q){Ye(t,t.return,q)}}function Ud(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wu(t,l)}catch(a){Ye(e,e.return,a)}}}function Rd(e,t,l){l.props=fa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ye(e,t,a)}}function Ts(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ye(e,t,n)}}function ll(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ye(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ye(e,t,n)}else l.current=null}function Ld(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ye(e,e.return,n)}}function Pc(e,t,l){try{var a=e.stateNode;Hm(a,e.type,l,t),a[wt]=t}catch(n){Ye(e,e.return,n)}}function qd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vl(e.type)||e.tag===4}function er(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qd(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.tag===27&&Vl(e.type)||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 tr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=il));else if(a!==4&&(a===27&&Vl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(tr(e,t,l),e=e.sibling;e!==null;)tr(e,t,l),e=e.sibling}function Zn(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Vl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Zn(e,t,l),e=e.sibling;e!==null;)Zn(e,t,l),e=e.sibling}function Bd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);gt(t,a,l),t[xt]=e,t[wt]=l}catch(i){Ye(e,e.return,i)}}var pl=!1,ut=!1,lr=!1,Hd=typeof WeakSet=="function"?WeakSet:Set,mt=null;function gm(e,t){if(e=e.containerInfo,Nr=di,e=Wo(e),Fi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,o=-1,p=-1,E=0,q=0,H=e,O=null;t:for(;;){for(var D;H!==l||n!==0&&H.nodeType!==3||(o=c+n),H!==i||a!==0&&H.nodeType!==3||(p=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(D=H.firstChild)!==null;)O=H,H=D;for(;;){if(H===e)break t;if(O===l&&++E===n&&(o=c),O===i&&++q===a&&(p=c),(D=H.nextSibling)!==null)break;H=O,O=H.parentNode}H=D}l=o===-1||p===-1?null:{start:o,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(kr={focusedElem:e,selectionRange:l},di=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),gt(i,a,l),i[xt]=e,ht(i),a=i;break e;case"link":var c=Xf("link","href",n).get(a+(l.href||""));if(c){for(var o=0;oQe&&(c=Qe,Qe=ue,ue=c);var w=$o(o,ue),y=$o(o,Qe);if(w&&y&&(D.rangeCount!==1||D.anchorNode!==w.node||D.anchorOffset!==w.offset||D.focusNode!==y.node||D.focusOffset!==y.offset)){var A=H.createRange();A.setStart(w.node,w.offset),D.removeAllRanges(),ue>Qe?(D.addRange(A),D.extend(y.node,y.offset)):(A.setEnd(y.node,y.offset),D.addRange(A))}}}}for(H=[],D=o;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;ol?32:l,T.T=null,l=or,or=null;var i=ql,c=Sl;if(ft=0,Ja=ql=null,Sl=0,(Re&6)!==0)throw Error(r(331));var o=Re;if(Re|=4,Id(i.current),Jd(i,i.current,c,l),Re=o,qs(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot=="function")try{Ge.onPostCommitFiberRoot(pe,i)}catch{}return!0}finally{M.p=n,T.T=a,pf(e,t)}}function yf(e,t,l){t=Zt(l,t),t=Yc(e.stateNode,t,2),e=Ol(e,t,2),e!==null&&(ss(e,2),al(e))}function Ye(e,t,l){if(e.tag===3)yf(e,e,l);else for(;t!==null;){if(t.tag===3){yf(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ll===null||!Ll.has(a))){e=Zt(l,e),l=yd(2),a=Ol(t,l,2),a!==null&&(gd(l,a,t,e),ss(a,2),al(a));break}}t=t.return}}function hr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new jm;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(nr=!0,n.add(l),e=_m.bind(null,e,t,l),t.then(e,e))}function _m(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(Ae&l)===l&&(lt===4||lt===3&&(Ae&62914560)===Ae&&300>We()-Xn?(Re&2)===0&&Fa(e,0):ir|=l,Xa===Ae&&(Xa=0)),al(e)}function gf(e,t){t===0&&(t=fo()),e=la(e,t),e!==null&&(ss(e,t),al(e))}function Am(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),gf(e,l)}function Em(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),gf(e,l)}function zm(e,t){return Be(e,t)}var ei=null,Ia=null,mr=!1,ti=!1,xr=!1,Hl=0;function al(e){e!==Ia&&e.next===null&&(Ia===null?ei=Ia=e:Ia=Ia.next=e),ti=!0,mr||(mr=!0,Tm())}function qs(e,t){if(!xr&&ti){xr=!0;do for(var l=!1,a=ei;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-dt(42|e)+1)-1,i&=n&~(c&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Nf(a,i))}else i=Ae,i=sn(a,a===Xe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||as(a,i)||(l=!0,Nf(a,i));a=a.next}while(l);xr=!1}}function Om(){vf()}function vf(){ti=mr=!1;var e=0;Hl!==0&&Ym()&&(e=Hl);for(var t=We(),l=null,a=ei;a!==null;){var n=a.next,i=Sf(a,t);i===0?(a.next=null,l===null?ei=n:l.next=n,n===null&&(Ia=l)):(l=a,(e!==0||(i&3)!==0)&&(ti=!0)),a=n}ft!==0&&ft!==5||qs(e),Hl!==0&&(Hl=0)}function Sf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0o)break;var q=p.transferSize,H=p.initiatorType;q&&Of(H)&&(p=p.responseEnd,c+=q*(p"u"?null:document;function Gf(e,t,l){var a=Wa;if(a&&typeof t=="string"&&t){var n=Yt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Yf.has(n)||(Yf.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),gt(t,"link",e),ht(t),a.head.appendChild(t)))}}function Im(e){jl.D(e),Gf("dns-prefetch",e,null)}function Wm(e,t){jl.C(e,t),Gf("preconnect",e,t)}function Pm(e,t,l){jl.L(e,t,l);var a=Wa;if(a&&e&&t){var n='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Yt(l.imageSizes)+'"]')):n+='[href="'+Yt(e)+'"]';var i=n;switch(t){case"style":i=Pa(e);break;case"script":i=es(e)}$t.has(i)||(e=k({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Ys(i))||t==="script"&&a.querySelector(Gs(i))||(t=a.createElement("link"),gt(t,"link",e),ht(t),a.head.appendChild(t)))}}function ex(e,t){jl.m(e,t);var l=Wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Yt(a)+'"][href="'+Yt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=es(e)}if(!$t.has(i)&&(e=k({rel:"modulepreload",href:e},t),$t.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gs(i)))return}a=l.createElement("link"),gt(a,"link",e),ht(a),l.head.appendChild(a)}}}function tx(e,t,l){jl.S(e,t,l);var a=Wa;if(a&&e){var n=Sa(a).hoistableStyles,i=Pa(e);t=t||"default";var c=n.get(i);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(Ys(i)))o.loading=5;else{e=k({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(i))&&Or(e,l);var p=c=a.createElement("link");ht(p),gt(p,"link",e),p._p=new Promise(function(E,q){p.onload=E,p.onerror=q}),p.addEventListener("load",function(){o.loading|=1}),p.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ii(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(i,c)}}}function lx(e,t){jl.X(e,t);var l=Wa;if(l&&e){var a=Sa(l).hoistableScripts,n=es(e),i=a.get(n);i||(i=l.querySelector(Gs(n)),i||(e=k({src:e,async:!0},t),(t=$t.get(n))&&Tr(e,t),i=l.createElement("script"),ht(i),gt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ax(e,t){jl.M(e,t);var l=Wa;if(l&&e){var a=Sa(l).hoistableScripts,n=es(e),i=a.get(n);i||(i=l.querySelector(Gs(n)),i||(e=k({src:e,async:!0,type:"module"},t),(t=$t.get(n))&&Tr(e,t),i=l.createElement("script"),ht(i),gt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Zf(e,t,l,a){var n=(n=$.current)?ni(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Pa(l.href),l=Sa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Pa(l.href);var i=Sa(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Ys(e)))&&!i._p&&(c.instance=i,c.state.loading=5),$t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$t.set(e,l),i||sx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=es(l),l=Sa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Pa(e){return'href="'+Yt(e)+'"'}function Ys(e){return'link[rel="stylesheet"]['+e+"]"}function Kf(e){return k({},e,{"data-precedence":e.precedence,precedence:null})}function sx(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),gt(t,"link",l),ht(t),e.head.appendChild(t))}function es(e){return'[src="'+Yt(e)+'"]'}function Gs(e){return"script[async]"+e}function Qf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Yt(l.href)+'"]');if(a)return t.instance=a,ht(a),a;var n=k({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ht(a),gt(a,"style",n),ii(a,l.precedence,e),t.instance=a;case"stylesheet":n=Pa(l.href);var i=e.querySelector(Ys(n));if(i)return t.state.loading|=4,t.instance=i,ht(i),i;a=Kf(l),(n=$t.get(n))&&Or(a,n),i=(e.ownerDocument||e).createElement("link"),ht(i);var c=i;return c._p=new Promise(function(o,p){c.onload=o,c.onerror=p}),gt(i,"link",a),t.state.loading|=4,ii(i,l.precedence,e),t.instance=i;case"script":return i=es(l.src),(n=e.querySelector(Gs(i)))?(t.instance=n,ht(n),n):(a=l,(n=$t.get(i))&&(a=k({},l),Tr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ht(n),gt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ii(a,l.precedence,e));return t.instance}function ii(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c title"):null)}function nx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ff(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ix(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Pa(a.href),i=t.querySelector(Ys(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ri.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,ht(i);return}i=t.ownerDocument||t,a=Kf(a),(n=$t.get(n))&&Or(a,n),i=i.createElement("link"),ht(i);var c=i;c._p=new Promise(function(o,p){c.onload=o,c.onerror=p}),gt(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ri.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Mr=0;function cx(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0Mr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ri(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oi=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oi=new Map,t.forEach(rx,e),oi=null,ri.call(e))}function rx(e,t){if(!(t.state.loading&4)){var l=oi.get(e);if(l)var a=l.get(null);else{l=new Map,oi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(d){console.error(d)}}return u(),Yr.exports=wx(),Yr.exports}var _x=Cx();const so="https://dbit.digitalcompass.agency".replace(/\/$/,""),Si="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE",Ax="https://agenteit.digitalcompass.agency/webhook/lucozade-auth-v6",no="lucozade-audit-auth-session",io="lucozade-audit-auth-tab-session",$r="lucozade-audit-remembered-email";function O0(){if(!so||!Si)throw new Error("Authentication is not configured. Check the Supabase environment variables.")}function co(u,d){return(u==null?void 0:u.msg)||(u==null?void 0:u.message)||(u==null?void 0:u.error_description)||(u==null?void 0:u.error)||d}function Ex(){const u="/lucozade/";return new URL(u,window.location.origin).toString()}async function ls(u,d,x){O0();const r=await fetch(`${so}${u}`,{...d,cache:"no-store",headers:{apikey:Si,Authorization:`Bearer ${x||Si}`,"Content-Type":"application/json",...d.headers||{}}}),g=await r.json().catch(()=>({}));if(!r.ok)throw new Error(co(g,`Authentication error (${r.status})`));return g}async function T0(u,d){var b;const x=new AbortController,r=window.setTimeout(()=>x.abort(),6e4),g=new URLSearchParams({action:u,email:d.email.trim().toLowerCase(),fullName:((b=d.fullName)==null?void 0:b.trim())||"",password:d.password||"",redirectUrl:Ex(),website:""});try{const S=await fetch(Ax,{method:"POST",body:g,signal:x.signal,cache:"no-store",credentials:"omit",mode:"cors",headers:{Accept:"application/json"}}),C=await S.text();let j={};if(C)try{j=JSON.parse(C)}catch{j={message:C}}if(!S.ok||j.ok===!1)throw new Error(co(j,`Authentication service error (${S.status})`));return j}catch(S){throw(S==null?void 0:S.name)==="AbortError"?new Error("The authentication service took too long to respond. Please try again."):S instanceof TypeError||String((S==null?void 0:S.message)||"").toLowerCase().includes("failed to fetch")?new Error("The authentication service could not be reached. Please try again."):S}finally{window.clearTimeout(r)}}function M0(u,d){const x=u.user||d;return!u.access_token||!u.refresh_token||!x?null:{access_token:u.access_token,refresh_token:u.refresh_token,expires_at:u.expires_at||Math.floor(Date.now()/1e3)+(u.expires_in||3600),token_type:u.token_type,user:x}}async function D0(u){if(!u)throw new Error("The authentication token is missing.");return ls("/auth/v1/user",{method:"GET"},u)}async function ro(u){O0();const d=encodeURIComponent(u.user.id),x=await fetch(`${so}/rest/v1/lucozade_access?user_id=eq.${d}&is_active=eq.true&select=user_id`,{method:"GET",cache:"no-store",headers:{apikey:Si,Authorization:`Bearer ${u.access_token}`,Accept:"application/json"}}),r=await x.json().catch(()=>[]);if(!x.ok)throw new Error(co(r,"Unable to verify access to this application."));if(!Array.isArray(r)||r.length===0)throw new Error("This account is not authorized to access this application.")}function Fl(){localStorage.removeItem(no),sessionStorage.removeItem(io)}function U0(u,d=!1){if(Fl(),!u)return;const x=JSON.stringify({...u,remember:d});d?localStorage.setItem(no,x):sessionStorage.setItem(io,x)}function g0(u,d){var x;if(!u)return null;try{const r=JSON.parse(u);return!(r!=null&&r.access_token)||!(r!=null&&r.refresh_token)||!((x=r==null?void 0:r.user)!=null&&x.id)?null:{...r,remember:d}}catch{return null}}function zx(){const u=g0(sessionStorage.getItem(io),!1);if(u)return u;const d=g0(localStorage.getItem(no),!0);return d||(Fl(),null)}function Ox(){return(localStorage.getItem($r)||"").trim().toLowerCase()}function R0(u,d){d?localStorage.setItem($r,u.trim().toLowerCase()):localStorage.removeItem($r)}async function L0(u,d,x=!1){const r=u.trim().toLowerCase(),g=await ls("/auth/v1/token?grant_type=password",{method:"POST",body:JSON.stringify({email:r,password:d})}),b=g.user||await D0(g.access_token||""),S=M0(g,b);if(!S)throw new Error("The session could not be started.");const C={...S,remember:x};try{await ro(C)}catch(j){throw Fl(),j}return R0(r,x),U0(C,x),C}async function Tx(u,d,x){const r=d.trim().toLowerCase(),g=await T0("register",{fullName:u.trim(),email:r,password:x});let b=null;for(const C of[100,250,500,900,1500,2500]){await new Promise(j=>window.setTimeout(j,C));try{return{session:await L0(r,x,!1),message:g.message||"Account created successfully."}}catch(j){b=j}}const S=b instanceof Error?b.message:"";return{session:null,message:g.message||S||"Account created successfully. Sign in with your email and password."}}async function Mx(u){return(await T0("recover",{email:u.trim().toLowerCase()})).message||"If an active account exists, a recovery link has been sent."}function Dx(){return new URLSearchParams(window.location.hash.replace(/^#/,""))}async function Ux(){const u=Dx(),d=(u.get("error_description")||u.get("error")||"").trim();if(d)return{session:null,error:d};const x=(u.get("type")||"").toLowerCase(),r=(u.get("access_token")||"").trim();if(x!=="recovery"||!r)return{session:null,error:""};try{const g=await D0(r),b=Number(u.get("expires_in")||"3600");return{session:{access_token:r,refresh_token:(u.get("refresh_token")||"").trim()||void 0,token_type:(u.get("token_type")||"bearer").trim(),expires_at:Math.floor(Date.now()/1e3)+(Number.isFinite(b)?b:3600),user:g},error:""}}catch(g){return{session:null,error:(g==null?void 0:g.message)||"The recovery link is invalid or has expired."}}}async function Rx(u,d){if(!(u!=null&&u.access_token))throw new Error("The recovery link is invalid or has expired.");if(u.expires_at*1e3<=Date.now())throw new Error("The recovery link has expired. Request a new one.");await ls("/auth/v1/user",{method:"PUT",body:JSON.stringify({password:d})},u.access_token);try{await ls("/auth/v1/logout",{method:"POST"},u.access_token)}catch{}Fl()}function v0(){window.history.replaceState({},document.title,`${window.location.pathname}${window.location.search}`)}async function q0(u){try{const d=await ls("/auth/v1/token?grant_type=refresh_token",{method:"POST",body:JSON.stringify({refresh_token:u.refresh_token})}),x=M0(d,d.user||u.user);if(!x)return Fl(),null;const r={...x,remember:!!u.remember};return await ro(r),U0(r,!!r.remember),r}catch{return Fl(),null}}async function Lx(){const u=zx();if(!u)return null;if(u.expires_at*1e3<=Date.now()+6e4)return q0(u);try{return await ro(u),u}catch{return Fl(),null}}async function qx(u){try{u!=null&&u.access_token&&await ls("/auth/v1/logout",{method:"POST"},u.access_token)}catch{}finally{Fl()}}var vi={exports:{}};/* @license +Papa Parse +v5.5.4 +https://github.com/mholt/PapaParse +License: MIT +*/var Bx=vi.exports,S0;function Hx(){return S0||(S0=1,(function(u,d){((x,r)=>{u.exports=r()})(Bx,function x(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},g,b=!r.document&&!!r.postMessage,S=r.IS_PAPA_WORKER||!1,C={},j=0,f={};function N(v){return v.charCodeAt(0)===65279?v.slice(1):v}function k(v){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(m){var z=re(m);z.chunkSize=parseInt(z.chunkSize),m.step||m.chunk||(z.chunkSize=null),this._handle=new se(z),(this._handle.streamer=this)._config=z}).call(this,v),this.parseChunk=function(m,z){var K=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),S)r.postMessage({results:Q,workerId:f.WORKER_ID,finished:K});else if(ne(this._config.chunk)&&!z){if(this._config.chunk(Q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=Q=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Q.data),this._completeResults.errors=this._completeResults.errors.concat(Q.errors),this._completeResults.meta=Q.meta),this._completed||!K||!ne(this._config.complete)||Q&&Q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),K||Q&&Q.meta.paused||this._nextChunk(),Q}this._halted=!0},this._sendError=function(m){ne(this._config.error)?this._config.error(m):S&&this._config.error&&r.postMessage({workerId:f.WORKER_ID,error:m,finished:!1})}}function U(v){var m;(v=v||{}).chunkSize||(v.chunkSize=f.RemoteChunkSize),k.call(this,v),this._nextChunk=b?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(z){this._input=z,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(m=new XMLHttpRequest,this._config.withCredentials&&(m.withCredentials=this._config.withCredentials),b||(m.onload=F(this._chunkLoaded,this),m.onerror=F(this._chunkError,this)),m.open(this._config.downloadRequestBody?"POST":"GET",this._input,!b),this._config.downloadRequestHeaders){var z,K=this._config.downloadRequestHeaders;for(z in K)m.setRequestHeader(z,K[z])}var Q;this._config.chunkSize&&(Q=this._start+this._config.chunkSize-1,m.setRequestHeader("Range","bytes="+this._start+"-"+Q));try{m.send(this._config.downloadRequestBody)}catch(te){this._chunkError(te.message)}b&&m.status===0&&this._chunkError()}},this._chunkLoaded=function(){m.readyState===4&&(m.status<200||400<=m.status?this._chunkError():(this._start+=this._config.chunkSize||m.responseText.length,this._finished=!this._config.chunkSize||this._start>=(z=>(z=z.getResponseHeader("Content-Range"))!==null?parseInt(z.substring(z.lastIndexOf("/")+1)):-1)(m),this.parseChunk(m.responseText)))},this._chunkError=function(z){z=m.statusText||z,this._sendError(new Error(z))}}function J(v){(v=v||{}).chunkSize||(v.chunkSize=f.LocalChunkSize),k.call(this,v);var m,z,K=typeof FileReader<"u";this.stream=function(Q){this._input=Q,z=Q.slice||Q.webkitSlice||Q.mozSlice,K?((m=new FileReader).onload=F(this._chunkLoaded,this),m.onerror=F(this._chunkError,this)):m=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Q.target.result)},this._chunkError=function(){this._sendError(m.error)}}function R(v){var m;k.call(this,v=v||{}),this.stream=function(z){return m=z,this._nextChunk()},this._nextChunk=function(){var z,K;if(!this._finished)return z=this._config.chunkSize,m=z?(K=m.substring(0,z),m.substring(z)):(K=m,""),this._finished=!m,this.parseChunk(K)}}function Z(v){k.call(this,v=v||{});var m=[],z=!0,K=!1;this.pause=function(){k.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){k.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Q){this._input=Q,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){K&&m.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),m.length?this.parseChunk(m.shift()):z=!0},this._streamData=F(function(Q){try{m.push(typeof Q=="string"?Q:Q.toString(this._config.encoding)),z&&(z=!1,this._checkIsFinished(),this.parseChunk(m.shift()))}catch(te){this._streamError(te)}},this),this._streamError=F(function(Q){this._streamCleanUp(),this._sendError(Q)},this),this._streamEnd=F(function(){this._streamCleanUp(),K=!0,this._streamData("")},this),this._streamCleanUp=F(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function se(v){var m,z,K,Q,te=Math.pow(2,53),he=-te,T=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,M=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Y=this,X=0,G=0,h=!1,_=!1,V=[],L={data:[],errors:[],meta:{}};function le(ae){return v.skipEmptyLines==="greedy"?ae.join("").trim()==="":ae.length===1&&ae[0].length===0}function $(){if(L&&K&&(He("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),K=!1),v.skipEmptyLines&&(L.data=L.data.filter(function(qe){return!le(qe)})),ce()){let qe=function(Ue,Te){Ue=N(Ue),ne(v.transformHeader)&&(Ue=v.transformHeader(Ue,Te)),V.push(Ue)};var fe=qe;if(L)if(Array.isArray(L.data[0])){for(var ae=0;ce()&&ae(Je=>(v.dynamicTypingFunction&&v.dynamicTyping[Je]===void 0&&(v.dynamicTyping[Je]=v.dynamicTypingFunction(Je)),(v.dynamicTyping[Je]||v.dynamicTyping)===!0))(_e)?Be==="true"||Be==="TRUE"||Be!=="false"&&Be!=="FALSE"&&((Je=>{if(T.test(Je)&&(Je=parseFloat(Je),he=V.length?"__parsed_extra":V[Ce]:ge,at=v.transform?v.transform(at,ge):at);ge==="__parsed_extra"?(Te[ge]=Te[ge]||[],Te[ge].push(at)):Te[ge]=at}return v.header&&(Ce>V.length?He("FieldMismatch","TooManyFields","Too many fields: expected "+V.length+" fields but parsed "+Ce,G+Ue):Cev.preview?z.abort():(L.data=L.data[0],Q(L,Y))))}),this.parse=function(ae,me,Le){var fe=v.quoteChar||'"',fe=(v.newline||(v.newline=this.guessLineEndings(ae,fe)),K=!1,v.delimiter?ne(v.delimiter)&&(v.delimiter=v.delimiter(ae),L.meta.delimiter=v.delimiter):((fe=((qe,Ue,Te,Ce,ge)=>{var at,_e,Be,Je;ge=ge||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var Ht=0;Ht=Le.length/2?`\r +`:"\r"}}function I(v){return v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ee(v){var m=(v=v||{}).delimiter,z=v.newline,K=v.comments,Q=v.step,te=v.preview,he=v.fastMode,T=null,M=!1,Y=v.quoteChar==null?'"':v.quoteChar,X=Y;if(v.escapeChar!==void 0&&(X=v.escapeChar),(typeof m!="string"||-1=te)return et(!0);break}Le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:me.length,index:G}),_e++}}else if(K&&fe.length===0&&_.substring(G,G+He)===K){if(ge===-1)return et();G=ge+ce,ge=_.indexOf(z,G),Ce=_.indexOf(m,G)}else if(Ce!==-1&&(Ce=te)return et(!0)}return vt();function Je(Pe){me.push(Pe),qe=G}function Ht(Pe){var st=0;return st=Pe!==-1&&(Pe=_.substring(_e+1,Pe))&&Pe.trim()===""?Pe.length:st}function vt(Pe){return L||(Pe===void 0&&(Pe=_.substring(G)),fe.push(Pe),G=le,Je(fe),ae&&Nt()),et()}function We(Pe){G=Pe,Je(fe),fe=[],ge=_.indexOf(z,G)}function et(Pe){if(v.header&&!V&&me.length&&!M){var st=me[0],Tt=Object.create(null),sl=new Set(st);let $l=!1;for(let ve=0;ve{var K;return!!f.WORKERS_SUPPORTED&&(K=(()=>{var Q=r.URL||r.webkitURL||null,te=x.toString();return f.BLOB_URL||(f.BLOB_URL=Q.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",te,")();"],{type:"text/javascript"})))})(),(K=new r.Worker(K)).onmessage=be,K.id=j++,C[K.id]=K)})()).userStep=m.step,z.userChunk=m.chunk,z.userComplete=m.complete,z.userError=m.error,m.step=ne(m.step),m.chunk=ne(m.chunk),m.complete=ne(m.complete),m.error=ne(m.error),delete m.worker,z.postMessage({input:v,config:m,workerId:z.id})},f.unparse=function(v,m){var z=!1,K=!0,Q=",",te=`\r +`,he='"',T=he+he,M=!1,Y=null,X=!1,G=((()=>{if(typeof m=="object"){if(typeof m.delimiter!="string"||f.BAD_DELIMITERS.filter(function(V){return m.delimiter.indexOf(V)!==-1}).length||(Q=m.delimiter),typeof m.quotes!="boolean"&&typeof m.quotes!="function"&&!Array.isArray(m.quotes)||(z=m.quotes),typeof m.skipEmptyLines!="boolean"&&typeof m.skipEmptyLines!="string"||(M=m.skipEmptyLines),typeof m.newline=="string"&&(te=m.newline),typeof m.quoteChar=="string"&&(he=m.quoteChar,T=he+he),typeof m.header=="boolean"&&(K=m.header),Array.isArray(m.columns)){if(m.columns.length===0)throw new Error("Option columns is empty");Y=m.columns}m.escapeChar!==void 0&&(T=m.escapeChar+he),m.escapeFormulae instanceof RegExp?X=m.escapeFormulae:typeof m.escapeFormulae=="boolean"&&m.escapeFormulae&&(X=/^[=+\-@\t\r].*$/)}})(),new RegExp(I(he),"g"));if(typeof v=="string"&&(v=JSON.parse(v)),Array.isArray(v)){if(!v.length||Array.isArray(v[0]))return h(null,v,M);if(typeof v[0]=="object")return h(Y||Object.keys(v[0]),v,M)}else if(typeof v=="object")return typeof v.data=="string"&&(v.data=JSON.parse(v.data)),Array.isArray(v.data)&&(v.fields||(v.fields=v.meta&&v.meta.fields||Y),v.fields||(v.fields=Array.isArray(v.data[0])?v.fields:typeof v.data[0]=="object"?Object.keys(v.data[0]):[]),Array.isArray(v.data[0])||typeof v.data[0]=="object"||(v.data=[v.data])),h(v.fields||[],v.data||[],M);throw new Error("Unable to serialize unrecognized input");function h(V,L,le){var $="",ce=(typeof V=="string"&&(V=JSON.parse(V)),typeof L=="string"&&(L=JSON.parse(L)),Array.isArray(V)&&0{for(var me=0;me3e4&&x<6e4){const S=(x-25569)*86400*1e3,C=new Date(S);if(!isNaN(C.getTime()))return new Date(C.getFullYear(),C.getMonth(),C.getDate())}const r=d.match(/^(\d{4})[\/-](\d{1,2})[\/-](\d{1,2})/);if(r){const S=parseInt(r[1],10),C=parseInt(r[2],10)-1,j=parseInt(r[3],10);if(C>=0&&C<=11&&j>=1&&j<=31)return new Date(S,C,j)}const g=d.match(/^(\d{1,2})[\/-](\d{1,2})[\/-](\d{2,4})/);if(g){const S=parseInt(g[1],10),C=parseInt(g[2],10);let j=parseInt(g[3],10);j<100&&(j+=2e3);let f=S,N=C-1;if(S>12?(f=S,N=C-1):C>12?(N=S-1,f=C):(f=S,N=C-1),N>=0&&N<=11&&f>=1&&f<=31)return new Date(j,N,f)}const b=Date.parse(d);if(!isNaN(b)){const S=new Date(b);if(!isNaN(S.getTime()))return new Date(S.getFullYear(),S.getMonth(),S.getDate())}return null}function Ir(u){const d=typeof u=="string"?oo(u):u;if(!d||isNaN(d.getTime()))return null;const x=d.getDay(),r=x===0?-6:1-x,g=new Date(d.getFullYear(),d.getMonth(),d.getDate());g.setDate(d.getDate()+r);const b=new Date(g.getFullYear(),g.getMonth(),g.getDate());b.setDate(g.getDate()+6);const S=R=>R<10?"0"+R:""+R,C=`${g.getFullYear()}-${S(g.getMonth()+1)}-${S(g.getDate())}`,j=`${b.getFullYear()}-${S(b.getMonth()+1)}-${S(b.getDate())}`,f=R=>R.toLocaleDateString("en-US",{month:"short",day:"numeric"}),N=g.getFullYear(),k=`${C}_${j}`,U=`${f(g)} - ${f(b)}, ${N}`,J=`${f(g)} - ${f(b)}`;return{key:k,label:U,shortLabel:J,startDate:C,endDate:j}}function B0(u,d){if(!u||!d||d==="all")return!0;const x=Ir(u);return x?x.key===d:!1}function ji(u){if(!u)return"";const d=u.trim();if(!d)return"";const x=d.match(/\d+/);if(x){const r=parseInt(x[0],10);if(!isNaN(r)&&r>0&&r<100)return`Semana ${r}`}return d.charAt(0).toUpperCase()+d.slice(1)}function Yx(u){const d=typeof u=="string"?oo(u):u;if(!d||isNaN(d.getTime()))return null;const x=new Date(d.valueOf()),r=(d.getDay()+6)%7;x.setDate(x.getDate()-r+3);const g=x.valueOf();return x.setMonth(0,1),x.getDay()!==4&&x.setMonth(0,1+(4-x.getDay()+7)%7),1+Math.ceil((g-x.valueOf())/6048e5)}function N0(u,d,x){if(x==="all")return!0;const r=ji(x),g=ji(u);if(g&&r&&g.toLowerCase()===r.toLowerCase())return!0;if(d){if(B0(d,x))return!0;const b=Yx(d);if(b&&r.toLowerCase()===`semana ${b}`)return!0}return!1}function Gx(u,d){const x=new Set;if(u.forEach(g=>{const b=ji(g.week);b&&x.add(b)}),d.forEach(g=>{const b=ji(g.week);b&&x.add(b)}),x.size>0)return Array.from(x).sort((b,S)=>{const C=(b.match(/\d+/)||[])[0]?parseInt((b.match(/\d+/)||[])[0],10):0,j=(S.match(/\d+/)||[])[0]?parseInt((S.match(/\d+/)||[])[0],10):0;return C&&j?j-C:S.localeCompare(b,void 0,{numeric:!0})}).map(b=>({key:b,label:b,shortLabel:b,startDate:b,endDate:b}));const r=new Map;return u.forEach(g=>{if(g.assignedDate){const b=Ir(g.assignedDate);b&&!r.has(b.key)&&r.set(b.key,b)}}),d.forEach(g=>{if(g.submissionDate){const b=Ir(g.submissionDate);b&&!r.has(b.key)&&r.set(b.key,b)}}),Array.from(r.values()).sort((g,b)=>b.startDate.localeCompare(g.startDate))}const Ni="https://docs.google.com/spreadsheets/d/e/2PACX-1vQL9z6VLMOImLy33neZsu4iT6gLJe9pUv3hukhF5uq_RQ71musz6y4k4ljV4ywYcUZLu25NcnaDw_Mw/pubhtml";function je(u,d){if(!u)return"";const x=Object.keys(u);for(const r of d){const g=r.toLowerCase().trim(),b=x.find(S=>S.toLowerCase().trim()===g);if(b&&u[b]!==void 0&&u[b]!==null){const S=String(u[b]).trim();if(S!=="")return S}}for(const r of d){const g=r.toLowerCase().trim(),b=x.find(S=>S.toLowerCase().trim().includes(g));if(b&&u[b]!==void 0&&u[b]!==null){const S=String(u[b]).trim();if(S!=="")return S}}return""}function Jl(u){if(!u)return 0;const d=u.replace(/[^0-9.-]+/g,""),x=parseFloat(d);return isNaN(x)?0:x}function Xl(u){return!u||typeof u!="string"?"":u.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]/g," ").replace(/\s+/g," ").trim()}function Zx(u){return!u||u.length===0?[]:u.map((d,x)=>{const r=je(d,["Customer","Punto de venta","Tienda","Store","Nombre","Punto de Venta","Cliente","cliente"])||`Store #${x+1}`,g=je(d,["Zone","Zona"])||"General Zone",b=je(d,["Address","Direccion","Dirección"])||"N/A",S=je(d,["Coordinates","Coordenadas"])||"",C=je(d,["Customer Code","Codigo cliente","Código","Code","Codigo"])||`CUST-${1e3+x}`,j=je(d,["Customer Channel","Canal","Channel"])||"General",f=Jl(je(d,["Cs Sold In","Cajas"])),N=Jl(je(d,["Units Sold In","Unidades"])),k=Jl(je(d,["L Sold In","Litros"])),U=je(d,["Auditor #","Auditor"])||"Assigned Auditor",J=[];(je(d,["Monday","Lunes"]).toLowerCase().includes("y")||je(d,["Monday"]).length>0)&&J.push("Monday"),(je(d,["Tuesday","Martes"]).toLowerCase().includes("y")||je(d,["Tuesday"]).length>0)&&J.push("Tuesday"),(je(d,["Wednesday","Miercoles"]).toLowerCase().includes("y")||je(d,["Wednesday"]).length>0)&&J.push("Wednesday"),(je(d,["Thursday","Jueves"]).toLowerCase().includes("y")||je(d,["Thursday"]).length>0)&&J.push("Thursday"),(je(d,["Friiday","Friday","Viernes"]).toLowerCase().includes("y")||je(d,["Friiday","Friday"]).length>0)&&J.push("Friiday");const R=je(d,["LUCOZADE SPORT","SKU","Lemon Lime"]),Z=je(d,["Fecha Programada","Fecha de Visita","Fecha Visita","Fecha de Asignación","Fecha de asignacion","Fecha Asignada","Fecha Inicio","Assigned Date","Fecha","Date","fecha"]),se=je(d,["Week","week","SEMANA","Semana","Semanas","semana","Semana de auditoría","Semana Auditoría","Semana de Auditoria","semana_de_auditoria"]);return{customer:r,zone:g,address:b,coordinates:S,customerCode:C,customerChannel:j,csSoldIn:f,unitsSoldIn:N,lSoldIn:k,auditor:U,visitDays:J,skuDetail:R,assignedDate:Z,week:se}}).filter(d=>d.customer&&d.customer!=="N/A")}function Kx(u){return!u||u.length===0?[]:u.map((d,x)=>{const r=je(d,["Submission ID","ID","Id","Timestamp","Marca temporal"])||`SUB-${Date.now()}-${x}`,g=je(d,["Marca temporal","Timestamp","Submission Date","Fecha de Respuesta","Fecha de Formulario","Fecha de envío","Fecha de envio","Fecha de auditoría","Fecha de auditoria","Fecha","Date","fecha"])||new Date().toISOString().slice(0,16).replace("T"," "),b=je(d,["Dynamic Dropdowns","Punto de venta","Customer","Tienda","Store","Nombre","Punto de Venta","Cliente","cliente"])||"",C=(je(d,["available","available for sale","Is Lucozade Sport Ice Kick available","Ice Kick available","Agotado","Disponible","Producto disponible","isAvailable"])||"").toLowerCase();let j="No";if(C.includes("yes")||C.includes("si")||C.includes("sí")||C==="1"||C==="true"||C.includes("disponible"))j="Yes";else if(C.includes("no")||C==="0"||C==="false"||C.includes("agotado"))j="No";else{const m=JSON.stringify(d).toLowerCase();(m.includes('"yes"')||m.includes("disponible")||m.includes('"si"'))&&(j="Yes")}const f=je(d,["Where is the product located","Ubicacion","Ubicación","Location","Placement","Lugar"])||"Main Shelf",N=m=>m?m.split(/[\r\n,;\s]+/).map(K=>K.trim()).filter(K=>K.startsWith("http://")||K.startsWith("https://")):[],k=je(d,["photos of the shelf","Add photos of the shelf","Fotos de estante","Shelf photos"]),U=N(k),J=je(d,["Is promotional (POP) material visible","POP material","Material POP","POP visible"])||"Not Reported",R=je(d,["photos of the material POP","Add photos of the material POP","Fotos POP"]),Z=N(R),se=Jl(je(d,["exact retail price","Consumer Price","Precio","Price","Retail Price"])),I=Jl(je(d,["facings of Lucozade Ice Kick","Facings (Ice Kick)","Facings Ice Kick","Ice Kick Facings"])),ee=Jl(je(d,["facings of the entire Lucozade brand","Share of Brand Shelf","Facings Lucozade","Brand Facings"])),be=Jl(je(d,["facings of the entire energy and sports drink category","Share of Shelf by Facings","Total Category Facings","Category Facings"])),Oe=je(d,["photos of the Energy & Sports Drinks shelf","Add photos of the Energy","Category Photos"]),Ne=N(Oe),re=je(d,["Which brand/SKU gave up shelf space","SKU Substitution","Sustitución","Sustitucion"])||"None / N/A",F=Jl(je(d,["Total Physical Inventory","Inventario Fisico","Inventario Físico","Physical Inventory","Inventory"])),ne=je(d,["Last Update Date","Ultima actualizacion","Última actualización"])||g,v=je(d,["Week","week","SEMANA","Semana","Semanas","semana","Semana de auditoría","Semana Auditoría","Semana de Auditoria","semana_de_auditoria"]);return{submissionId:r,submissionDate:g,customer:b,isAvailable:j,placementLocation:f,shelfPhotos:U,popVisible:J,popPhotos:Z,retailPrice:se,facingsIceKick:I,facingsLucozadeBrand:ee,facingsCategoryTotal:be,categoryPhotos:Ne,skuSubstitution:re,totalPhysicalInventory:F,lastUpdateDate:ne,week:v}}).filter(d=>d.customer)}function k0(u){if(!u)return 0;const d=oo(u);return d?d.getTime():0}function w0(u){return!u||typeof u!="string"?"":u.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\b(supermercado|minisuper|tienda|farmacia|arrocha|super|express|autoservicio|despensa|abarrotes|sucursal|suc|no|n°|num|numero|vial)\b/gi,"").replace(/[^a-z0-9]/g," ").replace(/\s+/g," ").trim()}function Qx(u,d){const x=Xl(u),r=Xl(d);if(!x||!r)return 0;if(x===r)return 1;const g=new Set(x.split(" ").filter(j=>j.length>1)),b=new Set(r.split(" ").filter(j=>j.length>1));if(g.size===0||b.size===0)return 0;let S=0;g.forEach(j=>{b.has(j)&&S++});const C=new Set([...g,...b]).size;return C>0?S/C:0}function ki(u,d){if(!u||u.length===0)return[];const x=new Map,r=new Set,g=(S,C)=>{x.has(S)||x.set(S,[]),x.get(S).push(C),r.add(C.submissionId)},b=u.map((S,C)=>({idx:C,store:S,normName:Xl(S.customer),codeNorm:Xl(S.customerCode),cleanName:w0(S.customer)}));return d.forEach(S=>{if(r.has(S.submissionId))return;const C=Xl(S.customer),j=Xl(S.customerCode),f=b.find(N=>C&&N.normName===C||j&&N.codeNorm&&j===N.codeNorm);f&&g(f.idx,S)}),d.forEach(S=>{if(r.has(S.submissionId))return;const C=Xl(S.customer),j=w0(S.customer),f=b.find(N=>!!(j&&N.cleanName&&j===N.cleanName||C.length>=4&&N.normName.length>=4&&(C.includes(N.normName)||N.normName.includes(C))));f&&g(f.idx,S)}),d.forEach(S=>{if(r.has(S.submissionId)||!Xl(S.customer))return;let j=-1,f=0;b.forEach(N=>{const k=Qx(S.customer,N.store.customer);k>f&&k>=.35&&(f=k,j=N.idx)}),j!==-1&&g(j,S)}),d.forEach(S=>{if(r.has(S.submissionId))return;const C=b.find(j=>!x.has(j.idx));g(C?C.idx:0,S)}),u.map((S,C)=>{const f=[...x.get(C)||[]].sort((ee,be)=>{const Oe=k0(ee.submissionDate||ee.lastUpdateDate),Ne=k0(be.submissionDate||be.lastUpdateDate);return Oe-Ne}),N=f.length>0?f[f.length-1]:void 0,k=!!N,U=k?(N==null?void 0:N.isAvailable)==="No":!1,J=(N==null?void 0:N.facingsIceKick)||0,R=(N==null?void 0:N.facingsLucozadeBrand)||0,Z=(N==null?void 0:N.facingsCategoryTotal)||0,se=R>0?J/R*100:0,I=Z>0?R/Z*100:0;return{store:S,response:N,allResponses:f,status:k?"Visited":"Pending",hasOOS:U,shareOfBrandShelf:se,shareOfCategoryShelf:I}})}function Xx(u,d){let x=u.trim();const r=[];let g="";if(x.includes("/d/e/")){const b=x.match(/\/d\/e\/([a-zA-Z0-9-_]+)/);b&&b[1]&&(g=b[1])}else x.startsWith("2PACX-")&&(g=x);if(g)return r.push(`https://docs.google.com/spreadsheets/d/e/${g}/pub?output=csv&sheet=${encodeURIComponent(d)}`),r.push(`https://docs.google.com/spreadsheets/d/e/${g}/gviz/tq?tqx=out:csv&sheet=${encodeURIComponent(d)}`),r;if(x.includes("/spreadsheets/d/")){const b=x.match(/\/spreadsheets\/d\/([a-zA-Z0-9-_]+)/);b&&b[1]&&(x=b[1])}return r.push(`https://docs.google.com/spreadsheets/d/${x}/gviz/tq?tqx=out:csv&sheet=${encodeURIComponent(d)}`),r.push(`https://docs.google.com/spreadsheets/d/${x}/pub?output=csv&sheet=${encodeURIComponent(d)}`),r}async function C0(u,d){let x=u.trim(),r="";if(x.includes("/d/e/")){const b=x.match(/\/d\/e\/([a-zA-Z0-9-_]+)/);b&&b[1]&&(r=b[1])}else x.startsWith("2PACX-")&&(r=x);if(r)try{const b=`https://docs.google.com/spreadsheets/d/e/${r}/pubhtml`,S=await fetch(b);if(S.ok){const C=await S.text(),j=/items\.push\(\{name:\s*"([^"]+)",[^}]*gid:\s*"([^"]+)"/g;let f,N="";for(;(f=j.exec(C))!==null;)if(f[1].trim().toLowerCase()===d.trim().toLowerCase()){N=f[2];break}if(N){const k=`https://docs.google.com/spreadsheets/d/e/${r}/pub?gid=${N}&single=true&output=csv`,U=await fetch(k);if(U.ok){const J=await U.text();if(J&&!J.includes("{j0.parse(J,{header:!0,skipEmptyLines:!0,complete:I=>Z(I.data),error:I=>se(I)})});if(R&&R.length>0)return R}}}}}catch(b){console.warn("pubhtml resolution failed, trying fallback candidates...",b)}const g=Xx(u,d);for(const b of g)try{const S=await fetch(b);if(!S.ok)continue;const C=await S.text();if(!C||C.includes("{j0.parse(C,{header:!0,skipEmptyLines:!0,complete:k=>f(k.data),error:k=>N(k)})});if(j&&j.length>0)return j}catch{}throw new Error(`No se pudo obtener datos CSV de la pestaña "${d}".`)}async function Jx(u=Ni,d){const x=new Date().toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit",second:"2-digit"});try{const g=await C0(u,"tiendas"),b=await C0(u,"Form responses"),S=Zx(g),C=Kx(b),j=S.length>0?S:Qr,f=C.length>0?C:Xr,N=ki(j,f);return{stores:j,responses:f,merged:N,lastSynced:x,source:"google_sheets_csv"}}catch(g){console.warn("CSV export fetch failed, using realistic demo dataset:",g)}const r=ki(Qr,Xr);return{stores:Qr,responses:Xr,merged:r,lastSynced:x,source:"fallback_demo",error:"No se pudo conectar directamente con Google Sheets. Mostrando dataset precargado."}}/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fx=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$x=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(d,x,r)=>r?r.toUpperCase():x.toLowerCase()),_0=u=>{const d=$x(u);return d.charAt(0).toUpperCase()+d.slice(1)},H0=(...u)=>u.filter((d,x,r)=>!!d&&d.trim()!==""&&r.indexOf(d)===x).join(" ").trim(),Ix=u=>{for(const d in u)if(d.startsWith("aria-")||d==="role"||d==="title")return!0};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Wx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Px=oe.forwardRef(({color:u="currentColor",size:d=24,strokeWidth:x=2,absoluteStrokeWidth:r,className:g="",children:b,iconNode:S,...C},j)=>oe.createElement("svg",{ref:j,...Wx,width:d,height:d,stroke:u,strokeWidth:r?Number(x)*24/Number(d):x,className:H0("lucide",g),...!b&&!Ix(C)&&{"aria-hidden":"true"},...C},[...S.map(([f,N])=>oe.createElement(f,N)),...Array.isArray(b)?b:[b]]));/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const de=(u,d)=>{const x=oe.forwardRef(({className:r,...g},b)=>oe.createElement(Px,{ref:b,iconNode:d,className:H0(`lucide-${Fx(_0(u))}`,`lucide-${u}`,r),...g}));return x.displayName=_0(u),x};/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ep=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],tp=de("arrow-down-right",ep);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lp=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ap=de("arrow-left",lp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],V0=de("arrow-right",sp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const np=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],ip=de("award",np);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cp=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Y0=de("building-2",cp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],G0=de("calendar",rp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const op=[["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"}]],Z0=de("chart-column",op);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const up=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],dp=de("chart-no-axes-column",up);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],A0=de("check",fp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mp=de("chevron-down",hp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Wr=de("chevron-left",xp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Pr=de("chevron-right",pp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bp=[["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"}]],yp=de("circle-alert",bp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],xa=de("circle-check",gp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vp=[["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"}]],wi=de("circle-x",vp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sp=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],jp=de("clock",Sp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Np=[["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"}]],K0=de("database",Np);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kp=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Q0=de("dollar-sign",kp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wp=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],eo=de("download",wp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cp=[["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"}]],X0=de("external-link",Cp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _p=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ap=de("eye-off",_p);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ep=[["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"}]],Is=de("eye",Ep);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zp=[["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"}]],Op=de("file-spreadsheet",zp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tp=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],J0=de("funnel",Tp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mp=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Dp=de("image",Mp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Up=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ws=de("layers",Up);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rp=[["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"}]],Lp=de("layout-dashboard",Rp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qp=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],F0=de("loader-circle",qp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bp=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],Hp=de("lock-keyhole",Bp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vp=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Yp=de("log-out",Vp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gp=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Zp=de("mail",Gp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kp=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],$0=de("map-pin",Kp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qp=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],Ci=de("package-check",Qp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xp=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],to=de("presentation",Xp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jp=[["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"}]],I0=de("refresh-cw",Jp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fp=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],$p=de("repeat",Fp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ip=[["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"}]],Wp=de("rotate-ccw",Ip);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],W0=de("search",Pp);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eb=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],P0=de("shopping-bag",eb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],lb=de("sliders-vertical",tb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ab=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],lo=de("sparkles",ab);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sb=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],eh=de("store",sb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nb=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],ib=de("table",nb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["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"}]],uo=de("tag",cb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["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"}]],th=de("triangle-alert",rb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ob=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],ub=de("truck",ob);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const db=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],lh=de("user-round",db);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pa=de("x",fb);/** + * @license lucide-react v0.546.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hb=[["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"}]],_i=de("zap",hb),mb=({lastSynced:u,isSyncing:d,onRefresh:x,onOpenTutorial:r,userEmail:g,onLogout:b})=>s.jsx("header",{className:"bg-white/90 backdrop-blur-md border-b border-sky-100 sticky top-0 z-30 shadow-xs",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between py-3.5 gap-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-sky-500 to-blue-600 flex items-center justify-center text-amber-300 font-black text-xl shadow-md shrink-0 border border-sky-300/40",children:s.jsx(_i,{className:"w-5 h-5 fill-amber-300 text-amber-300"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 font-bold text-[10px] uppercase tracking-wider px-2.5 py-0.5 rounded-full shadow-2xs font-figtree",children:"ICE KICK"}),s.jsxs("h1",{className:"text-base sm:text-lg font-bold text-slate-900 tracking-tight font-ibm",children:["Lucozade Sport ",s.jsx("span",{className:"text-sky-600",children:"Store Audit"})]})]}),s.jsx("p",{className:"text-2xs text-slate-500 font-medium font-figtree",children:"POS Audit Dashboard, OOS Availability & Inventory Tracker"})]})]}),s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3 w-full sm:w-auto justify-between sm:justify-end",children:[s.jsxs("button",{onClick:r,className:"inline-flex items-center gap-2 px-3.5 py-2 text-xs font-bold text-sky-800 bg-sky-50 hover:bg-sky-100 border border-sky-200/80 rounded-xl transition-all shadow-2xs active:scale-95 cursor-pointer font-figtree",title:"Open Client PPT Tutorial Guide",children:[s.jsx(to,{className:"w-3.5 h-3.5 text-sky-600"}),s.jsx("span",{className:"hidden md:inline",children:"Client PPT Guide"}),s.jsx("span",{className:"md:hidden",children:"Guide"})]}),s.jsxs("div",{className:"hidden lg:block text-right",children:[s.jsx("span",{className:"block text-[10px] text-slate-400 font-semibold uppercase tracking-wider font-figtree",children:"Last Sync"}),s.jsx("span",{className:"block text-xs font-bold text-sky-700 font-geist",children:u||"Just Now"})]}),s.jsxs("button",{onClick:x,disabled:d,title:"Refresh data",className:"inline-flex items-center gap-2 px-3.5 py-2 text-xs font-bold text-amber-950 bg-amber-100 hover:bg-amber-200/80 border border-amber-200/80 rounded-xl transition-all shadow-2xs active:scale-95 disabled:opacity-50 cursor-pointer font-figtree",children:[s.jsx(I0,{className:`w-3.5 h-3.5 text-amber-800 ${d?"animate-spin":""}`}),s.jsx("span",{className:"hidden md:inline",children:d?"Refreshing...":"Refresh"})]}),s.jsxs("div",{className:"hidden xl:flex items-center gap-2 max-w-48 px-3 py-2 rounded-xl border border-slate-200 bg-slate-50 text-slate-600",title:g,children:[s.jsx(lh,{className:"w-3.5 h-3.5 shrink-0 text-sky-600"}),s.jsx("span",{className:"text-[11px] font-bold truncate",children:g})]}),s.jsxs("button",{type:"button",onClick:b,title:"Sign out","aria-label":"Sign out",className:"inline-flex items-center justify-center gap-2 h-9 px-3 text-xs font-extrabold text-slate-600 bg-white hover:text-rose-700 hover:bg-rose-50 border border-slate-200 hover:border-rose-200 rounded-xl transition-all cursor-pointer",children:[s.jsx(Yp,{className:"w-4 h-4"}),s.jsx("span",{children:"Sign out"})]})]})]})})}),xb=({stores:u,selectedCustomer:d,onSelectCustomer:x})=>{const[r,g]=oe.useState(!1),[b,S]=oe.useState(""),C=oe.useRef(null);oe.useEffect(()=>{const N=k=>{C.current&&!C.current.contains(k.target)&&g(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const j=oe.useMemo(()=>{const N=new Map;return u.forEach(k=>{if(!k.customer||!k.customer.trim())return;const U=k.customer.trim().toLowerCase();N.has(U)||N.set(U,k)}),Array.from(N.values()).sort((k,U)=>k.customer.localeCompare(U.customer))},[u]),f=oe.useMemo(()=>{if(!b.trim())return j;const N=b.toLowerCase().trim();return j.filter(k=>k.customer.toLowerCase().includes(N)||k.customerCode.toLowerCase().includes(N)||k.zone.toLowerCase().includes(N)||k.address.toLowerCase().includes(N))},[j,b]);return s.jsxs("div",{className:"relative",ref:C,children:[s.jsxs("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1 flex items-center justify-between font-figtree",children:[s.jsx("span",{children:"Store"}),d!=="all"&&s.jsx("span",{className:"text-amber-600 font-extrabold text-[10px]",children:"1 store selected"})]}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{type:"button",onClick:()=>g(!r),className:`w-full px-3 py-1.5 text-xs bg-sky-50/50 border ${d!=="all"?"border-amber-400 bg-amber-50/40 text-slate-900 shadow-2xs":"border-sky-100 text-slate-700 hover:border-sky-300"} rounded-xl text-left flex items-center justify-between focus:outline-none focus:ring-2 focus:ring-sky-500 font-medium transition-all cursor-pointer`,children:[s.jsxs("div",{className:"flex items-center gap-2 truncate pr-2",children:[s.jsx(eh,{className:`w-3.5 h-3.5 shrink-0 ${d!=="all"?"text-amber-600":"text-sky-500"}`}),s.jsx("span",{className:`truncate ${d!=="all"?"font-extrabold text-slate-900":"font-semibold text-slate-700"}`,children:d==="all"?`All Stores (${j.length} total)`:d})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[d!=="all"&&s.jsx("span",{onClick:N=>{N.stopPropagation(),x("all")},className:"p-0.5 hover:bg-amber-200 text-slate-600 hover:text-slate-950 rounded-full cursor-pointer transition-colors",title:"Clear store selection",children:s.jsx(pa,{className:"w-3 h-3"})}),s.jsx(mp,{className:`w-3.5 h-3.5 text-slate-400 transition-transform duration-200 ${r?"rotate-180":""}`})]})]}),r&&s.jsxs("div",{className:"absolute left-0 right-0 top-full mt-1 z-30 bg-white border border-sky-100 rounded-2xl shadow-xl p-2.5 min-w-[300px]",children:[s.jsxs("div",{className:"relative mb-2",children:[s.jsx(W0,{className:"w-3.5 h-3.5 text-sky-500 absolute left-2.5 top-1/2 -translate-y-1/2"}),s.jsx("input",{type:"text",value:b,onChange:N=>S(N.target.value),placeholder:"Search store name, code, zone...",autoFocus:!0,className:"w-full pl-8 pr-7 py-1.5 text-xs bg-sky-50/60 border border-sky-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 text-slate-900 font-bold placeholder-slate-400"}),b&&s.jsx("button",{type:"button",onClick:()=>S(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-700 p-0.5",children:s.jsx(pa,{className:"w-3 h-3"})})]}),s.jsxs("div",{className:"max-h-60 overflow-y-auto space-y-0.5 pr-1",children:[s.jsxs("button",{type:"button",onClick:()=>{x("all"),g(!1),S("")},className:`w-full text-left px-3 py-2 rounded-xl text-xs font-bold flex items-center justify-between transition-colors cursor-pointer ${d==="all"?"bg-amber-100 text-amber-950 font-black":"text-slate-700 hover:bg-sky-50"}`,children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Y0,{className:"w-3.5 h-3.5 text-sky-600"}),s.jsxs("span",{children:["All Stores (",j.length,")"]})]}),d==="all"&&s.jsx(A0,{className:"w-3.5 h-3.5 text-amber-700 shrink-0"})]}),s.jsx("div",{className:"h-px bg-sky-100 my-1"}),f.length===0?s.jsxs("div",{className:"p-3 text-center text-xs text-slate-400 font-medium",children:['No stores match "',b,'"']}):f.map(N=>{const k=d===N.customer;return s.jsxs("button",{type:"button",onClick:()=>{x(N.customer),g(!1),S("")},className:`w-full text-left px-3 py-2 rounded-xl text-xs transition-colors flex items-center justify-between gap-2 cursor-pointer ${k?"bg-amber-400 text-slate-950 font-black shadow-2xs":"hover:bg-sky-50 text-slate-800"}`,children:[s.jsxs("div",{className:"truncate min-w-0",children:[s.jsx("div",{className:"font-extrabold truncate",children:N.customer}),s.jsxs("div",{className:`text-[10px] font-medium flex items-center gap-1.5 ${k?"text-slate-900":"text-slate-400"}`,children:[s.jsx("span",{children:N.customerCode}),s.jsx("span",{children:"•"}),s.jsx("span",{children:N.zone})]})]}),k&&s.jsx(A0,{className:"w-4 h-4 text-slate-950 shrink-0"})]},N.customer)})]})]})]})]})},pb=({filters:u,stores:d,weekOptions:x,onChange:r,onReset:g})=>{const b=Array.from(new Set(d.map(f=>f.zone))).filter(Boolean).sort(),S=Array.from(new Set(d.map(f=>f.customerChannel))).filter(Boolean).sort(),C=(f,N)=>{r({...u,[f]:N})},j=u.zone!=="all"||u.channel!=="all"||u.customer!=="all"||u.status!=="all"||u.oosStatus!=="all"||u.selectedWeek&&u.selectedWeek!=="all"||u.search.trim()!=="";return s.jsxs("div",{className:"sticky top-[58px] sm:top-[65px] z-25 bg-white/95 backdrop-blur-md rounded-2xl border border-sky-100/90 p-3.5 sm:p-4 mb-6 shadow-md transition-all",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 pb-2.5 border-b border-sky-100/60",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-600",children:s.jsx(J0,{className:"w-3.5 h-3.5"})}),s.jsx("h2",{className:"text-xs font-bold text-slate-800 uppercase tracking-wider font-ibm",children:"Audit Dashboard Filters"})]}),j&&s.jsxs("button",{onClick:g,className:"inline-flex items-center gap-1 text-xs font-bold text-sky-700 hover:text-sky-800 bg-sky-50 hover:bg-sky-100 px-3 py-1 rounded-lg transition-colors cursor-pointer font-figtree",children:[s.jsx(Wp,{className:"w-3 h-3"}),"Reset Filters"]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-8 gap-3",children:[s.jsx("div",{className:"lg:col-span-2",children:s.jsx(xb,{stores:d,selectedCustomer:u.customer,onSelectCustomer:f=>C("customer",f)})}),s.jsxs("div",{className:"lg:col-span-2",children:[s.jsxs("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1 flex items-center gap-1",children:[s.jsx(G0,{className:"w-3 h-3 text-sky-500"}),s.jsx("span",{children:"Audit Week (Mon - Sun)"})]}),s.jsxs("select",{value:u.selectedWeek||"all",onChange:f=>C("selectedWeek",f.target.value),className:`w-full px-2.5 py-1.5 text-xs border rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 transition-all font-bold cursor-pointer ${u.selectedWeek&&u.selectedWeek!=="all"?"bg-amber-50/80 border-amber-300 text-amber-950":"bg-sky-50/40 border-sky-100 text-slate-900"}`,children:[s.jsx("option",{value:"all",children:"All Weeks (Latest Visit per POS)"}),x.map(f=>s.jsx("option",{value:f.key,children:f.label},f.key))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:"Store Code"}),s.jsxs("div",{className:"relative",children:[s.jsx(W0,{className:"w-3.5 h-3.5 text-sky-500 absolute left-3 top-1/2 -translate-y-1/2"}),s.jsx("input",{type:"text",value:u.search,onChange:f=>C("search",f.target.value),placeholder:"e.g. CUST-1001",className:"w-full pl-9 pr-3 py-1.5 text-xs bg-sky-50/40 border border-sky-100 rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 focus:bg-white transition-all text-slate-900 placeholder-slate-400 font-medium"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:"Geographic Zone"}),s.jsxs("select",{value:u.zone,onChange:f=>C("zone",f.target.value),className:"w-full px-2.5 py-1.5 text-xs bg-sky-50/40 border border-sky-100 rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 focus:bg-white transition-all text-slate-900 font-medium cursor-pointer",children:[s.jsx("option",{value:"all",children:"All Zones"}),b.map(f=>s.jsx("option",{value:f,children:f},f))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:"Sales Channel"}),s.jsxs("select",{value:u.channel,onChange:f=>C("channel",f.target.value),className:"w-full px-2.5 py-1.5 text-xs bg-sky-50/40 border border-sky-100 rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 focus:bg-white transition-all text-slate-900 font-medium cursor-pointer",children:[s.jsx("option",{value:"all",children:"All Channels"}),S.map(f=>s.jsx("option",{value:f,children:f},f))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-[10px] font-bold text-slate-400 uppercase tracking-wider mb-1",children:"Audit Status"}),s.jsxs("select",{value:u.status,onChange:f=>C("status",f.target.value),className:"w-full px-2.5 py-1.5 text-xs bg-sky-50/40 border border-sky-100 rounded-xl focus:outline-none focus:ring-2 focus:ring-sky-500 focus:bg-white transition-all text-slate-900 font-medium cursor-pointer",children:[s.jsx("option",{value:"all",children:"All Statuses"}),s.jsx("option",{value:"Visited",children:"Visited (Audited)"}),s.jsx("option",{value:"Pending",children:"Pending Audit"})]})]})]})]})},bb=({kpis:u})=>s.jsx("div",{className:"mb-6 font-figtree",children:s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-3",children:[s.jsxs("div",{className:"lg:col-span-2 bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Store Audit Coverage"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-600 shrink-0 flex items-center gap-1",children:s.jsx(Y0,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 items-center",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline gap-1",children:[s.jsxs("span",{className:"text-2xl font-bold text-sky-600 tracking-tight font-geist",children:[u.complianceRate.toFixed(1),"%"]}),s.jsx("span",{className:"text-xs font-bold text-slate-400 font-figtree",children:"Coverage"})]}),s.jsx("div",{className:"w-full bg-sky-50 rounded-full h-2 mt-1.5 overflow-hidden",children:s.jsx("div",{className:"bg-sky-500 h-2 rounded-full transition-all duration-500",style:{width:`${Math.min(u.complianceRate,100)}%`}})})]}),s.jsxs("div",{className:"flex items-center justify-around bg-sky-50/50 rounded-xl p-2 border border-sky-100/60 font-figtree",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[10px] uppercase font-bold text-slate-400",children:"Total"}),s.jsx("div",{className:"text-lg font-bold text-slate-800 font-geist",children:u.totalStores})]}),s.jsx("div",{className:"h-6 w-px bg-sky-200/60"}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[10px] uppercase font-bold text-slate-400",children:"Visited"}),s.jsx("div",{className:"text-lg font-bold text-emerald-600 font-geist",children:u.visitedStores})]})]})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Out Of Stock (OOS)"}),s.jsx("div",{className:`p-1.5 rounded-lg shrink-0 ${u.oosStores>0?"bg-rose-50 text-rose-600":"bg-emerald-50 text-emerald-600"}`,children:s.jsx(th,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline gap-1.5",children:[s.jsxs("span",{className:`text-2xl font-bold tracking-tight font-geist ${u.oosStores>0?"text-rose-600":"text-emerald-600"}`,children:[u.oosRate.toFixed(1),"%"]}),s.jsxs("span",{className:"text-xs font-bold text-rose-500 font-figtree",children:["(",u.oosStores,"/",u.visitedStores,")"]})]}),s.jsxs("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:["In Stock: ",s.jsxs("span",{className:"font-bold text-emerald-600 font-geist",children:[u.availableStores,"/",u.visitedStores," (",u.numericDistribution.toFixed(1),"%)"]})]})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"% Add. Exhibition (Secondary)"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-emerald-50 text-emerald-600 shrink-0",children:s.jsx(Ws,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline gap-1.5",children:[s.jsxs("span",{className:"text-2xl font-bold text-emerald-600 tracking-tight font-geist",children:[u.secondaryDisplayRate.toFixed(1),"%"]}),s.jsxs("span",{className:"text-xs font-bold text-emerald-600 font-figtree",children:["(",u.secondaryDisplayStores,"/",u.visitedStores,")"]})]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Stores with Secondary Display"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"% Add. Exhibition (Gondola)"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-600 shrink-0",children:s.jsx(lo,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline gap-1.5",children:[s.jsxs("span",{className:"text-2xl font-bold text-sky-600 tracking-tight font-geist",children:[u.gondolaEndRate.toFixed(1),"%"]}),s.jsxs("span",{className:"text-xs font-bold text-sky-600 font-figtree",children:["(",u.gondolaEndStores,"/",u.visitedStores,")"]})]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Stores with Gondola End"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Lucozade Brand Share"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-600 shrink-0",children:s.jsx(Ws,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-sky-600 tracking-tight font-geist",children:[u.avgBrandShelfShare.toFixed(1),"%"]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Ice Kick vs Lucozade Brand"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Avg Shelf Price"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-600 shrink-0",children:s.jsx(uo,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-slate-900 tracking-tight font-geist",children:["$",u.avgRetailPrice.toFixed(2)]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Avg. consumer retail price"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Volume Sell-Out"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-amber-50 text-amber-600 shrink-0",children:s.jsx(P0,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-amber-600 tracking-tight font-geist",children:[u.totalSellOutUnits.toLocaleString()," ",s.jsx("span",{className:"text-xs font-bold text-slate-400 font-figtree",children:"units"})]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Sell-In - Physical Inventory"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Value Sell-Out"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-emerald-50 text-emerald-600 shrink-0",children:s.jsx(Q0,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-emerald-600 tracking-tight font-geist",children:["$",u.totalSellOutValue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Volume Sell-Out * Shelf Price"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100/80 p-3.5 shadow-2xs hover:shadow-xs transition-all flex flex-col justify-between",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Physical Inventory"}),s.jsx("div",{className:"p-1.5 rounded-lg bg-amber-50 text-amber-600 shrink-0",children:s.jsx(Ci,{className:"w-4 h-4"})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-2xl font-bold text-slate-900 tracking-tight font-geist",children:[u.totalPhysicalInventory.toLocaleString()," ",s.jsx("span",{className:"text-xs font-bold text-slate-400 font-figtree",children:"units"})]}),s.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5 font-figtree",children:"Sales Floor + Backroom"})]})]})]})}),E0=({mergedData:u,onSelectStore:d})=>{const x=u.filter(j=>j.status==="Visited"),r=x.filter(j=>{var f;return((f=j.response)==null?void 0:f.isAvailable)==="Yes"}),g=x.filter(j=>{var f;return((f=j.response)==null?void 0:f.isAvailable)==="No"}),b=x.length>0?r.length/x.length*100:0,S=x.length>0?g.length/x.length*100:0,C=new Map;return x.forEach(j=>{var k;const f=j.store.zone||"Unassigned Zone",N=C.get(f)||{total:0,available:0,oos:0};N.total+=1,((k=j.response)==null?void 0:k.isAvailable)==="Yes"?N.available+=1:N.oos+=1,C.set(f,N)}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"bg-white border border-sky-100 p-4 sm:p-5 rounded-3xl shadow-2xs",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 font-bold text-[10px] uppercase tracking-wider px-2.5 py-0.5 rounded-full font-figtree",children:"Step 1"}),s.jsx("h2",{className:"text-lg font-extrabold text-slate-900",children:"Presence Validation (First Impression)"})]}),s.jsx("p",{className:"text-xs text-slate-500 max-w-2xl font-medium",children:"Immediate POS availability evaluation. If out of stock (OOS), the workflow directs auditors to check the backroom for urgent replenishment."})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"bg-sky-50/50 px-4 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsxs("div",{className:"text-xl font-black text-emerald-600 font-mono",children:[b.toFixed(1),"%"]}),s.jsx("div",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-bold",children:"Numeric Distribution"})]}),s.jsxs("div",{className:"bg-sky-50/50 px-4 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsxs("div",{className:"text-xl font-black text-rose-600 font-mono",children:[S.toFixed(1),"%"]}),s.jsx("div",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-bold",children:"Out of Stock Rate (OOS)"})]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white border border-sky-100 rounded-2xl p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-emerald-700 font-extrabold text-sm",children:[s.jsx(xa,{className:"w-5 h-5 text-emerald-600"}),s.jsx("span",{children:"Available for Sale Today (Yes)"})]}),s.jsxs("span",{className:"text-lg font-black text-emerald-700 bg-emerald-50 px-3 py-0.5 rounded-full border border-emerald-200",children:[r.length," Stores"]})]}),s.jsx("p",{className:"text-xs text-slate-500 mb-3",children:"Lucozade Sport Ice Kick is active on the sales floor. Proceed to Step 2 (Placement & Display)."}),s.jsx("div",{className:"w-full bg-emerald-50 rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:"bg-emerald-500 h-2 rounded-full transition-all duration-500",style:{width:`${b}%`}})})]}),s.jsxs("div",{className:"bg-white border border-sky-100 rounded-2xl p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-rose-700 font-extrabold text-sm",children:[s.jsx(wi,{className:"w-5 h-5 text-rose-600"}),s.jsx("span",{children:"Out of Stock / OOS (No)"})]}),s.jsxs("span",{className:"text-lg font-black text-rose-700 bg-rose-50 px-3 py-0.5 rounded-full border border-rose-200",children:[g.length," Stores"]})]}),s.jsxs("p",{className:"text-xs text-slate-500 mb-3",children:["Auditor reported shelf out of stock. ",s.jsx("strong",{className:"text-rose-700",children:"System Action:"})," Priority backroom check required (Step 4)."]}),s.jsx("div",{className:"w-full bg-rose-50 rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:"bg-rose-500 h-2 rounded-full transition-all duration-500",style:{width:`${S}%`}})})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 shadow-2xs overflow-hidden",children:[s.jsxs("div",{className:"p-4 border-b border-sky-100 bg-sky-50/30 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 flex items-center gap-2",children:[s.jsx(th,{className:"w-4 h-4 text-rose-600"}),"Out of Stock Stores (OOS) - Priority Action"]}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"List of stores with no product on display. Backroom check required (Step 4)."})]}),s.jsxs("span",{className:"text-xs font-bold text-rose-700 bg-rose-50 border border-rose-200 px-2.5 py-1 rounded-full",children:[g.length," active alerts"]})]}),g.length===0?s.jsxs("div",{className:"p-8 text-center text-slate-500",children:[s.jsx(xa,{className:"w-10 h-10 text-emerald-500 mx-auto mb-2"}),s.jsx("p",{className:"text-sm font-bold text-slate-800",children:"Excellent! No out of stock issues reported."}),s.jsx("p",{className:"text-xs text-slate-500",children:"All audited stores have product availability today."})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"bg-sky-50/60 text-slate-500 font-extrabold uppercase text-[10px] tracking-wider border-b border-sky-100",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3",children:"Store / Customer"}),s.jsx("th",{className:"px-4 py-3",children:"Zone"}),s.jsx("th",{className:"px-4 py-3",children:"Channel"}),s.jsx("th",{className:"px-4 py-3",children:"Report Date"}),s.jsx("th",{className:"px-4 py-3",children:"Backroom Inv. (Step 4)"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Auditor Action"})]})}),s.jsx("tbody",{className:"divide-y divide-sky-100/60 text-slate-700",children:g.map(j=>{var f,N,k,U;return s.jsxs("tr",{className:"hover:bg-sky-50/30 transition-colors",children:[s.jsxs("td",{className:"px-4 py-3 font-bold text-slate-900",children:[j.store.customer,s.jsx("span",{className:"block text-[10px] font-normal text-slate-400",children:j.store.address})]}),s.jsx("td",{className:"px-4 py-3 text-slate-700 font-medium",children:j.store.zone}),s.jsx("td",{className:"px-4 py-3 text-slate-700 font-medium",children:j.store.customerChannel}),s.jsx("td",{className:"px-4 py-3 text-slate-400",children:(f=j.response)==null?void 0:f.submissionDate}),s.jsx("td",{className:"px-4 py-3",children:s.jsxs("span",{className:`inline-flex items-center gap-1 font-bold font-mono ${(((N=j.response)==null?void 0:N.totalPhysicalInventory)||0)>0?"text-amber-600":"text-rose-600"}`,children:[((k=j.response)==null?void 0:k.totalPhysicalInventory)||0," units",(((U=j.response)==null?void 0:U.totalPhysicalInventory)||0)>0?" (Stored)":" (Total Out)"]})}),s.jsx("td",{className:"px-4 py-3 text-right",children:s.jsxs("button",{onClick:()=>d(j),className:"inline-flex items-center gap-1.5 text-xs font-bold text-amber-950 bg-amber-100 hover:bg-amber-200/80 border border-amber-200/80 px-3 py-1.5 rounded-xl transition-all shadow-2xs active:scale-95 cursor-pointer font-figtree",children:[s.jsx("span",{children:"Go to Step 4 (Backroom)"}),s.jsx(V0,{className:"w-3.5 h-3.5 text-amber-900"})]})})]},j.store.customerCode)})})]})})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 mb-3",children:"OOS Availability by Geographic Zone"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Array.from(C.entries()).map(([j,f])=>{const N=f.total>0?f.available/f.total*100:0;return s.jsxs("div",{className:"border border-sky-100 rounded-xl p-3 bg-sky-50/20",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"font-extrabold text-slate-900 text-xs",children:j}),s.jsxs("span",{className:"text-[10px] font-bold text-slate-400",children:[f.total," audited"]})]}),s.jsxs("div",{className:"flex items-baseline justify-between text-xs my-1",children:[s.jsxs("span",{className:"text-emerald-700 font-bold",children:[f.available," avail."]}),s.jsxs("span",{className:"text-rose-600 font-bold",children:[f.oos," OOS"]})]}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-1.5 overflow-hidden",children:s.jsx("div",{className:"bg-emerald-500 h-1.5 rounded-full",style:{width:`${N}%`}})})]},j)})})]})]})},yb=({mergedData:u,onSelectStore:d})=>{const x=u.filter(m=>m.status==="Visited"),r=u.filter(m=>{var z;return m.status==="Visited"&&((z=m.response)==null?void 0:z.isAvailable)==="Yes"}),[g,b]=oe.useState(null),S=g?x.filter(m=>m.store.customer===g):x;g&&r.filter(m=>m.store.customer===g);let C=0,j=0,f=0;S.forEach(m=>{var K;const z=(((K=m.response)==null?void 0:K.placementLocation)||"").toLowerCase();(z.includes("estante")||z.includes("main")||z.includes("shelf"))&&C++,(z.includes("exhibici")||z.includes("display")||z.includes("secondary")||z.includes("secundaria"))&&j++,(z.includes("cabecera")||z.includes("endcap")||z.includes("gondola")||z.includes("góndola")||z.includes("end"))&&f++});const N=S.length||1,k=m=>m?m.flatMap(z=>z.split(/[\r\n,;\s]+/).map(K=>K.trim())).filter(z=>z.startsWith("http://")||z.startsWith("https://")):[],U=S.flatMap(m=>{var K;return k((K=m.response)==null?void 0:K.shelfPhotos).map(Q=>{var te,he;return{url:Q,store:m.store.customer,type:((te=m.response)==null?void 0:te.placementLocation)||"Display / Shelf",date:((he=m.response)==null?void 0:he.submissionDate)||"",auditItem:m}})}),J=S.flatMap(m=>{var K;return k((K=m.response)==null?void 0:K.popPhotos).map(Q=>{var te,he;return{url:Q,store:m.store.customer,type:((te=m.response)==null?void 0:te.popVisible)||"POP Material",date:((he=m.response)==null?void 0:he.submissionDate)||"",auditItem:m}})}),[R,Z]=oe.useState(1),[se,I]=oe.useState(1),ee=6,be=Math.ceil(U.length/ee)||1,Oe=U.slice((R-1)*ee,R*ee),Ne=Math.ceil(J.length/ee)||1,re=J.slice((se-1)*ee,se*ee),[F,ne]=oe.useState(null),v=m=>{b(g===m?null:m),Z(1),I(1)};return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"bg-white border border-sky-100 p-4 sm:p-5 rounded-3xl shadow-2xs",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 font-bold text-[10px] uppercase tracking-wider px-2.5 py-0.5 rounded-full font-figtree",children:"Step 2"}),s.jsx("h2",{className:"text-lg font-extrabold text-slate-900",children:"Placement & Display (Store Mapping)"})]}),s.jsx("p",{className:"text-xs text-slate-500 max-w-2xl font-medium",children:"Assessment of Share of Display, physical location, and execution of POP materials in active stores."})]}),s.jsxs("div",{className:"bg-sky-50/50 px-4 py-2 rounded-2xl border border-sky-100 text-center shrink-0",children:[s.jsx("div",{className:"text-xl font-black text-amber-600 font-mono",children:r.length}),s.jsx("div",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-bold",children:"Stores with Display"})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Main Shelf"}),s.jsxs("span",{className:"text-xs font-black text-amber-900 bg-amber-100 px-2.5 py-0.5 rounded-full",children:[(C/N*100).toFixed(0),"%"]})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-slate-900 mb-1",children:[C," stores"]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium mb-3",children:"Standard placement in beverage section"}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-1.5 overflow-hidden",children:s.jsx("div",{className:"bg-amber-400 h-1.5 rounded-full",style:{width:`${C/N*100}%`}})})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Secondary Display"}),s.jsxs("span",{className:"text-xs font-black text-emerald-700 bg-emerald-50 px-2.5 py-0.5 rounded-full border border-emerald-200",children:[(j/N*100).toFixed(0),"%"]})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-emerald-600 mb-1",children:[j," stores"]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium mb-3",children:"Promotional island, auxiliary cooler, dump bin"}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-1.5 overflow-hidden",children:s.jsx("div",{className:"bg-emerald-500 h-1.5 rounded-full",style:{width:`${j/N*100}%`}})})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Endcap"}),s.jsxs("span",{className:"text-xs font-black text-sky-700 bg-sky-50 px-2.5 py-0.5 rounded-full border border-sky-200",children:[(f/N*100).toFixed(0),"%"]})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-sky-600 mb-1",children:[f," stores"]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium mb-3",children:"High-visibility endcap placement"}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-1.5 overflow-hidden",children:s.jsx("div",{className:"bg-sky-500 h-1.5 rounded-full",style:{width:`${f/N*100}%`}})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-stretch",children:[s.jsxs("div",{className:"lg:col-span-7 bg-white rounded-2xl border border-sky-100 shadow-2xs overflow-hidden flex flex-col h-full",children:[s.jsxs("div",{className:"p-3.5 border-b border-sky-100 bg-sky-50/40 flex items-center justify-between gap-2 shrink-0",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Display & Promotional Material (POP) Mapping"}),g&&s.jsxs("span",{className:"inline-flex items-center gap-1 bg-amber-100 text-amber-900 border border-amber-300 text-[10px] font-black px-2 py-0.5 rounded-full",children:["Filtered: ",g,s.jsx("button",{onClick:m=>{m.stopPropagation(),b(null),Z(1),I(1)},className:"p-0.5 hover:bg-amber-200 rounded-full cursor-pointer",title:"Clear filter",children:s.jsx(pa,{className:"w-3 h-3 text-amber-800"})})]})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-0.5",children:"Click a store row to filter photo galleries and metrics."})]}),g&&s.jsxs("button",{onClick:()=>{b(null),Z(1),I(1)},className:"text-[11px] font-extrabold text-amber-700 hover:text-amber-900 underline cursor-pointer shrink-0",children:["View All (",r.length,")"]})]}),s.jsx("div",{className:"overflow-x-auto overflow-y-auto max-h-[640px] scrollbar-thin flex-1",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"bg-sky-50 text-slate-500 font-extrabold uppercase text-[10px] tracking-wider border-b border-sky-100 sticky top-0 z-10 shadow-2xs",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-3.5 py-2.5",children:"Store / Customer"}),s.jsx("th",{className:"px-3 py-2.5",children:"Zone"}),s.jsx("th",{className:"px-3 py-2.5",children:"Product Location"}),s.jsx("th",{className:"px-3 py-2.5",children:"POP Material"})]})}),s.jsx("tbody",{className:"divide-y divide-sky-100/60 text-slate-700",children:r.map(m=>{var K,Q;const z=g===m.store.customer;return s.jsxs("tr",{onClick:()=>v(m.store.customer),className:`cursor-pointer transition-all ${z?"bg-amber-100/70 border-l-4 border-l-amber-500 font-bold text-slate-950":"hover:bg-sky-50/60"}`,children:[s.jsxs("td",{className:"px-3.5 py-2.5 font-bold text-slate-900 flex items-center justify-between gap-2",children:[s.jsx("span",{children:m.store.customer}),z&&s.jsx("span",{className:"text-[9px] bg-amber-400 text-slate-950 px-1.5 py-0.5 rounded-full font-black uppercase tracking-wider shrink-0",children:"Filtered"})]}),s.jsx("td",{className:"px-3 py-2.5 text-slate-600 font-medium",children:m.store.zone}),s.jsx("td",{className:"px-3 py-2.5",children:s.jsx("span",{className:`inline-flex items-center font-bold px-2 py-0.5 rounded-lg text-[11px] ${z?"bg-amber-200 text-amber-950":"bg-sky-50 border border-sky-100 text-slate-800"}`,children:((K=m.response)==null?void 0:K.placementLocation)||"No Location"})}),s.jsx("td",{className:"px-3 py-2.5 text-slate-600",children:((Q=m.response)==null?void 0:Q.popVisible)||"None"})]},m.store.customerCode)})})]})})]}),s.jsxs("div",{className:"lg:col-span-5 flex flex-col gap-4 justify-between",children:[s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs flex flex-col justify-between flex-1",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 border-b border-sky-100 pb-2.5",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 flex items-center gap-1.5",children:[s.jsx(Ws,{className:"w-4 h-4 text-sky-600"}),"Display & Shelf Photos"]}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-0.5",children:"Shelf & display photos from floor audit"})]}),s.jsxs("span",{className:"text-xs font-bold text-sky-800 bg-sky-50 border border-sky-100 px-2.5 py-0.5 rounded-full",children:[U.length," photo(s)"]})]}),U.length===0?s.jsx("div",{className:"text-center py-8 text-slate-400 text-xs font-medium",children:"No shelf photos attached for this selection."}):s.jsx("div",{className:"grid grid-cols-3 gap-2",children:Oe.map((m,z)=>s.jsxs("div",{onClick:()=>ne(m),className:"group relative rounded-xl border border-slate-200/80 bg-slate-900 overflow-hidden cursor-pointer aspect-[4/3] shadow-2xs hover:shadow-md hover:border-sky-500 transition-all flex flex-col justify-end",children:[s.jsx("img",{src:m.url,alt:m.store,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950/80 via-slate-950/20 to-transparent pointer-events-none"}),s.jsx("div",{className:"relative z-10 p-1.5 text-white",children:s.jsx("p",{className:"text-[9px] font-extrabold truncate drop-shadow-xs",title:m.store,children:m.store})})]},z))})]}),U.length>0&&s.jsxs("div",{className:"flex items-center justify-between border-t border-sky-100 pt-2.5 mt-3 bg-slate-50/60 p-1.5 rounded-xl",children:[s.jsxs("button",{disabled:R===1,onClick:()=>Z(m=>Math.max(1,m-1)),className:"flex items-center gap-1 text-[11px] font-bold text-slate-700 bg-white border border-slate-200 px-2.5 py-1 rounded-lg disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-100 transition-colors cursor-pointer shadow-2xs",children:[s.jsx(Wr,{className:"w-3 h-3"}),"Prev"]}),s.jsxs("span",{className:"text-[11px] font-bold text-slate-700 font-mono",children:["Page ",s.jsx("span",{className:"text-sky-700",children:R})," of ",be]}),s.jsxs("button",{disabled:R===be,onClick:()=>Z(m=>Math.min(be,m+1)),className:"flex items-center gap-1 text-[11px] font-bold text-slate-700 bg-white border border-slate-200 px-2.5 py-1 rounded-lg disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-100 transition-colors cursor-pointer shadow-2xs",children:["Next",s.jsx(Pr,{className:"w-3 h-3"})]})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs flex flex-col justify-between flex-1",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 border-b border-sky-100 pb-2.5",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 flex items-center gap-1.5",children:[s.jsx(uo,{className:"w-4 h-4 text-amber-600"}),"POP Material Photos"]}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-0.5",children:"Promotional POP photos (posters, wobblers, shelf strips)"})]}),s.jsxs("span",{className:"text-xs font-bold text-amber-800 bg-amber-50 border border-amber-200 px-2.5 py-0.5 rounded-full",children:[J.length," photo(s)"]})]}),J.length===0?s.jsx("div",{className:"text-center py-8 text-slate-400 text-xs font-medium",children:"No POP material photos attached for this selection."}):s.jsx("div",{className:"grid grid-cols-3 gap-2",children:re.map((m,z)=>s.jsxs("div",{onClick:()=>ne(m),className:"group relative rounded-xl border border-slate-200/80 bg-slate-900 overflow-hidden cursor-pointer aspect-[4/3] shadow-2xs hover:shadow-md hover:border-amber-500 transition-all flex flex-col justify-end",children:[s.jsx("img",{src:m.url,alt:m.store,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950/80 via-slate-950/20 to-transparent pointer-events-none"}),s.jsx("div",{className:"relative z-10 p-1.5 text-white",children:s.jsx("p",{className:"text-[9px] font-extrabold truncate drop-shadow-xs",title:m.store,children:m.store})})]},z))})]}),J.length>0&&s.jsxs("div",{className:"flex items-center justify-between border-t border-sky-100 pt-2.5 mt-3 bg-slate-50/60 p-1.5 rounded-xl",children:[s.jsxs("button",{disabled:se===1,onClick:()=>I(m=>Math.max(1,m-1)),className:"flex items-center gap-1 text-[11px] font-bold text-slate-700 bg-white border border-slate-200 px-2.5 py-1 rounded-lg disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-100 transition-colors cursor-pointer shadow-2xs",children:[s.jsx(Wr,{className:"w-3 h-3"}),"Prev"]}),s.jsxs("span",{className:"text-[11px] font-bold text-slate-700 font-mono",children:["Page ",s.jsx("span",{className:"text-amber-700",children:se})," of ",Ne]}),s.jsxs("button",{disabled:se===Ne,onClick:()=>I(m=>Math.min(Ne,m+1)),className:"flex items-center gap-1 text-[11px] font-bold text-slate-700 bg-white border border-slate-200 px-2.5 py-1 rounded-lg disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-100 transition-colors cursor-pointer shadow-2xs",children:["Next",s.jsx(Pr,{className:"w-3 h-3"})]})]})]})]})]}),F&&s.jsx("div",{onClick:()=>ne(null),className:"fixed inset-0 z-50 bg-slate-950/80 backdrop-blur-xs flex items-center justify-center p-4 cursor-pointer",children:s.jsxs("div",{onClick:m=>m.stopPropagation(),className:"relative max-w-3xl w-full bg-white border border-sky-100 rounded-3xl overflow-hidden p-4 shadow-2xl space-y-3 cursor-default",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-sky-100 pb-2",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-extrabold text-slate-900",children:F.store}),s.jsxs("p",{className:"text-xs text-sky-700 font-bold mt-0.5",children:[F.type," • ",F.date]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("a",{href:F.url,target:"_blank",rel:"noreferrer",className:"p-1.5 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-700 transition-colors",title:"Open original image",children:s.jsx(X0,{className:"w-4 h-4"})}),s.jsx("button",{onClick:()=>ne(null),className:"p-1.5 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-700 transition-colors cursor-pointer",children:s.jsx(pa,{className:"w-4 h-4"})})]})]}),s.jsx("div",{className:"bg-slate-950 rounded-2xl overflow-hidden flex items-center justify-center min-h-[300px] max-h-[70vh]",children:s.jsx("img",{src:F.url,alt:F.store,className:"max-w-full max-h-[65vh] object-contain"})}),s.jsxs("div",{className:"flex justify-between items-center text-xs pt-1",children:[s.jsx("button",{onClick:()=>{ne(null),d(F.auditItem)},className:"font-bold text-sky-700 hover:underline cursor-pointer",children:"View full store report →"}),s.jsx("button",{onClick:()=>ne(null),className:"font-bold text-slate-500 hover:text-slate-800 cursor-pointer",children:"Close"})]})]})})]})},gb=({mergedData:u,onSelectStore:d})=>{const x=u.filter(R=>{var Z;return R.status==="Visited"&&((Z=R.response)==null?void 0:Z.isAvailable)==="Yes"});let r=0,g=0,b=0,S=0,C=0;x.forEach(R=>{const Z=R.response;Z&&(r+=Z.facingsIceKick||0,g+=Z.facingsLucozadeBrand||0,b+=Z.facingsCategoryTotal||0,Z.retailPrice&&Z.retailPrice>0&&(S+=Z.retailPrice,C++))});const j=x.length>0?r/x.length:0;x.length>0&&g/x.length,x.length>0&&b/x.length;const f=C>0?S/C:0,N=g>0?r/g*100:0,k=b>0?g/b*100:0,U=b>0?r/b*100:0,J=x.map(R=>{var Z,se,I;return{store:R.store.customer,sub:((Z=R.response)==null?void 0:Z.skuSubstitution)||"N/A",iceKickFacings:((se=R.response)==null?void 0:se.facingsIceKick)||0,price:((I=R.response)==null?void 0:I.retailPrice)||0}}).filter(R=>R.sub&&!R.sub.toLowerCase().includes("ninguna")&&!R.sub.toLowerCase().includes("n/a"));return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"bg-white border border-sky-100 p-4 sm:p-5 rounded-3xl shadow-2xs",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 font-bold text-[10px] uppercase tracking-wider px-2.5 py-0.5 rounded-full font-figtree",children:"Step 3"}),s.jsx("h2",{className:"text-lg font-extrabold text-slate-900",children:"Main Shelf Measurement (Detailed Analysis)"})]}),s.jsx("p",{className:"text-xs text-slate-500 max-w-2xl font-medium",children:"Detailed audit of consumer price, facing counts, Share of Brand Shelf, Share of Category, and competitor SKU substitution."})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"bg-sky-50/50 px-3.5 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsxs("div",{className:"text-lg font-black text-emerald-600 font-mono",children:["$",f.toFixed(2)]}),s.jsx("div",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-bold",children:"Avg Price"})]}),s.jsxs("div",{className:"bg-sky-50/50 px-3.5 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsxs("div",{className:"text-lg font-black text-amber-600 font-mono",children:[N.toFixed(1),"%"]}),s.jsx("div",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-bold",children:"Brand Share"})]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Ice Kick Facings"}),s.jsx("span",{className:"p-1.5 rounded-xl bg-amber-50 text-amber-600 border border-amber-200",children:s.jsx(dp,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-slate-900 mb-0.5",children:[j.toFixed(1)," ",s.jsx("span",{className:"text-xs font-semibold text-slate-400",children:"facings/store"})]}),s.jsxs("p",{className:"text-[10px] text-slate-400 font-medium",children:["Total accum: ",r," facings"]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs font-figtree",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Share of Brand Shelf"}),s.jsx("span",{className:"p-1.5 rounded-xl bg-sky-50 text-sky-600 border border-sky-200",children:s.jsx(Ws,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-bold text-sky-600 mb-0.5 font-geist",children:[N.toFixed(1),"%"]}),s.jsxs("p",{className:"text-[10px] text-slate-400 font-medium",children:["Ice Kick / Total Lucozade Brand (",g," facings)"]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs font-figtree",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider font-ibm",children:"Share of Category"}),s.jsx("span",{className:"p-1.5 rounded-xl bg-amber-50 text-amber-600 border border-amber-200",children:s.jsx(ip,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-bold text-amber-600 mb-0.5 font-geist",children:[k.toFixed(1),"%"]}),s.jsxs("p",{className:"text-[10px] text-slate-400 font-medium",children:["Lucozade / Total Category (",b," facings)"]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Avg Retail Price"}),s.jsx("span",{className:"p-1.5 rounded-xl bg-emerald-50 text-emerald-600 border border-emerald-200",children:s.jsx(uo,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-emerald-600 font-mono mb-0.5",children:["$",f.toFixed(2)]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Main shelf retail price"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 mb-1",children:"Energy & Sports Drinks Shelf Composition"}),s.jsx("p",{className:"text-xs text-slate-500 mb-4",children:"Total facing distribution across Lucozade Ice Kick, rest of Lucozade, and competitors."}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs font-bold text-slate-800 mb-1",children:[s.jsxs("span",{children:["Lucozade Ice Kick (",r," facings)"]}),s.jsxs("span",{className:"text-sky-600 font-extrabold",children:[U.toFixed(1),"% of category"]})]}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-3 overflow-hidden",children:s.jsx("div",{className:"bg-sky-500 h-3 rounded-full",style:{width:`${U}%`}})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs font-bold text-slate-800 mb-1",children:[s.jsxs("span",{children:["Total Lucozade Brand (",g," facings)"]}),s.jsxs("span",{className:"text-amber-600 font-extrabold",children:[k.toFixed(1),"% of category"]})]}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-3 overflow-hidden",children:s.jsx("div",{className:"bg-amber-400 h-3 rounded-full",style:{width:`${k}%`}})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs font-bold text-slate-800 mb-1",children:[s.jsxs("span",{children:["Competitors / Total Category (",b," facings)"]}),s.jsx("span",{className:"text-slate-400 font-extrabold",children:"100% of shelf"})]}),s.jsx("div",{className:"w-full bg-sky-100/60 rounded-full h-3 overflow-hidden",children:s.jsx("div",{className:"bg-slate-300 h-3 rounded-full",style:{width:"100%"}})})]})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 shadow-2xs overflow-hidden",children:[s.jsxs("div",{className:"p-4 border-b border-sky-100 bg-sky-50/30 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 flex items-center gap-2",children:[s.jsx($p,{className:"w-4 h-4 text-sky-600"}),"SKU Substitution Tracking (Space Gain)"]}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Which competitor brands or SKUs surrendered shelf space for Ice Kick placement?"})]}),s.jsxs("span",{className:"text-xs font-bold text-amber-800 bg-amber-50 border border-amber-200 px-2.5 py-1 rounded-full",children:[J.length," space gain(s) recorded"]})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"bg-sky-50/60 text-slate-500 font-extrabold uppercase text-[10px] tracking-wider border-b border-sky-100",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3",children:"Store / Customer"}),s.jsx("th",{className:"px-4 py-3",children:"Surrendered Brand / SKU"}),s.jsx("th",{className:"px-4 py-3",children:"Facings Gained by Ice Kick"}),s.jsx("th",{className:"px-4 py-3",children:"Shelf Price"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"View Report"})]})}),s.jsx("tbody",{className:"divide-y divide-sky-100/60 text-slate-700",children:x.map(R=>{var Z,se,I;return s.jsxs("tr",{className:"hover:bg-sky-50/30 transition-colors",children:[s.jsx("td",{className:"px-4 py-3 font-bold text-slate-900",children:R.store.customer}),s.jsx("td",{className:"px-4 py-3",children:s.jsxs("span",{className:"inline-flex items-center gap-1 font-bold text-amber-900 bg-amber-50 border border-amber-200 px-2.5 py-0.5 rounded-lg",children:[s.jsx(tp,{className:"w-3.5 h-3.5 text-amber-600"}),((Z=R.response)==null?void 0:Z.skuSubstitution)||"N/A"]})}),s.jsxs("td",{className:"px-4 py-3 font-extrabold text-emerald-600 font-mono",children:["+",((se=R.response)==null?void 0:se.facingsIceKick)||0," facings"]}),s.jsxs("td",{className:"px-4 py-3 font-bold text-slate-900 font-mono",children:["$",(((I=R.response)==null?void 0:I.retailPrice)||0).toFixed(2)]}),s.jsx("td",{className:"px-4 py-3 text-right",children:s.jsx("button",{onClick:()=>d(R),className:"text-xs font-bold text-sky-700 hover:text-sky-900 hover:underline cursor-pointer",children:"View Details →"})})]},R.store.customerCode)})})]})})]})]})},vb=({mergedData:u,onSelectStore:d})=>{const x=u.filter(C=>C.status==="Visited");let r=0,g=0,b=0,S=0;return x.forEach(C=>{var J,R;const j=((J=C.response)==null?void 0:J.totalPhysicalInventory)||0,f=((R=C.response)==null?void 0:R.retailPrice)||0,N=C.store.unitsSoldIn||0,k=Math.max(0,N-j),U=k*f;r+=j,g+=N,b+=k,S+=U}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"bg-white border border-sky-100 p-4 sm:p-5 rounded-3xl shadow-2xs",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 font-bold text-[10px] uppercase tracking-wider px-2.5 py-0.5 rounded-full font-figtree",children:"Step 4"}),s.jsx("h2",{className:"text-lg font-extrabold text-slate-900",children:"Inventory & Closing (Store Manager Alignment)"})]}),s.jsx("p",{className:"text-xs text-slate-500 max-w-2xl font-medium",children:"Final physical count combining sales floor units and backroom stock. Volume Sell-Out is calculated by subtracting physical inventory from dispatched Sell-In."})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsxs("div",{className:"bg-sky-50/50 px-3.5 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsx("div",{className:"text-lg font-black text-slate-900 font-mono",children:r.toLocaleString()}),s.jsx("div",{className:"text-[9px] uppercase tracking-wider text-slate-400 font-bold",children:"Physical Inventory"})]}),s.jsxs("div",{className:"bg-sky-50/50 px-3.5 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsx("div",{className:"text-lg font-black text-sky-600 font-mono",children:b.toLocaleString()}),s.jsx("div",{className:"text-[9px] uppercase tracking-wider text-slate-400 font-bold",children:"Volume Sell-Out (Units)"})]}),s.jsxs("div",{className:"bg-sky-50/50 px-3.5 py-2 rounded-2xl border border-sky-100 text-center",children:[s.jsxs("div",{className:"text-lg font-black text-emerald-600 font-mono",children:["$",S.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),s.jsx("div",{className:"text-[9px] uppercase tracking-wider text-slate-400 font-bold",children:"Value Sell-Out ($)"})]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Physical Inventory (Floor + Backroom)"}),s.jsx("div",{className:"p-1.5 rounded-xl bg-amber-50 text-amber-600 border border-amber-200",children:s.jsx(Ci,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-slate-900 font-mono mb-0.5",children:[r.toLocaleString()," ",s.jsx("span",{className:"text-xs font-bold text-slate-400 font-sans",children:"units"})]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Physical count reported by auditor in Step 4"})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Dispatched Sell-In (Units Sold In)"}),s.jsx("div",{className:"p-1.5 rounded-xl bg-sky-50 text-sky-600 border border-sky-200",children:s.jsx(ub,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-sky-600 font-mono mb-0.5",children:[g.toLocaleString()," ",s.jsx("span",{className:"text-xs font-bold text-slate-400 font-sans",children:"units"})]}),s.jsxs("p",{className:"text-[10px] text-slate-400 font-medium",children:["Provided by the ",s.jsx("span",{className:"font-semibold text-slate-700",children:"tiendas"})," sheet"]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Volume Sell-Out (Units)"}),s.jsx("div",{className:"p-1.5 rounded-xl bg-amber-50 text-amber-700 border border-amber-200",children:s.jsx(P0,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-amber-600 font-mono mb-0.5",children:[b.toLocaleString()," ",s.jsx("span",{className:"text-xs font-bold text-slate-400 font-sans",children:"units"})]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Calculated (Dispatched Sell-In - Physical Inv)"})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 p-4 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-[10px] font-extrabold text-slate-400 uppercase tracking-wider",children:"Estimated Value Sell-Out ($)"}),s.jsx("div",{className:"p-1.5 rounded-xl bg-emerald-50 text-emerald-600 border border-emerald-200",children:s.jsx(Q0,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"text-2xl font-extrabold text-emerald-600 font-mono mb-0.5",children:["$",S.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),s.jsx("p",{className:"text-[10px] text-slate-400 font-medium",children:"Calculated (Volume Sell-Out * Shelf Price)"})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 shadow-2xs overflow-hidden",children:[s.jsx("div",{className:"p-4 border-b border-sky-100 bg-sky-50/30 flex items-center justify-between",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Physical Inventory and Sell-Out by Store"}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Relationship between dispatched Sell-In, physical inventory, and calculated Sell-Out (Units and Value)."})]})}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"bg-sky-50/60 text-slate-500 font-extrabold uppercase text-[10px] tracking-wider border-b border-sky-100",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3",children:"Store / Customer"}),s.jsx("th",{className:"px-4 py-3",children:"Zone / Channel"}),s.jsx("th",{className:"px-4 py-3",children:"Sell-In (Units Sold In)"}),s.jsx("th",{className:"px-4 py-3",children:"Total Physical Inv (Floor + Backroom)"}),s.jsx("th",{className:"px-4 py-3 text-amber-700 bg-amber-50/40",children:"Sell-Out (Units)"}),s.jsx("th",{className:"px-4 py-3",children:"Shelf Price"}),s.jsx("th",{className:"px-4 py-3 text-emerald-700 bg-emerald-50/30",children:"Value Sell-Out ($)"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"View Report"})]})}),s.jsx("tbody",{className:"divide-y divide-sky-100/60 text-slate-700",children:x.map(C=>{var J,R;const j=((J=C.response)==null?void 0:J.totalPhysicalInventory)||0,f=((R=C.response)==null?void 0:R.retailPrice)||0,N=C.store.unitsSoldIn||0,k=Math.max(0,N-j),U=k*f;return s.jsxs("tr",{className:"hover:bg-sky-50/30 transition-colors",children:[s.jsx("td",{className:"px-4 py-3 font-bold text-slate-900",children:C.store.customer}),s.jsxs("td",{className:"px-4 py-3 text-slate-700 font-medium",children:[C.store.zone," - ",C.store.customerChannel]}),s.jsxs("td",{className:"px-4 py-3 font-bold text-sky-600 font-mono",children:[N.toLocaleString()," units"]}),s.jsxs("td",{className:"px-4 py-3 font-extrabold text-slate-900 font-mono",children:[j.toLocaleString()," units",C.hasOOS&&j>0&&s.jsx("span",{className:"block text-[10px] text-amber-600 font-bold",children:"âš ï¸ In Backroom (OOS on shelf)"})]}),s.jsxs("td",{className:"px-4 py-3 font-black text-amber-700 bg-amber-50/30 font-mono",children:[k.toLocaleString()," units"]}),s.jsxs("td",{className:"px-4 py-3 font-bold text-slate-800 font-mono",children:["$",f.toFixed(2)]}),s.jsxs("td",{className:"px-4 py-3 font-bold text-emerald-600 bg-emerald-50/20 font-mono",children:["$",U.toFixed(2)]}),s.jsx("td",{className:"px-4 py-3 text-right",children:s.jsx("button",{onClick:()=>d(C),className:"text-xs font-bold text-sky-700 hover:text-sky-900 hover:underline cursor-pointer",children:"View Details →"})})]},C.store.customerCode)})})]})})]})]})},z0=({mergedData:u,onSelectStore:d})=>{const[x,r]=oe.useState("customer"),[g,b]=oe.useState(!0),S=N=>{x===N?b(!g):(r(N),b(!0))},C=[...u].sort((N,k)=>{let U=N.store.customer,J=k.store.customer;const R=N.response,Z=k.response,se=(R==null?void 0:R.retailPrice)||0,I=(Z==null?void 0:Z.retailPrice)||0,ee=(R==null?void 0:R.totalPhysicalInventory)||0,be=(Z==null?void 0:Z.totalPhysicalInventory)||0,Oe=N.store.unitsSoldIn||0,Ne=k.store.unitsSoldIn||0,re=Math.max(0,Oe-ee),F=Math.max(0,Ne-be);return x==="zone"?(U=N.store.zone,J=k.store.zone):x==="channel"?(U=N.store.customerChannel,J=k.store.customerChannel):x==="date"?(U=(R==null?void 0:R.submissionDate)||N.store.assignedDate||"",J=(Z==null?void 0:Z.submissionDate)||k.store.assignedDate||""):x==="status"?(U=N.status,J=k.status):x==="oos"?(U=(R==null?void 0:R.isAvailable)||"",J=(Z==null?void 0:Z.isAvailable)||""):x==="placement"?(U=(R==null?void 0:R.placementLocation)||"",J=(Z==null?void 0:Z.placementLocation)||""):x==="pop"?(U=(R==null?void 0:R.popVisible)||"",J=(Z==null?void 0:Z.popVisible)||""):x==="price"?(U=se,J=I):x==="iceKickFacings"?(U=(R==null?void 0:R.facingsIceKick)||0,J=(Z==null?void 0:Z.facingsIceKick)||0):x==="lucozadeFacings"?(U=(R==null?void 0:R.facingsLucozadeBrand)||0,J=(Z==null?void 0:Z.facingsLucozadeBrand)||0):x==="inventory"?(U=ee,J=be):x==="sellIn"?(U=Oe,J=Ne):x==="sellOut"?(U=re,J=F):x==="sellOutValue"&&(U=re*se,J=F*I),UJ?g?1:-1:0}),j=N=>N==null?'""':`"${String(N).replace(/[\r\n]+/g," ").trim().replace(/"/g,'""')}"`,f=()=>{const N=["Punto de Venta","Fecha Visita","Zona","Channel","Estatus de Auditoría","OOS Availability","Placement","POP","Price Shelf ($)","Ice Kick Facings","Lucozade Facings","Physical Inventory","Sell In","Sell Out","Sell Out Value ($)"],k=C.map(se=>{const I=se.status==="Visited",ee=se.response,be=(ee==null?void 0:ee.retailPrice)||0,Oe=(ee==null?void 0:ee.totalPhysicalInventory)||0,Ne=se.store.unitsSoldIn||0,re=I?Math.max(0,Ne-Oe):0,F=re*be;return[se.store.customer,(ee==null?void 0:ee.submissionDate)||se.store.assignedDate||"Pending",se.store.zone,se.store.customerChannel,I?"Visited":"Pending",I?(ee==null?void 0:ee.isAvailable)==="Yes"?"Available":"Out of Stock":"Not Reported",I&&(ee==null?void 0:ee.placementLocation)||"N/A",I?(ee==null?void 0:ee.popVisible)||"No POP":"N/A",I?be.toFixed(2):"0.00",I&&(ee==null?void 0:ee.facingsIceKick)||0,I&&(ee==null?void 0:ee.facingsLucozadeBrand)||0,I?Oe:0,Ne,I?re:0,I?F.toFixed(2):"0.00"]}),U=[N.map(se=>j(se)).join(","),...k.map(se=>se.map(I=>j(I)).join(","))].join(`\r +`),J=new Blob(["\uFEFF"+U],{type:"text/csv;charset=utf-8;"}),R=URL.createObjectURL(J),Z=document.createElement("a");Z.href=R,Z.setAttribute("download",`lucozade_audit_master_table_${new Date().toISOString().slice(0,10)}.csv`),document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(R)};return s.jsxs("div",{className:"bg-white rounded-2xl border border-sky-100 shadow-2xs overflow-hidden",children:[s.jsxs("div",{className:"p-4 border-b border-sky-100 bg-sky-50/40 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-bold text-slate-800 flex items-center gap-2 font-ibm",children:[s.jsx("div",{className:"p-1.5 rounded-lg bg-sky-100 text-sky-700",children:s.jsx(eh,{className:"w-4 h-4"})}),"Consolidated Store Audit Directory"]}),s.jsx("p",{className:"text-2xs text-slate-500 mt-0.5 font-figtree",children:"Complete store audit breakdown across 14 independent key performance indicators."})]}),s.jsxs("button",{onClick:f,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-bold text-slate-700 bg-white hover:bg-slate-50 border border-slate-200 rounded-xl transition-all shadow-2xs cursor-pointer font-figtree",children:[s.jsx(eo,{className:"w-3.5 h-3.5 text-slate-500"}),s.jsx("span",{children:"Export CSV"})]})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs whitespace-nowrap font-fira",children:[s.jsx("thead",{className:"bg-sky-50/60 text-slate-500 font-extrabold uppercase text-[10px] tracking-wider border-b border-sky-100",children:s.jsxs("tr",{children:[s.jsx("th",{onClick:()=>S("customer"),className:"px-3.5 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Point of Sale (Store) ↑↓"}),s.jsx("th",{onClick:()=>S("date"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Visit Date / Week ↑↓"}),s.jsx("th",{onClick:()=>S("zone"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Zone ↑↓"}),s.jsx("th",{onClick:()=>S("channel"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Channel ↑↓"}),s.jsx("th",{onClick:()=>S("status"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Audit Status ↑↓"}),s.jsx("th",{onClick:()=>S("oos"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"OOS Availability ↑↓"}),s.jsx("th",{onClick:()=>S("placement"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Placement ↑↓"}),s.jsx("th",{onClick:()=>S("pop"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"POP ↑↓"}),s.jsx("th",{onClick:()=>S("price"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Price Shelf ↑↓"}),s.jsx("th",{onClick:()=>S("iceKickFacings"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Ice Kick Facings ↑↓"}),s.jsx("th",{onClick:()=>S("lucozadeFacings"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Lucozade Facings ↑↓"}),s.jsx("th",{onClick:()=>S("inventory"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Physical Inventory ↑↓"}),s.jsx("th",{onClick:()=>S("sellIn"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors",children:"Sell In ↑↓"}),s.jsx("th",{onClick:()=>S("sellOut"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors bg-amber-50/50 text-amber-800",children:"Sell Out ↑↓"}),s.jsx("th",{onClick:()=>S("sellOutValue"),className:"px-3 py-3 cursor-pointer hover:bg-sky-100/50 transition-colors bg-emerald-50/50 text-emerald-800",children:"Sell Out Value ↑↓"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Action"})]})}),s.jsx("tbody",{className:"divide-y divide-sky-100/60 text-slate-700",children:C.map(N=>{const k=N.response,U=N.status==="Visited",J=(k==null?void 0:k.retailPrice)||0,R=(k==null?void 0:k.totalPhysicalInventory)||0,Z=N.store.unitsSoldIn||0,se=U?Math.max(0,Z-R):0,I=se*J;return s.jsxs("tr",{className:"hover:bg-sky-50/30 transition-colors",children:[s.jsxs("td",{className:"px-3.5 py-3 font-bold text-slate-900",children:[s.jsx("div",{children:N.store.customer}),s.jsx("span",{className:"text-[10px] font-normal text-slate-400 block max-w-[180px] truncate",children:N.store.address})]}),s.jsx("td",{className:"px-3 py-3 text-slate-700 font-mono text-[11px]",children:(k==null?void 0:k.submissionDate)||N.store.assignedDate||"Pending"}),s.jsx("td",{className:"px-3 py-3 font-semibold text-slate-800",children:N.store.zone}),s.jsx("td",{className:"px-3 py-3 text-slate-600",children:N.store.customerChannel}),s.jsx("td",{className:"px-3 py-3",children:U?s.jsxs("span",{className:"inline-flex items-center gap-1 bg-emerald-50 text-emerald-700 border border-emerald-200 px-2.5 py-0.5 rounded-full font-bold text-[10px]",children:[s.jsx(xa,{className:"w-3 h-3 text-emerald-600"}),"Visited"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 bg-slate-100 text-slate-500 border border-slate-200 px-2.5 py-0.5 rounded-full font-semibold text-[10px]",children:[s.jsx(jp,{className:"w-3 h-3 text-slate-400"}),"Pending"]})}),s.jsx("td",{className:"px-3 py-3",children:U?(k==null?void 0:k.isAvailable)==="Yes"?s.jsxs("span",{className:"inline-flex items-center gap-1 bg-emerald-50 text-emerald-700 border border-emerald-200 px-2 py-0.5 rounded-md font-bold text-[10px]",children:[s.jsx(xa,{className:"w-3 h-3 text-emerald-600"}),"Available"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 bg-rose-50 text-rose-700 border border-rose-200 px-2 py-0.5 rounded-md font-extrabold text-[10px]",children:[s.jsx(wi,{className:"w-3 h-3 text-rose-600"}),"Out of Stock"]}):s.jsx("span",{className:"text-slate-400 text-[10px]",children:"Not Reported"})}),s.jsx("td",{className:"px-3 py-3 font-medium text-slate-800",children:U?(k==null?void 0:k.placementLocation)||"N/A":"-"}),s.jsx("td",{className:"px-3 py-3 font-medium text-slate-800",children:U?(k==null?void 0:k.popVisible)||"No POP":"-"}),s.jsx("td",{className:"px-3 py-3 font-bold font-mono text-slate-900",children:U?`$${J.toFixed(2)}`:"-"}),s.jsx("td",{className:"px-3 py-3 font-bold font-mono text-slate-800",children:U?(k==null?void 0:k.facingsIceKick)||0:"-"}),s.jsx("td",{className:"px-3 py-3 font-bold font-mono text-slate-800",children:U?(k==null?void 0:k.facingsLucozadeBrand)||0:"-"}),s.jsx("td",{className:"px-3 py-3 font-black text-slate-900 font-mono",children:U?`${R.toLocaleString()} units`:"-"}),s.jsxs("td",{className:"px-3 py-3 font-bold text-sky-600 font-mono",children:[Z.toLocaleString()," units"]}),s.jsx("td",{className:"px-3 py-3 font-black text-amber-600 bg-amber-50/30 font-mono",children:U?`${se.toLocaleString()} units`:"-"}),s.jsx("td",{className:"px-3 py-3 font-bold text-emerald-600 bg-emerald-50/20 font-mono",children:U?`$${I.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:"-"}),s.jsx("td",{className:"px-4 py-3 text-right",children:s.jsxs("button",{onClick:()=>d(N),className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-amber-100 hover:bg-amber-200/80 text-amber-950 font-bold border border-amber-200/80 rounded-xl text-xs transition-all shadow-2xs active:scale-95 cursor-pointer",children:[s.jsx(Is,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Report"})]})})]},`${N.store.customerCode}_${(k==null?void 0:k.submissionId)||"pending"}`)})})]})})]})},Sb=({item:u,onClose:d})=>{var N;if(!u)return null;const{store:x,response:r,status:g,hasOOS:b}=u,S=g==="Visited",[C,j]=oe.useState(null),f=[...((r==null?void 0:r.shelfPhotos)||[]).map(k=>({url:k,title:"Shelf / Display Photo"})),...((r==null?void 0:r.popPhotos)||[]).map(k=>({url:k,title:"POP Material Photo"})),...((r==null?void 0:r.categoryPhotos)||[]).map(k=>({url:k,title:"Category Gondola Photo"}))];return s.jsxs("div",{className:"fixed inset-0 z-50 bg-slate-950/60 backdrop-blur-sm flex items-center justify-center p-3 sm:p-6 overflow-y-auto",children:[s.jsxs("div",{className:"bg-white rounded-3xl max-w-4xl w-full my-auto overflow-hidden shadow-2xl border border-sky-100",children:[s.jsxs("div",{className:"bg-sky-50/50 p-5 flex items-start justify-between relative border-b border-sky-100",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 border border-amber-200/80 text-[10px] font-bold uppercase tracking-wider px-2.5 py-0.5 rounded-full font-figtree",children:"Audit Report File"}),s.jsx("span",{className:"text-xs text-slate-400 font-mono",children:x.customerCode})]}),s.jsx("h2",{className:"text-xl font-bold tracking-tight text-slate-900 font-ibm",children:x.customer}),s.jsxs("p",{className:"text-xs text-slate-500 flex items-center gap-1.5 mt-1 font-figtree",children:[s.jsx($0,{className:"w-3.5 h-3.5 text-sky-600"}),x.address," • ",s.jsx("span",{className:"font-semibold text-sky-700",children:x.zone})," • ",s.jsx("span",{children:x.customerChannel})]})]}),s.jsx("button",{onClick:d,className:"p-2 text-slate-400 hover:text-slate-800 hover:bg-sky-100/60 rounded-xl transition-colors cursor-pointer",children:s.jsx(pa,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"p-5 space-y-6 max-h-[78vh] overflow-y-auto text-slate-700",children:[s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 bg-sky-50/30 p-3 rounded-2xl border border-sky-100 text-xs",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] text-slate-400 uppercase font-bold block",children:"Assigned Auditor"}),s.jsx("span",{className:"font-bold text-slate-800",children:x.auditor||"Unassigned"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] text-slate-400 uppercase font-bold block",children:"Visit Days"}),s.jsx("span",{className:"font-bold text-slate-800",children:((N=x.visitDays)==null?void 0:N.join(", "))||"Monday - Friday"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] text-slate-400 uppercase font-bold block",children:"Sell-In (Units Sold In)"}),s.jsxs("span",{className:"font-bold font-mono text-sky-600",children:[(x.unitsSoldIn||0).toLocaleString()," units"]})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] text-slate-400 uppercase font-bold block",children:"Latest Report Date"}),s.jsx("span",{className:"font-bold text-slate-800",children:(r==null?void 0:r.submissionDate)||"No report"})]})]}),u.allResponses&&u.allResponses.length>0&&s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/30",children:[s.jsxs("h3",{className:"text-xs font-extrabold text-slate-900 mb-2 flex items-center gap-1.5",children:[s.jsx(G0,{className:"w-4 h-4 text-sky-600"}),s.jsxs("span",{children:["Weekly Visit History for this POS (",u.allResponses.length," total recorded visits)"]})]}),s.jsx("div",{className:"space-y-2",children:u.allResponses.map((k,U)=>s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100 flex flex-wrap items-center justify-between gap-2 text-xs",children:[s.jsxs("div",{children:[s.jsx("span",{className:"font-extrabold text-slate-900 block",children:k.submissionDate}),s.jsxs("span",{className:"text-slate-500 text-[10px]",children:[k.placementLocation||"Main Shelf"," • POP: ",k.popVisible||"None"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-bold ${k.isAvailable==="Yes"?"bg-emerald-50 text-emerald-700 border border-emerald-200":"bg-rose-50 text-rose-700 border border-rose-200"}`,children:k.isAvailable==="Yes"?"Available":"Out of Stock"}),s.jsxs("span",{className:"font-mono font-bold text-slate-700",children:["$",(k.retailPrice||0).toFixed(2)]}),s.jsxs("span",{className:"font-mono text-sky-600 font-bold",children:[k.totalPhysicalInventory||0," units"]})]})]},k.submissionId||U))})]}),S?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/20 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 border-b border-sky-100 pb-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"w-6 h-6 rounded-lg bg-sky-600 text-white font-black text-xs flex items-center justify-center",children:"1"}),s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Step 1: Presence Validation (First Impression)"})]}),(r==null?void 0:r.isAvailable)==="Yes"?s.jsxs("span",{className:"inline-flex items-center gap-1 bg-emerald-50 text-emerald-700 border border-emerald-200 px-3 py-1 rounded-full text-xs font-extrabold",children:[s.jsx(xa,{className:"w-4 h-4 text-emerald-600"}),"Available for Sale Today (Yes)"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 bg-rose-50 text-rose-700 border border-rose-200 px-3 py-1 rounded-full text-xs font-extrabold",children:[s.jsx(wi,{className:"w-4 h-4 text-rose-600"}),"Out of Stock (No)"]})]}),b&&s.jsxs("div",{className:"bg-rose-50 border border-rose-200 text-rose-800 p-3 rounded-xl text-xs font-medium flex items-center gap-2",children:[s.jsx(wi,{className:"w-4 h-4 text-rose-600 shrink-0"}),s.jsxs("span",{children:[s.jsx("strong",{className:"text-rose-900",children:"Auditor Alert:"})," Product not available on sales floor. Proceeded to Step 4 (Backroom) to inspect stored stock."]})]})]}),s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/20 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 border-b border-sky-100 pb-2.5",children:[s.jsx("span",{className:"w-6 h-6 rounded-lg bg-sky-600 text-white font-black text-xs flex items-center justify-center",children:"2"}),s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Step 2: Placement & Display (Store Mapping)"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 text-xs",children:[s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block mb-1",children:"Product Location"}),s.jsx("span",{className:"text-sm font-bold text-slate-900",children:(r==null?void 0:r.placementLocation)||"N/A"})]}),s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block mb-1",children:"Promotional Material (POP)"}),s.jsx("span",{className:"text-sm font-bold text-slate-900",children:(r==null?void 0:r.popVisible)||"No POP"})]})]})]}),s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/20 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 border-b border-sky-100 pb-2.5",children:[s.jsx("span",{className:"w-6 h-6 rounded-lg bg-sky-600 text-white font-black text-xs flex items-center justify-center",children:"3"}),s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Step 3: Main Shelf Measurement (Detailed Work)"})]}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 text-xs mb-4",children:[s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Retail Price"}),s.jsxs("span",{className:"text-base font-black font-mono text-emerald-600",children:["$",((r==null?void 0:r.retailPrice)||0).toFixed(2)]})]}),s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Ice Kick Facings"}),s.jsxs("span",{className:"text-base font-black text-slate-900",children:[(r==null?void 0:r.facingsIceKick)||0," facings"]})]}),s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Lucozade Brand Share"}),s.jsxs("span",{className:"text-base font-black text-amber-600",children:[r!=null&&r.facingsLucozadeBrand&&r.facingsLucozadeBrand>0?((r.facingsIceKick||0)/r.facingsLucozadeBrand*100).toFixed(1):0,"%"]}),s.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold block",children:["(",(r==null?void 0:r.facingsLucozadeBrand)||0," Lucozade facings)"]})]}),s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100",children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Total Category Share"}),s.jsxs("span",{className:"text-base font-black text-sky-600",children:[r!=null&&r.facingsCategoryTotal&&r.facingsCategoryTotal>0?((r.facingsLucozadeBrand||0)/r.facingsCategoryTotal*100).toFixed(1):0,"%"]}),s.jsxs("span",{className:"text-[10px] text-slate-400 font-semibold block",children:["(",(r==null?void 0:r.facingsCategoryTotal)||0," total facings)"]})]})]}),s.jsxs("div",{className:"bg-amber-50 border border-amber-200 p-3 rounded-xl text-xs",children:[s.jsx("span",{className:"font-bold text-amber-900 block mb-0.5",children:"Space Substitution (SKU Substitution):"}),s.jsx("span",{className:"text-amber-800 font-semibold",children:(r==null?void 0:r.skuSubstitution)||"No substitution recorded"})]})]}),s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/20 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 border-b border-sky-100 pb-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"w-6 h-6 rounded-lg bg-sky-600 text-white font-black text-xs flex items-center justify-center",children:"4"}),s.jsx("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Step 4: Inventory & Closure (Store Manager Interview)"})]}),s.jsxs("span",{className:"text-xs font-extrabold text-emerald-700 bg-emerald-50 border border-emerald-200 px-3 py-1 rounded-full font-mono",children:["Value Sell-Out: $",(((r==null?void 0:r.totalPhysicalInventory)||0)*((r==null?void 0:r.retailPrice)||0)).toFixed(2)]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs",children:[s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100 flex justify-between items-center",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Total Physical Inventory"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Sales Floor + Backroom"})]}),s.jsxs("span",{className:"text-lg font-black font-mono text-slate-900",children:[((r==null?void 0:r.totalPhysicalInventory)||0).toLocaleString()," units"]})]}),s.jsxs("div",{className:"bg-white p-3 rounded-xl border border-sky-100 flex justify-between items-center",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase block",children:"Total Sell-In"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Dispatched / Sold-In units"})]}),s.jsxs("span",{className:"text-lg font-black font-mono text-sky-600",children:[(x.unitsSoldIn||0).toLocaleString()," units"]})]})]})]}),f.length>0&&s.jsxs("div",{className:"border border-sky-100 rounded-2xl p-4 bg-sky-50/20 shadow-2xs",children:[s.jsxs("h3",{className:"text-xs sm:text-sm font-extrabold text-slate-900 mb-3 flex items-center gap-2",children:[s.jsx(Dp,{className:"w-4 h-4 text-sky-600"}),"Attached Photographs (",f.length,")"]}),s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3",children:f.map((k,U)=>s.jsxs("div",{onClick:()=>j(k.url),className:"group relative rounded-xl overflow-hidden border border-sky-100 aspect-square bg-slate-100 cursor-pointer hover:border-sky-500 hover:shadow-xs transition-all",children:[s.jsx("img",{src:k.url,alt:k.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),s.jsx("div",{className:"absolute inset-0 bg-slate-900/60 opacity-0 group-hover:opacity-100 transition-opacity p-2 flex items-end",children:s.jsx("span",{className:"text-[10px] font-bold text-white",children:k.title})})]},U))})]})]}):s.jsxs("div",{className:"p-8 text-center bg-slate-50 rounded-2xl border border-dashed border-slate-200",children:[s.jsx("p",{className:"text-sm font-bold text-slate-800",children:"Store Pending Audit"}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"No form response has been recorded for this store yet."})]})]}),s.jsx("div",{className:"bg-sky-50/50 border-t border-sky-100 p-4 flex justify-end",children:s.jsx("button",{onClick:d,className:"px-5 py-2 bg-amber-400 hover:bg-amber-300 text-slate-950 font-black rounded-xl text-xs transition-all shadow-2xs cursor-pointer",children:"Close Report"})})]}),C&&s.jsx("div",{onClick:()=>j(null),className:"fixed inset-0 z-60 bg-slate-950/80 backdrop-blur-md flex items-center justify-center p-4 cursor-pointer",children:s.jsx("div",{className:"max-w-4xl max-h-[90vh] bg-white border border-sky-100 p-2 rounded-3xl shadow-2xl",children:s.jsx("img",{src:C,alt:"Zoom",className:"max-w-full max-h-[80vh] object-contain rounded-2xl mx-auto"})})})]})},jb=({isOpen:u,currentSpreadsheetId:d,source:x,error:r,onClose:g,onUpdateSpreadsheetId:b})=>{if(!u)return null;const[S,C]=oe.useState(d),j=N=>{N.preventDefault(),S.trim()&&(b(S.trim()),g())},f=d.startsWith("http")?d:`https://docs.google.com/spreadsheets/d/${d}/edit`;return s.jsx("div",{className:"fixed inset-0 z-50 bg-slate-950/70 backdrop-blur-xs flex items-center justify-center p-4",children:s.jsxs("div",{className:"bg-white rounded-3xl max-w-lg w-full overflow-hidden shadow-2xl border border-sky-100",children:[s.jsxs("div",{className:"bg-sky-50/70 text-slate-900 p-4 sm:p-5 flex items-center justify-between border-b border-sky-100",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"p-1.5 rounded-xl bg-amber-100 text-amber-800 border border-amber-200/80",children:s.jsx(K0,{className:"w-4 h-4"})}),s.jsx("h3",{className:"font-extrabold text-sm text-slate-900",children:"Google Sheets Configuration"})]}),s.jsx("button",{onClick:g,className:"p-1 text-slate-400 hover:text-slate-900 rounded-xl transition-colors cursor-pointer",children:s.jsx(pa,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"p-5 space-y-4 text-slate-800",children:[s.jsxs("div",{className:"bg-amber-50 border border-amber-200 text-slate-900 p-3.5 rounded-2xl text-xs space-y-1",children:[s.jsx("p",{className:"font-extrabold text-amber-950",children:"Connected Google Sheets Database:"}),s.jsx("p",{className:"font-mono text-[11px] break-all bg-white p-2 rounded-xl border border-amber-200/80 text-amber-900 font-bold",children:d}),s.jsxs("a",{href:f,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[11px] font-extrabold text-amber-700 hover:text-amber-950 underline pt-1",children:["Open Google Sheet in new tab ",s.jsx(X0,{className:"w-3 h-3"})]})]}),s.jsxs("form",{onSubmit:j,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-[10px] font-extrabold uppercase tracking-wider text-slate-400 mb-1",children:"Google Sheets ID or Published Web Link (pubhtml / URL / ID)"}),s.jsx("input",{type:"text",value:S,onChange:N=>C(N.target.value),placeholder:"https://docs.google.com/spreadsheets/d/e/2PACX-.../pubhtml",className:"w-full px-3.5 py-2.5 text-xs bg-sky-50/50 border border-sky-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-amber-400 font-mono text-slate-900 placeholder-slate-400 font-bold"})]}),s.jsxs("div",{className:"p-3.5 rounded-2xl border border-sky-100 bg-sky-50/30 text-xs",children:[s.jsx("span",{className:"font-extrabold text-slate-900 block mb-1",children:"Required Tab Structure:"}),s.jsxs("ul",{className:"list-disc list-inside text-[11px] text-slate-600 space-y-0.5",children:[s.jsxs("li",{children:[s.jsx("span",{className:"font-extrabold text-slate-900",children:"Form responses"}),": Audit form responses tab"]}),s.jsxs("li",{children:[s.jsx("span",{className:"font-extrabold text-slate-900",children:"tiendas"}),": Master stores list tab"]})]})]}),s.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[s.jsx("button",{type:"button",onClick:()=>{C(Ni),b(Ni)},className:"text-xs font-bold text-slate-400 hover:text-slate-900 underline cursor-pointer",children:"Reset Default ID"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:g,className:"px-3.5 py-2 text-xs font-bold text-slate-500 hover:text-slate-900 hover:bg-sky-50 rounded-xl transition-colors cursor-pointer",children:"Cancel"}),s.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-bold text-amber-950 bg-amber-100 hover:bg-amber-200/80 border border-amber-200/80 rounded-xl shadow-2xs transition-colors cursor-pointer",children:"Sync"})]})]})]})]})]})})},Nb=({isOpen:u,onClose:d})=>{const[x,r]=oe.useState(0),g=7;if(oe.useEffect(()=>{const S=C=>{u&&(C.key==="ArrowRight"||C.key==="Space"?r(j=>Math.min(j+1,g-1)):C.key==="ArrowLeft"?r(j=>Math.max(j-1,0)):C.key==="Escape"&&d())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[u,g,d]),!u)return null;const b=[{title:"Store Audit Dashboard Overview",subtitle:"Executive POS Monitoring Platform: Lucozade Sport Ice Kick",badge:"Module 1: Overview",icon:s.jsx(_i,{className:"w-5 h-5 text-amber-800"}),content:s.jsxs("div",{className:"space-y-5 font-figtree",children:[s.jsxs("div",{className:"bg-sky-50/70 p-4 rounded-2xl border border-sky-100 flex items-start gap-3",children:[s.jsx("div",{className:"p-2 bg-sky-500 text-white rounded-xl shrink-0 mt-0.5",children:s.jsx(to,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-bold text-slate-900 text-sm font-ibm",children:"What is the Store Audit Dashboard?"}),s.jsxs("p",{className:"text-xs text-slate-600 mt-1 leading-relaxed",children:["An executive, real-time management platform designed to audit point-of-sale (POS) commercial execution for ",s.jsx("strong",{children:"Lucozade Sport Ice Kick"}),", tracking stock availability (OOS), shelf share, POP promotional material, and estimated Sell-Out sales."]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5",children:[s.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"p-1.5 rounded-lg bg-emerald-50 text-emerald-700",children:s.jsx(K0,{className:"w-4 h-4"})}),s.jsx("h5",{className:"font-bold text-slate-800 text-xs font-ibm",children:"1. Master Store List"})]}),s.jsxs("p",{className:"text-2xs text-slate-500 leading-relaxed",children:["Contains the official universe of registered stores, customer coding, channel type, geographic zone, and warehouse shipments (",s.jsx("strong",{children:"Sell-In"}),")."]})]}),s.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"p-1.5 rounded-lg bg-sky-50 text-sky-700",children:s.jsx(Op,{className:"w-4 h-4"})}),s.jsx("h5",{className:"font-bold text-slate-800 text-xs font-ibm",children:"2. Field Audit Responses"})]}),s.jsx("p",{className:"text-2xs text-slate-500 leading-relaxed",children:"Live field data captured directly by auditors via Google Form: retail shelf prices, OOS status, facings, POP placement, and shelf photo proof."})]})]}),s.jsxs("div",{className:"bg-amber-50/70 border border-amber-200/80 p-3.5 rounded-2xl flex items-center gap-3",children:[s.jsx("div",{className:"p-2 bg-amber-100 text-amber-800 rounded-xl shrink-0",children:s.jsx(I0,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-bold text-amber-950 font-ibm",children:"Automated Real-Time Synchronization"}),s.jsx("p",{className:"text-2xs text-amber-800 mt-0.5",children:"Whenever a field auditor submits a store audit, data automatically syncs to this live dashboard without requiring manual consolidation or uploads."})]})]})]})},{title:"Key Performance Indicators (KPIs)",subtitle:"Executive Metrics & Commercial Performance Tracker",badge:"Module 2: Key Metrics",icon:s.jsx(Z0,{className:"w-5 h-5 text-sky-600"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsx("p",{className:"text-xs text-slate-600 leading-relaxed",children:"The top summary panel consolidates 11 executive metrics updated dynamically based on active filters:"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3",children:[s.jsxs("div",{className:"p-3 bg-sky-50/60 rounded-xl border border-sky-100",children:[s.jsx("div",{className:"text-[10px] font-bold text-sky-800 uppercase font-ibm",children:"Store Audit Coverage"}),s.jsx("div",{className:"text-lg font-bold text-sky-700 font-geist mt-0.5",children:"% Coverage"}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-1",children:"Percentage of visited stores against total assigned target."})]}),s.jsxs("div",{className:"p-3 bg-rose-50/60 rounded-xl border border-rose-100",children:[s.jsx("div",{className:"text-[10px] font-bold text-rose-800 uppercase font-ibm",children:"Out Of Stock (OOS)"}),s.jsx("div",{className:"text-lg font-bold text-rose-600 font-geist mt-0.5",children:"% OOS Rate"}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-1",children:"Stores where Lucozade Ice Kick is out of stock on the shelf."})]}),s.jsxs("div",{className:"p-3 bg-emerald-50/60 rounded-xl border border-emerald-100",children:[s.jsx("div",{className:"text-[10px] font-bold text-emerald-800 uppercase font-ibm",children:"% Add. Exhibition"}),s.jsx("div",{className:"text-lg font-bold text-emerald-700 font-geist mt-0.5",children:"Extra Display %"}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-1",children:"Presence across secondary displays and gondola end caps."})]}),s.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-200/80",children:[s.jsx("div",{className:"text-[10px] font-bold text-slate-700 uppercase font-ibm",children:"Lucozade Share"}),s.jsx("div",{className:"text-lg font-bold text-slate-800 font-geist mt-0.5",children:"Facing Share %"}),s.jsx("p",{className:"text-[10px] text-slate-500 mt-1",children:"Ice Kick facings share relative to total Lucozade brand."})]}),s.jsxs("div",{className:"p-3 bg-amber-50/60 rounded-xl border border-amber-100",children:[s.jsx("div",{className:"text-[10px] font-bold text-amber-900 uppercase font-ibm",children:"Volume Sell-Out"}),s.jsx("div",{className:"text-lg font-bold text-amber-700 font-geist mt-0.5",children:"Units Sold"}),s.jsxs("p",{className:"text-[10px] text-slate-500 mt-1",children:["Rotation calculation: ",s.jsx("code",{children:"Sell-In - Physical Inventory"}),"."]})]}),s.jsxs("div",{className:"p-3 bg-emerald-50/60 rounded-xl border border-emerald-100",children:[s.jsx("div",{className:"text-[10px] font-bold text-emerald-900 uppercase font-ibm",children:"Value Sell-Out"}),s.jsx("div",{className:"text-lg font-bold text-emerald-700 font-geist mt-0.5",children:"Sales Value ($)"}),s.jsxs("p",{className:"text-[10px] text-slate-500 mt-1",children:["Monetary valuation: ",s.jsx("code",{children:"Sell-Out Units * Shelf Price"}),"."]})]})]})]})},{title:"Smart Filtering System",subtitle:"Dynamic Segmentation by Region, Channel, & Audit Status",badge:"Module 3: Filters",icon:s.jsx(J0,{className:"w-5 h-5 text-sky-600"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsxs("div",{className:"bg-slate-50 p-3.5 rounded-xl border border-slate-200/80 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(lb,{className:"w-4 h-4 text-sky-600"}),s.jsx("span",{className:"text-xs font-bold text-slate-800 font-ibm",children:"Multi-Criteria Segmentation"})]}),s.jsx("span",{className:"text-[10px] font-bold text-sky-700 bg-sky-100 px-2 py-0.5 rounded-md",children:"Combinable Filters"})]}),s.jsxs("div",{className:"space-y-2.5",children:[s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white rounded-xl border border-slate-100 shadow-2xs",children:[s.jsx("div",{className:"w-6 h-6 rounded-lg bg-sky-100 text-sky-800 flex items-center justify-center font-bold text-xs shrink-0 font-geist",children:"1"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-bold text-slate-900 font-ibm",children:"Geographic Region (Zone)"}),s.jsx("p",{className:"text-2xs text-slate-500 mt-0.5",children:"Filter by country zones (e.g. West, South, Central, East, North) to measure regional performance."})]})]}),s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white rounded-xl border border-slate-100 shadow-2xs",children:[s.jsx("div",{className:"w-6 h-6 rounded-lg bg-sky-100 text-sky-800 flex items-center justify-center font-bold text-xs shrink-0 font-geist",children:"2"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-bold text-slate-900 font-ibm",children:"Sales Channel (Channel)"}),s.jsx("p",{className:"text-2xs text-slate-500 mt-0.5",children:"Segmentation by customer type: Supermarkets, Service Stations (Petrol/Convenience), Wholesale, etc."})]})]}),s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white rounded-xl border border-slate-100 shadow-2xs",children:[s.jsx("div",{className:"w-6 h-6 rounded-lg bg-sky-100 text-sky-800 flex items-center justify-center font-bold text-xs shrink-0 font-geist",children:"3"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-bold text-slate-900 font-ibm",children:"Audit Status & OOS Availability"}),s.jsxs("p",{className:"text-2xs text-slate-500 mt-0.5",children:["Compare ",s.jsx("strong",{children:"Visited vs Pending"})," stores, and immediately pinpoint PDVs with active ",s.jsx("strong",{children:"Out of Stock"})," alerts."]})]})]}),s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white rounded-xl border border-slate-100 shadow-2xs",children:[s.jsx("div",{className:"w-6 h-6 rounded-lg bg-sky-100 text-sky-800 flex items-center justify-center font-bold text-xs shrink-0 font-geist",children:"4"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-bold text-slate-900 font-ibm",children:"Direct Search by Store Code or Name"}),s.jsx("p",{className:"text-2xs text-slate-500 mt-0.5",children:"Use the instant search bar to find any specific customer code or store name."})]})]})]})]})},{title:"Audit Methodology (Steps 1 & 2)",subtitle:"Presence Verification, OOS, Location Mapping & POP Material",badge:"Module 4: Steps 1 & 2",icon:s.jsx(Is,{className:"w-5 h-5 text-amber-800"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"p-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 text-[10px] font-bold px-2 py-0.5 rounded-full font-figtree",children:"STEP 1"}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Presence & OOS Availability"})]}),s.jsx("p",{className:"text-2xs text-slate-600 leading-relaxed",children:"First in-store check. Confirms whether Lucozade Sport Ice Kick is available for purchase."}),s.jsxs("ul",{className:"text-2xs text-slate-500 space-y-1 list-disc pl-4",children:[s.jsx("li",{children:"Immediate detection of stockouts (OOS)."}),s.jsx("li",{children:"Identification of non-availability causes."}),s.jsx("li",{children:"Mapping of effective numerical distribution."})]})]}),s.jsxs("div",{className:"p-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 text-[10px] font-bold px-2 py-0.5 rounded-full font-figtree",children:"STEP 2"}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Placement & POP Material"})]}),s.jsx("p",{className:"text-2xs text-slate-600 leading-relaxed",children:"Evaluation of product visibility and promotional support at the point of sale."}),s.jsxs("ul",{className:"text-2xs text-slate-500 space-y-1 list-disc pl-4",children:[s.jsx("li",{children:"Placement: Main Shelf, Chiller, Secondary Display, Gondola End."}),s.jsx("li",{children:"POP Material check: Wobblers, Shelf Talkers, Posters, Branded Coolers."}),s.jsx("li",{children:"Visual merchandising compliance audit."})]})]})]}),s.jsxs("div",{className:"p-3 bg-sky-50 rounded-xl border border-sky-100 text-2xs text-sky-900 flex items-center gap-2",children:[s.jsx(lo,{className:"w-4 h-4 text-sky-600 shrink-0"}),s.jsx("span",{children:"Dedicated tabs in the top navigation bar allow you to inspect each step individually."})]})]})},{title:"Audit Methodology (Steps 3 & 4)",subtitle:"Main Shelf Measurement, Facings, Inventory & Sell-Out",badge:"Module 5: Steps 3 & 4",icon:s.jsx(Ci,{className:"w-5 h-5 text-emerald-600"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"p-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 text-[10px] font-bold px-2 py-0.5 rounded-full font-figtree",children:"STEP 3"}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Main Shelf, Facings & Price"})]}),s.jsx("p",{className:"text-2xs text-slate-600 leading-relaxed",children:"Quantification of physical shelf space and verification of retail consumer price."}),s.jsxs("ul",{className:"text-2xs text-slate-500 space-y-1 list-disc pl-4",children:[s.jsx("li",{children:"Count of Ice Kick facings vs Lucozade Brand vs Category."}),s.jsx("li",{children:"Real-time Share of Shelf (%) calculation."}),s.jsx("li",{children:"SKU substitution check when Ice Kick is missing."}),s.jsx("li",{children:"Shelf retail price ($) recording."})]})]}),s.jsxs("div",{className:"p-4 bg-white rounded-2xl border border-slate-200/80 shadow-2xs space-y-2.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-amber-100 text-amber-900 text-[10px] font-bold px-2 py-0.5 rounded-full font-figtree",children:"STEP 4"}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Physical Inventory & Sell-Out"})]}),s.jsx("p",{className:"text-2xs text-slate-600 leading-relaxed",children:"Total store unit count and inferred Sell-Out volume/value."}),s.jsxs("ul",{className:"text-2xs text-slate-500 space-y-1 list-disc pl-4",children:[s.jsx("li",{children:"Sum of sales floor inventory + backroom warehouse stock."}),s.jsxs("li",{children:["Sell-Out Units Formula: ",s.jsx("code",{children:"Sell-In - Physical Inventory"}),"."]}),s.jsxs("li",{children:["Sell-Out Value ($) Formula: ",s.jsx("code",{children:"Units * Shelf Price"}),"."]})]})]})]}),s.jsx("div",{className:"p-3.5 bg-emerald-50/80 border border-emerald-200/80 rounded-2xl flex items-center justify-between",children:s.jsxs("div",{className:"text-2xs text-emerald-950 font-medium",children:[s.jsx("strong",{children:"Precise Inventory Control:"})," Enables real sales velocity measurement and replenishment planning before stockouts occur."]})})]})},{title:"Consolidated Directory & CSV Export",subtitle:"Complete Master Table & Individual Store Audit Reports",badge:"Module 6: Data & Export",icon:s.jsx(eo,{className:"w-5 h-5 text-amber-800"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[s.jsxs("div",{className:"p-3.5 bg-white rounded-xl border border-slate-200/80 shadow-2xs space-y-1.5",children:[s.jsx("div",{className:"p-1.5 bg-sky-50 text-sky-700 rounded-lg w-fit",children:s.jsx(Ws,{className:"w-4 h-4"})}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"14 Master Columns"}),s.jsx("p",{className:"text-2xs text-slate-500 leading-relaxed",children:"Comprehensive comparative table detailing POS, Zone, Channel, Status, OOS, Placement, POP, Price, Facings, Inventory, Sell-In, and Sell-Out."})]}),s.jsxs("div",{className:"p-3.5 bg-white rounded-xl border border-slate-200/80 shadow-2xs space-y-1.5",children:[s.jsx("div",{className:"p-1.5 bg-amber-50 text-amber-800 rounded-lg w-fit",children:s.jsx(Is,{className:"w-4 h-4"})}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Individual Store Report (View)"}),s.jsxs("p",{className:"text-2xs text-slate-500 leading-relaxed",children:["Click ",s.jsx("strong",{children:"Report"})," to open the complete store dossier with form photo evidence and step-by-step breakdown."]})]}),s.jsxs("div",{className:"p-3.5 bg-white rounded-xl border border-slate-200/80 shadow-2xs space-y-1.5",children:[s.jsx("div",{className:"p-1.5 bg-emerald-50 text-emerald-700 rounded-lg w-fit",children:s.jsx(eo,{className:"w-4 h-4"})}),s.jsx("h5",{className:"font-bold text-slate-900 text-xs font-ibm",children:"Clean CSV Export"}),s.jsx("p",{className:"text-2xs text-slate-500 leading-relaxed",children:"Download optimized Excel/Google Sheets reports with UTF-8 BOM encoding to prevent misaligned rows."})]})]}),s.jsxs("div",{className:"p-3 bg-slate-100/80 rounded-xl border border-slate-200 text-2xs text-slate-700 flex items-center gap-2",children:[s.jsx(xa,{className:"w-4 h-4 text-emerald-600 shrink-0"}),s.jsx("span",{children:"Clicking on table headers (e.g., Sell-Out, Price, Zone) instantly sorts the store directory ascending or descending."})]})]})},{title:"Recommended Client Workflow",subtitle:"Best Practices for Daily / Weekly Management",badge:"Module 7: Client Use Case",icon:s.jsx(lo,{className:"w-5 h-5 text-amber-800"}),content:s.jsxs("div",{className:"space-y-4 font-figtree",children:[s.jsx("p",{className:"text-xs text-slate-600",children:"Recommended steps to maximize commercial value from the audit dashboard:"}),s.jsxs("div",{className:"relative border-l-2 border-sky-200 ml-3 pl-4 space-y-3.5",children:[s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -left-[23px] top-0 w-3 h-3 bg-sky-500 rounded-full ring-4 ring-white"}),s.jsx("h5",{className:"text-xs font-bold text-slate-900 font-ibm",children:"1. Initial Coverage Verification"}),s.jsxs("p",{className:"text-2xs text-slate-500 mt-0.5",children:["Review the ",s.jsx("strong",{children:"Store Audit Coverage"})," metric to track field team progress along planned routes."]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -left-[23px] top-0 w-3 h-3 bg-rose-500 rounded-full ring-4 ring-white"}),s.jsx("h5",{className:"text-xs font-bold text-slate-900 font-ibm",children:"2. Priority Out-of-Stock (OOS) Resolution"}),s.jsxs("p",{className:"text-2xs text-slate-500 mt-0.5",children:["Filter by ",s.jsx("strong",{children:"OOS Status = Out of Stock"})," to trigger emergency replenishments for key stores."]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -left-[23px] top-0 w-3 h-3 bg-amber-500 rounded-full ring-4 ring-white"}),s.jsx("h5",{className:"text-xs font-bold text-slate-900 font-ibm",children:"3. Merchandising & Display Optimization"}),s.jsxs("p",{className:"text-2xs text-slate-500 mt-0.5",children:["Analyze ",s.jsx("strong",{children:"Step 2"})," and ",s.jsx("strong",{children:"Step 3"})," tabs to negotiate extra shelf space or POP placement in low-share stores."]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute -left-[23px] top-0 w-3 h-3 bg-emerald-500 rounded-full ring-4 ring-white"}),s.jsx("h5",{className:"text-xs font-bold text-slate-900 font-ibm",children:"4. Management Reporting & Export"}),s.jsx("p",{className:"text-2xs text-slate-500 mt-0.5",children:"Export the consolidated CSV report for weekly performance reviews and client presentations."})]})]}),s.jsx("div",{className:"pt-2 text-center",children:s.jsxs("button",{onClick:d,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-amber-100 hover:bg-amber-200/80 text-amber-950 font-bold border border-amber-200/80 rounded-xl text-xs transition-all shadow-2xs active:scale-95 cursor-pointer font-figtree",children:[s.jsx("span",{children:"Got it! Start using the dashboard"}),s.jsx(V0,{className:"w-4 h-4 text-amber-900"})]})})]})}];return s.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/60 backdrop-blur-xs flex items-center justify-center p-3 sm:p-6 overflow-y-auto",children:s.jsxs("div",{className:"bg-white rounded-3xl border border-sky-100 max-w-3xl w-full shadow-2xl overflow-hidden flex flex-col max-h-[90vh] animate-in fade-in zoom-in-95 duration-150",children:[s.jsxs("div",{className:"bg-sky-50/80 px-6 py-4 border-b border-sky-100 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 rounded-xl bg-amber-100 text-amber-800 border border-amber-200/80 shrink-0",children:s.jsx(to,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"bg-sky-100 text-sky-800 text-[10px] font-bold px-2 py-0.5 rounded-full font-figtree",children:b[x].badge}),s.jsxs("span",{className:"text-xs font-bold text-slate-400 font-geist",children:["Slide ",x+1," of ",g]})]}),s.jsx("h2",{className:"text-sm sm:text-base font-bold text-slate-900 tracking-tight font-ibm",children:"Client Dashboard User Guide"})]})]}),s.jsx("button",{onClick:d,className:"p-2 text-slate-400 hover:text-slate-600 hover:bg-white rounded-xl transition-colors cursor-pointer",title:"Close presentation",children:s.jsx(pa,{className:"w-5 h-5"})})]}),s.jsx("div",{className:"w-full bg-slate-100 h-1.5 flex",children:b.map((S,C)=>s.jsx("div",{onClick:()=>r(C),className:`h-full flex-1 transition-all cursor-pointer ${C===x?"bg-amber-300":Cr(S=>Math.max(S-1,0)),disabled:x===0,className:"inline-flex items-center gap-1.5 px-4 py-2 text-xs font-bold text-slate-700 bg-white border border-slate-200 rounded-xl hover:bg-slate-100 transition-all shadow-2xs disabled:opacity-30 disabled:cursor-not-allowed cursor-pointer",children:[s.jsx(Wr,{className:"w-4 h-4"}),s.jsx("span",{children:"Previous"})]}),s.jsx("div",{className:"hidden sm:flex items-center gap-1.5",children:b.map((S,C)=>s.jsx("button",{onClick:()=>r(C),className:`w-2.5 h-2.5 rounded-full transition-all cursor-pointer ${C===x?"bg-amber-300 w-6":"bg-slate-300 hover:bg-slate-400"}`},C))}),s.jsxs("button",{onClick:()=>{xS+1):d()},className:"inline-flex items-center gap-1.5 px-4 py-2 text-xs font-bold text-amber-950 bg-amber-100 hover:bg-amber-200/80 border border-amber-200/80 rounded-xl transition-all shadow-2xs cursor-pointer",children:[s.jsx("span",{children:x===g-1?"Finish Tutorial":"Next"}),s.jsx(Pr,{className:"w-4 h-4 text-amber-900"})]})]})]})})};function yi(u){const d=u.toLowerCase();return d.includes("invalid login credentials")||d.includes("invalid authentication credentials")?"Incorrect email or password.":d.includes("email not confirmed")?"Please confirm your email before signing in.":d.includes("not authorized to access")?"This account does not have access to this application.":d.includes("verify access")?"Access could not be verified. Please try again.":d.includes("user already registered")||d.includes("account already exists")?"An account already exists for this email.":d.includes("password should be")?"Use a password with at least 8 characters.":d.includes("rate limit")||d.includes("too many attempts")?"Too many attempts. Please wait 15 minutes and try again.":u}const kb=({recoverySession:u=null,recoveryError:d="",onAuthenticated:x,onRecoveryComplete:r})=>{const g=!!u,[b,S]=oe.useState("login"),C=Ox(),[j,f]=oe.useState(""),[N,k]=oe.useState(C),[U,J]=oe.useState(!!C),[R,Z]=oe.useState(""),[se,I]=oe.useState(""),[ee,be]=oe.useState(!1),[Oe,Ne]=oe.useState(!1),[re,F]=oe.useState(d),[ne,v]=oe.useState(""),m=()=>{F(""),v("")},z=G=>{S(G),Z(""),I(""),m()},K=async G=>{G.preventDefault(),m(),Ne(!0);try{const h=await L0(N.trim(),R,U);x(h)}catch(h){F(yi((h==null?void 0:h.message)||"Unable to sign in."))}finally{Ne(!1)}},Q=async G=>{if(G.preventDefault(),m(),R.length<8){F("Use a password with at least 8 characters.");return}if(R!==se){F("Passwords do not match.");return}Ne(!0);try{const h=await Tx(j.trim(),N.trim(),R);h.session?x(h.session):(S("login"),v(h.message),Z(""),I(""))}catch(h){F(yi((h==null?void 0:h.message)||"Unable to create the account."))}finally{Ne(!1)}},te=async G=>{G.preventDefault(),m(),Ne(!0);try{const h=await Mx(N.trim());v(h)}catch(h){F(yi((h==null?void 0:h.message)||"Unable to send the recovery email."))}finally{Ne(!1)}},he=async G=>{if(G.preventDefault(),m(),!u){F("The recovery link is invalid or has expired.");return}if(R.length<8){F("Use a password with at least 8 characters.");return}if(R!==se){F("Passwords do not match.");return}Ne(!0);try{await Rx(u,R),v("Password updated successfully. You can now sign in."),Z(""),I(""),setTimeout(()=>r(),900)}catch(h){F(yi((h==null?void 0:h.message)||"Unable to update the password."))}finally{Ne(!1)}},T=b==="register",M=b==="forgot",Y=g?"Create a new password":T?"Create your account":M?"Recover your password":"Welcome back",X=g?"Enter a new secure password for your account.":T?"Register to access the audit dashboard.":M?"We will send a secure recovery link to your email.":"Sign in to access the audit dashboard.";return s.jsxs("div",{className:"min-h-screen bg-slate-50 relative overflow-hidden flex items-center justify-center p-4 sm:p-6 font-figtree",children:[s.jsx("div",{className:"absolute -top-24 -left-24 w-80 h-80 rounded-full bg-sky-200/50 blur-3xl pointer-events-none"}),s.jsx("div",{className:"absolute -bottom-28 -right-20 w-96 h-96 rounded-full bg-amber-200/45 blur-3xl pointer-events-none"}),s.jsxs("div",{className:"relative w-full max-w-md",children:[s.jsxs("div",{className:"bg-white/95 backdrop-blur-xl border border-sky-100 rounded-[28px] shadow-2xl shadow-sky-900/10 overflow-hidden",children:[s.jsx("div",{className:"h-1.5 bg-gradient-to-r from-sky-500 via-blue-600 to-amber-400"}),s.jsxs("div",{className:"px-6 sm:px-8 pt-7 pb-8",children:[s.jsxs("div",{className:"flex items-center justify-center gap-3 mb-7",children:[s.jsx("div",{className:"w-11 h-11 rounded-2xl bg-gradient-to-br from-sky-500 to-blue-600 flex items-center justify-center shadow-lg shadow-sky-500/20 border border-sky-300/40",children:s.jsx(_i,{className:"w-5 h-5 fill-amber-300 text-amber-300"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[10px] uppercase tracking-[0.2em] font-black text-amber-700",children:"Ice Kick"}),s.jsx("div",{className:"font-ibm font-extrabold text-slate-900 leading-tight",children:"Lucozade Store Audit"})]})]}),!g&&!M&&s.jsxs("div",{className:"grid grid-cols-2 p-1 bg-sky-50 border border-sky-100 rounded-xl mb-6",children:[s.jsx("button",{type:"button",onClick:()=>z("login"),className:`py-2 rounded-lg text-xs font-extrabold transition-all cursor-pointer ${b==="login"?"bg-white text-sky-700 shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:"Sign in"}),s.jsx("button",{type:"button",onClick:()=>z("register"),className:`py-2 rounded-lg text-xs font-extrabold transition-all cursor-pointer ${b==="register"?"bg-white text-sky-700 shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:"Create account"})]}),(M||g)&&s.jsxs("button",{type:"button",onClick:()=>g?window.location.assign("/lucozade/"):z("login"),className:"inline-flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-sky-700 mb-5 cursor-pointer",children:[s.jsx(ap,{className:"w-3.5 h-3.5"})," Back to sign in"]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h1",{className:"font-ibm text-2xl font-extrabold tracking-tight text-slate-900",children:Y}),s.jsx("p",{className:"text-sm text-slate-500 mt-1.5 leading-relaxed",children:X})]}),re&&s.jsx("div",{className:"mb-4 rounded-xl border border-rose-200 bg-rose-50 px-3.5 py-3 text-xs font-semibold text-rose-700",children:re}),ne&&s.jsxs("div",{className:"mb-4 rounded-xl border border-emerald-200 bg-emerald-50 px-3.5 py-3 text-xs font-semibold text-emerald-700 flex gap-2",children:[s.jsx(xa,{className:"w-4 h-4 shrink-0"}),s.jsx("span",{children:ne})]}),g?s.jsxs("form",{onSubmit:he,className:"space-y-4",children:[s.jsx($s,{label:"New password",value:R,onChange:Z,show:ee,onToggle:()=>be(G=>!G),autoComplete:"new-password"}),s.jsx($s,{label:"Confirm password",value:se,onChange:I,show:ee,onToggle:()=>be(G=>!G),autoComplete:"new-password"}),s.jsx(gi,{loading:Oe,label:"Update password"})]}):M?s.jsxs("form",{onSubmit:te,className:"space-y-4",children:[s.jsx(Jr,{value:N,onChange:k}),s.jsx(gi,{loading:Oe,label:"Send recovery link"})]}):T?s.jsxs("form",{onSubmit:Q,className:"space-y-4",children:[s.jsx(ah,{label:"Name",value:j,onChange:f,type:"text",autoComplete:"name",icon:s.jsx(lh,{className:"w-4 h-4"})}),s.jsx(Jr,{value:N,onChange:k}),s.jsx($s,{label:"Password",value:R,onChange:Z,show:ee,onToggle:()=>be(G=>!G),autoComplete:"new-password"}),s.jsx($s,{label:"Confirm password",value:se,onChange:I,show:ee,onToggle:()=>be(G=>!G),autoComplete:"new-password"}),s.jsx(gi,{loading:Oe,label:"Create account"})]}):s.jsxs("form",{onSubmit:K,className:"space-y-4",children:[s.jsx(Jr,{value:N,onChange:k}),s.jsx($s,{label:"Password",value:R,onChange:Z,show:ee,onToggle:()=>be(G=>!G),autoComplete:"current-password"}),s.jsxs("div",{className:"flex items-center justify-between gap-3 -mt-1",children:[s.jsxs("label",{className:"inline-flex items-center gap-2 text-xs font-bold text-slate-600 cursor-pointer select-none",children:[s.jsx("input",{type:"checkbox",checked:U,onChange:G=>{const h=G.target.checked;J(h),h||R0("",!1)},className:"h-4 w-4 rounded border-slate-300 accent-sky-600 cursor-pointer"}),"Remember me"]}),s.jsx("button",{type:"button",onClick:()=>z("forgot"),className:"text-xs font-bold text-sky-700 hover:text-sky-900 cursor-pointer",children:"Forgot password?"})]}),s.jsx(gi,{loading:Oe,label:"Sign in"})]})]})]}),s.jsx("p",{className:"text-center text-[11px] text-slate-400 mt-4",children:"Secure access powered by encrypted authentication."})]})]})},ah=({label:u,value:d,onChange:x,type:r,autoComplete:g,icon:b})=>s.jsxs("label",{className:"block",children:[s.jsx("span",{className:"block text-[11px] font-extrabold text-slate-600 mb-1.5",children:u}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400",children:b}),s.jsx("input",{required:!0,type:r,value:d,onChange:S=>x(S.target.value),autoComplete:g,className:"w-full h-11 pl-10 pr-3.5 rounded-xl bg-slate-50 border border-slate-200 text-sm text-slate-900 placeholder:text-slate-400 outline-none transition focus:bg-white focus:border-sky-400 focus:ring-4 focus:ring-sky-100"})]})]}),Jr=({value:u,onChange:d})=>s.jsx(ah,{label:"User (email address)",value:u,onChange:d,type:"email",autoComplete:"email",icon:s.jsx(Zp,{className:"w-4 h-4"})}),$s=({label:u,value:d,onChange:x,show:r,onToggle:g,autoComplete:b})=>s.jsxs("label",{className:"block",children:[s.jsx("span",{className:"block text-[11px] font-extrabold text-slate-600 mb-1.5",children:u}),s.jsxs("div",{className:"relative",children:[s.jsx(Hp,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),s.jsx("input",{required:!0,minLength:8,type:r?"text":"password",value:d,onChange:S=>x(S.target.value),autoComplete:b,className:"w-full h-11 pl-10 pr-11 rounded-xl bg-slate-50 border border-slate-200 text-sm text-slate-900 outline-none transition focus:bg-white focus:border-sky-400 focus:ring-4 focus:ring-sky-100"}),s.jsx("button",{type:"button",onClick:g,"aria-label":r?"Hide password":"Show password",className:"absolute right-3.5 top-1/2 -translate-y-1/2 text-slate-400 hover:text-sky-700 cursor-pointer",children:r?s.jsx(Ap,{className:"w-4 h-4"}):s.jsx(Is,{className:"w-4 h-4"})})]})]}),gi=({loading:u,label:d})=>s.jsxs("button",{type:"submit",disabled:u,className:"w-full h-11 rounded-xl bg-gradient-to-r from-sky-500 to-blue-600 hover:from-sky-600 hover:to-blue-700 text-white text-sm font-extrabold shadow-lg shadow-sky-500/20 transition-all active:scale-[0.99] disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer flex items-center justify-center gap-2",children:[u&&s.jsx(F0,{className:"w-4 h-4 animate-spin"}),d]});function Fr(u){const d=new Map;return u.forEach(x=>{if(!x.customer||!x.customer.trim())return;const r=x.customer.trim().toLowerCase();d.has(r)?!d.get(r).assignedDate&&x.assignedDate&&d.set(r,x):d.set(r,x)}),Array.from(d.values())}function wb(){const[u,d]=oe.useState(null),[x,r]=oe.useState(!0),[g,b]=oe.useState(null),[S,C]=oe.useState(""),[j,f]=oe.useState(Ni),[N,k]=oe.useState(!1),[U,J]=oe.useState(null),[R,Z]=oe.useState("overview"),[se,I]=oe.useState(null),[ee,be]=oe.useState(!1),[Oe,Ne]=oe.useState(!1),[re,F]=oe.useState({zone:"all",channel:"all",customer:"all",status:"all",oosStatus:"all",selectedWeek:"all",search:""});oe.useEffect(()=>{let M=!0;return(async()=>{try{const X=await Ux();if(X.session||X.error){X.error&&v0(),M&&(b(X.session),C(X.error),d(null),r(!1));return}const G=await Lx();M&&(d(G),r(!1))}catch(X){console.error("Unable to restore the authentication session:",X),M&&(d(null),b(null),C(""),r(!1))}})(),()=>{M=!1}},[]);const ne=async M=>{k(!0);try{const Y=await Jx(M,null);J(Y)}catch(Y){console.error("Error loading data:",Y)}finally{k(!1)}};oe.useEffect(()=>{u&&!g&&!U&&ne(j)},[u,g]),oe.useEffect(()=>{if(!u)return;const M=Math.max(3e4,u.expires_at*1e3-Date.now()-6e4),Y=window.setTimeout(async()=>{const X=await q0(u);X?d(X):(d(null),J(null))},M);return()=>window.clearTimeout(Y)},[u]);const v=()=>{ne(j)},m=()=>{F({zone:"all",channel:"all",customer:"all",status:"all",oosStatus:"all",selectedWeek:"all",search:""})},z=oe.useMemo(()=>U?Gx(U.stores,U.responses):[],[U]);oe.useEffect(()=>{if(z.length>0&&re.selectedWeek==="all"){const M=z.find(Y=>Y.key.includes("2026-07-20"))||z[0];F(Y=>({...Y,selectedWeek:M.key}))}},[z]);const K=oe.useMemo(()=>{if(!U)return[];const{stores:M,responses:Y}=U,X=re.selectedWeek||"all";if(X!=="all"){const G=M.filter(L=>N0(L.week,L.assignedDate,X)),h=Fr(G),_=h.length>0?h:Fr(M),V=Y.filter(L=>N0(L.week,L.submissionDate,X));return ki(_,V)}else{const G=Fr(M);return ki(G,Y)}},[U,re.selectedWeek]),Q=oe.useMemo(()=>K.filter(M=>{var Y,X;if(re.zone!=="all"&&M.store.zone!==re.zone||re.channel!=="all"&&M.store.customerChannel!==re.channel||re.customer!=="all"&&M.store.customer!==re.customer||re.status!=="all"&&M.status!==re.status||re.oosStatus==="Available"&&((Y=M.response)==null?void 0:Y.isAvailable)!=="Yes"||re.oosStatus==="OOS"&&((X=M.response)==null?void 0:X.isAvailable)!=="No")return!1;if(re.search.trim()){const G=re.search.toLowerCase().trim(),h=M.store.customerCode.toLowerCase().includes(G),_=M.store.customer.toLowerCase().includes(G);if(!h&&!_)return!1}return!0}),[K,re]),te=oe.useMemo(()=>{const M=Q.length,Y=Q.filter(ve=>ve.status==="Visited"),X=Y.length,G=M-X,h=M>0?X/M*100:0,_=re.selectedWeek&&re.selectedWeek!=="all"?((U==null?void 0:U.responses)||[]).filter(ve=>ve.submissionDate&&B0(ve.submissionDate,re.selectedWeek)):(U==null?void 0:U.responses)||[];let V=X;if(_.length>0){const ve=new Set(Q.map(Ge=>Ge.store.customer.toLowerCase().trim())),pe=_.filter(Ge=>Ge.customer&&ve.has(Ge.customer.toLowerCase().trim()));pe.length>0&&(V=pe.length)}const L=Y.filter(ve=>{var pe;return((pe=ve.response)==null?void 0:pe.isAvailable)==="Yes"}).length,le=Y.filter(ve=>{var pe;return((pe=ve.response)==null?void 0:pe.isAvailable)==="No"}).length,$=X>0?X:M,ce=$>0?le/$*100:0,He=$>0?L/$*100:0;let ae=0,me=0,Le=0,fe=0,qe=0,Ue=0,Te=0,Ce=0;const ge=Q.filter(ve=>{var pe;return ve.status==="Visited"&&((pe=ve.response)==null?void 0:pe.isAvailable)==="Yes"});Q.forEach(ve=>{me+=ve.store.unitsSoldIn||0,ve.response&&(ae+=ve.response.totalPhysicalInventory||0)}),ge.forEach(ve=>{ve.response&&(ve.response.retailPrice&&ve.response.retailPrice>0&&(Le+=ve.response.retailPrice,fe++),qe+=ve.response.facingsIceKick||0,Ue+=ve.response.facingsIceKick||0,Te+=ve.response.facingsLucozadeBrand||0,Ce+=ve.response.facingsCategoryTotal||0)});const at=fe>0?Le/fe:0,_e=X>0?qe/X:0,Be=Te>0?Ue/Te*100:0,Je=Ce>0?Te/Ce*100:0;let Ht=0,vt=0,We=0,et=0;Y.forEach(ve=>{var ba;const pe=(((ba=ve.response)==null?void 0:ba.placementLocation)||"").toLowerCase(),Ge=pe.includes("main")||pe.includes("shelf")||pe.includes("estante"),St=pe.includes("secondary")||pe.includes("secundaria")||pe.includes("exhibici")||pe.includes("display"),dt=pe.includes("gondola")||pe.includes("góndola")||pe.includes("end")||pe.includes("cabecera")||pe.includes("endcap");Ge&&Ht++,St&&vt++,dt&&We++,(St||dt)&&et++});const Nt=$>0?Ht/$*100:0,Pe=$>0?vt/$*100:0,st=$>0?We/$*100:0,Tt=$>0?et/$*100:0;let sl=0,$l=0;return Y.forEach(ve=>{var Ps,en;const pe=((Ps=ve.response)==null?void 0:Ps.totalPhysicalInventory)||0,Ge=((en=ve.response)==null?void 0:en.retailPrice)||0,St=ve.store.unitsSoldIn||0,dt=Math.max(0,St-pe),ba=dt*Ge;sl+=dt,$l+=ba}),{totalStores:M,totalResponses:V,visitedStores:X,pendingStores:G,complianceRate:h,oosStores:le,availableStores:L,oosRate:ce,numericDistribution:He,totalPhysicalInventory:ae,totalUnitsSoldIn:me,totalSellOutUnits:sl,totalSellOutValue:$l,avgRetailPrice:at,avgIceKickFacings:_e,avgBrandShelfShare:Be,avgCategoryShelfShare:Je,mainShelfStores:Ht,secondaryDisplayStores:vt,gondolaEndStores:We,additionalExhibitionStores:et,mainShelfRate:Nt,secondaryDisplayRate:Pe,gondolaEndRate:st,additionalExhibitionRate:Tt}},[Q,U]);if(x)return s.jsx("div",{className:"min-h-screen bg-slate-50 flex items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 text-sky-700",children:[s.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-sky-500 to-blue-600 flex items-center justify-center shadow-lg",children:s.jsx(_i,{className:"w-5 h-5 fill-amber-300 text-amber-300"})}),s.jsx(F0,{className:"w-5 h-5 animate-spin"})]})});if(!u||g||S)return s.jsx(kb,{recoverySession:g,recoveryError:S,onAuthenticated:M=>{d(M),b(null),C(""),J(null)},onRecoveryComplete:()=>{v0(),b(null),C(""),d(null),J(null)}});const he=(U==null?void 0:U.stores)||[],T=async()=>{await qx(u),d(null),J(null),b(null),C("")};return s.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-800 font-sans flex flex-col",children:[s.jsx(mb,{lastSynced:(U==null?void 0:U.lastSynced)||"Just now",isSyncing:N,onRefresh:v,onOpenTutorial:()=>Ne(!0),userEmail:u.user.email||"Signed in",onLogout:T}),s.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6",children:[(U==null?void 0:U.error)&&s.jsxs("div",{className:"bg-amber-50 border border-amber-200 text-amber-900 px-4 py-3 rounded-2xl text-xs flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(yp,{className:"w-4 h-4 text-amber-600 shrink-0"}),s.jsx("span",{children:U.error})]}),s.jsx("button",{onClick:()=>be(!0),className:"text-xs font-extrabold underline text-amber-800 hover:text-amber-950 cursor-pointer",children:"Configure Google Sheet"})]}),s.jsx(pb,{filters:re,stores:he,weekOptions:z,onChange:F,onReset:m}),s.jsx(bb,{kpis:te}),s.jsxs("div",{className:"bg-white/95 backdrop-blur-md rounded-2xl border border-sky-100 p-1.5 flex flex-wrap gap-1.5 shadow-xs sticky top-[172px] sm:top-[175px] z-20",children:[s.jsxs("button",{onClick:()=>Z("overview"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${R==="overview"?"bg-amber-100 text-amber-950 border border-amber-200/80 shadow-2xs font-figtree":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx(Lp,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Overview"})]}),s.jsxs("button",{onClick:()=>Z("step1"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${R==="step1"?"bg-amber-100 text-amber-950 border border-amber-200/80 shadow-2xs font-figtree":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx(Is,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Step 1: Presence (OOS)"}),te.oosStores>0&&s.jsx("span",{className:"bg-rose-600 text-white text-[10px] font-black px-2 py-0.5 rounded-full",children:te.oosStores})]}),s.jsxs("button",{onClick:()=>Z("step2"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${R==="step2"?"bg-amber-100 text-amber-950 border border-amber-200/80 shadow-2xs font-figtree":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx($0,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Step 2: Location & POP"})]}),s.jsxs("button",{onClick:()=>Z("step3"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${R==="step3"?"bg-amber-100 text-amber-950 border border-amber-200/80 shadow-2xs font-figtree":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx(Z0,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Step 3: Shelf & Share"})]}),s.jsxs("button",{onClick:()=>Z("step4"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${R==="step4"?"bg-amber-100 text-amber-950 border border-amber-200/80 shadow-2xs font-figtree":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx(Ci,{className:"w-3.5 h-3.5 text-amber-800"}),s.jsx("span",{children:"Step 4: Inventory & Backroom"})]}),s.jsxs("button",{onClick:()=>Z("table"),className:`flex-1 sm:flex-none inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl text-xs font-extrabold transition-all cursor-pointer ${R==="table"?"bg-sky-100 text-sky-950 shadow-2xs":"text-slate-500 hover:text-slate-900 hover:bg-sky-50"}`,children:[s.jsx(ib,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"Store Table"})]})]}),R==="overview"&&s.jsxs("div",{className:"space-y-6",children:[s.jsx(E0,{mergedData:Q,onSelectStore:M=>I(M)}),s.jsx(z0,{mergedData:Q,onSelectStore:M=>I(M)})]}),R==="step1"&&s.jsx(E0,{mergedData:Q,onSelectStore:M=>I(M)}),R==="step2"&&s.jsx(yb,{mergedData:Q,onSelectStore:M=>I(M)}),R==="step3"&&s.jsx(gb,{mergedData:Q,onSelectStore:M=>I(M)}),R==="step4"&&s.jsx(vb,{mergedData:Q,onSelectStore:M=>I(M)}),R==="table"&&s.jsx(z0,{mergedData:Q,onSelectStore:M=>I(M)})]}),s.jsx(Sb,{item:se,onClose:()=>I(null)}),s.jsx(jb,{isOpen:ee,currentSpreadsheetId:j,source:(U==null?void 0:U.source)||"fallback_demo",error:U==null?void 0:U.error,onClose:()=>be(!1),onUpdateSpreadsheetId:M=>{f(M),ne(M)}}),s.jsx(Nb,{isOpen:Oe,onClose:()=>Ne(!1)})]})}_x.createRoot(document.getElementById("root")).render(s.jsx(oe.StrictMode,{children:s.jsx(wb,{})})); diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..1cb6862 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,15 @@ + + + + + + + + Lucozade Store Audit + + + + +
+ +