1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96923,e=>{"use strict";var t=e.i(43476),r=e.i(40042),n=e.i(97815),a=e.i(63349),i=e.i(11707),l=e.i(43715),s=e.i(71645);class o extends s.default.Component{state={hasError:!1,error:null,errorInfo:null};static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,t){console.error("Uncaught error:",e,t),this.setState({errorInfo:t})}render(){return this.state.hasError?(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-[#050505] p-4",children:(0,t.jsxs)("div",{className:"max-w-md w-full bg-white dark:bg-neutral-900 rounded-2xl shadow-xl p-8 border border-red-200 dark:border-red-900/30",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-red-600 mb-4",children:"Une erreur est survenue"}),(0,t.jsx)("p",{className:"text-neutral-600 dark:text-neutral-400 mb-6",children:"L'application a rencontré un problème inattendu."}),(0,t.jsxs)("div",{className:"bg-neutral-100 dark:bg-black p-4 rounded-lg overflow-auto max-h-48 text-xs font-mono mb-6",children:[(0,t.jsx)("p",{className:"text-red-500 font-bold mb-2",children:this.state.error?.toString()}),(0,t.jsx)("pre",{className:"text-neutral-500",children:this.state.errorInfo?.componentStack})]}),(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"w-full py-3 px-4 bg-[#FFC20E] hover:bg-[#FFD23F] text-black font-bold rounded-xl transition-colors",children:"Recharger la page"})]})}):this.props.children}}(0,l.initPostHog)(),e.s(["Providers",0,function({children:e}){return(0,t.jsx)(o,{children:(0,t.jsx)(r.SettingsProvider,{children:(0,t.jsx)(n.AuthProvider,{children:(0,t.jsx)(a.RouterProvider,{children:(0,t.jsx)(i.ToastProvider,{children:e})})})})})}],96923)},11707,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(69638),a=e.i(78894),i=e.i(73884),l=e.i(52571),s=e.i(37727);let o=(0,r.createContext)({showToast:()=>{}}),c={success:n.CheckCircle,error:i.XCircle,warning:a.AlertTriangle,info:l.Info},u={success:{bg:"bg-[#0a0a0a]/95 dark:bg-[#0a0a0a]/95",border:"border-green-500/30",icon:"text-green-400",bar:"bg-green-500"},error:{bg:"bg-[#0a0a0a]/95 dark:bg-[#0a0a0a]/95",border:"border-red-500/30",icon:"text-red-400",bar:"bg-red-500"},warning:{bg:"bg-[#0a0a0a]/95 dark:bg-[#0a0a0a]/95",border:"border-[#FFC20E]/30",icon:"text-[#FFC20E]",bar:"bg-[#FFC20E]"},info:{bg:"bg-[#0a0a0a]/95 dark:bg-[#0a0a0a]/95",border:"border-blue-500/30",icon:"text-blue-400",bar:"bg-blue-500"}},d=({toast:e,onDismiss:r})=>{let n=u[e.type],a=c[e.type];return(0,t.jsxs)("div",{className:`flex items-start gap-3 px-4 py-3 rounded-xl border ${n.bg} ${n.border} backdrop-blur-xl shadow-2xl shadow-black/40 min-w-[320px] max-w-[440px] animate-in slide-in-from-top-3 fade-in duration-300 relative overflow-hidden`,children:[(0,t.jsx)("div",{className:`absolute top-0 left-0 w-full h-[2px] ${n.bar}`}),(0,t.jsx)(a,{className:`${n.icon} shrink-0 mt-0.5`,size:18}),(0,t.jsx)("p",{className:"text-sm text-white/90 font-medium flex-1 leading-relaxed",children:e.message}),(0,t.jsx)("button",{onClick:()=>r(e.id),className:"shrink-0 p-0.5 rounded-md text-white/40 hover:text-white/80 hover:bg-white/10 transition-colors",children:(0,t.jsx)(s.X,{size:14})})]})};e.s(["ToastProvider",0,({children:e})=>{let[n,a]=(0,r.useState)([]),i=(0,r.useRef)(0),l=(0,r.useCallback)(e=>{a(t=>t.filter(t=>t.id!==e))},[]),s=(0,r.useCallback)((e,t="info")=>{let r=++i.current;a(n=>[...n,{id:r,message:e,type:t}]),setTimeout(()=>l(r),4500)},[l]);return(0,t.jsxs)(o.Provider,{value:{showToast:s},children:[e,n.length>0&&(0,t.jsx)("div",{className:"fixed top-6 right-6 z-[99999] flex flex-col gap-3 pointer-events-auto",children:n.map(e=>(0,t.jsx)(d,{toast:e,onDismiss:l},e.id))})]})},"useToast",0,()=>(0,r.useContext)(o)])},63349,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),a=e.i(43715);let i=(0,r.createContext)(void 0),l=({onChange:e})=>{let t=(0,n.useSearchParams)().toString();return(0,r.useEffect)(()=>{e(t)},[t,e]),null};e.s(["RouterProvider",0,({children:e})=>{let s=(0,n.useRouter)(),o=(0,n.usePathname)()||"/",[c,u]=(0,r.useState)(""),d="/en"===o?"/":o.startsWith("/en/")?o.slice(3):o,f="/"===d?"landing":d.substring(1).split("/")[0];d.startsWith("/blog/")&&"/blog"!==d&&(f="blog-post");let b=["login","dashboard","simulateur","checkout","blog","blog-post"].includes(f)?f:"landing",p=(0,r.useMemo)(()=>{let e={};
1return new URLSearchParams(c).forEach((t,r)=>{let n=Number(t);e[r]=isNaN(n)||""===t.trim()?t:n}),"blog-post"===f&&(e.id=d.replace("/blog/","")),e},[c,f,d]);return(0,r.useEffect)(()=>{(0,a.capturePageView)(b)},[b]),(0,t.jsxs)(i.Provider,{value:{currentPage:b,pageProps:p,navigate:(e,t={})=>{let r="/",n=new URLSearchParams;"blog-post"===e&&t.slug?r=`/blog/${t.slug}`:"landing"!==e&&(r=`/${e}`),Object.keys(t).forEach(e=>{void 0!==t[e]&&null!==t[e]&&"slug"!==e&&n.append(e,String(t[e]))});let a=n.toString(),i=a?`${r}?${a}`:r;s.push(i)}},children:[(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(l,{onChange:u})}),e]})},"useRouter",0,()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useRouter must be used within a RouterProvider");return e}])},69638,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,t],69638)},73884,e=>{"use strict";let t=(0,e.i(75254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,t],73884)},52571,e=>{"use strict";let t=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],52571)},78894,e=>{"use strict";let t=(0,e.i(75254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],78894)},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return l},requestIdleCallback:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});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)},l="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 l},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},l=/[&><\u2028\u2029]/g,s={"&":"&",'"':""","'":"'","<":"<",">":">"},o=/[&"'<>]/g;function c(e){return e.replace(l,e=>i[e])}function u(e){return e.replace(o,e=>s[e])}},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(55682),l=e.r(90809),s=e.r(43476),o=i._(e.r(74080)),c=l._(e.r(71645)),u=e.r(42732),d=e.r(22737),f=e.r(8341),b=e.r(19083),p=new Map,g=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:i,children:l="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&g.has(f))return;if(p.has(t)){g.add(f),p.get(t).then(n,c);return}let b=()=>{a&&a(),g.add(f)},h=document.createElement("script"),m=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),n&&n.call(this,t),b()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(h.innerHTML=i.__html||"",b()):l?(h.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):"",b()):t&&(h.src=t,p.set(t,m)),(0,d.setAttributesFromProps)(h,e),"worker"===s&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",s),u&&(e=>
1{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(h)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function x(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");g.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:i="afterInteractive",onError:l,stylesheets:d,...p}=e,{updateScripts:m,scripts:x,getIsSsr:y,appDir:v,nonce:k}=(0,c.useContext)(u.HeadManagerContext);k=p.nonce||k;let j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;j.current||(a&&e&&g.has(e)&&a(),j.current=!0)},[a,t,r]);let w=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!w.current){if("afterInteractive"===i)h(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));w.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(m?(x[i]=(x[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:l,...p,nonce:k}]),m(x)):y&&y()?g.add(t||r):y&&!y()&&h({...e,nonce:k})),v){if(d&&d.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:k,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,b.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:k,crossOrigin:p.crossOrigin}:{as:"script",nonce:k,crossOrigin:p.crossOrigin}),(0,s.jsx)("script",{nonce:k,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,b.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===i&&r&&o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:k,crossOrigin:p.crossOrigin}:{as:"script",nonce:k,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("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)}]);
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.