const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ColoringPage-C6uAZywj.js","assets/react-vendor-C56vNxyn.js","assets/query-CUJTsHHL.js","assets/router-CKrmeGBb.js","assets/supabase-3dLENRUc.js","assets/radix-D-EraQ-G.js","assets/icons--10nmc5r.js","assets/ColoringPage-Dfva41Gc.css","assets/TestimonialsSection-DVkvKAX-.js","assets/ExitIntentPopup-ChkUQ-T7.js","assets/ConfettiBurst-D2x3Njcd.js","assets/PartnerForm-D0PJDIVz.js","assets/SocialCommunityCard-DaNmvaVS.js","assets/NotFound-CRKXZfFp.js","assets/PrivacyPolicy-D4Xdn6G9.js","assets/LegalPages-DJivI9HF.css","assets/TermsOfService-Bxdog-jp.js","assets/Contact-Dpn7mFo1.js","assets/Admin-8u1m2vRq.js","assets/AdminAuth-CDIr0Lo6.js","assets/PreviewDiscounts-tNebIO69.js"])))=>i.map(i=>d[i]); import{r as m,j as t,g as b,b as Or,i as Pr}from"./react-vendor-C56vNxyn.js";import{Q as Lr,a as Mr}from"./query-CUJTsHHL.js";import{L as ve,u as Tt,a as Ns,N as zr,O as Dr,B as Br,R as Fr,b as se}from"./router-CKrmeGBb.js";import{c as Vr}from"./supabase-3dLENRUc.js";import{S as at,R as Aa,a as Ia,O as Ot,C as Pt,b as Ra,T as Lt,D as Mt,c as Ta,P as Oa,d as Pa,e as $r,f as Ur,g as Zr}from"./radix-D-EraQ-G.js";import{S as qr,C as kt,A as Gr,M as La,X as ks,P as Wr,L as Hr,a as Jr,b as Ma,B as Cs,c as za,d as es,e as ut,Y as Yr,f as Kr,K as Da,g as zt,F as Xr,I as Qr,D as Ct,h as en,i as tn,j as sn,k as an,T as rn,l as nn,m as on,n as ln}from"./icons--10nmc5r.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function a(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(n){if(n.ep)return;n.ep=!0;const o=a(n);fetch(n.href,o)}})();const cn="modulepreload",dn=function(s){return"/"+s},Fs={},ae=function(e,a,r){let n=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.allSettled(a.map(c=>{if(c=dn(c),c in Fs)return;Fs[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":cn,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,d)=>{f.addEventListener("load",p),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return e().catch(o)})},un="https://moeqkadniceifgvckbli.supabase.co",mn="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1vZXFrYWRuaWNlaWZndmNrYmxpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzcxMzI3NDUsImV4cCI6MjA5MjcwODc0NX0.mWVOUd2ohww06nWx_GaIhBZHDy2dV2lsDDCvGSlZ0Js",Y=Vr(un,mn,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Ql=Object.freeze(Object.defineProperty({__proto__:null,supabase:Y},Symbol.toStringTag,{value:"Module"})),Vs="lcc_device_id",Ba=()=>{var s,e;if(typeof window=="undefined")return"ssr";try{let a=localStorage.getItem(Vs);return a||(a=(e=(s=crypto.randomUUID)==null?void 0:s.call(crypto))!=null?e:`${Date.now()}-${Math.random().toString(36).slice(2)}`,localStorage.setItem(Vs,a)),a}catch(a){return"no-storage"}},$s={basic_plan_other_device:"Você só pode acessar com o dispositivo que logou na primeira vez. Torne-se Premium para liberar acesso em todos os dispositivos.",not_authenticated:"Sessão expirada. Faça login novamente.",rpc_error:"Não foi possível validar o dispositivo. Verifique sua conexão e tente novamente.",premium_unlimited:"",first_device_registered:"",known_device:""};let jt=null,ts=0,lt=null;const hn=3e4,Fa=async(s=!1)=>{const e=Date.now();return!s&&jt&&e-ts{try{const{data:a,error:r}=await Y.rpc("register_or_check_device",{_device_id:Ba(),_user_agent:navigator.userAgent.slice(0,500)});if(r)return{status:"blocked",reason:"rpc_error"};const n=a!=null?a:{status:"blocked",reason:"rpc_error"};return jt=n,ts=Date.now(),n}finally{lt=null}})(),lt)},qt=()=>{jt=null,ts=0},Va="lcc_profile_cache_",pn=5*6e4,$a=s=>`${Va}${s}`,fn=s=>{if(typeof window=="undefined")return null;try{const e=localStorage.getItem($a(s));if(!e)return null;const a=JSON.parse(e);return!(a!=null&&a.cachedAt)||Date.now()-a.cachedAt>pn?null:a}catch(e){return null}},gn=(s,e,a)=>{if(typeof window!="undefined")try{const r={profile:e,hasExclusive:a,cachedAt:Date.now()};localStorage.setItem($a(s),JSON.stringify(r))}catch(r){}},Gt=s=>{if(typeof window!="undefined")try{if(!s)for(let e=localStorage.length-1;e>=0;e--){const a=localStorage.key(e);a!=null&&a.startsWith(Va)&&localStorage.removeItem(a)}}catch(e){}},Ua=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",_t=new Map,Ce=s=>{const e=typeof performance!="undefined"?performance.now():Date.now();if(_t.set(s,e),Ua)try{performance.mark(s)}catch(a){}console.log(`[perf] mark "${s}" @ ${e.toFixed(1)}ms`)},ht=(s,e,a)=>{const r=_t.get(e);if(r==null)return;const o=(a&&_t.get(a)!=null?_t.get(a):typeof performance!="undefined"?performance.now():Date.now())-r;if(Ua&&a)try{performance.measure(s,e,a)}catch(i){}return console.log(`%c[perf] ${s}: ${o.toFixed(1)}ms`,"color:#0ea5e9;font-weight:bold"),o},Za=m.createContext(void 0);function xn({children:s}){const[e,a]=m.useState(null),[r,n]=m.useState(null),[o,i]=m.useState(null),[l,c]=m.useState(!1),[u,h]=m.useState(!0),f=y=>{const v=fn(y);return v?(i(v.profile),c(v.hasExclusive),Ce("auth:profile_hydrated_from_cache"),!0):!1},p=async y=>{Ce("auth:loadProfile_start");const[{data:v},{data:g}]=await Promise.all([Y.from("profiles").select("*").eq("user_id",y).maybeSingle(),Y.from("exclusive_purchases").select("id").eq("user_id",y).maybeSingle()]),k=v,T=!!g||(v==null?void 0:v.plan)==="premium";i(k),c(T),gn(y,k,T),Ce("auth:loadProfile_end"),ht("auth:loadProfile","auth:loadProfile_start","auth:loadProfile_end")},d=async()=>{try{const y=await Fa();y.status!=="allowed"&&(await Y.auth.signOut(),qt(),Gt(),window.dispatchEvent(new CustomEvent("device-blocked",{detail:{reason:y.reason}})))}catch(y){}};m.useEffect(()=>{Ce("auth:provider_mount"),Y.auth.getSession().then(({data:v})=>{var g,k,T;if(n(v.session),a((k=(g=v.session)==null?void 0:g.user)!=null?k:null),h(!1),Ce("auth:session_resolved"),ht("auth:session_resolve","auth:provider_mount","auth:session_resolved"),(T=v.session)!=null&&T.user){const U=v.session.user.id;f(U),p(U),d()}});const{data:y}=Y.auth.onAuthStateChange((v,g)=>{var k;if(n(g),a((k=g==null?void 0:g.user)!=null?k:null),h(!1),g!=null&&g.user){const T=g.user.id;f(T),setTimeout(()=>p(T),0)}else i(null),c(!1),qt(),Gt()});return()=>y.subscription.unsubscribe()},[]);const R=async()=>{e&&await p(e.id)},_=async()=>{qt(),Gt(),await Y.auth.signOut()};return t.jsx(Za.Provider,{value:{user:e,session:r,profile:o,hasExclusive:l,loading:u,refreshProfile:R,signOut:_},children:s})}function Ae(){const s=m.useContext(Za);if(!s)throw new Error("useAuth must be used within AuthProvider");return s}const vn=()=>{const{user:s,loading:e}=Ae(),a=e||s?"/painel":"/auth";return t.jsx(ve,{to:a,"aria-label":"Acessar painel do usuário",style:{color:"#0f172a",textDecoration:"none",fontWeight:700,background:"linear-gradient(90deg, #fbbf24, #f59e0b)",padding:"10px 20px",borderRadius:"999px",display:"inline-flex",alignItems:"center",gap:"6px",fontSize:"14px",letterSpacing:"0.3px",boxShadow:"0 2px 10px rgba(245, 158, 11, 0.45)",transition:"transform 0.2s"},children:"🔐 Acessar painel"})},Us=40*60*1e3,Zs=()=>{const s=m.useRef(Date.now()+Us),e=m.useRef(!1),[a,r]=m.useState(Us);m.useEffect(()=>{const c=()=>{const h=Math.max(0,s.current-Date.now());if(r(h),h<=0&&!e.current){e.current=!0;try{window.dispatchEvent(new CustomEvent("promo-expired",{detail:{reason:"timer"}}))}catch(f){}}};c();const u=setInterval(c,1e3);return()=>clearInterval(u)},[]);const n=Math.floor(a/1e3),o=String(Math.floor(n/3600)).padStart(2,"0"),i=String(Math.floor(n%3600/60)).padStart(2,"0"),l=String(n%60).padStart(2,"0");return t.jsxs("div",{className:"urgency-timer",role:"timer","aria-live":"polite",children:[t.jsx("span",{className:"urgency-timer-icon",children:"⏳"}),t.jsx("span",{className:"urgency-timer-label",children:"Esta oferta expira em"}),t.jsxs("span",{className:"urgency-timer-clock",children:[t.jsx("span",{className:"urgency-timer-digit",children:o}),t.jsx("span",{className:"urgency-timer-sep",children:":"}),t.jsx("span",{className:"urgency-timer-digit",children:i}),t.jsx("span",{className:"urgency-timer-sep",children:":"}),t.jsx("span",{className:"urgency-timer-digit",children:l})]})]})},qs=62,Gs=7,bn=5*60*1e3,Ws=()=>{const s=m.useRef(Date.now()),e=m.useRef(!1),[a,r]=m.useState(qs);return m.useEffect(()=>{const n=()=>{const i=Date.now()-s.current,l=Math.floor(i/bn),c=Math.max(Gs,qs-l);if(r(c),c<=Gs&&!e.current){e.current=!0;try{window.dispatchEvent(new CustomEvent("promo-expired",{detail:{reason:"slots"}}))}catch(u){}}};n();const o=setInterval(n,30*1e3);return()=>clearInterval(o)},[]),t.jsxs("div",{className:"urgency-slots",role:"status","aria-live":"polite",children:["⚠️ ",t.jsx("strong",{children:"ATENÇÃO:"})," Apenas ",t.jsxs("strong",{children:[a," vagas"]})," com este desconto"]})},Hs="lvc_session_id",yn="lvc_pv_logged",qa=()=>{try{let s=sessionStorage.getItem(Hs);return s||(s=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,sessionStorage.setItem(Hs,s)),s}catch(s){return"anon"}},wn=()=>{if(typeof navigator=="undefined")return"unknown";const s=navigator.userAgent;return/iPad|iPhone|iPod/.test(s)?"ios":/Android/.test(s)?"android":/Mobile/.test(s)?"mobile":"desktop"},Ga=async s=>{try{const e=`${yn}:${s}`;if(sessionStorage.getItem(e))return;sessionStorage.setItem(e,"1"),await Y.from("page_views").insert({session_id:qa(),path:s,referrer:typeof document!="undefined"&&document.referrer||null,user_agent:typeof navigator!="undefined"?navigator.userAgent:null,device:wn()})}catch(e){console.debug("pv track fail",e)}},je=async(s,e)=>{try{const a=qa(),r="https://moeqkadniceifgvckbli.supabase.co/rest/v1/events",n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1vZXFrYWRuaWNlaWZndmNrYmxpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzcxMzI3NDUsImV4cCI6MjA5MjcwODc0NX0.mWVOUd2ohww06nWx_GaIhBZHDy2dV2lsDDCvGSlZ0Js",o=JSON.stringify({session_id:a,event_name:s,metadata:e!=null?e:null});if(typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function"){const i=`${r}?apikey=${encodeURIComponent(n)}`,l=new Blob([o],{type:"application/json"});if(navigator.sendBeacon(i,l))return}await fetch(r,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",apikey:n,Authorization:`Bearer ${n}`,Prefer:"return=minimal"},body:o})}catch(a){console.debug("event track fail",a)}},ec=Object.freeze(Object.defineProperty({__proto__:null,trackEvent:je,trackPageView:Ga},Symbol.toStringTag,{value:"Module"}));var jn=s=>{switch(s){case"success":return kn;case"info":return Sn;case"warning":return Cn;case"error":return En;default:return null}},_n=Array(12).fill(0),Nn=({visible:s,className:e})=>b.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":s},b.createElement("div",{className:"sonner-spinner"},_n.map((a,r)=>b.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),kn=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Cn=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Sn=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),En=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),An=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),In=()=>{let[s,e]=b.useState(document.hidden);return b.useEffect(()=>{let a=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),s},ss=1,Rn=class{constructor(){this.subscribe=s=>(this.subscribers.push(s),()=>{let e=this.subscribers.indexOf(s);this.subscribers.splice(e,1)}),this.publish=s=>{this.subscribers.forEach(e=>e(s))},this.addToast=s=>{this.publish(s),this.toasts=[...this.toasts,s]},this.create=s=>{var e;let{message:a,...r}=s,n=typeof(s==null?void 0:s.id)=="number"||((e=s.id)==null?void 0:e.length)>0?s.id:ss++,o=this.toasts.find(l=>l.id===n),i=s.dismissible===void 0?!0:s.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),o?this.toasts=this.toasts.map(l=>l.id===n?(this.publish({...l,...s,id:n,title:a}),{...l,...s,id:n,dismissible:i,title:a}):l):this.addToast({title:a,...r,dismissible:i,id:n}),n},this.dismiss=s=>(this.dismissedToasts.add(s),s||this.toasts.forEach(e=>{this.subscribers.forEach(a=>a({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:s,dismiss:!0})),s),this.message=(s,e)=>this.create({...e,message:s}),this.error=(s,e)=>this.create({...e,message:s,type:"error"}),this.success=(s,e)=>this.create({...e,type:"success",message:s}),this.info=(s,e)=>this.create({...e,type:"info",message:s}),this.warning=(s,e)=>this.create({...e,type:"warning",message:s}),this.loading=(s,e)=>this.create({...e,type:"loading",message:s}),this.promise=(s,e)=>{if(!e)return;let a;e.loading!==void 0&&(a=this.create({...e,promise:s,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=s instanceof Promise?s:s(),n=a!==void 0,o,i=r.then(async c=>{if(o=["resolve",c],b.isValidElement(c))n=!1,this.create({id:a,type:"default",message:c});else if(On(c)&&!c.ok){n=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,h=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:a,type:"error",message:u,description:h})}else if(e.success!==void 0){n=!1;let u=typeof e.success=="function"?await e.success(c):e.success,h=typeof e.description=="function"?await e.description(c):e.description;this.create({id:a,type:"success",message:u,description:h})}}).catch(async c=>{if(o=["reject",c],e.error!==void 0){n=!1;let u=typeof e.error=="function"?await e.error(c):e.error,h=typeof e.description=="function"?await e.description(c):e.description;this.create({id:a,type:"error",message:u,description:h})}}).finally(()=>{var c;n&&(this.dismiss(a),a=void 0),(c=e.finally)==null||c.call(e)}),l=()=>new Promise((c,u)=>i.then(()=>o[0]==="reject"?u(o[1]):c(o[1])).catch(u));return typeof a!="string"&&typeof a!="number"?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(s,e)=>{let a=(e==null?void 0:e.id)||ss++;return this.create({jsx:s(a),id:a,...e}),a},this.getActiveToasts=()=>this.toasts.filter(s=>!this.dismissedToasts.has(s.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ie=new Rn,Tn=(s,e)=>{let a=(e==null?void 0:e.id)||ss++;return ie.addToast({title:s,...e,id:a}),a},On=s=>s&&typeof s=="object"&&"ok"in s&&typeof s.ok=="boolean"&&"status"in s&&typeof s.status=="number",Pn=Tn,Ln=()=>ie.toasts,Mn=()=>ie.getActiveToasts(),zn=Object.assign(Pn,{success:ie.success,info:ie.info,warning:ie.warning,error:ie.error,custom:ie.custom,message:ie.message,promise:ie.promise,dismiss:ie.dismiss,loading:ie.loading},{getHistory:Ln,getToasts:Mn});function Dn(s,{insertAt:e}={}){if(typeof document=="undefined")return;let a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=s:r.appendChild(document.createTextNode(s))}Dn(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function yt(s){return s.label!==void 0}var Bn=3,Fn="32px",Vn="16px",Js=4e3,$n=356,Un=14,Zn=20,qn=200;function xe(...s){return s.filter(Boolean).join(" ")}function Gn(s){let[e,a]=s.split("-"),r=[];return e&&r.push(e),a&&r.push(a),r}var Wn=s=>{var e,a,r,n,o,i,l,c,u,h,f;let{invert:p,toast:d,unstyled:R,interacting:_,setHeights:y,visibleToasts:v,heights:g,index:k,toasts:T,expanded:U,removeToast:ee,defaultRichColors:he,closeButton:Ne,style:j,cancelButtonStyle:E,actionButtonStyle:A,className:N="",descriptionClassName:K="",duration:X,position:be,gap:re,loadingIcon:ne,expandByDefault:le,classNames:z,icons:te,closeButtonAriaLabel:ce="Close toast",pauseWhenPageIsHidden:$}=s,[Z,W]=b.useState(null),[oe,Ze]=b.useState(null),[H,Ft]=b.useState(!1),[nt,vt]=b.useState(!1),[ot,Vt]=b.useState(!1),[Ts,yr]=b.useState(!1),[wr,Os]=b.useState(!1),[jr,$t]=b.useState(0),[_r,Ps]=b.useState(0),it=b.useRef(d.duration||X||Js),Ls=b.useRef(null),Fe=b.useRef(null),Nr=k===0,kr=k+1<=v,ue=d.type,qe=d.dismissible!==!1,Cr=d.className||"",Sr=d.descriptionClassName||"",bt=b.useMemo(()=>g.findIndex(L=>L.toastId===d.id)||0,[g,d.id]),Er=b.useMemo(()=>{var L;return(L=d.closeButton)!=null?L:Ne},[d.closeButton,Ne]),Ms=b.useMemo(()=>d.duration||X||Js,[d.duration,X]),Ut=b.useRef(0),Ge=b.useRef(0),zs=b.useRef(0),We=b.useRef(null),[Ar,Ir]=be.split("-"),Ds=b.useMemo(()=>g.reduce((L,V,G)=>G>=bt?L:L+V.height,0),[g,bt]),Bs=In(),Rr=d.invert||p,Zt=ue==="loading";Ge.current=b.useMemo(()=>bt*re+Ds,[bt,Ds]),b.useEffect(()=>{it.current=Ms},[Ms]),b.useEffect(()=>{Ft(!0)},[]),b.useEffect(()=>{let L=Fe.current;if(L){let V=L.getBoundingClientRect().height;return Ps(V),y(G=>[{toastId:d.id,height:V,position:d.position},...G]),()=>y(G=>G.filter(pe=>pe.toastId!==d.id))}},[y,d.id]),b.useLayoutEffect(()=>{if(!H)return;let L=Fe.current,V=L.style.height;L.style.height="auto";let G=L.getBoundingClientRect().height;L.style.height=V,Ps(G),y(pe=>pe.find(fe=>fe.toastId===d.id)?pe.map(fe=>fe.toastId===d.id?{...fe,height:G}:fe):[{toastId:d.id,height:G,position:d.position},...pe])},[H,d.title,d.description,y,d.id]);let Ie=b.useCallback(()=>{vt(!0),$t(Ge.current),y(L=>L.filter(V=>V.toastId!==d.id)),setTimeout(()=>{ee(d)},qn)},[d,ee,y,Ge]);b.useEffect(()=>{if(d.promise&&ue==="loading"||d.duration===1/0||d.type==="loading")return;let L;return U||_||$&&Bs?(()=>{if(zs.current{var V;(V=d.onAutoClose)==null||V.call(d,d),Ie()},it.current)),()=>clearTimeout(L)},[U,_,d,ue,$,Bs,Ie]),b.useEffect(()=>{d.delete&&Ie()},[Ie,d.delete]);function Tr(){var L,V,G;return te!=null&&te.loading?b.createElement("div",{className:xe(z==null?void 0:z.loader,(L=d==null?void 0:d.classNames)==null?void 0:L.loader,"sonner-loader"),"data-visible":ue==="loading"},te.loading):ne?b.createElement("div",{className:xe(z==null?void 0:z.loader,(V=d==null?void 0:d.classNames)==null?void 0:V.loader,"sonner-loader"),"data-visible":ue==="loading"},ne):b.createElement(Nn,{className:xe(z==null?void 0:z.loader,(G=d==null?void 0:d.classNames)==null?void 0:G.loader),visible:ue==="loading"})}return b.createElement("li",{tabIndex:0,ref:Fe,className:xe(N,Cr,z==null?void 0:z.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,z==null?void 0:z.default,z==null?void 0:z[ue],(a=d==null?void 0:d.classNames)==null?void 0:a[ue]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:he,"data-styled":!(d.jsx||d.unstyled||R),"data-mounted":H,"data-promise":!!d.promise,"data-swiped":wr,"data-removed":nt,"data-visible":kr,"data-y-position":Ar,"data-x-position":Ir,"data-index":k,"data-front":Nr,"data-swiping":ot,"data-dismissible":qe,"data-type":ue,"data-invert":Rr,"data-swipe-out":Ts,"data-swipe-direction":oe,"data-expanded":!!(U||le&&H),style:{"--index":k,"--toasts-before":k,"--z-index":T.length-k,"--offset":`${nt?jr:Ge.current}px`,"--initial-height":le?"auto":`${_r}px`,...j,...d.style},onDragEnd:()=>{Vt(!1),W(null),We.current=null},onPointerDown:L=>{Zt||!qe||(Ls.current=new Date,$t(Ge.current),L.target.setPointerCapture(L.pointerId),L.target.tagName!=="BUTTON"&&(Vt(!0),We.current={x:L.clientX,y:L.clientY}))},onPointerUp:()=>{var L,V,G,pe;if(Ts||!qe)return;We.current=null;let fe=Number(((L=Fe.current)==null?void 0:L.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Re=Number(((V=Fe.current)==null?void 0:V.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ve=new Date().getTime()-((G=Ls.current)==null?void 0:G.getTime()),ge=Z==="x"?fe:Re,Te=Math.abs(ge)/Ve;if(Math.abs(ge)>=Zn||Te>.11){$t(Ge.current),(pe=d.onDismiss)==null||pe.call(d,d),Ze(Z==="x"?fe>0?"right":"left":Re>0?"down":"up"),Ie(),yr(!0),Os(!1);return}Vt(!1),W(null)},onPointerMove:L=>{var V,G,pe,fe;if(!We.current||!qe||((V=window.getSelection())==null?void 0:V.toString().length)>0)return;let Re=L.clientY-We.current.y,Ve=L.clientX-We.current.x,ge=(G=s.swipeDirections)!=null?G:Gn(be);!Z&&(Math.abs(Ve)>1||Math.abs(Re)>1)&&W(Math.abs(Ve)>Math.abs(Re)?"x":"y");let Te={x:0,y:0};Z==="y"?(ge.includes("top")||ge.includes("bottom"))&&(ge.includes("top")&&Re<0||ge.includes("bottom")&&Re>0)&&(Te.y=Re):Z==="x"&&(ge.includes("left")||ge.includes("right"))&&(ge.includes("left")&&Ve<0||ge.includes("right")&&Ve>0)&&(Te.x=Ve),(Math.abs(Te.x)>0||Math.abs(Te.y)>0)&&Os(!0),(pe=Fe.current)==null||pe.style.setProperty("--swipe-amount-x",`${Te.x}px`),(fe=Fe.current)==null||fe.style.setProperty("--swipe-amount-y",`${Te.y}px`)}},Er&&!d.jsx?b.createElement("button",{"aria-label":ce,"data-disabled":Zt,"data-close-button":!0,onClick:Zt||!qe?()=>{}:()=>{var L;Ie(),(L=d.onDismiss)==null||L.call(d,d)},className:xe(z==null?void 0:z.closeButton,(n=d==null?void 0:d.classNames)==null?void 0:n.closeButton)},(o=te==null?void 0:te.close)!=null?o:An):null,d.jsx||m.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:b.createElement(b.Fragment,null,ue||d.icon||d.promise?b.createElement("div",{"data-icon":"",className:xe(z==null?void 0:z.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Tr():null,d.type!=="loading"?d.icon||(te==null?void 0:te[ue])||jn(ue):null):null,b.createElement("div",{"data-content":"",className:xe(z==null?void 0:z.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},b.createElement("div",{"data-title":"",className:xe(z==null?void 0:z.title,(c=d==null?void 0:d.classNames)==null?void 0:c.title)},typeof d.title=="function"?d.title():d.title),d.description?b.createElement("div",{"data-description":"",className:xe(K,Sr,z==null?void 0:z.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),m.isValidElement(d.cancel)?d.cancel:d.cancel&&yt(d.cancel)?b.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||E,onClick:L=>{var V,G;yt(d.cancel)&&qe&&((G=(V=d.cancel).onClick)==null||G.call(V,L),Ie())},className:xe(z==null?void 0:z.cancelButton,(h=d==null?void 0:d.classNames)==null?void 0:h.cancelButton)},d.cancel.label):null,m.isValidElement(d.action)?d.action:d.action&&yt(d.action)?b.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:L=>{var V,G;yt(d.action)&&((G=(V=d.action).onClick)==null||G.call(V,L),!L.defaultPrevented&&Ie())},className:xe(z==null?void 0:z.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Ys(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let s=document.documentElement.getAttribute("dir");return s==="auto"||!s?window.getComputedStyle(document.documentElement).direction:s}function Hn(s,e){let a={};return[s,e].forEach((r,n)=>{let o=n===1,i=o?"--mobile-offset":"--offset",l=o?Vn:Fn;function c(u){["top","right","bottom","left"].forEach(h=>{a[`${i}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?a[`${i}-${u}`]=l:a[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),a}m.forwardRef(function(s,e){let{invert:a,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:o,closeButton:i,className:l,offset:c,mobileOffset:u,theme:h="light",richColors:f,duration:p,style:d,visibleToasts:R=Bn,toastOptions:_,dir:y=Ys(),gap:v=Un,loadingIcon:g,icons:k,containerAriaLabel:T="Notifications",pauseWhenPageIsHidden:U}=s,[ee,he]=b.useState([]),Ne=b.useMemo(()=>Array.from(new Set([r].concat(ee.filter($=>$.position).map($=>$.position)))),[ee,r]),[j,E]=b.useState([]),[A,N]=b.useState(!1),[K,X]=b.useState(!1),[be,re]=b.useState(h!=="system"?h:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ne=b.useRef(null),le=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=b.useRef(null),te=b.useRef(!1),ce=b.useCallback($=>{he(Z=>{var W;return(W=Z.find(oe=>oe.id===$.id))!=null&&W.delete||ie.dismiss($.id),Z.filter(({id:oe})=>oe!==$.id)})},[]);return b.useEffect(()=>ie.subscribe($=>{if($.dismiss){he(Z=>Z.map(W=>W.id===$.id?{...W,delete:!0}:W));return}setTimeout(()=>{Or.flushSync(()=>{he(Z=>{let W=Z.findIndex(oe=>oe.id===$.id);return W!==-1?[...Z.slice(0,W),{...Z[W],...$},...Z.slice(W+1)]:[$,...Z]})})})}),[]),b.useEffect(()=>{if(h!=="system"){re(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window=="undefined")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:Z})=>{re(Z?"dark":"light")})}catch(Z){$.addListener(({matches:W})=>{try{re(W?"dark":"light")}catch(oe){console.error(oe)}})}},[h]),b.useEffect(()=>{ee.length<=1&&N(!1)},[ee]),b.useEffect(()=>{let $=Z=>{var W,oe;n.every(Ze=>Z[Ze]||Z.code===Ze)&&(N(!0),(W=ne.current)==null||W.focus()),Z.code==="Escape"&&(document.activeElement===ne.current||(oe=ne.current)!=null&&oe.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[n]),b.useEffect(()=>{if(ne.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,te.current=!1)}},[ne.current]),b.createElement("section",{ref:e,"aria-label":`${T} ${le}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ne.map(($,Z)=>{var W;let[oe,Ze]=$.split("-");return ee.length?b.createElement("ol",{key:$,dir:y==="auto"?Ys():y,tabIndex:-1,ref:ne,className:l,"data-sonner-toaster":!0,"data-theme":be,"data-y-position":oe,"data-lifted":A&&ee.length>1&&!o,"data-x-position":Ze,style:{"--front-toast-height":`${((W=j[0])==null?void 0:W.height)||0}px`,"--width":`${$n}px`,"--gap":`${v}px`,...d,...Hn(c,u)},onBlur:H=>{te.current&&!H.currentTarget.contains(H.relatedTarget)&&(te.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||te.current||(te.current=!0,z.current=H.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{K||N(!1)},onDragEnd:()=>N(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},ee.filter(H=>!H.position&&Z===0||H.position===$).map((H,Ft)=>{var nt,vt;return b.createElement(Wn,{key:H.id,icons:k,index:Ft,toast:H,defaultRichColors:f,duration:(nt=_==null?void 0:_.duration)!=null?nt:p,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:a,visibleToasts:R,closeButton:(vt=_==null?void 0:_.closeButton)!=null?vt:i,interacting:K,position:$,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,removeToast:ce,toasts:ee.filter(ot=>ot.position==H.position),heights:j.filter(ot=>ot.position==H.position),setHeights:E,expandByDefault:o,gap:v,loadingIcon:g,expanded:A,pauseWhenPageIsHidden:U,swipeDirections:s.swipeDirections})})):null}))});const Wt="🎨 Descobri um lugar lindo para colorir cenas bíblicas com a família! Tem mais de 700 páginas cristãs. Vem ver: ",Ss="share_discount_unlocked_v1",Jn=0,as="",tc=()=>{const[s,e]=m.useState(!1),[a,r]=m.useState(!1),[n,o]=m.useState(!1),i=()=>{try{const p=window.AudioContext||window.webkitAudioContext;if(!p)return;const d=new p,R=d.currentTime;[523.25,659.25,783.99].forEach((y,v)=>{const g=d.createOscillator(),k=d.createGain();g.type="sine",g.frequency.value=y;const T=R+v*.09,U=T+.45;k.gain.setValueAtTime(0,T),k.gain.linearRampToValueAtTime(.18,T+.02),k.gain.exponentialRampToValueAtTime(1e-4,U),g.connect(k).connect(d.destination),g.start(T),g.stop(U+.05)}),setTimeout(()=>d.close().catch(()=>{}),900)}catch(p){}},l=()=>{if(!n){try{localStorage.removeItem(Ss)}catch(p){}o(!0),i(),je("share_completed"),zn.success("🙏 Obrigado por compartilhar!",{description:"Você ganhou acesso ao nosso grupo VIP no WhatsApp com desenhos e devocionais diários.",duration:6e3})}},c=typeof window!="undefined"?window.location.origin:"https://livrocolorircristao.com.br",u=`${Wt}${c}`,h=async p=>{if(je("referral_share_clicked",{target:p}),l(),p==="whatsapp"){window.open(`https://wa.me/?text=${encodeURIComponent(u)}`,"_blank","noopener,noreferrer");return}if(p==="facebook"){window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(c)}"e=${encodeURIComponent(Wt)}`,"_blank","noopener,noreferrer");return}if(p==="twitter"){window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(u)}`,"_blank","noopener,noreferrer");return}if(p==="telegram"){window.open(`https://t.me/share/url?url=${encodeURIComponent(c)}&text=${encodeURIComponent(Wt)}`,"_blank","noopener,noreferrer");return}if(p==="instagram"){try{await navigator.clipboard.writeText(u),alert("Texto copiado! Abra o Instagram e cole em Stories ou Direct.")}catch(d){alert("Abra o Instagram e compartilhe nosso link: "+c)}return}if(p==="copy")try{await navigator.clipboard.writeText(u),r(!0),setTimeout(()=>r(!1),1800)}catch(d){alert("Não foi possível copiar. Selecione manualmente.")}},f=()=>{je("referral_share_opened"),e(!0)};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:`referral-share-card ${n?"unlocked":""}`,children:[t.jsx("div",{className:"referral-share-icon","aria-hidden":"true",children:n?"✅":"🎁"}),n?t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"referral-share-text",children:[t.jsx("strong",{children:"🙏 Obrigado por compartilhar!"})," ","Você ganhou acesso ao nosso ",t.jsx("span",{className:"referral-share-highlight",children:"grupo VIP no WhatsApp"})," com desenhos e devocionais diários."]}),t.jsx("button",{type:"button",className:"referral-share-btn",onClick:f,children:"Compartilhar com mais pessoas"})]}):t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"referral-share-text",children:[t.jsx("strong",{children:"Compartilhe nossa missão"})," para amigos e familiares"," ","e ",t.jsx("span",{className:"referral-share-highlight",children:"tenha acesso ao nosso canal VIP"})," com desenhos e devocionais com versículos diários."]}),t.jsxs("button",{type:"button",className:"referral-share-btn",onClick:f,children:[t.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("circle",{cx:"18",cy:"5",r:"3"}),t.jsx("circle",{cx:"6",cy:"12",r:"3"}),t.jsx("circle",{cx:"18",cy:"19",r:"3"}),t.jsx("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),t.jsx("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]}),"Compartilhar"]})]})]}),s&&t.jsx("div",{className:"share-modal-backdrop",onClick:()=>e(!1),role:"dialog","aria-modal":"true","aria-label":"Compartilhar nossa missão",children:t.jsxs("div",{className:"share-modal",onClick:p=>p.stopPropagation(),children:[t.jsx("button",{className:"share-modal-close",onClick:()=>e(!1),"aria-label":"Fechar",children:"×"}),t.jsx("h3",{className:"share-modal-title",children:"📤 Compartilhar nossa missão"}),t.jsxs("p",{style:{textAlign:"center",fontSize:"0.9rem",color:"#64748b",marginTop:"-0.5rem",marginBottom:"1rem"},children:["Convide amigos e ganhe acesso ao nosso ",t.jsx("strong",{style:{color:"#059669"},children:"grupo VIP no WhatsApp"})]}),t.jsxs("div",{className:"share-options",children:[t.jsxs("button",{className:"share-opt wa",onClick:()=>h("whatsapp"),"aria-label":"WhatsApp",children:[t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M.057 24l1.687-6.163a11.867 11.867 0 01-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.82 11.82 0 018.413 3.488 11.82 11.82 0 013.48 8.413c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 01-5.688-1.45L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 001.51 5.26l-.999 3.648 3.978-1.607zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413z"})}),t.jsx("span",{children:"WhatsApp"})]}),t.jsxs("button",{className:"share-opt ig",onClick:()=>h("instagram"),"aria-label":"Instagram",children:[t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),t.jsx("span",{children:"Instagram"})]}),t.jsxs("button",{className:"share-opt fb",onClick:()=>h("facebook"),"aria-label":"Facebook",children:[t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),t.jsx("span",{children:"Facebook"})]}),t.jsxs("button",{className:"share-opt tg",onClick:()=>h("telegram"),"aria-label":"Telegram",children:[t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.446 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.022c.242-.213-.054-.334-.373-.121l-6.871 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.566-4.458c.538-.196 1.006.128.832.938z"})}),t.jsx("span",{children:"Telegram"})]}),t.jsxs("button",{className:"share-opt tw",onClick:()=>h("twitter"),"aria-label":"X (Twitter)",children:[t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:t.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),t.jsx("span",{children:"X"})]}),t.jsxs("button",{className:"share-opt copy",onClick:()=>h("copy"),"aria-label":"Copiar link",children:[t.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),t.jsx("span",{children:a?"Copiado!":"Copiar"})]})]})]})})]})},Ks="share_coupon_expires_at",Xs=30*60*1e3,Yn=()=>{const[s,e]=m.useState(()=>typeof window!="undefined"&&localStorage.getItem(Ss)==="1"),[a,r]=m.useState(Xs),[n,o]=m.useState(!1);if(m.useEffect(()=>{const h=()=>e(!0);return window.addEventListener("share-discount-unlocked",h),()=>window.removeEventListener("share-discount-unlocked",h)},[]),m.useEffect(()=>{if(!s)return;let h=Number(localStorage.getItem(Ks)||0);const f=Date.now();(!h||hr(Math.max(0,h-Date.now()));p();const d=setInterval(p,1e3);return()=>clearInterval(d)},[s]),!s||n||a<=0)return null;const i=Math.floor(a/1e3),l=String(Math.floor(i/60)).padStart(2,"0"),c=String(i%60).padStart(2,"0"),u=()=>{var h;(h=document.getElementById("limited-offer"))==null||h.scrollIntoView({behavior:"smooth"})};return t.jsx("div",{className:"coupon-banner",role:"status","aria-live":"polite",children:t.jsxs("div",{className:"coupon-banner-inner",children:[t.jsx("span",{className:"coupon-banner-icon",children:"✅"}),t.jsxs("div",{className:"coupon-banner-text",children:[t.jsx("strong",{children:"R$10 OFF desbloqueado!"}),t.jsxs("span",{className:"coupon-banner-sub",children:["Cupom ",t.jsx("code",{children:as})," · expira em ",t.jsxs("strong",{children:[l,":",c]})]})]}),t.jsx("button",{className:"coupon-banner-cta",onClick:u,children:"USAR AGORA"}),t.jsx("button",{className:"coupon-banner-close",onClick:()=>o(!0),"aria-label":"Fechar",children:"×"})]})})},Es="mp_consent_v1",Dt=()=>{if(typeof window=="undefined")return!1;if(window.__fbPixelConsent===!0)return!0;try{return localStorage.getItem(Es)==="granted"}catch(s){return!1}},Xe=(...s)=>{try{if(typeof window=="undefined"||typeof window.fbq!="function")return;window.fbq(...s)}catch(e){}},Wa=()=>{if(typeof window=="undefined")return;const s=window.__fbPixelConsent===!0;window.__fbPixelConsent=!0;try{localStorage.setItem(Es,"granted")}catch(e){}Xe("consent","grant"),s||Xe("track","PageView",{page_path:typeof location!="undefined"?location.pathname:"/"})},Ha=()=>{if(typeof window!="undefined"){window.__fbPixelConsent=!1;try{localStorage.setItem(Es,"revoked")}catch(s){}Xe("consent","revoke")}},Kn=s=>{const e={};return s.em&&(e.em=s.em.trim().toLowerCase()),s.ph&&(e.ph=s.ph.replace(/\D+/g,"")),s.fn&&(e.fn=s.fn.trim().toLowerCase()),s.ln&&(e.ln=s.ln.trim().toLowerCase()),s.ct&&(e.ct=s.ct.trim().toLowerCase().replace(/\s+/g,"")),s.st&&(e.st=s.st.trim().toLowerCase()),s.zp&&(e.zp=s.zp.trim()),s.country&&(e.country=s.country.trim().toLowerCase()),s.external_id&&(e.external_id=s.external_id.trim()),e},Xn=s=>{if(!Dt())return;const e=Kn(s);Object.keys(e).length!==0&&Xe("set","userData",e)},Ja=()=>`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,we=(s,e={},a={})=>{var r;Dt()&&Xe("track",s,e,{eventID:(r=a.eventID)!=null?r:Ja()})},Ye=(s,e={},a={})=>{var r;Dt()&&Xe("trackCustom",s,e,{eventID:(r=a.eventID)!=null?r:Ja()})},Qn=(s={})=>{we("Lead",{currency:"BRL",...s})},eo=(s,e={})=>{Ye("LeadFailed",{reason:s,...e})},rs=(s={})=>{Ye("PurchaseConfirmed",{currency:"BRL",...s})},sc=Object.freeze(Object.defineProperty({__proto__:null,mpGrantConsent:Wa,mpHasConsent:Dt,mpRevokeConsent:Ha,mpSetUserData:Xn,mpTrack:we,mpTrackCustom:Ye,mpTrackLead:Qn,mpTrackLeadFailed:eo,mpTrackPurchaseConfirmed:rs},Symbol.toStringTag,{value:"Module"}));function to(s){if(typeof document=="undefined")return;const e=document.cookie.match(new RegExp("(^|; )"+s+"=([^;]*)"));return e?decodeURIComponent(e[2]):void 0}async function Ya(s){var e,a;try{const r=((e=s.user)==null?void 0:e.ttclid)||typeof window!="undefined"&&new URLSearchParams(window.location.search).get("ttclid")||void 0,n=((a=s.user)==null?void 0:a.ttp)||to("_ttp");let o=s.test_event_code;if(!o&&typeof window!="undefined")try{o=window.localStorage.getItem("tt_test_event_code")||void 0}catch(l){}const i={event:s.event,event_id:s.event_id||`${s.event}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,event_time:Math.floor(Date.now()/1e3),url:typeof window!="undefined"?window.location.href:void 0,referrer:typeof document!="undefined"&&document.referrer||void 0,user:{...s.user,ttclid:r,ttp:n},properties:s.properties||{},test_event_code:o};await Y.functions.invoke("tiktok-events",{body:i})}catch(r){console.warn("[tiktokEvents] failed",r)}}const Qs=Object.freeze(Object.defineProperty({__proto__:null,ttServerEvent:Ya},Symbol.toStringTag,{value:"Module"})),so=()=>{const s=Tt();m.useEffect(()=>{const e=()=>{Ga(s.pathname),we("PageView",{page_path:s.pathname}),Ya({event:"PageView",properties:{page_path:s.pathname}})};"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,800)},[s.pathname])},ao="/assets/garantia-7-dias-Qw4wFuDQ.webp",ro="/assets/cakto-logo-BGNtQtIz.png",no="/assets/trust-ssl-CvLImE6I.png",oo="/assets/trust-garantia-DdIswvPr.png",io="/assets/trust-segura-ni7KxCES.png",lo="/assets/book-06-pt-ebMN5WIW.webp",co="/assets/book-19-pt-DN9P07xE.webp",uo=m.lazy(()=>ae(()=>import("./ColoringPage-C6uAZywj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),mo=m.lazy(()=>ae(()=>import("./TestimonialsSection-DVkvKAX-.js"),__vite__mapDeps([8,1]))),ho=m.lazy(()=>ae(()=>import("./ExitIntentPopup-ChkUQ-T7.js"),__vite__mapDeps([9,1,2,3,4,5,6]))),po=m.lazy(()=>ae(()=>import("./ConfettiBurst-D2x3Njcd.js"),__vite__mapDeps([10,1]))),fo=m.lazy(()=>ae(()=>import("./PartnerForm-D0PJDIVz.js"),__vite__mapDeps([11,1,2,3,4,5,6]))),go=m.lazy(()=>ae(()=>import("./SocialCommunityCard-DaNmvaVS.js"),__vite__mapDeps([12,1]))),ns="Cristo12",xo=12,ye=s=>s.toLocaleString("pt-BR",{style:"currency",currency:"BRL"}),os=(s,e,a)=>{let r=s;return a&&(r=Math.max(0,r-Jn)),e&&(r=Math.max(0,r-xo)),Math.round(r*100)/100},ea=(s,e,a)=>{const r=s==="premium",n=r?47:34,o=e&&a?`${ns}+${as}`:a?as:e?ns:null;return{content_name:r?"Pacote Premium":"Pacote Básico",content_category:"product",content_ids:[r?"pacote_premium":"pacote_basico"],content_type:"product",currency:"BRL",value:os(n,e,a),coupon:o}},vo=()=>{so();const[s,e]=m.useState(null);m.useRef(null);const[a,r]=m.useState(0),[n,o]=m.useState(!1);m.useEffect(()=>{const j=()=>o(!0);return window.addEventListener("promo-expired",j),()=>window.removeEventListener("promo-expired",j)},[]);const[i,l]=m.useState(()=>typeof window!="undefined"&&sessionStorage.getItem("apply_coupon")===ns),c=i&&!n;m.useEffect(()=>{const j=()=>l(!0);return window.addEventListener("apply-coupon",j),()=>window.removeEventListener("apply-coupon",j)},[]);const[u,h]=m.useState(!1);m.useEffect(()=>{const j=()=>{h(!0),setTimeout(()=>h(!1),2e3)};return window.addEventListener("highlight-premium",j),()=>window.removeEventListener("highlight-premium",j)},[]);const[f,p]=m.useState(()=>typeof window!="undefined"&&localStorage.getItem(Ss)==="1");m.useEffect(()=>{const j=()=>p(!0);return window.addEventListener("share-discount-unlocked",j),()=>window.removeEventListener("share-discount-unlocked",j)},[]);const d=m.useRef(null),R=m.useRef(null);m.useEffect(()=>{let j=!1;const E=()=>{j||(j=!0,requestAnimationFrame(()=>{const A=window.scrollY;if(d.current){const N=d.current.querySelector(".hero-visual"),K=d.current.querySelector(".hero-text"),X=d.current.offsetHeight,be=window.innerWidth<=768,re=be?X*.35:0,ne=be?X*.85:X*.6,le=Math.min(Math.max((A-re)/ne,0),1);N&&(N.style.opacity=String(1-le),N.style.transform=`translateY(-${le*30}px)`),K&&(K.style.opacity=String(1-le),K.style.transform=`translateY(-${le*30}px)`)}j=!1}))};return window.addEventListener("scroll",E,{passive:!0}),E(),()=>window.removeEventListener("scroll",E)},[]),m.useEffect(()=>{if(!R.current)return;const j=R.current.querySelectorAll(".benefit");j.forEach((A,N)=>{A.style.transitionDelay=`${N*.15}s`});const E=new IntersectionObserver(A=>{A.forEach(N=>{N.isIntersecting&&(N.target.classList.add("revealed"),E.unobserve(N.target))})},{threshold:.2});return j.forEach(A=>E.observe(A)),()=>E.disconnect()},[]),m.useEffect(()=>{const j=document.querySelectorAll(".scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-scale"),E=new IntersectionObserver(A=>{A.forEach(N=>{N.isIntersecting&&(N.target.classList.add("revealed"),E.unobserve(N.target))})},{threshold:.15});return j.forEach(A=>E.observe(A)),()=>E.disconnect()},[]);const[_,y]=m.useState(null),v=[{name:"Mariana Oliveira",location:"São Paulo - SP"},{name:"Lucas Almeida",location:"Belo Horizonte - MG"},{name:"Juliana Souza",location:"Curitiba - PR"},{name:"Pedro Henrique Silva",location:"Rio de Janeiro - RJ"},{name:"Ana Beatriz Costa",location:"Salvador - BA"},{name:"Rafael Pereira",location:"Porto Alegre - RS"},{name:"Camila Rodrigues",location:"Fortaleza - CE"},{name:"Thiago Martins",location:"Recife - PE"},{name:"Letícia Fernandes",location:"Brasília - DF"},{name:"Gabriel Ribeiro",location:"Goiânia - GO"},{name:"Beatriz Lima",location:"Manaus - AM"},{name:"Felipe Carvalho",location:"Florianópolis - SC"},{name:"Fernanda Gomes",location:"Campinas - SP"},{name:"Mateus Araújo",location:"Vitória - ES"},{name:"Larissa Barbosa",location:"Natal - RN"}],g=["Pacote Premium","Pacote Básico"];m.useEffect(()=>{const j=()=>{const N=v[Math.floor(Math.random()*v.length)],K=g[Math.floor(Math.random()*g.length)],X=Math.floor(Math.random()*59)+1;y({name:N.name,pkg:K,location:N.location,time:X}),setTimeout(()=>y(null),5e3)},E=setTimeout(j,3e3),A=setInterval(j,15e3);return()=>{clearTimeout(E),clearInterval(A)}},[]);const k=["book-03.webp","book-06.webp","book-10.png","book-11.png","book-12.png","book-13.png","book-14.jpg","book-15.png","book-16.png","book-17.png","book-18.png","book-19.jpg"],T=k.length-2;m.useEffect(()=>{const j=setInterval(()=>{r(E=>E>=T?0:E+1)},3e3);return()=>clearInterval(j)},[T]);const U=new Date,ee=U.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"2-digit"}),he=()=>{const j=document.getElementById("pricing-cards")||document.getElementById("limited-offer");j==null||j.scrollIntoView({behavior:"smooth",block:"start"})},Ne="https://res.cloudinary.com/dr6febkdt/image/fetch/f_auto,q_auto/https://christbobbiegoods.shop/images";return t.jsxs("div",{className:"landing-page",children:[t.jsx("div",{style:{position:"sticky",top:0,zIndex:9999,background:"linear-gradient(90deg, #0f172a 0%, #1e293b 100%)",color:"#fff",display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"10px 16px",fontSize:"14px",borderBottom:"1px solid rgba(255,255,255,0.12)",boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:t.jsx(vn,{})}),t.jsx(Yn,{}),t.jsx(m.Suspense,{fallback:null,children:t.jsx(po,{})}),t.jsxs("div",{className:`purchase-notification ${_?"show":""}`,children:[t.jsx("button",{className:"close-btn",onClick:()=>y(null),children:"×"}),_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"customer-name",children:_.name}),t.jsxs("div",{className:"purchase-info",children:["Comprou: ",_.pkg]}),t.jsxs("div",{className:"location-time",children:[t.jsx("span",{children:_.location}),t.jsxs("span",{children:["há ",_.time," min"]})]})]})]}),t.jsx("header",{className:"hero",ref:d,children:t.jsxs("div",{className:"container",children:[t.jsxs("div",{className:"security-badge-row",children:[t.jsx("div",{className:"security-badge",children:t.jsx("span",{className:"text-primary-foreground",children:"🛡️ Compra 100% segura e protegida"})}),t.jsxs("a",{href:"https://wa.me/5521979668441?text=Ol%C3%A1%2C%20gostaria%20de%20mais%20informa%C3%A7%C3%B5es%20sobre%20os%20livros%20de%20colorir%20crist%C3%A3o!",target:"_blank",rel:"noopener noreferrer",className:"whatsapp-cta-btn","aria-label":"Falar no WhatsApp",onClick:()=>{je("cta_clicked",{id:"whatsapp_hero"}),we("Contact",{content_name:"WhatsApp Hero"})},children:[t.jsx("svg",{viewBox:"0 0 32 32",width:"20",height:"20","aria-hidden":"true",children:t.jsx("path",{fill:"currentColor",d:"M19.11 17.29c-.27-.14-1.62-.8-1.87-.89-.25-.09-.43-.14-.61.14-.18.27-.7.89-.86 1.07-.16.18-.32.2-.59.07-.27-.14-1.15-.42-2.19-1.35-.81-.72-1.36-1.61-1.52-1.88-.16-.27-.02-.42.12-.55.12-.12.27-.32.41-.48.14-.16.18-.27.27-.45.09-.18.05-.34-.02-.48-.07-.14-.61-1.47-.84-2.01-.22-.53-.45-.46-.61-.47l-.52-.01c-.18 0-.48.07-.73.34-.25.27-.96.94-.96 2.29 0 1.35.98 2.65 1.12 2.83.14.18 1.93 2.95 4.68 4.13.65.28 1.16.45 1.56.58.66.21 1.25.18 1.72.11.52-.08 1.62-.66 1.85-1.3.23-.64.23-1.18.16-1.3-.07-.11-.25-.18-.52-.32zM16.02 5.33c-5.89 0-10.67 4.78-10.67 10.67 0 1.88.49 3.71 1.43 5.33L5.33 26.67l5.5-1.42a10.6 10.6 0 0 0 5.19 1.34h.01c5.88 0 10.67-4.78 10.67-10.67 0-2.85-1.11-5.53-3.13-7.55a10.6 10.6 0 0 0-7.55-3.04zm0 19.55h-.01a8.86 8.86 0 0 1-4.51-1.24l-.32-.19-3.27.85.87-3.18-.21-.33a8.86 8.86 0 0 1-1.36-4.71c0-4.9 3.99-8.88 8.89-8.88 2.37 0 4.6.93 6.28 2.6a8.83 8.83 0 0 1 2.6 6.29c0 4.9-3.99 8.88-8.89 8.88z"})}),t.jsx("span",{children:"WhatsApp"})]})]}),t.jsxs("div",{className:"hero-content",children:[t.jsxs("div",{className:"product-image hero-visual",children:[t.jsxs("div",{className:"crayons",children:[t.jsx("div",{className:"crayon red"}),t.jsx("div",{className:"crayon orange"}),t.jsx("div",{className:"crayon yellow"}),t.jsx("div",{className:"crayon green"}),t.jsx("div",{className:"crayon blue"}),t.jsx("div",{className:"crayon purple"})]}),t.jsx("img",{src:"/images/hero-768.webp",srcSet:"/images/hero-480.webp 480w, /images/hero-768.webp 768w, /images/hero-1200.webp 1200w",sizes:"(max-width: 600px) 92vw, (max-width: 1024px) 60vw, 600px",alt:"21 Livros Cristãos para Colorir",className:"hero-book-image",width:"600",height:"600",decoding:"async",fetchPriority:"high"})]}),t.jsxs("div",{className:"hero-text-wrapper",children:[t.jsxs("div",{className:"hero-text",children:[t.jsx("div",{className:"trust-badge-pill",children:"✝️ Mais de 1.200 Famílias Cristãs Transformaram o Devocional com Este Kit"}),t.jsxs("h1",{children:["Cansada de Ver Seus Filhos ",t.jsx("span",{className:"highlight",children:"Entediados"})," Durante o Devocional em Família?"]}),t.jsxs("h2",{className:"hero-subheadline",children:["Descubra Como Ensinar a Palavra de Deus de Forma Divertida ",t.jsx("em",{children:"(Sem Precisar Competir com Tablets e Videogames)"})]}),t.jsxs("ul",{className:"hero-benefits-list",children:[t.jsxs("li",{children:[t.jsx("span",{className:"hb-check",children:"✅"}),t.jsxs("span",{children:["Transforme ",t.jsx("strong",{children:'"hora chata"'})," em momentos que seus filhos VÃO PEDIR para repetir"]})]}),t.jsxs("li",{children:[t.jsx("span",{className:"hb-check",children:"✅"}),t.jsxs("span",{children:["Ensine valores cristãos enquanto cria ",t.jsx("strong",{children:"memórias inesquecíveis"})]})]}),t.jsxs("li",{children:[t.jsx("span",{className:"hb-check",children:"✅"}),t.jsxs("span",{children:["Tenha material pronto para ",t.jsx("strong",{children:"MESES"})," de devocional, células e escola dominical"]})]}),t.jsxs("li",{children:[t.jsx("span",{className:"hb-check",children:"✅"}),t.jsxs("span",{children:["Funciona até com crianças que ",t.jsx("strong",{children:'"não param quietas"'})," por 2 minutos"]})]})]}),t.jsxs("div",{className:"features",children:[t.jsx("div",{className:"feature",children:t.jsx("span",{children:"👥 Células e Pequenos Grupos"})}),t.jsx("div",{className:"feature",children:t.jsx("span",{children:"⛪ Escola Dominical"})}),t.jsx("div",{className:"feature",children:t.jsx("span",{children:"❤️ Devocional em Família"})}),t.jsx("div",{className:"feature",children:t.jsx("span",{children:"🎓 Ensino Cristão"})})]})]}),t.jsx("button",{className:"cta-button hero-cta cta-green-pulse",onClick:()=>{var j;je("cta_clicked",{id:"hero_colorir_online"}),Ye("HeroCTAClick",{id:"colorir_online"}),(j=document.querySelector(".coloring-section"))==null||j.scrollIntoView({behavior:"smooth"})},children:"COLORIR ONLINE GRÁTIS AGORA"}),t.jsx("button",{className:"cta-button hero-cta hero-cta-secondary",onClick:()=>{var j;je("cta_clicked",{id:"hero_livro_gratis"}),Ye("HeroCTAClick",{id:"livro_gratis"}),(j=document.querySelector(".coloring-lead-form"))==null||j.scrollIntoView({behavior:"smooth"})},children:"📚 QUERO MEU LIVRO GRÁTIS!"})]})]})]})}),t.jsx("section",{className:"why-choose",ref:R,children:t.jsx("div",{className:"container",children:t.jsxs("div",{className:"benefits-grid",children:[t.jsxs("div",{className:"benefit",children:[t.jsx("div",{className:"benefit-icon blue",children:"👥"}),t.jsx("h3",{children:"Células e Pequenos Grupos"}),t.jsx("p",{children:"Atividades que prendem a atenção da criançada e tornam cada encontro uma experiência marcante com Deus"})]}),t.jsxs("div",{className:"benefit",children:[t.jsx("div",{className:"benefit-icon purple",children:"⛪"}),t.jsx("h3",{children:"Escola Dominical"}),t.jsx("p",{children:"Material pronto para o professor — aulas mais leves, divertidas e com a Palavra fixando no coração"})]}),t.jsxs("div",{className:"benefit",children:[t.jsx("div",{className:"benefit-icon green",children:"❤️"}),t.jsx("h3",{children:"Devocional em Família"}),t.jsx("p",{children:"Desligue a tela e crie momentos preciosos com seus filhos em volta da mesa, falando de Jesus"})]}),t.jsxs("div",{className:"benefit",children:[t.jsx("div",{className:"benefit-icon orange",children:"🎓"}),t.jsx("h3",{children:"Ensino e Coordenação"}),t.jsx("p",{children:"Desenvolve a coordenação motora, a criatividade e ainda planta a Palavra no coração das crianças"})]})]})})}),t.jsx("section",{className:"products-gallery scroll-reveal",children:t.jsxs("div",{className:"container",children:[t.jsx("h2",{children:"Conheça os Nossos Livros para Colorir"}),t.jsx("p",{className:"section-subtitle",children:"Ilustrações exclusivas que transformam fé em arte e ansiedade em paz"}),t.jsx("div",{className:"products-carousel-container",children:t.jsxs("div",{className:"products-carousel",children:[t.jsx("button",{className:"carousel-btn carousel-btn-prev",onClick:()=>r(j=>j>0?j-1:T),children:"‹"}),t.jsx("button",{className:"carousel-btn carousel-btn-next",onClick:()=>r(j=>j{const A=j==="book-06.webp"?lo:j==="book-19.jpg"?co:`${Ne}/products/${j}?_a=BBFAAAAA0`;return t.jsx("div",{className:"product-image-card",children:t.jsx("img",{src:A,alt:`Coloring Book ${E+1}`,loading:"lazy",decoding:"async",width:"400",height:"400"})},E)})})]})})]})}),t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{minHeight:400}}),children:t.jsx(uo,{})}),t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{minHeight:400}}),children:t.jsx(mo,{})}),t.jsx("section",{className:"limited-offer scroll-reveal",id:"limited-offer",children:t.jsxs("div",{className:"container",children:[t.jsxs("div",{className:"offer-combo",children:[t.jsx("div",{className:"offer-alert",children:t.jsxs("span",{children:["⏰ OFERTA RELÂMPAGO — Apenas hoje, ",ee]})}),t.jsx(Zs,{})]}),t.jsx("h2",{children:"Escolha o Seu Pacote Especial — Mais de 700 PÁGINAS PARA COLORIR"}),t.jsx("p",{className:"section-subtitle",children:"Livros de altíssima qualidade para fortalecer a fé da sua família todos os dias"}),t.jsxs("div",{className:"value-anchor",children:[t.jsx("h3",{className:"va-title",children:"💰 QUANTO VALE ESTE KIT?"}),t.jsxs("div",{className:"va-grid",children:[t.jsxs("div",{className:"va-item",children:[t.jsx("div",{className:"va-item-label",children:"Se você comprasse cada livro separado:"}),t.jsxs("div",{className:"va-item-line",children:["21 livros × R$ 12,90 = ",t.jsx("strong",{children:"R$ 270,90"})]})]}),t.jsxs("div",{className:"va-item",children:[t.jsx("div",{className:"va-item-label",children:"Se você criasse do zero:"}),t.jsxs("div",{className:"va-item-line",children:["Designer freelancer = ",t.jsx("strong",{children:"R$ 350,00"})]}),t.jsxs("div",{className:"va-item-line",children:["Ilustrações customizadas = ",t.jsx("strong",{children:"R$ 180,00"})]}),t.jsxs("div",{className:"va-item-line",children:["Tempo de pesquisa = ",t.jsx("strong",{children:"Incalculável"})]})]})]}),t.jsxs("div",{className:"va-total",children:["VALOR REAL: ",t.jsx("span",{children:"R$ 800,90"})]}),t.jsx("p",{className:"va-tagline",children:"🎁 Hoje, com desconto exclusivo, por uma fração disso. Menos que um almoço em família!"})]}),t.jsx(Ws,{}),t.jsxs("div",{className:"pricing-cards",id:"pricing-cards",children:[t.jsxs("div",{className:"pricing-card scroll-reveal-left",children:[t.jsxs("div",{className:"package-header",children:[t.jsx("span",{children:"⭐"}),t.jsx("h3",{children:"Pacote Básico"})]}),t.jsxs("div",{className:"pricing",children:[!n&&t.jsx("div",{className:"old-price",children:"R$ 188,00"}),(()=>{if(n)return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"current-price",children:ye(34)}),t.jsx("div",{className:"savings",style:{color:"#b91c1c"},children:"⏰ Promoção encerrada — preço normal"})]});const E=os(34,c,f),A=188-E,N=Math.round((1-E/188)*100),K=c||f;return t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"discount",children:["-",N,"%"]}),K?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"current-price-strike",children:ye(34)}),t.jsx("div",{className:"current-price",children:ye(E)}),f&&t.jsx("div",{className:"share-discount-pill",children:"✅ -R$10 desbloqueado por compartilhar"}),c&&t.jsx("div",{className:"share-discount-pill",style:{background:"#fef3c7",color:"#92400e",borderColor:"#fcd34d"},children:"🎁 -R$12 cupom CRISTO12 aplicado"})]}):t.jsx("div",{className:"current-price",children:ye(34)}),t.jsxs("div",{className:"savings",children:["Você economiza ",ye(A)]})]})})()]}),t.jsxs("div",{className:"features-list",children:[t.jsxs("div",{className:"feature-item",children:[t.jsx("span",{children:"✅"}),t.jsxs("span",{children:["Acesso em um ",t.jsx("span",{className:"highlight-unlimited",children:"DISPOSITIVO"})]})]}),["21 Livros para Colorir em PDF","Mais de 700 páginas cristãs","Diversos temas bíblicos","Acesso vitalício","Suporte pelo WhatsApp","Garantia de 7 dias"].map(j=>t.jsxs("div",{className:"feature-item",children:[t.jsx("span",{children:"✅"}),t.jsx("span",{children:j})]},j))]}),t.jsx("a",{href:"https://seguro.livrocolorircristao.com/r/8LO61IP7UT",target:"_blank",rel:"noopener noreferrer",className:"buy-button basic pulse-green",onClick:j=>{const E="https://seguro.livrocolorircristao.com/r/8LO61IP7UT",A=ea("basic",c,f);je("cta_clicked",{id:"pacote_basico",coupon:A.coupon,value:A.value}),we("AddToCart",A),we("InitiateCheckout",A),we("AddPaymentInfo",A),rs({...A,step:"basic_button_confirm"}),ae(async()=>{const{ttServerEvent:N}=await Promise.resolve().then(()=>Qs);return{ttServerEvent:N}},void 0).then(({ttServerEvent:N})=>N({event:"InitiateCheckout",properties:{content_name:"Pacote Basico",content_id:"basic",value:A.value,currency:"BRL",coupon:A.coupon}})),setTimeout(()=>{try{!j.defaultPrevented&&document.visibilityState==="visible"&&window.open(E,"_blank","noopener,noreferrer")}catch(N){}},150)},children:"🎨 SIM! QUERO TRANSFORMAR O DEVOCIONAL DA MINHA FAMÍLIA"}),t.jsx("div",{className:"cta-microcopy",children:"Acesso imediato • Garantia de 7 dias • Compra 100% Segura"})]}),t.jsxs("div",{className:`pricing-card premium scroll-reveal-right ${u?"premium-glow":""}`,children:[t.jsx("div",{className:"bestseller",children:t.jsx("span",{children:"🏆 MAIS VENDIDO"})}),t.jsxs("div",{className:"package-header",children:[t.jsx("span",{children:"👑"}),t.jsx("h3",{children:"Pacote Premium"})]}),t.jsxs("div",{className:"pricing",children:[!n&&t.jsx("div",{className:"old-price",children:"R$ 256,00"}),(()=>{if(n)return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"current-price",children:ye(47)}),t.jsx("div",{className:"savings",style:{color:"#b91c1c"},children:"⏰ Promoção encerrada — preço normal"})]});const E=os(47,c,f),A=256-E,N=Math.round((1-E/256)*100),K=c||f;return t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"discount",children:["-",N,"%"]}),K?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"current-price-strike",children:ye(47)}),t.jsx("div",{className:"current-price",children:ye(E)}),f&&t.jsx("div",{className:"share-discount-pill",children:"✅ -R$10 desbloqueado por compartilhar"}),c&&t.jsx("div",{className:"share-discount-pill",style:{background:"#fef3c7",color:"#92400e",borderColor:"#fcd34d"},children:"🎁 -R$12 cupom CRISTO12 aplicado"})]}):t.jsx("div",{className:"current-price",children:ye(47)}),t.jsxs("div",{className:"savings",children:["Você economiza ",ye(A)]})]})})()]}),t.jsx("div",{className:"included",children:"TUDO DO PACOTE BÁSICO +"}),t.jsxs("div",{className:"bonus-items",children:[t.jsxs("div",{className:"bonus-item",children:[t.jsx("span",{children:"🎁"}),t.jsxs("div",{children:[t.jsxs("strong",{children:["Acesso em dispositivos ",t.jsx("span",{className:"highlight-unlimited",children:"ILIMITADO"})]}),t.jsx("p",{children:"EXCLUSIVO"})]})]}),["+ 2 NOVOS LIVROS POR MÊS (12 MESES)","+ LIVRO DE ATIVIDADES CRISTÃS","+ DESAFIO BÍBLICO DE 7 DIAS","+ PLANNER DEVOCIONAL INFANTIL"].map(j=>t.jsxs("div",{className:"bonus-item",children:[t.jsx("span",{children:"🎁"}),t.jsxs("div",{children:[t.jsx("strong",{children:j}),t.jsx("p",{children:"EXCLUSIVO"})]})]},j))]}),t.jsx("a",{href:"https://seguro.livrocolorircristao.com/r/SNNR5WKI7H",target:"_blank",rel:"noopener noreferrer",className:"buy-button premium-btn",onClick:j=>{const E="https://seguro.livrocolorircristao.com/r/SNNR5WKI7H",A=ea("premium",c,f);je("cta_clicked",{id:"pacote_premium",coupon:A.coupon,value:A.value}),we("AddToCart",A),we("InitiateCheckout",A),we("AddPaymentInfo",A),rs({...A,step:"premium_button_confirm"}),ae(async()=>{const{ttServerEvent:N}=await Promise.resolve().then(()=>Qs);return{ttServerEvent:N}},void 0).then(({ttServerEvent:N})=>N({event:"InitiateCheckout",properties:{content_name:"Pacote Premium",content_id:"premium",value:A.value,currency:"BRL",coupon:A.coupon}})),setTimeout(()=>{try{!j.defaultPrevented&&document.visibilityState==="visible"&&window.open(E,"_blank","noopener,noreferrer")}catch(N){}},150)},children:"🎨 SIM! QUERO TRANSFORMAR O DEVOCIONAL DA MINHA FAMÍLIA"}),t.jsx("div",{className:"cta-microcopy",children:"Acesso imediato • Garantia de 7 dias • Compra 100% Segura"}),t.jsx("div",{className:"social-proof",children:"+500 famílias já escolheram este pacote"})]})]})]})}),t.jsx("section",{className:"for-whom scroll-reveal",children:t.jsxs("div",{className:"container",children:[t.jsxs("h2",{className:"for-whom-title",children:["Este Kit é ",t.jsx("span",{className:"fw-accent",children:"PERFEITO"})," se Você:"]}),t.jsxs("ul",{className:"for-whom-list fw-yes",children:[t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"😰"}),t.jsx("span",{children:"Luta para manter seus filhos focados durante o devocional"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"📱"}),t.jsx("span",{children:"Cansa de competir com celulares, tablets e videogames"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"⏰"}),t.jsx("span",{children:"Tem pouco tempo mas quer ensinar valores cristãos de verdade"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"👨‍👩‍👧‍👦"}),t.jsx("span",{children:"Quer criar memórias de fé que seus filhos vão lembrar para sempre"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"📚"}),t.jsx("span",{children:"Busca material de qualidade para escola dominical ou células infantis"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"🙏"}),t.jsx("span",{children:"Deseja que seus filhos AMEM aprender sobre Jesus (não sintam como obrigação)"})]})]}),t.jsxs("h3",{className:"for-whom-subtitle",children:["Este Kit ",t.jsx("span",{className:"fw-accent-no",children:"NÃO"})," é Para Você se:"]}),t.jsxs("ul",{className:"for-whom-list fw-no",children:[t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"❌"}),t.jsx("span",{children:'Procura atividades "qualquer coisa" sem fundamento bíblico'})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"❌"}),t.jsx("span",{children:"Quer apenas entreter crianças sem propósito educacional"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"fw-emoji",children:"❌"}),t.jsx("span",{children:"Não tem impressora (o kit é 100% digital para impressão ilimitada)"})]})]})]})}),t.jsx("section",{className:"transformation scroll-reveal",children:t.jsxs("div",{className:"container",children:[t.jsx("h2",{className:"transformation-title",children:"A Transformação que Este Kit Traz Para Sua Família"}),t.jsxs("div",{className:"transformation-grid",children:[t.jsxs("div",{className:"transformation-col tcol-before",children:[t.jsx("div",{className:"tcol-header",children:"😔 ANTES DO KIT"}),t.jsxs("ul",{children:[t.jsxs("li",{children:["Crianças reclamando: ",t.jsx("em",{children:'"De novo esse negócio chato?"'})]}),t.jsx("li",{children:"Devocional virando momento de tensão e frustração"}),t.jsxs("li",{children:["Você gastando ",t.jsx("strong",{children:"HORAS"})," procurando atividades na internet"]}),t.jsxs("li",{children:["Impressão de que ",t.jsx("em",{children:'"não está funcionando"'})]}),t.jsx("li",{children:"Culpa por não conseguir ensinar a Palavra direito"})]})]}),t.jsxs("div",{className:"transformation-col tcol-after",children:[t.jsx("div",{className:"tcol-header",children:"😊 DEPOIS DO KIT"}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("em",{children:'"Mãe, hoje tem aquela atividade da Bíblia?"'})}),t.jsx("li",{children:"Devocional se tornando o momento favorito do dia"}),t.jsxs("li",{children:["Tudo pronto, é só ",t.jsx("strong",{children:"imprimir e começar"})]}),t.jsx("li",{children:"Crianças memorizando versículos naturalmente"}),t.jsx("li",{children:"Paz sabendo que está plantando sementes de fé"})]})]})]})]})}),t.jsx("section",{className:"faq scroll-reveal",children:t.jsxs("div",{className:"container",children:[t.jsx("h2",{children:"Perguntas Frequentes (Suas Dúvidas Respondidas)"}),t.jsx("div",{className:"faq-list",children:[{q:"📦 Vou receber em casa ou é digital?",a:"É 100% DIGITAL! Você recebe o link de download por e-mail em até 2 minutos após a compra. Pode imprimir quantas vezes quiser, para sempre. Sem custos de frete, sem espera!"},{q:"👶 Funciona para qual idade?",a:"De 3 a 12 anos! Temos atividades SIMPLES para os pequeninos de 3-5 anos, INTERMEDIÁRIAS para 6-8 anos e mais COMPLEXAS para 9-12 anos. Perfeito se você tem filhos de idades diferentes!"},{q:"📖 E se eu não souber como usar no devocional?",a:'Você recebe GRÁTIS nosso guia: "10 Formas Criativas de Usar Colorir na Educação Cristã dos Filhos" com ideias práticas e passo a passo.'},{q:"🛡️ E se eu comprar e não gostar?",a:"GARANTIA INCONDICIONAL de 7 dias. Se por qualquer motivo você não ficar 100% satisfeita, devolvemos TODO o seu dinheiro, sem perguntas, sem burocracia. O risco é zero!"},{q:"⛪ Posso usar na minha igreja/escola dominical?",a:"SIM! Você tem direito a impressão e uso ILIMITADOS. Muitos pastores e professores já estão usando nas células, EBD, culto infantil e muito mais."},{q:"💻 Preciso de programas especiais para abrir os arquivos?",a:"Não! Os arquivos vêm em PDF, que abre em qualquer celular, computador ou tablet. É só baixar e imprimir."},{q:"⏱️ Quanto tempo leva para eu receber?",a:"IMEDIATO! Assim que o pagamento for aprovado (leva 2 minutos no cartão, até 2 dias no boleto), você recebe o e-mail com o link de download. Pode começar a usar HOJE!"},{q:"💬 Tem suporte se eu tiver algum problema?",a:"Sim! Temos suporte via WhatsApp e e-mail. Respondemos em até 24h (geralmente bem mais rápido)."}].map((j,E)=>t.jsxs("div",{className:`faq-item ${s===E?"active":""}`,children:[t.jsxs("div",{className:"faq-question",onClick:()=>e(s===E?null:E),children:[t.jsx("span",{children:j.q}),t.jsx("span",{className:"faq-chevron",children:s===E?"▲":"▼"})]}),s===E&&t.jsx("div",{className:"faq-answer",children:t.jsx("p",{children:j.a})})]},E))}),t.jsx("div",{className:"faq-cta-wrapper",children:t.jsx("button",{className:"cta-button cta-green-pulse",onClick:he,children:"TIREI MINHAS DÚVIDAS, QUERO COMPRAR AGORA"})})]})}),t.jsx("section",{className:"guarantee scroll-reveal-scale guarantee-highlight",children:t.jsxs("div",{className:"container",children:[t.jsxs("div",{className:"guarantee-box",children:[t.jsx("div",{className:"guarantee-shield",children:t.jsx("img",{src:ao,alt:"Garantia de 7 dias",width:"160",height:"160",loading:"lazy",decoding:"async"})}),t.jsx("h3",{children:"🛡️ Garantia Incondicional de 7 Dias — Risco ZERO Para Você"}),t.jsxs("p",{className:"guarantee-lead",children:["Eu sei que comprar pela internet pode dar aquele friozinho na barriga. Por isso, quero tirar ",t.jsx("strong",{children:"TODO o risco"})," de você:"]}),t.jsxs("p",{children:["Use o kit pelos próximos 7 dias. Imprima, teste com seus filhos, use na igreja, experimente ",t.jsx("strong",{children:"TUDO"}),"."]}),t.jsxs("p",{children:["Se por qualquer motivo você achar que não valeu a pena, é só me enviar um e-mail e eu devolvo ",t.jsx("strong",{children:"100% do seu investimento"}),"."]}),t.jsxs("p",{className:"guarantee-tagline",children:["Sem perguntas. Sem burocracia. Sem ressentimentos. ",t.jsx("em",{children:"Justo, não é?"})]}),t.jsxs("blockquote",{className:"guarantee-testimonial",children:[t.jsx("p",{children:"“Fiquei com medo de comprar online, mas a garantia me deixou segura. Testei por 3 dias e já vi que ia usar por ANOS. Nem precisei pedir reembolso, óbvio!”"}),t.jsx("footer",{children:"— Ana Paula, Goiânia/GO"})]})]}),t.jsxs("div",{className:"security-badges-footer",children:[t.jsxs("div",{className:"security-badge-item",title:"Pagamento processado por plataforma certificada com criptografia bancária",children:[t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),t.jsx("path",{d:"M7 11V7a5 5 0 0110 0v4"})]}),t.jsx("span",{children:"Pagamento Seguro"})]}),t.jsxs("div",{className:"security-badge-item",title:"Conexão criptografada de ponta a ponta com certificado SSL válido",children:[t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),t.jsx("path",{d:"M9 12l2 2 4-4"})]}),t.jsx("span",{children:"Protegido por SSL"})]}),t.jsxs("div",{className:"security-badge-item",title:"Atendimento real por WhatsApp — sem robôs, sem espera",children:[t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"}),t.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),t.jsx("span",{children:"Suporte Humano"})]}),t.jsxs("div",{className:"security-badge-item",title:"Devolução incondicional de 100% do valor em até 7 dias",children:[t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("polyline",{points:"12 6 12 12 16 14"})]}),t.jsx("span",{children:"7 Dias de Garantia"})]})]}),t.jsxs("div",{className:"trust-badges-row",children:[t.jsx("img",{src:no,alt:"Site Seguro - SSL Certificado",loading:"lazy",decoding:"async"}),t.jsx("img",{src:ro,alt:"Cakto - Pagamento Seguro",className:"cakto-badge",loading:"lazy",decoding:"async"}),t.jsx("img",{src:oo,alt:"Satisfação Garantida 100%",loading:"lazy",decoding:"async"}),t.jsx("img",{src:io,alt:"Compra 100% Segura",loading:"lazy",decoding:"async"})]})]})}),t.jsx("section",{className:"final-cta scroll-reveal",children:t.jsxs("div",{className:"container",children:[t.jsx("h2",{className:"final-cta-title",children:"⏰ Última Chamada: Garanta Seu Kit Antes que o Desconto Expire"}),t.jsxs("div",{className:"final-cta-card",children:[t.jsx("h3",{className:"final-cta-recap-title",children:"VOCÊ ESTÁ LEVANDO HOJE:"}),t.jsxs("ul",{className:"final-cta-recap",children:[t.jsxs("li",{children:["✅ ",t.jsx("strong",{children:"21 Livros Cristãos para Colorir"})," (700+ páginas)"]}),t.jsxs("li",{children:["✅ Acesso e impressão ",t.jsx("strong",{children:"ILIMITADOS"})," para sempre"]}),t.jsxs("li",{children:["✅ ",t.jsx("strong",{children:"BÔNUS:"})," Suporte via WhatsApp"]}),t.jsxs("li",{children:["✅ ",t.jsx("strong",{children:"Garantia Incondicional de 7 Dias"})]})]}),t.jsxs("div",{className:"final-cta-urgency",children:[t.jsx("p",{children:"🔥 Esta página pode sair do ar a qualquer momento"}),t.jsx(Zs,{}),t.jsx(Ws,{})]}),t.jsx("button",{className:"cta-button final-cta-button",onClick:()=>{je("cta_clicked",{id:"final_cta_scroll_to_offers"}),Ye("FinalCTAClick",{id:"scroll_to_offers"}),he()},children:"✝️ SIM! QUERO GARANTIR MEU KIT AGORA"}),t.jsx("div",{className:"cta-microcopy",children:"Acesso imediato • Risco ZERO"}),t.jsxs("p",{className:"final-cta-closing",children:["Você está a 1 clique de transformar o devocional da sua família.",t.jsx("br",{}),"Seus filhos merecem crescer amando a Palavra de Deus.",t.jsx("br",{}),t.jsx("strong",{children:"Não deixe para depois. 💚"})]})]})]})}),t.jsx(m.Suspense,{fallback:null,children:t.jsx(go,{})}),t.jsx(m.Suspense,{fallback:null,children:t.jsx(fo,{})}),t.jsx(m.Suspense,{fallback:null,children:t.jsx(ho,{})}),t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"container",children:[t.jsxs("div",{className:"business-info-card",children:[t.jsx("h3",{children:"Informações da Empresa"}),t.jsxs("div",{className:"business-info-grid",children:[t.jsxs("div",{className:"business-info-item",children:[t.jsx("span",{className:"business-info-label",children:"Nome Empresarial"}),t.jsx("span",{className:"business-info-value",children:"67.237.324 MATHEUS FELIPE DA SILVA"})]}),t.jsxs("div",{className:"business-info-item",children:[t.jsx("span",{className:"business-info-label",children:"CNPJ"}),t.jsx("span",{className:"business-info-value",children:"67.237.324/0001-19"})]}),t.jsxs("div",{className:"business-info-item",children:[t.jsx("span",{className:"business-info-label",children:"Telefone"}),t.jsx("span",{className:"business-info-value",children:"+55 32 9986-3771"})]}),t.jsxs("div",{className:"business-info-item business-info-address",children:[t.jsx("span",{className:"business-info-label",children:"Endereço"}),t.jsxs("span",{className:"business-info-value",children:["Rua Jair de Oliveira Pires, 195",t.jsx("br",{}),"Juiz de Fora, MG — 36087-590",t.jsx("br",{}),"Brasil"]})]})]})]}),t.jsxs("p",{children:["© ",U.getFullYear()," Livro de colorir cristão. Todos os direitos reservados."]}),t.jsxs("p",{className:"footer-links",children:[t.jsx(ve,{to:"/privacy-policy",children:"Política de Privacidade"})," · ",t.jsx(ve,{to:"/terms-of-service",children:"Termos de Uso"})," · ",t.jsx(ve,{to:"/contact",children:"Contato"})]})]})})]})};var F;(function(s){s.assertEqual=n=>{};function e(n){}s.assertIs=e;function a(n){throw new Error}s.assertNever=a,s.arrayToEnum=n=>{const o={};for(const i of n)o[i]=i;return o},s.getValidEnumValues=n=>{const o=s.objectKeys(n).filter(l=>typeof n[n[l]]!="number"),i={};for(const l of o)i[l]=n[l];return s.objectValues(i)},s.objectValues=n=>s.objectKeys(n).map(function(o){return n[o]}),s.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(i);return o},s.find=(n,o)=>{for(const i of n)if(o(i))return i},s.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function r(n,o=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}s.joinValues=r,s.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(F||(F={}));var ta;(function(s){s.mergeShapes=(e,a)=>({...e,...a})})(ta||(ta={}));const C=F.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Le=s=>{switch(typeof s){case"undefined":return C.undefined;case"string":return C.string;case"number":return Number.isNaN(s)?C.nan:C.number;case"boolean":return C.boolean;case"function":return C.function;case"bigint":return C.bigint;case"symbol":return C.symbol;case"object":return Array.isArray(s)?C.array:s===null?C.null:s.then&&typeof s.then=="function"&&s.catch&&typeof s.catch=="function"?C.promise:typeof Map!="undefined"&&s instanceof Map?C.map:typeof Set!="undefined"&&s instanceof Set?C.set:typeof Date!="undefined"&&s instanceof Date?C.date:C.object;default:return C.unknown}},x=F.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ee extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let l=r,c=0;for(;ca.message){const a={},r=[];for(const n of this.issues)if(n.path.length>0){const o=n.path[0];a[o]=a[o]||[],a[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}Ee.create=s=>new Ee(s);const is=(s,e)=>{let a;switch(s.code){case x.invalid_type:s.received===C.undefined?a="Required":a=`Expected ${s.expected}, received ${s.received}`;break;case x.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(s.expected,F.jsonStringifyReplacer)}`;break;case x.unrecognized_keys:a=`Unrecognized key(s) in object: ${F.joinValues(s.keys,", ")}`;break;case x.invalid_union:a="Invalid input";break;case x.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${F.joinValues(s.options)}`;break;case x.invalid_enum_value:a=`Invalid enum value. Expected ${F.joinValues(s.options)}, received '${s.received}'`;break;case x.invalid_arguments:a="Invalid function arguments";break;case x.invalid_return_type:a="Invalid function return type";break;case x.invalid_date:a="Invalid date";break;case x.invalid_string:typeof s.validation=="object"?"includes"in s.validation?(a=`Invalid input: must include "${s.validation.includes}"`,typeof s.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${s.validation.position}`)):"startsWith"in s.validation?a=`Invalid input: must start with "${s.validation.startsWith}"`:"endsWith"in s.validation?a=`Invalid input: must end with "${s.validation.endsWith}"`:F.assertNever(s.validation):s.validation!=="regex"?a=`Invalid ${s.validation}`:a="Invalid";break;case x.too_small:s.type==="array"?a=`Array must contain ${s.exact?"exactly":s.inclusive?"at least":"more than"} ${s.minimum} element(s)`:s.type==="string"?a=`String must contain ${s.exact?"exactly":s.inclusive?"at least":"over"} ${s.minimum} character(s)`:s.type==="number"?a=`Number must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${s.minimum}`:s.type==="bigint"?a=`Number must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${s.minimum}`:s.type==="date"?a=`Date must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(s.minimum))}`:a="Invalid input";break;case x.too_big:s.type==="array"?a=`Array must contain ${s.exact?"exactly":s.inclusive?"at most":"less than"} ${s.maximum} element(s)`:s.type==="string"?a=`String must contain ${s.exact?"exactly":s.inclusive?"at most":"under"} ${s.maximum} character(s)`:s.type==="number"?a=`Number must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="bigint"?a=`BigInt must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="date"?a=`Date must be ${s.exact?"exactly":s.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(s.maximum))}`:a="Invalid input";break;case x.custom:a="Invalid input";break;case x.invalid_intersection_types:a="Intersection results could not be merged";break;case x.not_multiple_of:a=`Number must be a multiple of ${s.multipleOf}`;break;case x.not_finite:a="Number must be finite";break;default:a=e.defaultError,F.assertNever(s)}return{message:a}};let bo=is;function yo(){return bo}const wo=s=>{const{data:e,path:a,errorMaps:r,issueData:n}=s,o=[...a,...n.path||[]],i={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(i,{data:e,defaultError:l}).message;return{...n,path:o,message:l}};function w(s,e){const a=yo(),r=wo({issueData:e,data:s.data,path:s.path,errorMaps:[s.common.contextualErrorMap,s.schemaErrorMap,a,a===is?void 0:is].filter(n=>!!n)});s.common.issues.push(r)}class de{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,a){const r=[];for(const n of a){if(n.status==="aborted")return O;n.status==="dirty"&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,a){const r=[];for(const n of a){const o=await n.key,i=await n.value;r.push({key:o,value:i})}return de.mergeObjectSync(e,r)}static mergeObjectSync(e,a){const r={};for(const n of a){const{key:o,value:i}=n;if(o.status==="aborted"||i.status==="aborted")return O;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value!="undefined"||n.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}}const O=Object.freeze({status:"aborted"}),mt=s=>({status:"dirty",value:s}),me=s=>({status:"valid",value:s}),sa=s=>s.status==="aborted",aa=s=>s.status==="dirty",Qe=s=>s.status==="valid",St=s=>typeof Promise!="undefined"&&s instanceof Promise;var S;(function(s){s.errToObj=e=>typeof e=="string"?{message:e}:e||{},s.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(S||(S={}));class De{constructor(e,a,r,n){this._cachedPath=[],this.parent=e,this.data=a,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ra=(s,e)=>{if(Qe(e))return{success:!0,data:e.value};if(!s.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const a=new Ee(s.common.issues);return this._error=a,this._error}}};function D(s){if(!s)return{};const{errorMap:e,invalid_type_error:a,required_error:r,description:n}=s;if(e&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,l)=>{var u,h;const{message:c}=s;return i.code==="invalid_enum_value"?{message:c!=null?c:l.defaultError}:typeof l.data=="undefined"?{message:(u=c!=null?c:r)!=null?u:l.defaultError}:i.code!=="invalid_type"?{message:l.defaultError}:{message:(h=c!=null?c:a)!=null?h:l.defaultError}},description:n}}class B{get description(){return this._def.description}_getType(e){return Le(e.data)}_getOrReturnCtx(e,a){return a||{common:e.parent.common,data:e.data,parsedType:Le(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new de,ctx:{common:e.parent.common,data:e.data,parsedType:Le(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const a=this._parse(e);if(St(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(e){const a=this._parse(e);return Promise.resolve(a)}parse(e,a){const r=this.safeParse(e,a);if(r.success)return r.data;throw r.error}safeParse(e,a){var o;const r={common:{issues:[],async:(o=a==null?void 0:a.async)!=null?o:!1,contextualErrorMap:a==null?void 0:a.errorMap},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Le(e)},n=this._parseSync({data:e,path:r.path,parent:r});return ra(r,n)}"~validate"(e){var r,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Le(e)};if(!this["~standard"].async)try{const o=this._parseSync({data:e,path:[],parent:a});return Qe(o)?{value:o.value}:{issues:a.common.issues}}catch(o){(n=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&n.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:a}).then(o=>Qe(o)?{value:o.value}:{issues:a.common.issues})}async parseAsync(e,a){const r=await this.safeParseAsync(e,a);if(r.success)return r.data;throw r.error}async safeParseAsync(e,a){const r={common:{issues:[],contextualErrorMap:a==null?void 0:a.errorMap,async:!0},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Le(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(St(n)?n:Promise.resolve(n));return ra(r,o)}refine(e,a){const r=n=>typeof a=="string"||typeof a=="undefined"?{message:a}:typeof a=="function"?a(n):a;return this._refinement((n,o)=>{const i=e(n),l=()=>o.addIssue({code:x.custom,...r(n)});return typeof Promise!="undefined"&&i instanceof Promise?i.then(c=>c?!0:(l(),!1)):i?!0:(l(),!1)})}refinement(e,a){return this._refinement((r,n)=>e(r)?!0:(n.addIssue(typeof a=="function"?a(r,n):a),!1))}_refinement(e){return new tt({schema:this,typeName:P.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return ze.create(this,this._def)}nullable(){return st.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _e.create(this)}promise(){return Rt.create(this,this._def)}or(e){return At.create([this,e],this._def)}and(e){return It.create(this,e,this._def)}transform(e){return new tt({...D(this._def),schema:this,typeName:P.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const a=typeof e=="function"?e:()=>e;return new ds({...D(this._def),innerType:this,defaultValue:a,typeName:P.ZodDefault})}brand(){return new Zo({typeName:P.ZodBranded,type:this,...D(this._def)})}catch(e){const a=typeof e=="function"?e:()=>e;return new us({...D(this._def),innerType:this,catchValue:a,typeName:P.ZodCatch})}describe(e){const a=this.constructor;return new a({...this._def,description:e})}pipe(e){return As.create(this,e)}readonly(){return ms.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const jo=/^c[^\s-]{8,}$/i,_o=/^[0-9a-z]+$/,No=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ko=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Co=/^[a-z0-9_-]{21}$/i,So=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Eo=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ao=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Io="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ht;const Ro=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,To=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Oo=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Po=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lo=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Mo=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ka="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zo=new RegExp(`^${Ka}$`);function Xa(s){let e="[0-5]\\d";s.precision?e=`${e}\\.\\d{${s.precision}}`:s.precision==null&&(e=`${e}(\\.\\d+)?`);const a=s.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${a}`}function Do(s){return new RegExp(`^${Xa(s)}$`)}function Bo(s){let e=`${Ka}T${Xa(s)}`;const a=[];return a.push(s.local?"Z?":"Z"),s.offset&&a.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${a.join("|")})`,new RegExp(`^${e}$`)}function Fo(s,e){return!!((e==="v4"||!e)&&Ro.test(s)||(e==="v6"||!e)&&Oo.test(s))}function Vo(s,e){if(!So.test(s))return!1;try{const[a]=s.split(".");if(!a)return!1;const r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),n=JSON.parse(atob(r));return!(typeof n!="object"||n===null||"typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||e&&n.alg!==e)}catch(a){return!1}}function $o(s,e){return!!((e==="v4"||!e)&&To.test(s)||(e==="v6"||!e)&&Po.test(s))}class Me extends B{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==C.string){const o=this._getOrReturnCtx(e);return w(o,{code:x.invalid_type,expected:C.string,received:o.parsedType}),O}const r=new de;let n;for(const o of this._def.checks)if(o.kind==="min")e.data.lengtho.value&&(n=this._getOrReturnCtx(e,n),w(n,{code:x.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,l=e.data.lengthe.test(n),{validation:a,code:x.invalid_string,...S.errToObj(r)})}_addCheck(e){return new Me({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var a,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(a=e==null?void 0:e.offset)!=null?a:!1,local:(r=e==null?void 0:e.local)!=null?r:!1,...S.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,...S.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,a){return this._addCheck({kind:"regex",regex:e,...S.errToObj(a)})}includes(e,a){return this._addCheck({kind:"includes",value:e,position:a==null?void 0:a.position,...S.errToObj(a==null?void 0:a.message)})}startsWith(e,a){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(a)})}endsWith(e,a){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(a)})}min(e,a){return this._addCheck({kind:"min",value:e,...S.errToObj(a)})}max(e,a){return this._addCheck({kind:"max",value:e,...S.errToObj(a)})}length(e,a){return this._addCheck({kind:"length",value:e,...S.errToObj(a)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new Me({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Me({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Me({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxLength(){let e=null;for(const a of this._def.checks)a.kind==="max"&&(e===null||a.value{var e;return new Me({checks:[],typeName:P.ZodString,coerce:(e=s==null?void 0:s.coerce)!=null?e:!1,...D(s)})};function Uo(s,e){const a=(s.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,n=a>r?a:r,o=Number.parseInt(s.toFixed(n).replace(".","")),i=Number.parseInt(e.toFixed(n).replace(".",""));return o%i/10**n}class pt extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==C.number){const o=this._getOrReturnCtx(e);return w(o,{code:x.invalid_type,expected:C.number,received:o.parsedType}),O}let r;const n=new de;for(const o of this._def.checks)o.kind==="int"?F.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),w(r,{code:x.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?e.datao.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),w(r,{code:x.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?Uo(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),w(r,{code:x.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),w(r,{code:x.not_finite,message:o.message}),n.dirty()):F.assertNever(o);return{status:n.value,value:e.data}}gte(e,a){return this.setLimit("min",e,!0,S.toString(a))}gt(e,a){return this.setLimit("min",e,!1,S.toString(a))}lte(e,a){return this.setLimit("max",e,!0,S.toString(a))}lt(e,a){return this.setLimit("max",e,!1,S.toString(a))}setLimit(e,a,r,n){return new pt({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new pt({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(a)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(const a of this._def.checks)a.kind==="max"&&(e===null||a.valuee.kind==="int"||e.kind==="multipleOf"&&F.isInteger(e.value))}get isFinite(){let e=null,a=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(e===null||r.valuenew pt({checks:[],typeName:P.ZodNumber,coerce:(s==null?void 0:s.coerce)||!1,...D(s)});class ft extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(o){return this._getInvalidInput(e)}if(this._getType(e)!==C.bigint)return this._getInvalidInput(e);let r;const n=new de;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.datao.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),w(r,{code:x.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),w(r,{code:x.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):F.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){const a=this._getOrReturnCtx(e);return w(a,{code:x.invalid_type,expected:C.bigint,received:a.parsedType}),O}gte(e,a){return this.setLimit("min",e,!0,S.toString(a))}gt(e,a){return this.setLimit("min",e,!1,S.toString(a))}lte(e,a){return this.setLimit("max",e,!0,S.toString(a))}lt(e,a){return this.setLimit("max",e,!1,S.toString(a))}setLimit(e,a,r,n){return new ft({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:r,message:S.toString(n)}]})}_addCheck(e){return new ft({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(a)})}get minValue(){let e=null;for(const a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(const a of this._def.checks)a.kind==="max"&&(e===null||a.value{var e;return new ft({checks:[],typeName:P.ZodBigInt,coerce:(e=s==null?void 0:s.coerce)!=null?e:!1,...D(s)})};class na extends B{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==C.boolean){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.boolean,received:r.parsedType}),O}return me(e.data)}}na.create=s=>new na({typeName:P.ZodBoolean,coerce:(s==null?void 0:s.coerce)||!1,...D(s)});class Et extends B{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==C.date){const o=this._getOrReturnCtx(e);return w(o,{code:x.invalid_type,expected:C.date,received:o.parsedType}),O}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return w(o,{code:x.invalid_date}),O}const r=new de;let n;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()o.value&&(n=this._getOrReturnCtx(e,n),w(n,{code:x.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):F.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Et({...this._def,checks:[...this._def.checks,e]})}min(e,a){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(a)})}max(e,a){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(a)})}get minDate(){let e=null;for(const a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew Et({checks:[],coerce:(s==null?void 0:s.coerce)||!1,typeName:P.ZodDate,...D(s)});class oa extends B{_parse(e){if(this._getType(e)!==C.symbol){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.symbol,received:r.parsedType}),O}return me(e.data)}}oa.create=s=>new oa({typeName:P.ZodSymbol,...D(s)});class ia extends B{_parse(e){if(this._getType(e)!==C.undefined){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.undefined,received:r.parsedType}),O}return me(e.data)}}ia.create=s=>new ia({typeName:P.ZodUndefined,...D(s)});class la extends B{_parse(e){if(this._getType(e)!==C.null){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.null,received:r.parsedType}),O}return me(e.data)}}la.create=s=>new la({typeName:P.ZodNull,...D(s)});class ca extends B{constructor(){super(...arguments),this._any=!0}_parse(e){return me(e.data)}}ca.create=s=>new ca({typeName:P.ZodAny,...D(s)});class da extends B{constructor(){super(...arguments),this._unknown=!0}_parse(e){return me(e.data)}}da.create=s=>new da({typeName:P.ZodUnknown,...D(s)});class Be extends B{_parse(e){const a=this._getOrReturnCtx(e);return w(a,{code:x.invalid_type,expected:C.never,received:a.parsedType}),O}}Be.create=s=>new Be({typeName:P.ZodNever,...D(s)});class ua extends B{_parse(e){if(this._getType(e)!==C.undefined){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.void,received:r.parsedType}),O}return me(e.data)}}ua.create=s=>new ua({typeName:P.ZodVoid,...D(s)});class _e extends B{_parse(e){const{ctx:a,status:r}=this._processInputParams(e),n=this._def;if(a.parsedType!==C.array)return w(a,{code:x.invalid_type,expected:C.array,received:a.parsedType}),O;if(n.exactLength!==null){const i=a.data.length>n.exactLength.value,l=a.data.lengthn.maxLength.value&&(w(a,{code:x.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((i,l)=>n.type._parseAsync(new De(a,i,a.path,l)))).then(i=>de.mergeArray(r,i));const o=[...a.data].map((i,l)=>n.type._parseSync(new De(a,i,a.path,l)));return de.mergeArray(r,o)}get element(){return this._def.type}min(e,a){return new _e({...this._def,minLength:{value:e,message:S.toString(a)}})}max(e,a){return new _e({...this._def,maxLength:{value:e,message:S.toString(a)}})}length(e,a){return new _e({...this._def,exactLength:{value:e,message:S.toString(a)}})}nonempty(e){return this.min(1,e)}}_e.create=(s,e)=>new _e({type:s,minLength:null,maxLength:null,exactLength:null,typeName:P.ZodArray,...D(e)});function He(s){if(s instanceof J){const e={};for(const a in s.shape){const r=s.shape[a];e[a]=ze.create(He(r))}return new J({...s._def,shape:()=>e})}else return s instanceof _e?new _e({...s._def,type:He(s.element)}):s instanceof ze?ze.create(He(s.unwrap())):s instanceof st?st.create(He(s.unwrap())):s instanceof Ue?Ue.create(s.items.map(e=>He(e))):s}class J extends B{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),a=F.objectKeys(e);return this._cached={shape:e,keys:a},this._cached}_parse(e){if(this._getType(e)!==C.object){const u=this._getOrReturnCtx(e);return w(u,{code:x.invalid_type,expected:C.object,received:u.parsedType}),O}const{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof Be&&this._def.unknownKeys==="strip"))for(const u in n.data)i.includes(u)||l.push(u);const c=[];for(const u of i){const h=o[u],f=n.data[u];c.push({key:{status:"valid",value:u},value:h._parse(new De(n,f,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof Be){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of l)c.push({key:{status:"valid",value:h},value:{status:"valid",value:n.data[h]}});else if(u==="strict")l.length>0&&(w(n,{code:x.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of l){const f=n.data[h];c.push({key:{status:"valid",value:h},value:u._parse(new De(n,f,n.path,h)),alwaysSet:h in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of c){const f=await h.key,p=await h.value;u.push({key:f,value:p,alwaysSet:h.alwaysSet})}return u}).then(u=>de.mergeObjectSync(r,u)):de.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new J({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(a,r)=>{var o,i,l,c;const n=(l=(i=(o=this._def).errorMap)==null?void 0:i.call(o,a,r).message)!=null?l:r.defaultError;return a.code==="unrecognized_keys"?{message:(c=S.errToObj(e).message)!=null?c:n}:{message:n}}}:{}})}strip(){return new J({...this._def,unknownKeys:"strip"})}passthrough(){return new J({...this._def,unknownKeys:"passthrough"})}extend(e){return new J({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new J({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:P.ZodObject})}setKey(e,a){return this.augment({[e]:a})}catchall(e){return new J({...this._def,catchall:e})}pick(e){const a={};for(const r of F.objectKeys(e))e[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new J({...this._def,shape:()=>a})}omit(e){const a={};for(const r of F.objectKeys(this.shape))e[r]||(a[r]=this.shape[r]);return new J({...this._def,shape:()=>a})}deepPartial(){return He(this)}partial(e){const a={};for(const r of F.objectKeys(this.shape)){const n=this.shape[r];e&&!e[r]?a[r]=n:a[r]=n.optional()}return new J({...this._def,shape:()=>a})}required(e){const a={};for(const r of F.objectKeys(this.shape))if(e&&!e[r])a[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof ze;)o=o._def.innerType;a[r]=o}return new J({...this._def,shape:()=>a})}keyof(){return Qa(F.objectKeys(this.shape))}}J.create=(s,e)=>new J({shape:()=>s,unknownKeys:"strip",catchall:Be.create(),typeName:P.ZodObject,...D(e)});J.strictCreate=(s,e)=>new J({shape:()=>s,unknownKeys:"strict",catchall:Be.create(),typeName:P.ZodObject,...D(e)});J.lazycreate=(s,e)=>new J({shape:s,unknownKeys:"strip",catchall:Be.create(),typeName:P.ZodObject,...D(e)});class At extends B{_parse(e){const{ctx:a}=this._processInputParams(e),r=this._def.options;function n(o){for(const l of o)if(l.result.status==="valid")return l.result;for(const l of o)if(l.result.status==="dirty")return a.common.issues.push(...l.ctx.common.issues),l.result;const i=o.map(l=>new Ee(l.ctx.common.issues));return w(a,{code:x.invalid_union,unionErrors:i}),O}if(a.common.async)return Promise.all(r.map(async o=>{const i={...a,common:{...a.common,issues:[]},parent:null};return{result:await o._parseAsync({data:a.data,path:a.path,parent:i}),ctx:i}})).then(n);{let o;const i=[];for(const c of r){const u={...a,common:{...a.common,issues:[]},parent:null},h=c._parseSync({data:a.data,path:a.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!o&&(o={result:h,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return a.common.issues.push(...o.ctx.common.issues),o.result;const l=i.map(c=>new Ee(c));return w(a,{code:x.invalid_union,unionErrors:l}),O}}get options(){return this._def.options}}At.create=(s,e)=>new At({options:s,typeName:P.ZodUnion,...D(e)});function ls(s,e){const a=Le(s),r=Le(e);if(s===e)return{valid:!0,data:s};if(a===C.object&&r===C.object){const n=F.objectKeys(e),o=F.objectKeys(s).filter(l=>n.indexOf(l)!==-1),i={...s,...e};for(const l of o){const c=ls(s[l],e[l]);if(!c.valid)return{valid:!1};i[l]=c.data}return{valid:!0,data:i}}else if(a===C.array&&r===C.array){if(s.length!==e.length)return{valid:!1};const n=[];for(let o=0;o{if(sa(o)||sa(i))return O;const l=ls(o.value,i.value);return l.valid?((aa(o)||aa(i))&&a.dirty(),{status:a.value,value:l.data}):(w(r,{code:x.invalid_intersection_types}),O)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>n(o,i)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}It.create=(s,e,a)=>new It({left:s,right:e,typeName:P.ZodIntersection,...D(a)});class Ue extends B{_parse(e){const{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==C.array)return w(r,{code:x.invalid_type,expected:C.array,received:r.parsedType}),O;if(r.data.lengththis._def.items.length&&(w(r,{code:x.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());const o=[...r.data].map((i,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new De(r,i,r.path,l)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>de.mergeArray(a,i)):de.mergeArray(a,o)}get items(){return this._def.items}rest(e){return new Ue({...this._def,rest:e})}}Ue.create=(s,e)=>{if(!Array.isArray(s))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ue({items:s,typeName:P.ZodTuple,rest:null,...D(e)})};class ma extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==C.map)return w(r,{code:x.invalid_type,expected:C.map,received:r.parsedType}),O;const n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([l,c],u)=>({key:n._parse(new De(r,l,r.path,[u,"key"])),value:o._parse(new De(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of i){const u=await c.key,h=await c.value;if(u.status==="aborted"||h.status==="aborted")return O;(u.status==="dirty"||h.status==="dirty")&&a.dirty(),l.set(u.value,h.value)}return{status:a.value,value:l}})}else{const l=new Map;for(const c of i){const u=c.key,h=c.value;if(u.status==="aborted"||h.status==="aborted")return O;(u.status==="dirty"||h.status==="dirty")&&a.dirty(),l.set(u.value,h.value)}return{status:a.value,value:l}}}}ma.create=(s,e,a)=>new ma({valueType:e,keyType:s,typeName:P.ZodMap,...D(a)});class gt extends B{_parse(e){const{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==C.set)return w(r,{code:x.invalid_type,expected:C.set,received:r.parsedType}),O;const n=this._def;n.minSize!==null&&r.data.sizen.maxSize.value&&(w(r,{code:x.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),a.dirty());const o=this._def.valueType;function i(c){const u=new Set;for(const h of c){if(h.status==="aborted")return O;h.status==="dirty"&&a.dirty(),u.add(h.value)}return{status:a.value,value:u}}const l=[...r.data.values()].map((c,u)=>o._parse(new De(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>i(c)):i(l)}min(e,a){return new gt({...this._def,minSize:{value:e,message:S.toString(a)}})}max(e,a){return new gt({...this._def,maxSize:{value:e,message:S.toString(a)}})}size(e,a){return this.min(e,a).max(e,a)}nonempty(e){return this.min(1,e)}}gt.create=(s,e)=>new gt({valueType:s,minSize:null,maxSize:null,typeName:P.ZodSet,...D(e)});class ha extends B{get schema(){return this._def.getter()}_parse(e){const{ctx:a}=this._processInputParams(e);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}}ha.create=(s,e)=>new ha({getter:s,typeName:P.ZodLazy,...D(e)});class cs extends B{_parse(e){if(e.data!==this._def.value){const a=this._getOrReturnCtx(e);return w(a,{received:a.data,code:x.invalid_literal,expected:this._def.value}),O}return{status:"valid",value:e.data}}get value(){return this._def.value}}cs.create=(s,e)=>new cs({value:s,typeName:P.ZodLiteral,...D(e)});function Qa(s,e){return new et({values:s,typeName:P.ZodEnum,...D(e)})}class et extends B{_parse(e){if(typeof e.data!="string"){const a=this._getOrReturnCtx(e),r=this._def.values;return w(a,{expected:F.joinValues(r),received:a.parsedType,code:x.invalid_type}),O}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const a=this._getOrReturnCtx(e),r=this._def.values;return w(a,{received:a.data,code:x.invalid_enum_value,options:r}),O}return me(e.data)}get options(){return this._def.values}get enum(){const e={};for(const a of this._def.values)e[a]=a;return e}get Values(){const e={};for(const a of this._def.values)e[a]=a;return e}get Enum(){const e={};for(const a of this._def.values)e[a]=a;return e}extract(e,a=this._def){return et.create(e,{...this._def,...a})}exclude(e,a=this._def){return et.create(this.options.filter(r=>!e.includes(r)),{...this._def,...a})}}et.create=Qa;class pa extends B{_parse(e){const a=F.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==C.string&&r.parsedType!==C.number){const n=F.objectValues(a);return w(r,{expected:F.joinValues(n),received:r.parsedType,code:x.invalid_type}),O}if(this._cache||(this._cache=new Set(F.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const n=F.objectValues(a);return w(r,{received:r.data,code:x.invalid_enum_value,options:n}),O}return me(e.data)}get enum(){return this._def.values}}pa.create=(s,e)=>new pa({values:s,typeName:P.ZodNativeEnum,...D(e)});class Rt extends B{unwrap(){return this._def.type}_parse(e){const{ctx:a}=this._processInputParams(e);if(a.parsedType!==C.promise&&a.common.async===!1)return w(a,{code:x.invalid_type,expected:C.promise,received:a.parsedType}),O;const r=a.parsedType===C.promise?a.data:Promise.resolve(a.data);return me(r.then(n=>this._def.type.parseAsync(n,{path:a.path,errorMap:a.common.contextualErrorMap})))}}Rt.create=(s,e)=>new Rt({type:s,typeName:P.ZodPromise,...D(e)});class tt extends B{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===P.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:a,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:i=>{w(r,i),i.fatal?a.abort():a.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){const i=n.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async l=>{if(a.value==="aborted")return O;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?O:c.status==="dirty"||a.value==="dirty"?mt(c.value):c});{if(a.value==="aborted")return O;const l=this._def.schema._parseSync({data:i,path:r.path,parent:r});return l.status==="aborted"?O:l.status==="dirty"||a.value==="dirty"?mt(l.value):l}}if(n.type==="refinement"){const i=l=>{const c=n.refinement(l,o);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?O:(l.status==="dirty"&&a.dirty(),i(l.value),{status:a.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?O:(l.status==="dirty"&&a.dirty(),i(l.value).then(()=>({status:a.value,value:l.value}))))}if(n.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Qe(i))return O;const l=n.transform(i.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Qe(i)?Promise.resolve(n.transform(i.value,o)).then(l=>({status:a.value,value:l})):O);F.assertNever(n)}}tt.create=(s,e,a)=>new tt({schema:s,typeName:P.ZodEffects,effect:e,...D(a)});tt.createWithPreprocess=(s,e,a)=>new tt({schema:e,effect:{type:"preprocess",transform:s},typeName:P.ZodEffects,...D(a)});class ze extends B{_parse(e){return this._getType(e)===C.undefined?me(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ze.create=(s,e)=>new ze({innerType:s,typeName:P.ZodOptional,...D(e)});class st extends B{_parse(e){return this._getType(e)===C.null?me(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}st.create=(s,e)=>new st({innerType:s,typeName:P.ZodNullable,...D(e)});class ds extends B{_parse(e){const{ctx:a}=this._processInputParams(e);let r=a.data;return a.parsedType===C.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}}ds.create=(s,e)=>new ds({innerType:s,typeName:P.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...D(e)});class us extends B{_parse(e){const{ctx:a}=this._processInputParams(e),r={...a,common:{...a.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return St(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ee(r.common.issues)},input:r.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ee(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}us.create=(s,e)=>new us({innerType:s,typeName:P.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...D(e)});class fa extends B{_parse(e){if(this._getType(e)!==C.nan){const r=this._getOrReturnCtx(e);return w(r,{code:x.invalid_type,expected:C.nan,received:r.parsedType}),O}return{status:"valid",value:e.data}}}fa.create=s=>new fa({typeName:P.ZodNaN,...D(s)});class Zo extends B{_parse(e){const{ctx:a}=this._processInputParams(e),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}}class As extends B{_parse(e){const{status:a,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?O:o.status==="dirty"?(a.dirty(),mt(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?O:n.status==="dirty"?(a.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,a){return new As({in:e,out:a,typeName:P.ZodPipeline})}}class ms extends B{_parse(e){const a=this._def.innerType._parse(e),r=n=>(Qe(n)&&(n.value=Object.freeze(n.value)),n);return St(a)?a.then(n=>r(n)):r(a)}unwrap(){return this._def.innerType}}ms.create=(s,e)=>new ms({innerType:s,typeName:P.ZodReadonly,...D(e)});J.lazycreate;var P;(function(s){s.ZodString="ZodString",s.ZodNumber="ZodNumber",s.ZodNaN="ZodNaN",s.ZodBigInt="ZodBigInt",s.ZodBoolean="ZodBoolean",s.ZodDate="ZodDate",s.ZodSymbol="ZodSymbol",s.ZodUndefined="ZodUndefined",s.ZodNull="ZodNull",s.ZodAny="ZodAny",s.ZodUnknown="ZodUnknown",s.ZodNever="ZodNever",s.ZodVoid="ZodVoid",s.ZodArray="ZodArray",s.ZodObject="ZodObject",s.ZodUnion="ZodUnion",s.ZodDiscriminatedUnion="ZodDiscriminatedUnion",s.ZodIntersection="ZodIntersection",s.ZodTuple="ZodTuple",s.ZodRecord="ZodRecord",s.ZodMap="ZodMap",s.ZodSet="ZodSet",s.ZodFunction="ZodFunction",s.ZodLazy="ZodLazy",s.ZodLiteral="ZodLiteral",s.ZodEnum="ZodEnum",s.ZodEffects="ZodEffects",s.ZodNativeEnum="ZodNativeEnum",s.ZodOptional="ZodOptional",s.ZodNullable="ZodNullable",s.ZodDefault="ZodDefault",s.ZodCatch="ZodCatch",s.ZodPromise="ZodPromise",s.ZodBranded="ZodBranded",s.ZodPipeline="ZodPipeline",s.ZodReadonly="ZodReadonly"})(P||(P={}));const Je=Me.create;Be.create;_e.create;const er=J.create;J.strictCreate;At.create;It.create;Ue.create;const ga=cs.create;et.create;Rt.create;ze.create;st.create;function tr(s){var e,a,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var n=s.length;for(e=0;etypeof s=="boolean"?`${s}`:s===0?"0":s,va=sr,Bt=(s,e)=>a=>{var r;if((e==null?void 0:e.variants)==null)return va(s,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:n,defaultVariants:o}=e,i=Object.keys(n).map(u=>{const h=a==null?void 0:a[u],f=o==null?void 0:o[u];if(h===null)return null;const p=xa(h)||xa(f);return n[u][p]}),l=a&&Object.entries(a).reduce((u,h)=>{let[f,p]=h;return p===void 0||(u[f]=p),u},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,h)=>{let{class:f,className:p,...d}=h;return Object.entries(d).every(R=>{let[_,y]=R;return Array.isArray(y)?y.includes({...o,...l}[_]):{...o,...l}[_]===y})?[...u,f,p]:u},[]);return va(s,i,c,a==null?void 0:a.class,a==null?void 0:a.className)},Is="-",qo=s=>{const e=Wo(s),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=s;return{getClassGroupId:i=>{const l=i.split(Is);return l[0]===""&&l.length!==1&&l.shift(),ar(l,e)||Go(i)},getConflictingClassGroupIds:(i,l)=>{const c=a[i]||[];return l&&r[i]?[...c,...r[i]]:c}}},ar=(s,e)=>{var i;if(s.length===0)return e.classGroupId;const a=s[0],r=e.nextPart.get(a),n=r?ar(s.slice(1),r):void 0;if(n)return n;if(e.validators.length===0)return;const o=s.join(Is);return(i=e.validators.find(({validator:l})=>l(o)))==null?void 0:i.classGroupId},ba=/^\[(.+)\]$/,Go=s=>{if(ba.test(s)){const e=ba.exec(s)[1],a=e==null?void 0:e.substring(0,e.indexOf(":"));if(a)return"arbitrary.."+a}},Wo=s=>{const{theme:e,prefix:a}=s,r={nextPart:new Map,validators:[]};return Jo(Object.entries(s.classGroups),a).forEach(([o,i])=>{hs(i,r,o,e)}),r},hs=(s,e,a,r)=>{s.forEach(n=>{if(typeof n=="string"){const o=n===""?e:ya(e,n);o.classGroupId=a;return}if(typeof n=="function"){if(Ho(n)){hs(n(r),e,a,r);return}e.validators.push({validator:n,classGroupId:a});return}Object.entries(n).forEach(([o,i])=>{hs(i,ya(e,o),a,r)})})},ya=(s,e)=>{let a=s;return e.split(Is).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Ho=s=>s.isThemeGetter,Jo=(s,e)=>e?s.map(([a,r])=>{const n=r.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[e+i,l])):o);return[a,n]}):s,Yo=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,a=new Map,r=new Map;const n=(o,i)=>{a.set(o,i),e++,e>s&&(e=0,r=a,a=new Map)};return{get(o){let i=a.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return n(o,i),i},set(o,i){a.has(o)?a.set(o,i):n(o,i)}}},rr="!",Ko=s=>{const{separator:e,experimentalParseClassName:a}=s,r=e.length===1,n=e[0],o=e.length,i=l=>{const c=[];let u=0,h=0,f;for(let y=0;yh?f-h:void 0;return{modifiers:c,hasImportantModifier:d,baseClassName:R,maybePostfixModifierPosition:_}};return a?l=>a({className:l,parseClassName:i}):i},Xo=s=>{if(s.length<=1)return s;const e=[];let a=[];return s.forEach(r=>{r[0]==="["?(e.push(...a.sort(),r),a=[]):a.push(r)}),e.push(...a.sort()),e},Qo=s=>({cache:Yo(s.cacheSize),parseClassName:Ko(s),...qo(s)}),ei=/\s+/,ti=(s,e)=>{const{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:n}=e,o=[],i=s.trim().split(ei);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:h,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:d}=a(u);let R=!!d,_=r(R?p.substring(0,d):p);if(!_){if(!R){l=u+(l.length>0?" "+l:l);continue}if(_=r(p),!_){l=u+(l.length>0?" "+l:l);continue}R=!1}const y=Xo(h).join(":"),v=f?y+rr:y,g=v+_;if(o.includes(g))continue;o.push(g);const k=n(_,R);for(let T=0;T0?" "+l:l)}return l};function si(){let s=0,e,a,r="";for(;s{if(typeof s=="string")return s;let e,a="";for(let r=0;rf(h),s());return a=Qo(u),r=a.cache.get,n=a.cache.set,o=l,l(c)}function l(c){const u=r(c);if(u)return u;const h=ti(c,a);return n(c,h),h}return function(){return o(si.apply(null,arguments))}}const q=s=>{const e=a=>a[s]||[];return e.isThemeGetter=!0,e},or=/^\[(?:([a-z-]+):)?(.+)\]$/i,ri=/^\d+\/\d+$/,ni=new Set(["px","full","screen"]),oi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ii=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,li=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ci=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,di=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ke=s=>Ke(s)||ni.has(s)||ri.test(s),Oe=s=>rt(s,"length",vi),Ke=s=>!!s&&!Number.isNaN(Number(s)),Jt=s=>rt(s,"number",Ke),ct=s=>!!s&&Number.isInteger(Number(s)),ui=s=>s.endsWith("%")&&Ke(s.slice(0,-1)),M=s=>or.test(s),Pe=s=>oi.test(s),mi=new Set(["length","size","percentage"]),hi=s=>rt(s,mi,ir),pi=s=>rt(s,"position",ir),fi=new Set(["image","url"]),gi=s=>rt(s,fi,yi),xi=s=>rt(s,"",bi),dt=()=>!0,rt=(s,e,a)=>{const r=or.exec(s);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):a(r[2]):!1},vi=s=>ii.test(s)&&!li.test(s),ir=()=>!1,bi=s=>ci.test(s),yi=s=>di.test(s),wi=()=>{const s=q("colors"),e=q("spacing"),a=q("blur"),r=q("brightness"),n=q("borderColor"),o=q("borderRadius"),i=q("borderSpacing"),l=q("borderWidth"),c=q("contrast"),u=q("grayscale"),h=q("hueRotate"),f=q("invert"),p=q("gap"),d=q("gradientColorStops"),R=q("gradientColorStopPositions"),_=q("inset"),y=q("margin"),v=q("opacity"),g=q("padding"),k=q("saturate"),T=q("scale"),U=q("sepia"),ee=q("skew"),he=q("space"),Ne=q("translate"),j=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",M,e],N=()=>[M,e],K=()=>["",ke,Oe],X=()=>["auto",Ke,M],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",M],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Ke,M];return{cacheSize:500,separator:":",theme:{colors:[dt],spacing:[ke,Oe],blur:["none","",Pe,M],brightness:ce(),borderColor:[s],borderRadius:["none","","full",Pe,M],borderSpacing:N(),borderWidth:K(),contrast:ce(),grayscale:z(),hueRotate:ce(),invert:z(),gap:N(),gradientColorStops:[s],gradientColorStopPositions:[ui,Oe],inset:A(),margin:A(),opacity:ce(),padding:N(),saturate:ce(),scale:ce(),sepia:z(),skew:ce(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Pe]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...be(),M]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ct,M]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",ct,M]}],"grid-cols":[{"grid-cols":[dt]}],"col-start-end":[{col:["auto",{span:["full",ct,M]},M]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[dt]}],"row-start-end":[{row:["auto",{span:[ct,M]},M]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[he]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,e]}],"min-w":[{"min-w":[M,e,"min","max","fit"]}],"max-w":[{"max-w":[M,e,"none","full","min","max","fit","prose",{screen:[Pe]},Pe]}],h:[{h:[M,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Pe,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jt]}],"font-family":[{font:[dt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Ke,Jt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ke,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[s]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[s]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ke,Oe]}],"underline-offset":[{"underline-offset":["auto",ke,M]}],"text-decoration-color":[{decoration:[s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),pi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gi]}],"bg-color":[{bg:[s]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[ke,M]}],"outline-w":[{outline:[ke,Oe]}],"outline-color":[{outline:[s]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[s]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ke,Oe]}],"ring-offset-color":[{"ring-offset":[s]}],shadow:[{shadow:["","inner","none",Pe,xi]}],"shadow-color":[{shadow:[dt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Pe,M]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[k]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[ct,M]}],"translate-x":[{"translate-x":[Ne]}],"translate-y":[{"translate-y":[Ne]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",s]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[s]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[s,"none"]}],"stroke-w":[{stroke:[ke,Oe,Jt]}],stroke:[{stroke:[s,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ji=ai(wi);function I(...s){return ji(sr(s))}const _i=Bt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Q=m.forwardRef(({className:s,variant:e,size:a,asChild:r=!1,...n},o)=>{const i=r?at:"button";return t.jsx(i,{className:I(_i({variant:e,size:a,className:s})),ref:o,...n})});Q.displayName="Button";const Se=m.forwardRef(({className:s,type:e,...a},r)=>t.jsx("input",{type:e,className:I("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:r,...a}));Se.displayName="Input";const Ni=Bt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$e=m.forwardRef(({className:s,...e},a)=>t.jsx(Aa,{ref:a,className:I(Ni(),s),...e}));$e.displayName=Aa.displayName;const Rs=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,className:I("rounded-lg border bg-card text-card-foreground shadow-sm",s),...e}));Rs.displayName="Card";const ki=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,className:I("flex flex-col space-y-1.5 p-6",s),...e}));ki.displayName="CardHeader";const Ci=m.forwardRef(({className:s,...e},a)=>t.jsx("h3",{ref:a,className:I("text-2xl font-semibold leading-none tracking-tight",s),...e}));Ci.displayName="CardTitle";const Si=m.forwardRef(({className:s,...e},a)=>t.jsx("p",{ref:a,className:I("text-sm text-muted-foreground",s),...e}));Si.displayName="CardDescription";const Ei=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,className:I("p-6 pt-0",s),...e}));Ei.displayName="CardContent";const Ai=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,className:I("flex items-center p-6 pt-0",s),...e}));Ai.displayName="CardFooter";const wa=(s=8)=>{const e="abcdefghijkmnpqrstuvwxyz",a="23456789",r=e+a,n=i=>i[Math.floor(Math.random()*i.length)],o=[n(e),n(e),n(a),n(a)];for(let i=o.length;i0;i--){const l=Math.floor(Math.random()*(i+1));[o[i],o[l]]=[o[l],o[i]]}return o.join("")},Ii="/assets/logo-livro-colorir-cristao-BbKJx0fU.webp",wt={"Password is known to be weak and easy to guess, please choose a different one.":"A senha é conhecida por ser fraca e fácil de adivinhar, por favor, escolha uma diferente.","Password is known to be weak and easy to guess, please choose a different one":"A senha é conhecida por ser fraca e fácil de adivinhar, por favor, escolha uma diferente.","Invalid login credentials":"Email ou senha incorretos.","Email not confirmed":"Email ainda não confirmado. Verifique sua caixa de entrada.","User already registered":"Este email já está cadastrado. Faça login.","Password should be at least 6 characters":"A senha deve ter ao menos 6 caracteres.","Password should be at least 8 characters":"A senha deve ter ao menos 8 caracteres.","Signup requires a valid password":"É necessária uma senha válida para cadastrar.","Unable to validate email address: invalid format":"Formato de email inválido.","Email rate limit exceeded":"Muitas tentativas. Aguarde alguns minutos e tente novamente."},Ri=s=>{if(!s)return"Erro inesperado";if(wt[s])return wt[s];const e=s.trim().replace(/\.$/,"");return wt[e]?wt[e]:/weak and easy to guess/i.test(s)?"A senha é conhecida por ser fraca e fácil de adivinhar, por favor, escolha uma diferente.":s},Ti=/^[A-Za-z0-9.\-]{1,20}$/,Oi=er({display_name:Je().trim().min(2,"Nome muito curto").max(80),email:Je().trim().email("Email inválido").max(200).optional().or(ga("")),phone:Je().trim().min(8,"Telefone inválido").max(30).optional().or(ga("")),password:Je().regex(Ti,"A senha deve ter no máximo 20 caracteres: letras, números, ponto (.) ou hífen (-)")}).refine(s=>!!(s.email&&s.email.length>0)||!!(s.phone&&s.phone.length>0),{message:"Informe ao menos o email ou o telefone",path:["email"]}),Pi=er({email:Je().trim().email("Email inválido"),password:Je().min(1,"Informe a senha")}),Li=()=>{var y;const s=Ns(),a=((y=Tt().state)==null?void 0:y.from)||"/painel",[r,n]=m.useState("login"),[o,i]=m.useState(!1),[l,c]=m.useState(null),[u,h]=m.useState({display_name:"",email:"",phone:"",password:""}),[f,p]=m.useState(null);m.useEffect(()=>{Y.auth.getSession().then(({data:g})=>{g.session&&s(a,{replace:!0})});const v=g=>{var T;const k=(T=g.detail)==null?void 0:T.reason;s("/auth/blocked",{replace:!0,state:{reason:k}})};return window.addEventListener("device-blocked",v),()=>window.removeEventListener("device-blocked",v)},[s,a]);const d=v=>g=>h(k=>({...k,[v]:g.target.value})),R=()=>{Fa(!0).then(async v=>{v.status!=="allowed"&&(await Y.auth.signOut(),s("/auth/blocked",{replace:!0,state:{reason:v.reason}}))}).catch(()=>{})},_=async v=>{v.preventDefault(),Ce("auth:login_click"),c(null),i(!0);try{if(r==="signup"){const g=Oi.safeParse(u);if(!g.success)throw new Error(g.error.issues[0].message);const k=(g.data.phone||"").replace(/\D/g,""),T=g.data.email&&g.data.email.length>0?g.data.email:`tel${k}@telefone.livrocolorircristao.com`,{error:U}=await Y.auth.signUp({email:T,password:g.data.password,options:{emailRedirectTo:`${window.location.origin}${a}`,data:{display_name:g.data.display_name,phone:g.data.phone||null}}});if(U)throw U;Ce("auth:supabase_signup_done"),ht("auth:signup_request","auth:login_click","auth:supabase_signup_done"),s(a,{replace:!0}),R()}else{const g=Pi.safeParse(u);if(!g.success)throw new Error(g.error.issues[0].message);const{error:k}=await Y.auth.signInWithPassword({email:g.data.email,password:g.data.password});if(k)throw k;Ce("auth:supabase_signin_done"),ht("auth:signin_request","auth:login_click","auth:supabase_signin_done"),s(a,{replace:!0}),R()}}catch(g){c(Ri(g instanceof Error?g.message:"Erro inesperado"))}finally{i(!1)}};return t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100 p-4",children:t.jsxs(Rs,{className:"w-full max-w-md p-6 sm:p-8 shadow-2xl",children:[t.jsx(ve,{to:"/",className:"block text-center text-sm text-muted-foreground mb-2 hover:underline",children:"← Voltar à página inicial"}),t.jsx("h1",{className:"flex justify-center mb-1",children:t.jsx("img",{src:Ii,alt:"Livro Colorir Cristão",className:"h-20 sm:h-24 w-auto object-contain",loading:"eager",decoding:"async"})}),t.jsx("p",{className:"text-sm text-muted-foreground text-center mb-6",children:r==="login"?"Acesse seu painel":"Crie sua conta"}),t.jsxs("form",{onSubmit:_,className:"space-y-3",children:[r==="signup"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{children:[t.jsx($e,{htmlFor:"display_name",children:"Seu nome"}),t.jsx(Se,{id:"display_name",value:u.display_name,onChange:d("display_name"),required:!0,maxLength:80,autoComplete:"name"})]}),t.jsxs("div",{children:[t.jsxs($e,{htmlFor:"phone",children:["Telefone ",r==="signup"&&t.jsx("span",{className:"text-xs text-muted-foreground",children:"(obrigatório se não informar email)"})]}),t.jsx(Se,{id:"phone",type:"tel",inputMode:"tel",value:u.phone,onChange:d("phone"),placeholder:"+55 11 99999-9999",maxLength:30,autoComplete:"tel"})]})]}),t.jsxs("div",{children:[t.jsxs($e,{htmlFor:"email",children:["Email ",r==="signup"&&t.jsx("span",{className:"text-xs text-muted-foreground",children:"(obrigatório se não informar telefone)"})]}),t.jsx(Se,{id:"email",type:"email",inputMode:"email",value:u.email,onChange:d("email"),required:r==="login",autoComplete:"email"})]}),t.jsxs("div",{children:[t.jsxs($e,{htmlFor:"password",children:["Senha"," ",r==="signup"&&t.jsx("span",{className:"text-xs text-muted-foreground",children:"(até 20 caracteres: letras, números, . ou -)"})]}),t.jsx(Se,{id:"password",type:r==="signup"?"text":"password",value:u.password,onChange:v=>{const g=r==="signup"?v.target.value.replace(/[^A-Za-z0-9.\-]/g,"").slice(0,20):v.target.value;h(k=>({...k,password:g}))},onBeforeInput:v=>{if(r!=="signup")return;const g=v.data;g&&/[^A-Za-z0-9.\-]/.test(g)&&(v.preventDefault(),p("Apenas letras, números, ponto (.) ou hífen (-)."),setTimeout(()=>p(null),2e3))},onKeyDown:v=>{r==="signup"&&(v.key.length>1||v.ctrlKey||v.metaKey||/^[A-Za-z0-9.\-]$/.test(v.key)||(v.preventDefault(),p("Apenas letras, números, ponto (.) ou hífen (-)."),setTimeout(()=>p(null),2e3)))},onPaste:v=>{var T;if(r!=="signup")return;v.preventDefault();const g=(T=v.clipboardData.getData("text"))!=null?T:"",k=g.replace(/[^A-Za-z0-9.\-]/g,"").slice(0,20);h(U=>({...U,password:k})),k!==g.trim()&&(p("Texto colado ajustado: removidos caracteres inválidos e limitado a 20."),setTimeout(()=>p(null),2500))},required:!0,maxLength:r==="signup"?20:void 0,minLength:1,placeholder:r==="signup"?"ex: Ab12-cd.34":"",inputMode:r==="signup"?"text":void 0,autoCapitalize:r==="signup"?"none":void 0,autoCorrect:r==="signup"?"off":void 0,spellCheck:r==="signup"?!1:void 0,autoComplete:r==="signup"?"new-password":"current-password","aria-invalid":r==="signup"&&u.password.length>0&&!/^[A-Za-z0-9.\-]{1,20}$/.test(u.password)}),r==="signup"&&t.jsxs(t.Fragment,{children:[f&&t.jsx("p",{className:"mt-1 text-xs text-amber-600",role:"status",children:f}),t.jsxs("ul",{className:"mt-2 space-y-1 text-xs",children:[t.jsxs("li",{className:u.password.length>=1&&u.password.length<=20?"text-emerald-600":"text-muted-foreground",children:[u.password.length>=1&&u.password.length<=20?"✓":"•"," Até 20 caracteres (",u.password.length,"/20)"]}),t.jsxs("li",{className:u.password.length>0&&/^[A-Za-z0-9.\-]*$/.test(u.password)?"text-emerald-600":"text-muted-foreground",children:[u.password.length>0&&/^[A-Za-z0-9.\-]*$/.test(u.password)?"✓":"•"," Letras, números, ponto (.) ou hífen (-)"]})]}),t.jsxs("div",{className:"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-2",children:[t.jsx("button",{type:"button",onClick:async()=>{var g;const v=wa(8);h(k=>({...k,password:v}));try{await((g=navigator.clipboard)==null?void 0:g.writeText(v)),p("Senha sugerida e copiada!")}catch(k){p("Senha sugerida (não foi possível copiar).")}setTimeout(()=>p(null),2e3)},className:"w-full h-10 rounded-md border border-primary/30 bg-primary/5 text-primary text-xs font-medium hover:bg-primary/10 active:bg-primary/15 transition-colors",children:"Sugerir senha"}),t.jsx("button",{type:"button",onClick:async()=>{var g;const v=wa(8);h(k=>({...k,password:v}));try{await((g=navigator.clipboard)==null?void 0:g.writeText(v)),p("Nova senha gerada e copiada!")}catch(k){p("Nova senha gerada (não foi possível copiar).")}setTimeout(()=>p(null),2e3)},className:"w-full h-10 rounded-md border border-border bg-muted/40 text-foreground text-xs font-medium hover:bg-muted/70 active:bg-muted transition-colors",children:"↻ Gerar nova"})]})]})]}),l&&t.jsx("p",{className:"text-sm text-destructive",children:l}),t.jsx(Q,{type:"submit",className:"w-full h-11",disabled:o,children:o?"Carregando...":r==="login"?"Entrar":"Criar conta"})]})]})})},Mi=()=>{var n,o;const s=Tt(),e=Ns(),a=(o=(n=s.state)==null?void 0:n.reason)!=null?o:"basic_plan_other_device",r=$s[a]||$s.basic_plan_other_device;return t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100 p-4",children:t.jsxs(Rs,{className:"w-full max-w-md p-6 sm:p-8 shadow-2xl text-center",children:[t.jsx("div",{className:"mx-auto w-14 h-14 rounded-full bg-destructive/10 flex items-center justify-center mb-4",children:t.jsx(qr,{className:"h-7 w-7 text-destructive"})}),t.jsx("h1",{className:"text-xl sm:text-2xl font-extrabold mb-2",children:"Acesso bloqueado neste dispositivo"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:r}),t.jsxs("div",{className:"bg-gradient-to-br from-amber-50 to-amber-100 border border-amber-200 rounded-xl p-4 mb-4 text-left",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx(kt,{className:"h-5 w-5 text-amber-600"}),t.jsx("strong",{className:"text-amber-900",children:"Pacote Premium"})]}),t.jsxs("ul",{className:"text-sm text-amber-900/90 space-y-1 list-disc pl-5",children:[t.jsxs("li",{children:["Acesso em ",t.jsx("strong",{children:"todos os dispositivos"})," (celular, tablet, computador)"]}),t.jsx("li",{children:"Conteúdos exclusivos e atualizações vitalícias"}),t.jsx("li",{children:"Pagamento único — sem mensalidades"})]})]}),t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(Q,{asChild:!0,className:"w-full h-11",children:t.jsxs(ve,{to:"/#limited-offer",children:[t.jsx(kt,{className:"h-4 w-4 mr-1"}),"Quero virar Premium"]})}),t.jsxs(Q,{variant:"outline",className:"w-full h-11",onClick:()=>e("/auth"),children:[t.jsx(Gr,{className:"h-4 w-4 mr-1"}),"Voltar ao login"]})]}),t.jsxs("p",{className:"text-xs text-muted-foreground mt-4",children:["Se este é o seu dispositivo principal e quer trocar, peça ao titular para revogar o acesso anterior em ",t.jsx("strong",{children:"Painel → Dispositivos"}),"."]}),t.jsxs("div",{className:"mt-5 rounded-xl border border-emerald-200 bg-emerald-50/70 p-4 text-center",children:[t.jsx("p",{className:"text-sm text-emerald-900 mb-3",children:"Acredita que houve um erro? Fale conosco através do botão abaixo"}),t.jsx(Q,{asChild:!0,className:"w-full h-11 bg-[#25D366] hover:bg-[#1ebe57] text-white font-semibold shadow-md",children:t.jsxs("a",{href:"https://wa.me/5521979668441?text=Ol%C3%A1%20suporte%20da%20Livro%20Colorir%20Crist%C3%A3o%2C%20Acredito%20que%20houve%20um%20erro%20no%20meu%20login%2C%20gostaria%20de%20resolver.",target:"_blank",rel:"noopener noreferrer","aria-label":"Fale conosco no WhatsApp",children:[t.jsx(La,{className:"h-4 w-4 mr-1"}),"Fale Conosco"]})})]})]})})},Yt=768;function zi(){const[s,e]=m.useState(void 0);return m.useEffect(()=>{const a=window.matchMedia(`(max-width: ${Yt-1}px)`),r=()=>{e(window.innerWidtha.removeEventListener("change",r)},[]),!!s}const lr=m.forwardRef(({className:s,orientation:e="horizontal",decorative:a=!0,...r},n)=>t.jsx(Ia,{ref:n,decorative:a,orientation:e,className:I("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...r}));lr.displayName=Ia.displayName;const Di=Ta,Bi=Oa,cr=m.forwardRef(({className:s,...e},a)=>t.jsx(Ot,{className:I("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...e,ref:a}));cr.displayName=Ot.displayName;const Fi=Bt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),dr=m.forwardRef(({side:s="right",className:e,children:a,...r},n)=>t.jsxs(Bi,{children:[t.jsx(cr,{}),t.jsxs(Pt,{ref:n,className:I(Fi({side:s}),e),...r,children:[a,t.jsxs(Ra,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[t.jsx(ks,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));dr.displayName=Pt.displayName;const Vi=m.forwardRef(({className:s,...e},a)=>t.jsx(Lt,{ref:a,className:I("text-lg font-semibold text-foreground",s),...e}));Vi.displayName=Lt.displayName;const $i=m.forwardRef(({className:s,...e},a)=>t.jsx(Mt,{ref:a,className:I("text-sm text-muted-foreground",s),...e}));$i.displayName=Mt.displayName;function ja({className:s,...e}){return t.jsx("div",{className:I("animate-pulse rounded-md bg-muted",s),...e})}const Ui=$r,Zi=Ur,qi=Zr,ur=m.forwardRef(({className:s,sideOffset:e=4,...a},r)=>t.jsx(Pa,{ref:r,sideOffset:e,className:I("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a}));ur.displayName=Pa.displayName;const Gi="sidebar:state",Wi=60*60*24*7,Hi="16rem",Ji="18rem",Yi="3rem",Ki="b",mr=m.createContext(null);function xt(){const s=m.useContext(mr);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}const hr=m.forwardRef(({defaultOpen:s=!0,open:e,onOpenChange:a,className:r,style:n,children:o,...i},l)=>{const c=zi(),[u,h]=m.useState(!1),[f,p]=m.useState(s),d=e!=null?e:f,R=m.useCallback(g=>{const k=typeof g=="function"?g(d):g;a?a(k):p(k),document.cookie=`${Gi}=${k}; path=/; max-age=${Wi}`},[a,d]),_=m.useCallback(()=>c?h(g=>!g):R(g=>!g),[c,R,h]);m.useEffect(()=>{const g=k=>{k.key===Ki&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),_())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[_]);const y=d?"expanded":"collapsed",v=m.useMemo(()=>({state:y,open:d,setOpen:R,isMobile:c,openMobile:u,setOpenMobile:h,toggleSidebar:_}),[y,d,R,c,u,h,_]);return t.jsx(mr.Provider,{value:v,children:t.jsx(Ui,{delayDuration:0,children:t.jsx("div",{style:{"--sidebar-width":Hi,"--sidebar-width-icon":Yi,...n},className:I("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...i,children:o})})})});hr.displayName="SidebarProvider";const pr=m.forwardRef(({side:s="left",variant:e="sidebar",collapsible:a="offcanvas",className:r,children:n,...o},i)=>{const{isMobile:l,state:c,openMobile:u,setOpenMobile:h}=xt();return a==="none"?t.jsx("div",{className:I("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...o,children:n}):l?t.jsx(Di,{open:u,onOpenChange:h,...o,children:t.jsx(dr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ji},side:s,children:t.jsx("div",{className:"flex h-full w-full flex-col",children:n})})}):t.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":e,"data-side":s,children:[t.jsx("div",{className:I("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),t.jsx("div",{className:I("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",s==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:t.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:n})})]})});pr.displayName="Sidebar";const fr=m.forwardRef(({className:s,onClick:e,...a},r)=>{const{toggleSidebar:n}=xt();return t.jsxs(Q,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:I("h-7 w-7",s),onClick:o=>{e==null||e(o),n()},...a,children:[t.jsx(Wr,{}),t.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});fr.displayName="SidebarTrigger";const Xi=m.forwardRef(({className:s,...e},a)=>{const{toggleSidebar:r}=xt();return t.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:I("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",s),...e})});Xi.displayName="SidebarRail";const Qi=m.forwardRef(({className:s,...e},a)=>t.jsx("main",{ref:a,className:I("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",s),...e}));Qi.displayName="SidebarInset";const el=m.forwardRef(({className:s,...e},a)=>t.jsx(Se,{ref:a,"data-sidebar":"input",className:I("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",s),...e}));el.displayName="SidebarInput";const tl=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"header",className:I("flex flex-col gap-2 p-2",s),...e}));tl.displayName="SidebarHeader";const sl=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"footer",className:I("flex flex-col gap-2 p-2",s),...e}));sl.displayName="SidebarFooter";const al=m.forwardRef(({className:s,...e},a)=>t.jsx(lr,{ref:a,"data-sidebar":"separator",className:I("mx-2 w-auto bg-sidebar-border",s),...e}));al.displayName="SidebarSeparator";const gr=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"content",className:I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),...e}));gr.displayName="SidebarContent";const ps=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"group",className:I("relative flex w-full min-w-0 flex-col p-2",s),...e}));ps.displayName="SidebarGroup";const xr=m.forwardRef(({className:s,asChild:e=!1,...a},r)=>{const n=e?at:"div";return t.jsx(n,{ref:r,"data-sidebar":"group-label",className:I("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",s),...a})});xr.displayName="SidebarGroupLabel";const rl=m.forwardRef(({className:s,asChild:e=!1,...a},r)=>{const n=e?at:"button";return t.jsx(n,{ref:r,"data-sidebar":"group-action",className:I("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",s),...a})});rl.displayName="SidebarGroupAction";const fs=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"group-content",className:I("w-full text-sm",s),...e}));fs.displayName="SidebarGroupContent";const gs=m.forwardRef(({className:s,...e},a)=>t.jsx("ul",{ref:a,"data-sidebar":"menu",className:I("flex w-full min-w-0 flex-col gap-1",s),...e}));gs.displayName="SidebarMenu";const xs=m.forwardRef(({className:s,...e},a)=>t.jsx("li",{ref:a,"data-sidebar":"menu-item",className:I("group/menu-item relative",s),...e}));xs.displayName="SidebarMenuItem";const nl=Bt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),vs=m.forwardRef(({asChild:s=!1,isActive:e=!1,variant:a="default",size:r="default",tooltip:n,className:o,...i},l)=>{const c=s?at:"button",{isMobile:u,state:h}=xt(),f=t.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":e,className:I(nl({variant:a,size:r}),o),...i});return n?(typeof n=="string"&&(n={children:n}),t.jsxs(Zi,{children:[t.jsx(qi,{asChild:!0,children:f}),t.jsx(ur,{side:"right",align:"center",hidden:h!=="collapsed"||u,...n})]})):f});vs.displayName="SidebarMenuButton";const ol=m.forwardRef(({className:s,asChild:e=!1,showOnHover:a=!1,...r},n)=>{const o=e?at:"button";return t.jsx(o,{ref:n,"data-sidebar":"menu-action",className:I("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",s),...r})});ol.displayName="SidebarMenuAction";const il=m.forwardRef(({className:s,...e},a)=>t.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:I("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",s),...e}));il.displayName="SidebarMenuBadge";const ll=m.forwardRef(({className:s,showIcon:e=!1,...a},r)=>{const n=m.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return t.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:I("flex h-8 items-center gap-2 rounded-md px-2",s),...a,children:[e&&t.jsx(ja,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),t.jsx(ja,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})});ll.displayName="SidebarMenuSkeleton";const cl=m.forwardRef(({className:s,...e},a)=>t.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:I("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",s),...e}));cl.displayName="SidebarMenuSub";const dl=m.forwardRef(({...s},e)=>t.jsx("li",{ref:e,...s}));dl.displayName="SidebarMenuSubItem";const ul=m.forwardRef(({asChild:s=!1,size:e="md",isActive:a,className:r,...n},o)=>{const i=s?at:"a";return t.jsx(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":e,"data-active":a,className:I("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...n})});ul.displayName="SidebarMenuSubButton";const ml=[{title:"Dashboard",url:"/painel",icon:Jr,exact:!0},{title:"Conteúdo Exclusivo",url:"/painel/exclusivo",icon:Ma,exact:!1},{title:"Meus Livros",url:"/painel/livros",icon:Cs,exact:!1},{title:"Dispositivos",url:"/painel/dispositivos",icon:za,exact:!1},{title:"Meu Perfil",url:"/painel/perfil",icon:es,exact:!1}],hl=()=>{const{state:s}=xt(),e=s==="collapsed",{signOut:a,profile:r}=Ae(),n=Ns(),{pathname:o}=Tt(),i=(c,u)=>u?o===c:o===c||o.startsWith(c+"/"),l=async()=>{await a(),n("/auth",{replace:!0})};return t.jsx(pr,{collapsible:"icon",children:t.jsxs(gr,{children:[t.jsxs(ps,{children:[t.jsx(xr,{children:e?"":"Painel"}),t.jsx(fs,{children:t.jsx(gs,{children:ml.map(c=>{const u=i(c.url,c.exact);return t.jsx(xs,{children:t.jsxs(vs,{isActive:u,tooltip:e?c.title:void 0,onClick:()=>n(c.url),className:"cursor-pointer",children:[t.jsx(c.icon,{className:"mr-2 h-4 w-4"}),!e&&t.jsx("span",{children:c.title})]})},c.url)})})})]}),!e&&t.jsx("div",{className:"px-3 mt-4",children:(r==null?void 0:r.plan)==="premium"?t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsx("span",{children:"Plano:"}),t.jsx("span",{className:"inline-flex items-center gap-1 rounded-full bg-gradient-to-r from-orange-500 to-amber-500 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-white shadow-md shadow-orange-500/40 ring-1 ring-orange-300/50",children:"★ Premium"})]}):t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Plano: ",t.jsx("span",{className:"font-semibold text-foreground",children:"Básico"})]})}),t.jsx(ps,{className:"mt-auto",children:t.jsx(fs,{children:t.jsx(gs,{children:t.jsx(xs,{children:t.jsxs(vs,{onClick:l,tooltip:e?"Sair":void 0,className:"cursor-pointer",children:[t.jsx(Hr,{className:"mr-2 h-4 w-4"}),!e&&t.jsx("span",{children:"Sair"})]})})})})})]})})},_a=Ta,pl=Oa,vr=m.forwardRef(({className:s,...e},a)=>t.jsx(Ot,{ref:a,className:I("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...e}));vr.displayName=Ot.displayName;const bs=m.forwardRef(({className:s,children:e,...a},r)=>t.jsxs(pl,{children:[t.jsx(vr,{}),t.jsxs(Pt,{ref:r,className:I("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...a,children:[e,t.jsxs(Ra,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[t.jsx(ks,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bs.displayName=Pt.displayName;const ys=({className:s,...e})=>t.jsx("div",{className:I("flex flex-col space-y-1.5 text-center sm:text-left",s),...e});ys.displayName="DialogHeader";const fl=({className:s,...e})=>t.jsx("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...e});fl.displayName="DialogFooter";const ws=m.forwardRef(({className:s,...e},a)=>t.jsx(Lt,{ref:a,className:I("text-lg font-semibold leading-none tracking-tight",s),...e}));ws.displayName=Lt.displayName;const js=m.forwardRef(({className:s,...e},a)=>t.jsx(Mt,{ref:a,className:I("text-sm text-muted-foreground",s),...e}));js.displayName=Mt.displayName;const gl="https://pay.cakto.com.br/premium-1499",xl="https://pay.cakto.com.br/exclusivo-999",vl=()=>{const{user:s,profile:e,hasExclusive:a,refreshProfile:r}=Ae(),[n,o]=m.useState(!1),[i,l]=m.useState(!1);m.useEffect(()=>{if(!e||e.plan!=="basic")return;if(!sessionStorage.getItem("upgrade_modal_seen")){const d=setTimeout(()=>{o(!0),sessionStorage.setItem("upgrade_modal_seen","1")},600);return()=>clearTimeout(d)}},[e]);const c=()=>{window.confirm("Modo de teste: simular pagamento de R$14,99 e ativar Premium?")?u():window.open(gl,"_blank")},u=async()=>{s&&(alert("Em produção: o webhook do gateway atualiza seu plano. Configure o link real no admin."),o(!1))},h=()=>{o(!1),setTimeout(()=>l(!0),250)},f=async()=>{if(s)if(window.confirm("Modo de teste: simular pagamento de R$9,99 e liberar Conteúdos Exclusivos?")){const{error:p}=await Y.from("exclusive_purchases").insert({user_id:s.id,amount:9.99,status:"completed"});if(p){alert("Erro: "+p.message);return}await r(),l(!1)}else window.open(xl,"_blank")};return a&&(e==null||e.plan),t.jsxs(t.Fragment,{children:[t.jsx(_a,{open:n,onOpenChange:o,children:t.jsxs(bs,{className:"max-w-md w-[calc(100%-2rem)] sm:w-full max-h-[90vh] overflow-y-auto p-4 sm:p-6",children:[t.jsxs(ys,{className:"text-left",children:[t.jsx(ws,{className:"text-xl sm:text-2xl leading-tight pr-6",children:"Desbloqueie o Pacote Premium ✨"}),t.jsx(js,{className:"text-sm",children:"Acesso TOTAL e vitalício a todos os recursos."})]}),t.jsx("ul",{className:"space-y-2 text-[13px] sm:text-sm py-2",children:[{text:"TUDO DO PACOTE BÁSICO +",isHeader:!0},{text:"Acesso em dispositivos ",highlight:"ILIMITADO"},{text:"2 NOVOS LIVROS POR MÊS (12 MESES)"},{text:"LIVRO DE ATIVIDADES CRISTÃS"},{text:"DESAFIO BÍBLICO DE 7 DIAS"},{text:"PLANNER DEVOCIONAL INFANTIL"},{text:"Todos os livros para colorir em PDF"},{text:"Conteúdos exclusivos diários"},{text:"Atualizações vitalícias"},{text:"Suporte ",highlight:"PRIORITÁRIO"}].map((p,d)=>t.jsxs("li",{className:"flex items-start gap-2",children:[p.isHeader?t.jsx("span",{"aria-hidden":"true",className:"mt-0.5 flex-shrink-0 leading-none",children:"🎁"}):t.jsx(ut,{className:"h-4 w-4 text-green-600 mt-0.5 flex-shrink-0"}),t.jsxs("span",{className:`min-w-0 break-words ${p.isHeader?"font-bold":""}`,children:[p.text,p.highlight&&t.jsx("span",{className:"font-extrabold text-primary",children:p.highlight})]})]},d))}),t.jsxs("div",{className:"text-center py-2 sm:py-3",children:[t.jsx("p",{className:"text-xs text-muted-foreground line-through",children:"De R$49,99"}),t.jsx("p",{className:"text-2xl sm:text-3xl font-extrabold text-primary",children:"R$14,99"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"pagamento único — vitalício"})]}),t.jsxs("div",{className:"flex flex-col gap-2 pt-1",children:[t.jsx(Q,{onClick:c,size:"lg",className:"w-full h-11 sm:h-12 text-sm sm:text-base font-semibold px-3 whitespace-normal text-center leading-tight",children:"Quero virar Premium"}),t.jsx(Q,{onClick:h,variant:"ghost",className:"w-full h-10 sm:h-11 text-sm font-medium",children:"Não quero"})]})]})}),t.jsx(_a,{open:i,onOpenChange:l,children:t.jsxs(bs,{className:"max-w-md w-[calc(100%-2rem)] sm:w-full max-h-[90vh] overflow-y-auto p-4 sm:p-6",children:[t.jsxs(ys,{children:[t.jsx(ws,{className:"text-2xl",children:"Última oferta 🎁"}),t.jsxs(js,{children:["Que tal só os ",t.jsx("strong",{children:"Conteúdos Exclusivos"}),"?"]})]}),t.jsxs("ul",{className:"space-y-2 text-sm py-2",children:[t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(ut,{className:"h-4 w-4 text-green-600 mt-0.5"}),"Livros PDF para colorir"]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(ut,{className:"h-4 w-4 text-green-600 mt-0.5"}),"Categorias temáticas"]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(ut,{className:"h-4 w-4 text-green-600 mt-0.5"}),"Acesso imediato"]})]}),t.jsxs("div",{className:"text-center py-3",children:[t.jsx("p",{className:"text-3xl font-extrabold text-primary",children:"R$9,99"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"pagamento único"})]}),t.jsxs("div",{className:"flex flex-col gap-2 pt-1",children:[t.jsx(Q,{onClick:f,size:"lg",className:"w-full h-11 sm:h-12 text-sm sm:text-base font-semibold px-3 whitespace-normal text-center leading-tight",children:"Quero garantir"}),t.jsx(Q,{onClick:()=>l(!1),variant:"ghost",className:"w-full h-10 sm:h-11 text-sm font-medium",children:"Não, obrigado"})]})]})})]})},bl=()=>{const{user:s,loading:e}=Ae(),a=m.useRef(!1);return m.useEffect(()=>{!s||a.current||(a.current=!0,requestAnimationFrame(()=>{Ce("painel:first_render"),ht("TOTAL login → painel render","auth:login_click","painel:first_render")}))},[s]),e?null:s?t.jsxs(hr,{children:[t.jsxs("div",{className:"min-h-screen flex w-full bg-gradient-to-br from-slate-50 to-slate-100",children:[t.jsx(hl,{}),t.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[t.jsx("header",{className:"h-14 flex items-center justify-between border-b bg-card px-4 shadow-sm",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(fr,{}),t.jsx(ve,{to:"/",className:"font-extrabold text-primary",children:"Livro Colorir Cristão ✟"})]})}),t.jsx("main",{className:"flex-1 p-4 md:p-6",children:t.jsx(Dr,{})})]})]}),t.jsx(vl,{})]}):t.jsx(zr,{to:"/auth",replace:!0})},yl="https://wa.me/5500000000000",wl=()=>t.jsxs("section",{className:"relative overflow-hidden rounded-2xl border-2 border-primary/30 bg-gradient-to-br from-primary/5 to-primary/10 p-6 shadow-sm",children:[t.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-[2px] rounded-2xl",children:t.jsx("span",{className:"px-6 py-3 rounded-xl bg-foreground/85 text-background font-extrabold text-2xl md:text-3xl tracking-widest shadow-lg",children:"EM BREVE..."})}),t.jsxs("h2",{className:"text-xl md:text-2xl font-extrabold text-center mb-4 flex items-center justify-center gap-2",children:[t.jsx(Yr,{className:"h-6 w-6 text-red-600"}),"Entre no nosso canal do youtube e ganhe benefícios"]}),t.jsxs("div",{className:"bg-card rounded-xl p-4 border space-y-2 mb-4",children:[t.jsx("div",{className:"rounded-lg bg-muted/40 px-4 py-3 font-medium",children:"2 Imagens para colorir por semana"}),t.jsx("div",{className:"rounded-lg bg-muted/40 px-4 py-3 font-medium",children:"um versículo por DIA"}),t.jsx("div",{className:"rounded-lg bg-muted/40 px-4 py-3 font-medium",children:"Conteúdos exclusivos diariamente"})]}),t.jsx("p",{className:"text-center font-bold text-lg text-amber-700 dark:text-amber-400 animate-pulse mb-4",children:"Ofertas exclusivas, com descontos, somente para quem estará no canal."}),t.jsx(Q,{asChild:!0,size:"lg",disabled:!0,className:"w-full bg-red-600 hover:bg-red-700 text-white pointer-events-none opacity-80",children:t.jsx("a",{href:yl,target:"_blank",rel:"noopener noreferrer","aria-disabled":"true",tabIndex:-1,children:"Entrar agora no canal"})})]}),jl=()=>{var p;const{user:s,profile:e,hasExclusive:a,refreshProfile:r}=Ae(),[n,o]=m.useState(!1),[i,l]=m.useState(""),[c,u]=m.useState(!1);m.useEffect(()=>{e!=null&&e.display_name&&l(e.display_name)},[e==null?void 0:e.display_name]);const h=async()=>{if(!s||!i.trim())return;u(!0);const{error:d}=await Y.from("profiles").update({display_name:i.trim()}).eq("user_id",s.id);u(!1),d?alert("Erro ao salvar: "+d.message):(await r(),o(!1))},f=(e==null?void 0:e.plan)==="premium"?"Pacote Premium":"Pacote Básico";return t.jsxs("div",{className:"max-w-5xl mx-auto space-y-6",children:[t.jsx("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:t.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-3",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-1",children:"Bem-vindo(a)"}),n?t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Se,{value:i,onChange:d=>l(d.target.value),maxLength:80,className:"max-w-xs"}),t.jsx(Q,{size:"icon",onClick:h,disabled:c,children:t.jsx(ut,{className:"h-4 w-4"})}),t.jsx(Q,{size:"icon",variant:"ghost",onClick:()=>{var d;o(!1),l((d=e==null?void 0:e.display_name)!=null?d:"")},children:t.jsx(ks,{className:"h-4 w-4"})})]}):t.jsxs("h1",{className:"text-2xl md:text-3xl font-extrabold flex items-center gap-2",children:[(p=e==null?void 0:e.display_name)!=null?p:"Usuário",t.jsx("button",{onClick:()=>o(!0),className:"text-muted-foreground hover:text-foreground","aria-label":"Editar nome",children:t.jsx(Kr,{className:"h-4 w-4"})})]}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:f})]}),t.jsxs("div",{className:"flex flex-col gap-2 md:items-end",children:[t.jsx("div",{className:"bg-gradient-to-r from-amber-400 to-amber-600 text-white px-4 py-2 rounded-lg font-extrabold text-center shadow",children:"ACESSO VITALÍCIO"}),t.jsx(Q,{asChild:!0,className:"bg-red-600 hover:bg-red-700 text-white font-bold shadow",children:t.jsxs(ve,{to:"/painel/perfil",children:[t.jsx(Da,{className:"h-4 w-4"}),"TROCAR SENHA"]})})]})]})}),t.jsxs("section",{className:"grid gap-4 md:grid-cols-2",children:[t.jsxs(ve,{to:"/painel/exclusivo",className:"group bg-card rounded-2xl border p-6 shadow-sm hover:shadow-md transition flex items-start gap-3",children:[t.jsx(Ma,{className:"h-6 w-6 text-amber-500 flex-shrink-0"}),t.jsxs("div",{className:"min-w-0",children:[t.jsxs("h3",{className:"font-bold flex items-center gap-2",children:["Conteúdos Exclusivos",!a&&t.jsx(zt,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),t.jsx("p",{className:"text-sm text-muted-foreground",children:a?"Acesse seus PDFs e materiais premium.":"Bloqueado — disponível para Premium ou compra avulsa."})]})]}),t.jsxs(ve,{to:"/painel/livros",className:"group bg-card rounded-2xl border p-6 shadow-sm hover:shadow-md transition flex items-start gap-3",children:[t.jsx(Cs,{className:"h-6 w-6 text-primary flex-shrink-0"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("h3",{className:"font-bold",children:"Meus Livros"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Veja todos os livros incluídos no seu pacote."})]})]})]}),t.jsx(wl,{}),t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm text-center",children:[t.jsx("h2",{className:"text-xl font-extrabold mb-4",children:"Fale conosco"}),t.jsxs("div",{className:"flex items-center justify-center gap-4",children:[t.jsx("a",{href:"https://www.facebook.com/profile.php?id=100095192637625",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"h-12 w-12 rounded-full bg-[#1877F2] text-white flex items-center justify-center hover:opacity-90 transition shadow",children:t.jsx(Xr,{className:"h-6 w-6"})}),t.jsx("a",{href:"https://www.instagram.com/livroscolorir.cristao/",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"h-12 w-12 rounded-full bg-gradient-to-br from-[#feda75] via-[#d62976] to-[#4f5bd5] text-white flex items-center justify-center hover:opacity-90 transition shadow",children:t.jsx(Qr,{className:"h-6 w-6"})}),t.jsx("a",{href:"https://wa.me/5521979668441?text=Ol%C3%A1%2C%20gostaria%20de%20mais%20informa%C3%A7%C3%B5es%20sobre%20os%20livros%20de%20colorir%20crist%C3%A3o!",target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp",className:"h-12 w-12 rounded-full bg-[#25D366] text-white flex items-center justify-center hover:opacity-90 transition shadow",children:t.jsx(La,{className:"h-6 w-6"})})]})]})]})},_l=[{id:"desafio-biblico-7-dias",title:"Desafio Bíblico de 7 Dias",cover:"/downloads/bonus/desafio-biblico-7-dias/cover.webp",pdfUrl:"/downloads/bonus/desafio-biblico-7-dias/Desafio-Biblico-7-Dias.pdf",pdfFileName:"Desafio-Biblico-7-Dias.pdf"},{id:"atividades-cristas-extras",title:"Livros de Atividades Cristãs Extras",cover:"/downloads/bonus/atividades-cristas-extras/cover.webp",pdfUrl:"/downloads/bonus/atividades-cristas-extras/Livro-de-Atividades-Cristas-Extras.pdf",pdfFileName:"Livro-de-Atividades-Cristas-Extras.pdf"},{id:"planner-devocional-infantil",title:"Planner Devocional Infantil",cover:"/downloads/bonus/planner-devocional-infantil/cover.webp",pdfUrl:"/downloads/bonus/planner-devocional-infantil/Planner-Devocional-Infantil.pdf",pdfFileName:"Planner-Devocional-Infantil.pdf"},{id:"cartoes-biblicos-memorizacao",title:"Cartões Bíblicos para Memorização",cover:"/downloads/bonus/cartoes-biblicos-memorizacao/cover.webp",pdfUrl:"/downloads/bonus/cartoes-biblicos-memorizacao/Cartoes-Biblicos-para-Memorizacao.pdf",pdfFileName:"Cartoes-Biblicos-para-Memorizacao.pdf"}],br=({isPremium:s})=>t.jsxs("div",{className:"relative",children:[t.jsx("ul",{className:`space-y-3 ${s?"":"pointer-events-none select-none blur-[3px]"}`,children:_l.map(e=>t.jsxs("li",{className:"flex items-center gap-3 sm:gap-4 p-3 sm:p-4 border rounded-xl bg-background hover:shadow-md transition-shadow",children:[t.jsx("img",{src:e.cover,alt:`Capa: ${e.title}`,loading:"lazy",decoding:"async",width:80,height:80,className:"h-16 w-16 sm:h-20 sm:w-20 rounded-lg object-cover border flex-shrink-0 bg-muted"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"font-semibold text-sm sm:text-base leading-snug line-clamp-2 mb-2",children:e.title}),t.jsx("div",{className:"flex flex-wrap gap-2",children:s?t.jsxs("a",{href:e.pdfUrl,download:e.pdfFileName,className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3 sm:px-4 h-9 sm:h-10 text-xs sm:text-sm font-bold text-white bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 active:scale-95 transition-all shadow-md shadow-orange-500/40 hover:shadow-lg","aria-label":`Baixar PDF de ${e.title}`,children:[t.jsx(Ct,{className:"h-4 w-4"}),t.jsx("span",{children:"Baixar PDF"})]}):t.jsxs("span",{className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3 sm:px-4 h-9 sm:h-10 text-xs sm:text-sm font-bold text-white bg-gradient-to-r from-orange-500 to-amber-500 opacity-70",children:[t.jsx(Ct,{className:"h-4 w-4"}),t.jsx("span",{children:"Baixar PDF"})]})})]})]},e.id))}),!s&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-xl bg-black/60 backdrop-blur-sm p-6",children:t.jsxs("div",{className:"text-center max-w-sm",children:[t.jsx("div",{className:"inline-flex items-center justify-center h-12 w-12 rounded-full bg-gradient-to-r from-orange-500 to-amber-500 shadow-lg shadow-orange-500/40 mb-3",children:t.jsx(zt,{className:"h-6 w-6 text-white"})}),t.jsx("h3",{className:"text-white font-extrabold text-lg mb-1",children:"Conteúdo exclusivo Premium"}),t.jsxs("p",{className:"text-white/90 text-sm mb-4",children:["Estes bônus estão disponíveis apenas para usuários do plano ",t.jsx("span",{className:"font-bold",children:"PREMIUM"}),"."]}),t.jsx(Q,{asChild:!0,className:"bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white font-bold shadow-lg shadow-orange-500/40",children:t.jsx(ve,{to:"/painel/exclusivo",children:"Fazer upgrade para Premium"})})]})})]}),Nl=()=>{const{profile:s}=Ae(),e=(s==null?void 0:s.plan)==="premium";return t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:[t.jsx("h2",{className:"text-xl font-bold mb-1",children:"Conteúdos Exclusivos 🎁"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-5",children:["Bônus especiais disponíveis para usuários do plano ",t.jsx("span",{className:"font-bold",children:"Premium"}),"."]}),t.jsx(br,{isPremium:e})]})},kl=()=>t.jsx("div",{className:"max-w-5xl mx-auto",children:t.jsx(Nl,{})}),Cl=[{id:"criacao-do-mundo",title:"Livro de Colorir A Criação do Mundo",cover:"/downloads/criacao-do-mundo/cover.webp",pdfFileName:"Livro-Colorir-A-Criacao-do-Mundo.pdf",extrasUrl:"/downloads/criacao-do-mundo/capas-adesivos.zip",extrasFileName:"Capas-e-Adesivos-A-Criacao-do-Mundo.zip",extrasLabel:"Capas + Adesivos"},{id:"pascoa",title:"Livro de Colorir A Verdadeira Páscoa",cover:"/livros/pascoa-cover.webp",pdfFileName:"Livro-Colorir-A-Verdadeira-Pascoa.pdf",extrasUrl:"/downloads/pascoa/capas.zip",extrasFileName:"Capas-A-Verdadeira-Pascoa.zip",extrasLabel:"Baixar Capas"},{id:"vida-de-jesus",title:"Livro de Colorir A vida de Jesus",cover:"/livros/vida-de-jesus-cover.webp",pdfFileName:"Livro-Colorir-A-Vida-de-Jesus.pdf",extrasUrl:"/downloads/vida-de-jesus/capas.zip",extrasFileName:"Capas-A-Vida-de-Jesus.zip",extrasLabel:"Baixar Capas"},{id:"adao-e-eva",title:"Livro de Colorir Adão e Eva",cover:"/livros/adao-e-eva-cover.webp",pdfFileName:"Livro-Colorir-Adao-e-Eva.pdf",extrasUrl:"/downloads/adao-e-eva/capas-adesivos.zip",extrasFileName:"Capas-e-Adesivos-Adao-e-Eva.zip",extrasLabel:"Capas + Adesivos"},{id:"arca-de-noe",title:"Livro de Colorir A Arca de Noé",cover:"/livros/arca-de-noe-cover.webp",pdfFileName:"Livro-Colorir-A-Arca-de-Noe.pdf",extrasUrl:"/downloads/arca-de-noe/capas.zip",extrasFileName:"Capas-A-Arca-de-Noe.zip",extrasLabel:"Baixar Capas"},{id:"colorindo-com-jesus",title:"Livro Colorindo com Jesus",cover:"/livros/colorindo-com-jesus-cover.webp",pdfFileName:"Livro-Colorindo-com-Jesus.pdf",extrasUrl:"/downloads/colorindo-com-jesus/capas.zip",extrasFileName:"Capas-Colorindo-com-Jesus.zip",extrasLabel:"Baixar Capas"},{id:"colorindo-com-jesus-meninas",title:"Livro Colorindo com Jesus - Meninas",cover:"/livros/colorindo-com-jesus-meninas-cover.webp",pdfFileName:"Livro-Colorindo-com-Jesus-Meninas.pdf",extrasUrl:"/downloads/colorindo-com-jesus-meninas/capas.zip",extrasFileName:"Capas-Colorindo-com-Jesus-Meninas.zip",extrasLabel:"Baixar Capas"},{id:"davi-e-golias",title:"Livro de Colorir Davi e Golias",cover:"/livros/davi-e-golias-cover.webp",pdfFileName:"Livro-Colorir-Davi-e-Golias.pdf",extrasUrl:"/downloads/davi-e-golias/capas.zip",extrasFileName:"Capas-Davi-e-Golias.zip",extrasLabel:"Baixar Capas"},{id:"frutos-do-espirito-santo",title:"Livro de Colorir Frutos do Espírito Santo",cover:"/livros/frutos-do-espirito-santo-cover.webp",pdfFileName:"Livro-Colorir-Frutos-do-Espirito-Santo.pdf",extrasUrl:"/downloads/frutos-do-espirito-santo/capas.zip",extrasFileName:"Capas-Frutos-do-Espirito-Santo.zip",extrasLabel:"Baixar Capas"},{id:"jesus-acalma-tempestade",title:"Livro de Colorir Jesus Acalma Tempestade",cover:"/livros/jesus-acalma-tempestade-cover.webp",pdfFileName:"Livro-Colorir-Jesus-Acalma-Tempestade.pdf",extrasUrl:"/downloads/jesus-acalma-tempestade/capas.zip",extrasFileName:"Capas-Jesus-Acalma-Tempestade.zip",extrasLabel:"Baixar Capas"},{id:"jesus-melhor-amigo",title:"Livro de Colorir Jesus Melhor Amigo",cover:"/livros/jesus-melhor-amigo-cover.webp",pdfFileName:"Livro-Colorir-Jesus-Melhor-Amigo.pdf",extrasUrl:"/downloads/jesus-melhor-amigo/capas.zip",extrasFileName:"Capas-Jesus-Melhor-Amigo.zip",extrasLabel:"Baixar Capas"},{id:"jonas-e-a-baleia",title:"Livro de Colorir Jonas e a Baleia",cover:"/livros/jonas-e-a-baleia-cover.webp",pdfFileName:"Livro-Colorir-Jonas-e-a-Baleia.pdf",extrasUrl:"/downloads/jonas-e-a-baleia/capas.zip",extrasFileName:"Capas-Jonas-e-a-Baleia.zip",extrasLabel:"Baixar Capas"},{id:"apostolo-pedro",title:"Livro de Colorir Apóstolo Pedro",cover:"/livros/apostolo-pedro-cover.webp",pdfFileName:"Livro-Colorir-Apostolo-Pedro.pdf",extrasUrl:"/downloads/apostolo-pedro/capas-adesivos.zip",extrasFileName:"Capas-e-Adesivos-Apostolo-Pedro.zip",extrasLabel:"Capas + Adesivos"},{id:"maria-mae-de-jesus",title:"Livro de Colorir Maria Mãe de Jesus",cover:"/livros/maria-mae-de-jesus-cover.webp",pdfFileName:"Livro-Colorir-Maria-Mae-de-Jesus.pdf",extrasUrl:"/downloads/maria-mae-de-jesus/capas-adesivos.zip",extrasFileName:"Capas-e-Adesivos-Maria-Mae-de-Jesus.zip",extrasLabel:"Capas + Adesivos"},{id:"colorindo-com-jesus-meninos",title:"Livro de Colorir Com Jesus - Meninos",cover:"/livros/colorindo-com-jesus-meninos-cover.webp",pdfFileName:"Livro-Colorindo-com-Jesus-Meninos.pdf",extrasUrl:"/downloads/colorindo-com-jesus-meninos/capas.zip",extrasFileName:"Capas-Colorindo-com-Jesus-Meninos.zip",extrasLabel:"Baixar Capas"},{id:"moises",title:"Livro de Colorir Moisés",cover:"/livros/moises-cover.webp",pdfFileName:"Livro-Colorir-Moises.pdf",extrasUrl:"/downloads/moises/capas-adesivos.zip",extrasFileName:"Capas-e-Adesivos-Moises.zip",extrasLabel:"Capas + Adesivos"},{id:"jesus",title:"Livro de Colorir Jesus",cover:"/livros/jesus-cover.webp",pdfFileName:"Livro-Colorir-Jesus.pdf",extrasUrl:"/downloads/jesus/capas.zip",extrasFileName:"Capas-Jesus.zip",extrasLabel:"Baixar Capas"},{id:"virtudes-cristas",title:"Livro de Colorir Virtudes Cristãs",cover:"/livros/virtudes-cristas-cover.webp",pdfFileName:"Livro-Colorir-Virtudes-Cristas.pdf",extrasUrl:"/downloads/virtudes-cristas/capas.zip",extrasFileName:"Capas-Virtudes-Cristas.zip",extrasLabel:"Baixar Capas"},{id:"yeshua",title:"Livro de Colorir Yeshua",cover:"/livros/yeshua-cover.webp",pdfFileName:"Livro-Colorir-Yeshua.pdf",extrasUrl:"/downloads/yeshua/capas.zip",extrasFileName:"Capas-Yeshua.zip",extrasLabel:"Baixar Capas"},{id:"natal-de-jesus",title:"Livro de Colorir O Natal de Jesus",cover:"/livros/natal-de-jesus-cover.webp",pdfFileName:"Livro-Colorir-O-Natal-de-Jesus.pdf",extrasUrl:"/downloads/natal-de-jesus/capas.zip",extrasFileName:"Capas-O-Natal-de-Jesus.zip",extrasLabel:"Baixar Capas"},{id:"pascoa-crista",title:"Livro de Colorir Pascoa Cristã",cover:"/livros/pascoa-crista-cover.webp",pdfFileName:"Livro-Colorir-Pascoa-Crista.pdf",extrasUrl:"/downloads/pascoa-crista/capas.zip",extrasFileName:"Capas-Pascoa-Crista.zip",extrasLabel:"Baixar Capas"}],Sl=1,El=1e6;let Kt=0;function Al(){return Kt=(Kt+1)%Number.MAX_SAFE_INTEGER,Kt.toString()}const Xt=new Map,Na=s=>{if(Xt.has(s))return;const e=setTimeout(()=>{Xt.delete(s),Nt({type:"REMOVE_TOAST",toastId:s})},El);Xt.set(s,e)},Il=(s,e)=>{switch(e.type){case"ADD_TOAST":return{...s,toasts:[e.toast,...s.toasts].slice(0,Sl)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(a=>a.id===e.toast.id?{...a,...e.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=e;return a?Na(a):s.toasts.forEach(r=>{Na(r.id)}),{...s,toasts:s.toasts.map(r=>r.id===a||a===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(a=>a.id!==e.toastId)}}},Rl=[];let Qt={toasts:[]};function Nt(s){Qt=Il(Qt,s),Rl.forEach(e=>{e(Qt)})}function ka({...s}){const e=Al(),a=n=>Nt({type:"UPDATE_TOAST",toast:{...n,id:e}}),r=()=>Nt({type:"DISMISS_TOAST",toastId:e});return Nt({type:"ADD_TOAST",toast:{...s,id:e,open:!0,onOpenChange:n=>{n||r()}}}),{id:e,dismiss:r,update:a}}const _s=s=>{if(!s.highlight_enabled)return!1;const e=Date.now();return!(s.highlight_start&&new Date(s.highlight_start).getTime()>e||s.highlight_end&&new Date(s.highlight_end).getTime(){const a=_s(s),r=s.highlight_color||"hsl(var(--primary))",n="p-3 flex items-center gap-2 relative transition-colors",o=a&&s.highlight_type==="pulse"?"animate-pulse":"",i={};return a&&(s.highlight_type==="pulse"||s.highlight_type==="pin")&&(i.boxShadow=`inset 3px 0 0 ${r}`),t.jsxs("li",{className:`${n} ${o}`,style:i,children:[a&&s.highlight_type==="pin"&&t.jsx(tn,{className:"h-4 w-4 flex-shrink-0",style:{color:r},"aria-label":"Fixado"}),a&&s.highlight_type==="arrow"&&t.jsx(sn,{className:"h-4 w-4 flex-shrink-0 animate-pulse",style:{color:r},"aria-hidden":!0}),(!a||s.highlight_type!=="pin"&&s.highlight_type!=="arrow")&&(e?t.jsx(zt,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}):t.jsx(Cs,{className:"h-4 w-4 text-primary flex-shrink-0"})),t.jsx("span",{className:"truncate flex-1",children:s.title}),a&&s.highlight_type==="badge"&&s.highlight_text&&t.jsx("span",{className:"text-[10px] uppercase font-bold px-2 py-0.5 rounded-full text-white shrink-0",style:{backgroundColor:r},children:s.highlight_text})]})},Tl=()=>{const{profile:s,hasExclusive:e}=Ae(),a=(s==null?void 0:s.plan)==="premium",[r,n]=m.useState([]),[o,i]=m.useState(null),l=async f=>{var p,d;if(!o){i(f.id);try{const{data:R}=await Y.auth.getSession(),_=(p=R.session)==null?void 0:p.access_token;if(!_){ka({title:"Sessão expirada",description:"Faça login novamente.",variant:"destructive"});return}const v=await fetch("https://moeqkadniceifgvckbli.supabase.co/functions/v1/download-book",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${_}`,apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1vZXFrYWRuaWNlaWZndmNrYmxpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzcxMzI3NDUsImV4cCI6MjA5MjcwODc0NX0.mWVOUd2ohww06nWx_GaIhBZHDy2dV2lsDDCvGSlZ0Js"},body:JSON.stringify({bookId:f.id})});if(!v.ok){const U=await v.json().catch(()=>({}));throw new Error(U.error||`HTTP ${v.status}`)}const g=await v.blob(),k=URL.createObjectURL(g),T=document.createElement("a");T.href=k,T.download=f.pdfFileName,document.body.appendChild(T),T.click(),T.remove(),URL.revokeObjectURL(k)}catch(R){ka({title:"Erro ao gerar download",description:(d=R==null?void 0:R.message)!=null?d:"Tente novamente em instantes.",variant:"destructive"})}finally{i(null)}}};m.useEffect(()=>{let f=!0;return Y.from("books").select("*").eq("is_active",!0).order("sort_order",{ascending:!0}).then(({data:p})=>{f&&n(p!=null?p:[])}),()=>{f=!1}},[]);const c=m.useMemo(()=>{const f={basic:[],premium:[],bonus:[]};for(const p of r)f[p.category].push(p);return Object.keys(f).forEach(p=>{f[p].sort((d,R)=>{const _=_s(d)&&d.highlight_type==="pin"?1:0,y=_s(R)&&R.highlight_type==="pin"?1:0;return _!==y?y-_:d.sort_order-R.sort_order})}),f},[r]),u=a||e,h=c.bonus.length>0;return t.jsx("div",{className:"max-w-5xl mx-auto space-y-6",children:t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:[t.jsx("h1",{className:"text-2xl font-extrabold mb-1",children:"Meus Livros"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Conteúdo incluído no seu plano ",t.jsx("strong",{children:a?"Premium":"Básico"}),"."]}),t.jsx("h2",{className:"font-bold mt-4 mb-3",children:"Pacote Básico"}),t.jsx("ul",{className:"space-y-3",children:Cl.map(f=>t.jsxs("li",{className:"flex items-center gap-3 sm:gap-4 p-3 sm:p-4 border rounded-xl bg-background hover:shadow-md transition-shadow",children:[t.jsx("img",{src:f.cover,alt:`Capa: ${f.title}`,loading:"lazy",decoding:"async",width:80,height:80,className:"h-16 w-16 sm:h-20 sm:w-20 rounded-lg object-cover border flex-shrink-0 bg-muted"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"font-semibold text-sm sm:text-base leading-snug line-clamp-2 mb-2",children:f.title}),t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx("button",{type:"button",onClick:()=>l(f),disabled:o===f.id,className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3 sm:px-4 h-9 sm:h-10 text-xs sm:text-sm font-bold text-white bg-[hsl(142,71%,45%)] hover:bg-[hsl(142,71%,40%)] active:scale-95 transition-all shadow-md hover:shadow-lg disabled:opacity-80 disabled:cursor-wait disabled:active:scale-100","aria-label":`Baixar PDF de ${f.title}`,children:o===f.id?t.jsxs(t.Fragment,{children:[t.jsx(en,{className:"h-4 w-4 animate-spin"}),t.jsx("span",{children:"Aguarde…"})]}):t.jsxs(t.Fragment,{children:[t.jsx(Ct,{className:"h-4 w-4"}),t.jsx("span",{children:"Baixar PDF"})]})}),t.jsxs("a",{href:f.extrasUrl,download:f.extrasFileName,className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-3 sm:px-4 h-9 sm:h-10 text-xs sm:text-sm font-bold border-2 border-[hsl(142,71%,45%)] text-[hsl(142,71%,35%)] hover:bg-[hsl(142,71%,45%)] hover:text-white active:scale-95 transition-all","aria-label":`Baixar capas e adesivos de ${f.title}`,children:[t.jsx(Ct,{className:"h-4 w-4"}),t.jsx("span",{children:f.extrasLabel})]})]})]})]},f.id))}),t.jsxs("h2",{className:"font-bold mt-6 mb-2 flex items-center gap-2",children:["Pacote Premium ",!a&&t.jsx(zt,{className:"h-4 w-4 text-muted-foreground"})]}),t.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:a?"Como cliente Premium, você tem acesso a bônus exclusivos além de todo o Pacote Básico acima.":"Bônus exclusivos do plano Premium. Faça upgrade para desbloquear o download."}),t.jsx(br,{isPremium:a}),u&&c.premium.length>0&&t.jsx("ul",{className:"divide-y border rounded-lg overflow-hidden mt-3",children:c.premium.map(f=>t.jsx(Ca,{b:f},f.id))}),h&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"font-bold mt-6 mb-2",children:"Bônus"}),t.jsx("ul",{className:"divide-y border rounded-lg overflow-hidden",children:c.bonus.map(f=>t.jsx(Ca,{b:f,locked:!u},f.id))})]})]})})},Sa=s=>{if(!s)return"Dispositivo desconhecido";const e=s.toLowerCase();return e.includes("iphone")?"iPhone":e.includes("ipad")?"iPad":e.includes("android")?"Android":e.includes("windows")?"Windows":e.includes("mac os")||e.includes("macintosh")?"macOS":e.includes("linux")?"Linux":"Outro dispositivo"},Ea=s=>new Date(s).toLocaleString("pt-BR",{dateStyle:"short",timeStyle:"short"}),Ol=()=>{const{user:s,profile:e}=Ae(),[a,r]=m.useState([]),[n,o]=m.useState(!0),[i,l]=m.useState(null),c=Ba(),u=(e==null?void 0:e.plan)==="premium",h=m.useCallback(async()=>{if(!s)return;o(!0);const{data:p,error:d}=await Y.from("user_devices").select("id, device_id, user_agent, first_seen_at, last_seen_at").eq("user_id",s.id).order("last_seen_at",{ascending:!1});d||r(p!=null?p:[]),o(!1)},[s]);m.useEffect(()=>{h()},[h]);const f=async p=>{if(p.device_id===c){if(!confirm("Este é o dispositivo atual. Ao revogar você será deslogado. Continuar?"))return}else if(!confirm(`Revogar acesso de "${Sa(p.user_agent)}"?`))return;l(p.id);const{error:d}=await Y.from("user_devices").delete().eq("id",p.id);if(l(null),d){alert("Erro ao revogar: "+d.message);return}if(p.device_id===c){await Y.auth.signOut(),window.location.href="/auth";return}await h()};return t.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:[t.jsx("div",{className:"flex items-start justify-between gap-3 mb-2",children:t.jsxs("div",{children:[t.jsxs("h1",{className:"text-2xl font-extrabold flex items-center gap-2",children:[t.jsx(za,{className:"h-6 w-6 text-primary"}),"Dispositivos"]}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:u?t.jsxs("span",{className:"inline-flex items-center gap-1",children:[t.jsx(kt,{className:"h-3.5 w-3.5 text-amber-500"}),"Plano Premium — acesso liberado em ",t.jsx("strong",{children:"todos"})," os dispositivos."]}):t.jsxs(t.Fragment,{children:["Plano Básico — acesso permitido somente no ",t.jsx("strong",{children:"primeiro"})," dispositivo registrado. Revogue para liberar entrada de outro aparelho."]})})]})}),n?t.jsx("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"Carregando..."}):a.length===0?t.jsx("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"Nenhum dispositivo registrado ainda."}):t.jsx("ul",{className:"divide-y border rounded-lg overflow-hidden mt-3",children:a.map(p=>{const d=p.device_id===c;return t.jsxs("li",{className:"p-4 flex items-center gap-3",children:[t.jsx(an,{className:"h-5 w-5 text-muted-foreground flex-shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"font-semibold flex items-center gap-2 flex-wrap",children:[Sa(p.user_agent),d&&t.jsx("span",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full",children:"Este dispositivo"})]}),t.jsxs("div",{className:"text-xs text-muted-foreground mt-0.5",children:["Primeiro acesso: ",Ea(p.first_seen_at)," · Último: ",Ea(p.last_seen_at)]}),t.jsxs("div",{className:"text-[10px] text-muted-foreground/70 truncate font-mono mt-0.5",children:["ID: ",p.device_id.slice(0,12),"…"]})]}),t.jsxs(Q,{variant:"outline",size:"sm",disabled:i===p.id,onClick:()=>f(p),children:[t.jsx(rn,{className:"h-4 w-4 mr-1"}),"Revogar"]})]},p.id)})}),!u&&a.length>=1&&t.jsxs("div",{className:"mt-4 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm",children:[t.jsx("strong",{className:"block mb-1",children:"Quer usar em mais de um aparelho?"}),"Faça upgrade para o ",t.jsx("strong",{children:"Premium"})," e libere acesso ilimitado em todos os dispositivos."]})]})})},Pl=/^[A-Za-z0-9.\-]{1,20}$/,Ll=()=>{var _;const{user:s,profile:e}=Ae(),a=(e==null?void 0:e.plan)==="premium",[r,n]=m.useState(""),[o,i]=m.useState(""),[l,c]=m.useState(!1),[u,h]=m.useState(null),f=(e==null?void 0:e.display_name)||((_=s==null?void 0:s.user_metadata)==null?void 0:_.display_name)||"—",p=(s==null?void 0:s.email)||"—",d=y=>y.replace(/[^A-Za-z0-9.\-]/g,"").slice(0,20),R=async y=>{if(y.preventDefault(),h(null),!Pl.test(r)){h({type:"err",text:"A senha deve ter até 20 caracteres: letras, números, ponto (.) ou hífen (-)."});return}if(r!==o){h({type:"err",text:"As senhas não coincidem."});return}c(!0);const{error:v}=await Y.auth.updateUser({password:r});if(c(!1),v){h({type:"err",text:v.message||"Erro ao atualizar senha."});return}n(""),i(""),h({type:"ok",text:"Senha atualizada com sucesso!"})};return t.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:[t.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[t.jsx(es,{className:"h-7 w-7 text-primary"}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-2xl font-extrabold",children:"Meu Perfil"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Suas informações de acesso e segurança da conta."})]})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[t.jsxs("div",{className:"rounded-lg border p-4 bg-muted/30",children:[t.jsx("div",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Nome"}),t.jsxs("div",{className:"font-semibold flex items-center gap-2",children:[t.jsx(es,{className:"h-4 w-4 text-muted-foreground"}),f]})]}),t.jsxs("div",{className:"rounded-lg border p-4 bg-muted/30",children:[t.jsx("div",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Email"}),t.jsxs("div",{className:"font-semibold flex items-center gap-2 break-all",children:[t.jsx(nn,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),t.jsx("span",{className:"truncate",children:p})]})]}),t.jsxs("div",{className:"rounded-lg border p-4 bg-muted/30 sm:col-span-2",children:[t.jsx("div",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Plano atual"}),t.jsx("div",{className:"font-semibold flex items-center gap-2",children:a?t.jsxs(t.Fragment,{children:[t.jsx(kt,{className:"h-4 w-4 text-amber-500"}),"Premium"]}):t.jsx(t.Fragment,{children:"Básico"})})]})]})]}),t.jsxs("section",{className:"bg-card rounded-2xl border p-6 shadow-sm",children:[t.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[t.jsx(Da,{className:"h-6 w-6 text-primary"}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-extrabold",children:"Trocar senha de acesso"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Use até 20 caracteres: letras, números, ponto (.) ou hífen (-)."})]})]}),t.jsxs("form",{onSubmit:R,className:"space-y-3 max-w-md",children:[t.jsxs("div",{children:[t.jsx($e,{htmlFor:"new-password",children:"Nova senha"}),t.jsx(Se,{id:"new-password",type:"text",value:r,onChange:y=>n(d(y.target.value)),placeholder:"ex: Ab12-cd.34",maxLength:20,autoComplete:"new-password",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,required:!0})]}),t.jsxs("div",{children:[t.jsx($e,{htmlFor:"confirm-password",children:"Confirmar nova senha"}),t.jsx(Se,{id:"confirm-password",type:"text",value:o,onChange:y=>i(d(y.target.value)),placeholder:"Repita a nova senha",maxLength:20,autoComplete:"new-password",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,required:!0})]}),u&&t.jsxs("div",{className:`flex items-start gap-2 rounded-lg p-3 text-sm ${u.type==="ok"?"bg-emerald-50 text-emerald-700 border border-emerald-200":"bg-red-50 text-red-700 border border-red-200"}`,role:"status",children:[u.type==="ok"?t.jsx(on,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}):t.jsx(ln,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:u.text})]}),t.jsx(Q,{type:"submit",disabled:l,className:"w-full sm:w-auto",children:l?"Salvando...":"Atualizar senha"})]})]})]})},Ml="mp_consent_v1",zl=()=>{const[s,e]=m.useState(!1);if(m.useEffect(()=>{try{const n=localStorage.getItem(Ml);n!=="granted"&&n!=="revoked"&&e(!0)}catch(n){}},[]),!s)return null;const a=()=>{Wa(),e(!1)},r=()=>{Ha(),e(!1)};return t.jsx("div",{role:"dialog","aria-live":"polite","aria-label":"Aviso de privacidade",className:"fixed bottom-0 inset-x-0 z-[9999] p-3 sm:p-4 bg-card/95 backdrop-blur border-t border-border shadow-lg",children:t.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col sm:flex-row items-start sm:items-center gap-3 text-sm",children:[t.jsxs("p",{className:"flex-1 text-foreground/90",children:["Usamos cookies e pixels (Meta) para medir o uso do site e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento."," ",t.jsx("a",{href:"/privacy-policy",className:"underline text-primary",children:"Saiba mais"}),"."]}),t.jsxs("div",{className:"flex gap-2 w-full sm:w-auto",children:[t.jsx("button",{type:"button",onClick:r,className:"flex-1 sm:flex-none h-10 px-4 rounded-md border border-border bg-muted/40 text-foreground text-sm font-medium hover:bg-muted/70 transition-colors",children:"Recusar"}),t.jsx("button",{type:"button",onClick:a,className:"flex-1 sm:flex-none h-10 px-4 rounded-md bg-primary text-primary-foreground text-sm font-semibold hover:opacity-90 transition-opacity",children:"Aceitar"})]})]})})},Dl=m.lazy(()=>ae(()=>import("./NotFound-CRKXZfFp.js"),__vite__mapDeps([13,1,3]))),Bl=m.lazy(()=>ae(()=>import("./PrivacyPolicy-D4Xdn6G9.js"),__vite__mapDeps([14,1,3,15]))),Fl=m.lazy(()=>ae(()=>import("./TermsOfService-Bxdog-jp.js"),__vite__mapDeps([16,1,3,15]))),Vl=m.lazy(()=>ae(()=>import("./Contact-Dpn7mFo1.js"),__vite__mapDeps([17,1,3,15]))),$l=m.lazy(()=>ae(()=>import("./Admin-8u1m2vRq.js").then(s=>s.A),__vite__mapDeps([18,1,5,6,3]))),Ul=m.lazy(()=>ae(()=>import("./AdminAuth-CDIr0Lo6.js"),__vite__mapDeps([19,1,3,2,4,5,6]))),Zl=m.lazy(()=>ae(()=>import("./PreviewDiscounts-tNebIO69.js"),__vite__mapDeps([20,1,3,2,4,5,6]))),ql=new Lr,Gl=()=>t.jsx(Mr,{client:ql,children:t.jsx(xn,{children:t.jsxs(Br,{children:[t.jsx(m.Suspense,{fallback:t.jsx("div",{className:"min-h-screen bg-background"}),children:t.jsxs(Fr,{children:[t.jsx(se,{path:"/",element:t.jsx(vo,{})}),t.jsx(se,{path:"/privacy-policy",element:t.jsx(Bl,{})}),t.jsx(se,{path:"/terms-of-service",element:t.jsx(Fl,{})}),t.jsx(se,{path:"/contact",element:t.jsx(Vl,{})}),t.jsx(se,{path:"/admin/login",element:t.jsx(Ul,{})}),t.jsx(se,{path:"/admin",element:t.jsx($l,{})}),t.jsx(se,{path:"/preview-discounts",element:t.jsx(Zl,{})}),t.jsx(se,{path:"/auth",element:t.jsx(Li,{})}),t.jsx(se,{path:"/auth/blocked",element:t.jsx(Mi,{})}),t.jsxs(se,{path:"/painel",element:t.jsx(bl,{}),children:[t.jsx(se,{index:!0,element:t.jsx(jl,{})}),t.jsx(se,{path:"exclusivo",element:t.jsx(kl,{})}),t.jsx(se,{path:"livros",element:t.jsx(Tl,{})}),t.jsx(se,{path:"dispositivos",element:t.jsx(Ol,{})}),t.jsx(se,{path:"perfil",element:t.jsx(Ll,{})})]}),t.jsx(se,{path:"*",element:t.jsx(Dl,{})})]})}),t.jsx(zl,{})]})})});Pr(document.getElementById("root")).render(t.jsx(Gl,{}));export{Q as B,Rs as C,_a as D,Se as I,$e as L,tc as R,ja as S,ae as _,sr as a,_i as b,I as c,bs as d,ys as e,ws as f,js as g,Ss as h,Jn as i,as as j,fl as k,Ql as l,ec as m,sc as n,Qs as o,Y as s,je as t,zn as u};