PageSourceSearch

https://z-imageai.com/_next/static/chunks/43af4afb111ad3ec.js

js z-imageai.com collected 2026-10-07 23:30:20 UTC 122,238 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,905342,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["default",()=>t])},891397,e=>{"use strict";let t=(0,e.i(889522).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["default",()=>t])},695859,e=>{"use strict";var t=e.i(905342);e.s(["ArrowRight",()=>t.default])},943592,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(176506),i=e.i(176342);let a="http://www.w3.org/2000/svg";class s{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}function o(e,t,r,n,i){return{type:"path",ops:h(e,t,r,n,i)}}function l(e,t,r){let n=(e||[]).length;if(n>2){let i=[];for(let t=0;t<n-1;t++)i.push(...h(e[t][0],e[t][1],e[t+1][0],e[t+1][1],r));return t&&i.push(...h(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:i}}return 2===n?o(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function c(e,t,r,n,i){let a,s,o,l,c;return function(e,t,r,n){let[i,a]=x(n.increment,e,t,n.rx,n.ry,1,n.increment*u(.1,u(.4,1,r),r),r),s=f(i,null,r);if(!r.disableMultiStroke){let[i]=x(n.increment,e,t,n.rx,n.ry,1.5,0,r),a=f(i,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}(e,t,i,(a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(n/2,2))/2)),s=2*Math.PI/Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*a),o=Math.abs(r/2),l=Math.abs(n/2),c=1-i.curveFitting,o+=m(o*c,i),l+=m(l*c,i),{increment:s,rx:o,ry:l})).opset}function d(e){return e.randomizer||(e.randomizer=new s(e.seed||0)),e.randomizer.next()}function u(e,t,r,n=1){return r.roughness*n*(d(r)*(t-e)+e)}function m(e,t,r=1){return u(-e,e,t,r)}function h(e,t,r,n,i,a=!1){let s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=p(e,t,r,n,i,!0,!1);if(s)return o;let l=p(e,t,r,n,i,!0,!0);return o.concat(l)}function p(e,t,r,n,i,a,s){let o=Math.pow(e-r,2)+Math.pow(t-n,2),l=Math.sqrt(o),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);let h=u/2,p=.2+.2*d(i),f=i.bowing*i.maxRandomnessOffset*(n-t)/200,x=i.bowing*i.maxRandomnessOffset*(e-r)/200;f=m(f,i,c),x=m(x,i,c);let g=[];return a&&(s?g.push({op:"move",data:[e+m(h,i,c),t+m(h,i,c)]}):g.push({op:"move",data:[e+m(u,i,c),t+m(u,i,c)]})),s?g.push({op:"bcurveTo",data:[f+e+(r-e)*p+m(h,i,c),x+t+(n-t)*p+m(h,i,c),f+e+2*(r-e)*p+m(h,i,c),x+t+2*(n-t)*p+m(h,i,c),r+m(h,i,c),n+m(h,i,c)]}):g.push({op:"bcurveTo",data:[f+e+(r-e)*p+m(u,i,c),x+t+(n-t)*p+m(u,i,c),f+e+2*(r-e)*p+m(u,i,c),x+t+2*(n-t)*p+m(u,i,c),r+m(u,i,c),n+m(u,i,c)]}),g}function f(e,t,r){let n=e.length,i=[];if(n>3){let a=[],s=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<n;t++){let r=e[t];a[0]=[r[0],r[1]],a[1]=[r[0]+(s*e[t+1][0]-s*e[t-1][0])/6,r[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=r.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+m(e,r),t[1]+m(e,r)]})}}else 3===n?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===n&&i.push(...h(e[0][0],e[0][1],e[1][0],e[1][1],r));return i}function x(e,t,r,n,i,a,s,o){let l=[],c=[],d=m(.5,o)-Math.PI/2;c.push([m(a,o)+t+.9*n*Math.cos(d-e),m(a,o)+r+.9*i*Math.sin(d-e)]);for(let s=d;s<2*Math.PI+d-.01;s+=e){let e=[m(a,o)+t+n*Math.cos(s),m(a,o)+r+i*Math.sin(s)];l.push(e),c.push(e)}return c.push([m(a,o)+t+n*Math.cos(d+2*Math.PI+.5*s),m(a,o)+r+i*Math.sin(d+2*Math.PI+.5*s)]),c.push([m(a,o)+t+.98*n*Math.cos(d+s),m(a,o)+r+.98*i*Math.sin(d+s)]),c.push([m(a,o)+t+.9*n*Math.cos(d+.5*s),m(a,o)+r+.9*i*Math.sin(d+.5*s)]),[c,l]}function g(e,t){return{maxRandomnessOffset:2,roughness:"highlight"===e?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==e,disableMultiStrokeFill:!1,seed:t}}class v{constructor(e,t){this._state="unattached",this._resizing=!1,this._seed=Math.floor(0x80000000*Math.random()),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement("style");e.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(e)}let e=this._svg=document.createElementNS(a,"svg");e.setAttribute("class","rough-annotation");let t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";let r="highlight"===this._config.type;if(this._e.insertAdjacentElement(r?"beforebegin":"afterend",e),this._state="not-showing",r){let e=window.getComputedStyle(this._e).position;e&&"static"!==e||(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length!==this._lastSizes.length)return!0;for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}return!1}isSameRect(e,t){let r=(e,t)=>Math.round(e)===Math.round(t);return r(e.x,t.x)&&r(e.y,t.y)&&r(e.w,t.w)&&r(e.h,t.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
1hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(e,t){let r=this._config;t&&((r=JSON.parse(JSON.stringify(this._config))).animate=!1);let n=this.rects(),i=0;n.forEach(e=>i+=e.w);let s=r.animationDuration||800,d=0;for(let t=0;t<n.length;t++){let u=s*(n[t].w/i);(function(e,t,r,n,i,s){let d=[],u=r.strokeWidth||2,m=function(e){let t=e.padding;if(t||0===t){if("number"==typeof t)return[t,t,t,t];if(Array.isArray(t)&&t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}return[5,5,5,5]}(r),h=void 0===r.animate||!!r.animate,p=r.iterations||2,f=+!!r.rtl,x=g("single",s);switch(r.type){case"underline":{let e=t.y+t.h+m[2];for(let r=f;r<p+f;r++)r%2?d.push(o(t.x+t.w,e,t.x,e,x)):d.push(o(t.x,e,t.x+t.w,e,x));break}case"strike-through":{let e=t.y+t.h/2;for(let r=f;r<p+f;r++)r%2?d.push(o(t.x+t.w,e,t.x,e,x)):d.push(o(t.x,e,t.x+t.w,e,x));break}case"box":{let e=t.x-m[3],r=t.y-m[0],n=t.w+(m[1]+m[3]),i=t.h+(m[0]+m[2]);for(let t=0;t<p;t++){var v,b,w,y;d.push(l([[v=e,b=r],[v+(w=n),b],[v+w,b+(y=i)],[v,b+y]],!0,x))}break}case"bracket":{let e=Array.isArray(r.brackets)?r.brackets:r.brackets?[r.brackets]:["right"],n=t.x-2*m[3],i=t.x+t.w+2*m[1],a=t.y-2*m[0],s=t.y+t.h+2*m[2];for(let r of e){let e;switch(r){case"bottom":e=[[n,t.y+t.h],[n,s],[i,s],[i,t.y+t.h]];break;case"top":e=[[n,t.y],[n,a],[i,a],[i,t.y]];break;case"left":e=[[t.x,a],[n,a],[n,s],[t.x,s]];break;case"right":e=[[t.x+t.w,a],[i,a],[i,s],[t.x+t.w,s]]}e&&d.push(l(e,!1,x))}break}case"crossed-off":{let e=t.x,r=t.y,n=e+t.w,i=r+t.h;for(let t=f;t<p+f;t++)t%2?d.push(o(n,i,e,r,x)):d.push(o(e,r,n,i,x));for(let t=f;t<p+f;t++)t%2?d.push(o(e,i,n,r,x)):d.push(o(n,r,e,i,x));break}case"circle":{let e=g("double",s),r=t.w+(m[1]+m[3]),n=t.h+(m[0]+m[2]),i=t.x-m[3]+r/2,a=t.y-m[0]+n/2,o=Math.floor(p/2),l=p-2*o;for(let t=0;t<o;t++)d.push(c(i,a,r,n,e));for(let e=0;e<l;e++)d.push(c(i,a,r,n,x));break}case"highlight":{let e=g("highlight",s);u=.95*t.h;let r=t.y+t.h/2;for(let n=f;n<p+f;n++)n%2?d.push(o(t.x+t.w,r,t.x,r,e)):d.push(o(t.x,r,t.x+t.w,r,e))}}if(d.length){let t=function(e){let t=[];for(let r of e){let e="";for(let n of r.ops){let r=n.data;switch(n.op){case"move":e.trim()&&t.push(e.trim()),e=`M${r[0]} ${r[1]} `;break;case"bcurveTo":e+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":e+=`L${r[0]} ${r[1]} `}}e.trim()&&t.push(e.trim())}return t}(d),s=[],o=[],l=0,c=(e,t,r)=>e.setAttribute(t,r);for(let n of t){let t=document.createElementNS(a,"path");if(c(t,"d",n),c(t,"fill","none"),c(t,"stroke",r.color||"currentColor"),c(t,"stroke-width",""+u),h){let e=t.getTotalLength();s.push(e),l+=e}e.appendChild(t),o.push(t)}if(h){let e=0;for(let t=0;t<o.length;t++){let r=o[t],a=s[t],c=l?a/l*i:0,d=n+e,u=r.style;u.strokeDashoffset=""+a,u.strokeDasharray=""+a,u.animation=`rough-notation-dash ${c}ms ease-out ${d}ms forwards`,e+=c}}}})(e,n[t],r,d+this._animationDelay,u,this._seed),d+=u}this._lastSizes=n,this._state="showing"}rects(){let e=[];
1if(this._svg)if(this._config.multiline){let t=this._e.getClientRects();for(let r=0;r<t.length;r++)e.push(this.svgRect(this._svg,t[r]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){let r=e.getBoundingClientRect();return{x:(t.x||t.left)-(r.x||r.left),y:(t.y||t.top)-(r.y||r.top),w:t.width,h:t.height}}}function b(e){let a,s,o,l,c,d=(0,r.c)(16),{children:u,action:m,color:h,textColor:p,strokeWidth:f,animationDuration:x,iterations:g,padding:b,multiline:w,isView:y}=e,j=void 0===m?"highlight":m,N=void 0===h?"#ffd1dc":h,_=void 0===p?N:p,k=void 0===f?1.5:f,C=void 0===x?600:x,S=void 0===g?2:g,R=void 0===b?2:b,M=void 0===w||w,E=(0,n.useRef)(null),A=(0,n.useRef)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(a={once:!0,margin:"-10%"},d[0]=a):a=d[0];let T=(0,i.useInView)(E,a),I=!(void 0!==y&&y)||T;return d[1]!==j||d[2]!==C||d[3]!==N||d[4]!==S||d[5]!==M||d[6]!==R||d[7]!==I||d[8]!==k?(s=()=>{if(!I)return;let e=E.current;if(!e)return;let t=new v(e,{type:j,color:N,strokeWidth:k,animationDuration:C,iterations:S,padding:R,multiline:M});A.current=t,A.current.show();let r=new ResizeObserver(()=>{t.hide(),t.show()});return r.observe(e),r.observe(document.body),()=>{e&&(new v(e,{type:j}).remove(),r.disconnect())}},o=[I,j,N,k,C,S,R,M],d[1]=j,d[2]=C,d[3]=N,d[4]=S,d[5]=M,d[6]=R,d[7]=I,d[8]=k,d[9]=s,d[10]=o):(s=d[9],o=d[10]),(0,n.useEffect)(s,o),d[11]!==_?(l={color:_},d[11]=_,d[12]=l):l=d[12],d[13]!==u||d[14]!==l?(c=(0,t.jsx)("span",{ref:E,className:"relative inline-block bg-transparent",style:l,children:u}),d[13]=u,d[14]=l,d[15]=c):c=d[15],c}e.s(["Highlighter",()=>b],943592)},438037,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(98160),i=e.i(695859),a=e.i(199978);e.i(741820);var s=e.i(24963),o=e.i(331597),l=e.i(176506),c=e.i(526683);function d({width:e=40,height:r=40,x:i=-1,y:a=-1,strokeDasharray:s=0,numSquares:o=50,className:d,maxOpacity:u=.5,duration:m=4,repeatDelay:h=.5,...p}){let f=(0,l.useId)(),x=(0,l.useRef)(null),[g,v]=(0,l.useState)({width:0,height:0}),[b,w]=(0,l.useState)(()=>j(o));function y(){return[Math.floor(Math.random()*g.width/e),Math.floor(Math.random()*g.height/r)]}function j(e){return Array.from({length:e},(e,t)=>({id:t,pos:y()}))}return(0,l.useEffect)(()=>{g.width&&g.height&&w(j(o))},[g,o]),(0,l.useEffect)(()=>{let e=new ResizeObserver(e=>{for(let t of e)v({width:t.contentRect.width,height:t.contentRect.height})});return x.current&&e.observe(x.current),()=>{x.current&&e.unobserve(x.current)}},[x]),(0,t.jsxs)("svg",{ref:x,"aria-hidden":"true",className:(0,c.cn)("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",d),...p,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("pattern",{id:f,width:e,height:r,patternUnits:"userSpaceOnUse",x:i,y:a,children:(0,t.jsx)("path",{d:`M.5 ${r}V.5H${e}`,fill:"none",strokeDasharray:s})})}),(0,t.jsx)("rect",{width:"100%",height:"100%",fill:`url(#${f})`}),(0,t.jsx)("svg",{x:i,y:a,className:"overflow-visible",children:b.map(({pos:[i,a],id:s},o)=>(0,t.jsx)(n.motion.rect,{initial:{opacity:0}
1,animate:{opacity:u},transition:{duration:m,repeat:1,delay:.1*o,repeatType:"reverse"},onAnimationComplete:()=>{w(e=>e.map(e=>e.id===s?{...e,pos:y()}:e))},width:e-1,height:r-1,x:i*e+1,y:a*r+1,fill:"currentColor",strokeWidth:"0"},`${i}-${a}-${o}`))})]})}var u=e.i(511398),m=e.i(943592),h=e.i(181285),p=e.i(891397),p=p,f=e.i(890210);let x=["/imgs/avatars/1.png","/imgs/avatars/2.png","/imgs/avatars/3.png","/imgs/avatars/4.png","/imgs/avatars/5.png","/imgs/avatars/6.png"];function g(e){let n,i,a,s=(0,r.c)(4),{tip:o}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("span",{className:"mx-4 inline-flex items-center -space-x-2",children:x.map(b)}),s[0]=n):n=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:5}).map(v)}),s[1]=i):i=s[1],s[2]!==o?(a=(0,t.jsxs)("div",{className:"mx-auto mt-8 flex w-fit flex-col items-center gap-2 sm:flex-row",children:[n,(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 md:items-start",children:[i,(0,t.jsx)("p",{className:"text-muted-foreground text-left text-sm font-normal",children:o})]})]}),s[2]=o,s[3]=a):a=s[3],a}function v(e,r){return(0,t.jsx)(p.default,{className:"size-4 fill-yellow-400 text-yellow-400"},r)}function b(e,r){return(0,t.jsx)(f.Avatar,{className:"size-10 border",children:(0,t.jsx)(f.AvatarImage,{src:e,alt:"placeholder"})},r)}let w=e=>({initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:e,ease:[.22,1,.36,1]}});function y(e){let o,l,u,p,f,x,v,b,y,N,_,k,C,S,R=(0,r.c)(42),{hero:M,className:E}=e,A=M.highlight_text??"",T=null;if(A){let e;R[0]!==M.title||R[1]!==A?(e=M.title?.split(A,2),R[0]=M.title,R[1]=A,R[2]=e):e=R[2],T=e}R[3]!==M.announcement?(o=()=>{M.announcement&&h.trackHero.announcementClick({title:M.announcement.title,url:M.announcement.url,theme:"default"})},R[3]=M.announcement,R[4]=o):o=R[4];let I=o,z=M.id,L=`pt-24 pb-8 md:pt-36 md:pb-8 ${M.className} ${E}`;R[5]!==I||R[6]!==M.announcement?(l=M.announcement&&(0,t.jsx)(n.motion.div,{...w(0),children:(0,t.jsxs)(a.Link,{href:M.announcement.url||"",target:M.announcement.target||"_self",onClick:I,className:"hover:bg-background dark:hover:border-t-border bg-muted group mx-auto mb-8 flex w-fit items-center gap-4 roun
1ded-full border p-1 pl-4 shadow-md shadow-zinc-950/5 transition-colors duration-300 dark:border-t-white/5 dark:shadow-zinc-950",children:[(0,t.jsx)("span",{className:"text-foreground text-sm",children:M.announcement.title}),(0,t.jsx)("span",{className:"dark:border-background block h-4 w-0.5 border-l bg-white dark:bg-zinc-700"}),(0,t.jsx)("div",{className:"bg-background group-hover:bg-muted size-6 overflow-hidden rounded-full duration-500",children:(0,t.jsxs)("div",{className:"flex w-12 -translate-x-1/2 duration-500 ease-in-out group-hover:translate-x-0",children:[(0,t.jsx)("span",{className:"flex size-6",children:(0,t.jsx)(i.ArrowRight,{className:"m-auto size-3"})}),(0,t.jsx)("span",{className:"flex size-6",children:(0,t.jsx)(i.ArrowRight,{className:"m-auto size-3"})})]})})]})}),R[5]=I,R[6]=M.announcement,R[7]=l):l=R[7],R[8]===Symbol.for("react.memo_cache_sentinel")?(u=w(.15),R[8]=u):u=R[8],R[9]!==M.title||R[10]!==A||R[11]!==T?(p=(0,t.jsx)(n.motion.div,{...u,children:T&&T.length>0?(0,t.jsxs)("h1",{className:"text-foreground text-5xl font-semibold text-balance sm:mt-12 sm:text-7xl",children:[T[0],(0,t.jsx)(m.Highlighter,{action:"underline",color:"#FF9800",children:A}),T[1]]}):(0,t.jsx)("h1",{className:"text-foreground text-5xl font-semibold text-balance sm:mt-12 sm:text-7xl",children:M.title})}),R[9]=M.title,R[10]=A,R[11]=T,R[12]=p):p=R[12],R[13]===Symbol.for("react.memo_cache_sentinel")?(f=w(.3),R[13]=f):f=R[13];let P=M.description??"";return R[14]!==P?(x=(0,t.jsx)(n.motion.p,{...f,className:"text-muted-foreground mt-8 mb-8 text-lg text-balance",dangerouslySetInnerHTML:{__html:P}}),R[14]=P,R[15]=x):x=R[15],R[16]!==M.buttons?(v=M.buttons&&(0,t.jsx)(n.motion.div,{...w(.45),className:"flex items-center justify-center gap-4",children:M.buttons.map(j)}),R[16]=M.buttons,R[17]=v):v=R[17],R[18]!==M.tip?(b=M.tip&&(0,t.jsx)(n.motion.p,{...w(.6),className:"text-muted-foreground mt-6 block text-center text-sm",dangerouslySetInnerHTML:{__html:M.tip??""}}),R[18]=M.tip,R[19]=b):b=R[19],R[20]!==M.avatars_tip||R[21]!==M.show_avatars?(y=M.show_avatars&&(0,t.jsx)(n.motion.div,{...w(.75),children:(0,t.jsx)(g,{tip:M.avatars_tip||""})}),R[20]=M.avatars_tip,R[21]=M.show_avatars,R[22]=y):y=R[22],R[23]!==v||R[24]!==b||R[25]!==y||R[26]!==p||R[27]!==x?(N=(0,t.jsxs)("div",{className:"relative mx-auto max-w-5xl px-4 text-center",children:[p,x,v,b,y]}),R[23]=v,R[24]=b,R[25]=y,R[26]=p,R[27]=x,R[28]=N):N=R[28],R[29]!==M.id||R[30]!==N||R[31]!==L||R[32]!==l?(_=(0,t.jsxs)("section",{id:z,className:L,children:[l,N]}),R[29]=M.id,R[30]=N,R[31]=L,R[32]=l,R[33]=_):_=R[33],R[34]!==M.image||R[35]!==M.image_invert?.alt||R[36]!==M.image_invert?.src?(k=M.image&&(0,t.jsx)(n.motion.section,{className:"border-foreground
1/10 relative mt-8 border-y sm:mt-16",initial:{opacity:0,y:20,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{delay:.9,duration:.7,ease:[.22,1,.36,1]},children:(0,t.jsx)("div",{className:"relative z-10 mx-auto max-w-6xl border-x px-3",children:(0,t.jsxs)("div",{className:"border-x",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"h-3 w-full bg-[repeating-linear-gradient(-45deg,var(--color-foreground),var(--color-foreground)_1px,transparent_1px,transparent_4px)] opacity-5"}),(0,t.jsx)(s.LazyImage,{className:"border-border/25 relative z-2 hidden border dark:block",src:M.image_invert?.src||M.image?.src||"",alt:M.image_invert?.alt||M.image?.alt||""}),(0,t.jsx)(s.LazyImage,{className:"border-border/25 relative z-2 border dark:hidden",src:M.image?.src||M.image_invert?.src||"",alt:M.image?.alt||M.image_invert?.alt||""})]})})}),R[34]=M.image,R[35]=M.image_invert?.alt,R[36]=M.image_invert?.src,R[37]=k):k=R[37],R[38]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(d,{numSquares:30,maxOpacity:.1,duration:3,repeatDelay:1,className:(0,c.cn)("[mask-image:radial-gradient(600px_circle_at_center,white,transparent)]","inset-x-0 inset-y-[-30%] h-[200%] skew-y-12")}),R[38]=C):C=R[38],R[39]!==_||R[40]!==k?(S=(0,t.jsxs)(t.Fragment,{children:[_,k,C]}),R[39]=_,R[40]=k,R[41]=S):S=R[41],S}function j(e,r){return(0,t.jsx)(u.Button,{asChild:!0,size:e.size||"default",variant:e.variant||"default",className:"px-4 text-sm",children:(0,t.jsxs)(a.Link,{href:e.url??"",target:e.target??"_self",children:[e.icon&&(0,t.jsx)(o.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},r)}e.s(["Hero",()=>y],438037)},692604,117550,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["default",()=>r],692604);let n=(0,t.default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["default",()=>n],117550)},496831,e=>{"use strict";let t=(0,e.i(889522).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["default",()=>t])},79112,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-big-right",[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"1232du"}]]);e.s(["default",()=>t])},389366,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(819023),i=e.i(526683);function a(e){let a,o,l,c,d,u,m=(0,r.c)(16),{logos:h,className:p}=e,f=h.id;return m[0]!==p||m[1]!==h.className?(a=(0,i.cn)("py-16 md:py-24",h.className,p),m[0]=p,m[1]=h.className,m[2]=a):a=m[2],m[3]!==h.title?(o=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsx)("p",{className:"text-md text-center font-medium",children:h.title})}),m[3]=h.title,m[4]=o):o=m[4],m[5]!==h.items?(l=h.items?.map(s),m[5]=h.items,m[6]=l):l=m[6],m[7]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:l})}),m[7]=l,m[8]=c):c=m[8],m[9]!==o||m[10]!==c?(d=(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[o,c]}),m[9]=o,m[10]=c,m[11]=d):d=m[11],m[12]!==h.id||m[13]!==a||m[14]!==d?(u=(0,t.jsx)("section",{id:f,className:a,children:d}),m[12]=h.id,m[13]=a,m[14]=d,m[15]=u):u=m[15],u}function s(e,r){return(0,t.jsx)("img",{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??"",height:"20",width:"auto"},r)}e.s(["Logos",()=>a])},436497,e=>{"use strict";var t=e.i(176506);let r={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Cho
1ose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},n=(0,t.createContext)({text:r});function i(e){let{text:t}=a();return t[e.label]}function a(){return(0,t.useContext)(n)}e.s(["I18nContext",0,n,"I18nLabel",()=>i,"defaultTranslations",0,r,"useI18n",()=>a])},133362,449598,e=>{"use strict";var t=e.i(176506);function r(e,n,i=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,n)=>e(t,r[n])):t!==r}){let[a,s]=(0,t.useState)(e);i(a,e)&&(n(e,a),s(e))}e.s(["useOnChange",()=>r],449598),e.i(677683),e.s([],133362)},187484,e=>{"use strict";let t=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,n=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,i=getComputedStyle(e,null);return r(i.overflowY,t)||r(i.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},i=(e,t,r,n,i,a,s,o)=>a<e&&s>t||a>e&&s<t?0:a<=e&&o<=r||s>=t&&o>=r?a-e-n:s>t&&o<r||a<e&&o>r?s-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,r)=>{var s,o,l,c;let d;if("undefined"==typeof document)return[];let{scrollMode:u,block:m,inline:h,boundary:p,skipOverflowHiddenElements:f}=r,x="function"==typeof p?p:e=>e!==p;if(!t(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],b=e;for(;t(b)&&x(b);){if((b=a(b))===g){v.push(b);break}null!=b&&b===document.body&&n(b)&&!n(document.documentElement)||null!=b&&n(b,f)&&v.push(b)}let w=null!=(o=null==(s=window.visualViewport)?void 0:s.width)?o:innerWidth,y=null!=(c=null==(l=window.visualViewport)?void 0:l.height)?c:innerHeight,{scrollX:j,scrollY:N}=window,{height:_,width:k,top:C,right:S,bottom:R,left:M}=e.getBoundingClientRect(),{top:E,right:A,bottom:T,left:I}={top:parseFloat((d=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0},z="start"===m||"nearest"===m?C-E:"end"===m?R+T:C+_/2-E+T,L="center"===h?M+k/2-I+A:"end"===h?S+A:M-I,P=[];for(let e=0;e<v.length;e++){let t=v[e],{height:r,width:a,top:s,right:o,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===u&&C>=0&&M>=0&&R<=y&&S<=w&&(t===g&&!n(t)||C>=s&&R<=l&&M>=c&&S<=o))break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),f=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),b=parseInt(d.borderBottomWidth,10),E=0,A=0,T="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-x:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-f-b:0,D="offsetWidth"in t?0===t.offsetWidth?0:a/t.offsetWidth:0,$="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(g===t)E="start"===m?z:"end"===m?z-y:"nearest"===m?i(N,N+y,y,f,b,N+z,N+z+_,_):z-y/2,A="start"===h?L:"center"===h?L-w/2:"end"===h?L-w:i(j,j+w,w,p,x,j+L,j+L+k,k),E=Math.max(0,E+N),A=Math.max(0,A+j);else{E="start"===m?z-s-f:"end"===m?z-l+b+I:"nearest"===m?i(s,l,r,f,b+I,z,z+_,_):z-(s+r/2)+I/2,A="start"===h?L-c-p:"center"===h?L-(c+a/2)+T/2:"end"===h?L-o+x+T:i(c,o,a,p,x+T,L,L+k,k);let{scrollLeft:e,scrollTop:n}=t;E=0===$?0:Math.max(0,Math.min(n+E/$,t.scrollHeight-r/$+I)),A=0===D?0:Math.max(0,Math.min(e+A/D,t.scrollWidth-a/D+T)),z+=n-E,L+=e-A}P.push({el:t,top:E,left:A})}return P};function o(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:a,left:o}of s(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=a-n.top+n.bottom,t=o-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}e.s(["default",()=>o],187484)},772690,395135,829694,e=>{"use strict";var t=e.i(604720),r=e.i(449598);e.i(677683);var n=e.i(176506),i=e.i(187484),a=(0,n.createContext)([]),s=(0,n.createContext)({current:null});function o(){return(0,n.useContext)(a).at(-1)}function l(){return(0,n.useContext)(a)}function c({containerRef:e,children:r}){return(0,t.jsx)(s.Provider,{value:e,children:r})}function d({toc:e,single:r=!0,children:i}){let s=(0,n.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,t.jsx)(a.Provider,{value:function(e,t){let[r,i]=(0,n.use
1State)([]);return(0,n.useEffect)(()=>{let r=[],n=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!r.includes(t.target.id)?r=[...r,t.target.id]:!t.isIntersecting&&r.includes(t.target.id)&&(r=r.filter(e=>e!==t.target.id));r.length>0&&i(r)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function a(){let r=document.scrollingElement;if(!r)return;let n=r.scrollTop;n<=0&&t?i(e.slice(0,1)):n+r.clientHeight>=r.scrollHeight-6&&i(r=>r.length>0&&!t?e.slice(e.indexOf(r[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&n.observe(e)}return a(),window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),n.disconnect()}},[t,e]),t?r.slice(0,1):r}(s,r),children:i})}var u=(0,n.forwardRef)(({onActiveChange:e,...a},o)=>{let c=(0,n.useContext)(s),d=l(),u=(0,n.useRef)(null),m=function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})}}(u,o),h=d.includes(a.href.slice(1));return(0,r.useOnChange)(h,t=>{let r=u.current;r&&(t&&c.current&&(0,i.default)(r,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:c.current}),e?.(t))}),(0,t.jsx)("a",{ref:m,"data-active":h,...a,children:a.children})});u.displayName="TOCItem",e.s(["AnchorProvider",()=>d,"ScrollProvider",()=>c,"TOCItem",()=>u,"useActiveAnchor",()=>o,"useActiveAnchors",()=>l],395135),e.i(322956);var m=e.i(266438),h=e.i(436497);e.i(133362);var p=e.i(354705);function f(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let r=Number.MAX_VALUE,n=0;for(let i of t){let t=e.querySelector(`a[href="#${i}"]`);if(!t)continue;let a=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(a.paddingTop)),n=Math.max(n,t.offsetTop+t.clientHeight-parseFloat(a.paddingBottom))}return[r,n-r]}function x(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function g({containerRef:e,...i}){let a=l(),s=(0,n.useRef)(null),o=(0,p.useEffectEvent)(()=>{e.current&&s.current&&x(s.current,f(e.current,a))});return(0,n.useEffect)(()=>{if(!e.current)return;let t=e.current;o();let r=new ResizeObserver(o);return r.observe(t),()=>{r.disconnect()}},[e,o]),(0,r.useOnChange)(a,()=>{e.current&&s.current&&x(s.current,f(e.current,a))}),(0,t.jsx)("div",{ref:s,role:"none",...i})}e.s(["TocThumb",()=>g],829694);var v=e.i(173956);let b=(0,n.createContext)([]);function w(){return(0,n.useContext)(b)}function y({toc:e,children:r,...n}){return(0,t.jsx)(b,{value:e,children:(0,t.jsx)(d,{toc:e,...n,children:r})})}function j({ref:e,className:r,...i}){let a=(0,n.useRef)(null);return(0,t.jsx)("div",{ref:(0,v.mergeRefs)(a,e),className:(0,m.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...i,children:(0,t.jsx)(c,{containerRef:a,children:i.children})})}function N({ref:e,className:r,...i}){let a=(0,n.useRef)(null),s=w(),{text:o}=(0,h.useI18n)();return 0===s.length?(0,t.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:o.tocNoHeadings}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{containerRef:a,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,t.jsx)("div",{ref:(0,v.mergeRefs)(e,a),className:(0,m.cn)("flex flex-col border-s border-fd-foreground/10",r),...i,children:s.map(e=>(0,t.jsx)(_,{item:e},e.url))})]})}function _({item:e}){return(0,t.jsx)(u,{href:e.url,className:(0,m.cn)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}e.s(["TOCItems",()=>N,"TOCProvider",()=>y,"TOCScrollArea",()=>j,"useTOCItems",()=>w],772690)},387115,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(772690),i=e.i(475507),i=i,a=e.i(496831),a=a,s=e.i(193151);e.i(741820);var o=e.i(111643),l=e.i(866273),c=e.i(199978),d=e.i(331597);function u(e){let n,i,a=(0,r.c)(4),{items:s}=e;return a[0]!==s?(n=s.map(m),a[0]=s,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:n}),a[2]=n,a[3]=i):i=a[3],i}function m(e,r){let n=e.is_active;return(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)(c.Link,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${n?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"size-4"}),e.title]}),!n&&(0,t.jsx)(l.ChevronRight,{className:"text-muted-foreground
1/40 mx-2 h-4 w-4"})]},r)}function h(e){let l,c,d,m,h,p,f,x,g,v,b,w,y,j,N,_,k,C,S,R,M=(0,r.c)(56),{post:E}=e,A=(0,s.useTranslations)("blog.page");M[0]!==A?(l=A("crumb"),M[0]=A,M[1]=l):l=M[1],M[2]!==l?(c={title:l,url:"/blog",icon:"Newspaper",is_active:!1},M[2]=l,M[3]=c):c=M[3];let T=E.title||"",I=`/blog/${E.slug}`;M[4]!==T||M[5]!==I?(d={title:T,url:I,is_active:!0},M[4]=T,M[5]=I,M[6]=d):d=M[6],M[7]!==c||M[8]!==d?(m=[c,d],M[7]=c,M[8]=d,M[9]=m):m=M[9];let z=m,L=E.toc&&E.toc.length>0,P=E.author_name||E.author_image||E.author_role;M[10]!==P||M[11]!==L?(h=()=>L&&P?"lg:col-span-6":L||P?"lg:col-span-9":"lg:col-span-12",M[10]=P,M[11]=L,M[12]=h):h=M[12];let D=h;M[13]!==E.toc?(p=E.toc||[],M[13]=E.toc,M[14]=p):p=M[14];let $=E.id;M[15]!==z?(f=(0,t.jsx)(u,{items:z}),M[15]=z,M[16]=f):f=M[16],M[17]!==E.title?(x=(0,t.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:E.title}),M[17]=E.title,M[18]=x):x=M[18],M[19]!==E.created_at?(g=E.created_at&&(0,t.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,t.jsx)(i.default,{className:"size-4"})," ",E.created_at]}),M[19]=E.created_at,M[20]=g):g=M[20],M[21]!==g?(v=(0,t.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:g}),M[21]=g,M[22]=v):v=M[22],M[23]!==x||M[24]!==v?(b=(0,t.jsxs)("div",{className:"mt-16 text-center",children:[x,v]}),M[23]=x,M[24]=v,M[25]=b):b=M[25],M[26]!==L||M[27]!==A?(w=L&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,t.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,t.jsx)(a.default,{className:"size-4"})," ",A("toc")]}),(0,t.jsx)(n.TOCItems,{})]})})}),M[26]=L,M[27]=A,M[28]=w):w=M[28];let O=D();return M[29]!==E.body||M[30]!==E.content?(y=E.body?(0,t.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:E.body}):E.content&&(0,t.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,t.jsx)(o.MarkdownPreview,{content:E.content})}),M[29]=E.body,M[30]=E.content,M[31]=y):y=M[31],M[32]!==y?(j=(0,t.jsx)("article",{className:"p-0",children:y}),M[32]=y,M[33]=j):j=M[33],M[34]!==O||M[35]!==j?(N=(0,t.jsx)("div",{className:O,children:j}),M[34]=O,M[35]=j,M[36]=N):N=M[36],M[37]!==E.author_image||M[38]!==E.author_name||M[39]!==E.author_role||M[40]!==P?(_=P&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24",children:(0,t.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[E.author_image&&(0,t.jsx)("div",{className:"ring-foreground/10 mx-auto mb-4 aspect-square size-20 overflow-hidden rounded-xl border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)("img",{src:E.author_image,alt:E.author_name,className:"h-full w-full object-cover"})}),E.author_name&&(0,t.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:E.author_name}),E.author_role&&(0,t.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:E.author_role})]})})})}),M[37]=E.author_image,M[38]=E.author_name,M[39]=E.author_role,M[40]=P,M[41]=_):_=M[41],M[42]!==w||M[43]!==N||M[44]!==_?(k=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[w,N,_]}),M[42]=w,M[43]=N,M[44]=_,M[45]=k):k=M[45],M[46]!==f||M[47]!==b||M[48]!==k?(C=(0,t.jsx)("div",{className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[f,b,k]})}),M[46]=f,M[47]=b,M[48]=k,M[49]=C):C=M[49],M[50]!==E.id||M[51]!==C?(S=(0,t.jsx)("section",{id:$,children:C}),M[50]=E.id,M[51]=C,M[52]=S):S=M[52],M[53]!==S||M[54]!==p?(R=(0,t.jsx)(n.TOCProvider,{toc:p,children:S}),M[53]=S,M[54]=p,M[55]=R):R=M[55],R}e.s(["BlogDetail",()=>h],387115)},225578,e=>{"use strict";function t(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}e.s(["resolveElements",()=>t])},176342,e=>{"use strict";var t=e.i(176506),r=e.i(225578);let n={some:0,all:1};function i(e,{root:a,margin:s,amount:o,once:l=!1,initial:c=!1}={}){let[d,u]=(0,t.useState)(c);return(0,t.useEffect)(()=>
1{if(!e.current||l&&d)return;let t={root:a&&a.current||void 0,margin:s,amount:o};return function(e,t,{root:i,margin:a,amount:s="some"}={}){let o=(0,r.resolveElements)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?l.set(e.target,r):c.unobserve(e.target)}else"function"==typeof r&&(r(e),l.delete(e.target))})},{root:i,rootMargin:a,threshold:"number"==typeof s?s:n[s]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(u(!0),l?void 0:()=>u(!1)),t)},[a,e,s,l,o]),d}e.s(["useInView",()=>i],176342)},819023,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(176506),i=e.i(98160),a=e.i(176342);e.i(631344);var s=e.i(670983),o=e.i(535505);function l(e){let l,c,d,u,m,h,p,f,x,g,v,b,w,y=(0,r.c)(39),{children:j,className:N,delay:_,direction:k,stagger:C}=e,S=void 0===N?"":N,R=void 0===_?0:_,M=void 0===k?"up":k,E=(0,n.useRef)(null);y[0]===Symbol.for("react.memo_cache_sentinel")?(l={once:!0,margin:"-50px"},y[0]=l):l=y[0];let A=(0,a.useInView)(E,l);if(function(){o.hasReducedMotionListener.current||(0,s.initPrefersReducedMotion)();let[e]=(0,n.useState)(o.prefersReducedMotion.current);return e}()){let e;return y[1]!==j||y[2]!==S?(e=(0,t.jsx)("div",{ref:E,className:S,children:j}),y[1]=j,y[2]=S,y[3]=e):e=y[3],e}y[4]!==M?(c=()=>{switch(M){case"up":default:return{y:30,x:0};case"down":return{y:-30,x:0};case"left":return{x:30,y:0};case"right":return{x:-30,y:0}}},y[4]=M,y[5]=c):c=y[5];let T=c;y[6]===Symbol.for("react.memo_cache_sentinel")?(d={opacity:0},y[6]=d):d=y[6],y[7]!==R?(u={hidden:d,visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:R}}},y[7]=R,y[8]=u):u=y[8];let I=u;y[9]!==T?(m={opacity:0,...T(),filter:"blur(4px)"},y[9]=T,y[10]=m):m=y[10],y[11]===Symbol.for("react.memo_cache_sentinel")?(h=[.22,1,.36,1],y[11]=h):h=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:1,x:0,y:0,filter:"blur(0px)",transition:{duration:.6,ease:h}},y[12]=p):p=y[12],y[13]!==m?(f={hidden:m,visible:p},y[13]=m,y[14]=f):f=y[14];let z=f;if(void 0!==C&&C){let e,r,a=A?"visible":"hidden";if(y[15]!==j||y[16]!==z){let r;y[18]!==z?(r=e=>(0,t.jsx)(i.motion.div,{variants:z,children:e}),y[18]=z,y[19]=r):r=y[19],e=n.default.Children.map(j,r),y[15]=j,y[16]=z,y[17]=e}else e=y[17];return y[20]!==S||y[21]!==I||y[22]!==a||y[23]!==e?(r=(0,t.jsx)(i.motion.div,{ref:E,variants:I,initial:"hidden",animate:a,className:S,children:e}),y[20]=S,y[21]=I,y[22]=a,y[23]=e,y[24]=r):r=y[24],r}return y[25]!==T?(x={opacity:0,...T(),filter:"blur(4px)"},y[25]=T,y[26]=x):x=y[26],y[27]!==T||y[28]!==A?(g=A?{opacity:1,x:0,y:0,filter:"blur(0px)"}:{opacity:0,...T(),filter:"blur(4px)"},y[27]=T,y[28]=A,y[29]=g):g=y[29],y[30]===Symbol.for("react.memo_cache_sentinel")?(v=[.22,1,.36,1],y[30]=v):v=y[30],y[31]!==R?(b={duration:.6,delay:R,ease:v},y[31]=R,y[32]=b):b=y[32],y[33]!==j||y[34]!==S||y[35]!==x||y[36]!==g||y[37]!==b?(w=(0,t.jsx)(i.motion.div,{ref:E,initial:x,animate:g,transition:b,className:S,children:j}),y[33]=j,y[34]=S,y[35]=x,y[36]=g,y[37]=b,y[38]=w):w=y[38],w}e.s(["ScrollAnimation",()=>l],819023)},184499,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(176506),i=e.i(352162),a=e.i(408896),s=e.i(188625),o=e.i(291967),l=e.i(575301),c=e.i(6140),d=e.i(155062),u=e.i(987438),m=e.i(950074),h="Accordion",p=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[f,x,g]=(0,a.createCollection)(h),[v,b]=(0,i.createContextScope)(h,[g,d.createCollapsibleScope]),w=(0,d.createCollapsibleScope)(),y=n.default.forwardRef((e,r)=>{let{type:n,...i}=e;return(0,t.jsx)(f.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(S,{...i,ref:r}):(0,t.jsx)(C,{...i,ref:r})})});y.displayName=h;var[j,N]=v(h),[_,k]=v(h,{collapsible:!1}),C=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:a,onValueChange:s=()=>{},collapsible:o=!1,...c}=e,[d,u]=(0,l.useControllableState)({prop:i,defaultProp:a??"",onChange:s,caller:h});return(0,t.jsx)(j,{scope:e.__scopeAccordion,value:n.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:u,onItemClose:n.default.useCallback(()=>o&&u(""),[o,u]),children:(0,t.jsx)(_,{scope:e.__scopeAccordion,collapsible:o,children:(0,t.jsx)(E,{...c,ref:r})})})}),S=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:a,onValueChange:s=()=>{},...o}=e,[c,d]=(0,l.useControllableState)({prop:i,defaultProp:a??[],onChange:s,caller:h}),u=n.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),m=n.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(j,{scope:e.__scopeAccordion,value:c,onItemOpen:u,onItemClose:m,children:(0,t.jsx)(_,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(E,{...o,ref:r})})})}),[R,M]=v(h),E=n.default.forwardRef((e,r)=>{let{__scopeAccordion:i,disabled:a,dir:l,orientation:d="vertical",...u}=e,h=n.default.useRef(null),g=(0,s.useComposedRefs)(h,r),v=x(i),b="ltr"===(0,m.useDirection)(l),w=(0,o.composeEventHandlers)(e.onKeyDown,e=>
1{if(!p.includes(e.key))return;let t=e.target,r=v().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let a=n,s=i-1,o=()=>{(a=n+1)>s&&(a=0)},l=()=>{(a=n-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===d&&(b?o():l());break;case"ArrowDown":"vertical"===d&&o();break;case"ArrowLeft":"horizontal"===d&&(b?l():o());break;case"ArrowUp":"vertical"===d&&l()}let c=a%i;r[c].ref.current?.focus()});return(0,t.jsx)(R,{scope:i,disabled:a,direction:l,orientation:d,children:(0,t.jsx)(f.Slot,{scope:i,children:(0,t.jsx)(c.Primitive.div,{...u,"data-orientation":d,ref:g,onKeyDown:a?void 0:w})})})}),A="AccordionItem",[T,I]=v(A),z=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,value:i,...a}=e,s=M(A,n),o=N(A,n),l=w(n),c=(0,u.useId)(),m=i&&o.value.includes(i)||!1,h=s.disabled||e.disabled;return(0,t.jsx)(T,{scope:n,open:m,disabled:h,triggerId:c,children:(0,t.jsx)(d.Root,{"data-orientation":s.orientation,"data-state":F(m),...l,...a,ref:r,disabled:h,open:m,onOpenChange:e=>{e?o.onItemOpen(i):o.onItemClose(i)}})})});z.displayName=A;var L="AccordionHeader",P=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=M(h,n),s=I(L,n);return(0,t.jsx)(c.Primitive.h3,{"data-orientation":a.orientation,"data-state":F(s.open),"data-disabled":s.disabled?"":void 0,...i,ref:r})});P.displayName=L;var D="AccordionTrigger",$=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=M(h,n),s=I(D,n),o=k(D,n),l=w(n);return(0,t.jsx)(f.ItemSlot,{scope:n,children:(0,t.jsx)(d.Trigger,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...i,ref:r})})});$.displayName=D;var O="AccordionContent",H=n.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=M(h,n),s=I(O,n),o=w(n);return(0,t.jsx)(d.Content,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...o,...i,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function F(e){return e?"open":"closed"}H.displayName=O;var W=e.i(152378),V=e.i(526683);function B(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(y,{"data-slot":"accordion",...n}),a[2]=n,a[3]=i):i=a[3],i}function q(e){let n,i,a,s,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(a=(0,V.cn)("border-b last:border-b-0",n),o[3]=n,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(s=(0,t.jsx)(z,{"data-slot":"accordion-item",className:a,...i}),o[5]=i,o[6]=a,o[7]=s):s=o[7],s}function U(e){let n,i,a,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:i,children:n,...a}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a):(n=c[1],i=c[2],a=c[3]),c[4]!==i?(s=(0,V.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",i),c[4]=i,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(W.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}),c[6]=o):o=c[6],c[7]!==n||c[8]!==a||c[9]!==s?(l=(0,t.jsx)(P,{className:"flex",children:(0,t.jsxs)($,{"data-slot":"accordion-trigger",className:s,...a,children:[n,o]})}),c[7]=n,c[8]=a,c[9]=s,c[10]=l):l=c[10],l}function K(e){let n,i,a,s,o,l,c=(0,r.c)(12);return c[0]!==e?({className:i,children:n,...a}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a):(n=c[1],i=c[2],a=c[3]),c[4]!==i?(s=(0,V.cn)("pt-0 pb-4",i),c[4]=i,c[5]=s):s=c[5],c[6]!==n||c[7]!==s?(o=(0,t.jsx)("div",{className:s,children:n}),c[6]=n,c[7]=s,c[8]=o):o=c[8],c[9]!==a||c[10]!==o?(l=(0,t.jsx)(H,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...a,children:o}
1),c[9]=a,c[10]=o,c[11]=l):l=c[11],l}e.s(["Accordion",()=>B,"AccordionContent",()=>K,"AccordionItem",()=>q,"AccordionTrigger",()=>U],184499)},140880,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(184499),i=e.i(819023);function a(e){let a,o,l,c,d,u,m,h,p,f=(0,r.c)(23),{faq:x,className:g}=e,v=`py-16 md:py-24 ${g}`;f[0]!==x.title?(a=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),f[0]=x.title,f[1]=a):a=f[1],f[2]!==x.description?(o=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),f[2]=x.description,f[3]=o):o=f[3],f[4]!==a||f[5]!==o?(l=(0,t.jsx)(i.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[a,o]})}),f[4]=a,f[5]=o,f[6]=l):l=f[6],f[7]!==x.items?(c=x.items?.map(s),f[7]=x.items,f[8]=c):c=f[8],f[9]!==c?(d=(0,t.jsx)(n.Accordion,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:c}),f[9]=c,f[10]=d):d=f[10];let b=x.tip??"";return f[11]!==b?(u=(0,t.jsx)("p",{className:"text-muted-foreground mt-6 px-8",dangerouslySetInnerHTML:{__html:b}}),f[11]=b,f[12]=u):u=f[12],f[13]!==d||f[14]!==u?(m=(0,t.jsx)(i.ScrollAnimation,{delay:.2,children:(0,t.jsxs)("div",{className:"mx-auto mt-12 max-w-full",children:[d,u]})}),f[13]=d,f[14]=u,f[15]=m):m=f[15],f[16]!==l||f[17]!==m?(h=(0,t.jsxs)("div",{className:"mx-auto max-w-full px-4 md:max-w-3xl md:px-8",children:[l,m]}),f[16]=l,f[17]=m,f[18]=h):h=f[18],f[19]!==x.id||f[20]!==v||f[21]!==h?(p=(0,t.jsx)("section",{id:x.id,className:v,children:h}),f[19]=x.id,f[20]=v,f[21]=h,f[22]=p):p=f[22],p}function s(e,r){return(0,t.jsxs)("div",{className:"group",children:[(0,t.jsxs)(n.AccordionItem,{value:e.question??"",className:"data-[state=open]:bg-card dark:data-[state=open]:bg-muted peer rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:shadow-sm",children:[(0,t.jsx)(n.AccordionTrigger,{className:"cursor-pointer text-base hover:no-underline",children:e.question??""}),(0,t.jsx)(n.AccordionContent,{children:(0,t.jsx)("p",{className:"text-base",children:e.answer??""})})]}),(0,t.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},r)}e.s(["FAQ",()=>a])},755529,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(199978);e.i(741820);var i=e.i(799112),a=e.i(998559),s=e.i(538630),o=e.i(600195),l=e.i(331597);let c=/^\/[a-z]{2}(?:-[A-Z]{2})?\/?$/,d=['<a href="https://aistage.net" title="AIStage">AIStage</a>','<a href="https://twelve.tools" target="_blank" title="Featured on Twelve Tools"><img src="https://twelve.tools/badge0-dark.svg" alt="Featured on Twelve Tools"></a>'];function u(e){var l;let u,x,g,v,b,w,y,j,N,_,k,C,S,R,M,E,A,T,I,z=(0,r.c)(47),{footer:L}=e,P="/"===(l=(0,n.usePathname)()||"")||c.test(l||"")?d:[],D=P.length>0,$=`py-8 sm:py-8 ${L.className||""} overflow-x-hidden`;return z[0]!==L.brand?(u=L.brand?(0,t.jsx)(i.BrandLogo,{brand:L.brand}):null,z[0]=L.brand,z[1]=u):u=z[1],z[2]!==L.brand?(x=L.brand?.description?(0,t.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:L.brand.description}}):null,z[2]=L.brand,z[3]=x):x=z[3],z[4]!==u||z[5]!==x?(g=(0,t.jsxs)("div",{className:"min-w-0 space-y-4 break-words md:col-span-2 md:space-y-6",children:[u,x]}),z[4]=u,z[5]=x,z[6]=g):g=z[6],z[7]!==L.nav?.items?(v=L.nav?.items.map(f),z[7]=L.nav?.items,z[8]=v):v=z[8],z[9]!==v?(b=(0,t.jsx)("div",{className:"col-span-3 grid min-w-0 gap-6 sm:grid-cols-3",children:v}),z[9]=v,z[10]=b):b=z[10],z[11]!==g||z[12]!==b?(w=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 md:grid-cols-5",children:[g,b]}),z[11]=g,z[12]=b,z[13]=w):w=z[13],z[14]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("div",{className:"min-w-0 flex-1"}),z[14]=y):y=z[14],z[15]!==L.show_theme?(j=!1!==L.show_theme?(0,t.jsx)(o.ThemeToggler,{type:"toggle"}):null,z[15]=L.show_theme,z[16]=j):j=z[16],z[17]!==L.show_locale?(N=!1!==L.show_locale?(0,t.jsx)(s.LocaleSelector,{type:"button"}):null,z[17]=L.show_locale,z[18]=N):N=z[18],z[19]!==N||z[20]!==j?(_=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-4 sm:gap-8",children:[y,j,N]}),z[19]=N,z[20]=j,z[21]=_):_=z[21],z[22]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)("div",{"aria-hidden":!0,
1className:"h-px min-w-0 [background-image:linear-gradient(90deg,var(--color-foreground)_1px,transparent_1px)] bg-[length:6px_1px] bg-repeat-x opacity-25"}),z[22]=k):k=z[22],z[23]!==L.brand||z[24]!==L.copyright?(C=L.copyright?(0,t.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:L.copyright}}):L.brand?(0,t.jsx)(a.Copyright,{brand:L.brand}):null,z[23]=L.brand,z[24]=L.copyright,z[25]=C):C=z[25],z[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)("div",{className:"min-w-0 flex-1"}),z[26]=S):S=z[26],z[27]!==L.agreement?(R=L.agreement?(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-4",children:L.agreement?.items.map(p)}):null,z[27]=L.agreement,z[28]=R):R=z[28],z[29]!==L.social?(M=L.social?(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:L.social?.items.map(h)}):null,z[29]=L.social,z[30]=M):M=z[30],z[31]!==C||z[32]!==R||z[33]!==M?(E=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap justify-between gap-8",children:[C,S,R,M]}),z[31]=C,z[32]=R,z[33]=M,z[34]=E):E=z[34],z[35]!==P||z[36]!==D?(A=D?(0,t.jsx)("div",{className:"footer-badge-wrapper",children:(0,t.jsx)("div",{className:"footer-badge-scroll",children:(0,t.jsx)("div",{className:"footer-badge-grid",children:P.map(m)})})}):null,z[35]=P,z[36]=D,z[37]=A):A=z[37],z[38]!==_||z[39]!==E||z[40]!==A||z[41]!==w?(T=(0,t.jsxs)("div",{className:"container space-y-8 overflow-x-hidden",children:[w,_,k,E,A]}),z[38]=_,z[39]=E,z[40]=A,z[41]=w,z[42]=T):T=z[42],z[43]!==L.id||z[44]!==$||z[45]!==T?(I=(0,t.jsx)("footer",{id:L.id,className:$,children:T}),z[43]=L.id,z[44]=$,z[45]=T,z[46]=I):I=z[46],I}function m(e,r){return(0,t.jsx)("div",{className:"footer-badge-slot",dangerouslySetInnerHTML:{__html:e}},`footer-badge-${r}`)}function h(e,r){return(0,t.jsx)(n.Link,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary bg-background block cursor-pointer rounded-full p-2 duration-150",children:e.icon&&(0,t.jsx)(l.SmartIcon,{name:e.icon,size:20})},r)}function p(e,r){return(0,t.jsx)(n.Link,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary block text-xs break-words underline duration-150",children:e.title||""},r)}function f(e,r){return(0,t.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,t.jsx)("span",{className:"block font-medium break-words",children:e.title}),(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:e.children?.map(x)})]},r)}function x(e,r){return(0,t.jsx)(n.Link,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:(0,t.jsx)("span",{className:"break-words",children:e.title||""})},r)}e.s(["Footer",()=>u],755529)},550974,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(176506),i=e.i(519473);e.i(631344);var a=e.i(991531),s=e.i(94158),o=e.i(649163),l=e.i(194932),c=e.i(443390),d=n,u=e.i(263137);class m extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,c.isHTMLElement)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:r,anchorX:n,root:i}){let a=(0,d.useId)(),s=(0,d.useRef)(null),o=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,d.useContext)(u.MotionConfigContext);return(0,d.useInsertionEffect)(()=>{let{width:e,height:t,top:c,left:d,right:u}=o.current;if(r||!s.current||!e||!t)return;let m="left"===n?`left: ${d}`:`right: ${u}`;s.current.dataset.motionPopId=a;let h=document.createElement("style");l&&(h.nonce=l);let p=i??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${m}px !important;
7            top: ${c}px !important;
8          }
9        `),()=>{p.contains(h)&&p.removeChild(h)}},[r]),(0,t.jsx)(m,{isPresent:r,childRef:s,sizeRef:o,children:d.cloneElement(e,{ref:s})})}let p=({children:e,initial:r,isPresent:i,onExitComplete:a,custom:o,presenceAffectsLayout:c,mode:d,anchorX:u,root:m})=>{let p=(0,s.useConstant)(f),x=(0,n.useId)(),g=!0,v=(0,n.useMemo)(()=>(g=!1,{id:x,initial:r,isPresent:i,custom:o,onExitComplete:e=>
9{for(let t of(p.set(e,!0),p.values()))if(!t)return;a&&a()},register:e=>(p.set(e,!1),()=>p.delete(e))}),[i,p,a]);return c&&g&&(v={...v}),(0,n.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[i]),n.useEffect(()=>{i||p.size||!a||a()},[i]),"popLayout"===d&&(e=(0,t.jsx)(h,{isPresent:i,anchorX:u,root:m,children:e})),(0,t.jsx)(l.PresenceContext.Provider,{value:v,children:e})};function f(){return new Map}var x=e.i(635149);let g=e=>e.key||"";function v(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:r,initial:i=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",root:h})=>{let[f,b]=(0,x.usePresence)(u),w=(0,n.useMemo)(()=>v(e),[e]),y=u&&!f?[]:w.map(g),j=(0,n.useRef)(!0),N=(0,n.useRef)(w),_=(0,s.useConstant)(()=>new Map),[k,C]=(0,n.useState)(w),[S,R]=(0,n.useState)(w);(0,o.useIsomorphicLayoutEffect)(()=>{j.current=!1,N.current=w;for(let e=0;e<S.length;e++){let t=g(S[e]);y.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[S,y.length,y.join("-")]);let M=[];if(w!==k){let e=[...w];for(let t=0;t<S.length;t++){let r=S[t],n=g(r);y.includes(n)||(e.splice(t,0,r),M.push(r))}return"wait"===d&&M.length&&(e=M),R(v(e)),C(w),null}let{forceRender:E}=(0,n.useContext)(a.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:S.map(e=>{let n=g(e),a=(!u||!!f)&&(w===S||y.includes(n));return(0,t.jsx)(p,{isPresent:a,initial:(!j.current||!!i)&&void 0,custom:r,presenceAffectsLayout:c,mode:d,root:h,onExitComplete:a?void 0:()=>{if(!_.has(n))return;_.set(n,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(E?.(),R(N.current),u&&b?.(),l&&l())},anchorX:m,children:e},n)})})};var w=e.i(98160),y=e.i(331597),j=e.i(526683);let N=e=>{let n,i,a,s,o,l,c,d,u=(0,r.c)(28),{className:m,size:h,delay:p,duration:f,colorFrom:x,colorTo:g,transition:v,style:b,reverse:y,initialOffset:N,borderWidth:_}=e,k=void 0===h?50:h,C=void 0===f?6:f,S=void 0===x?"#ffaa40":x,R=void 0===g?"#9c40ff":g,M=void 0!==y&&y,E=void 0===N?0:N,A=`${void 0===_?1:_}px`;u[0]!==A?(n={"--border-beam-width":A},u[0]=A,u[1]=n):n=u[1];let T=n;u[2]!==m?(i=(0,j.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",m),u[2]=m,u[3]=i):i=u[3];let I=`rect(0 auto auto 0 round ${k}px)`;u[4]!==S||u[5]!==R||u[6]!==k||u[7]!==b||u[8]!==I?(a={width:k,offsetPath:I,"--color-from":S,"--color-to":R,...b},u[4]=S,u[5]=R,u[6]=k,u[7]=b,u[8]=I,u[9]=a):a=u[9];let z=a,L=`${E}%`;u[10]!==L?(s={offsetDistance:L},u[10]=L,u[11]=s):s=u[11],u[12]!==E||u[13]!==M?(o={offsetDistance:M?[`${100-E}%`,`${-E}%`]:[`${E}%`,`${100+E}%`]},u[12]=E,u[13]=M,u[14]=o):o=u[14];let P=-(void 0===p?0:p);return u[15]!==C||u[16]!==P||u[17]!==v?(l={repeat:1/0,ease:"linear",duration:C,delay:P,...v},u[15]=C,u[16]=P,u[17]=v,u[18]=l):l=u[18],u[19]!==i||u[20]!==z||u[21]!==s||u[22]!==o||u[23]!==l?(c=(0,t.jsx)(w.motion.div,{className:i,style:z,initial:s,animate:o,transition:l}),u[19]=i,u[20]=z,u[21]=s,u[22]=o,u[23]=l,u[24]=c):c=u[24],u[25]!==T||u[26]!==c?(d=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:T,children:c}),u[25]=T,u[26]=c,u[27]=d):d=u[27],d};var _=e.i(184499),k=e.i(819023);function C(e){let a,s,o,l,c,d,u,m,h,p,f,x,g,v,y,j,C,R,M,E,A,T=(0,r.c)(40),{features:I,className:z}=e,[L,P]=(0,n.useState)("item-1");T[0]!==I.items?(a={},I.items?.forEach((e,t)=>{a[`item-${t+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),T[0]=I.items,T[1]=a):a=T[1];let D=`overflow-x-hidden py-16 md:py-24 ${z}`;T[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{className:"absolute inset-0 -z-10 bg-linear-to-b sm:inset-6 sm:rounded-b-3xl dark:block dark:to-[color-mix(in_oklab,var(--color-zinc-900)_75%,var(--color-background))]"}),T[2]=s):s=T[2],T[3]!==I.title?(o=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:I.title}),T[3]=I.title,T[4]=o):o=T[4],T[5]!==I.description?(l=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:I.description}
9),T[5]=I.description,T[6]=l):l=T[6],T[7]!==o||T[8]!==l?(c=(0,t.jsx)(k.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[o,l]})}),T[7]=o,T[8]=l,T[9]=c):c=T[9],T[10]===Symbol.for("react.memo_cache_sentinel")?(d=e=>P(e),T[10]=d):d=T[10],T[11]!==I.items?(u=I.items?.map(S),T[11]=I.items,T[12]=u):u=T[12],T[13]!==L||T[14]!==u?(m=(0,t.jsx)(k.ScrollAnimation,{delay:.1,direction:"left",children:(0,t.jsx)(_.Accordion,{type:"single",value:L,onValueChange:d,className:"w-full",children:u})}),T[13]=L,T[14]=u,T[15]=m):m=T[15],T[16]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),T[16]=h):h=T[16];let $=`${L}-id`;T[17]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:0,y:6,scale:.98},f={opacity:1,y:0,scale:1},x={opacity:0,y:6,scale:.98},g={duration:.2},T[17]=p,T[18]=f,T[19]=x,T[20]=g):(p=T[17],f=T[18],x=T[19],g=T[20]);let O=a[L],H=a[L];return T[21]===Symbol.for("react.memo_cache_sentinel")?(v={maxWidth:"100%",height:"auto"},T[21]=v):v=T[21],T[22]!==O.image||T[23]!==H.alt?(y=(0,t.jsx)(i.default,{src:O.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:H.alt,width:1207,height:929,style:v}),T[22]=O.image,T[23]=H.alt,T[24]=y):y=T[24],T[25]!==$||T[26]!==y?(j=(0,t.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-2xl sm:w-[calc(3/4*100%+3rem)]",children:(0,t.jsx)(b,{mode:"wait",children:(0,t.jsx)(w.motion.div,{initial:p,animate:f,exit:x,transition:g,className:"size-full overflow-hidden rounded-2xl border bg-zinc-900 shadow-md",children:y},$)})}),T[25]=$,T[26]=y,T[27]=j):j=T[27],T[28]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(N,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),T[28]=C):C=T[28],T[29]!==j?(R=(0,t.jsx)(k.ScrollAnimation,{delay:.2,direction:"right",children:(0,t.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[h,j,C]})}),T[29]=j,T[30]=R):R=T[30],T[31]!==R||T[32]!==m?(M=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[m,R]}),T[31]=R,T[32]=m,T[33]=M):M=T[33],T[34]!==M||T[35]!==c?(E=(0,t.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[c,M]}),T[34]=M,T[35]=c,T[36]=E):E=T[36],T[37]!==D||T[38]!==E?(A=(0,t.jsxs)("section",{className:D,children:[s,E]}),T[37]=D,T[38]=E,T[39]=A):A=T[39],A}function S(e,r){return(0,t.jsxs)(_.AccordionItem,{value:`item-${r+1}`,children:[(0,t.jsx)(_.AccordionTrigger,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,t.jsx)(y.SmartIcon,{name:e.icon,size:24}),e.title]})}),(0,t.jsx)(_.AccordionContent,{children:e.description})]},r)}e.s(["FeaturesAccordion",()=>C],550974)},944560,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(199978),i=e.i(331597),a=e.i(511398),s=e.i(819023);function o(e){let o,l,c,d,u,m,h=(0,r.c)(16),{cta:p,className:f}=e,x=`py-16 md:py-24 ${f}`;h[0]!==p.title?(o=(0,t.jsx)(s.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:p.title})}),h[0]=p.title,h[1]=o):o=h[1];let g=p.description??"";return h[2]!==g?(l=(0,t.jsx)(s.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:g}})}),h[2]=g,h[3]=l):l=h[3],h[4]!==p.buttons?(c=p.buttons?.map((e,r)=>(0,t.jsx)(a.Button,{asChild:!0,size:e.size||"default",variant:e.variant||"default",onClick:()=>(function(e){let t;e.startsWith("#")&&(t=document.getElementById(e.replace("#","")))&&t.scrollIntoView({behavior:"smooth",block:"start"})})(e.url||""),children:(0,t.jsxs)(n.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(i.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},r)),h[4]=p.buttons,h[5]=c):c=h[5],h[6]!==c?(d=(0,t.jsx)(s.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:c})}),h[6]=c,h[7]=d):d=h[7],h[8]!==o||h[9]!==l||h[10]!==d?(u=(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"text-center",children:[o,l,d]})}),h[8]=o,h[9]=l,h[10]=d,h[11]=u):u=h[11],h[12]!==p.id||h[13]!==x||h[14]!==u?(m=(0,t.jsx)("section",{id:p.id,className:x,children:u}),h[12]=p.id,h[13]=x,h[14]=u,h[15]=m):m=h[15],m}e.s(["CTA",()=>o])},693287,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(331597),i=e.i(819023),a=e.i(526683);function s(e){let n,s,l,c,d,u,m,h,p=(0,r.c)(21),{features:f,className:x}=e,g=f.id;return p[0]!==x||p[1]!==f.className?(n=(0,a.cn)("py-16 md:py-24",f.className,x),p[0]=x,p[1]=f.className,p[2]=n):n=p[2],p[3]!==f.title?(s=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:f.title}
9),p[3]=f.title,p[4]=s):s=p[4],p[5]!==f.description?(l=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:f.description}),p[5]=f.description,p[6]=l):l=p[6],p[7]!==s||p[8]!==l?(c=(0,t.jsx)(i.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[s,l]})}),p[7]=s,p[8]=l,p[9]=c):c=p[9],p[10]!==f.items?(d=f.items?.map(o),p[10]=f.items,p[11]=d):d=p[11],p[12]!==d?(u=(0,t.jsx)(i.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:d})}),p[12]=d,p[13]=u):u=p[13],p[14]!==c||p[15]!==u?(m=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[c,u]}),p[14]=c,p[15]=u,p[16]=m):m=p[16],p[17]!==f.id||p[18]!==n||p[19]!==m?(h=(0,t.jsx)("section",{id:g,className:n,children:m}),p[17]=f.id,p[18]=n,p[19]=m,p[20]=h):h=p[20],h}function o(e,r){return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.SmartIcon,{name:e.icon,size:24}),(0,t.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,t.jsx)("p",{className:"text-sm",children:e.description})]},r)}e.s(["Features",()=>s])},435624,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(819023);function i(e){let i,s,o,l,c,d,u,m=(0,r.c)(18),{stats:h,className:p}=e,f=`py-12 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(i=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=i):i=m[1],m[2]!==h.description?(s=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=s):s=m[3],m[4]!==i||m[5]!==s?(o=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[i,s]})}),m[4]=i,m[5]=s,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map(a),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:l})}),m[9]=l,m[10]=c):c=m[10],m[11]!==o||m[12]!==c?(d=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[o,c]}),m[11]=o,m[12]=c,m[13]=d):d=m[13],m[14]!==h.id||m[15]!==f||m[16]!==d?(u=(0,t.jsx)("section",{id:h.id,className:f,children:d}),m[14]=h.id,m[15]=f,m[16]=d,m[17]=u):u=m[17],u}function a(e,r){return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,t.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,t.jsx)("p",{children:e.description})]},r)}e.s(["Stats",()=>i])},615978,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(819232),i=e.i(294237),a=e.i(526683);let s=(0,i.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function o(e){let i,o,l,c,d,u,m=(0,r.c)(12);m[0]!==e?({className:i,variant:c,asChild:l,...o}=e,m[0]=e,m[1]=i,m[2]=o,m[3]=l,m[4]=c):(i=m[1],o=m[2],l=m[3],c=m[4]);let h=void 0!==l&&l?n.Slot:"span";return m[5]!==i||m[6]!==c?(d=(0,a.cn)(s({variant:c}),i),m[5]=i,m[6]=c,m[7]=d):d=m[7],m[8]!==h||m[9]!==o||m[10]!==d?(u=(0,t.jsx)(h,{"data-slot":"badge",className:d,...o}),m[8]=h,m[9]=o,m[10]=d,m[11]=u):u=m[11],u}e.s(["Badge",()=>o])},539143,e=>{"use strict";var t=e.i(900972);e.s(["Menu",()=>t.default])},475507,e=>{"use strict";let t=(0,e.i(889522).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",()=>t])},900972,e=>{"use strict";let t=(0,e.i(889522).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["default",()=>t])},137114,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(79112),n=n,i=e.i(331597),a=e.i(819023),s=e.i(526683);function o(e){let o,l,c,d,u,m,h,p,f,x,g=(0,r.c)(28),{features:v,className:b}=e,w=v.items?.length??0,y=v.id;g[0]!==b||g[1]!==v.className?(o=(0,s.cn)("py-16 md:py-24",v.className,b),g[0]=b,g[1]=v.className,g[2]=o):o=g[2],g[3]!==v.label?(l=(0,t.jsx)("span",{className:"text-primary",children:v.label}),g[3]=v.label,g[4]=l):l=g[4],g[5]!==v.title?(c=(0,t.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:v.title}),g[5]=v.title,g[6]=c):c=g[6],g[7]!==v.description?(d=(0,t.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:v.description}),g[7]=v.description,g[8]=d):d=g[8],g[9]!==l||g[10]!==c||g[11]!==d?(u=(0,t.jsx)(a.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[l,c,d]})}),g[9]=l,g[10]=c,g[11]=d,g[12]=u):u=g[12];let j=4===w&&"xl:grid-cols-4 max-w-6xl",N=4!==w&&"max-w-5xl";return g[13]!==j||g[14]!==N?(m=(0,s.cn)("mt-20 grid gap-12 justify-items-center sm:grid-cols-2 lg:grid-cols-3",j,N,"mx-auto"),g[13]=j,g[14]=N,g[15]=m):m=g[15],g[16]!==v.items?(h=v.items?.map((e,r)=>(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("span",{className:"mx-auto flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:r+1}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"mx-auto my-6 w-fit",children:e.icon&&(0,t.jsx)(i.SmartIcon,{name:e.icon,size:24})}),r<(v.items?.length??0)-1&&(0,t.jsx)(n.default,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,t.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},r)),g[16]=v.items,g[17]=h):h=g[17],g[18]!==h||g[19]!==m?(p=(0,t.jsx)(a.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:m,children:h})}),g[18]=h,g[19]=m,g[20]=p):p=g[20],g[21]!==p||g[22]!==u?(f=(0,t.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,t.jsxs)("div",{className:"@container relative container",children:[u,p]})}),g[21]=p,g[22]=u,g[23]=f):f=g[23],g[24]!==v.id||g[25]!==f||g[26]!==o?(x=(0,t.jsx)("section",{id:y,className:o,children:f}),g[24]=v.id,g[25]=f,g[26]=o,g[27]=x):x=g[27],x}e.s(["FeaturesStep",()=>o],137114)},471061,e=>{"use strict";var t=e.i(604720),r=e.i(176506),n=e.i(462297),i=e.i(692604),i=i,a=e.i(117550),a=a,s=e.i(779342),o=e.i(511398),l=e.i(819023),c=e.i(526683);function d({subscribe:e,className:d}){let[u,m]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),f=async()=>
9{if(u&&e.submit?.action)try{p(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:u})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:r,message:n,data:i}=await t.json();if(0!==r)throw Error(n);p(!1),n&&s.toast.success(n)}catch(e){p(!1),s.toast.error(e.message||"subscribe failed")}};return(0,t.jsx)("section",{id:e.id,className:(0,c.cn)("py-16 md:py-24",e.className,d),children:(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(l.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,t.jsx)(l.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",children:e.description})}),(0,t.jsx)(l.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,t.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,t.jsx)(i.default,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,t.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent pl-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!u,"aria-describedby":"email-error",value:u,onChange:e=>m(e.target.value)}),e.submit?.button&&(0,t.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,t.jsxs)(o.Button,{"aria-label":"submit",className:"rounded-(--radius)",onClick:f,disabled:h,type:"submit",children:[h?(0,t.jsx)(n.Loader2,{className:"animate-spin"}):(0,t.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,t.jsx)(a.default,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}e.s(["Subscribe",()=>d],471061)},609639,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(819023);function i(e){let i,s,o,l,c,d,u,m=(0,r.c)(18),{testimonials:h,className:p}=e,f=`py-16 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(i=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=i):i=m[1],m[2]!==h.description?(s=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=s):s=m[3],m[4]!==i||m[5]!==s?(o=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[i,s]})}),m[4]=i,m[5]=s,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map((e,r)=>(0,t.jsx)(a,{...e},r)),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(c=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:l})})}),m[9]=l,m[10]=c):c=m[10],m[11]!==o||m[12]!==c?(d=(0,t.jsxs)("div",{className:"container",children:[o,c]}),m[11]=o,m[12]=c,m[13]=d):d=m[13],m[14]!==f||m[15]!==d||m[16]!==h.id?(u=(0,t.jsx)("section",{id:h.id,className:f,children:d}),m[14]=f,m[15]=d,m[16]=h.id,m[17]=u):u=m[17],u}function a(e){let{name:r,role:n,image:i,quote:a}=e;return(0,t.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,t.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:a}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"ring-foreground/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)("img",{src:i?.src??"",alt:i?.alt??"",className:"h-full w-full object-cover",width:460,height:460,loading:"lazy"})}),(0,t.jsxs)("h3",{className:"sr-only",children:[r,", ",n]}),(0,t.jsxs)("div",{className:"space-y-px",children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[r," "]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:n})]})]})]})}e.s(["Testimonials",()=>i])},223833,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(519473),i=e.i(914988);e.i(741820);var a=e.i(331597),s=e.i(511398),o=e.i(819023),l=e.i(526683);function c(e){let i,a,s,l,c,m,h,p,f,x,g,v=(0,r.c)(27),{features:b,className:w}=e,y=`overflow-x-hidden py-16 md:py-24 ${w}`,j=b.image?.src??"",N=b.image?.alt??"";return v[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:"100%",height:"auto",display:"block"},v[0]=i):i=v[0],v[1]!==j||v[2]!==N?(a=(0,t.jsx)(o.ScrollAnimation,{direction:"left",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[500px] flex-shrink-0 md:mx-0",children:(0,t.jsx)(n.default,{src:j,alt:N,width:500,height:300,className:"h-auto w-full rounded-lg object-cover",style:i})})}),v[1]=j,v[2]=N,v[3]=a):a=v[3],v[4]!==b.title?(s=(0,t.jsx)(o.ScrollAnimation,{delay:.1,children:(0,t.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:b.title})}),v[4]=b.title,v[5]=s):s=v[5],v[6]!==b.description?(l=(0,t.jsx)(o.ScrollAnimation,{delay:.2,children:(0,t.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:b.description})}),v[6]=b.description,v[7]=l):l=v[7],v[8]!==b.buttons?(c=b.buttons&&b.buttons.length>0&&(0,t.jsx)(o.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:b.buttons?.map(u)})}),v[8]=b.buttons,v[9]=c):c=v[9],v[10]!==s||v[11]!==l||v[12]!==c?(m=(0,t.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[s,l,c]}),v[10]=s,v[11]=l,v[12]=c,v[13]=m):m=v[13],v[14]!==a||v[15]!==m?(h=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-8 pb-12 md:gap-24",children:[a,m]}),v[14]=a,v[15]=m,v[16]=h):h=v[16],v[17]!==b.items?(p=b.items?.map(d),v[17]=b.items,v[18]=p):p=v[18],v[19]!==p?(f=(0,t.jsx)(o.ScrollAnimation,{delay:.1,children:(0,t.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:p})}),v[19]=p,v[20]=f):f=v[20],v[21]!==h||v[22]!==f?(x=(0,t.jsxs)("div",{className:"container overflow-x-hidden",children:[h,f]}),v[21]=h,v[22]=f,v[23]=x):x=v[23],v[24]!==y||v[25]!==x?(g=(0,t.jsx)("section",{className:y,children:x}),v[24]=y,v[25]=x,v[26]=g):g=v[26],g}function d(e,r){return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon,size:16}),(0,t.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},r)}function u(e,r){return(0,t.jsx)(s.Button,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,t.jsxs)(i.default,{href:e.url??"",target:e.target??"_self",className:(0,l.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground
9/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon,size:24}),e.title]},r)},r)}e.s(["FeaturesList",()=>c])},669764,e=>{"use strict";var t=e.i(604720),r=e.i(176506),n=e.i(636680),i=e.i(462297),a=e.i(623099),s=e.i(193151),o=e.i(779342);e.i(741820);var l=e.i(331597),c=e.i(917268),d=e.i(511398),u=e.i(122913),m=e.i(422812),h=e.i(960568),p=e.i(581682),f=e.i(519473),x=e.i(199978),g=e.i(851239),v=e.i(526683);function b({configs:e,callbackUrl:n,loading:l,setLoading:c,pricingItem:u,onCheckout:m,className:p}){(0,s.useTranslations)("common.payment"),(0,x.useRouter)();let{setIsShowPaymentModal:b}=(0,h.useAppContext)(),[w,y]=(0,r.useState)(null);if(n){let e=(0,a.useLocale)();e!==g.defaultLocale&&n.startsWith("/")&&!n.startsWith(`/${e}`)&&(n=`/${e}${n}`)}let j=async({provider:e})=>{e?u?m(u,e):o.toast.error("please select a pricing item"):o.toast.error("please select payment method")},N=u?.payment_providers,_=e=>!N||0===N.length||N.includes(e),k=[];return"true"===e.stripe_enabled&&_("stripe")&&k.push({name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>j({provider:"stripe"})}),"true"===e.creem_enabled&&_("creem")&&k.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>j({provider:"creem"})}),"true"===e.paypal_enabled&&_("paypal")&&k.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>j({provider:"paypal"})}),(0,t.jsx)("div",{className:(0,v.cn)("flex w-full items-center gap-2","flex-col justify-between",p),children:k.map(e=>(0,t.jsxs)(d.Button,{variant:"outline",className:(0,v.cn)("w-full gap-2"),disabled:l,onClick:()=>{e.onClick&&e.name?(y(e.name),e.onClick()):o.toast.error("invalid payment method")},children:[e.icon_url&&(0,t.jsx)(f.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,t.jsx)("h3",{children:e.title}),w===e.name&&l&&(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"})]},e.name))})}function w(e){let r,n,i,a,o,l,f,x,g,v,w=(0,c.c)(51),{isLoading:N,pricingItem:_,onCheckout:k}=e,C=(0,s.useTranslations)("common.payment"),{isShowPaymentModal:S,setIsShowPaymentModal:R}=(0,h.useAppContext)(),{configs:M}=(0,h.useAppContext)();if((0,p.useMediaQuery)("(min-width: 768px)")){let e,r,n,i,a,s,o,l;return w[0]!==C?(e=C("choose_payment_method"),w[0]=C,w[1]=e):e=w[1],w[2]!==e?(r=(0,t.jsx)(u.DialogTitle,{children:e}),w[2]=e,w[3]=r):r=w[3],w[4]!==C?(n=C("choose_payment_method_description"),w[4]=C,w[5]=n):n=w[5],w[6]!==n?(i=(0,t.jsx)(u.DialogDescription,{children:n}),w[6]=n,w[7]=i):i=w[7],w[8]!==r||w[9]!==i?(a=(0,t.jsxs)(u.DialogHeader,{children:[r,i]}),w[8]=r,w[9]=i,w[10]=a):a=w[10],w[11]!==M||w[12]!==N||w[13]!==k||w[14]!==_?(s=(0,t.jsx)(b,{callbackUrl:"/",configs:M,loading:N,setLoading:j,pricingItem:_,onCheckout:k}),w[11]=M,w[12]=N,w[13]=k,w[14]=_,w[15]=s):s=w[15],w[16]!==a||w[17]!==s?(o=(0,t.jsxs)(u.DialogContent,{className:"sm:max-w-[425px]",children:[a,s]}),w[16]=a,w[17]=s,w[18]=o):o=w[18],w[19]!==S||w[20]!==R||w[21]!==o?(l=(0,t.jsx)(u.Dialog,{open:S,onOpenChange:R,children:o}),w[19]=S,w[20]=R,w[21]=o,w[22]=l):l=w[22],l}return w[23]!==C?(r=C("choose_payment_method"),w[23]=C,w[24]=r):r=w[24],w[25]!==r?(n=(0,t.jsx)(m.DrawerTitle,{children:r}),w[25]=r,w[26]=n):n=w[26],w[27]!==C?(i=C("choose_payment_method_description"),w[27]=C,w[28]=i):i=w[28],w[29]!==i?(a=(0,t.jsx)(m.DrawerDescription,{children:i}),w[29]=i,w[30]=a):a=w[30],w[31]!==n||w[32]!==a?(o=(0,t.jsxs)(m.DrawerHeader,{className:"text-left",children:[n,a]}),w[31]=n,w[32]=a,w[33]=o):o=w[33],w[34]!==M||w[35]!==N||w[36]!==k||w[37]!==_?(l=(0,t.jsx)(b,{callbackUrl:"/",configs:M,loading:N,setLoading:y,pricingItem:_,onCheckout:k,className:"px-4"}),w[34]=M,w[35]=N,w[36]=k,w[37]=_,w[38]=l):l=w[38],w[39]!==C?(f=C("cancel_title"),w[39]=C,w[40]=f):f=w[40],w[41]!==f?(x=(0,t.jsx)(m.DrawerFooter,{className:"pt-4",children:(0,t.jsx)(m.DrawerClose,{asChild:!0,children:(0,t.jsx)(d.Button,{variant:"outline",children:f})})}),w[41]=f,w[42]=x):x=w[42],w[43]!==o||w[44]!==l||w[45]!==x?(g=(0,t.jsxs)(m.DrawerContent,{children:[o,l,x]}),w[43]=o,w[44]=l,w[45]=x,w[46]=g):g=w[46],w[47]!==S||w[48]!==R||w[49]!==g?(v=(0,t.jsx)(m.Drawer,{open:S,onOpenChange:R,children:g}),w[47]=S,w[48]=R,w[49]=g,w[50]=v):v=w[50],v}function y(){}function j(){}var N=e.i(615978),_=e.i(686247),k=e.i(638678),C=e.i(330771);function S(e){if("undefined"==typeof document)return"";let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||""}var R=e.i(181285);function M({amount:e,currency:t,locale:r}){if(null==e||!t)return"";try{let n=new Intl.NumberFormat(r||"en",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100);if("USD"===t.toUpperCase())return n.replace("US$","$");return n}catch(r){return console.error("formatCurrencyDisplay failed: ",r),`${t} ${(e/100).toFixed(2)}`}}function E(e){if(!e)return[];let t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t,...e.currencies]:[t]}function A({pricing:e,className:c,currentSubscription:u}){let m=(0,a.useLocale)(),p=(0,s.useTranslations)("pricing.page"),{user:f,isShowPaymentModal:x,setIsShowSignModal:g,setIsShowPaymentModal:b,configs:y}=(0,h.useAppContext)(),[j,A]=(0,r.useState)(()=>{let t=e.items?.find(e=>e.product_id===u?.productId),r=e.groups?.find(e=>e.is_featured);return t?.group||r?.name||e.groups?.[0]?.name}),[T,I]=(0,r.useState)(null),[z,L]=(0,r.useState)(!1),[P,D]=(0,r.useState)(null),[$,O]=(0,r.useState)({});(0,r.useEffect)(()=>
9{if(e.items&&e.items.length>0){let t={};e.items.forEach(e=>{let r=E(e),n=function(e,t,r){if(0===e.length)return r;if("zh"===t){let t=e.find(e=>"cny"===e.currency.toLowerCase());if(t)return t.currency}return r}(r,m,e.currency),i=r.find(e=>e.currency.toLowerCase()===n.toLowerCase()),a=i?{...e,currency:i.currency,amount:i.amount,price:i.price,original_price:i.original_price,payment_product_id:i.payment_product_id||e.payment_product_id,payment_providers:i.payment_providers||e.payment_providers}:e;t[e.product_id]={selectedCurrency:n,displayedItem:a}}),O(t)}},[e.items,m]);let H=async e=>{if(!f)return void g(!0);let t=$[e.product_id]?.displayedItem||e;"true"===y.select_payment_enabled?(I(t),b(!0)):F(t,y.default_payment_provider)},F=async(e,t)=>{try{if(!f)return void g(!0);let r=(({paymentProvider:e})=>{let t={};return"true"===y.affonso_enabled&&["stripe","creem"].includes(e)&&(t.affonso_referral=S("affonso_referral")||""),"true"===y.promotekit_enabled&&["stripe"].includes(e)&&(t.promotekit_referral=window.promotekit_referral?window.promotekit_referral:S("promotekit_referral")||""),t})({paymentProvider:t||""}),n={product_id:e.product_id,currency:e.currency,locale:m||"en",payment_provider:t||"",metadata:r};L(!0),D(e.product_id);let i=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(401===i.status){L(!1),D(null),I(null),g(!0);return}if(!i.ok)throw Error(`request failed with status ${i.status}`);let{code:a,message:s,data:o}=await i.json();if(0!==a)throw Error(s);let{checkoutUrl:l}=o;if(!l)throw Error("checkout url not found");window.location.href=l}catch(e){console.log("checkout failed: ",e),o.toast.error("checkout failed: "+e.message),L(!1),D(null)}};return(0,r.useEffect)(()=>{if(e.items){let t=e.items.find(e=>e.is_featured);D(t?.product_id||e.items[0]?.product_id),L(!1)}},[e.items]),(0,r.useEffect)(()=>{j&&R.trackFunnel.pricingPlanView({interval:j,group:j})},[j]),(0,t.jsxs)("section",{id:e.id,className:(0,v.cn)("py-24 md:py-36",e.className,c),children:[(0,t.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[e.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:e.sr_only_title}),(0,t.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:e.description})]}),(0,t.jsxs)("div",{className:"container",children:[e.groups&&e.groups.length>0&&(0,t.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,t.jsx)(C.Tabs,{value:j,onValueChange:A,className:"",children:(0,t.jsx)(C.TabsList,{children:e.groups.map((e,r)=>(0,t.jsxs)(C.TabsTrigger,{value:e.name||"",children:[e.title,e.label&&(0,t.jsx)(N.Badge,{className:"ml-2",children:e.label})]},r))})})}),(0,t.jsx)("div",{className:`mx-auto mt-0 grid w-full gap-6 md:grid-cols-${e.items?.filter(e=>!e.group||e.group===j)?.length}`,children:e.items?.map((r,a)=>{if(r.group&&r.group!==j)return null;let s=!1;u&&u.productId===r.product_id&&(s=!0);let o=$[r.product_id],c=o?.displayedItem||r,h=o?.selectedCurrency||r.currency,f=E(r),x="year"===c.interval?p("cost_breakdown_year_unit"):"month"===c.interval?p("cost_breakdown_month_unit"):"",g=r.credits,b=M({amount:c.amount,currency:c.currency,locale:m}),w=g&&g>0?M({amount:c.amount/g,currency:c.currency,locale:m}):"",y="year"===c.interval?M({amount:c.amount,currency:c.currency,locale:m}):"";return(0,t.jsxs)(_.Card,{className:"relative",children:[r.label&&(0,t.jsx)("span",{className:"absolute inset-x-0 -top-3 mx-auto flex h-6 w-fit items-center rounded-full bg-linear-to-br/increasing from-purple-400 to-amber-300 px-3 py-1 text-xs font-medium text-amber-950 ring-1 ring-white/20 ring-offset-1 ring-offset-gray-950/5 ring-inset",children:r.label}),(0,t.jsxs)(_.CardHeader,{children:[(0,t.jsx)(_.CardTitle,{className:"font-medium",children:(0,t.jsx)("h3",{className:"text-sm font-medium",children:r.title})}),(0,t.jsxs)("div",{className:"my-3 flex items-baseline gap-2",children:[c.original_price&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm line-through",children:c.original_price}),(0,t.jsxs)("div",{className:"my-3 block text-2xl font-semibold",children:[(0,t.jsx)("span",{className:"text-primary",children:c.price})," ",c.unit?(0,t.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:c.unit}):""]}),f.length>1&&(0,t.jsxs)(k.Select,{value:h,onValueChange:t=>((t,r)=>{let n=e.items?.find(e=>e.product_id===t);if(!n)return;let i=E(n).find(e=>e.currency.toLowerCase()===r.toLowerCase());if(i){let e={...n,currency:i.currency,amount:i.amount,price:i.price,original_price:i.original_price,payment_product_id:i.payment_product_id||n.payment_product_id,payment_providers:i.payment_providers||n.payment_providers};O(n=>({...n,[t]:{selectedCurrency:r,displayedItem:e}}))}})(r.product_id,t),children:[(0,t.jsx)(k.SelectTrigger,{size:"sm",className:"border-muted-foreground
9/30 bg-background/50 h-6 min-w-[60px] px-2 text-xs",children:(0,t.jsx)(k.SelectValue,{placeholder:"Currency"})}),(0,t.jsx)(k.SelectContent,{children:f.map(e=>(0,t.jsx)(k.SelectItem,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency))})]})]}),y&&(0,t.jsx)("div",{className:"text-muted-foreground -mt-2 mb-2 text-xs",children:p.rich("annual_total",{amount:e=>(0,t.jsx)("span",{className:"font-semibold text-foreground",children:e}),value:y})}),(0,t.jsx)(_.CardDescription,{className:"text-sm",children:r.description}),r.tip&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:r.tip}),s?(0,t.jsx)(d.Button,{variant:"outline",className:"mt-4 h-9 w-full px-4 py-2",disabled:!0,children:(0,t.jsx)("span",{className:"hidden text-sm md:block",children:p("current_plan")})}):(0,t.jsx)(d.Button,{onClick:()=>H(r),disabled:z,className:(0,v.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-4 h-9 w-full px-4 py-2","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:z&&r.product_id===P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}),(0,t.jsx)("span",{className:"block",children:p("processing")})]}):(0,t.jsxs)(t.Fragment,{children:[r.button?.icon&&(0,t.jsx)(l.SmartIcon,{name:r.button?.icon,className:"size-4"}),(0,t.jsx)("span",{className:"block",children:r.button?.title})]})})]}),(0,t.jsxs)(_.CardContent,{className:"space-y-4",children:[(0,t.jsx)("hr",{className:"border-dashed"}),g&&g>0&&(0,t.jsxs)("div",{className:"rounded-lg border border-border/50 bg-muted/30 px-3 py-3 text-xs space-y-1.5",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold tracking-wide text-muted-foreground",children:p("cost_breakdown_title")}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground/90",children:p("cost_breakdown_total")}),(0,t.jsxs)("span",{className:"font-medium text-foreground",children:[b," ",x]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground/90",children:p("cost_breakdown_max_images")}),(0,t.jsxs)("span",{className:"text-foreground",children:[g," ",p("cost_breakdown_image_unit")]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-muted-foreground/90",children:p("cost_breakdown_per_image")}),(0,t.jsxs)("span",{className:"font-semibold text-primary",children:[w,p("cost_breakdown_per_image_suffix")]})]}),"year"===c.interval&&w&&(0,t.jsx)("div",{className:"text-[11px] font-medium text-emerald-600",children:p("cost_breakdown_yearly_hint",{value:w})})]}),r.features_title&&(0,t.jsx)("p",{className:"text-sm font-medium",children:r.features_title}),(0,t.jsx)("ul",{className:"list-outside space-y-3 text-sm",children:r.features?.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.Check,{className:"size-3"}),e]},r))})]})]},a)})})]}),(0,t.jsx)(w,{isLoading:z,pricingItem:T,onCheckout:(e,t)=>F(e,t)})]})}e.s(["Pricing",()=>A],669764)},654243,e=>{"use strict";var t=e.i(604720),r=e.i(917268),n=e.i(176506),i=e.i(539143),a=e.i(653668),s=e.i(199978);e.i(741820);var o=e.i(799112),l=e.i(538630),c=e.i(642616),d=e.i(331597),u=e.i(600195),m=e.i(184499),h=e.i(10668),p=e.i(352162),f=e.i(291967),x=e.i(6140),g=e.i(575301),v=e.i(188625),b=e.i(950074),w=e.i(775827),y=e.i(987438),j=e.i(408896),N=e.i(415839),_=e.i(898175),k=e.i(385064),C=e.i(935125),S=e.i(715684),R="NavigationMenu",[M,E,A]=(0,j.createCollection)(R),[T,I,z]=(0,j.createCollection)(R),[L,P]=(0,p.createContextScope)(R,[A,z]),[D,$]=L(R),[O,H]=L(R),F=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,value:a,onValueChange:s,defaultValue:o,delayDuration:l=200,skipDelayDuration:c=300,orientation:d="horizontal",dir:u,...m}=e,[h,p]=n.useState(null),f=(0,v.useComposedRefs)(r,e=>p(e)),w=(0,b.useDirection)(u),y=n.useRef(0),j=n.useRef(0),N=n.useRef(0),[_,k]=n.useState(!0),[C,S]=(0,g.useControllableState)({prop:a,onChange:e=>{let t=c>
90;""!==e?(window.clearTimeout(N.current),t&&k(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>k(!0),c)),s?.(e)},defaultProp:o??"",caller:R}),M=n.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>S(""),150)},[S]),E=n.useCallback(e=>{window.clearTimeout(j.current),S(e)},[S]),A=n.useCallback(e=>{C===e?window.clearTimeout(j.current):y.current=window.setTimeout(()=>{window.clearTimeout(j.current),S(e)},l)},[C,S,l]);return n.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(j.current),window.clearTimeout(N.current)},[]),(0,t.jsx)(V,{scope:i,isRootMenu:!0,value:C,dir:w,orientation:d,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(y.current),_?A(e):E(e)},onTriggerLeave:()=>{window.clearTimeout(y.current),M()},onContentEnter:()=>window.clearTimeout(j.current),onContentLeave:M,onItemSelect:e=>{S(t=>t===e?"":e)},onItemDismiss:()=>S(""),children:(0,t.jsx)(x.Primitive.nav,{"aria-label":"Main","data-orientation":d,dir:w,...m,ref:f})})});F.displayName=R;var W="NavigationMenuSub";n.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:i,onValueChange:a,defaultValue:s,orientation:o="horizontal",...l}=e,c=$(W,n),[d,u]=(0,g.useControllableState)({prop:i,onChange:a,defaultProp:s??"",caller:W});return(0,t.jsx)(V,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>u(e),onItemSelect:e=>u(e),onItemDismiss:()=>u(""),children:(0,t.jsx)(x.Primitive.div,{"data-orientation":o,...l,ref:r})})}).displayName=W;var V=e=>{let{scope:r,isRootMenu:i,rootNavigationMenu:a,dir:s,orientation:o,children:l,value:c,onItemSelect:d,onItemDismiss:u,onTriggerEnter:m,onTriggerLeave:h,onContentEnter:p,onContentLeave:f}=e,[x,g]=n.useState(null),[v,b]=n.useState(new Map),[w,j]=n.useState(null);return(0,t.jsx)(D,{scope:r,isRootMenu:i,rootNavigationMenu:a,value:c,previousValue:(0,_.usePrevious)(c),baseId:(0,y.useId)(),dir:s,orientation:o,viewport:x,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:j,onTriggerEnter:(0,C.useCallbackRef)(m),onTriggerLeave:(0,C.useCallbackRef)(h),onContentEnter:(0,C.useCallbackRef)(p),onContentLeave:(0,C.useCallbackRef)(f),onItemSelect:(0,C.useCallbackRef)(d),onItemDismiss:(0,C.useCallbackRef)(u),onViewportContentChange:n.useCallback((e,t)=>{b(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(M.Provider,{scope:r,children:(0,t.jsx)(O,{scope:r,items:v,children:l})})})},B="NavigationMenuList",q=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...i}=e,a=$(B,n),s=(0,t.jsx)(x.Primitive.ul,{"data-orientation":a.orientation,...i,ref:r});return(0,t.jsx)(x.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,t.jsx)(M.Slot,{scope:n,children:a.isRootMenu?(0,t.jsx)(ed,{asChild:!0,children:s}):s})})});q.displayName=B;var U="NavigationMenuItem",[K,G]=L(U),X=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,value:a,...s}=e,o=(0,y.useId)(),l=n.useRef(null),c=n.useRef(null),d=n.useRef(null),u=n.useRef(()=>{}),m=n.useRef(!1),h=n.useCallback((e="start")=>{if(l.current){u.current();let t=eh(l.current);t.length&&ep("start"===e?t:t.reverse())}},[]),p=n.useCallback(()=>{if(l.current){var e;let t=eh(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),u.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(K,{scope:i,value:a||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:l,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,t.jsx)(x.Primitive.li,{...s,ref:r})})});X.displayName=U;var J="NavigationMenuTrigger",Y=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,disabled:a,...s}=e,o=$(J,e.__scopeNavigationMenu),l=G(J,e.__scopeNavigationMenu),c=n.useRef(null),d=(0,v.useComposedRefs)(c,l.triggerRef,r),u=eg(o.baseId,l.value),m=ev(o.baseId,l.value),h=n.useRef(!1),p=n.useRef(!1),g=l.value===o.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.ItemSlot,{scope:i,value:l.value,children:(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.button,{id:u,disabled:a,"data-disabled":a?"":void 0,"data-state":ex(g),"aria-expanded":g,"aria-controls":m,...s,ref:d,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,f.composeEventHandlers)(e.onPointerMove,eb(()=>{a||p.current||l.wasEscapeCloseRef.current||h.current||(o.onTriggerEnter(l.value),h.current=!0)})),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(()=>{a||(o.onTriggerLeave(),h.current=!1)})),onClick:(0,f.composeEventHandlers)(e.onClick,()=>{o.onItemSelect(l.value),p.current=g}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===o.dir?"ArrowLeft":"ArrowRight"}[o.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,n=r===c.current,i=t?.contains(r);(n||!i)&&l.onFocusProxyEnter(n?"start":"end")}}),o.viewport&&(0,t.jsx)("span",{"aria-owns":m})]})]})});Y.displayName=J;var Q="navigationMenu.linkSelect",Z=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,active:i,onSelect:a,...s}=e;return(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...s,ref:r,onClick:(0,f.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(Q,{bubbles:!0,cancelable:!0});if(t.addEventListener(Q,e=>a?.(e),{once:!0}),(0,x.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ea,{bubbles:!0,cancelable:!0});(0,x.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});Z.displayName="NavigationMenuLink";var ee="NavigationMenuIndicator";n.forwardRef((e,r)=>{let{forceMount:n,...i}=e,a=$(ee,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?h.default.createPortal((0,t.jsx)(w.Presence,{present:n||s,children:(0,t.jsx)(et,{...i,ref:r})}),a.indicatorTrack):null}).displayName=ee;var et=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...a}=e,s=$(ee,i),o=E(i),[l,c]=n.useState(null),[d,u]=n.useState(null),m="horizontal"===s.orientation,h=!!s.value;n.useEffect(()=>{let e=o(),t=e.find(e=>e.value===s.value)?.ref.current;t&&c(t)},[o,s.value]);let p=()=>{l&&u({size:m?l.offsetWidth:l.offsetHeight,offset:m?l.offsetLeft:l.offsetTop})};return ef(l,p),ef(s.indicatorTrack,p),d?(0,t.jsx)(x.Primitive.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":s.orientation,...a,ref:r,style:{position:"absolute",...m?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...a.style}}):null}),er="NavigationMenuContent",en=n.forwardRef((e,r)=>{let{forceMount:n,...i}=e,a=$(er,e.__scopeNavigationMenu),s=G(er,e.__scopeNavigationMenu),o=(0,v.useComposedRefs)(s.contentRef,r),l=s.value===a.value,c={value:s.value,triggerRef:s.triggerRef,focu
9sProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...i};return a.viewport?(0,t.jsx)(ei,{forceMount:n,...c,ref:o}):(0,t.jsx)(w.Presence,{present:n||l,children:(0,t.jsx)(es,{"data-state":ex(l),...c,ref:o,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...c.style}})})});en.displayName=er;var ei=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=$(er,e.__scopeNavigationMenu);return(0,k.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,k.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null}),ea="navigationMenu.rootContentDismiss",es=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,value:a,triggerRef:s,focusProxyRef:o,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...u}=e,m=$(er,i),h=n.useRef(null),p=(0,v.useComposedRefs)(h,r),x=eg(m.baseId,a),g=ev(m.baseId,a),b=E(i),w=n.useRef(null),{onItemDismiss:y}=m;n.useEffect(()=>{let e=h.current;if(m.isRootMenu&&e){let t=()=>{y(),c(),e.contains(document.activeElement)&&s.current?.focus()};return e.addEventListener(ea,t),()=>e.removeEventListener(ea,t)}},[m.isRootMenu,e.value,s,y,c]);let j=n.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),n=a===m.value,i=r===e.indexOf(a);if(!n&&!i)return w.current;let s=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(i&&-1!==t)return t>r?"to-start":"to-end"}return null})();return w.current=s,s},[m.previousValue,m.value,m.dir,b,a]);return(0,t.jsx)(ed,{asChild:!0,children:(0,t.jsx)(N.DismissableLayer,{id:g,"aria-labelledby":x,"data-motion":j,"data-orientation":m.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ea,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,f.composeEventHandlers)(e.onFocusOutside,e=>{d();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,f.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=b().some(e=>e.ref.current?.contains(t)),n=m.isRootMenu&&m.viewport?.contains(t);(r||n||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eh(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);ep(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:(0,f.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),eo="NavigationMenuViewport",el=n.forwardRef((e,r)=>{let{forceMount:n,...i}=e,a=!!$(eo,e.__scopeNavigationMenu).value;return(0,t.jsx)(w.Presence,{present:n||a,children:(0,t.jsx)(ec,{...i,ref:r})})});el.displayName=eo;var ec=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,children:a,...s}=e,o=$(eo,i),l=(0,v.useComposedRefs)(r,o.onViewportChange),c=H(er,e.__scopeNavigationMenu),[d,u]=n.useState(null),[m,h]=n.useState(null),p=d?d?.width+"px":void 0,g=d?d?.height+"px":void 0,b=!!o.value,y=b?o.value:o.previousValue;return ef(m,()=>{m&&u({width:m.offsetWidth,height:m.offsetHeight})}),(0,t.jsx)(x.Primitive.div,{"data-state":ex(b),"data-orientation":o.orientation,...s,ref:l,style:{pointerEvents:!b&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...s.style},onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eb(o.onContentLeave)),children:Array.from(c.items).map(([e,{ref:r,forceMount:n,...i}])=>{let a=y===e;return(0,t.jsx)(w.Presence,{present:n||a,children:(0,t.jsx)(es,{...i,ref:(0,v.composeRefs)(r,e=>{a&&e&&h(e)})})},e)})})}),ed=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...i}=e,a=$("FocusGroup",n);return(0,t.jsx)(T.Provider,{scope:n,children:(0,t.jsx)(T.Slot,{scope:n,children:(0,t.jsx)(x.Primitive.div,{dir:a.dir,...i,ref:r})})})}),eu=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],em=n.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...i}=e,a=I(n),s=$("FocusGroupItem",n);return(0,t.jsx)(T.ItemSlot,{scope:n,children:(0,t.jsx)(x.Primitive.button,{...i,ref:r,onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>
9{if(["Home","End",...eu].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eu.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ep(t)),e.preventDefault()}})})})});function eh(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ep(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ef(e,t){let r=(0,C.useCallbackRef)(t);(0,k.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ex(e){return e?"open":"closed"}function eg(e,t){return`${e}-trigger-${t}`}function ev(e,t){return`${e}-content-${t}`}function eb(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ew=e.i(294237),ey=e.i(152378),ej=e.i(526683);let eN=n.forwardRef((e,n)=>{let i,a,s,o,l,c,d,u=(0,r.c)(16);u[0]!==e?({className:a,children:i,viewport:o,...s}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=s,u[4]=o):(i=u[1],a=u[2],s=u[3],o=u[4]);let m=void 0===o||o;return u[5]!==a?(l=(0,ej.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",a),u[5]=a,u[6]=l):l=u[6],u[7]!==m?(c=m&&(0,t.jsx)(eM,{}),u[7]=m,u[8]=c):c=u[8],u[9]!==i||u[10]!==s||u[11]!==n||u[12]!==l||u[13]!==c||u[14]!==m?(d=(0,t.jsxs)(F,{ref:n,"data-slot":"navigation-menu","data-viewport":m,role:"navigation",className:l,...s,children:[i,c]}),u[9]=i,u[10]=s,u[11]=n,u[12]=l,u[13]=c,u[14]=m,u[15]=d):d=u[15],d});function e_(e){let n,i,a,s,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(a=(0,ej.cn)("group flex flex-1 list-none items-center justify-center gap-1",n),o[3]=n,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(s=(0,t.jsx)(q,{"data-slot":"navigation-menu-list",className:a,...i}),o[5]=i,o[6]=a,o[7]=s):s=o[7],s}function ek(e){let n,i,a,s,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(a=(0,ej.cn)("relative",n),o[3]=n,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(s=(0,t.jsx)(X,{"data-slot":"navigation-menu-item",className:a,...i}),o[5]=i,o[6]=a,o[7]=s):s=o[7],s}eN.displayName=F.displayName;let eC=(0,ew.cva)("group inline-flex h-8 w-max items-center justify-center rounded-md px-4 py-1 text-sm text-muted-foreground font-medium hover:bg-foreground
9/5 hover:text-foreground focus:bg-foreground/5 focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-foreground/5 data-[state=open]:text-foreground data-[state=open]:focus:bg-foreground/5 data-[state=open]:bg-foreground/5 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function eS(e){let n,i,a,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:i,children:n,...a}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a):(n=c[1],i=c[2],a=c[3]),c[4]!==i?(s=(0,ej.cn)(eC(),"group",i),c[4]=i,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(ey.ChevronDownIcon,{className:"relative top-[1px] ml-1.5 size-3 opacity-75 transition duration-300 group-data-[state=open]:translate-y-px","aria-hidden":"true",strokeWidth:2.5}),c[6]=o):o=c[6],c[7]!==n||c[8]!==a||c[9]!==s?(l=(0,t.jsxs)(Y,{"data-slot":"navigation-menu-trigger",className:s,...a,children:[n," ",o]}),c[7]=n,c[8]=a,c[9]=s,c[10]=l):l=c[10],l}function eR(e){let n,i,a,s,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(a=(0,ej.cn)("left-0 top-0 w-full p-2 pr-2.5 md:absolute md:w-auto","data-[motion=from-end]:animate-enter-from-right data-[motion=from-start]:animate-enter-from-left data-[motion=to-end]:animate-exit-to-right data-[motion=to-start]:animate-exit-to-left","group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:rounded-(--radius) group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:-translate-x-1/3 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-transparent group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-200",n),o[3]=n,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(s=(0,t.jsx)(en,{"data-slot":"navigation-menu-content",className:a,...i}),o[5]=i,o[6]=a,o[7]=s):s=o[7],s}function eM(e){let n,i,a,s,o,l=(0,r.c)(9);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,ej.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),l[3]=a):a=l[3],l[4]!==n?(s=(0,ej.cn)("bg-popover text-popover-foreground h-(--radix-navigation-menu-viewport-height) ring-foreground/10 rounded-(--radius) md:w-(--radix-navigation-menu-viewport-width) relative mt-1.5 w-full origin-top overflow-hidden border border-transparent p-0.5 shadow-xl shadow-black/10 ring-1 transition-[width,height] duration-200","data-[state=closed]:animate-scale-out data-[state=open]:animate-scale-in",n),l[4]=n,l[5]=s):s=l[5],l[6]!==i||l[7]!==s?(o=(0,t.jsx)("div",{className:a,children:(0,t.jsx)(el,{"data-slot":"navigation-menu-viewport",className:s,...i})}),l[6]=i,l[7]=s,l[8]=o):o=l[8],o}function eE(e){let n,i,a,s,o=(0,r.c)(8);return o[0]!==e?({className:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n?(a=(0,ej.cn)("data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-md p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg:not([class*='size-'])]:size-4",n),o[3]=n,o[4]=a):a=o[4],o[5]!==i||o[6]!==a?(s=(0,t.jsx)(Z,{"data-slot":"navigation-menu-link",className:a,...i}),o[5]=i,o[6]=a,o[7]=s):s=o[7],s}
9function eA(e){let i,a,s,o=(0,r.c)(4),[l,c]=(0,n.useState)(!1);return(o[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{c(!0)},a=[],o[0]=i,o[1]=a):(i=o[0],a=o[1]),(0,n.useEffect)(i,a),l)?(o[2]!==e?(s=(0,t.jsx)(eS,{...e}),o[2]=e,o[3]=s):s=o[3],s):null}function eT({header:e}){let[h,p]=(0,n.useState)(!1),[f,x]=(0,n.useState)(!1),g=function(e){let t,i,a=(0,r.c)(3),[s,o]=(0,n.useState)(!0);return a[0]!==e?(t=()=>{let t=window.matchMedia(e);o(t.matches);let r=()=>o(t.matches);return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},i=[e],a[0]=e,a[1]=t,a[2]=i):(t=a[1],i=a[2]),(0,n.useEffect)(t,i),s}("(min-width: 64rem)");(0,s.useRouter)();let v=(0,s.usePathname)(),b=e=>{let r="string"==typeof e?e:e?.text;if(!r)return null;let n="string"==typeof e?"primary":e?.variant||"primary";return(0,t.jsx)("span",{className:`rounded-full border px-2 py-0.5 text-[10px] font-semibold leading-none uppercase ${"outline"===n?"border-border text-foreground bg-background":"danger"===n?"border-red-200 bg-red-50 text-red-600 dark:border-red-500/40 dark:bg-red-500/10 dark:text-red-300":"border-primary/30 bg-primary/10 text-primary"}`,children:r})};function w({title:e,description:r,children:n,href:i,...a}){return(0,t.jsx)("li",{...a,children:(0,t.jsx)(eE,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:i,className:"grid grid-cols-[auto_1fr] gap-3.5",children:[(0,t.jsx)("div",{className:"bg-background ring-foreground/10 relative flex size-9 items-center justify-center rounded border border-transparent shadow shadow-sm ring-1",children:n}),(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-medium",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-1 text-xs",children:r})]})]})})})}return(0,n.useEffect)(()=>{let e=()=>{x(window.scrollY>50)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("header",{"data-state":h?"active":"inactive",...f&&{"data-scrolled":!0},className:"has-data-[state=open]:bg-background/50 fixed inset-x-0 top-0 z-50 has-data-[state=open]:h-screen has-data-[state=open]:backdrop-blur",children:(0,t.jsx)("div",{className:(0,ej.cn)("absolute inset-x-0 top-0 z-50 h-18 border-transparent ring-1 ring-transparent transition-all duration-300","in-data-scrolled:border-foreground
9/5 in-data-scrolled:bg-background/75 in-data-scrolled:border-b in-data-scrolled:backdrop-blur","has-data-[state=open]:ring-foreground/5 has-data-[state=open]:bg-card/75 has-data-[state=open]:h-[calc(var(--navigation-menu-viewport-height)+3.4rem)] has-data-[state=open]:border-b has-data-[state=open]:shadow-lg has-data-[state=open]:shadow-black/10 has-data-[state=open]:backdrop-blur","max-lg:in-data-[state=active]:bg-background/75 max-lg:h-14 max-lg:overflow-hidden max-lg:border-b max-lg:in-data-[state=active]:h-screen max-lg:in-data-[state=active]:backdrop-blur"),children:(0,t.jsx)("div",{className:"w-full mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-5",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-14 max-lg:w-full max-lg:border-b",children:[e.brand&&(0,t.jsx)(o.BrandLogo,{brand:e.brand}),g&&(0,t.jsx)(()=>{let r=(0,n.useRef)(null);return(0,t.jsx)(eN,{ref:r,onValueChange:()=>{requestAnimationFrame(()=>{if(!r.current)return;let e=document.querySelector('[data-slot="navigation-menu-viewport"][data-state="open"]');if(e){let t=e.scrollHeight;document.documentElement.style.setProperty("--navigation-menu-viewport-height",`${t}px`)}else document.documentElement.style.removeProperty("--navigation-menu-viewport-height")})},className:"[--color-muted:color-mix(in_oklch,var(--color-foreground)_5%,transparent)] [--viewport-outer-px:2rem] **:data-[slot=navigation-menu-viewport]:rounded-none **:data-[slot=navigation-menu-viewport]:border-0 **:data-[slot=navigation-menu-viewport]:bg-transparent **:data-[slot=navigation-menu-viewport]:shadow-none **:data-[slot=navigation-menu-viewport]:ring-0 max-lg:hidden",children:(0,t.jsx)(e_,{className:"gap-3",children:e.nav?.items?.map((e,r)=>(0,t.jsx)(ek,{value:e.title||"",children:e.children&&e.children.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eA,{className:"flex flex-row items-center gap-2 text-sm",children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]}),(0,t.jsx)(eR,{className:"mt-4.5 origin-top pt-5 pb-14 shadow-none ring-0",children:(0,t.jsx)("div",{className:"divide-foreground
9/10 grid w-full min-w-6xl grid-cols-4 gap-4 divide-x pr-22",children:(0,t.jsxs)("div",{className:"col-span-2 row-span-2 grid grid-rows-subgrid gap-1 border-r-0",children:[(0,t.jsx)("span",{className:"text-muted-foreground ml-2 text-xs",children:e.title}),(0,t.jsx)("ul",{className:"mt-1 grid grid-cols-2 gap-2",children:e.children?.map((e,r)=>(0,t.jsx)(w,{href:e.url||"",title:e.title||"",description:e.description||"",children:e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon})},r))})]})})})]}):(0,t.jsx)(eE,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",className:`relative flex flex-row items-center gap-2 text-sm ${e.is_active||v.endsWith(e.url)?"bg-muted text-muted-foreground":""}`,children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon}),e.title,e.tag&&(0,t.jsx)("span",{className:"absolute -right-2 -top-2",children:b(e.tag)})]})})},r))})})},{}),(0,t.jsxs)("button",{onClick:()=>p(!h),"aria-label":!0==h?"Close Menu":"Open Menu",className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 lg:hidden",children:[(0,t.jsx)(i.Menu,{className:"m-auto size-5 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0"}),(0,t.jsx)(a.X,{className:"absolute inset-0 m-auto size-5 scale-0 -rotate-180 opacity-0 duration-200 in-data-[state=active]:scale-100 in-data-[state=active]:rotate-0 in-data-[state=active]:opacity-100"})]})]}),!g&&h&&(0,t.jsx)(({closeMenu:r})=>(0,t.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,t.jsx)(m.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:e.nav?.items?.map((e,n)=>(0,t.jsx)(m.AccordionItem,{value:e.title||"",className:"group relative border-b-0 before:pointer-events-none before:absolute before:inset-x-4 before:bottom-0 before:border-b",children:e.children&&e.children.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,t.jsx)(m.AccordionContent,{className:"pb-5",children:(0,t.jsx)("ul",{children:e.children?.map((e,n)=>(0,t.jsx)("li",{children:(0,t.jsxs)(s.Link,{href:e.url||"",onClick:r,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon})}),(0,t.jsx)("div",{className:"text-base",children:e.title})]})},n))})})]}):(0,t.jsxs)(s.Link,{href:e.url||"",onClick:r,className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:[(0,t.jsx)("span",{className:"flex items-center gap-2",children:e.title}),b(e.tag)]})},n))})}),{closeMenu:()=>p(!1)}),(0,t.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-lg:in-data-[state=active]:mt-6 md:flex-nowrap lg:m-0 lg:flex lg:w-fit lg:gap-6 lg:space-y-0 lg:border-transparent lg:bg-transparent lg:p-0 lg:shadow-none dark:shadow-none dark:lg:bg-transparent",children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-6 sm:space-y-0 md:w-fit",children:[e.show_theme?(0,t.jsx)(u.ThemeToggler,{}):null,e.show_locale?(0,t.jsx)(l.LocaleSelector,{}):null,(0,t.jsx)("div",{className:"flex-1 md:hidden"}),e.show_sign?(0,t.jsx)(c.SignUser,{userNav:e.user_nav}):null,e.buttons&&e.buttons.map((e,r)=>(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",className:(0,ej.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-7 px-3 ring-0","outline"===e.variant?"bg-background ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200":"bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md ring-1 shadow-black/20 ring-(--ring-color) [--ring-color:color-mix(in_oklab,var(--color-foreground)15%,var(--color-primary))]"),children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]},r))]})})]})})})})})}e.s(["Header",()=>eT],654243)}]);

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.