1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79561,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(54469),s=e.i(76644),i=e.i(65828),a=e.i(31597),l=e.i(86311),o=e.i(37727),c=e.i(75254);let u=(0,c.default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),d=(0,c.default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var f=e.i(14764),p=e.i(417),m=e.i(65582);let h=(0,c.default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);var y=e.i(84614),b=e.i(31278);e.s(["default",0,function(){let[e,c]=(0,r.useState)(!1),[v,x]=(0,r.useState)(!1),[g,w]=(0,r.useState)([]),[S,C]=(0,r.useState)(""),[j,k]=(0,r.useState)("rider"),[E,N]=(0,r.useState)(!1),O=(0,r.useRef)(null),_=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=_.current;if(!e)return;let t=null,r=new ResizeObserver(()=>n()),n=()=>{let n=document.querySelector(".CookieConsent");e.style.setProperty("--chat-lift",n?`${n.offsetHeight+10}px`:"0px"),n!==t&&(t&&r.unobserve(t),n&&r.observe(n),t=n)},s=new MutationObserver(n);return s.observe(document.body,{childList:!0}),window.addEventListener("resize",n),n(),()=>{r.disconnect(),s.disconnect(),window.removeEventListener("resize",n)}},[e]);let I={ref:_,"data-chat":e?"open":"closed",className:"fixed right-4 sm:right-6 z-[1000]",style:{bottom:"calc(1.5rem + var(--chat-lift, 0px))"}};(0,r.useEffect)(()=>{O.current?.scrollIntoView({behavior:"smooth"})},[g]);let A=async()=>{if(!S.trim()||E)return;let e={id:Date.now(),type:"user",content:S,timestamp:new Date};w(t=>[...t,e]),C(""),N(!0);try{let e=await fetch("/api/agent/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:S,user_type:j})}),t=await e.json(),r={id:Date.now()+1,type:"bot",content:t.answer,sources:Array.isArray(t.sources)?t.sources.filter(e=>e&&e.url):[],source:t.source,model_used:t.model_used,conversation_id:t.conversation_id,timestamp:new Date};w(e=>[...e,r])}catch(t){let e={id:Date.now()+1,type:"bot",content:"Sorry, I encountered an error. Please try again or contact [email protected]",source:"error",timestamp:new Date};w(t=>[...t,e])}finally{N(!1)}},R=async(e,t)=>{try{await fetch("/api/agent/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversation_id:e,is_helpful:t})})}catch(e){console.error("Error sending feedback:",e)}};return e?(0,t.jsx)("div",{...I,children:(0,t.jsxs)(i.Card,{className:`flex flex-col w-[min(20rem,calc(100vw-2rem))] md:w-96 shadow-xl transition-all duration-300 ${v?"h-14":""}`,style:v?void 0:{height:"min(500px, calc(100dvh - var(--chat-lift, 0px) - 7rem))"},children:[(0,t.jsxs)(i.CardHeader,{className:"p-3 border-b flex flex-row items-center justify-between space-y-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(h,{className:"h-5 w-5 text-primary"}),(0,t.jsx)(i.CardTitle,{className:"text-sm font-medium",children:"Spinr AI Assistant"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>x(!v),"aria-label":v?"Expand the assistant":"Minimise the assistant",children:v?(0,t.jsx)(d,{className:"h-4 w-4"}):(0,t.jsx)(u,{className:"h-4 w-4"})}),(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>c(!1),"aria-label":"Close the assistant",children:(0,t.jsx)(o.X,{className:"h-4 w-4"})})]})]}),!v&&(0,t.jsxs)(i.CardContent,{className:"p-0 flex flex-col flex-1 min-h-0",children:[(0,t.jsx)("div",{className:"p-3 border-b bg-gray-50",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"I am a:"}),(0,t.jsxs)(a.Select,{value:j,onValueChange:k,children:[(0,t.jsx)(a.SelectTrigger,{className:"w-24 h-8",children:(0,t.jsx)(a.SelectValue,{})}),(0,t.jsxs)(a.SelectContent,{className:"z-[1001]",children:[(0,t.jsx)(a.SelectItem,{value:"rider",children:"Rider"}),(0,t.jsx)(a.SelectItem,{value:"driver",children:"Driver"})]})]})]})}),(0,t.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto p-4 space-y-4",children:[0===g.length&&(0,t.jsxs)("div",{className:"text-center text-muted-foreground py-8",children:[(0,t.jsx)(h,{className:"h-12 w-12 mx-auto mb-4 text-primary"}),(0,t.jsx)("p",{className:"font-medium",children:"Hi! I am Spinr AI Assistant"}),(0,t.jsx)("p",{className:"text-sm mt-2",children:"Ask me anything about riding or driving with Spinr!"})]}),g.map(e=>(0,t.jsx)("div",{className:`flex ${"user"===e.type?"justify-end":"justify-start"}`,children:(0,t.jsx)("div",{className:`max-w-[80%] rounded-lg p-3 ${"user"===e.type?"bg-primary text-primary-foreground":"bg-gray-100 text-gray-900"}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:["bot"===e.type&&(0,t.jsx)(h,{className:"h-4 w-4 mt-0.5 text-primary flex-shrink-0"}),"user"===e.type&&(0,t.jsx)(y.User,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:e.content}),e.sources?.length>0&&(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:e.sources.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:e.url,className:"text-xs font-semibold underline underline-offset-2",children:e.title})},e.url))}),e.source&&"error"!==e.source&&(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-xs opacity-70",children:["Source: ",(e=>{switch(e){case"ai_agent":return"AI Agent";case"fallback_search":return"Keyword Search";case"cache":return"Cached";default:return e}}
1)(e.source)]}),e.conversation_id&&(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>R(e.conversation_id,!0),"aria-label":"This answer was helpful",children:(0,t.jsx)(p.ThumbsUp,{className:"h-3 w-3"})}),(0,t.jsx)(n.Button,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>R(e.conversation_id,!1),"aria-label":"This answer was not helpful",children:(0,t.jsx)(m.ThumbsDown,{className:"h-3 w-3"})})]})]})]})]})})},e.id)),E&&(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)("div",{className:"bg-gray-100 rounded-lg p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(h,{className:"h-4 w-4 text-primary"}),(0,t.jsx)(b.Loader2,{className:"h-4 w-4 animate-spin text-primary"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Thinking..."})]})})}),(0,t.jsx)("div",{ref:O})]}),(0,t.jsxs)("div",{className:"p-3 border-t",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Input,{value:S,onChange:e=>C(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),A())},placeholder:"Ask a question...",disabled:E,className:"flex-1"}),(0,t.jsx)(n.Button,{onClick:A,disabled:!S.trim()||E,size:"icon",children:(0,t.jsx)(f.Send,{className:"h-4 w-4"})})]}),(0,t.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-2 text-center leading-tight",children:["Spinr AI can make mistakes. Check important info. ",(0,t.jsx)("br",{}),"Powered by Spinr AI"]})]})]})]})}):(0,t.jsx)("div",{...I,children:(0,t.jsx)(n.Button,{onClick:()=>c(!0),className:"h-14 w-14 rounded-full shadow-lg bg-primary hover:bg-primary/90",size:"icon","aria-label":"Open the Spinr AI assistant",children:(0,t.jsx)(l.MessageSquare,{className:"h-6 w-6"})})})}],79561)},17634,e=>{"use strict";var t=e.i(43476),r=e.i(18566),n=e.i(71645),s=e.i(3303),i=e.i(55750);e.s(["default",0,function({position:e}){let a=(0,r.usePathname)(),[l,o]=(0,n.useState)([]),[c,u]=(0,n.use
1State)("");return((0,n.useEffect)(()=>{!async function(){let{data:t}=await i.supabase.from("seo_pages").select(`custom_${e}`).eq("path",a).maybeSingle();if(t&&t[`custom_${e}`]){let{scripts:r,nonScriptHtml:n}=function(e){if(!e)return{scripts:[],nonScriptHtml:""};let t=new DOMParser().parseFromString(e,"text/html"),r=t.querySelectorAll("script"),n=Array.from(r).map((e,t)=>({src:e.getAttribute("src")||null,innerHTML:e.innerHTML||null,id:e.getAttribute("id")||`custom-script-${t}-${Date.now()}`,async:e.hasAttribute("async")}));return r.forEach(e=>e.remove()),{scripts:n,nonScriptHtml:t.body.innerHTML+t.head.innerHTML}}(t[`custom_${e}`]);o(r),u(n)}else o([]),u("")}()},[a,e]),l.length||c&&"head"!==e)?(0,t.jsxs)(t.Fragment,{children:[c&&"head"!==e&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:c}}),l.map(r=>r.src?(0,t.jsx)(s.default,{id:r.id,src:r.src,strategy:"head"===e?"afterInteractive":"lazyOnload"},r.id):r.innerHTML?(0,t.jsx)(s.default,{id:r.id,strategy:"head"===e?"afterInteractive":"lazyOnload",dangerouslySetInnerHTML:{__html:r.innerHTML}},r.id):null)]}):null}])},49554,e=>{"use strict";let t;var r=e.i(43476),n=e.i(71645);function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var i=function e(t,r){function n(e,n,i){if(!(typeof document>"u")){"number"==typeof(i=s({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,!0!==i[l]&&(a+="="+i[l].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if(!(typeof document>"u"||arguments.length&&!e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},s=0;s<r.length;s++){var i=r[s].split("="),a=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(n[l]=t.read(a,l),e===l)break}catch{}}return e?n[e]:n}},remove:function(e,t){n(e,"",s({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,s({},this.attributes,t))},withConverter:function(t){return e(s({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let a=({condition:e,wrapper:t,children:r})=>e?t(r):r,l="bottom";var o=((t=o||{}).STRICT="strict",t.LAX="lax",t.NONE="none",t);let c="byCookieValue",u="CookieConsent",d={disableStyles:!1,hideOnAccept:!0,hideOnDecline:!0,location:l,visible:c,onAccept:e=>{},onDecline:()=>{},cookieName:u,cookieValue:"true",declineCookieValue:"false",setDeclineCookie:!0,buttonText:"I understand",declineButtonText:"I decline",debug:!1,expires:365,containerClasses:"CookieConsent",contentClasses:"",buttonClasses:"",buttonWrapperClasses:"",declineButtonClasses:"",buttonId:"rcc-confirm-button",declineButtonId:"rcc-decline-button",extraCookieOptions:{},disableButtonStyles:!1,enableDeclineButton:!1,flipButtons:!1,sameSite:o.LAX,ButtonComponent:({children:e,...t})=>n.default.createElement("button",{...t},e),overlay:!1,overlayClasses:"",onOverlayClick:()=>{},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{},customDeclineButtonProps:{},customButtonWrapperAttributes:{},style:{},buttonStyle:{},declineButtonStyle:{},contentStyle:{},overlayStyle:{}},f={visible:!1,style:{alignItems:"baseline",background:"#353535",color:"white",display:"flex",flexWrap:"wrap",justifyContent:"space-between",left:"0",position:"fixed",width:"100%",zIndex:"999"},buttonStyle:{background:"#ffd42d",border:"0",borderRadius:"0px",boxShadow:"none",color:"black",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},declineButtonStyle:{background:"#c12a2a",border:"0",borderRadius:"0px",boxShadow:"none",color:"#e5e5e5",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},contentStyle:{flex:"1 0 300px",margin:"15px"},overlayStyle:{position:"fixed",left:0,top:0,width:"100%",height:"100%",zIndex:"999",backgroundColor:"rgba(0,0,0,0.3)"}},p=e=>`${e}-legacy`,m=class extends n.Component{constructor(){super(...arguments),this.state=f,this.handleScroll=()=>{let{acceptOnScrollPercentage:e}={...d,...this.props},t=document.documentElement,r=document.body,n="scrollTop",s="scrollHeight";(t[n]||r[n])/((t[s]||r[s])-t.clientHeight)*100>e&&this.accept(!0)},this.removeScrollListener=()=>{let{acceptOnScroll:e}=this.props;e&&globalThis.removeEventListener("scroll",this.handleScroll)}}componentDidMount(){let{debug:e}=this.props;(void 0===this.getCookieValue()||e)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&globalThis.addEventListener("scroll",this.handleScroll,{passive:!0}))}componentWillUnmount(){this.removeScrollListener()}accept(e=!1){let{cookieName:t,cookieValue:r,hideOnAccept:n,onAccept:s}={...d,...this.props};this.setCookie(t,r),s(e??!1),n&&(this.setState({visible:!1}),this.removeScrollListener())}overlayClick(){let{acceptOnOverlayClick:e,onOverlayClick:t}={...d,...this.props};e&&this.accept(),t()}decline(){let{cookieName:e,declineCookieValue:t,hideOnDecline:r,onDecline:n,setDeclineCookie:s}={...d,...this.props};s&&this.setCookie(e,t),n(),r&&this.setState({visible:!1})}setCookie(e,t){let{extraCookieOptions:r,expires:n,sameSite:s}=this.props,{cookieSecurity:a}=this.props;void 0===a&&(a=!globalThis.location||"https:"===globalThis.location.protocol);let l={expires:n,...r,sameSite:s,secure:a};s===o.NONE&&i.set(p(e),t,l),i.set(e,t,l)}getCookieValue(){let{cookieName:e}=this.props;return((e=u)=>{let t=i.get(e);return void 0===t?i.get(p(e)):t})(e)}render(){switch(this.props.visible){case"hidden":return null;case c:if(!this.state.visible)return null}let{location:e,style:t,buttonStyle:r,declineButtonStyle:s,contentStyle:i,disableStyles:o,buttonText:u,declineButtonText:d,containerClasses:f,contentClasses:p,buttonClasse
1s:m,buttonWrapperClasses:h,declineButtonClasses:y,buttonId:b,declineButtonId:v,disableButtonStyles:x,enableDeclineButton:g,flipButtons:w,ButtonComponent:S,overlay:C,overlayClasses:j,overlayStyle:k,ariaAcceptLabel:E,ariaDeclineLabel:N,customContainerAttributes:O,customContentAttributes:_,customButtonProps:I,customDeclineButtonProps:A,customButtonWrapperAttributes:R}=this.props,P={},M={},T={},B={},L={};switch(o?(P=Object.assign({},t),M=Object.assign({},r),T=Object.assign({},s),B=Object.assign({},i),L=Object.assign({},k)):(P=Object.assign({},{...this.state.style,...t}),B=Object.assign({},{...this.state.contentStyle,...i}),L=Object.assign({},{...this.state.overlayStyle,...k}),x?(M=Object.assign({},r),T=Object.assign({},s)):(M=Object.assign({},{...this.state.buttonStyle,...r}),T=Object.assign({},{...this.state.declineButtonStyle,...s}))),e){case"top":P.top="0";break;case l:P.bottom="0"}let $=[];return g&&$.push(n.default.createElement(S,{key:"declineButton",style:T,className:y,id:v,"aria-label":N,onClick:()=>{this.decline()},...A},d)),$.push(n.default.createElement(S,{key:"acceptButton",style:M,className:m,id:b,"aria-label":E,onClick:()=>{this.accept()},...I},u)),w&&$.reverse(),n.default.createElement(a,{condition:C,wrapper:e=>n.default.createElement("div",{style:L,className:j,onClick:()=>{this.overlayClick()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),this.overlayClick())},role:"button",tabIndex:0,"aria-label":"Close cookie consent banner"},e)},n.default.createElement("div",{className:`${f}`,style:P,...O},n.default.createElement("div",{style:B,className:p,..._},this.props.children),n.default.createElement("div",{className:`${h}`,...R},$.map(e=>e))))}};m.defaultProps=d,e.s(["default",0,function(){return(0,r.jsx)(m,{location:"bottom",buttonText:"I Understand",ariaAcceptLabel:"I Understand",cookieName:"spinrCookieConsent",style:{background:"#2B373B"},buttonStyle:{color:"#ffffff",fontSize:"14px",fontWeight:"bold",borderRadius:"8px",padding:"10px 20px",background:"#db3344"},expires:150,children:"This website uses cookies to enhance the user experience."})}],49554)},81140,30030,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}],81140);var t=e.i(71645),r=e.i(43476);e.s(["createContext",0,function(e,n){let s=t.createContext(n),i=e=>{let{children:n,...i}=e,a=t.useMemo(()=>i,Object.values(i));return(0,r.jsx)(s.Provider,{value:a,children:n})};return i.displayName=e+"Provider",[i,function(r){let i=t.useContext(s);if(i)return i;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let s=[],i=()=>{let r=s.map(e=>t.createContext(e));return function(n){let s=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:s}}),[n,s])}};return i.scopeName=e,[function(n,i){let a=t.createContext(i),l=s.length;s=[...s,i];let o=n=>{let{scope:s,children:i,...o}=n,c=s?.[e]?.[l]||a,u=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(c.Provider,{value:u,children:i})};return o.displayName=n+"Provider",[o,function(r,s){let o=s?.[e]?.[l]||a,c=t.useContext(o);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=n.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])}};return n.scopeName=r.scopeName,n}(i,...n)]}],30030)},75830,e=>{"use strict";var t=e.i(71645),r=e.i(30030),n=e.i(20783),s=e.i(43476);function i(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var a;let e,l,o=(a=s,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}
1:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props);return s.type!==t.Fragment&&(c.ref=r?(0,n.composeRefs)(r,o):o),t.cloneElement(s,c)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),o=t.forwardRef((e,r)=>{let{children:n,...i}=e,o=t.Children.toArray(n),c=o.find(l);if(c){let e=c.props.children,n=o.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,s.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,s.jsx)(a,{...i,ref:r,children:n})});return o.displayName=`${e}.Slot`,o}var a=Symbol("radix.slottable");function l(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}e.s(["createCollection",0,function(e){let a=e+"CollectionProvider",[l,o]=(0,r.createContextScope)(a),[c,u]=l(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,s.jsx)(c,{scope:r,itemMap:a,collectionRef:i,children:n})};d.displayName=a;let f=e+"CollectionSlot",p=i(f),m=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=u(f,r),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,s.jsx)(p,{ref:l,children:i})});m.displayName=f;let h=e+"CollectionItemSlot",y="data-radix-collection-item",b=i(h),v=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...l}=e,o=t.default.useRef(null),c=(0,n.useComposedRefs)(r,o),d=u(h,i);return t.default.useEffect(()=>(d.itemMap.set(o,{ref:o,...l}),()=>void d.itemMap.delete(o))),(0,s.jsx)(b,{...{[y]:""},ref:c,children:a})});return v.displayName=h,[{Provider:d,Slot:m,ItemSlot:v},function(r){let n=u(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}],75830)},86318,e=>{"use strict";var t=e.i(71645);e.i(43476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},10772,34620,e=>{"use strict";var t=e.i(71645),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r],34620);var n=t[" useId ".trim().toString()]||(()=>void 0),s=0;e.s(["useId",0,function(e){let[i,a]=t.useState(n());return r(()=>{e||a(e=>e??String(s++))},[e]),e||(i?`radix-${i}`:"")}],10772)},48425,30207,e=>{"use strict";var t=e.i(71645),r=e.i(74080),n=e.i(20783),s=e.i(43476),i=Symbol("radix.slottable");function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var i,l;let o,c,u,d=(l=i=`Primitive.${r}`,(o=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var a;let e,l,o=(a=s,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props);return s.type!==t.Fragment&&(c.ref=r?(0,n.composeRefs)(r,o):o),t.cloneElement(s,c)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${l}.SlotClone`,c=o,(u=t.forwardRef((e,r)=>{let{children:n,...i}=e,l=t.Children.toArray(n),o=l.find(a);if(o){let e=o.props.children,n=l.map(r=>r!==o?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,s.jsx)(c,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,s.jsx)(c,{...i,ref:r,children:n})})).displayName=`${i}.Slot`,u),f=t.forwardRef((e,t)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(n?d:r,{...i,ref:t})});return f.displayName=`Primitive.${r}`,{...e,[r]:f}},{});e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>
1e.dispatchEvent(t))}],48425),e.s(["useCallbackRef",0,function(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}],30207)},69340,e=>{"use strict";var t=e.i(71645),r=e.i(34620);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:s=()=>{},caller:i}){let[a,l,o]=function({defaultProp:e,onChange:r}){let[s,i]=t.useState(e),a=t.useRef(s),l=t.useRef(r);return n(()=>{l.current=r},[r]),t.useEffect(()=>{a.current!==s&&(l.current?.(s),a.current=s)},[s,a]),[s,i,l]}({defaultProp:r,onChange:s}),c=void 0!==e,u=c?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,i])}return[u,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else l(t)},[c,e,l,o])]}],69340)},57215,e=>{"use strict";var t=e.i(47167),r=e.i(71645),n=e.i(18566);function s(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function l(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!n.current){let r=function(e={},t){var r;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:n,src:i,dataset:l}=function(e,t){var r,n;let i=e;if(t)try{i={...null==(r=JSON.parse(t))?void 0:r.speedInsights,...e}}catch{}let l={sdkn:"@vercel/speed-insights"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.0"};return i.sampleRate&&(l.sampleRate=i.sampleRate.toString()),i.route&&(l.route=i.route),s()&&!1===i.debug&&(l.debug="false"),i.dsn&&(l.dsn=i.dsn),i.endpoint?l.endpoint=a(i.endpoint):i.basePath&&(l.endpoint=a(`${i.basePath}/speed-insights/vitals`)),{src:(n=i).scriptSrc?a(n.scriptSrc):s()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":n.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":n.basePath?a(`${n.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:i.beforeSend,dataset:l}}(e,t);if(document.head.querySelector(`script[src*="${i}"]`))return null;n&&(null==(r=window.si)||r.call(window,"beforeSend",n));let o=document.createElement("script");for(let[e,t]of(o.src=i,o.defer=!0,Object.entries(l)))o.dataset[e]=t;return o.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(o),{setRoute:e=>{o.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());r&&(n.current=r.setRoute)}},[e]),(0,r.useEffect)(()=>{n.current&&e.route&&n.current(e.route)},[e.route]),null}function o(e){let s=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let s=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!s)return r;let a=r;try{let e=Object.entries(s);for(let[t,r]of e)if(!Array.isArray(r)){let e=i(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=i(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch{return r}})();return r.default.createElement(l,{route:s,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"e83af453c72e93d5/script.js","viewEndpoint":"e83af453c72e93d5/view","eventEndpoint":"e83af453c72e93d5/event","sessionEndpoint":"e83af453c72e93d5/session"},"speedInsights":{"scriptSrc":"b54e9cf42b9fd236/script.js","endpoint":"b54e9cf42b9fd236/vitals"}}'}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(o,{...e}))}])},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],43531)},31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278)},86311,e=>{"use strict";let t=(0,e.i(75254).default)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);e.s(["MessageSquare",0,t],86311)},14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],14764)},417,65582,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);e.s(["ThumbsUp",0,r],417);let n=(0,t.default)("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);e.s(["ThumbsDown",0,n],65582)},84614,e=>{"use strict";let t=(0,e.i(75254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],84614)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},19083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,l={"&":"&",'"':""","'":"'","<":"<",">":">"},o=/[&"'<>]/g;function c(e){return e.replace(a,e=>i[e])}function u(e){return e.replace(o,e=>l[e])}},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(55682),a=e.r(90809),l=e.r(43476),o=i._(e.r(74080)),c=a._(e.r(71645)),u=e.r(42732),d=e.r(22737),f=e.r(8341),p=e.r(19083),m=new Map,h=new Set,y=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:i,children:a="",strategy:l="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&h.has(f))return;if(m.has(t)){h.add(f),m.get(t).then(n,c);return}let p=()=>{s&&s(),h.add(f)},y=document.createElement("script"),b=new Promise((e,t)=>
1{y.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(y.innerHTML=i.__html||"",p()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",p()):t&&(y.src=t,m.set(t,b)),(0,d.setAttributesFromProps)(y,e),"worker"===l&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",l),u&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(y)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}):y(e)}function v(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function x(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:s=null,strategy:i="afterInteractive",onError:a,stylesheets:d,...m}=e,{updateScripts:b,scripts:v,getIsSsr:x,appDir:g,nonce:w}=(0,c.useContext)(u.HeadManagerContext);w=m.nonce||w;let S=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;S.current||(s&&e&&h.has(e)&&s(),S.current=!0)},[s,t,r]);let C=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!C.current){if("afterInteractive"===i)y(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>y(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}));C.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(b?(v[i]=(v[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:s,onError:a,...m,nonce:w}]),b(v)):x&&x()?h.add(t||r):x&&!x()&&y({...e,nonce:w})),g){if(d&&d.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return o.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...m,id:t}]))})`}});"afterInteractive"===i&&r&&o.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let g=x;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(79520)},18566,(e,t,r)=>{t.exports=e.r(76562)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.