1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7300],{47300:(e,t,a)=>{a.d(t,{P3:()=>N,XR:()=>c.XR,XV:()=>c.XV,X3:()=>j});var r=a(95155),s=a(12115),n=a(66766),o=a(52596);function i(){return(0,r.jsxs)("svg",{className:"hero-noise","aria-hidden":!0,children:[(0,r.jsxs)("filter",{id:"hero-grain",children:[(0,r.jsx)("feTurbulence",{type:"fractalNoise",baseFrequency:"2",numOctaves:"3",stitchTiles:"stitch"}),(0,r.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0"})]}),(0,r.jsx)("rect",{width:"100%",height:"100%",filter:"url(#hero-grain)"})]})}function l(){let e=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let t=e.current;if(!t)return;let a=window.matchMedia("(prefers-reduced-motion: reduce)").matches,r=window.matchMedia("(hover: none)").matches||window.innerWidth<1024;if(a||r)return;let s=t.closest("section");if(!s)return;let n=t.getContext("2d",{alpha:!0});if(!n)return;let o=Math.random(),i=Math.min(window.devicePixelRatio||1,2),l=[],c=0,d=0,h={x:-1e4,y:-1e4},u={x:-1e4,y:-1e4},m=0,f=!1,p=()=>{let e=s.getBoundingClientRect();c=e.width,d=e.height,t.width=Math.round(c*i),t.height=Math.round(d*i),t.style.width="".concat(c,"px"),t.style.height="".concat(d,"px"),n.setTransform(i,0,0,i,0,0);let a=Math.floor(1e6*o)>>>0,r=()=>(a=Math.imul(1664525,a)+0x3c6ef35f>>>0)/0x100000000,h=[];for(let e=14;e<d;e+=14)for(let t=14;t<c;t+=14)h.push({baseX:t,baseY:e,parallaxStrength:.55+.55*r()});l=h,g()},g=()=>{for(let e of(n.clearRect(0,0,c,d),n.fillStyle="rgb(8, 55, 72)",n.globalAlpha=.099,l)){let t=u.x-e.baseX,a=u.y-e.baseY,r=Math.hypot(t,a),s=0,o=0;if(r<220&&r>.001){let n=1-r/220,i=n*n*e.parallaxStrength*3;s=t/r*i,o=a/r*i}n.beginPath(),n.arc(e.baseX+s,e.baseY+o,1.2,0,2*Math.PI),n.fill()}n.globalAlpha=1},x=()=>{if(m=0,!f)return;let e=h.x-u.x,t=h.y-u.y;if(u.x+=.2*e,u.y+=.2*t,g(),.05>Math.abs(e)&&.05>Math.abs(t)){u.x=h.x,u.y=h.y,g(),f=!1;return}m=requestAnimationFrame(x)},y=()=>{f||(f=!0,m=requestAnimationFrame(x))},w=e=>{let t=s.getBoundingClientRect();h.x=e.clientX-t.left,h.y=e.clientY-t.top,y()},b=()=>{h.x=-1e4,h.y=-1e4,y()};p(),s.dataset.canvasDots="true";let v=new ResizeObserver(p);return v.observe(s),window.addEventListener("mousemove",w,{passive:!0}),window.addEventListener("mouseleave",b),()=>{f=!1,m&&cancelAnimationFrame(m),v.disconnect(),window.removeEventListener("mousemove",w),window.removeEventListener("mouseleave",b),delete s.dataset.canvasDots}},[]),(0,r.jsx)("canvas",{ref:e,className:"hero-dot-canvas","aria-hidden":!0})}var c=a(88834);function d(e){return"rain"===e||"thunderstorm"===e?"rain":"snow"===e?"snow":"idle"}let h={calm:{target:42,speedMul:.55,spawnBoost:0},build:{target:95,speedMul:1.05,spawnBoost:.35},storm:{target:160,speedMul:1.85,spawnBoost:.85}};function u(){let e=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let t=e.current;if(!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let a=t.closest("section");if(!a)return;let r=t.getContext("2d",{alpha:!0});if(!r)return;let s=Math.min(window.devicePixelRatio||1,2),n=0,o=0,i=d(a.dataset.weather),l=[],u=[],m=0,f=!1,p=!1,g=0,x=0,y="calm",w=null,b=()=>Math.random();(()=>{let e=new Image;return e.decoding="async",e.src="/fig/snowflake.svg",e.onload=()=>{w=e}})();let v=e=>{let t=4+14*b(),a=t>7.5&&b()>.35;return{x:b()*n,y:e?-t-b()*o*.35:b()*o,size:t,speedY:.35+.9*b()+.04*t,swayAmp:10+34*b(),swayFreq:.004+.012*b(),swayPhase:b()*Math.PI*2,rot:b()*Math.PI*2,rotSpeed:(b()-.5)*.04,opacity:.45+.45*b(),useSvg:a}},j=(e,t)=>{let a=h[e].target;if(t&&0!==u.length)if(u.length<a){let e=a-u.length;for(let t=0;t<e;t++)u.push(v(!0))}else u.length>a&&(u.length=a);else u=Array.from({length:a},()=>v(!1));l=[],y=e},N=()=>{"rain"===i?(l=Array.from({length:140},()=>{let e=8+14*b();return{x:b()*n,y:b()*o,length:1.3*e+6*b(),speedY:e,speedX:1.4+1.2*b(),opacity:.22+(e-8)/14*.35}}),u=[]):"snow"===i?(x=performance.now(),j("calm",!1)):(l=[],u=[])},M=()=>{let e=a.getBoundingClientRect();n=e.width,o=e.height,t.width=Math.round(n*s),t.height=Math.round(o*s),t.style.width="".concat(n,"px"),t.style.height="".concat(o,"px"),r.setTransform(s,0,0,s,0,0),"snow"===i?j(y,!0):N()},C=(e,t,a)=>{let s=(0,c.Xg)(document.documentElement.dataset.heroPhase);if(r.globalAlpha=s?e.opacity:Math.min(1,e.opacity+.2),e.useSvg&&(null==w?void 0:w.complete)&&w.naturalWi
1dth>0){r.save(),r.translate(t,a),r.rotate(e.rot);let n=e.size*(s?1:1.15);s||(r.filter="brightness(0.72) saturate(0.4)"),r.drawImage(w,-n/2,-n/2,n,n),r.filter="none",r.restore()}else{let n=e.size*(s?.3:.38),o=r.createRadialGradient(t,a,0,t,a,n);s?(o.addColorStop(0,"rgba(255,255,255,0.95)"),o.addColorStop(.55,"rgba(220,245,255,0.7)"),o.addColorStop(1,"rgba(255,255,255,0)")):(o.addColorStop(0,"rgba(255,255,255,0.95)"),o.addColorStop(.4,"rgba(190,210,225,0.85)"),o.addColorStop(1,"rgba(140,165,185,0)")),r.fillStyle=o,r.beginPath(),r.arc(t,a,n,0,2*Math.PI),r.fill()}},S=e=>{if(m=0,f){if(e-g<28){m=requestAnimationFrame(S);return}if(g=e,r.clearRect(0,0,n,o),"rain"===i){for(let e of(r.lineCap="round",r.strokeStyle="rgba(220, 230, 248, 1)",l)){e.x+=e.speedX,e.y+=e.speedY,e.y>o+e.length?(e.y=-e.length,e.x=b()*n):e.x>n&&(e.x-=n+e.length),r.globalAlpha=e.opacity,r.lineWidth=.9+(e.speedY-8)/14*.6,r.beginPath();let t=e.x-e.speedX*(e.length/e.speedY),a=e.y-e.length;r.moveTo(e.x,e.y),r.lineTo(t,a),r.stroke()}r.globalAlpha=1}else if("snow"===i){var t;let a=(t=e-x)<2800?"calm":t<5800?"build":"storm";a!==y&&j(a,!0);let{speedMul:s,spawnBoost:i}=h[y];if("calm"!==y){let e="storm"===y?.14:.07,t=r.createLinearGradient(0,.55*o,0,o);t.addColorStop(0,"rgba(220,240,255,0)"),t.addColorStop(1,"rgba(230,245,255,".concat(e,")")),r.fillStyle=t,r.fillRect(0,.55*o,n,.45*o)}for(let e of u){e.y+=e.speedY*s,e.rot+=e.rotSpeed*(.7+.4*s);let t=e.x+Math.sin(e.y*e.swayFreq+e.swayPhase)*e.swayAmp;e.y>o+e.size&&(e.y=-e.size-40*b(),e.x=b()*n,e.swayPhase=b()*Math.PI*2,i>0&&b()<.15*i&&(e.y=b()*o*.25)),C(e,t,e.y)}r.globalAlpha=1}m=requestAnimationFrame(S)}},E=()=>{f||"idle"===i||!p||document.hidden||(f=!0,g=0,m=requestAnimationFrame(S))},F=()=>{f=!1,m&&cancelAnimationFrame(m),m=0},R=()=>{p&&!document.hidden?E():F()},z=new IntersectionObserver(e=>{let[t]=e;p=t.isIntersecting,R()});z.observe(a),document.addEventListener("visibilitychange",R),M();let O=new MutationObserver(()=>{let e=d(a.dataset.weather);e!==i&&(i=e,N(),r.clearRect(0,0,n,o),"idle"===i?F():E())});O.observe(a,{attributes:!0,attributeFilter:["data-weather"]});let k=new ResizeObserver(M);return k.observe(a),"idle"!==i&&E(),()=>{F(),O.disconnect(),k.disconnect(),z.disconnect(),document.removeEventListener("visibilitychange",R)}},[]),(0,r.jsx)("canvas",{ref:e,className:"hero-weather-canvas","aria-hidden":!0})}function m(e){switch(e){case"pre-dawn":case"night":return null;case"dawn":return .08;case"morning":return .28;case"midday":return .5;case"dusk":return .9;default:return e}}function f(e){switch(e){case"night":return .45;case"pre-dawn":return .85;case"dusk":return .12;case"dawn":case"morning":case"midday":return null;default:return e}}function p(e){let{phase:t}=e,a=(0,s.useRef)(null),n=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=a.current,r=n.current;if(!e||!r)return;let s=e.closest("section");if(!s)return;o.current=s;let i=(e,t,a)=>{let r=s.getBoundingClientRect();if(!r.width)return;let n=.95*r.width,o=r.left+r.width/2,i=r.top+r.height,l=e.offsetWidth||1e3,c=e.offsetHeight||1e3;for(let t of e.getAnimations())t.cancel();if(null==t){let t=o-r.left-l/2,a=i-.6*n-r.top-c/2;e.dataset.orbVisible="false",e.animate([{transform:"translate(".concat(t,"px, ").concat(a,"px)")}],{duration:1,fill:"forwards"});return}e.dataset.orbVisible="true";let d=function(e,t){let a=e*Math.PI;return{x:-Math.cos(a)*t,y:Math.sin(a)*t}}(t,n),h=o+d.x-r.left-l/2,u=i-d.y-r.top-c/2,m=getComputedStyle(e).transform,f="translate(".concat(h,"px, ").concat(u,"px)");if(m&&"none"!==m){let e=m.match(/matrix\([^,]+,[^,]+,[^,]+,[^,]+,\s*([^,]+),\s*([^)]+)\)/);e&&(f="translate(".concat(parseFloat(e[1]),"px, ").concat(parseFloat(e[2]),"px)"))}if(!a)return void e.animate([{transform:"translate(".concat(h,"px, ").concat(u,"px)")}],{duration:1,fill:"forwards"});e.animate([{transform:f},{transform:"translate(".concat(h,"px, ").concat(u,"px)")}],{duration:3200,easing:"cubic-bezier(0.16, 0.84, 0.4, 1)",fill:"both"})};i(e,m(t),!0),i(r,f(t),!0);let l=()=>{i(e,m(t),!1),i(r,f(t),!1)};return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:a,className:"hero-sun-orb","data-hero-orb":"sun","data-orb-visible":"false","aria-hidden":!0}),(0,r.jsx)("div",{ref:n,className:"hero-moon-orb","data-hero-orb":"moon","data-orb-visible":"false","aria-hidden":!0})]})}function g(){return(0,r.jsx)("div",{className:"hero-rays","aria-hidden":!0,
1children:(0,r.jsxs)("svg",{className:"hero-rays-svg",width:"1112",height:"1185",viewBox:"0 0 1112 1185",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("ellipse",{className:"hero-rays-beam",cx:"1017.06",cy:"384.375",rx:"643.04",ry:"235.325",transform:"rotate(-60 1017.06 384.375)",fill:"url(#hero-ray-0)",fillOpacity:"0.4"}),(0,r.jsx)("ellipse",{className:"hero-rays-beam",cx:"902.841",cy:"298.866",rx:"643.04",ry:"235.325",transform:"rotate(-45 902.841 298.866)",fill:"url(#hero-ray-1)",fillOpacity:"0.4"}),(0,r.jsx)("ellipse",{className:"hero-rays-beam",cx:"1148.79",cy:"440.866",rx:"643.04",ry:"235.325",transform:"rotate(-75 1148.79 440.866)",fill:"url(#hero-ray-2)",fillOpacity:"0.4"}),(0,r.jsx)("ellipse",{className:"hero-rays-beam",cx:"643.04",cy:"235.325",rx:"643.04",ry:"235.325",transform:"matrix(0.866025 -0.5 -0.5 -0.866025 383.472 716.154)",fill:"url(#hero-ray-3)",fillOpacity:"0.4"}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"hero-ray-0",x1:"374.022",y1:"384.375",x2:"1660.1",y2:"384.375",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#37EB05",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#37EB05"})]}),(0,r.jsxs)("linearGradient",{id:"hero-ray-1",x1:"259.801",y1:"298.866",x2:"1545.88",y2:"298.866",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#37EB05",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#37EB05"})]}),(0,r.jsxs)("linearGradient",{id:"hero-ray-2",x1:"505.752",y1:"440.866",x2:"1791.83",y2:"440.866",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#37EB05",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#37EB05"})]}),(0,r.jsxs)("linearGradient",{id:"hero-ray-3",x1:"0",y1:"235.325",x2:"1286.08",y2:"235.325",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FBFF00",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#FBFF00"})]})]})]})})}function x(e){let{phase:t}=e,[a,n]=(0,s.useState)(null),o=(0,s.useRef)(0);if((0,s.useEffect)(()=>{if("night"!==t)return void n(null);if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=window.setTimeout(()=>{o.current+=1;let e=o.current;n({id:e,top:14+e%3*7,left:78+e%4*4,angle:-7-e%3*2.5,distance:52+e%3*8,durationMs:1350+e%3*120})},1600);return()=>window.clearTimeout(e)},[t]),!a||"night"!==t)return null;let i={top:"".concat(a.top,"%"),left:"".concat(a.left,"%"),"--meteor-angle":"".concat(a.angle,"deg"),"--meteor-dx":"".concat(-a.distance,"vw"),"--meteor-dur":"".concat(a.durationMs,"ms")};return(0,r.jsx)("span",{className:"hero-meteor",style:i,"aria-hidden":!0,children:(0,r.jsx)("span",{className:"hero-meteor-flight",children:(0,r.jsxs)("span",{className:"hero-meteor-body",children:[(0,r.jsx)("span",{className:"hero-meteor-bloom"}),(0,r.jsx)("span",{className:"hero-meteor-core"}),(0,r.jsx)("span",{className:"hero-meteor-head"}),(0,r.jsx)("span",{className:"hero-meteor-spark hero-meteor-spark-a"}),(0,r.jsx)("span",{className:"hero-meteor-spark hero-meteor-spark-b"})]})})},a.id)}let y=[{src:"/fig/hero-mountains/sky-bg.webp",width:1400,height:516,className:"hero-mountain-sky absolute inset-x-0 bottom-0 h-auto w-full"},{src:"/fig/hero-mountains/hills-bg.webp",width:1400,height:482,className:"hero-mountain-hills relative h-auto w-full"},{src:"/fig/hero-mountains/bushes-fg.webp",width:1400,height:277,className:"hero-mountain-bushes absolute inset-x-0 bottom-0 h-auto w-full"}],w=()=>(0,r.jsx)("div",{className:"hero-mountains pointer-events-none absolute inset-x-0 bottom-0 z-[6]",children:y.map(e=>(0,r.jsx)(n.default,{src:e.src,alt:"",width:e.width,height:e.height,priority:!0,sizes:"100vw",className:e.className},e.src))}),b=["dawn","morning","midday","dusk","night","pre-dawn"],v=["clouds","clear","fog","rain","snow","thunderstorm","clouds"];function j(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cycle",[a,r]=(0,s.useState)("night"===t?"night":"dawn"),[n,o]=(0,s.useState)("clouds"),[i,l]=(0,s.useState)(0);return(0,s.useLayoutEffect)(()=>
1{if(!e)return;let a="night"===t?"night":"undefined"==typeof document?"dawn":document.documentElement.classList.contains("dark")?"night":"dawn";if(r(a),window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void o("clouds");let s=0,n=b.indexOf(a),i=0,c=()=>{i=(i+1)%v.length;let e=v[i];"night"!==t&&(n=(n+1)%b.length,r(b[n])),l(i),o(e),s=window.setTimeout(c,"snow"===e?9600:7e3)};return s=window.setTimeout(c,7e3),()=>window.clearTimeout(s)},[e,t]),(0,s.useEffect)(()=>{let e=document.documentElement;return e.dataset.heroPhase=a,e.dataset.timeOfDay=a,()=>{delete e.dataset.heroPhase,delete e.dataset.timeOfDay}},[a]),{phase:a,weather:n}}function N(e){let{phase:t,weather:a,landscape:c="clouds"}=e,d=(0,s.useMemo)(()=>(function(e){let t=[];for(let e=0;e<64;e++){let a=(9973*e+13)%1e4,r=e%7==0;t.push({left:a%1e3/10,top:7*a%700/10,size:r?1.8+3*a%16/10:1+3*a%18/10,delay:11*a%1e3/100,duration:1.8+17*a%700/100,driftDuration:9+13*a%900/100,min:.12+5*a%40/100,dx:19*a%70/10-3.5,dy:23*a%80/10-5,bright:r,glintDelay:29*a%800/100,glintDuration:3.6+31*a%400/100})}return t})(0),[]);return(0,r.jsxs)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden","aria-hidden":!0,children:[(0,r.jsx)("div",{className:(0,o.$)("hero-dot-grid absolute inset-0 z-0 transition-opacity duration-600","morning"===t||"midday"===t||"dawn"===t?"opacity-55":"opacity-0")}),(0,r.jsx)(l,{}),(0,r.jsx)(i,{}),(0,r.jsxs)("div",{className:(0,o.$)("absolute inset-0 z-[1] transition-opacity duration-[1500ms]","night"===t?"opacity-100":"pre-dawn"===t?"opacity-55":"opacity-0"),children:[d.map((e,t)=>(0,r.jsx)("span",{className:"hero-star absolute rounded-full","data-star":e.bright?"bright":"dim",style:{left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),width:e.size,height:e.size,animationDelay:"".concat(e.delay,"s, ").concat(.4*e.delay,"s"),animationDuration:"".concat(e.duration,"s, ").concat(e.driftDuration,"s"),"--star-min":String(e.min),"--star-dx":"".concat(e.dx,"px"),"--star-dy":"".concat(e.dy,"px"),"--star-glint-delay":"".concat(e.glintDelay,"s"),"--star-glint-dur":"".concat(e.glintDuration,"s")}},t)),(0,r.jsx)(x,{phase:t})]}),(0,r.jsx)(p,{phase:t}),(0,r.jsx)(g,{}),"mountains"===c?(0,r.jsx)(w,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{src:"/fig/hero-v11-cloud-tr.webp",alt:"",width:620,height:374,priority:!0,className:"hero-cloud-tr hero-cloud-drift-a absolute z-[3] h-auto"}),(0,r.jsx)("div",{className:"hero-cloud-bl-wrap hero-cloud-drift-b absolute z-[4]",children:(0,r.jsx)(n.default,{src:"/fig/hero-v11-cloud-bl-v2.webp",alt:"",width:575,height:347,priority:!0,className:"hero-cloud-bl block h-full w-full"})}),(0,r.jsx)(n.default,{src:"/fig/hero-v11-cloud-br.webp",alt:"",width:640,height:386,priority:!0,className:"hero-cloud-br hero-cloud-drift-c absolute z-[4] h-auto"})]}),(0,r.jsx)("div",{className:(0,o.$)("hero-weather-fog","fog"===a&&"opacity-100")}),(0,r.jsx)("div",{className:(0,o.$)("hero-weather-flash","thunderstorm"===a&&"hero-weather-flash-on")}),(0,r.jsx)(u,{}),(0,r.jsx)("div",{className:"hero-fog z-[5]"})]})}}}]);
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.