diff --git a/.env.example b/.env.example index ecaba9c..ad334fe 100644 --- a/.env.example +++ b/.env.example @@ -5,3 +5,9 @@ ADMIN_PASSWORD=admin123 CORS_ORIGIN=http://localhost:5173 UPLOAD_DIR=./server/uploads DATA_DIR=./server/data + +# Leave unset to auto-use Vite base: +# local: /api/... +# prod: /citpl_website/api/... +# Only set if the API is on a different host than the site. +# VITE_API_BASE= diff --git a/dist/.htaccess b/dist/.htaccess new file mode 100644 index 0000000..0967df7 --- /dev/null +++ b/dist/.htaccess @@ -0,0 +1,15 @@ +# Deployed under /citpl_website/ on Apache. +# Requires: mod_rewrite, mod_headers, and (for API) mod_proxy + mod_proxy_http + +RewriteEngine On + +# Proxy Node API + uploads (start server with: node server/index.js) +RewriteRule ^api/(.*)$ http://127.0.0.1:3001/api/$1 [P,L] +RewriteRule ^uploads/(.*)$ http://127.0.0.1:3001/uploads/$1 [P,L] + +# Allow admin login/section preview to iframe this page (same origin) + + Header always unset X-Frame-Options + Header always unset Content-Security-Policy + Header always set Content-Security-Policy "frame-ancestors 'self'" + diff --git a/dist/admin.html b/dist/admin.html index 5e80e94..dbea2d6 100644 --- a/dist/admin.html +++ b/dist/admin.html @@ -4,8 +4,8 @@ CITPL Admin - - + + diff --git a/dist/assets/App-CuujNhcz.js b/dist/assets/App-CuujNhcz.js new file mode 100644 index 0000000..934b6da --- /dev/null +++ b/dist/assets/App-CuujNhcz.js @@ -0,0 +1 @@ +import{a as e,c as t,d as n,f as r,i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./x-DnG5sti3.js";var p=t(),m=a(f(),1),h=(0,m.createContext)({});function g(e){let t=(0,m.useRef)(null);return t.current===null&&(t.current=e()),t.current}var _=typeof window<`u`?m.useLayoutEffect:m.useEffect,v=(0,m.createContext)(null);function y(e,t){e.indexOf(t)===-1&&e.push(t)}function b(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var x=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ee=e=>typeof e==`object`&&!!e,te=e=>/^0[^.\s]+$/u.test(e);function ne(e){let t;return()=>(t===void 0&&(t=e()),t)}var w=e=>e,T=(...e)=>e.reduce((e,t)=>n=>t(e(n))),re=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ie=class{constructor(){this.subscriptions=[]}add(e){return y(this.subscriptions,e),()=>b(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,D=e=>e/1e3,ae=(e,t)=>t?1e3/t*e:0,oe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,se=1e-7,ce=12;function le(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=oe(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>se&&++sle(t,0,1,e,n);return e=>e===0||e===1?e:oe(i(e),t,r)}var ue=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,de=e=>t=>1-e(1-t),fe=O(.33,1.53,.69,.99),pe=de(fe),me=ue(pe),he=e=>e>=1?1:(e*=2)<1?.5*pe(e):.5*(2-2**(-10*(e-1))),ge=e=>1-Math.sin(Math.acos(e)),_e=de(ge),ve=ue(ge),ye=O(.42,0,1,1),be=O(0,0,.58,1),xe=O(.42,0,.58,1),Se=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ce=e=>Array.isArray(e)&&typeof e[0]==`number`,we={linear:w,easeIn:ye,easeInOut:xe,easeOut:be,circIn:ge,circInOut:ve,circOut:_e,backIn:pe,backInOut:me,backOut:fe,anticipate:he},Te=e=>typeof e==`string`,Ee=e=>{if(Ce(e)){e.length;let[t,n,r,i]=e;return O(t,n,r,i)}else if(Te(e))return we[e],`${e}`,we[e];return e},De=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],k={value:null,addProjectionMetrics:null};function Oe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&k.value&&k.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ke=40;function Ae(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=De.reduce((e,n)=>(e[n]=Oe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=S.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ke),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:De.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(Me===void 0&&N.set(M.isProcessing||S.useManualTiming?M.timestamp:performance.now()),Me),set:e=>{Me=e,queueMicrotask(Ne)}},P={layout:0,mainThread:0,waapi:0},Pe=e=>t=>typeof t==`string`&&t.startsWith(e),Fe=Pe(`--`),Ie=Pe(`var(--`),Le=e=>Ie(e)?Re.test(e.split(`/*`)[0].trim()):!1,Re=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ze(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Be={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ve={...Be,transform:e=>x(0,1,e)},He={...Be,default:1},Ue=e=>Math.round(e*1e5)/1e5,We=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ge(e){return e==null}var Ke=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qe=(e,t)=>n=>!!(typeof n==`string`&&Ke.test(n)&&n.startsWith(e)||t&&!Ge(n)&&Object.prototype.hasOwnProperty.call(n,t)),Je=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(We);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ye=e=>x(0,255,e),Xe={...Be,transform:e=>Math.round(Ye(e))},Ze={test:qe(`rgb`,`red`),parse:Je(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Xe.transform(e)+`, `+Xe.transform(t)+`, `+Xe.transform(n)+`, `+Ue(Ve.transform(r))+`)`};function Qe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $e={test:qe(`#`),parse:Qe,transform:Ze.transform},et=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=et(`deg`),I=et(`%`),L=et(`px`),tt=et(`vh`),nt=et(`vw`),rt={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},it={test:qe(`hsl`,`hue`),parse:Je(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(Ue(t))+`, `+I.transform(Ue(n))+`, `+Ue(Ve.transform(r))+`)`},R={test:e=>Ze.test(e)||$e.test(e)||it.test(e),parse:e=>Ze.test(e)?Ze.parse(e):it.test(e)?it.parse(e):$e.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ze.transform(e):it.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},at=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ot(e){return isNaN(e)&&typeof e==`string`&&(e.match(We)?.length||0)+(e.match(at)?.length||0)>0}var st=`number`,ct=`color`,lt=`var`,ut=`var(`,dt="${}",ft=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ft,e=>(R.test(e)?(r.color.push(a),i.push(ct),n.push(R.parse(e))):e.startsWith(ut)?(r.var.push(a),i.push(lt),n.push(e)):(r.number.push(a),i.push(st),n.push(parseFloat(e))),++a,dt)).split(dt),indexes:r,types:i}}function mt(e){return pt(e).values}function ht({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,vt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:_t(e);function yt(e){let t=pt(e);return ht(t)(t.values.map((e,n)=>vt(e,t.split[n])))}var z={test:ot,parse:mt,createTransformer:gt,getAnimatableNone:yt};function bt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=bt(s,r,e+1/3),a=bt(s,r,e),o=bt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function St(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Ct=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wt=[$e,Ze,it],Tt=e=>wt.find(t=>t.test(e));function Et(e){let t=Tt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===it&&(n=xt(n)),n}var Dt=(e,t)=>{let n=Et(e),r=Et(t);if(!n||!r)return St(e,t);let i={...n};return e=>(i.red=Ct(n.red,r.red,e),i.green=Ct(n.green,r.green,e),i.blue=Ct(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),Ze.transform(i))},Ot=new Set([`none`,`hidden`]);function kt(e,t){return Ot.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function At(e,t){return n=>B(e,t,n)}function jt(e){return typeof e==`number`?At:typeof e==`string`?Le(e)?St:R.test(e)?Dt:Ft:Array.isArray(e)?Mt:typeof e==`object`?R.test(e)?Dt:Nt:St}function Mt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>jt(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function Pt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=z.createTransformer(t),r=pt(e),i=pt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ot.has(e)&&!i.values.length||Ot.has(t)&&!r.values.length?kt(e,t):T(Mt(Pt(r,i),i.values),n):(`${e}${t}`,St(e,t))};function It(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):jt(e)(e,t)}var Lt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>j(t),now:()=>M.isProcessing?M.timestamp:N.now()}},Rt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function Vt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Bt(r),zt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:D(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ht(e,t){return e*Math.sqrt(1-t*t)}var Ut=12;function Wt(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=Ht(t,o),c=Math.exp(-i);return Gt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Ht(t**2,o);return(-i(t)+Gt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Wt(i,a,s);if(e=E(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var qt=[`duration`,`bounce`],Jt=[`stiffness`,`damping`,`mass`];function Yt(e,t){return t.some(t=>e[t]!==void 0)}function Xt(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Yt(e,Jt)&&Yt(e,qt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*x(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=Kt({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function Zt(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Xt({...n,velocity:-D(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=D(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=Ht(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>E(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=E(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=E(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Bt(te),zt),t=Rt(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}Zt.applyToOptions=e=>{let t=Vt(e,100,Zt);return e.ease=t.ease,e.duration=E(t.duration),e.type=`keyframes`,e};var Qt=5;function $t(e,t,n){let r=Math.max(t-Qt,0);return ae(n-e(r),t-r)}function en({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Zt({keyframes:[f.value,m(f.value)],velocity:$t(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function tn(e,t,n){let r=[],i=n||S.mix||It,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=tn(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(x(e[0],e[a-1],t)):l}function rn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=re(0,t,r);e.push(B(n,1,i))}}function an(e){let t=[0];return rn(t,e.length-1),t}function on(e,t){return e.map(e=>e*t)}function sn(e,t){return e.map(()=>t||xe).splice(0,e.length-1)}function cn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Se(r)?r.map(Ee):Ee(r),a={done:!1,value:t[0]},o=nn(on(n&&n.length===t.length?n:an(t),e),t,{ease:Array.isArray(i)?i:sn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ln=e=>e!==null;function un(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(ln),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var dn={decay:en,inertia:en,tween:cn,keyframes:cn,spring:Zt};function fn(e){typeof e.type==`string`&&(e.type=dn[e.type])}var pn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},mn=e=>e/100,hn=class extends pn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},P.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;fn(e);let{type:t=cn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||cn;s!==cn&&typeof o[0]!=`number`&&(this.mixKeyframes=T(mn,It(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Bt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=x(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:S}=b;!_&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==en&&(b.value=un(l,this.options,h,this.speed)),m&&m(b.value),C&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return D(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(this.currentTime)}set time(e){e=E(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return $t(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=D(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Lt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(N.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,P.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function gn(e){for(let t=1;te*180/Math.PI,vn=e=>bn(_n(Math.atan2(e[1],e[0]))),yn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vn,rotateZ:vn,skewX:e=>_n(Math.atan(e[1])),skewY:e=>_n(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bn=e=>(e%=360,e<0&&(e+=360),e),xn=vn,Sn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Cn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),wn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sn,scaleY:Cn,scale:e=>(Sn(e)+Cn(e))/2,rotateX:e=>bn(_n(Math.atan2(e[6],e[5]))),rotateY:e=>bn(_n(Math.atan2(-e[2],e[0]))),rotateZ:xn,rotate:xn,skewX:e=>_n(Math.atan(e[4])),skewY:e=>_n(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tn(e){return+!!e.includes(`scale`)}function En(e,t){if(!e||e===`none`)return Tn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=wn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yn,i=t}if(!i)return Tn(t);let a=r[t],o=i[1].split(`,`).map(On);return typeof a==`function`?a(o):o[a]}var Dn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return En(n,t)};function On(e){return parseFloat(e.trim())}var kn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],An=new Set([...kn,`pathRotation`]),jn=e=>e===Be||e===L,Mn=new Set([`x`,`y`,`z`]),Nn=kn.filter(e=>!Mn.has(e));function Pn(e){let t=[];return Nn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>En(t,`x`),y:(e,{transform:t})=>En(t,`y`)};H.translateX=H.x,H.translateY=H.y;var Fn=new Set,In=!1,Ln=!1,Rn=!1;function zn(){if(Ln){let e=Array.from(Fn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Pn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Ln=!1,In=!1,Fn.forEach(e=>e.complete(Rn)),Fn.clear()}function Bn(){Fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ln=!0)})}function Vn(){Rn=!0,Bn(),zn(),Rn=!1}var Hn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Fn.add(this),In||(In=!0,A.read(Bn),A.resolveKeyframes(zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}gn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fn.delete(this)}cancel(){this.state===`scheduled`&&(Fn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Un=e=>e.startsWith(`--`);function Wn(e,t,n){Un(t)?e.style.setProperty(t,n):e.style[t]=n}var Gn={};function Kn(e,t){let n=ne(e);return()=>Gn[t]??n()}var qn=Kn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Jn=Kn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Yn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Yn([0,.65,.55,1]),circOut:Yn([.55,0,1,.45]),backIn:Yn([.31,.01,.66,-.59]),backOut:Yn([.33,1.53,.69,.99])};function Zn(e,t){if(e)return typeof e==`function`?Jn()?Rt(e,t):`ease-out`:Ce(e)?Yn(e):Array.isArray(e)?e.map(e=>Zn(e,t)||Xn.easeOut):Xn[e]}function Qn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Zn(s,i);Array.isArray(d)&&(u.easing=d),k.value&&P.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return k.value&&p.finished.finally(()=>{P.waapi--}),p}function $n(e){return typeof e==`function`&&`applyToOptions`in e}function er({type:e,...t}){return $n(e)&&Jn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var tr=class extends pn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=er(e);this.animation=Qn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=un(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Wn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return D(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=E(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&qn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),w):r(this)}},nr={anticipate:he,backInOut:me,circInOut:ve};function rr(e){return e in nr}function ir(e){typeof e.ease==`string`&&rr(e.ease)&&(e.ease=nr[e.ease])}var ar=10,or=class extends tr{constructor(e){ir(e),fn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new hn({...a,autoplay:!1}),s=Math.max(ar,N.now()-this.startTime),c=x(0,ar,s-ar),l=o.sample(s).value,{name:u}=this.options;i&&u&&Wn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},sr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function cr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function gr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return hr()&&n&&(dr.has(n)||mr.has(n)&&pr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var _r=40,vr=class extends pn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Hn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N.now();let u=!0;lr(e,i,a,o)||(u=!1,(S.instantAnimations||!s)&&l?.(un(e,n,t)),e[0]=e[e.length-1],ur(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>_r?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&gr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new or({...d,element:p})}catch{m=new hn(d)}else m=new hn(d);m.finished.then(()=>{this.notifyFinished()}).catch(w),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function yr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var br=30,xr=e=>!isNaN(parseFloat(e)),Sr={current:void 0},Cr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ie);let n=this.events[e].add(t);return e===`change`?()=>{n(),A.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Sr.current&&Sr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>br)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,br);return ae(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function wr(e,t){return new Cr(e,t)}function Tr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Er(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Tr(n,e)}var Dr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Or=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kr={type:`keyframes`,duration:.8},Ar={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},jr=(e,{keyframes:t})=>t.length>2?kr:An.has(e)?e.startsWith(`scale`)?Or(t[1]):Dr:Ar,Mr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Nr(e){for(let t in e)if(!Mr.has(t))return!0;return!1}var Pr=(e,t,n,r={},i,a)=>o=>{let s=Er(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=E(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Nr(s)||Object.assign(u,jr(e,u)),u.duration&&=E(u.duration),u.repeatDelay&&=E(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ur(u),u.delay===0&&(d=!0)),(S.instantAnimations||S.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ur(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=un(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new hn(u):new vr(u)},Fr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ir(e){let t=Fr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Lr(e,t,n=1){`${e}`;let[r,i]=Ir(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return C(e)?parseFloat(e):e}return Le(i)?Lr(i,t,n+1):i}function Rr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function zr(e,t,n,r){if(typeof t==`function`){let[i,a]=Rr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Rr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Br(e,t,n){let r=e.getProps();return zr(r,t,n===void 0?r.custom:n,e)}var Vr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...kn]),Hr=e=>Array.isArray(e);function Ur(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wr(n))}function Wr(e){return Hr(e)?e[e.length-1]||0:e}function Gr(e,t){let{transitionEnd:n={},transition:r={},...i}=Br(e,t)||{};i={...i,...n};for(let t in i)Ur(e,t,Wr(i[t]))}var U=e=>!!(e&&e.getVelocity);function Kr(e){return!!(U(e)&&e.add)}function qr(e,t){let n=e.getValue(`willChange`);if(Kr(n))return n.add(t);if(!n&&S.WillChange){let n=new S.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Jr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Yr=`data-`+Jr(`framerAppearId`);function Xr(e){return e.props[Yr]}function Zr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Qr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Tr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Zr(f,t))continue;let o={delay:n,...Er(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Xr(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}qr(e,t);let m=l??e.shouldReduceMotion;r.start(Pr(t,r,i,m&&Vr.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&Gr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function $r(e,t,n={}){let r=Br(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Qr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ei(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ei(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push($r(c,t,{...o,delay:n+(typeof r==`function`?0:r)+yr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ti(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>$r(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=$r(e,t,n);else{let i=typeof t==`function`?Br(e,t,n.custom):t;r=Promise.all(Qr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ni={test:e=>e===`auto`,parse:e=>e},ri=e=>t=>t.test(e),ii=[Be,L,I,F,nt,tt,ni],ai=e=>ii.find(ri(e));function oi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||te(e)}var si=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ci(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(We)||[];if(!r)return e;let i=n.replace(r,``),a=+!!si.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var li=/\b([a-z-]*)\(.*?\)/gu,ui={...z,getAnimatableNone:e=>{let t=e.match(li);return t?t.map(ci).join(` `):e}},di={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},fi={...Be,transform:Math.round},pi={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:He,scaleX:He,scaleY:He,scaleZ:He,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Ve,originX:rt,originY:rt,originZ:L,zIndex:fi,fillOpacity:Ve,strokeOpacity:Ve,numOctaves:fi},mi={...pi,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:ui,WebkitFilter:ui,mask:di,WebkitMask:di},hi=e=>mi[e],gi=new Set([ui,di]);function _i(e,t){let n=hi(e);return gi.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var vi=new Set([`auto`,`none`,`0`]);function yi(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function xi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Si=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ci(e){return ee(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:wi,cancel:Ti}=Ae(queueMicrotask,!1),W={x:!1,y:!1};function Ei(){return W.x||W.y}function Di(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Oi(e,t){let n=xi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ki(e){return!(e.pointerType===`touch`||Ei())}function Ai(e,t,n={}){let[r,i,a]=Oi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ki(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ji=(e,t)=>t?e===t?!0:ji(e,t.parentElement):!1,Mi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ni=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Pi(e){return Ni.has(e.tagName)||e.isContentEditable===!0}var Fi=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new WeakSet;function Ri(e){return t=>{t.key===`Enter`&&e(t)}}function zi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Bi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ri(()=>{if(Li.has(n))return;zi(n,`down`);let e=Ri(()=>{zi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>zi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Vi(e){return Mi(e)&&!Ei()}var Hi=new WeakSet;function Ui(e,t,n={}){let[r,i,a]=Oi(e,n),o=e=>{let r=e.currentTarget;if(!Vi(e)||Hi.has(e))return;Li.add(r),n.stopPropagation&&Hi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Li.has(r)&&Li.delete(r),Vi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ji(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ci(e)&&(e.addEventListener(`focus`,e=>Bi(e,i)),!Pi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Wi(e){return ee(e)&&`ownerSVGElement`in e}var Gi=new WeakMap,Ki,qi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Wi(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ji=qi(`inline`,`width`,`offsetWidth`),Yi=qi(`block`,`height`,`offsetHeight`);function Xi({target:e,borderBoxSize:t}){Gi.get(e)?.forEach(n=>{n(e,{get width(){return Ji(e,t)},get height(){return Yi(e,t)}})})}function Zi(e){e.forEach(Xi)}function Qi(){typeof ResizeObserver>`u`||(Ki=new ResizeObserver(Zi))}function $i(e,t){Ki||Qi();let n=xi(e);return n.forEach(e=>{let n=Gi.get(e);n||(n=new Set,Gi.set(e,n)),n.add(t),Ki?.observe(e)}),()=>{n.forEach(e=>{let n=Gi.get(e);n?.delete(t),n?.size||Ki?.unobserve(e)})}}var ea=new Set,ta;function na(){ta=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ea.forEach(t=>t(e))},window.addEventListener(`resize`,ta)}function ra(e){return ea.add(e),ta||na(),()=>{ea.delete(e),!ea.size&&typeof ta==`function`&&(window.removeEventListener(`resize`,ta),ta=void 0)}}function ia(e,t){return typeof e==`function`?ra(e):$i(e,t)}function aa(e){return Wi(e)&&e.tagName===`svg`}var oa=[...ii,R,z],sa=e=>oa.find(ri(e)),ca=()=>({translate:0,scale:1,origin:0,originPoint:0}),la=()=>({x:ca(),y:ca()}),ua=()=>({min:0,max:0}),G=()=>({x:ua(),y:ua()}),da=new WeakMap;function fa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function pa(e){return typeof e==`string`||Array.isArray(e)}var ma=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ha=[`initial`,...ma];function ga(e){return fa(e.animate)||ha.some(t=>pa(e[t]))}function _a(e){return!!(ga(e)||e.variants)}function va(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,wr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,wr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ya={current:null},ba={current:!1},xa=typeof window<`u`;function Sa(){if(ba.current=!0,xa)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ya.current=e.matches;e.addEventListener(`change`,t),t()}else ya.current=!1}var Ca=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],wa={};function Ta(e){wa=e}function Ea(){return wa}var Da=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Hn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=N.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ba.current||Sa(),this.shouldReduceMotion=ya.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),j(this.notifyUpdate),j(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&dr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new tr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:E(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=An.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&A.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in wa){let t=wa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=wr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(C(n)||te(n))?n=parseFloat(n):!sa(n)&&z.test(t)&&(n=_i(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=zr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ie),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){wi.render(this.render)}},Oa=class extends Da{constructor(){super(...arguments),this.KeyframeResolver=bi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ka=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Aa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ja({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ma(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Na(e){return e===void 0||e===1}function Pa({scale:e,scaleX:t,scaleY:n}){return!Na(e)||!Na(t)||!Na(n)}function Fa(e){return Pa(e)||Ia(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ia(e){return La(e.x)||La(e.y)}function La(e){return e&&e!==`0%`}function Ra(e,t,n){return n+t*(e-n)}function za(e,t,n,r,i){return i!==void 0&&(e=Ra(e,i,r)),Ra(e,n,r)+t}function Ba(e,t=0,n=1,r,i){e.min=za(e.min,t,n,r,i),e.max=za(e.max,t,n,r,i)}function Va(e,{x:t,y:n}){Ba(e.x,t.translate,t.scale,t.originPoint),Ba(e.y,n.translate,n.scale,n.originPoint)}var Ha=.999999999999,Ua=1.0000000000001;function Wa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sHa&&(t.x=1),t.yHa&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Ga(e,t,n,r,i=.5){Ba(e,t,n,B(e.min,e.max,i),r)}function Ka(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function qa(e,t,n){let r=n??e;Ga(e.x,Ka(t.x,r.x),t.scaleX,t.scale,t.originX),Ga(e.y,Ka(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ja(e,t){return Aa(Ma(e.getBoundingClientRect(),t))}function Ya(e,t,n){let r=Ja(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var Xa={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Za=kn.length;function Qa(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${to(e,t.target.x)}% ${to(e,t.target.y)}%`}},ro={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},io={borderRadius:{...no,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:no,borderTopRightRadius:no,borderBottomLeftRadius:no,borderBottomRightRadius:no,boxShadow:ro};function ao(e,{layout:t,layoutId:n}){return An.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!io[e]||e===`opacity`)}function oo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||ao(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function so(e){return window.getComputedStyle(e)}var co=class extends Oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=eo}readValueFromInstance(e,t){if(An.has(t))return this.projection?.isProjecting?Tn(t):Dn(e,t);{let n=so(e),r=(Fe(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ja(e,t)}build(e,t,n){$a(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return oo(e,t,n)}},lo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},uo={offset:`strokeDashoffset`,array:`strokeDasharray`};function fo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?lo:uo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var po=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function mo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if($a(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of po)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&fo(d,i,a,o,!1)}var ho=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),go=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function _o(e,t,n,r){eo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(ho.has(n)?n:Jr(n),t.attrs[n])}function vo(e,t,n){let r=oo(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=kn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var yo=class extends Oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(An.has(t)){let e=hi(t);return e&&e.default||0}return t=ho.has(t)?t:Jr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return vo(e,t,n)}build(e,t,n){mo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){_o(e,t,n,r)}mount(e){this.isSVGTag=go(e.tagName),super.mount(e)}},bo=ha.length;function xo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&xo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>ti(e,t,n)))}function Eo(e){let t=To(e),n=ko(),r=!0,i=!1,a=t=>(n,r)=>{let i=Br(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=xo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},ne=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Hr(t)&&Hr(n)?!So(t,n)||y:t!==n,r?t==null?u.add(e):ne(e):t!==void 0&&u.has(e)?ne(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let w=v&&y;b&&(!w||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!w&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Br(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=yr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Br(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ko(),i=!0}}}function Do(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!So(t,e):!1}function Oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ko(){return{animate:Oo(!0),whileInView:Oo(),whileHover:Oo(),whileTap:Oo(),whileDrag:Oo(),whileFocus:Oo(),exit:Oo()}}function Ao(e,t){e.min=t.min,e.max=t.max}function q(e,t){Ao(e.x,t.x),Ao(e.y,t.y)}function jo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Mo=.9999,No=1.0001,Po=-.01,Fo=.01;function J(e){return e.max-e.min}function Io(e,t,n){return Math.abs(e-t)<=n}function Lo(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Mo&&e.scale<=No||isNaN(e.scale))&&(e.scale=1),(e.translate>=Po&&e.translate<=Fo||isNaN(e.translate))&&(e.translate=0)}function Ro(e,t,n,r){Lo(e.x,t.x,n.x,r?r.originX:void 0),Lo(e.y,t.y,n.y,r?r.originY:void 0)}function zo(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function Bo(e,t,n,r){zo(e.x,t.x,n.x,r?.x),zo(e.y,t.y,n.y,r?.y)}function Vo(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function Ho(e,t,n,r){Vo(e.x,t.x,n.x,r?.x),Vo(e.y,t.y,n.y,r?.y)}function Uo(e,t,n,r,i){return e-=t,e=Ra(e,1/n,r),i!==void 0&&(e=Ra(e,1/i,r)),e}function Wo(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=Uo(e.min,t,n,s,i),e.max=Uo(e.max,t,n,s,i)}function Go(e,t,[n,r,i],a,o){Wo(e,t[n],t[r],t[i],t.scale,a,o)}var Ko=[`x`,`scaleX`,`originX`],qo=[`y`,`scaleY`,`originY`];function Jo(e,t,n,r){Go(e.x,t,Ko,n?n.x:void 0,r?r.x:void 0),Go(e.y,t,qo,n?n.y:void 0,r?r.y:void 0)}function Yo(e){return e.translate===0&&e.scale===1}function Xo(e){return Yo(e.x)&&Yo(e.y)}function Zo(e,t){return e.min===t.min&&e.max===t.max}function Qo(e,t){return Zo(e.x,t.x)&&Zo(e.y,t.y)}function $o(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function es(e,t){return $o(e.x,t.x)&&$o(e.y,t.y)}function ts(e){return J(e.x)/J(e.y)}function ns(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function rs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var is=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],as=is.length,os=e=>typeof e==`string`?parseFloat(e):e,ss=e=>typeof e==`number`||L.test(e);function cs(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,us(r)),e.opacityExit=B(t.opacity??1,0,ds(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(re(e,t,r))}function ps(e,t,n){let r=U(e)?e:wr(e);return r.start(Pr(``,r,t,n)),r.animation}function ms(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var hs=(e,t)=>e.depth-t.depth,gs=class{constructor(){this.children=[],this.isDirty=!1}add(e){y(this.children,e),this.isDirty=!0}remove(e){b(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hs),this.isDirty=!1,this.children.forEach(e)}};function _s(e,t){let n=N.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(j(r),e(a-t))};return A.setup(r,!0),()=>j(r)}function vs(e){return U(e)?e.get():e}var ys=class{constructor(){this.members=[]}add(e){y(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(b(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(b(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},bs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ss=[``,`X`,`Y`,`Z`],Cs=1e3,ws=0;function Ts(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Es(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Xr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Es(r)}function Ds({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ws++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,k.value&&(xs.nodes=xs.calculatedTargetDeltas=xs.calculatedProjections=0),this.nodes.forEach(As),this.nodes.forEach(zs),this.nodes.forEach(Bs),this.nodes.forEach(js),k.addProjectionMetrics&&k.addProjectionMetrics(xs)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=_s(i,250),bs.hasAnimatedSinceResize&&(bs.hasAnimatedSinceResize=!1,this.nodes.forEach(Rs)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||qs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!es(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Er(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Rs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),j(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Es(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=B(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Us(o.x,e.x,n),Us(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ho(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Gs(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Qo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=G(),q(f,this.relativeTarget)),c&&(this.animationValues=a,cs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(j(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{bs.hasAnimatedSinceResize=!0,P.layout++,this.motionValue||=wr(0),this.motionValue.jump(0,!1),this.currentAnimation=ps(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{P.layout--},onComplete:()=>{P.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Qs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),qa(t,i),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ys),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Ts(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(Ns),this.root.sharedNodes.clear()}}}function Os(e){e.updateLayout()}function ks(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ao(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Qs(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=la();Ro(o,n,t.layoutBox);let s=la();a?Ro(s,e.applyTransform(r,!0),t.measuredBox):Ro(s,n,t.layoutBox);let c=!Xo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();Ho(s,t.layoutBox,i.layoutBox,o);let c=G();Ho(c,n,a.layoutBox,o),es(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function As(e){k.value&&xs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function js(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ms(e){e.clearSnapshot()}function Ns(e){e.clearMeasurements()}function Ps(e){e.isLayoutDirty=!0,e.updateLayout()}function Fs(e){e.isLayoutDirty=!1}function Is(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ls(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Rs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zs(e){e.resolveTargetDelta()}function Bs(e){e.calcProjection()}function Vs(e){e.resetSkewAndRotation()}function Hs(e){e.removeLeadSnapshot()}function Us(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ws(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function Gs(e,t,n,r){Ws(e.x,t.x,n.x,r),Ws(e.y,t.y,n.y,r)}function Ks(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var qs={duration:.45,ease:[.4,0,.1,1]},Js=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ys=Js(`applewebkit/`)&&!Js(`chrome/`)?Math.round:w;function Xs(e){e.min=Ys(e.min),e.max=Ys(e.max)}function Zs(e){Xs(e.x),Xs(e.y)}function Qs(e,t,n){return e===`position`||e===`preserve-aspect`&&!Io(ts(t),ts(n),.2)}function $s(e){return e!==e.root&&e.scroll?.wasRoot}var ec=Ds({attachResizeListener:(e,t)=>ms(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tc={current:void 0},nc=Ds({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tc.current){let e=new ec({});e.mount(window),e.setOptions({layoutScroll:!0}),tc.current=e}return tc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),rc=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ic(e=!0){let t=(0,m.useContext)(v);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,m.useId)();(0,m.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,m.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var ac=(0,m.createContext)({strict:!1}),oc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},sc=!1;function cc(){if(sc)return;let e={};for(let t in oc)e[t]={isEnabled:e=>oc[t].some(t=>!!e[t])};Ta(e),sc=!0}function lc(){return cc(),Ea()}function uc(e){let t=lc();for(let n in e)t[n]={...t[n],...e[n]};Ta(t)}var dc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function fc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||dc.has(e)}var pc=r({default:()=>mc}),mc,hc=n((()=>{throw mc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),gc=e=>!fc(e);function _c(e){typeof e==`function`&&(gc=t=>t.startsWith(`on`)?!fc(t):e(t))}try{_c((hc(),c(pc)).default)}catch{}function vc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||U(e[i])||(gc(i)||n===!0&&fc(i)||!t&&!fc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var yc=(0,m.createContext)({});function bc(e,t){if(ga(e)){let{initial:t,animate:n}=e;return{initial:t===!1||pa(t)?t:void 0,animate:pa(n)?n:void 0}}return e.inherit===!1?{}:t}function xc(e){let{initial:t,animate:n}=bc(e,(0,m.useContext)(yc));return(0,m.useMemo)(()=>({initial:t,animate:n}),[Sc(t),Sc(n)])}function Sc(e){return Array.isArray(e)?e.join(` `):e}var Cc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wc(e,t,n){for(let r in t)!U(t[r])&&!ao(r,n)&&(e[r]=t[r])}function Tc({transformTemplate:e},t){return(0,m.useMemo)(()=>{let n=Cc();return $a(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ec(e,t){let n=e.style||{},r={};return wc(r,n,e),Object.assign(r,Tc(e,t)),r}function Dc(e,t){let n={},r=Ec(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Oc=()=>({...Cc(),attrs:{}});function kc(e,t,n,r){let i=(0,m.useMemo)(()=>{let n=Oc();return mo(n,t,go(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};wc(t,e.style,e),i.style={...t,...i.style}}return i}var Ac=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function jc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ac.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??jc(e)?kc:Dc)(t,r,i,e),c=vc(t,typeof e==`string`,a),l=e===m.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,m.useMemo)(()=>U(u)?u.get():u,[u]);return(0,m.createElement)(e,{...l,children:d})}function Nc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Pc(n,r,i,e),renderState:t()}}function Pc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=vs(a[e]);let{initial:o,animate:s}=e,c=ga(e),l=_a(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!fa(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,m.useContext)(yc),i=(0,m.useContext)(v),a=()=>Nc(e,t,r,i);return n?a():g(a)},Ic=Fc({scrapeMotionValuesFromProps:oo,createRenderState:Cc}),Lc=Fc({scrapeMotionValuesFromProps:vo,createRenderState:Oc}),Rc=Symbol.for(`motionComponentSymbol`);function zc(e,t,n){let r=(0,m.useRef)(n);(0,m.useInsertionEffect)(()=>{r.current=n});let i=(0,m.useRef)(null);return(0,m.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Bc=(0,m.createContext)({});function Vc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Hc(e,t,n,r,i,a){let{visualElement:o}=(0,m.useContext)(yc),s=(0,m.useContext)(ac),c=(0,m.useContext)(v),l=(0,m.useContext)(rc),u=l.reducedMotion,d=l.skipAnimations,f=(0,m.useRef)(null),p=(0,m.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,g=(0,m.useContext)(Bc);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&Uc(f.current,n,i,g);let y=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{h&&y.current&&h.update(n,c)});let b=n[Yr],x=(0,m.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return _(()=>{p.current=!0,h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),(0,m.useEffect)(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),h.enteringChildren=void 0)}),h}function Uc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Wc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Vc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Wc(e){if(e)return e.options.allowProjection===!1?Wc(e.parent):e.projection}function Gc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&uc(r);let a=n?n===`svg`:jc(e),o=a?Lc:Ic;function s(n,s){let c,l={...(0,m.useContext)(rc),...n,layoutId:Kc(n)},{isStatic:u}=l,d=xc(n),f=o(n,u);if(!u&&typeof window<`u`){qc(l,r);let t=Jc(l);c=t.MeasureLayout,d.visualElement=Hc(e,f,l,i,t.ProjectionNode,a)}return(0,p.jsxs)(yc.Provider,{value:d,children:[c&&d.visualElement?(0,p.jsx)(c,{visualElement:d.visualElement,...l}):null,Mc(e,n,zc(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,m.forwardRef)(s);return c[Rc]=e,c}function Kc({layoutId:e}){let t=(0,m.useContext)(h).id;return t&&e!==void 0?t+`-`+e:e}function qc(e,t){(0,m.useContext)(ac).strict}function Jc(e){let{drag:t,layout:n}=lc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Yc(e,t){if(typeof Proxy>`u`)return Gc;let n=new Map,r=(n,r)=>Gc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Gc(a,void 0,e,t)),n.get(a))})}var Xc=(e,t)=>t.isSVG??jc(e)?new yo(t):new co(t,{allowProjection:e!==m.Fragment}),Zc=class extends ka{constructor(e){super(e),e.animationState||=Eo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();fa(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Qc=0,$c={animation:{Feature:Zc},exit:{Feature:class extends ka{constructor(){super(...arguments),this.id=Qc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Br(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function el(e){return{point:{x:e.pageX,y:e.pageY}}}var tl=e=>t=>Mi(t)&&e(t,el(t));function nl(e,t,n,r){return ms(e,t,tl(n),r)}var rl=({current:e})=>e?e.ownerDocument.defaultView:null,il=(e,t)=>Math.abs(e-t);function al(e,t){let n=il(e.x,t.x),r=il(e.y,t.y);return Math.sqrt(n**2+r**2)}var ol=new Set([`auto`,`scroll`]),sl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=cl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=ul(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=al(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=M;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=cl(t,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ul(e.type===`pointercancel`?this.lastMoveEventInfo:cl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Mi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=cl(el(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=M;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,ul(s,this.history)),this.removeListeners=T(nl(this.contextWindow,`pointermove`,this.handlePointerMove),nl(this.contextWindow,`pointerup`,this.handlePointerUp),nl(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ol.has(e.overflowX)||ol.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),j(this.updatePoint)}};function cl(e,t){return t?{point:t(e.point)}:e}function ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ul({point:e},t){return{point:e,delta:ll(e,fl(t)),offset:ll(e,dl(t)),velocity:pl(t,.1)}}function dl(e){return e[0]}function fl(e){return e[e.length-1]}function pl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=fl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>E(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>E(t)*2&&(r=e[1]);let a=D(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ml(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function hl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function gl(e,{top:t,left:n,bottom:r,right:i}){return{x:hl(e.x,n,i),y:hl(e.y,t,r)}}function _l(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=re(t.min,t.max-r,e.min):r>i&&(n=re(e.min,e.max-i,t.min)),x(0,1,n)}function bl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var xl=.35;function Sl(e=xl){return e===!1?e=0:e===!0&&(e=xl),{x:Cl(e,`left`,`right`),y:Cl(e,`top`,`bottom`)}}function Cl(e,t,n){return{min:wl(e,t),max:wl(e,n)}}function wl(e,t){return typeof e==`number`?e:e[t]||0}var Tl=new WeakMap,El=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(el(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Di(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&A.update(()=>i(e,t),!1,!0),qr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Al(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new sl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:rl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!kl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ml(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Vc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=gl(n.layoutBox,e):this.constraints=!1,this.elastic=Sl(t),r!==this.constraints&&!Vc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=bl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Vc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ya(n,r.root,this.visualElement.getTransformPagePoint()),a=vl(r.layout.layoutBox,i);if(t){let e=t(ja(a));this.hasMutatedConstraints=!!e,e&&(a=Aa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!kl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return qr(this.visualElement,e),n.start(Pr(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!kl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Vc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=yl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!kl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Tl.set(this.visualElement,this);let e=this.visualElement.current,t=nl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ii(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Vc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Ol(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=ms(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=xl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Dl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Ol(e,t,n){let r=ia(e,Dl(n)),i=ia(t,Dl(n));return()=>{r(),i()}}function kl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Al(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var jl=class extends ka{constructor(e){super(e),this.removeGroupControls=w,this.removeListeners=w,this.controls=new El(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Ml=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},Nl=class extends ka{constructor(){super(...arguments),this.removePointerDownListener=w}onPointerDown(e){this.session=new sl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ml(e),onStart:Ml(t),onMove:Ml(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=nl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Pl=!1,Fl=class extends m.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Pl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),bs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Pl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),wi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Pl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Il(e){let[t,n]=ic(),r=(0,m.useContext)(h);return(0,p.jsx)(Fl,{...e,layoutGroup:r,switchLayoutGroup:(0,m.useContext)(Bc),isPresent:t,safeToRemove:n})}var Ll={pan:{Feature:Nl},drag:{Feature:jl,ProjectionNode:nc,MeasureLayout:Il}};function Rl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,el(t)))}var zl=class extends ka{mount(){let{current:e}=this.node;e&&(this.unmount=Ai(e,(e,t)=>(Rl(this.node,t,`Start`),e=>Rl(this.node,e,`End`))))}unmount(){}},Bl=class extends ka{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=T(ms(this.node.current,`focus`,()=>this.onFocus()),ms(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Vl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,el(t)))}var Hl=class extends ka{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ui(e,(e,t)=>(Vl(this.node,t,`Start`),(e,{success:t})=>Vl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Ul=new WeakMap,Wl=new WeakMap,Gl=e=>{let t=Ul.get(e.target);t&&t(e)},Kl=e=>{e.forEach(Gl)};function ql({root:e,...t}){let n=e||document;Wl.has(n)||Wl.set(n,{});let r=Wl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Kl,{root:e,...t})),r[i]}function Jl(e,t,n){let r=ql(t);return Ul.set(e,n),r.observe(e),()=>{Ul.delete(e),r.unobserve(e)}}var Yl={some:0,all:1},Xl=class extends ka{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Yl[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Jl(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Zl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Zl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Ql={inView:{Feature:Xl},tap:{Feature:Hl},focus:{Feature:Bl},hover:{Feature:zl}},$l={layout:{ProjectionNode:nc,MeasureLayout:Il}},X=Yc({...$c,...Ql,...Ll,...$l},Xc);function eu(){!ba.current&&Sa();let[e]=(0,m.useState)(ya.current);return e}var tu=(0,m.createContext)(null),nu=`/citpl_website/`;function ru(e){if(typeof e==`string`)return e.startsWith(`/assets/`)?`${nu}${e.slice(1)}`:e;if(Array.isArray(e))return e.map(ru);if(e&&typeof e==`object`){let t={};for(let n in e)t[n]=ru(e[n]);return t}return e}function iu({children:e,previewMode:t=!1}){let[n,r]=(0,m.useState)(ru(u)),[i,a]=(0,m.useState)(!t),[o,c]=(0,m.useState)(null),[l,d]=(0,m.useState)(null);return(0,m.useEffect)(()=>{t||fetch(`${s}/api/content`).then(e=>{if(!e.ok)throw Error(`Failed to load content`);return e.json()}).then(e=>{let{_updatedAt:t,...n}=e;r(ru(n)),d(t),c(null)}).catch(e=>{console.warn(`Using fallback content:`,e.message),c(e.message)}).finally(()=>a(!1))},[t]),(0,m.useEffect)(()=>{if(!t)return;a(!1);let e=e=>{if(e.origin!==window.location.origin||e.data?.type!==`ADMIN_PREVIEW`||!e.data.fullContent)return;r(ru(e.data.fullContent)),a(!1);let t=e.data.anchor;t&&window.setTimeout(()=>{document.getElementById(t)?.scrollIntoView({behavior:`auto`,block:`start`})},180)};return window.addEventListener(`message`,e),window.parent?.postMessage({type:`PREVIEW_READY`},window.location.origin),()=>window.removeEventListener(`message`,e)},[t]),(0,p.jsx)(tu.Provider,{value:{content:n,loading:i,error:o,updatedAt:l,previewMode:t},children:e})}function au(){let e=(0,m.useContext)(tu);if(!e)throw Error(`useContent must be used within ContentProvider`);return e}var ou=(0,m.createContext)(!1);function su(){return(0,m.useContext)(ou)}var cu=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),lu=e(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),uu=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),du=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),fu=e(`cloud-cog`,[[`path`,{d:`m10.852 19.772-.383.924`,key:`r7sl7d`}],[`path`,{d:`m13.148 14.228.383-.923`,key:`1d5zpm`}],[`path`,{d:`M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1ydik7`}],[`path`,{d:`m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1m1vsf`}],[`path`,{d:`m14.772 15.852.923-.383`,key:`660p6e`}],[`path`,{d:`m14.772 18.148.923.383`,key:`hrcpis`}],[`path`,{d:`M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2`,key:`j2q98n`}],[`path`,{d:`m9.228 15.852-.923-.383`,key:`1p9ong`}],[`path`,{d:`m9.228 18.148-.923.383`,key:`6558rz`}]]),pu=e(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),mu=e(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),hu=e(`factory`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),gu=e(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),_u=e(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),vu=e(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),yu=e(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),bu=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),xu=e(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Su=e(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);function Cu({gallery:e}){let t=e?.items||[],n=e||{eyebrow:`Featured Gallery`,title:``,subtitle:``},[r,i]=(0,m.useState)(0),[a,o]=(0,m.useState)(!1);return m.useEffect(()=>{let e=()=>o(window.innerWidth<1024);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,p.jsxs)(`section`,{id:`featured-gallery`,style:{padding:a?`4rem 1.25rem`:`6rem 8%`,background:`#020710`,position:`relative`},children:[(0,p.jsxs)(`div`,{style:{marginBottom:`3.5rem`,position:`relative`,zIndex:10},children:[(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:n.eyebrow}),(0,p.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:n.title}),(0,p.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`1rem`,marginTop:`0.75rem`,maxWidth:`600px`,lineHeight:`1.5`},children:n.subtitle})]}),(0,p.jsx)(wu,{galleryData:t,activeIdx:r,setActiveIdx:i})]})}function wu({galleryData:e,activeIdx:t,setActiveIdx:n}){let[r,a]=m.useState(!1),o=eu();m.useEffect(()=>{let e=()=>{a(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let s=e=>o?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15}};return r?(0,p.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:e.map((e,t)=>{let n=t===0,r=s(t);return(0,p.jsxs)(X.div,{className:`glass-card`,...r,transition:{duration:.8,ease:[.22,1,.36,1],delay:t*.1},style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,height:n?`320px`:`240px`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%), url(${e.image})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-end`,padding:`2rem 1.5rem`,boxShadow:n?`0 10px 30px -10px rgba(255, 170, 0, 0.15)`:`none`,borderColor:n?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.05em`,marginBottom:`0.25rem`},children:e.category}),(0,p.jsx)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,margin:`0 0 0.5rem 0`,lineHeight:`1.3`},children:e.title}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:`0 0 1rem 0`,lineHeight:`1.5`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.excerpt}),(0,p.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,borderTop:`1px solid rgba(255, 255, 255, 0.1)`,paddingTop:`0.75rem`},children:[(0,p.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,p.jsx)(i,{size:14}),` `,e.readTime]}),(0,p.jsxs)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,p.jsx)(cu,{size:14})]})]})]},e.id)})}):(0,p.jsx)(`div`,{style:{display:`flex`,gap:`1.25rem`,width:`100%`,height:`460px`,alignItems:`stretch`,position:`relative`},children:e.map((e,r)=>{let a=t===r,c=s(r);return(0,p.jsxs)(X.div,{layout:!0,onMouseEnter:()=>n(r),className:`glass-card`,...c,transition:o?{type:`spring`,stiffness:350,damping:32}:{layout:{type:`spring`,stiffness:350,damping:32},y:{duration:.8,ease:[.22,1,.36,1],delay:r*.1},opacity:{duration:.8,ease:`easeOut`,delay:r*.1}},style:{flex:a?2.8:1,borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:a?`0 15px 35px -12px rgba(255, 170, 0, 0.2)`:`0 4px 20px rgba(0, 0, 0, 0.3)`,borderColor:a?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,p.jsx)(X.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`url(${e.image})`,backgroundSize:`cover`,backgroundPosition:`center`,zIndex:1},animate:{scale:a?1.06:1},transition:{duration:.6}}),(0,p.jsx)(X.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%)`,zIndex:2},animate:{opacity:a?.95:.85},transition:{duration:.4}}),(0,p.jsx)(`div`,{style:{position:`relative`,zIndex:3,padding:`2rem 1.8rem 0 1.8rem`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.08em`,background:`rgba(255, 170, 0, 0.08)`,padding:`0.3rem 0.6rem`,borderRadius:`8px`,border:`1px solid rgba(255, 170, 0, 0.15)`},children:e.category})}),(0,p.jsxs)(`div`,{style:{position:`relative`,zIndex:3,padding:`0 1.8rem 2rem 1.8rem`},children:[(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},children:[(0,p.jsx)(`h3`,{style:{fontSize:a?`1.5rem`:`1.15rem`,fontWeight:700,color:`#ffffff`,margin:0,lineHeight:`1.3`,transition:`font-size 0.3s ease`,whiteSpace:a?`normal`:`nowrap`,overflow:a?`visible`:`hidden`,textOverflow:a?`clip`:`ellipsis`,maxWidth:`100%`},children:e.title}),(0,p.jsx)(X.div,{initial:!1,animate:{height:a?`auto`:0,opacity:+!!a,marginTop:a?6:0},transition:{duration:.4,ease:`easeInOut`},style:{overflow:`hidden`},children:(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:0,lineHeight:`1.5`,maxWidth:`90%`},children:e.excerpt})})]}),(0,p.jsxs)(`div`,{style:{marginTop:`1.5rem`},children:[(0,p.jsx)(`div`,{style:{width:`100%`,height:`2px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,borderRadius:`1px`,marginBottom:`1rem`,position:`relative`,overflow:`hidden`},children:(0,p.jsx)(X.div,{style:{height:`100%`,backgroundColor:`#ffaa00`,borderRadius:`1px`},initial:{width:0},animate:{width:a?`60%`:`15%`},transition:{duration:.5}})}),(0,p.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,minHeight:`24px`},children:[(0,p.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,p.jsx)(i,{size:13,style:{color:`#ffaa00`}}),` `,e.readTime]}),a&&(0,p.jsxs)(X.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3},style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,p.jsx)(cu,{size:14})]})]})]})]})]},e.id)})})}var Tu=[`radial-gradient(circle at top right, rgba(139, 92, 246, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`];function Eu({product:e,isMobile:t,delay:n=0,index:r=0}){if(!e)return null;let i=eu(),a=t?`92%`:`520px`,o=t?`4%`:`32%`,s=t?`200px`:`320px`,c=t?`170px`:`280px`;return(0,p.jsx)(X.div,{initial:i?!1:{opacity:0,y:40},whileInView:i?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{duration:.8,ease:[.22,1,.36,1],delay:n},style:{height:`100%`},children:(0,p.jsxs)(`div`,{className:`product-card`,style:{borderRadius:t?`20px`:`28px`,border:`${t?4:6}px solid #EAE3E8`,background:Tu[r%Tu.length],padding:t?`1.75rem 1.25rem 0`:`3rem 2.5rem 0 2.5rem`,boxShadow:`0 4px 24px rgba(234, 227, 232, 0.25)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,height:`100%`,minHeight:t?`380px`:`600px`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{t||(e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 10px 30px rgba(255, 170, 0, 0.2)`,e.currentTarget.style.borderColor=`#ffaa00`)},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 24px rgba(234, 227, 232, 0.25)`,e.currentTarget.style.borderColor=`#EAE3E8`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`radial-gradient(#E0D2DC 1.5px, transparent 1.5px)`,backgroundSize:`12px 12px`,WebkitMaskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,maskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,pointerEvents:`none`,zIndex:1}}),(0,p.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`2rem`,fontWeight:800,color:`#0f172a`,margin:`0 0 0.75rem 0`,letterSpacing:`-0.02em`,position:`relative`,zIndex:3},children:e.name}),(0,p.jsx)(`p`,{style:{color:`#475569`,fontSize:t?`0.95rem`:`1.05rem`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,fontWeight:400,maxWidth:`100%`,position:`relative`,zIndex:3},children:e.description}),(0,p.jsx)(`div`,{style:{position:`absolute`,bottom:0,left:o,width:a,height:c,borderRadius:`20px 20px 0 0`,boxShadow:`-20px -20px 45px rgba(0,0,0,0.12)`,zIndex:2,pointerEvents:`none`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,bottom:t?`-16px`:`-40px`,left:o,width:a,height:s,borderRadius:`16px`,border:`1.5px solid rgba(255, 255, 255, 0.4)`,overflow:`hidden`,zIndex:2,background:`transparent`},children:(0,p.jsx)(`img`,{src:e.image,alt:`${e.name} dashboard`,style:{position:`absolute`,top:t?`0`:`-8%`,left:t?`0`:`-40%`,width:t?`100%`:`160%`,height:t?`100%`:`145%`,objectFit:`cover`}})}),e.stats?.[0]&&(0,p.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`110px`:`160px`,left:t?`6%`:`18%`,background:`rgba(255, 255, 255, 0.25)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.3)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(31, 38, 135, 0.15)`,zIndex:5},children:[(0,p.jsx)(`span`,{style:{fontWeight:800,color:`#000000`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[0].value}),(0,p.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#000000`,fontWeight:600},children:e.stats[0].label})]}),e.stats?.[1]&&(0,p.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`36px`:`50px`,right:t?`5%`:`8%`,background:`rgba(20, 20, 25, 0.55)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.15)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(0, 0, 0, 0.25)`,zIndex:5},children:[(0,p.jsx)(`span`,{style:{fontWeight:800,color:`#ffffff`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[1].value}),(0,p.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#ffffff`,fontWeight:500},children:e.stats[1].label})]})]})})}var Z=`/citpl_website/`;function Q({children:e,delay:t=0,style:n}){let r=eu(),i=su();return r&&!i?(0,p.jsx)(`div`,{style:n,children:e}):(0,p.jsx)(X.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.8,ease:[.22,1,.36,1],delay:t},style:n,children:e})}var Du={BrainCircuit:lu,Factory:hu,Network:vu,UsersRound:xu,ShieldCheck:bu,Code2:pu,CloudCog:fu,Glasses:gu,Sparkles:o},$=({src:e,alt:t,radiusX:n,radiusY:r,startAngle:i,duration:a,clockwise:o=!0,size:s=120})=>{let[c,l]=(0,m.useState)({x:0,y:0});return(0,m.useEffect)(()=>{let e=2*Math.PI/(a*1e3),t=o?1:-1,s=i*Math.PI/180,c,u=()=>{let i=performance.now(),a=s+t*e*i;l({x:n*Math.cos(a),y:r*Math.sin(a)}),c=requestAnimationFrame(u)};return c=requestAnimationFrame(u),()=>cancelAnimationFrame(c)},[n,r,i,a,o]),(0,p.jsx)(X.div,{whileHover:{scale:1.1},transition:{type:`spring`,stiffness:300,damping:15},style:{position:`absolute`,top:`50%`,left:`50%`,x:`calc(-50% + ${c.x}px)`,y:`calc(-50% + ${c.y}px)`,width:`${s}px`,height:`80px`,display:`flex`,justifyContent:`center`,alignItems:`center`,cursor:`pointer`,zIndex:10,pointerEvents:`auto`},children:(0,p.jsx)(`img`,{src:e,alt:t,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`}})})};function Ou({service:e,isMobile:t,index:n=0}){Du[e.icon];let r=eu()?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{y:{type:`tween`,duration:.8,ease:[.22,1,.36,1],delay:n*.1},opacity:{duration:.8,ease:`easeOut`,delay:n*.1}}};return(0,p.jsxs)(X.div,{whileHover:t?{}:{y:-8,borderColor:`rgba(255, 255, 255, 0.2)`,boxShadow:`0 20px 40px rgba(0, 0, 0, 0.6)`},...r,style:{flex:`0 0 auto`,scrollSnapAlign:`start`,width:t?`290px`:`calc(40% - 19.2px)`,minHeight:t?`450px`:`520px`,background:`linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(9, 14, 26, 0.85) 100%)`,backdropFilter:`blur(16px)`,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.08)`,padding:t?`2rem 1.5rem`:`3rem 2.5rem`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:`0 12px 30px rgba(0, 0, 0, 0.4)`,transition:`border-color 0.3s ease, box-shadow 0.3s ease`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:e.glowColor,pointerEvents:`none`,zIndex:0}}),(0,p.jsx)(`div`,{style:{position:`absolute`,bottom:`-25px`,right:`15px`,fontSize:t?`130px`:`180px`,fontWeight:900,color:`rgba(255, 255, 255, 0.012)`,lineHeight:`1`,pointerEvents:`none`,userSelect:`none`,zIndex:0},children:e.number}),(0,p.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,p.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`1.9rem`,fontWeight:700,color:`#ffffff`,marginBottom:t?`1rem`:`1.5rem`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:e.title}),(0,p.jsxs)(`div`,{style:{display:`flex`,gap:`0.8rem`,marginBottom:`1rem`},children:[(0,p.jsx)(`div`,{style:{width:`4px`,background:`#ffffff`,borderRadius:`2px`,flexShrink:0}}),(0,p.jsx)(`h4`,{style:{fontSize:t?`0.95rem`:`1.05rem`,fontWeight:700,color:`#e2e8f0`,lineHeight:`1.4`,margin:0},children:e.boldStatement})]}),(0,p.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:t?`0.85rem`:`0.9rem`,lineHeight:`1.6`,marginBottom:t?`1.2rem`:`1.8rem`,fontWeight:400},children:e.description}),(0,p.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`0.65rem`},children:e.capabilities.map((e,n)=>(0,p.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.6rem`,fontSize:t?`0.85rem`:`0.9rem`,fontWeight:500,color:`#cbd5e1`},children:[(0,p.jsx)(`span`,{style:{color:`#ffffff`,opacity:.5,fontSize:`0.85rem`},children:`»`}),e]},n))})]}),(0,p.jsx)(`div`,{style:{position:`relative`,zIndex:1,marginTop:t?`1.5rem`:`2.5rem`},children:(0,p.jsxs)(`a`,{href:`#contact`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,color:`#ffffff`,textDecoration:`none`,fontSize:t?`0.85rem`:`0.92rem`,fontWeight:600,transition:`color 0.2s`},onMouseEnter:e=>e.target.style.color=`#ffaa00`,onMouseLeave:e=>e.target.style.color=`#ffffff`,children:[e.cta,` `,(0,p.jsx)(`span`,{children:`→`})]})})]})}function ku({previewMode:e=!1}){let{content:t,loading:n}=au(),r=t.services?.items??[],i=t.insights?.items??[],a=t.metrics??[],o=t.hero??{},s=t.about??{},c=t.partners??{logos:[]},u=t.certifications??{items:[]},f=t.whyUs??{cards:[],images:[]},h=t.products??{items:[]},g=t.footer??{cta:{},quickLinks:[],productLinks:[],social:[],legal:[]},[_,v]=(0,m.useState)(`agile`),[y,b]=(0,m.useState)(0),[x,S]=(0,m.useState)(0),[C,ee]=(0,m.useState)(!1),[te,ne]=(0,m.useState)(!1),[w,T]=(0,m.useState)(`home`),[re,ie]=(0,m.useState)(null),[E,D]=(0,m.useState)(!1),[ae,oe]=(0,m.useState)(!1),[se,ce]=(0,m.useState)(!1),[le,O]=(0,m.useState)(!1),[ue,de]=(0,m.useState)(``),[fe,pe]=(0,m.useState)(``),[me,he]=(0,m.useState)(``),[ge,_e]=(0,m.useState)(null),[ve,ye]=(0,m.useState)(``),[be,xe]=(0,m.useState)(``),[Se,Ce]=(0,m.useState)(``),[we,Te]=(0,m.useState)(``),[Ee,De]=(0,m.useState)(``),[k,Oe]=(0,m.useState)({"AI & Analytics":!1,"SAP Services":!1,"XR Platforms":!1,"Smart Factory":!1,"Cloud Engineering":!1,"Enterprise Software":!1});(0,m.useEffect)(()=>{let e=()=>{ee(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let[ke,Ae]=(0,m.useState)(null);(0,m.useEffect)(()=>{let e=setInterval(()=>{let e=[27,28,30,31,32,33,34,35,36],t=e[Math.floor(Math.random()*e.length)];Ae(t),setTimeout(()=>{Ae(null)},1e3)},3500);return()=>clearInterval(e)},[]),(0,m.useEffect)(()=>{if(e)return;let t=()=>{let e=[`home`,`aboutus`,`services`,`whyus`,`products`,`insights`,`contactus`],t=window.scrollY+120;if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-50){T(`contactus`);return}for(let n of e){let e=document.getElementById(n);if(e){let r=e.offsetTop,i=e.offsetHeight;if(t>=r&&twindow.removeEventListener(`scroll`,t)},[e]);let A=()=>{switch(w){case`home`:return`Home`;case`aboutus`:case`services`:case`whyus`:return`About Us`;case`products`:case`insights`:return`Products`;case`contactus`:return`Contact Us`;default:return`Home`}},j=(0,m.useRef)(null),M=e=>{if(j.current){let t=C?310:444;j.current.scrollBy({left:e===`left`?-t:t,behavior:`smooth`})}},[je,Me]=(0,m.useState)(0),Ne=(0,m.useRef)(null),N=e=>{if(Ne.current){let t=(C?window.innerWidth*.72:340)+24;Ne.current.scrollBy({left:e*t,behavior:`smooth`})}},P=C?`1.25rem`:`8%`,Pe=[`Home`,`About Us`,`Products`,`Careers`,`Contact Us`],Fe=C?72:88,Ie=e=>{if(e===`contactus`){let e=document.getElementById(`contactus`);if(e){let t=e.getBoundingClientRect().top+window.scrollY-Fe;window.scrollTo({top:Math.max(0,t),behavior:`smooth`})}else window.scrollTo({top:document.documentElement.scrollHeight,behavior:`smooth`});T(`contactus`);return}let t=document.getElementById(e);if(!t)return;let n=t.getBoundingClientRect().top+window.scrollY-Fe;window.scrollTo({top:Math.max(0,n),behavior:`smooth`}),T(e)},Le=e=>{if(O(!1),e===`Careers`){ne(!0);return}let t={Home:`home`,"About Us":`aboutus`,Products:`products`,"Contact Us":`contactus`}[e];t&&setTimeout(()=>Ie(t),C?150:0)};return(0,m.useEffect)(()=>(document.body.style.overflow=le?`hidden`:``,()=>{document.body.style.overflow=``}),[le]),n?(0,p.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#020710`,color:`#94a3b8`},children:`Loading...`}):(0,p.jsxs)(`div`,{style:{backgroundColor:`#020710`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,display:`flex`,flexDirection:`column`},children:[(0,p.jsxs)(`div`,{style:{position:`relative`,zIndex:10,backgroundColor:`#020710`,width:`100%`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:0,left:`10%`,right:`10%`,height:`600px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.12) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`1200px`,right:`5%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 85, 0, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`2200px`,left:`5%`,width:`600px`,height:`600px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsxs)(`nav`,{className:`glass site-nav`,style:{position:`sticky`,top:0,zIndex:50,display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:C?`0.85rem 1.25rem`:`1.2rem 8%`,borderBottom:w===`products`?`1px solid rgba(15, 23, 42, 0.08)`:`1px solid rgba(255, 255, 255, 0.05)`},children:[(0,p.jsx)(`div`,{style:{display:`flex`,alignItems:`center`},children:(0,p.jsx)(`img`,{src:`${Z}assets/cavin_logo.svg`,alt:`Cavin Infotech Logo`,style:{height:C?`38px`:`50px`,display:`block`}})}),!C&&(0,p.jsxs)(`div`,{className:`site-nav-links`,style:{display:`flex`,gap:`2rem`,alignItems:`center`},children:[Pe.map(e=>{let t=w===`products`,n=A()===e,r=re===e,i;return i=t?n||r?`#b45309`:`#1e293b`:n||r?`#ffaa00`:`#a0aec0`,(0,p.jsx)(`a`,{href:e===`Careers`?void 0:`#${e.toLowerCase().replace(` `,``)}`,onClick:t=>{t.preventDefault(),Le(e)},style:{color:i,textDecoration:`none`,fontSize:`0.95rem`,fontWeight:500,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:()=>ie(e),onMouseLeave:()=>ie(null),children:e},e)}),(0,p.jsxs)(`div`,{className:`btn-sparkle-wrapper`,children:[(0,p.jsx)(`img`,{src:`${Z}assets/button_hover_effect.png`,className:`btn-sparkles`,alt:``}),(0,p.jsx)(`button`,{className:`btn-talk`,onClick:()=>oe(!0),children:`Book a Strategy Call`})]})]}),C&&(0,p.jsx)(`button`,{type:`button`,"aria-label":le?`Close menu`:`Open menu`,onClick:()=>O(e=>!e),style:{background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,borderRadius:`8px`,width:`42px`,height:`42px`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:w===`products`?`#1e293b`:`#fff`,cursor:`pointer`},children:le?(0,p.jsx)(d,{size:20}):(0,p.jsx)(l,{size:20})})]}),C&&le&&(0,p.jsx)(`div`,{className:`mobile-menu-overlay`,onClick:()=>O(!1),style:{position:`fixed`,inset:0,background:`rgba(2, 7, 16, 0.75)`,backdropFilter:`blur(6px)`,zIndex:60,display:`flex`,justifyContent:`flex-end`},children:(0,p.jsxs)(`div`,{className:`mobile-menu-panel`,onClick:e=>e.stopPropagation(),style:{width:`min(85vw, 320px)`,height:`100%`,background:`#0a1628`,borderLeft:`1px solid rgba(255,255,255,0.08)`,padding:`1.5rem 1.25rem`,display:`flex`,flexDirection:`column`,gap:`0.25rem`},children:[Pe.map(e=>(0,p.jsx)(`button`,{type:`button`,onClick:()=>Le(e),style:{background:A()===e?`rgba(255,170,0,0.12)`:`transparent`,border:`none`,color:A()===e?`#ffaa00`:`#e2e8f0`,textAlign:`left`,padding:`0.85rem 1rem`,borderRadius:`8px`,fontSize:`1rem`,fontWeight:500,cursor:`pointer`},children:e},e)),(0,p.jsx)(`button`,{type:`button`,className:`btn-talk`,onClick:()=>{O(!1),oe(!0)},style:{marginTop:`1rem`,width:`100%`,minWidth:`unset`},children:`Book a Strategy Call`})]})}),(0,p.jsxs)(`section`,{id:`home`,style:{padding:C?`6rem 1.25rem 3.5rem`:`9rem 8% 6rem 8%`,textAlign:`center`,position:`relative`,zIndex:10,minHeight:C?`70vh`:`85vh`,display:`flex`,flexDirection:`column`,alignItems:`center`,overflow:`hidden`},children:[(0,p.jsxs)(`video`,{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,objectFit:`cover`,zIndex:-1,pointerEvents:`none`},children:[(0,p.jsx)(`source`,{src:`${o.video}?v=2`,type:`video/mp4`}),`Your browser does not support the video tag.`]}),(0,p.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,p.jsx)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,backgroundColor:`rgba(255, 170, 0, 0.08)`,border:`1px solid rgba(255, 170, 0, 0.2)`,borderRadius:`9999px`,padding:`0.4rem 1.2rem`,marginBottom:`2.5rem`,boxShadow:`0 4px 12px rgba(0, 0, 0, 0.3)`},children:(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600},children:o.badge})}),(0,p.jsxs)(`h1`,{style:{fontSize:`clamp(2rem, 4.8vw, 4.4rem)`,fontWeight:800,lineHeight:1.15,maxWidth:`1200px`,margin:C?`0 auto 3rem auto`:`0 auto 8rem auto`,letterSpacing:`-0.03em`,filter:`drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8))`,textShadow:`0 2px 10px rgba(0, 0, 0, 0.5)`},children:[(0,p.jsx)(`span`,{style:{color:`#94a3b8`,display:`block`,fontSize:`clamp(1.5rem, 3.8vw, 3.2rem)`,marginBottom:`0.5rem`,fontWeight:500},children:o.headline}),o.subheadline?.includes(`Technology Partner`)?(0,p.jsxs)(p.Fragment,{children:[o.subheadline.replace(`Technology Partner`,``).trim(),` `,(0,p.jsx)(`span`,{className:`gradient-text-gold`,children:`Technology Partner`})]}):o.subheadline]})]})]}),(0,p.jsx)(`section`,{style:{padding:C?`3rem 1.5rem`:`4rem 8% 2rem 8%`,backgroundColor:`#020710`,position:`relative`,zIndex:10,display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,p.jsx)(Q,{style:{width:`100%`,display:`flex`,justifyContent:`center`},children:(0,p.jsx)(`div`,{style:{background:`rgba(25, 23, 21, 0.75)`,padding:C?`1.5rem 1.2rem`:`1.2rem 3rem`,display:`flex`,flexDirection:C?`column`:`row`,gap:C?`1.2rem`:`2rem`,justifyContent:C?`center`:`space-between`,alignItems:`center`,width:`100%`,maxWidth:`1100px`,borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.08)`,backdropFilter:`blur(20px)`,marginTop:`0`,marginBottom:`0`,position:`relative`,zIndex:20,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8)`},children:a.map((e,t)=>(0,p.jsxs)(m.Fragment,{children:[t>0&&!C&&(0,p.jsx)(`div`,{style:{width:`1px`,height:`30px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,flexShrink:0}}),(0,p.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,flex:`1 1 auto`,minWidth:C?`unset`:`150px`,justifyContent:C?`center`:`flex-start`},children:[(0,p.jsx)(`div`,{style:{width:`42px`,height:`42px`,borderRadius:`50%`,border:`1.5px solid rgba(255, 170, 0, 0.4)`,background:`rgba(255, 170, 0, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:[(0,p.jsx)(Su,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`z`),(0,p.jsx)(_u,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`g`),(0,p.jsx)(yu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`l`),(0,p.jsx)(mu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`c`)][t%4]}),(0,p.jsxs)(`div`,{style:{textAlign:`left`},children:[(0,p.jsx)(`span`,{style:{display:`block`,fontSize:`1.5rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.1},children:e.value}),(0,p.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:e.label})]})]})]},e.label))})})}),(0,p.jsx)(`section`,{id:`aboutus`,style:{padding:C?`3.5rem 1.25rem`:`6.5rem 8% 5.5rem 8%`,backgroundColor:`#020710`,backgroundImage:`url('${s.backgroundImage}')`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.02)`,position:`relative`},children:(0,p.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,bottom:`15%`,left:`50%`,transform:`translateX(-50%)`,width:`320px`,height:`60px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.25) 0%, transparent 80%)`,pointerEvents:`none`,zIndex:0,filter:`blur(10px)`}}),(0,p.jsx)(`h2`,{style:{fontSize:`clamp(1.6rem, 2.8vw, 2.4rem)`,fontWeight:600,color:`#ffffff`,marginBottom:`2.5rem`,letterSpacing:`-0.02em`,position:`relative`,zIndex:1},children:s.heading}),(0,p.jsx)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,zIndex:1,boxShadow:`0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(71, 115, 179, 0.15)`,borderRadius:`4px`,overflow:`hidden`},children:(0,p.jsx)(`img`,{src:s.badgeImage,alt:s.badgeAlt,style:{height:C?`40px`:`54px`,display:`block`,maxWidth:`100%`,objectFit:`contain`}})})]})}),(0,p.jsxs)(`section`,{style:{padding:C?`4rem 8%`:`2rem 0`,borderTop:`1px solid rgba(255, 255, 255, 0.03)`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`,background:`#020710`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`linear-gradient(rgba(255, 170, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 170, 0, 0.02) 1px, transparent 1px)`,backgroundSize:`50px 50px`,opacity:.4,pointerEvents:`none`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsx)(Q,{style:{width:`100%`},children:C?(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`3rem`,position:`relative`,zIndex:2},children:[(0,p.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`2rem`,fontWeight:800,marginBottom:`0.8rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:c.heading}),(0,p.jsx)(`h4`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#a0aec0`,marginBottom:`1rem`},children:c.subheading}),(0,p.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:1.5,maxWidth:`400px`,margin:`0 auto`},children:c.body})]}),(0,p.jsx)(`div`,{style:{position:`relative`,width:`280px`,height:`280px`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,p.jsx)(`img`,{src:`${Z}assets/GlobeVector.svg`,alt:`Globe Map`,style:{width:`100%`,height:`100%`,objectFit:`contain`,opacity:.3}})}),(0,p.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:`1.5rem 1rem`,width:`100%`,alignItems:`center`,justifyItems:`center`},children:c.logos.map((e,t)=>(0,p.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`50px`,width:`100%`,padding:`0.2rem`},children:(0,p.jsx)(`img`,{src:e.image,alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})},t))})]}):(0,p.jsxs)(`div`,{style:{position:`relative`,width:`1100px`,height:`800px`,margin:`0 auto`,zIndex:2},children:[(0,p.jsx)(`img`,{src:`${Z}assets/GlobeVector.svg`,alt:`Globe Map`,style:{position:`absolute`,width:`800px`,height:`800px`,top:`58%`,left:`50%`,transform:`translate(-50%, -50%)`,objectFit:`contain`,opacity:.55,zIndex:1,pointerEvents:`none`}}),(0,p.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5,textAlign:`center`,width:`420px`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`2.2rem`,fontWeight:800,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:c.heading}),(0,p.jsx)(`span`,{style:{fontSize:`1.8rem`,fontWeight:700,color:`#cbd5e1`,margin:`0 0 1rem 0`,letterSpacing:`-0.02em`},children:c.subheading}),(0,p.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0,fontWeight:500,maxWidth:`340px`},children:c.body})]}),(0,p.jsx)($,{src:`${Z}assets/Frame 33.svg`,alt:`MRF Logo`,radiusX:520,radiusY:320,startAngle:0,duration:60,clockwise:!0,size:170}),(0,p.jsx)($,{src:`${Z}assets/Frame 31.svg`,alt:`ACA Global Logo`,radiusX:520,radiusY:320,startAngle:78,duration:60,clockwise:!0,size:175}),(0,p.jsx)($,{src:`${Z}assets/Frame 30.svg`,alt:`Polyhose Logo`,radiusX:520,radiusY:320,startAngle:144,duration:60,clockwise:!0,size:170}),(0,p.jsx)($,{src:`${Z}assets/Frame 32.svg`,alt:`Dawn Pictures Logo`,radiusX:520,radiusY:320,startAngle:216,duration:60,clockwise:!0,size:180}),(0,p.jsx)($,{src:`${Z}assets/Frame 35.svg`,alt:`Hero Logo`,radiusX:520,radiusY:320,startAngle:282,duration:60,clockwise:!0,size:170}),(0,p.jsx)($,{src:`${Z}assets/Frame 28.svg`,alt:`Valeo Logo`,radiusX:360,radiusY:225,startAngle:36,duration:40,clockwise:!1,size:170}),(0,p.jsx)($,{src:`${Z}assets/Frame 36.svg`,alt:`BorgWarner Logo`,radiusX:360,radiusY:225,startAngle:108,duration:40,clockwise:!1,size:170}),(0,p.jsx)($,{src:`${Z}assets/kone.png`,alt:`KONE Logo`,radiusX:360,radiusY:225,startAngle:180,duration:40,clockwise:!1,size:160}),(0,p.jsx)($,{src:`${Z}assets/Frame 34.svg`,alt:`Chola MS Logo`,radiusX:360,radiusY:225,startAngle:252,duration:40,clockwise:!1,size:170}),(0,p.jsx)($,{src:`${Z}assets/Frame 27.svg`,alt:`CavinKare Logo`,radiusX:360,radiusY:225,startAngle:324,duration:40,clockwise:!1,size:180})]})})]}),(0,p.jsxs)(`section`,{id:`certifications`,style:{padding:C?`3rem 1.25rem`:`5rem 8%`,backgroundColor:`#020710`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,p.jsx)(Q,{children:(0,p.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.2vw, 2.5rem)`,fontWeight:600,color:`#e2e8f0`,marginBottom:`3.5rem`,letterSpacing:`-0.02em`,opacity:.9},children:u.heading})}),(0,p.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:C?`1.5rem`:`5rem`,flexWrap:`wrap`},children:u.items.map((e,t)=>(0,p.jsx)(Q,{delay:t*.1,children:(0,p.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:t===4?`110px`:`90px`,transition:`all 0.3s ease`},children:(0,p.jsx)(`img`,{src:e.image,alt:e.alt,style:{height:t===0?`85%`:t===3?`55%`:t===4?`100%`:`80%`,objectFit:`contain`}})})},e.alt))})]}),(0,p.jsxs)(`section`,{id:`services`,style:{padding:C?`4rem 0`:`96px 0`,backgroundColor:`#020710`,position:`relative`,overflow:`hidden`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:`20%`,right:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsx)(`div`,{style:{position:`absolute`,bottom:`10%`,left:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.02) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,p.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,padding:C?`0 1.5rem`:`0 4rem`,display:`flex`,flexDirection:C?`column`:`row`,alignItems:`stretch`,gap:C?`2.5rem`:`64px`,position:`relative`,zIndex:1},children:[(0,p.jsxs)(Q,{style:{flex:C?`1`:`0 0 300px`,width:C?`100%`:`300px`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`},children:[(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.15em`,display:`block`,marginBottom:`1rem`,lineHeight:`1.4`},children:t.services.eyebrow}),(0,p.jsx)(`h2`,{style:{color:`#e2e8f0`,fontSize:C?`2.2rem`:`3.2rem`,fontWeight:300,letterSpacing:`-0.02em`,margin:`0 0 1.5rem 0`,lineHeight:`1.1`},children:t.services.title}),(0,p.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:C?`0.9rem`:`0.95rem`,lineHeight:`1.65`,margin:`0 0 2rem 0`,fontWeight:400},children:t.services.intro})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,gap:`0.75rem`,marginTop:C?`0rem`:`auto`},children:[(0,p.jsx)(`button`,{onClick:()=>M(`left`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(255, 255, 255, 0.02)`,color:`#ffffff`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.02)`},"aria-label":`Scroll left`,children:(0,p.jsx)(uu,{size:20})}),(0,p.jsx)(`button`,{onClick:()=>M(`right`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid #ffffff`,background:`#ffffff`,color:`#020710`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.opacity=`0.9`},onMouseLeave:e=>{e.currentTarget.style.opacity=`1`},"aria-label":`Scroll right`,children:(0,p.jsx)(du,{size:20})})]})]}),(0,p.jsx)(`div`,{style:{flexGrow:1,overflow:`visible`,width:C?`100%`:`calc(100% - 364px)`},children:(0,p.jsx)(Q,{style:{width:`100%`},children:(0,p.jsx)(`div`,{ref:j,className:`services-carousel`,style:{display:`flex`,gap:C?`1rem`:`24px`,overflowX:`auto`,scrollSnapType:`x mandatory`,paddingBottom:`2rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},children:r.map((e,t)=>(0,p.jsx)(Ou,{service:e,isMobile:C,index:t},e.id))})})})]})]}),(0,p.jsx)(`section`,{id:`whyus`,style:{padding:C?`4rem 1.25rem`:`6rem 8%`,background:`rgba(5, 16, 34, 0.3)`,position:`relative`},children:(0,p.jsxs)(`div`,{style:{maxWidth:`1400px`,margin:`0 auto`,position:`relative`,zIndex:10},children:[(0,p.jsx)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`},children:(0,p.jsxs)(Q,{children:[(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:f.eyebrow}),(0,p.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:f.title})]})}),C?(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`,position:`relative`,zIndex:10},children:[(0,p.jsx)(Q,{delay:0,children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.2) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Innovation Driven`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,p.jsx)(Q,{delay:.1,children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Industry Expertise`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,p.jsx)(Q,{delay:.2,children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Secure & Reliable`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,p.jsx)(Q,{delay:.3,children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${Z}assets/whyus_hologram.jpg)`,backgroundSize:`cover`,backgroundPosition:`center`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Outcome Focused`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]})})]}):(0,p.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1.15fr 0.65fr 1.2fr`,gridTemplateRows:`auto minmax(260px, auto)`,gap:`1.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10},children:[(0,p.jsx)(Q,{delay:0,style:{height:`100%`,gridColumn:`1`,gridRow:`1`},children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.25) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Innovation Driven`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,p.jsx)(Q,{delay:.1,style:{height:`100%`,gridColumn:`1`,gridRow:`2`},children:(0,p.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,p.jsx)(`img`,{src:`${Z}assets/whyus_arab_meeting.jpg`,alt:`Corporate collaboration`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,p.jsx)(Q,{delay:.2,style:{height:`100%`,gridColumn:`2 / 4`,gridRow:`1`},children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Industry Expertise`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,p.jsx)(Q,{delay:.3,style:{height:`100%`,gridColumn:`2`,gridRow:`2`},children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Secure & Reliable`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,p.jsx)(Q,{delay:.4,style:{height:`100%`,gridColumn:`3`,gridRow:`2`},children:(0,p.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,p.jsx)(`img`,{src:`${Z}assets/whyus_vr_man.jpg`,alt:`Sunset boardroom`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,p.jsx)(Q,{delay:.5,style:{height:`100%`,gridColumn:`4`,gridRow:`1 / 3`},children:(0,p.jsxs)(`div`,{className:`glass-card`,style:{borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${Z}assets/whyus_hologram.jpg)`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`2.5rem`,height:`100%`},children:[(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:`0 0 1rem 0`},children:`Outcome Focused`}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0 1.5rem 0`}}),(0,p.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.95rem`,lineHeight:`1.65`,margin:0,fontWeight:400,maxWidth:`95%`},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]}),(0,p.jsx)(`div`,{style:{flex:1,minHeight:`120px`}}),` `]})})]})]})}),(0,p.jsx)(Q,{children:(0,p.jsx)(Cu,{gallery:t.gallery})}),(0,p.jsxs)(`section`,{id:`products`,style:{padding:C?`4rem 1.25rem`:`6rem 8%`,background:`#f8fafc`,position:`relative`,overflow:`hidden`},children:[(0,p.jsx)(Q,{children:(0,p.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`,position:`relative`,zIndex:10},children:[(0,p.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:h.eyebrow}),(0,p.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#0f172a`},children:h.title}),(0,p.jsx)(`p`,{style:{color:`#475569`,fontSize:`1.05rem`,marginTop:`0.75rem`,maxWidth:`650px`,marginLeft:`auto`,marginRight:`auto`,lineHeight:`1.5`},children:h.subtitle})]})}),(0,p.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:C?`1fr`:`repeat(auto-fit, minmax(320px, 1fr))`,gap:C?`1.5rem`:`2.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10,marginBottom:`4rem`},children:h.items.map((e,t)=>(0,p.jsx)(Eu,{product:e,isMobile:C,delay:t*.1,index:t},e.name||t))})]}),(0,p.jsxs)(`section`,{id:`insights`,style:{padding:C?`3.5rem 0 4rem`:`5rem 0 6rem 0`,background:`#020c1e`},children:[(0,p.jsxs)(Q,{style:{padding:C?`0 1.25rem`:`0 8%`,display:`flex`,flexDirection:C?`column`:`row`,justifyContent:`space-between`,alignItems:C?`stretch`:`flex-start`,gap:C?`1.25rem`:`0`,marginBottom:C?`2rem`:`3rem`},children:[(0,p.jsxs)(`div`,{style:{maxWidth:`680px`},children:[(0,p.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3vw, 2.6rem)`,fontWeight:700,color:`#ffffff`,lineHeight:1.25,marginBottom:`1rem`,letterSpacing:`-0.02em`},children:t.insights.title}),(0,p.jsx)(`p`,{style:{color:`#64748b`,fontSize:`0.82rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.06em`,lineHeight:1.6,maxWidth:`540px`},children:t.insights.subtitle})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,gap:`0.6rem`,alignItems:`center`,flexShrink:0,marginTop:`0.5rem`},children:[(0,p.jsx)(`button`,{onClick:()=>N(-1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,p.jsx)(cu,{size:16,style:{transform:`rotate(180deg)`}})}),(0,p.jsx)(`button`,{onClick:()=>N(1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,p.jsx)(cu,{size:16})})]})]}),(0,p.jsx)(Q,{style:{width:`100%`},children:(0,p.jsx)(`div`,{ref:Ne,style:{display:`flex`,gap:`1.5rem`,overflowX:`auto`,scrollSnapType:`x mandatory`,scrollPaddingLeft:C?`1.25rem`:`8%`,paddingLeft:C?`1.25rem`:`8%`,paddingRight:C?`1.25rem`:`8%`,paddingBottom:`1.5rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},className:`blog-carousel`,children:i.map((e,t)=>(0,p.jsx)(Q,{delay:t*.1,style:{flex:C?`0 0 72vw`:`0 0 340px`,minWidth:C?`72vw`:`340px`,height:`420px`,scrollSnapAlign:`start`,flexShrink:0},children:(0,p.jsxs)(`div`,{className:`blog-card`,style:{width:`100%`,height:`100%`,borderRadius:`14px`,overflow:`hidden`,position:`relative`,cursor:`pointer`,border:`1px solid rgba(255,255,255,0.08)`,transition:`all 0.35s cubic-bezier(0.4,0,0.2,1)`,boxShadow:`0 4px 30px rgba(0,0,0,0.5)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255,170,0,0.35)`,e.currentTarget.style.boxShadow=`0 16px 48px rgba(255,170,0,0.12)`,e.currentTarget.style.transform=`translateY(-5px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.08)`,e.currentTarget.style.boxShadow=`0 4px 30px rgba(0,0,0,0.5)`,e.currentTarget.style.transform=`translateY(0)`},children:[(0,p.jsx)(`img`,{src:e.image,alt:e.title,className:`blog-card-img`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`center top`,display:`block`,transition:`transform 0.6s ease`}}),(0,p.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(to bottom, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.0) 100%)`,pointerEvents:`none`}}),(0,p.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:`1.3rem 1.2rem 1.2rem 1.2rem`,display:`flex`,flexDirection:`column`,gap:`0.5rem`,background:`rgba(8, 14, 32, 0.55)`,backdropFilter:`blur(14px)`,WebkitBackdropFilter:`blur(14px)`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,p.jsx)(`span`,{style:{fontSize:`0.63rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.13em`,color:`#64748b`},children:e.category}),(0,p.jsx)(`h3`,{style:{fontSize:`0.97rem`,fontWeight:700,color:`#f1f5f9`,lineHeight:1.4,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,p.jsxs)(`div`,{className:`blog-read-more`,style:{marginTop:`0.2rem`,display:`flex`,alignItems:`center`,gap:`0.35rem`,color:`#cbd5e1`,fontSize:`0.82rem`,fontWeight:600,transition:`color 0.2s ease`},children:[`Read Blog `,(0,p.jsx)(cu,{size:14,style:{color:`#ffaa00`}})]})]})]})},t))})})]}),(0,p.jsx)(`section`,{style:{background:`#020c1e`,position:`relative`,zIndex:10,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`flex-end`,padding:`4rem 0 0 0`},children:(0,p.jsx)(`img`,{src:`${Z}assets/citp_footer_design.png`,alt:`Cavin Infotech Logo Divider`,style:{width:`100%`,height:`auto`,display:`block`}})})]}),` `,(0,p.jsx)(`footer`,{id:`contactus`,style:{background:`linear-gradient(180deg, #ffffff 0%, #dde6f5 100%)`,padding:C?`3rem 0`:`4rem 0`,color:`#1e293b`,position:`relative`,width:`100%`,scrollMarginTop:`${Fe}px`},children:(0,p.jsxs)(`div`,{style:{padding:`0 ${P}`},children:[C?(0,p.jsx)(Q,{children:(0,p.jsxs)(`div`,{style:{background:`linear-gradient(135deg, #0f2044 0%, #0a1a38 60%, #112252 100%)`,borderRadius:`20px`,padding:`2.5rem 2rem`,display:`flex`,flexDirection:`column`,gap:`2rem`,marginBottom:`3rem`,position:`relative`,overflow:`hidden`},children:[(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`h2`,{style:{fontSize:`1.8rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:g.cta.headline}),(0,p.jsx)(`p`,{style:{fontSize:`0.72rem`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:g.cta.body}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.75rem`},children:[(0,p.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:g.cta.primaryButton}),(0,p.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:g.cta.secondaryButton})]})]}),(0,p.jsx)(`div`,{style:{width:`100%`,height:`180px`,position:`relative`,overflow:`hidden`,borderRadius:`12px`},children:(0,p.jsx)(`img`,{src:g.cta.image,alt:`Phone preview`,style:{position:`absolute`,right:`-20px`,top:`-90px`,width:`280px`,height:`auto`,maxWidth:`none`}})})]})}):(0,p.jsx)(Q,{children:(0,p.jsxs)(`div`,{style:{position:`relative`,width:`100%`,marginBottom:`3rem`},children:[(0,p.jsx)(`img`,{src:g.cta.image,alt:`CTA Banner`,style:{width:`100%`,height:`auto`,display:`block`}}),(0,p.jsxs)(`div`,{style:{position:`absolute`,left:`6%`,top:`52%`,transform:`translateY(-50%)`,width:`54%`,zIndex:2},children:[(0,p.jsx)(`h2`,{style:{fontSize:`clamp(1.3rem, 2.4vw, 2.2rem)`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:g.cta.headline}),(0,p.jsx)(`p`,{style:{fontSize:`clamp(0.55rem, 0.9vw, 0.72rem)`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:g.cta.body}),(0,p.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`center`},children:[(0,p.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`#ffaa00`,e.currentTarget.style.color=`#000000`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.color=`#ffffff`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.4)`},children:g.cta.primaryButton}),(0,p.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.25)`},children:g.cta.secondaryButton})]})]})]})}),(0,p.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:C?`1fr 1fr`:`180px 180px 1fr`,gap:C?`1.5rem`:`1.25rem`,paddingBottom:`2.5rem`,borderBottom:`1px solid rgba(30,41,59,0.12)`,marginBottom:`1.5rem`},children:[(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Quick Links`}),(0,p.jsxs)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[(0,p.jsx)(`li`,{children:(0,p.jsx)(`a`,{href:`#home`,onClick:e=>{e.preventDefault(),Ie(`home`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Home`})}),(0,p.jsx)(`li`,{children:(0,p.jsx)(`a`,{href:`#certifications`,onClick:e=>{e.preventDefault(),Ie(`certifications`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`About Us`})}),(0,p.jsx)(`li`,{children:(0,p.jsx)(`a`,{href:`#services`,onClick:e=>{e.preventDefault(),Ie(`services`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Our Services`})})]})]}),(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Products`}),(0,p.jsx)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[`PRODMAX`,`Budgie HRMS`,`EVIDO`].map(e=>(0,p.jsx)(`li`,{children:(0,p.jsx)(`a`,{href:`#products`,onClick:e=>{e.preventDefault(),Ie(`products`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:e})},e))})]}),(0,p.jsxs)(`div`,{style:{gridColumn:C?`span 2`:`auto`},children:[(0,p.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e40af`,marginBottom:`1rem`},children:`Social Links`}),(0,p.jsx)(`div`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`center`,flexWrap:`wrap`},children:[{label:`Facebook`,d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`},{label:`Instagram`,d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.051.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z`},{label:`LinkedIn`,d:`M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z`},{label:`Telegram`,d:`M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.562 8.161c-.18.717-.962 4.084-1.362 5.462-.168.58-.506.772-.712.791-.45.041-.79-.297-1.225-.583-.681-.447-1.066-.723-1.727-1.158-.764-.502-.269-.778.167-1.23.114-.118 2.096-1.922 2.134-2.083.005-.02.009-.095-.036-.135-.045-.04-.112-.026-.16-.015-.069.016-1.171.745-3.305 2.186-.313.215-.596.321-.85.315-.281-.006-.822-.153-1.225-.284-.494-.16-.887-.246-.853-.518.178-.142.716-.291 1.6-.447 5.485-2.385 9.143-3.957 10.973-4.717.868-.362 1.8-.425 2.39-.425.13 0 .42.03.606.18.156.126.2.296.21.425.013.167.013.435-.008.685z`},{label:`WhatsApp`,d:`M12.008 22c-1.948 0-3.855-.522-5.504-1.508l-.395-.235-4.093 1.073 1.092-3.993-.257-.408C1.815 15.222 1.25 13.064 12.008 12c5.514 0 10.008 4.486 10.008 10S17.522 22 12.008 22zm8.487-18.49C18.232 1.257 15.258 0 12.008 0 5.394 0 .02 5.373.017 11.99c0 2.115.553 4.18 1.603 5.996L0 24l6.155-1.615c1.768.964 3.753 1.472 5.845 1.474v-.002c6.611 0 11.986-5.375 11.99-11.994.002-3.206-1.242-6.22-3.497-8.48zM17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.063 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.715 2.006-1.404.248-.69.248-1.278.173-1.402-.074-.125-.272-.199-.57-.348z`},{label:`X`,d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`},{label:`YouTube`,d:`M23.498 6.163a3.003 3.003 0 0 0-2.11-2.11C19.53 3.545 12 3.545 12 3.545s-7.53 0-9.388.508a3.003 3.003 0 0 0-2.11 2.11C0 8.017 0 12 0 12s0 3.983.502 5.837a3.003 3.003 0 0 0 2.11 2.11c1.858.508 9.388.508 9.388.508s7.53 0 9.388-.508a3.003 3.003 0 0 0 2.11-2.11C24 15.983 24 12 24 12s0-3.983-.502-5.837zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`}].map(({label:e,d:t})=>(0,p.jsx)(`a`,{href:`#`,"aria-label":e,style:{width:`34px`,height:`34px`,borderRadius:`50%`,background:`rgba(30,41,59,0.08)`,border:`1px solid rgba(30,41,59,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,color:`#475569`},onMouseEnter:e=>{e.currentTarget.style.background=`#1e40af`,e.currentTarget.style.color=`#fff`,e.currentTarget.style.borderColor=`#1e40af`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(30,41,59,0.08)`,e.currentTarget.style.color=`#475569`,e.currentTarget.style.borderColor=`rgba(30,41,59,0.12)`},children:(0,p.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,children:(0,p.jsx)(`path`,{d:t})})},e))}),(0,p.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`1rem`,marginTop:`1.5rem`,fontSize:`0.82rem`,color:`#475569`},children:[(0,p.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Privacy Policy`}),(0,p.jsx)(`span`,{style:{color:`#cbd5e1`},children:`•`}),(0,p.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Terms & Conditions`}),(0,p.jsx)(`span`,{style:{color:`#cbd5e1`},children:`•`}),(0,p.jsx)(`span`,{style:{fontSize:`0.78rem`,color:`#334155`},children:`Copyrights reserved to CAVIN INFOTECH`})]})]})]})]})}),te&&!e&&(0,p.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:C?`flex-start`:`center`,justifyContent:`center`,padding:C?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,p.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:C?`none`:`90vh`,overflowY:`auto`,padding:C?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,p.jsx)(`button`,{onClick:()=>{ne(!1),D(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),E?(0,p.jsxs)(`div`,{style:{textAlign:`center`,padding:`1rem 0`},children:[(0,p.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,p.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,p.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,p.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Application Received!`}),(0,p.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for applying to Cavin Infotech. We have received your resume and details successfully. Our recruitment team will review your application and contact you if your qualifications match our current needs.`}),(0,p.jsx)(`button`,{onClick:()=>{ne(!1),D(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,p.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_i6pkzka`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`careers`,name:ue,email:fe,phone:me,mobile:``,designation:`N/A`,dateTime:`N/A`,interests:`N/A`,resumeName:ge?ge.name:`None`,from_name:ue,reply_to:fe,message:`New Careers Application:\nName: ${ue}\nEmail: ${fe}\nPhone: ${me}\nResume File: ${ge?ge.name:`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}D(!0)}catch(e){console.error(`Error sending application:`,e),alert(`Error sending application: ${e.message}`)}},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Join Our Team`}),(0,p.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`2rem`},children:`Submit your details and resume below. Our recruitment team will review your application.`}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,p.jsx)(`input`,{type:`text`,required:!0,value:ue,onChange:e=>de(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,p.jsx)(`input`,{type:`email`,required:!0,value:fe,onChange:e=>pe(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Phone Number`}),(0,p.jsx)(`input`,{type:`tel`,required:!0,value:me,onChange:e=>he(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Resume / CV`}),(0,p.jsxs)(`div`,{style:{position:`relative`,border:`2px dashed rgba(255, 170, 0, 0.3)`,borderRadius:`12px`,padding:`1.5rem`,textAlign:`center`,background:`rgba(255, 170, 0, 0.02)`,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 170, 0, 0.3)`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.02)`},children:[(0,p.jsx)(`input`,{type:`file`,required:!0,accept:`.pdf,.doc,.docx`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,opacity:0,cursor:`pointer`},onChange:e=>{let t=e.target.files[0];_e(t);let n=t?.name,r=document.getElementById(`file-upload-label`);r&&n&&(r.textContent=n)}}),(0,p.jsx)(`span`,{id:`file-upload-label`,style:{fontSize:`0.85rem`,color:`#cbd5e1`,fontWeight:500},children:`Click to upload your Resume (.pdf, .doc, .docx)`})]})]})]}),(0,p.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`2rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Submit Application`})]})]})}),ae&&!e&&(0,p.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:C?`flex-start`:`center`,justifyContent:`center`,padding:C?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,p.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:C?`none`:`90vh`,overflowY:`auto`,padding:C?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,p.jsx)(`button`,{onClick:()=>{oe(!1),ce(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),se?(0,p.jsxs)(`div`,{style:{textAlign:`center`,padding:`1.5rem 0`},children:[(0,p.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,p.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,p.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,p.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Strategy Session Scheduled!`}),(0,p.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for booking a Strategy Call. We have successfully received your information and areas of interest. A technology consultant from Cavin Infotech will reach out to you within 24 hours with an invitation link and slot confirmation.`}),(0,p.jsx)(`button`,{onClick:()=>{oe(!1),ce(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,p.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=Object.keys(k).filter(e=>k[e]).join(`, `);try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_ueukbd8`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`strategy`,name:ve,email:be,phone:Se,mobile:Se,designation:we,dateTime:Ee,interests:t||`None`,resumeName:`None`,from_name:ve,reply_to:be,message:`New Strategy Session Booking:\nName: ${ve}\nEmail: ${be}\nMobile: ${Se}\nDesignation: ${we}\nPreferred Date & Time: ${Ee}\nAreas of Interest: ${t||`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}ce(!0)}catch(e){console.error(`Error scheduling strategy session:`,e),alert(`Error scheduling strategy session: ${e.message}`)}},children:[(0,p.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Book a Strategy Call`}),(0,p.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`1.5rem`},children:`Fill in the details below to schedule a session with our experts.`}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`,maxHeight:`60vh`,overflowY:`auto`,paddingRight:`0.5rem`},children:[(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,p.jsx)(`input`,{type:`text`,required:!0,value:ve,onChange:e=>ye(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,p.jsx)(`input`,{type:`email`,required:!0,value:be,onChange:e=>xe(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Mobile Number`}),(0,p.jsx)(`input`,{type:`tel`,required:!0,value:Se,onChange:e=>Ce(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Designation`}),(0,p.jsx)(`input`,{type:`text`,required:!0,value:we,onChange:e=>Te(e.target.value),placeholder:`e.g. Chief Technology Officer`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Preferred Date & Time`}),(0,p.jsx)(`input`,{type:`datetime-local`,required:!0,value:Ee,onChange:e=>De(e.target.value),style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,p.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`,marginTop:`0.5rem`},children:[(0,p.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Areas of Interest`}),(0,p.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`0.75rem`,background:`rgba(255, 255, 255, 0.01)`,border:`1px solid rgba(255, 255, 255, 0.05)`,borderRadius:`10px`,padding:`1rem`},children:[`AI & Analytics`,`SAP Services`,`XR Platforms`,`Smart Factory`,`Cloud Engineering`,`Enterprise Software`].map(e=>(0,p.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.82rem`,color:`#cbd5e1`,cursor:`pointer`,userSelect:`none`},children:[(0,p.jsx)(`input`,{type:`checkbox`,checked:k[e],onChange:t=>Oe(n=>({...n,[e]:t.target.checked})),style:{accentColor:`#ffaa00`,cursor:`pointer`,width:`16px`,height:`16px`}}),e]},e))})]})]}),(0,p.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`1.5rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Book Session`})]})]})})]})}export{ou as n,iu as r,ku as t}; \ No newline at end of file diff --git a/dist/assets/App-DyKpc_Hi.js b/dist/assets/App-DyKpc_Hi.js deleted file mode 100644 index dfc889f..0000000 --- a/dist/assets/App-DyKpc_Hi.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,d as t,f as n,i as r,l as i,n as a,o,p as s,r as c,s as l,t as u,u as d}from"./x-Dfk9cXvs.js";var f=l(),p=s(i(),1),m=(0,p.createContext)({});function h(e){let t=(0,p.useRef)(null);return t.current===null&&(t.current=e()),t.current}var g=typeof window<`u`?p.useLayoutEffect:p.useEffect,_=(0,p.createContext)(null);function v(e,t){e.indexOf(t)===-1&&e.push(t)}function y(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var b=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),C=e=>typeof e==`object`&&!!e,ee=e=>/^0[^.\s]+$/u.test(e);function te(e){let t;return()=>(t===void 0&&(t=e()),t)}var w=e=>e,T=(...e)=>e.reduce((e,t)=>n=>t(e(n))),E=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ne=class{constructor(){this.subscriptions=[]}add(e){return v(this.subscriptions,e),()=>y(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,O=e=>e/1e3,re=(e,t)=>t?1e3/t*e:0,ie=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ae=1e-7,oe=12;function se(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ie(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ae&&++sse(t,0,1,e,n);return e=>e===0||e===1?e:ie(i(e),t,r)}var ce=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,le=e=>t=>1-e(1-t),ue=k(.33,1.53,.69,.99),de=le(ue),fe=ce(de),pe=e=>e>=1?1:(e*=2)<1?.5*de(e):.5*(2-2**(-10*(e-1))),me=e=>1-Math.sin(Math.acos(e)),he=le(me),ge=ce(me),_e=k(.42,0,1,1),ve=k(0,0,.58,1),ye=k(.42,0,.58,1),be=e=>Array.isArray(e)&&typeof e[0]!=`number`,xe=e=>Array.isArray(e)&&typeof e[0]==`number`,Se={linear:w,easeIn:_e,easeInOut:ye,easeOut:ve,circIn:me,circInOut:ge,circOut:he,backIn:de,backInOut:fe,backOut:ue,anticipate:pe},Ce=e=>typeof e==`string`,we=e=>{if(xe(e)){e.length;let[t,n,r,i]=e;return k(t,n,r,i)}else if(Ce(e))return Se[e],`${e}`,Se[e];return e},Te=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],A={value:null,addProjectionMetrics:null};function Ee(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&A.value&&A.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var De=40;function Oe(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Te.reduce((e,n)=>(e[n]=Ee(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=x.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,De),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Te.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(Ae===void 0&&P.set(N.isProcessing||x.useManualTiming?N.timestamp:performance.now()),Ae),set:e=>{Ae=e,queueMicrotask(je)}},F={layout:0,mainThread:0,waapi:0},Me=e=>t=>typeof t==`string`&&t.startsWith(e),Ne=Me(`--`),Pe=Me(`var(--`),Fe=e=>Pe(e)?Ie.test(e.split(`/*`)[0].trim()):!1,Ie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Le(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Re={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ze={...Re,transform:e=>b(0,1,e)},Be={...Re,default:1},Ve=e=>Math.round(e*1e5)/1e5,He=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ue(e){return e==null}var We=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ge=(e,t)=>n=>!!(typeof n==`string`&&We.test(n)&&n.startsWith(e)||t&&!Ue(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ke=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(He);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},qe=e=>b(0,255,e),Je={...Re,transform:e=>Math.round(qe(e))},Ye={test:Ge(`rgb`,`red`),parse:Ke(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Je.transform(e)+`, `+Je.transform(t)+`, `+Je.transform(n)+`, `+Ve(ze.transform(r))+`)`};function Xe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ze={test:Ge(`#`),parse:Xe,transform:Ye.transform},Qe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),I=Qe(`deg`),L=Qe(`%`),R=Qe(`px`),$e=Qe(`vh`),et=Qe(`vw`),tt={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},nt={test:Ge(`hsl`,`hue`),parse:Ke(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform(Ve(t))+`, `+L.transform(Ve(n))+`, `+Ve(ze.transform(r))+`)`},z={test:e=>Ye.test(e)||Ze.test(e)||nt.test(e),parse:e=>Ye.test(e)?Ye.parse(e):nt.test(e)?nt.parse(e):Ze.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ye.transform(e):nt.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function it(e){return isNaN(e)&&typeof e==`string`&&(e.match(He)?.length||0)+(e.match(rt)?.length||0)>0}var at=`number`,ot=`color`,st=`var`,ct=`var(`,lt="${}",ut=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ut,e=>(z.test(e)?(r.color.push(a),i.push(ot),n.push(z.parse(e))):e.startsWith(ct)?(r.var.push(a),i.push(st),n.push(e)):(r.number.push(a),i.push(at),n.push(parseFloat(e))),++a,lt)).split(lt),indexes:r,types:i}}function ft(e){return dt(e).values}function pt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,gt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ht(e);function _t(e){let t=dt(e);return pt(t)(t.values.map((e,n)=>gt(e,t.split[n])))}var B={test:it,parse:ft,createTransformer:mt,getAnimatableNone:_t};function vt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=vt(s,r,e+1/3),a=vt(s,r,e),o=vt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function bt(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,xt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},St=[Ze,Ye,nt],Ct=e=>St.find(t=>t.test(e));function wt(e){let t=Ct(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===nt&&(n=yt(n)),n}var Tt=(e,t)=>{let n=wt(e),r=wt(t);if(!n||!r)return bt(e,t);let i={...n};return e=>(i.red=xt(n.red,r.red,e),i.green=xt(n.green,r.green,e),i.blue=xt(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),Ye.transform(i))},Et=new Set([`none`,`hidden`]);function Dt(e,t){return Et.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ot(e,t){return n=>V(e,t,n)}function kt(e){return typeof e==`number`?Ot:typeof e==`string`?Fe(e)?bt:z.test(e)?Tt:Nt:Array.isArray(e)?At:typeof e==`object`?z.test(e)?Tt:jt:bt}function At(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>kt(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function Mt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=B.createTransformer(t),r=dt(e),i=dt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Et.has(e)&&!i.values.length||Et.has(t)&&!r.values.length?Dt(e,t):T(At(Mt(r,i),i.values),n):(`${e}${t}`,bt(e,t))};function Pt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V(e,t,n):kt(e)(e,t)}var Ft=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>j.update(t,e),stop:()=>M(t),now:()=>N.isProcessing?N.timestamp:P.now()}},It=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function zt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Rt(r),Lt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:O(i)}}var H={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Bt(e,t){return e*Math.sqrt(1-t*t)}var Vt=12;function Ht(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=Bt(t,o),c=Math.exp(-i);return Ut-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Bt(t**2,o);return(-i(t)+Ut>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Ht(i,a,s);if(e=D(e),isNaN(c))return{stiffness:H.stiffness,damping:H.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Gt=[`duration`,`bounce`],Kt=[`stiffness`,`damping`,`mass`];function qt(e,t){return t.some(t=>e[t]!==void 0)}function Jt(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!qt(e,Kt)&&qt(e,Gt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*b(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:H.mass,stiffness:i,damping:a}}else{let n=Wt({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}return t}function Yt(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Jt({...n,velocity:-O(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=O(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?H.restSpeed.granular:H.restSpeed.default,i||=v?H.restDelta.granular:H.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=Bt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>D(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=D(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=D(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Rt(te),Lt),t=It(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}Yt.applyToOptions=e=>{let t=zt(e,100,Yt);return e.ease=t.ease,e.duration=D(t.duration),e.type=`keyframes`,e};var Xt=5;function Zt(e,t,n){let r=Math.max(t-Xt,0);return re(n-e(r),t-r)}function Qt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Yt({keyframes:[f.value,m(f.value)],velocity:Zt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function $t(e,t,n){let r=[],i=n||x.mix||Pt,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=$t(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(b(e[0],e[a-1],t)):l}function tn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=E(0,t,r);e.push(V(n,1,i))}}function nn(e){let t=[0];return tn(t,e.length-1),t}function rn(e,t){return e.map(e=>e*t)}function an(e,t){return e.map(()=>t||ye).splice(0,e.length-1)}function on({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=be(r)?r.map(we):we(r),a={done:!1,value:t[0]},o=en(rn(n&&n.length===t.length?n:nn(t),e),t,{ease:Array.isArray(i)?i:an(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var sn=e=>e!==null;function cn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(sn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ln={decay:Qt,inertia:Qt,tween:on,keyframes:on,spring:Yt};function un(e){typeof e.type==`string`&&(e.type=ln[e.type])}var dn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},fn=e=>e/100,pn=class extends dn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},F.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;un(e);let{type:t=on,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||on;s!==on&&typeof o[0]!=`number`&&(this.mixKeyframes=T(fn,Pt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Rt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=b(0,1,n)*o}let x;_?(this.delayState.value=l[0],x=this.delayState):x=y.next(v),i&&!_&&(x.value=i(x.value));let{done:S}=x;!_&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==Qt&&(x.value=cn(l,this.options,h,this.speed)),m&&m(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return O(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(this.currentTime)}set time(e){e=D(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Zt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=O(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ft,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,F.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function mn(e){for(let t=1;te*180/Math.PI,gn=e=>vn(hn(Math.atan2(e[1],e[0]))),_n={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gn,rotateZ:gn,skewX:e=>hn(Math.atan(e[1])),skewY:e=>hn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vn=e=>(e%=360,e<0&&(e+=360),e),yn=gn,bn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bn,scaleY:xn,scale:e=>(bn(e)+xn(e))/2,rotateX:e=>vn(hn(Math.atan2(e[6],e[5]))),rotateY:e=>vn(hn(Math.atan2(-e[2],e[0]))),rotateZ:yn,rotate:yn,skewX:e=>hn(Math.atan(e[4])),skewY:e=>hn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Cn(e){return+!!e.includes(`scale`)}function wn(e,t){if(!e||e===`none`)return Cn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Sn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_n,i=t}if(!i)return Cn(t);let a=r[t],o=i[1].split(`,`).map(En);return typeof a==`function`?a(o):o[a]}var Tn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return wn(n,t)};function En(e){return parseFloat(e.trim())}var Dn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],On=new Set([...Dn,`pathRotation`]),kn=e=>e===Re||e===R,An=new Set([`x`,`y`,`z`]),jn=Dn.filter(e=>!An.has(e));function Mn(e){let t=[];return jn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Nn={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wn(t,`x`),y:(e,{transform:t})=>wn(t,`y`)};Nn.translateX=Nn.x,Nn.translateY=Nn.y;var Pn=new Set,Fn=!1,In=!1,Ln=!1;function Rn(){if(In){let e=Array.from(Pn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Mn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}In=!1,Fn=!1,Pn.forEach(e=>e.complete(Ln)),Pn.clear()}function zn(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(In=!0)})}function Bn(){Ln=!0,zn(),Rn(),Ln=!1}var Vn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Pn.add(this),Fn||(Fn=!0,j.read(zn),j.resolveKeyframes(Rn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}mn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Pn.delete(this)}cancel(){this.state===`scheduled`&&(Pn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Hn=e=>e.startsWith(`--`);function Un(e,t,n){Hn(t)?e.style.setProperty(t,n):e.style[t]=n}var Wn={};function Gn(e,t){let n=te(e);return()=>Wn[t]??n()}var Kn=Gn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),qn=Gn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Jn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Jn([0,.65,.55,1]),circOut:Jn([.55,0,1,.45]),backIn:Jn([.31,.01,.66,-.59]),backOut:Jn([.33,1.53,.69,.99])};function Xn(e,t){if(e)return typeof e==`function`?qn()?It(e,t):`ease-out`:xe(e)?Jn(e):Array.isArray(e)?e.map(e=>Xn(e,t)||Yn.easeOut):Yn[e]}function Zn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Xn(s,i);Array.isArray(d)&&(u.easing=d),A.value&&F.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return A.value&&p.finished.finally(()=>{F.waapi--}),p}function Qn(e){return typeof e==`function`&&`applyToOptions`in e}function $n({type:e,...t}){return Qn(e)&&qn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var er=class extends dn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=$n(e);this.animation=Zn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Un(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return O(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+O(e)}get time(){return O(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=D(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Kn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),w):r(this)}},tr={anticipate:pe,backInOut:fe,circInOut:ge};function nr(e){return e in tr}function rr(e){typeof e.ease==`string`&&nr(e.ease)&&(e.ease=tr[e.ease])}var ir=10,ar=class extends er{constructor(e){rr(e),un(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new pn({...a,autoplay:!1}),s=Math.max(ir,P.now()-this.startTime),c=b(0,ir,s-ir),l=o.sample(s).value,{name:u}=this.options;i&&u&&Un(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},or=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function sr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function hr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return mr()&&n&&(ur.has(n)||pr.has(n)&&fr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var gr=40,_r=class extends dn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Vn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;cr(e,i,a,o)||(u=!1,(x.instantAnimations||!s)&&l?.(cn(e,n,t)),e[0]=e[e.length-1],lr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>gr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&hr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ar({...d,element:p})}catch{m=new pn(d)}else m=new pn(d);m.finished.then(()=>{this.notifyFinished()}).catch(w),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function vr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var yr=30,br=e=>!isNaN(parseFloat(e)),xr={current:void 0},Sr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=br(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ne);let n=this.events[e].add(t);return e===`change`?()=>{n(),j.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return xr.current&&xr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>yr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,yr);return re(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Cr(e,t){return new Sr(e,t)}function wr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Tr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:wr(n,e)}var Er={type:`spring`,stiffness:500,damping:25,restSpeed:10},Dr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Or={type:`keyframes`,duration:.8},kr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ar=(e,{keyframes:t})=>t.length>2?Or:On.has(e)?e.startsWith(`scale`)?Dr(t[1]):Er:kr,jr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Mr(e){for(let t in e)if(!jr.has(t))return!0;return!1}var Nr=(e,t,n,r={},i,a)=>o=>{let s=Tr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=D(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Mr(s)||Object.assign(u,Ar(e,u)),u.duration&&=D(u.duration),u.repeatDelay&&=D(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(lr(u),u.delay===0&&(d=!0)),(x.instantAnimations||x.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,lr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=cn(u.keyframes,s);if(e!==void 0){j.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new pn(u):new _r(u)},Pr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fr(e){let t=Pr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ir(e,t,n=1){`${e}`;let[r,i]=Fr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return S(e)?parseFloat(e):e}return Fe(i)?Ir(i,t,n+1):i}function Lr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Rr(e,t,n,r){if(typeof t==`function`){let[i,a]=Lr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Lr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function zr(e,t,n){let r=e.getProps();return Rr(r,t,n===void 0?r.custom:n,e)}var Br=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Dn]),Vr=e=>Array.isArray(e);function Hr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cr(n))}function Ur(e){return Vr(e)?e[e.length-1]||0:e}function Wr(e,t){let{transitionEnd:n={},transition:r={},...i}=zr(e,t)||{};i={...i,...n};for(let t in i)Hr(e,t,Ur(i[t]))}var U=e=>!!(e&&e.getVelocity);function Gr(e){return!!(U(e)&&e.add)}function Kr(e,t){let n=e.getValue(`willChange`);if(Gr(n))return n.add(t);if(!n&&x.WillChange){let n=new x.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function qr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Jr=`data-`+qr(`framerAppearId`);function Yr(e){return e.props[Jr]}function Xr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?wr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Xr(f,t))continue;let o={delay:n,...Tr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){j.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Yr(e);if(n){let e=window.MotionHandoffAnimation(n,t,j);e!==null&&(o.startTime=e,p=!0)}}Kr(e,t);let m=l??e.shouldReduceMotion;r.start(Nr(t,r,i,m&&Br.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>j.update(()=>{o&&Wr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Qr(e,t,n={}){let r=zr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Zr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return $r(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function $r(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Qr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ei(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Qr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Qr(e,t,n);else{let i=typeof t==`function`?zr(e,t,n.custom):t;r=Promise.all(Zr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ti={test:e=>e===`auto`,parse:e=>e},ni=e=>t=>t.test(e),ri=[Re,R,L,I,et,$e,ti],ii=e=>ri.find(ni(e));function ai(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||ee(e)}var oi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function si(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(He)||[];if(!r)return e;let i=n.replace(r,``),a=+!!oi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ci=/\b([a-z-]*)\(.*?\)/gu,li={...B,getAnimatableNone:e=>{let t=e.match(ci);return t?t.map(si).join(` `):e}},ui={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},di={...Re,transform:Math.round},fi={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:I,pathRotation:I,rotateX:I,rotateY:I,rotateZ:I,scale:Be,scaleX:Be,scaleY:Be,scaleZ:Be,skew:I,skewX:I,skewY:I,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:ze,originX:tt,originY:tt,originZ:R,zIndex:di,fillOpacity:ze,strokeOpacity:ze,numOctaves:di},pi={...fi,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:li,WebkitFilter:li,mask:ui,WebkitMask:ui},mi=e=>pi[e],hi=new Set([li,ui]);function gi(e,t){let n=mi(e);return hi.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var _i=new Set([`auto`,`none`,`0`]);function vi(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function bi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var xi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Si(e){return C(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ci,cancel:wi}=Oe(queueMicrotask,!1),W={x:!1,y:!1};function Ti(){return W.x||W.y}function Ei(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Di(e,t){let n=bi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Oi(e){return!(e.pointerType===`touch`||Ti())}function ki(e,t,n={}){let[r,i,a]=Di(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Oi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ai=(e,t)=>t?e===t?!0:Ai(e,t.parentElement):!1,ji=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Mi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ni(e){return Mi.has(e.tagName)||e.isContentEditable===!0}var Pi=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Fi(e){return Pi.has(e.tagName)||e.isContentEditable===!0}var Ii=new WeakSet;function Li(e){return t=>{t.key===`Enter`&&e(t)}}function Ri(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var zi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Li(()=>{if(Ii.has(n))return;Ri(n,`down`);let e=Li(()=>{Ri(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ri(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Bi(e){return ji(e)&&!Ti()}var Vi=new WeakSet;function Hi(e,t,n={}){let[r,i,a]=Di(e,n),o=e=>{let r=e.currentTarget;if(!Bi(e)||Vi.has(e))return;Ii.add(r),n.stopPropagation&&Vi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Ii.has(r)&&Ii.delete(r),Bi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ai(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Si(e)&&(e.addEventListener(`focus`,e=>zi(e,i)),!Ni(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ui(e){return C(e)&&`ownerSVGElement`in e}var Wi=new WeakMap,Gi,Ki=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ui(r)&&`getBBox`in r?r.getBBox()[t]:r[n],qi=Ki(`inline`,`width`,`offsetWidth`),Ji=Ki(`block`,`height`,`offsetHeight`);function Yi({target:e,borderBoxSize:t}){Wi.get(e)?.forEach(n=>{n(e,{get width(){return qi(e,t)},get height(){return Ji(e,t)}})})}function Xi(e){e.forEach(Yi)}function Zi(){typeof ResizeObserver>`u`||(Gi=new ResizeObserver(Xi))}function Qi(e,t){Gi||Zi();let n=bi(e);return n.forEach(e=>{let n=Wi.get(e);n||(n=new Set,Wi.set(e,n)),n.add(t),Gi?.observe(e)}),()=>{n.forEach(e=>{let n=Wi.get(e);n?.delete(t),n?.size||Gi?.unobserve(e)})}}var $i=new Set,ea;function ta(){ea=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};$i.forEach(t=>t(e))},window.addEventListener(`resize`,ea)}function na(e){return $i.add(e),ea||ta(),()=>{$i.delete(e),!$i.size&&typeof ea==`function`&&(window.removeEventListener(`resize`,ea),ea=void 0)}}function ra(e,t){return typeof e==`function`?na(e):Qi(e,t)}function ia(e){return Ui(e)&&e.tagName===`svg`}var aa=[...ri,z,B],oa=e=>aa.find(ni(e)),sa=()=>({translate:0,scale:1,origin:0,originPoint:0}),ca=()=>({x:sa(),y:sa()}),la=()=>({min:0,max:0}),G=()=>({x:la(),y:la()}),ua=new WeakMap;function da(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function fa(e){return typeof e==`string`||Array.isArray(e)}var pa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ma=[`initial`,...pa];function ha(e){return da(e.animate)||ma.some(t=>fa(e[t]))}function ga(e){return!!(ha(e)||e.variants)}function _a(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,Cr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Cr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var va={current:null},ya={current:!1},ba=typeof window<`u`;function xa(){if(ya.current=!0,ba)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>va.current=e.matches;e.addEventListener(`change`,t),t()}else va.current=!1}var Sa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ca={};function wa(e){Ca=e}function Ta(){return Ca}var Ea=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Vn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=P.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ya.current||xa(),this.shouldReduceMotion=va.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),M(this.notifyUpdate),M(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ur.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new er({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:D(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=On.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ca){let t=Ca[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Cr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(S(n)||ee(n))?n=parseFloat(n):!oa(n)&&B.test(t)&&(n=gi(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Rr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ne),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ci.render(this.render)}},Da=class extends Ea{constructor(){super(...arguments),this.KeyframeResolver=yi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Oa=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ka({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ja(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ma(e){return e===void 0||e===1}function Na({scale:e,scaleX:t,scaleY:n}){return!Ma(e)||!Ma(t)||!Ma(n)}function Pa(e){return Na(e)||Fa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fa(e){return Ia(e.x)||Ia(e.y)}function Ia(e){return e&&e!==`0%`}function La(e,t,n){return n+t*(e-n)}function Ra(e,t,n,r,i){return i!==void 0&&(e=La(e,i,r)),La(e,n,r)+t}function za(e,t=0,n=1,r,i){e.min=Ra(e.min,t,n,r,i),e.max=Ra(e.max,t,n,r,i)}function Ba(e,{x:t,y:n}){za(e.x,t.translate,t.scale,t.originPoint),za(e.y,n.translate,n.scale,n.originPoint)}var Va=.999999999999,Ha=1.0000000000001;function Ua(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sVa&&(t.x=1),t.yVa&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Wa(e,t,n,r,i=.5){za(e,t,n,V(e.min,e.max,i),r)}function Ga(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ka(e,t,n){let r=n??e;Wa(e.x,Ga(t.x,r.x),t.scaleX,t.scale,t.originX),Wa(e.y,Ga(t.y,r.y),t.scaleY,t.scale,t.originY)}function qa(e,t){return ka(ja(e.getBoundingClientRect(),t))}function Ja(e,t,n){let r=qa(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var Ya={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Xa=Dn.length;function Za(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;return`${eo(e,t.target.x)}% ${eo(e,t.target.y)}%`}},no={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=V(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ro={borderRadius:{...to,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomLeftRadius:to,borderBottomRightRadius:to,boxShadow:no};function io(e,{layout:t,layoutId:n}){return On.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ro[e]||e===`opacity`)}function ao(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||io(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function oo(e){return window.getComputedStyle(e)}var so=class extends Da{constructor(){super(...arguments),this.type=`html`,this.renderInstance=$a}readValueFromInstance(e,t){if(On.has(t))return this.projection?.isProjecting?Cn(t):Tn(e,t);{let n=oo(e),r=(Ne(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return qa(e,t)}build(e,t,n){Qa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ao(e,t,n)}},co={offset:`stroke-dashoffset`,array:`stroke-dasharray`},lo={offset:`strokeDashoffset`,array:`strokeDasharray`};function uo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?co:lo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var fo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function po(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Qa(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of fo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&uo(d,i,a,o,!1)}var mo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ho=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function go(e,t,n,r){$a(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(mo.has(n)?n:qr(n),t.attrs[n])}function _o(e,t,n){let r=ao(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=Dn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var vo=class extends Da{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(On.has(t)){let e=mi(t);return e&&e.default||0}return t=mo.has(t)?t:qr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return _o(e,t,n)}build(e,t,n){po(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){go(e,t,n,r)}mount(e){this.isSVGTag=ho(e.tagName),super.mount(e)}},yo=ma.length;function bo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&bo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>ei(e,t,n)))}function To(e){let t=wo(e),n=Oo(),r=!0,i=!1,a=t=>(n,r)=>{let i=zr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=bo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},w=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Vr(t)&&Vr(n)?!xo(t,n)||y:t!==n,r?t==null?u.add(e):w(e):t!==void 0&&u.has(e)?w(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let T=v&&y;b&&(!T||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=zr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=zr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Oo(),i=!0}}}function Eo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!xo(t,e):!1}function Do(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oo(){return{animate:Do(!0),whileInView:Do(),whileHover:Do(),whileTap:Do(),whileDrag:Do(),whileFocus:Do(),exit:Do()}}function ko(e,t){e.min=t.min,e.max=t.max}function q(e,t){ko(e.x,t.x),ko(e.y,t.y)}function Ao(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var jo=.9999,Mo=1.0001,No=-.01,Po=.01;function J(e){return e.max-e.min}function Fo(e,t,n){return Math.abs(e-t)<=n}function Io(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jo&&e.scale<=Mo||isNaN(e.scale))&&(e.scale=1),(e.translate>=No&&e.translate<=Po||isNaN(e.translate))&&(e.translate=0)}function Lo(e,t,n,r){Io(e.x,t.x,n.x,r?r.originX:void 0),Io(e.y,t.y,n.y,r?r.originY:void 0)}function Ro(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function zo(e,t,n,r){Ro(e.x,t.x,n.x,r?.x),Ro(e.y,t.y,n.y,r?.y)}function Bo(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function Vo(e,t,n,r){Bo(e.x,t.x,n.x,r?.x),Bo(e.y,t.y,n.y,r?.y)}function Ho(e,t,n,r,i){return e-=t,e=La(e,1/n,r),i!==void 0&&(e=La(e,1/i,r)),e}function Uo(e,t=0,n=1,r=.5,i,a=e,o=e){if(L.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=Ho(e.min,t,n,s,i),e.max=Ho(e.max,t,n,s,i)}function Wo(e,t,[n,r,i],a,o){Uo(e,t[n],t[r],t[i],t.scale,a,o)}var Go=[`x`,`scaleX`,`originX`],Ko=[`y`,`scaleY`,`originY`];function qo(e,t,n,r){Wo(e.x,t,Go,n?n.x:void 0,r?r.x:void 0),Wo(e.y,t,Ko,n?n.y:void 0,r?r.y:void 0)}function Jo(e){return e.translate===0&&e.scale===1}function Yo(e){return Jo(e.x)&&Jo(e.y)}function Xo(e,t){return e.min===t.min&&e.max===t.max}function Zo(e,t){return Xo(e.x,t.x)&&Xo(e.y,t.y)}function Qo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $o(e,t){return Qo(e.x,t.x)&&Qo(e.y,t.y)}function es(e){return J(e.x)/J(e.y)}function ts(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function ns(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var rs=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],is=rs.length,as=e=>typeof e==`string`?parseFloat(e):e,os=e=>typeof e==`number`||R.test(e);function ss(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,ls(r)),e.opacityExit=V(t.opacity??1,0,us(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(E(e,t,r))}function fs(e,t,n){let r=U(e)?e:Cr(e);return r.start(Nr(``,r,t,n)),r.animation}function ps(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var ms=(e,t)=>e.depth-t.depth,hs=class{constructor(){this.children=[],this.isDirty=!1}add(e){v(this.children,e),this.isDirty=!0}remove(e){y(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ms),this.isDirty=!1,this.children.forEach(e)}};function gs(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(M(r),e(a-t))};return j.setup(r,!0),()=>M(r)}function _s(e){return U(e)?e.get():e}var vs=class{constructor(){this.members=[]}add(e){v(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(y(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(y(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ys={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},xs=[``,`X`,`Y`,`Z`],Ss=1e3,Cs=0;function ws(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ts(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Yr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,j,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ts(r)}function Es({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Cs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,A.value&&(bs.nodes=bs.calculatedTargetDeltas=bs.calculatedProjections=0),this.nodes.forEach(ks),this.nodes.forEach(Rs),this.nodes.forEach(zs),this.nodes.forEach(As),A.addProjectionMetrics&&A.addProjectionMetrics(bs)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=gs(i,250),ys.hasAnimatedSinceResize&&(ys.hasAnimatedSinceResize=!1,this.nodes.forEach(Ls)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ks,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!$o(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Tr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Ls(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),M(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Bs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ts(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=V(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=V(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Hs(o.x,e.x,n),Hs(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ws(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Zo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=G(),q(f,this.relativeTarget)),c&&(this.animationValues=a,ss(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(M(this.pendingAnimation),void 0),this.pendingAnimation=j.update(()=>{ys.hasAnimatedSinceResize=!0,F.layout++,this.motionValue||=Cr(0),this.motionValue.jump(0,!1),this.currentAnimation=fs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{F.layout--},onComplete:()=>{F.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ss),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Zs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),Ka(t,i),Lo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new vs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ws(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(Ms),this.root.sharedNodes.clear()}}}function Ds(e){e.updateLayout()}function Os(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ko(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Zs(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ca();Lo(o,n,t.layoutBox);let s=ca();a?Lo(s,e.applyTransform(r,!0),t.measuredBox):Lo(s,n,t.layoutBox);let c=!Yo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();Vo(s,t.layoutBox,i.layoutBox,o);let c=G();Vo(c,n,a.layoutBox,o),$o(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ks(e){A.value&&bs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function As(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function js(e){e.clearSnapshot()}function Ms(e){e.clearMeasurements()}function Ns(e){e.isLayoutDirty=!0,e.updateLayout()}function Ps(e){e.isLayoutDirty=!1}function Fs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Is(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ls(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rs(e){e.resolveTargetDelta()}function zs(e){e.calcProjection()}function Bs(e){e.resetSkewAndRotation()}function Vs(e){e.removeLeadSnapshot()}function Hs(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Us(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function Ws(e,t,n,r){Us(e.x,t.x,n.x,r),Us(e.y,t.y,n.y,r)}function Gs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ks={duration:.45,ease:[.4,0,.1,1]},qs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Js=qs(`applewebkit/`)&&!qs(`chrome/`)?Math.round:w;function Ys(e){e.min=Js(e.min),e.max=Js(e.max)}function Xs(e){Ys(e.x),Ys(e.y)}function Zs(e,t,n){return e===`position`||e===`preserve-aspect`&&!Fo(es(t),es(n),.2)}function Qs(e){return e!==e.root&&e.scroll?.wasRoot}var $s=Es({attachResizeListener:(e,t)=>ps(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ec={current:void 0},tc=Es({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ec.current){let e=new $s({});e.mount(window),e.setOptions({layoutScroll:!0}),ec.current=e}return ec.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),nc=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function rc(e=!0){let t=(0,p.useContext)(_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,p.useId)();(0,p.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,p.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var ic=(0,p.createContext)({strict:!1}),ac={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},oc=!1;function sc(){if(oc)return;let e={};for(let t in ac)e[t]={isEnabled:e=>ac[t].some(t=>!!e[t])};wa(e),oc=!0}function cc(){return sc(),Ta()}function lc(e){let t=cc();for(let n in e)t[n]={...t[n],...e[n]};wa(t)}var uc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function dc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||uc.has(e)}var fc=t({default:()=>pc}),pc,mc=d((()=>{throw pc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),hc=e=>!dc(e);function gc(e){typeof e==`function`&&(hc=t=>t.startsWith(`on`)?!dc(t):e(t))}try{gc((mc(),n(fc)).default)}catch{}function _c(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||U(e[i])||(hc(i)||n===!0&&dc(i)||!t&&!dc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var vc=(0,p.createContext)({});function yc(e,t){if(ha(e)){let{initial:t,animate:n}=e;return{initial:t===!1||fa(t)?t:void 0,animate:fa(n)?n:void 0}}return e.inherit===!1?{}:t}function bc(e){let{initial:t,animate:n}=yc(e,(0,p.useContext)(vc));return(0,p.useMemo)(()=>({initial:t,animate:n}),[xc(t),xc(n)])}function xc(e){return Array.isArray(e)?e.join(` `):e}var Sc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Cc(e,t,n){for(let r in t)!U(t[r])&&!io(r,n)&&(e[r]=t[r])}function wc({transformTemplate:e},t){return(0,p.useMemo)(()=>{let n=Sc();return Qa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Tc(e,t){let n=e.style||{},r={};return Cc(r,n,e),Object.assign(r,wc(e,t)),r}function Ec(e,t){let n={},r=Tc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Dc=()=>({...Sc(),attrs:{}});function Oc(e,t,n,r){let i=(0,p.useMemo)(()=>{let n=Dc();return po(n,t,ho(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Cc(t,e.style,e),i.style={...t,...i.style}}return i}var kc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Ac(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(kc.indexOf(e)>-1||/[A-Z]/u.test(e))}function jc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Ac(e)?Oc:Ec)(t,r,i,e),c=_c(t,typeof e==`string`,a),l=e===p.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,p.useMemo)(()=>U(u)?u.get():u,[u]);return(0,p.createElement)(e,{...l,children:d})}function Mc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Nc(n,r,i,e),renderState:t()}}function Nc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=_s(a[e]);let{initial:o,animate:s}=e,c=ha(e),l=ga(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!da(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,p.useContext)(vc),i=(0,p.useContext)(_),a=()=>Mc(e,t,r,i);return n?a():h(a)},Fc=Pc({scrapeMotionValuesFromProps:ao,createRenderState:Sc}),Ic=Pc({scrapeMotionValuesFromProps:_o,createRenderState:Dc}),Lc=Symbol.for(`motionComponentSymbol`);function Rc(e,t,n){let r=(0,p.useRef)(n);(0,p.useInsertionEffect)(()=>{r.current=n});let i=(0,p.useRef)(null);return(0,p.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var zc=(0,p.createContext)({});function Bc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Vc(e,t,n,r,i,a){let{visualElement:o}=(0,p.useContext)(vc),s=(0,p.useContext)(ic),c=(0,p.useContext)(_),l=(0,p.useContext)(nc),u=l.reducedMotion,d=l.skipAnimations,f=(0,p.useRef)(null),m=(0,p.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,v=(0,p.useContext)(zc);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&Hc(f.current,n,i,v);let y=(0,p.useRef)(!1);(0,p.useInsertionEffect)(()=>{h&&y.current&&h.update(n,c)});let b=n[Jr],x=(0,p.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return g(()=>{m.current=!0,h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),(0,p.useEffect)(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),h.enteringChildren=void 0)}),h}function Hc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Uc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Bc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Uc(e){if(e)return e.options.allowProjection===!1?Uc(e.parent):e.projection}function Wc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&lc(r);let a=n?n===`svg`:Ac(e),o=a?Ic:Fc;function s(n,s){let c,l={...(0,p.useContext)(nc),...n,layoutId:Gc(n)},{isStatic:u}=l,d=bc(n),m=o(n,u);if(!u&&typeof window<`u`){Kc(l,r);let t=qc(l);c=t.MeasureLayout,d.visualElement=Vc(e,m,l,i,t.ProjectionNode,a)}return(0,f.jsxs)(vc.Provider,{value:d,children:[c&&d.visualElement?(0,f.jsx)(c,{visualElement:d.visualElement,...l}):null,jc(e,n,Rc(m,d.visualElement,s),m,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,p.forwardRef)(s);return c[Lc]=e,c}function Gc({layoutId:e}){let t=(0,p.useContext)(m).id;return t&&e!==void 0?t+`-`+e:e}function Kc(e,t){(0,p.useContext)(ic).strict}function qc(e){let{drag:t,layout:n}=cc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Jc(e,t){if(typeof Proxy>`u`)return Wc;let n=new Map,r=(n,r)=>Wc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Wc(a,void 0,e,t)),n.get(a))})}var Yc=(e,t)=>t.isSVG??Ac(e)?new vo(t):new so(t,{allowProjection:e!==p.Fragment}),Xc=class extends Oa{constructor(e){super(e),e.animationState||=To(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();da(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Zc=0,Qc={animation:{Feature:Xc},exit:{Feature:class extends Oa{constructor(){super(...arguments),this.id=Zc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=zr(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function $c(e){return{point:{x:e.pageX,y:e.pageY}}}var el=e=>t=>ji(t)&&e(t,$c(t));function tl(e,t,n,r){return ps(e,t,el(n),r)}var nl=({current:e})=>e?e.ownerDocument.defaultView:null,rl=(e,t)=>Math.abs(e-t);function il(e,t){let n=rl(e.x,t.x),r=rl(e.y,t.y);return Math.sqrt(n**2+r**2)}var al=new Set([`auto`,`scroll`]),ol=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=ll(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=il(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=N;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=sl(t,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ll(e.type===`pointercancel`?this.lastMoveEventInfo:sl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ji(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=sl($c(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=N;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,ll(s,this.history)),this.removeListeners=T(tl(this.contextWindow,`pointermove`,this.handlePointerMove),tl(this.contextWindow,`pointerup`,this.handlePointerUp),tl(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(al.has(e.overflowX)||al.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),M(this.updatePoint)}};function sl(e,t){return t?{point:t(e.point)}:e}function cl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ll({point:e},t){return{point:e,delta:cl(e,dl(t)),offset:cl(e,ul(t)),velocity:fl(t,.1)}}function ul(e){return e[0]}function dl(e){return e[e.length-1]}function fl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=dl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>D(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>D(t)*2&&(r=e[1]);let a=O(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function pl(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?V(n,e,r.max):Math.min(e,n)),e}function ml(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function hl(e,{top:t,left:n,bottom:r,right:i}){return{x:ml(e.x,n,i),y:ml(e.y,t,r)}}function gl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=E(t.min,t.max-r,e.min):r>i&&(n=E(e.min,e.max-i,t.min)),b(0,1,n)}function yl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var bl=.35;function xl(e=bl){return e===!1?e=0:e===!0&&(e=bl),{x:Sl(e,`left`,`right`),y:Sl(e,`top`,`bottom`)}}function Sl(e,t,n){return{min:Cl(e,t),max:Cl(e,n)}}function Cl(e,t){return typeof e==`number`?e:e[t]||0}var wl=new WeakMap,Tl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor($c(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ei(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&j.update(()=>i(e,t),!1,!0),Kr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=kl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&j.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ol(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:nl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Ol(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=pl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Bc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=hl(n.layoutBox,e):this.constraints=!1,this.elastic=xl(t),r!==this.constraints&&!Bc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=yl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Bc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ja(n,r.root,this.visualElement.getTransformPagePoint()),a=_l(r.layout.layoutBox,i);if(t){let e=t(Aa(a));this.hasMutatedConstraints=!!e,e&&(a=ka(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!Ol(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Kr(this.visualElement,e),n.start(Nr(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!Ol(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-V(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Bc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=vl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!Ol(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(V(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;wl.set(this.visualElement,this);let e=this.visualElement.current,t=tl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Fi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Bc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Dl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);let o=ps(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=bl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function El(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Dl(e,t,n){let r=ra(e,El(n)),i=ra(t,El(n));return()=>{r(),i()}}function Ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Al=class extends Oa{constructor(e){super(e),this.removeGroupControls=w,this.removeListeners=w,this.controls=new Tl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},jl=e=>(t,n)=>{e&&j.update(()=>e(t,n),!1,!0)},Ml=class extends Oa{constructor(){super(...arguments),this.removePointerDownListener=w}onPointerDown(e){this.session=new ol(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:jl(e),onStart:jl(t),onMove:jl(n),onEnd:(e,t)=>{delete this.session,r&&j.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=tl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Nl=!1,Pl=class extends p.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Nl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ys.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Nl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||j.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ci.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Nl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Fl(e){let[t,n]=rc(),r=(0,p.useContext)(m);return(0,f.jsx)(Pl,{...e,layoutGroup:r,switchLayoutGroup:(0,p.useContext)(zc),isPresent:t,safeToRemove:n})}var Il={pan:{Feature:Ml},drag:{Feature:Al,ProjectionNode:tc,MeasureLayout:Fl}};function Ll(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&j.postRender(()=>i(t,$c(t)))}var Rl=class extends Oa{mount(){let{current:e}=this.node;e&&(this.unmount=ki(e,(e,t)=>(Ll(this.node,t,`Start`),e=>Ll(this.node,e,`End`))))}unmount(){}},zl=class extends Oa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=T(ps(this.node.current,`focus`,()=>this.onFocus()),ps(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Bl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&j.postRender(()=>i(t,$c(t)))}var Vl=class extends Oa{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Hi(e,(e,t)=>(Bl(this.node,t,`Start`),(e,{success:t})=>Bl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Hl=new WeakMap,Ul=new WeakMap,Wl=e=>{let t=Hl.get(e.target);t&&t(e)},Gl=e=>{e.forEach(Wl)};function Kl({root:e,...t}){let n=e||document;Ul.has(n)||Ul.set(n,{});let r=Ul.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Gl,{root:e,...t})),r[i]}function ql(e,t,n){let r=Kl(t);return Hl.set(e,n),r.observe(e),()=>{Hl.delete(e),r.unobserve(e)}}var Jl={some:0,all:1},Yl=class extends Oa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Jl[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ql(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Xl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Xl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Zl={inView:{Feature:Yl},tap:{Feature:Vl},focus:{Feature:zl},hover:{Feature:Rl}},Ql={layout:{ProjectionNode:tc,MeasureLayout:Fl}},X=Jc({...Qc,...Zl,...Il,...Ql},Yc);function $l(){!ya.current&&xa();let[e]=(0,p.useState)(va.current);return e}var eu=(0,p.createContext)(null),tu=``,nu=`/citpl_website/`;function ru(e){if(typeof e==`string`)return e.startsWith(`/assets/`)?`${nu}${e.slice(1)}`:e;if(Array.isArray(e))return e.map(ru);if(e&&typeof e==`object`){let t={};for(let n in e)t[n]=ru(e[n]);return t}return e}function iu({children:e,previewMode:t=!1}){let[n,r]=(0,p.useState)(ru(o)),[i,a]=(0,p.useState)(!t),[s,c]=(0,p.useState)(null),[l,u]=(0,p.useState)(null);return(0,p.useEffect)(()=>{t||fetch(`${tu}/api/content`).then(e=>{if(!e.ok)throw Error(`Failed to load content`);return e.json()}).then(e=>{let{_updatedAt:t,...n}=e;r(ru(n)),u(t),c(null)}).catch(e=>{console.warn(`Using fallback content:`,e.message),c(e.message)}).finally(()=>a(!1))},[t]),(0,p.useEffect)(()=>{if(!t)return;a(!1);let e=e=>{if(e.origin!==window.location.origin||e.data?.type!==`ADMIN_PREVIEW`||!e.data.fullContent)return;r(ru(e.data.fullContent)),a(!1);let t=e.data.anchor;t&&window.setTimeout(()=>{document.getElementById(t)?.scrollIntoView({behavior:`auto`,block:`start`})},180)};return window.addEventListener(`message`,e),window.parent?.postMessage({type:`PREVIEW_READY`},window.location.origin),()=>window.removeEventListener(`message`,e)},[t]),(0,f.jsx)(eu.Provider,{value:{content:n,loading:i,error:s,updatedAt:l,previewMode:t},children:e})}function au(){let e=(0,p.useContext)(eu);if(!e)throw Error(`useContent must be used within ContentProvider`);return e}var ou=(0,p.createContext)(!1);function su(){return(0,p.useContext)(ou)}var cu=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),lu=e(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),uu=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),du=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),fu=e(`cloud-cog`,[[`path`,{d:`m10.852 19.772-.383.924`,key:`r7sl7d`}],[`path`,{d:`m13.148 14.228.383-.923`,key:`1d5zpm`}],[`path`,{d:`M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1ydik7`}],[`path`,{d:`m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1m1vsf`}],[`path`,{d:`m14.772 15.852.923-.383`,key:`660p6e`}],[`path`,{d:`m14.772 18.148.923.383`,key:`hrcpis`}],[`path`,{d:`M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2`,key:`j2q98n`}],[`path`,{d:`m9.228 15.852-.923-.383`,key:`1p9ong`}],[`path`,{d:`m9.228 18.148-.923.383`,key:`6558rz`}]]),pu=e(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),mu=e(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),hu=e(`factory`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),gu=e(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),_u=e(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),vu=e(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),yu=e(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),bu=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),xu=e(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Su=e(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);function Cu({gallery:e}){let t=e?.items||[],n=e||{eyebrow:`Featured Gallery`,title:``,subtitle:``},[r,i]=(0,p.useState)(0),[a,o]=(0,p.useState)(!1);return p.useEffect(()=>{let e=()=>o(window.innerWidth<1024);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,f.jsxs)(`section`,{id:`featured-gallery`,style:{padding:a?`4rem 1.25rem`:`6rem 8%`,background:`#020710`,position:`relative`},children:[(0,f.jsxs)(`div`,{style:{marginBottom:`3.5rem`,position:`relative`,zIndex:10},children:[(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:n.eyebrow}),(0,f.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:n.title}),(0,f.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`1rem`,marginTop:`0.75rem`,maxWidth:`600px`,lineHeight:`1.5`},children:n.subtitle})]}),(0,f.jsx)(wu,{galleryData:t,activeIdx:r,setActiveIdx:i})]})}function wu({galleryData:e,activeIdx:t,setActiveIdx:n}){let[i,a]=p.useState(!1),o=$l();p.useEffect(()=>{let e=()=>{a(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let s=e=>o?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15}};return i?(0,f.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:e.map((e,t)=>{let n=t===0,i=s(t);return(0,f.jsxs)(X.div,{className:`glass-card`,...i,transition:{duration:.8,ease:[.22,1,.36,1],delay:t*.1},style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,height:n?`320px`:`240px`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%), url(${e.image})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-end`,padding:`2rem 1.5rem`,boxShadow:n?`0 10px 30px -10px rgba(255, 170, 0, 0.15)`:`none`,borderColor:n?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.05em`,marginBottom:`0.25rem`},children:e.category}),(0,f.jsx)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,margin:`0 0 0.5rem 0`,lineHeight:`1.3`},children:e.title}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:`0 0 1rem 0`,lineHeight:`1.5`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.excerpt}),(0,f.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,borderTop:`1px solid rgba(255, 255, 255, 0.1)`,paddingTop:`0.75rem`},children:[(0,f.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,f.jsx)(r,{size:14}),` `,e.readTime]}),(0,f.jsxs)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,f.jsx)(cu,{size:14})]})]})]},e.id)})}):(0,f.jsx)(`div`,{style:{display:`flex`,gap:`1.25rem`,width:`100%`,height:`460px`,alignItems:`stretch`,position:`relative`},children:e.map((e,i)=>{let a=t===i,c=s(i);return(0,f.jsxs)(X.div,{layout:!0,onMouseEnter:()=>n(i),className:`glass-card`,...c,transition:o?{type:`spring`,stiffness:350,damping:32}:{layout:{type:`spring`,stiffness:350,damping:32},y:{duration:.8,ease:[.22,1,.36,1],delay:i*.1},opacity:{duration:.8,ease:`easeOut`,delay:i*.1}},style:{flex:a?2.8:1,borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:a?`0 15px 35px -12px rgba(255, 170, 0, 0.2)`:`0 4px 20px rgba(0, 0, 0, 0.3)`,borderColor:a?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,f.jsx)(X.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`url(${e.image})`,backgroundSize:`cover`,backgroundPosition:`center`,zIndex:1},animate:{scale:a?1.06:1},transition:{duration:.6}}),(0,f.jsx)(X.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%)`,zIndex:2},animate:{opacity:a?.95:.85},transition:{duration:.4}}),(0,f.jsx)(`div`,{style:{position:`relative`,zIndex:3,padding:`2rem 1.8rem 0 1.8rem`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.08em`,background:`rgba(255, 170, 0, 0.08)`,padding:`0.3rem 0.6rem`,borderRadius:`8px`,border:`1px solid rgba(255, 170, 0, 0.15)`},children:e.category})}),(0,f.jsxs)(`div`,{style:{position:`relative`,zIndex:3,padding:`0 1.8rem 2rem 1.8rem`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},children:[(0,f.jsx)(`h3`,{style:{fontSize:a?`1.5rem`:`1.15rem`,fontWeight:700,color:`#ffffff`,margin:0,lineHeight:`1.3`,transition:`font-size 0.3s ease`,whiteSpace:a?`normal`:`nowrap`,overflow:a?`visible`:`hidden`,textOverflow:a?`clip`:`ellipsis`,maxWidth:`100%`},children:e.title}),(0,f.jsx)(X.div,{initial:!1,animate:{height:a?`auto`:0,opacity:+!!a,marginTop:a?6:0},transition:{duration:.4,ease:`easeInOut`},style:{overflow:`hidden`},children:(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:0,lineHeight:`1.5`,maxWidth:`90%`},children:e.excerpt})})]}),(0,f.jsxs)(`div`,{style:{marginTop:`1.5rem`},children:[(0,f.jsx)(`div`,{style:{width:`100%`,height:`2px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,borderRadius:`1px`,marginBottom:`1rem`,position:`relative`,overflow:`hidden`},children:(0,f.jsx)(X.div,{style:{height:`100%`,backgroundColor:`#ffaa00`,borderRadius:`1px`},initial:{width:0},animate:{width:a?`60%`:`15%`},transition:{duration:.5}})}),(0,f.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,minHeight:`24px`},children:[(0,f.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,f.jsx)(r,{size:13,style:{color:`#ffaa00`}}),` `,e.readTime]}),a&&(0,f.jsxs)(X.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3},style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,f.jsx)(cu,{size:14})]})]})]})]})]},e.id)})})}var Tu=[`radial-gradient(circle at top right, rgba(139, 92, 246, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`];function Eu({product:e,isMobile:t,delay:n=0,index:r=0}){if(!e)return null;let i=$l(),a=t?`92%`:`520px`,o=t?`4%`:`32%`,s=t?`200px`:`320px`,c=t?`170px`:`280px`;return(0,f.jsx)(X.div,{initial:i?!1:{opacity:0,y:40},whileInView:i?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{duration:.8,ease:[.22,1,.36,1],delay:n},style:{height:`100%`},children:(0,f.jsxs)(`div`,{className:`product-card`,style:{borderRadius:t?`20px`:`28px`,border:`${t?4:6}px solid #EAE3E8`,background:Tu[r%Tu.length],padding:t?`1.75rem 1.25rem 0`:`3rem 2.5rem 0 2.5rem`,boxShadow:`0 4px 24px rgba(234, 227, 232, 0.25)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,height:`100%`,minHeight:t?`380px`:`600px`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{t||(e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 10px 30px rgba(255, 170, 0, 0.2)`,e.currentTarget.style.borderColor=`#ffaa00`)},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 24px rgba(234, 227, 232, 0.25)`,e.currentTarget.style.borderColor=`#EAE3E8`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`radial-gradient(#E0D2DC 1.5px, transparent 1.5px)`,backgroundSize:`12px 12px`,WebkitMaskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,maskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,pointerEvents:`none`,zIndex:1}}),(0,f.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`2rem`,fontWeight:800,color:`#0f172a`,margin:`0 0 0.75rem 0`,letterSpacing:`-0.02em`,position:`relative`,zIndex:3},children:e.name}),(0,f.jsx)(`p`,{style:{color:`#475569`,fontSize:t?`0.95rem`:`1.05rem`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,fontWeight:400,maxWidth:`100%`,position:`relative`,zIndex:3},children:e.description}),(0,f.jsx)(`div`,{style:{position:`absolute`,bottom:0,left:o,width:a,height:c,borderRadius:`20px 20px 0 0`,boxShadow:`-20px -20px 45px rgba(0,0,0,0.12)`,zIndex:2,pointerEvents:`none`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,bottom:t?`-16px`:`-40px`,left:o,width:a,height:s,borderRadius:`16px`,border:`1.5px solid rgba(255, 255, 255, 0.4)`,overflow:`hidden`,zIndex:2,background:`transparent`},children:(0,f.jsx)(`img`,{src:e.image,alt:`${e.name} dashboard`,style:{position:`absolute`,top:t?`0`:`-8%`,left:t?`0`:`-40%`,width:t?`100%`:`160%`,height:t?`100%`:`145%`,objectFit:`cover`}})}),e.stats?.[0]&&(0,f.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`110px`:`160px`,left:t?`6%`:`18%`,background:`rgba(255, 255, 255, 0.25)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.3)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(31, 38, 135, 0.15)`,zIndex:5},children:[(0,f.jsx)(`span`,{style:{fontWeight:800,color:`#000000`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[0].value}),(0,f.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#000000`,fontWeight:600},children:e.stats[0].label})]}),e.stats?.[1]&&(0,f.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`36px`:`50px`,right:t?`5%`:`8%`,background:`rgba(20, 20, 25, 0.55)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.15)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(0, 0, 0, 0.25)`,zIndex:5},children:[(0,f.jsx)(`span`,{style:{fontWeight:800,color:`#ffffff`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[1].value}),(0,f.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#ffffff`,fontWeight:500},children:e.stats[1].label})]})]})})}var Z=`/citpl_website/`;function Q({children:e,delay:t=0,style:n}){let r=$l(),i=su();return r&&!i?(0,f.jsx)(`div`,{style:n,children:e}):(0,f.jsx)(X.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.8,ease:[.22,1,.36,1],delay:t},style:n,children:e})}var Du={BrainCircuit:lu,Factory:hu,Network:vu,UsersRound:xu,ShieldCheck:bu,Code2:pu,CloudCog:fu,Glasses:gu,Sparkles:a},$=({src:e,alt:t,radiusX:n,radiusY:r,startAngle:i,duration:a,clockwise:o=!0,size:s=120})=>{let[c,l]=(0,p.useState)({x:0,y:0});return(0,p.useEffect)(()=>{let e=2*Math.PI/(a*1e3),t=o?1:-1,s=i*Math.PI/180,c,u=()=>{let i=performance.now(),a=s+t*e*i;l({x:n*Math.cos(a),y:r*Math.sin(a)}),c=requestAnimationFrame(u)};return c=requestAnimationFrame(u),()=>cancelAnimationFrame(c)},[n,r,i,a,o]),(0,f.jsx)(X.div,{whileHover:{scale:1.1},transition:{type:`spring`,stiffness:300,damping:15},style:{position:`absolute`,top:`50%`,left:`50%`,x:`calc(-50% + ${c.x}px)`,y:`calc(-50% + ${c.y}px)`,width:`${s}px`,height:`80px`,display:`flex`,justifyContent:`center`,alignItems:`center`,cursor:`pointer`,zIndex:10,pointerEvents:`auto`},children:(0,f.jsx)(`img`,{src:e,alt:t,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`}})})};function Ou({service:e,isMobile:t,index:n=0}){Du[e.icon];let r=$l()?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{y:{type:`tween`,duration:.8,ease:[.22,1,.36,1],delay:n*.1},opacity:{duration:.8,ease:`easeOut`,delay:n*.1}}};return(0,f.jsxs)(X.div,{whileHover:t?{}:{y:-8,borderColor:`rgba(255, 255, 255, 0.2)`,boxShadow:`0 20px 40px rgba(0, 0, 0, 0.6)`},...r,style:{flex:`0 0 auto`,scrollSnapAlign:`start`,width:t?`290px`:`calc(40% - 19.2px)`,minHeight:t?`450px`:`520px`,background:`linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(9, 14, 26, 0.85) 100%)`,backdropFilter:`blur(16px)`,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.08)`,padding:t?`2rem 1.5rem`:`3rem 2.5rem`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:`0 12px 30px rgba(0, 0, 0, 0.4)`,transition:`border-color 0.3s ease, box-shadow 0.3s ease`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:e.glowColor,pointerEvents:`none`,zIndex:0}}),(0,f.jsx)(`div`,{style:{position:`absolute`,bottom:`-25px`,right:`15px`,fontSize:t?`130px`:`180px`,fontWeight:900,color:`rgba(255, 255, 255, 0.012)`,lineHeight:`1`,pointerEvents:`none`,userSelect:`none`,zIndex:0},children:e.number}),(0,f.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,f.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`1.9rem`,fontWeight:700,color:`#ffffff`,marginBottom:t?`1rem`:`1.5rem`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:e.title}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`0.8rem`,marginBottom:`1rem`},children:[(0,f.jsx)(`div`,{style:{width:`4px`,background:`#ffffff`,borderRadius:`2px`,flexShrink:0}}),(0,f.jsx)(`h4`,{style:{fontSize:t?`0.95rem`:`1.05rem`,fontWeight:700,color:`#e2e8f0`,lineHeight:`1.4`,margin:0},children:e.boldStatement})]}),(0,f.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:t?`0.85rem`:`0.9rem`,lineHeight:`1.6`,marginBottom:t?`1.2rem`:`1.8rem`,fontWeight:400},children:e.description}),(0,f.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`0.65rem`},children:e.capabilities.map((e,n)=>(0,f.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.6rem`,fontSize:t?`0.85rem`:`0.9rem`,fontWeight:500,color:`#cbd5e1`},children:[(0,f.jsx)(`span`,{style:{color:`#ffffff`,opacity:.5,fontSize:`0.85rem`},children:`»`}),e]},n))})]}),(0,f.jsx)(`div`,{style:{position:`relative`,zIndex:1,marginTop:t?`1.5rem`:`2.5rem`},children:(0,f.jsxs)(`a`,{href:`#contact`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,color:`#ffffff`,textDecoration:`none`,fontSize:t?`0.85rem`:`0.92rem`,fontWeight:600,transition:`color 0.2s`},onMouseEnter:e=>e.target.style.color=`#ffaa00`,onMouseLeave:e=>e.target.style.color=`#ffffff`,children:[e.cta,` `,(0,f.jsx)(`span`,{children:`→`})]})})]})}function ku({previewMode:e=!1}){let{content:t,loading:n}=au(),r=t.services?.items??[],i=t.insights?.items??[],a=t.metrics??[],o=t.hero??{},s=t.about??{},l=t.partners??{logos:[]},d=t.certifications??{items:[]},m=t.whyUs??{cards:[],images:[]},h=t.products??{items:[]},g=t.footer??{cta:{},quickLinks:[],productLinks:[],social:[],legal:[]},[_,v]=(0,p.useState)(`agile`),[y,b]=(0,p.useState)(0),[x,S]=(0,p.useState)(0),[C,ee]=(0,p.useState)(!1),[te,w]=(0,p.useState)(!1),[T,E]=(0,p.useState)(`home`),[ne,D]=(0,p.useState)(null),[O,re]=(0,p.useState)(!1),[ie,ae]=(0,p.useState)(!1),[oe,se]=(0,p.useState)(!1),[k,ce]=(0,p.useState)(!1),[le,ue]=(0,p.useState)(``),[de,fe]=(0,p.useState)(``),[pe,me]=(0,p.useState)(``),[he,ge]=(0,p.useState)(null),[_e,ve]=(0,p.useState)(``),[ye,be]=(0,p.useState)(``),[xe,Se]=(0,p.useState)(``),[Ce,we]=(0,p.useState)(``),[Te,A]=(0,p.useState)(``),[Ee,De]=(0,p.useState)({"AI & Analytics":!1,"SAP Services":!1,"XR Platforms":!1,"Smart Factory":!1,"Cloud Engineering":!1,"Enterprise Software":!1});(0,p.useEffect)(()=>{let e=()=>{ee(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let[Oe,j]=(0,p.useState)(null);(0,p.useEffect)(()=>{let e=setInterval(()=>{let e=[27,28,30,31,32,33,34,35,36],t=e[Math.floor(Math.random()*e.length)];j(t),setTimeout(()=>{j(null)},1e3)},3500);return()=>clearInterval(e)},[]),(0,p.useEffect)(()=>{if(e)return;let t=()=>{let e=[`home`,`aboutus`,`services`,`whyus`,`products`,`insights`,`contactus`],t=window.scrollY+120;if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-50){E(`contactus`);return}for(let n of e){let e=document.getElementById(n);if(e){let r=e.offsetTop,i=e.offsetHeight;if(t>=r&&twindow.removeEventListener(`scroll`,t)},[e]);let M=()=>{switch(T){case`home`:return`Home`;case`aboutus`:case`services`:case`whyus`:return`About Us`;case`products`:case`insights`:return`Products`;case`contactus`:return`Contact Us`;default:return`Home`}},N=(0,p.useRef)(null),ke=e=>{if(N.current){let t=C?310:444;N.current.scrollBy({left:e===`left`?-t:t,behavior:`smooth`})}},[Ae,je]=(0,p.useState)(0),P=(0,p.useRef)(null),F=e=>{if(P.current){let t=(C?window.innerWidth*.72:340)+24;P.current.scrollBy({left:e*t,behavior:`smooth`})}},Me=C?`1.25rem`:`8%`,Ne=[`Home`,`About Us`,`Products`,`Careers`,`Contact Us`],Pe=C?72:88,Fe=e=>{if(e===`contactus`){let e=document.getElementById(`contactus`);if(e){let t=e.getBoundingClientRect().top+window.scrollY-Pe;window.scrollTo({top:Math.max(0,t),behavior:`smooth`})}else window.scrollTo({top:document.documentElement.scrollHeight,behavior:`smooth`});E(`contactus`);return}let t=document.getElementById(e);if(!t)return;let n=t.getBoundingClientRect().top+window.scrollY-Pe;window.scrollTo({top:Math.max(0,n),behavior:`smooth`}),E(e)},Ie=e=>{if(ce(!1),e===`Careers`){w(!0);return}let t={Home:`home`,"About Us":`aboutus`,Products:`products`,"Contact Us":`contactus`}[e];t&&setTimeout(()=>Fe(t),C?150:0)};return(0,p.useEffect)(()=>(document.body.style.overflow=k?`hidden`:``,()=>{document.body.style.overflow=``}),[k]),n?(0,f.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#020710`,color:`#94a3b8`},children:`Loading...`}):(0,f.jsxs)(`div`,{style:{backgroundColor:`#020710`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,display:`flex`,flexDirection:`column`},children:[(0,f.jsxs)(`div`,{style:{position:`relative`,zIndex:10,backgroundColor:`#020710`,width:`100%`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:0,left:`10%`,right:`10%`,height:`600px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.12) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`1200px`,right:`5%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 85, 0, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`2200px`,left:`5%`,width:`600px`,height:`600px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsxs)(`nav`,{className:`glass site-nav`,style:{position:`sticky`,top:0,zIndex:50,display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:C?`0.85rem 1.25rem`:`1.2rem 8%`,borderBottom:T===`products`?`1px solid rgba(15, 23, 42, 0.08)`:`1px solid rgba(255, 255, 255, 0.05)`},children:[(0,f.jsx)(`div`,{style:{display:`flex`,alignItems:`center`},children:(0,f.jsx)(`img`,{src:`${Z}assets/cavin_logo.svg`,alt:`Cavin Infotech Logo`,style:{height:C?`38px`:`50px`,display:`block`}})}),!C&&(0,f.jsxs)(`div`,{className:`site-nav-links`,style:{display:`flex`,gap:`2rem`,alignItems:`center`},children:[Ne.map(e=>{let t=T===`products`,n=M()===e,r=ne===e,i;return i=t?n||r?`#b45309`:`#1e293b`:n||r?`#ffaa00`:`#a0aec0`,(0,f.jsx)(`a`,{href:e===`Careers`?void 0:`#${e.toLowerCase().replace(` `,``)}`,onClick:t=>{t.preventDefault(),Ie(e)},style:{color:i,textDecoration:`none`,fontSize:`0.95rem`,fontWeight:500,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:()=>D(e),onMouseLeave:()=>D(null),children:e},e)}),(0,f.jsxs)(`div`,{className:`btn-sparkle-wrapper`,children:[(0,f.jsx)(`img`,{src:`${Z}assets/button_hover_effect.png`,className:`btn-sparkles`,alt:``}),(0,f.jsx)(`button`,{className:`btn-talk`,onClick:()=>ae(!0),children:`Book a Strategy Call`})]})]}),C&&(0,f.jsx)(`button`,{type:`button`,"aria-label":k?`Close menu`:`Open menu`,onClick:()=>ce(e=>!e),style:{background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,borderRadius:`8px`,width:`42px`,height:`42px`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:T===`products`?`#1e293b`:`#fff`,cursor:`pointer`},children:k?(0,f.jsx)(u,{size:20}):(0,f.jsx)(c,{size:20})})]}),C&&k&&(0,f.jsx)(`div`,{className:`mobile-menu-overlay`,onClick:()=>ce(!1),style:{position:`fixed`,inset:0,background:`rgba(2, 7, 16, 0.75)`,backdropFilter:`blur(6px)`,zIndex:60,display:`flex`,justifyContent:`flex-end`},children:(0,f.jsxs)(`div`,{className:`mobile-menu-panel`,onClick:e=>e.stopPropagation(),style:{width:`min(85vw, 320px)`,height:`100%`,background:`#0a1628`,borderLeft:`1px solid rgba(255,255,255,0.08)`,padding:`1.5rem 1.25rem`,display:`flex`,flexDirection:`column`,gap:`0.25rem`},children:[Ne.map(e=>(0,f.jsx)(`button`,{type:`button`,onClick:()=>Ie(e),style:{background:M()===e?`rgba(255,170,0,0.12)`:`transparent`,border:`none`,color:M()===e?`#ffaa00`:`#e2e8f0`,textAlign:`left`,padding:`0.85rem 1rem`,borderRadius:`8px`,fontSize:`1rem`,fontWeight:500,cursor:`pointer`},children:e},e)),(0,f.jsx)(`button`,{type:`button`,className:`btn-talk`,onClick:()=>{ce(!1),ae(!0)},style:{marginTop:`1rem`,width:`100%`,minWidth:`unset`},children:`Book a Strategy Call`})]})}),(0,f.jsxs)(`section`,{id:`home`,style:{padding:C?`6rem 1.25rem 3.5rem`:`9rem 8% 6rem 8%`,textAlign:`center`,position:`relative`,zIndex:10,minHeight:C?`70vh`:`85vh`,display:`flex`,flexDirection:`column`,alignItems:`center`,overflow:`hidden`},children:[(0,f.jsxs)(`video`,{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,objectFit:`cover`,zIndex:-1,pointerEvents:`none`},children:[(0,f.jsx)(`source`,{src:`${o.video}?v=2`,type:`video/mp4`}),`Your browser does not support the video tag.`]}),(0,f.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,f.jsx)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,backgroundColor:`rgba(255, 170, 0, 0.08)`,border:`1px solid rgba(255, 170, 0, 0.2)`,borderRadius:`9999px`,padding:`0.4rem 1.2rem`,marginBottom:`2.5rem`,boxShadow:`0 4px 12px rgba(0, 0, 0, 0.3)`},children:(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600},children:o.badge})}),(0,f.jsxs)(`h1`,{style:{fontSize:`clamp(2rem, 4.8vw, 4.4rem)`,fontWeight:800,lineHeight:1.15,maxWidth:`1200px`,margin:C?`0 auto 3rem auto`:`0 auto 8rem auto`,letterSpacing:`-0.03em`,filter:`drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8))`,textShadow:`0 2px 10px rgba(0, 0, 0, 0.5)`},children:[(0,f.jsx)(`span`,{style:{color:`#94a3b8`,display:`block`,fontSize:`clamp(1.5rem, 3.8vw, 3.2rem)`,marginBottom:`0.5rem`,fontWeight:500},children:o.headline}),o.subheadline?.includes(`Technology Partner`)?(0,f.jsxs)(f.Fragment,{children:[o.subheadline.replace(`Technology Partner`,``).trim(),` `,(0,f.jsx)(`span`,{className:`gradient-text-gold`,children:`Technology Partner`})]}):o.subheadline]})]})]}),(0,f.jsx)(`section`,{style:{padding:C?`3rem 1.5rem`:`4rem 8% 2rem 8%`,backgroundColor:`#020710`,position:`relative`,zIndex:10,display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,f.jsx)(Q,{style:{width:`100%`,display:`flex`,justifyContent:`center`},children:(0,f.jsx)(`div`,{style:{background:`rgba(25, 23, 21, 0.75)`,padding:C?`1.5rem 1.2rem`:`1.2rem 3rem`,display:`flex`,flexDirection:C?`column`:`row`,gap:C?`1.2rem`:`2rem`,justifyContent:C?`center`:`space-between`,alignItems:`center`,width:`100%`,maxWidth:`1100px`,borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.08)`,backdropFilter:`blur(20px)`,marginTop:`0`,marginBottom:`0`,position:`relative`,zIndex:20,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8)`},children:a.map((e,t)=>(0,f.jsxs)(p.Fragment,{children:[t>0&&!C&&(0,f.jsx)(`div`,{style:{width:`1px`,height:`30px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,flexShrink:0}}),(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,flex:`1 1 auto`,minWidth:C?`unset`:`150px`,justifyContent:C?`center`:`flex-start`},children:[(0,f.jsx)(`div`,{style:{width:`42px`,height:`42px`,borderRadius:`50%`,border:`1.5px solid rgba(255, 170, 0, 0.4)`,background:`rgba(255, 170, 0, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:[(0,f.jsx)(Su,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`z`),(0,f.jsx)(_u,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`g`),(0,f.jsx)(yu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`l`),(0,f.jsx)(mu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`c`)][t%4]}),(0,f.jsxs)(`div`,{style:{textAlign:`left`},children:[(0,f.jsx)(`span`,{style:{display:`block`,fontSize:`1.5rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.1},children:e.value}),(0,f.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:e.label})]})]})]},e.label))})})}),(0,f.jsx)(`section`,{id:`aboutus`,style:{padding:C?`3.5rem 1.25rem`:`6.5rem 8% 5.5rem 8%`,backgroundColor:`#020710`,backgroundImage:`url('${s.backgroundImage}')`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.02)`,position:`relative`},children:(0,f.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,bottom:`15%`,left:`50%`,transform:`translateX(-50%)`,width:`320px`,height:`60px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.25) 0%, transparent 80%)`,pointerEvents:`none`,zIndex:0,filter:`blur(10px)`}}),(0,f.jsx)(`h2`,{style:{fontSize:`clamp(1.6rem, 2.8vw, 2.4rem)`,fontWeight:600,color:`#ffffff`,marginBottom:`2.5rem`,letterSpacing:`-0.02em`,position:`relative`,zIndex:1},children:s.heading}),(0,f.jsx)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,zIndex:1,boxShadow:`0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(71, 115, 179, 0.15)`,borderRadius:`4px`,overflow:`hidden`},children:(0,f.jsx)(`img`,{src:s.badgeImage,alt:s.badgeAlt,style:{height:C?`40px`:`54px`,display:`block`,maxWidth:`100%`,objectFit:`contain`}})})]})}),(0,f.jsxs)(`section`,{style:{padding:C?`4rem 8%`:`2rem 0`,borderTop:`1px solid rgba(255, 255, 255, 0.03)`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`,background:`#020710`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`linear-gradient(rgba(255, 170, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 170, 0, 0.02) 1px, transparent 1px)`,backgroundSize:`50px 50px`,opacity:.4,pointerEvents:`none`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsx)(Q,{style:{width:`100%`},children:C?(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`3rem`,position:`relative`,zIndex:2},children:[(0,f.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`2rem`,fontWeight:800,marginBottom:`0.8rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:l.heading}),(0,f.jsx)(`h4`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#a0aec0`,marginBottom:`1rem`},children:l.subheading}),(0,f.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:1.5,maxWidth:`400px`,margin:`0 auto`},children:l.body})]}),(0,f.jsx)(`div`,{style:{position:`relative`,width:`280px`,height:`280px`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,f.jsx)(`img`,{src:`${Z}assets/GlobeVector.svg`,alt:`Globe Map`,style:{width:`100%`,height:`100%`,objectFit:`contain`,opacity:.3}})}),(0,f.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:`1.5rem 1rem`,width:`100%`,alignItems:`center`,justifyItems:`center`},children:l.logos.map((e,t)=>(0,f.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`50px`,width:`100%`,padding:`0.2rem`},children:(0,f.jsx)(`img`,{src:e.image,alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})},t))})]}):(0,f.jsxs)(`div`,{style:{position:`relative`,width:`1100px`,height:`800px`,margin:`0 auto`,zIndex:2},children:[(0,f.jsx)(`img`,{src:`${Z}assets/GlobeVector.svg`,alt:`Globe Map`,style:{position:`absolute`,width:`800px`,height:`800px`,top:`58%`,left:`50%`,transform:`translate(-50%, -50%)`,objectFit:`contain`,opacity:.55,zIndex:1,pointerEvents:`none`}}),(0,f.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5,textAlign:`center`,width:`420px`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`2.2rem`,fontWeight:800,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:l.heading}),(0,f.jsx)(`span`,{style:{fontSize:`1.8rem`,fontWeight:700,color:`#cbd5e1`,margin:`0 0 1rem 0`,letterSpacing:`-0.02em`},children:l.subheading}),(0,f.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0,fontWeight:500,maxWidth:`340px`},children:l.body})]}),(0,f.jsx)($,{src:`${Z}assets/Frame 33.svg`,alt:`MRF Logo`,radiusX:520,radiusY:320,startAngle:0,duration:60,clockwise:!0,size:170}),(0,f.jsx)($,{src:`${Z}assets/Frame 31.svg`,alt:`ACA Global Logo`,radiusX:520,radiusY:320,startAngle:78,duration:60,clockwise:!0,size:175}),(0,f.jsx)($,{src:`${Z}assets/Frame 30.svg`,alt:`Polyhose Logo`,radiusX:520,radiusY:320,startAngle:144,duration:60,clockwise:!0,size:170}),(0,f.jsx)($,{src:`${Z}assets/Frame 32.svg`,alt:`Dawn Pictures Logo`,radiusX:520,radiusY:320,startAngle:216,duration:60,clockwise:!0,size:180}),(0,f.jsx)($,{src:`${Z}assets/Frame 35.svg`,alt:`Hero Logo`,radiusX:520,radiusY:320,startAngle:282,duration:60,clockwise:!0,size:170}),(0,f.jsx)($,{src:`${Z}assets/Frame 28.svg`,alt:`Valeo Logo`,radiusX:360,radiusY:225,startAngle:36,duration:40,clockwise:!1,size:170}),(0,f.jsx)($,{src:`${Z}assets/Frame 36.svg`,alt:`BorgWarner Logo`,radiusX:360,radiusY:225,startAngle:108,duration:40,clockwise:!1,size:170}),(0,f.jsx)($,{src:`${Z}assets/kone.png`,alt:`KONE Logo`,radiusX:360,radiusY:225,startAngle:180,duration:40,clockwise:!1,size:160}),(0,f.jsx)($,{src:`${Z}assets/Frame 34.svg`,alt:`Chola MS Logo`,radiusX:360,radiusY:225,startAngle:252,duration:40,clockwise:!1,size:170}),(0,f.jsx)($,{src:`${Z}assets/Frame 27.svg`,alt:`CavinKare Logo`,radiusX:360,radiusY:225,startAngle:324,duration:40,clockwise:!1,size:180})]})})]}),(0,f.jsxs)(`section`,{id:`certifications`,style:{padding:C?`3rem 1.25rem`:`5rem 8%`,backgroundColor:`#020710`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,f.jsx)(Q,{children:(0,f.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.2vw, 2.5rem)`,fontWeight:600,color:`#e2e8f0`,marginBottom:`3.5rem`,letterSpacing:`-0.02em`,opacity:.9},children:d.heading})}),(0,f.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:C?`1.5rem`:`5rem`,flexWrap:`wrap`},children:d.items.map((e,t)=>(0,f.jsx)(Q,{delay:t*.1,children:(0,f.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:t===4?`110px`:`90px`,transition:`all 0.3s ease`},children:(0,f.jsx)(`img`,{src:e.image,alt:e.alt,style:{height:t===0?`85%`:t===3?`55%`:t===4?`100%`:`80%`,objectFit:`contain`}})})},e.alt))})]}),(0,f.jsxs)(`section`,{id:`services`,style:{padding:C?`4rem 0`:`96px 0`,backgroundColor:`#020710`,position:`relative`,overflow:`hidden`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:`20%`,right:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsx)(`div`,{style:{position:`absolute`,bottom:`10%`,left:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.02) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,f.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,padding:C?`0 1.5rem`:`0 4rem`,display:`flex`,flexDirection:C?`column`:`row`,alignItems:`stretch`,gap:C?`2.5rem`:`64px`,position:`relative`,zIndex:1},children:[(0,f.jsxs)(Q,{style:{flex:C?`1`:`0 0 300px`,width:C?`100%`:`300px`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`},children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.15em`,display:`block`,marginBottom:`1rem`,lineHeight:`1.4`},children:t.services.eyebrow}),(0,f.jsx)(`h2`,{style:{color:`#e2e8f0`,fontSize:C?`2.2rem`:`3.2rem`,fontWeight:300,letterSpacing:`-0.02em`,margin:`0 0 1.5rem 0`,lineHeight:`1.1`},children:t.services.title}),(0,f.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:C?`0.9rem`:`0.95rem`,lineHeight:`1.65`,margin:`0 0 2rem 0`,fontWeight:400},children:t.services.intro})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`0.75rem`,marginTop:C?`0rem`:`auto`},children:[(0,f.jsx)(`button`,{onClick:()=>ke(`left`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(255, 255, 255, 0.02)`,color:`#ffffff`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.02)`},"aria-label":`Scroll left`,children:(0,f.jsx)(uu,{size:20})}),(0,f.jsx)(`button`,{onClick:()=>ke(`right`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid #ffffff`,background:`#ffffff`,color:`#020710`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.opacity=`0.9`},onMouseLeave:e=>{e.currentTarget.style.opacity=`1`},"aria-label":`Scroll right`,children:(0,f.jsx)(du,{size:20})})]})]}),(0,f.jsx)(`div`,{style:{flexGrow:1,overflow:`visible`,width:C?`100%`:`calc(100% - 364px)`},children:(0,f.jsx)(Q,{style:{width:`100%`},children:(0,f.jsx)(`div`,{ref:N,className:`services-carousel`,style:{display:`flex`,gap:C?`1rem`:`24px`,overflowX:`auto`,scrollSnapType:`x mandatory`,paddingBottom:`2rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},children:r.map((e,t)=>(0,f.jsx)(Ou,{service:e,isMobile:C,index:t},e.id))})})})]})]}),(0,f.jsx)(`section`,{id:`whyus`,style:{padding:C?`4rem 1.25rem`:`6rem 8%`,background:`rgba(5, 16, 34, 0.3)`,position:`relative`},children:(0,f.jsxs)(`div`,{style:{maxWidth:`1400px`,margin:`0 auto`,position:`relative`,zIndex:10},children:[(0,f.jsx)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`},children:(0,f.jsxs)(Q,{children:[(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:m.eyebrow}),(0,f.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:m.title})]})}),C?(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`,position:`relative`,zIndex:10},children:[(0,f.jsx)(Q,{delay:0,children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.2) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Innovation Driven`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,f.jsx)(Q,{delay:.1,children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Industry Expertise`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,f.jsx)(Q,{delay:.2,children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Secure & Reliable`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,f.jsx)(Q,{delay:.3,children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${Z}assets/whyus_hologram.jpg)`,backgroundSize:`cover`,backgroundPosition:`center`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Outcome Focused`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]})})]}):(0,f.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1.15fr 0.65fr 1.2fr`,gridTemplateRows:`auto minmax(260px, auto)`,gap:`1.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10},children:[(0,f.jsx)(Q,{delay:0,style:{height:`100%`,gridColumn:`1`,gridRow:`1`},children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.25) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Innovation Driven`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,f.jsx)(Q,{delay:.1,style:{height:`100%`,gridColumn:`1`,gridRow:`2`},children:(0,f.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,f.jsx)(`img`,{src:`${Z}assets/whyus_arab_meeting.jpg`,alt:`Corporate collaboration`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,f.jsx)(Q,{delay:.2,style:{height:`100%`,gridColumn:`2 / 4`,gridRow:`1`},children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Industry Expertise`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,f.jsx)(Q,{delay:.3,style:{height:`100%`,gridColumn:`2`,gridRow:`2`},children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Secure & Reliable`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,f.jsx)(Q,{delay:.4,style:{height:`100%`,gridColumn:`3`,gridRow:`2`},children:(0,f.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,f.jsx)(`img`,{src:`${Z}assets/whyus_vr_man.jpg`,alt:`Sunset boardroom`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,f.jsx)(Q,{delay:.5,style:{height:`100%`,gridColumn:`4`,gridRow:`1 / 3`},children:(0,f.jsxs)(`div`,{className:`glass-card`,style:{borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${Z}assets/whyus_hologram.jpg)`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`2.5rem`,height:`100%`},children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:`0 0 1rem 0`},children:`Outcome Focused`}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0 1.5rem 0`}}),(0,f.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.95rem`,lineHeight:`1.65`,margin:0,fontWeight:400,maxWidth:`95%`},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]}),(0,f.jsx)(`div`,{style:{flex:1,minHeight:`120px`}}),` `]})})]})]})}),(0,f.jsx)(Q,{children:(0,f.jsx)(Cu,{gallery:t.gallery})}),(0,f.jsxs)(`section`,{id:`products`,style:{padding:C?`4rem 1.25rem`:`6rem 8%`,background:`#f8fafc`,position:`relative`,overflow:`hidden`},children:[(0,f.jsx)(Q,{children:(0,f.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`,position:`relative`,zIndex:10},children:[(0,f.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:h.eyebrow}),(0,f.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#0f172a`},children:h.title}),(0,f.jsx)(`p`,{style:{color:`#475569`,fontSize:`1.05rem`,marginTop:`0.75rem`,maxWidth:`650px`,marginLeft:`auto`,marginRight:`auto`,lineHeight:`1.5`},children:h.subtitle})]})}),(0,f.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:C?`1fr`:`repeat(auto-fit, minmax(320px, 1fr))`,gap:C?`1.5rem`:`2.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10,marginBottom:`4rem`},children:h.items.map((e,t)=>(0,f.jsx)(Eu,{product:e,isMobile:C,delay:t*.1,index:t},e.name||t))})]}),(0,f.jsxs)(`section`,{id:`insights`,style:{padding:C?`3.5rem 0 4rem`:`5rem 0 6rem 0`,background:`#020c1e`},children:[(0,f.jsxs)(Q,{style:{padding:C?`0 1.25rem`:`0 8%`,display:`flex`,flexDirection:C?`column`:`row`,justifyContent:`space-between`,alignItems:C?`stretch`:`flex-start`,gap:C?`1.25rem`:`0`,marginBottom:C?`2rem`:`3rem`},children:[(0,f.jsxs)(`div`,{style:{maxWidth:`680px`},children:[(0,f.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3vw, 2.6rem)`,fontWeight:700,color:`#ffffff`,lineHeight:1.25,marginBottom:`1rem`,letterSpacing:`-0.02em`},children:t.insights.title}),(0,f.jsx)(`p`,{style:{color:`#64748b`,fontSize:`0.82rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.06em`,lineHeight:1.6,maxWidth:`540px`},children:t.insights.subtitle})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`0.6rem`,alignItems:`center`,flexShrink:0,marginTop:`0.5rem`},children:[(0,f.jsx)(`button`,{onClick:()=>F(-1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,f.jsx)(cu,{size:16,style:{transform:`rotate(180deg)`}})}),(0,f.jsx)(`button`,{onClick:()=>F(1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,f.jsx)(cu,{size:16})})]})]}),(0,f.jsx)(Q,{style:{width:`100%`},children:(0,f.jsx)(`div`,{ref:P,style:{display:`flex`,gap:`1.5rem`,overflowX:`auto`,scrollSnapType:`x mandatory`,scrollPaddingLeft:C?`1.25rem`:`8%`,paddingLeft:C?`1.25rem`:`8%`,paddingRight:C?`1.25rem`:`8%`,paddingBottom:`1.5rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},className:`blog-carousel`,children:i.map((e,t)=>(0,f.jsx)(Q,{delay:t*.1,style:{flex:C?`0 0 72vw`:`0 0 340px`,minWidth:C?`72vw`:`340px`,height:`420px`,scrollSnapAlign:`start`,flexShrink:0},children:(0,f.jsxs)(`div`,{className:`blog-card`,style:{width:`100%`,height:`100%`,borderRadius:`14px`,overflow:`hidden`,position:`relative`,cursor:`pointer`,border:`1px solid rgba(255,255,255,0.08)`,transition:`all 0.35s cubic-bezier(0.4,0,0.2,1)`,boxShadow:`0 4px 30px rgba(0,0,0,0.5)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255,170,0,0.35)`,e.currentTarget.style.boxShadow=`0 16px 48px rgba(255,170,0,0.12)`,e.currentTarget.style.transform=`translateY(-5px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.08)`,e.currentTarget.style.boxShadow=`0 4px 30px rgba(0,0,0,0.5)`,e.currentTarget.style.transform=`translateY(0)`},children:[(0,f.jsx)(`img`,{src:e.image,alt:e.title,className:`blog-card-img`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`center top`,display:`block`,transition:`transform 0.6s ease`}}),(0,f.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(to bottom, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.0) 100%)`,pointerEvents:`none`}}),(0,f.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:`1.3rem 1.2rem 1.2rem 1.2rem`,display:`flex`,flexDirection:`column`,gap:`0.5rem`,background:`rgba(8, 14, 32, 0.55)`,backdropFilter:`blur(14px)`,WebkitBackdropFilter:`blur(14px)`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,f.jsx)(`span`,{style:{fontSize:`0.63rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.13em`,color:`#64748b`},children:e.category}),(0,f.jsx)(`h3`,{style:{fontSize:`0.97rem`,fontWeight:700,color:`#f1f5f9`,lineHeight:1.4,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,f.jsxs)(`div`,{className:`blog-read-more`,style:{marginTop:`0.2rem`,display:`flex`,alignItems:`center`,gap:`0.35rem`,color:`#cbd5e1`,fontSize:`0.82rem`,fontWeight:600,transition:`color 0.2s ease`},children:[`Read Blog `,(0,f.jsx)(cu,{size:14,style:{color:`#ffaa00`}})]})]})]})},t))})})]}),(0,f.jsx)(`section`,{style:{background:`#020c1e`,position:`relative`,zIndex:10,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`flex-end`,padding:`4rem 0 0 0`},children:(0,f.jsx)(`img`,{src:`${Z}assets/citp_footer_design.png`,alt:`Cavin Infotech Logo Divider`,style:{width:`100%`,height:`auto`,display:`block`}})})]}),` `,(0,f.jsx)(`footer`,{id:`contactus`,style:{background:`linear-gradient(180deg, #ffffff 0%, #dde6f5 100%)`,padding:C?`3rem 0`:`4rem 0`,color:`#1e293b`,position:`relative`,width:`100%`,scrollMarginTop:`${Pe}px`},children:(0,f.jsxs)(`div`,{style:{padding:`0 ${Me}`},children:[C?(0,f.jsx)(Q,{children:(0,f.jsxs)(`div`,{style:{background:`linear-gradient(135deg, #0f2044 0%, #0a1a38 60%, #112252 100%)`,borderRadius:`20px`,padding:`2.5rem 2rem`,display:`flex`,flexDirection:`column`,gap:`2rem`,marginBottom:`3rem`,position:`relative`,overflow:`hidden`},children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h2`,{style:{fontSize:`1.8rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:g.cta.headline}),(0,f.jsx)(`p`,{style:{fontSize:`0.72rem`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:g.cta.body}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.75rem`},children:[(0,f.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:g.cta.primaryButton}),(0,f.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:g.cta.secondaryButton})]})]}),(0,f.jsx)(`div`,{style:{width:`100%`,height:`180px`,position:`relative`,overflow:`hidden`,borderRadius:`12px`},children:(0,f.jsx)(`img`,{src:g.cta.image,alt:`Phone preview`,style:{position:`absolute`,right:`-20px`,top:`-90px`,width:`280px`,height:`auto`,maxWidth:`none`}})})]})}):(0,f.jsx)(Q,{children:(0,f.jsxs)(`div`,{style:{position:`relative`,width:`100%`,marginBottom:`3rem`},children:[(0,f.jsx)(`img`,{src:g.cta.image,alt:`CTA Banner`,style:{width:`100%`,height:`auto`,display:`block`}}),(0,f.jsxs)(`div`,{style:{position:`absolute`,left:`6%`,top:`52%`,transform:`translateY(-50%)`,width:`54%`,zIndex:2},children:[(0,f.jsx)(`h2`,{style:{fontSize:`clamp(1.3rem, 2.4vw, 2.2rem)`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:g.cta.headline}),(0,f.jsx)(`p`,{style:{fontSize:`clamp(0.55rem, 0.9vw, 0.72rem)`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:g.cta.body}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`center`},children:[(0,f.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`#ffaa00`,e.currentTarget.style.color=`#000000`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.color=`#ffffff`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.4)`},children:g.cta.primaryButton}),(0,f.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.25)`},children:g.cta.secondaryButton})]})]})]})}),(0,f.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:C?`1fr 1fr`:`180px 180px 1fr`,gap:C?`1.5rem`:`1.25rem`,paddingBottom:`2.5rem`,borderBottom:`1px solid rgba(30,41,59,0.12)`,marginBottom:`1.5rem`},children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Quick Links`}),(0,f.jsxs)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:`#home`,onClick:e=>{e.preventDefault(),Fe(`home`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Home`})}),(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:`#certifications`,onClick:e=>{e.preventDefault(),Fe(`certifications`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`About Us`})}),(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:`#services`,onClick:e=>{e.preventDefault(),Fe(`services`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Our Services`})})]})]}),(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Products`}),(0,f.jsx)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[`PRODMAX`,`Budgie HRMS`,`EVIDO`].map(e=>(0,f.jsx)(`li`,{children:(0,f.jsx)(`a`,{href:`#products`,onClick:e=>{e.preventDefault(),Fe(`products`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:e})},e))})]}),(0,f.jsxs)(`div`,{style:{gridColumn:C?`span 2`:`auto`},children:[(0,f.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e40af`,marginBottom:`1rem`},children:`Social Links`}),(0,f.jsx)(`div`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`center`,flexWrap:`wrap`},children:[{label:`Facebook`,d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`},{label:`Instagram`,d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.051.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z`},{label:`LinkedIn`,d:`M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z`},{label:`Telegram`,d:`M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.562 8.161c-.18.717-.962 4.084-1.362 5.462-.168.58-.506.772-.712.791-.45.041-.79-.297-1.225-.583-.681-.447-1.066-.723-1.727-1.158-.764-.502-.269-.778.167-1.23.114-.118 2.096-1.922 2.134-2.083.005-.02.009-.095-.036-.135-.045-.04-.112-.026-.16-.015-.069.016-1.171.745-3.305 2.186-.313.215-.596.321-.85.315-.281-.006-.822-.153-1.225-.284-.494-.16-.887-.246-.853-.518.178-.142.716-.291 1.6-.447 5.485-2.385 9.143-3.957 10.973-4.717.868-.362 1.8-.425 2.39-.425.13 0 .42.03.606.18.156.126.2.296.21.425.013.167.013.435-.008.685z`},{label:`WhatsApp`,d:`M12.008 22c-1.948 0-3.855-.522-5.504-1.508l-.395-.235-4.093 1.073 1.092-3.993-.257-.408C1.815 15.222 1.25 13.064 12.008 12c5.514 0 10.008 4.486 10.008 10S17.522 22 12.008 22zm8.487-18.49C18.232 1.257 15.258 0 12.008 0 5.394 0 .02 5.373.017 11.99c0 2.115.553 4.18 1.603 5.996L0 24l6.155-1.615c1.768.964 3.753 1.472 5.845 1.474v-.002c6.611 0 11.986-5.375 11.99-11.994.002-3.206-1.242-6.22-3.497-8.48zM17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.063 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.715 2.006-1.404.248-.69.248-1.278.173-1.402-.074-.125-.272-.199-.57-.348z`},{label:`X`,d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`},{label:`YouTube`,d:`M23.498 6.163a3.003 3.003 0 0 0-2.11-2.11C19.53 3.545 12 3.545 12 3.545s-7.53 0-9.388.508a3.003 3.003 0 0 0-2.11 2.11C0 8.017 0 12 0 12s0 3.983.502 5.837a3.003 3.003 0 0 0 2.11 2.11c1.858.508 9.388.508 9.388.508s7.53 0 9.388-.508a3.003 3.003 0 0 0 2.11-2.11C24 15.983 24 12 24 12s0-3.983-.502-5.837zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`}].map(({label:e,d:t})=>(0,f.jsx)(`a`,{href:`#`,"aria-label":e,style:{width:`34px`,height:`34px`,borderRadius:`50%`,background:`rgba(30,41,59,0.08)`,border:`1px solid rgba(30,41,59,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,color:`#475569`},onMouseEnter:e=>{e.currentTarget.style.background=`#1e40af`,e.currentTarget.style.color=`#fff`,e.currentTarget.style.borderColor=`#1e40af`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(30,41,59,0.08)`,e.currentTarget.style.color=`#475569`,e.currentTarget.style.borderColor=`rgba(30,41,59,0.12)`},children:(0,f.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,children:(0,f.jsx)(`path`,{d:t})})},e))}),(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`1rem`,marginTop:`1.5rem`,fontSize:`0.82rem`,color:`#475569`},children:[(0,f.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Privacy Policy`}),(0,f.jsx)(`span`,{style:{color:`#cbd5e1`},children:`•`}),(0,f.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Terms & Conditions`}),(0,f.jsx)(`span`,{style:{color:`#cbd5e1`},children:`•`}),(0,f.jsx)(`span`,{style:{fontSize:`0.78rem`,color:`#334155`},children:`Copyrights reserved to CAVIN INFOTECH`})]})]})]})]})}),te&&!e&&(0,f.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:C?`flex-start`:`center`,justifyContent:`center`,padding:C?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,f.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:C?`none`:`90vh`,overflowY:`auto`,padding:C?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,f.jsx)(`button`,{onClick:()=>{w(!1),re(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),O?(0,f.jsxs)(`div`,{style:{textAlign:`center`,padding:`1rem 0`},children:[(0,f.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,f.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,f.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,f.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Application Received!`}),(0,f.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for applying to Cavin Infotech. We have received your resume and details successfully. Our recruitment team will review your application and contact you if your qualifications match our current needs.`}),(0,f.jsx)(`button`,{onClick:()=>{w(!1),re(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,f.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_i6pkzka`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`careers`,name:le,email:de,phone:pe,mobile:``,designation:`N/A`,dateTime:`N/A`,interests:`N/A`,resumeName:he?he.name:`None`,from_name:le,reply_to:de,message:`New Careers Application:\nName: ${le}\nEmail: ${de}\nPhone: ${pe}\nResume File: ${he?he.name:`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}re(!0)}catch(e){console.error(`Error sending application:`,e),alert(`Error sending application: ${e.message}`)}},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Join Our Team`}),(0,f.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`2rem`},children:`Submit your details and resume below. Our recruitment team will review your application.`}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,f.jsx)(`input`,{type:`text`,required:!0,value:le,onChange:e=>ue(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,f.jsx)(`input`,{type:`email`,required:!0,value:de,onChange:e=>fe(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Phone Number`}),(0,f.jsx)(`input`,{type:`tel`,required:!0,value:pe,onChange:e=>me(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Resume / CV`}),(0,f.jsxs)(`div`,{style:{position:`relative`,border:`2px dashed rgba(255, 170, 0, 0.3)`,borderRadius:`12px`,padding:`1.5rem`,textAlign:`center`,background:`rgba(255, 170, 0, 0.02)`,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 170, 0, 0.3)`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.02)`},children:[(0,f.jsx)(`input`,{type:`file`,required:!0,accept:`.pdf,.doc,.docx`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,opacity:0,cursor:`pointer`},onChange:e=>{let t=e.target.files[0];ge(t);let n=t?.name,r=document.getElementById(`file-upload-label`);r&&n&&(r.textContent=n)}}),(0,f.jsx)(`span`,{id:`file-upload-label`,style:{fontSize:`0.85rem`,color:`#cbd5e1`,fontWeight:500},children:`Click to upload your Resume (.pdf, .doc, .docx)`})]})]})]}),(0,f.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`2rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Submit Application`})]})]})}),ie&&!e&&(0,f.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:C?`flex-start`:`center`,justifyContent:`center`,padding:C?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,f.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:C?`none`:`90vh`,overflowY:`auto`,padding:C?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,f.jsx)(`button`,{onClick:()=>{ae(!1),se(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),oe?(0,f.jsxs)(`div`,{style:{textAlign:`center`,padding:`1.5rem 0`},children:[(0,f.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,f.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,f.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,f.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Strategy Session Scheduled!`}),(0,f.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for booking a Strategy Call. We have successfully received your information and areas of interest. A technology consultant from Cavin Infotech will reach out to you within 24 hours with an invitation link and slot confirmation.`}),(0,f.jsx)(`button`,{onClick:()=>{ae(!1),se(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,f.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=Object.keys(Ee).filter(e=>Ee[e]).join(`, `);try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_ueukbd8`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`strategy`,name:_e,email:ye,phone:xe,mobile:xe,designation:Ce,dateTime:Te,interests:t||`None`,resumeName:`None`,from_name:_e,reply_to:ye,message:`New Strategy Session Booking:\nName: ${_e}\nEmail: ${ye}\nMobile: ${xe}\nDesignation: ${Ce}\nPreferred Date & Time: ${Te}\nAreas of Interest: ${t||`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}se(!0)}catch(e){console.error(`Error scheduling strategy session:`,e),alert(`Error scheduling strategy session: ${e.message}`)}},children:[(0,f.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Book a Strategy Call`}),(0,f.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`1.5rem`},children:`Fill in the details below to schedule a session with our experts.`}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`,maxHeight:`60vh`,overflowY:`auto`,paddingRight:`0.5rem`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,f.jsx)(`input`,{type:`text`,required:!0,value:_e,onChange:e=>ve(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,f.jsx)(`input`,{type:`email`,required:!0,value:ye,onChange:e=>be(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Mobile Number`}),(0,f.jsx)(`input`,{type:`tel`,required:!0,value:xe,onChange:e=>Se(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Designation`}),(0,f.jsx)(`input`,{type:`text`,required:!0,value:Ce,onChange:e=>we(e.target.value),placeholder:`e.g. Chief Technology Officer`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Preferred Date & Time`}),(0,f.jsx)(`input`,{type:`datetime-local`,required:!0,value:Te,onChange:e=>A(e.target.value),style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`,marginTop:`0.5rem`},children:[(0,f.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Areas of Interest`}),(0,f.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`0.75rem`,background:`rgba(255, 255, 255, 0.01)`,border:`1px solid rgba(255, 255, 255, 0.05)`,borderRadius:`10px`,padding:`1rem`},children:[`AI & Analytics`,`SAP Services`,`XR Platforms`,`Smart Factory`,`Cloud Engineering`,`Enterprise Software`].map(e=>(0,f.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.82rem`,color:`#cbd5e1`,cursor:`pointer`,userSelect:`none`},children:[(0,f.jsx)(`input`,{type:`checkbox`,checked:Ee[e],onChange:t=>De(n=>({...n,[e]:t.target.checked})),style:{accentColor:`#ffaa00`,cursor:`pointer`,width:`16px`,height:`16px`}}),e]},e))})]})]}),(0,f.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`1.5rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Book Session`})]})]})})]})}export{ou as n,iu as r,ku as t}; \ No newline at end of file diff --git a/dist/assets/admin-C5-foetU.js b/dist/assets/admin-C5-foetU.js new file mode 100644 index 0000000..acb8857 --- /dev/null +++ b/dist/assets/admin-C5-foetU.js @@ -0,0 +1 @@ +import{a as e,c as t,i as n,l as r,m as i,n as a,o,r as s,s as c,t as l,u}from"./x-DnG5sti3.js";var d=e(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),f=e(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),p=e(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),m=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),h=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),g=e(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),_=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),v=e(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),y=e(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),b=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),x=e(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),S=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),C=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),w=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),T=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),E=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),D=e(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),O=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),k=e(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),A=i(u(),1),j=r(),M=t();function N(){return localStorage.getItem(`admin_token`)}function P(e){localStorage.setItem(`admin_token`,e)}function F(){localStorage.removeItem(`admin_token`)}async function I(e,t={}){let n={...t.headers};t.body instanceof FormData||(n[`Content-Type`]=`application/json`);let r=N();r&&(n.Authorization=`Bearer ${r}`);let i=await fetch(`${o}${e}`,{...t,headers:n}),a=await i.json().catch(()=>({}));if(!i.ok)throw Error(a.error||`Request failed`);return a}var L={login:(e,t)=>I(`/api/auth/login`,{method:`POST`,body:JSON.stringify({username:e,password:t})}),me:()=>I(`/api/auth/me`),getContent:()=>I(`/api/content`),updateSection:(e,t)=>I(`/api/content/${e}`,{method:`PUT`,body:JSON.stringify(t)}),changePassword:(e,t)=>I(`/api/auth/password`,{method:`PUT`,body:JSON.stringify({currentPassword:e,newPassword:t})}),upload:async e=>{let t=new FormData;return t.append(`file`,e),I(`/api/upload`,{method:`POST`,body:t})}};function R({value:e,onChange:t,label:n=`Image`}){let[r,i]=(0,A.useState)(!1);return(0,M.jsxs)(`div`,{className:`form-field`,children:[(0,M.jsx)(`label`,{className:`form-label`,children:n}),e&&(0,M.jsx)(`div`,{className:`form-preview`,children:e.match(/\.(mp4|webm)$/i)?(0,M.jsx)(`video`,{src:e,controls:!0}):(0,M.jsx)(`img`,{src:e,alt:``})}),(0,M.jsx)(`input`,{type:`text`,className:`form-input`,value:e||``,onChange:e=>t(e.target.value),placeholder:`Paste URL or upload a file below`}),(0,M.jsxs)(`label`,{className:`form-upload-btn`,children:[(0,M.jsx)(k,{size:14}),r?`Uploading...`:`Choose file`,(0,M.jsx)(`input`,{type:`file`,accept:`image/*,video/mp4`,onChange:async e=>{let n=e.target.files?.[0];if(n){i(!0);try{let{url:e}=await L.upload(n);t(e)}catch(e){alert(e.message)}finally{i(!1)}}},hidden:!0,disabled:r})]})]})}function z({label:e,value:t,onChange:n,multiline:r=!1,type:i=`text`}){return(0,M.jsxs)(`div`,{className:`form-field`,children:[(0,M.jsx)(`label`,{className:`form-label`,children:e}),r?(0,M.jsx)(`textarea`,{className:`form-textarea`,value:t||``,onChange:e=>n(e.target.value),rows:4}):(0,M.jsx)(`input`,{type:i,className:`form-input`,value:t||``,onChange:e=>n(e.target.value)})]})}function B({label:e,items:t,onChange:n,fields:r}){let i=(e,r,i)=>{n(t.map((t,n)=>n===e?{...t,[r]:i}:t))},a=()=>{let e=r.reduce((e,t)=>({...e,[t.key]:t.default??``}),{id:Date.now()});n([...t,e])},o=e=>n(t.filter((t,n)=>n!==e));return(0,M.jsxs)(`div`,{className:`array-section`,children:[(0,M.jsxs)(`div`,{className:`array-header`,children:[(0,M.jsx)(`h4`,{className:`array-title`,children:e}),(0,M.jsxs)(`button`,{type:`button`,onClick:a,className:`array-add-btn`,children:[(0,M.jsx)(w,{size:14}),` Add item`]})]}),t.length===0&&(0,M.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.85rem`,margin:`0 0 1rem`},children:`No items yet. Click "Add item" to create one.`}),t.map((e,t)=>(0,M.jsxs)(`div`,{className:`array-item`,children:[(0,M.jsxs)(`div`,{className:`array-item-header`,children:[(0,M.jsxs)(`span`,{className:`array-item-badge`,children:[`Item `,t+1]}),(0,M.jsxs)(`button`,{type:`button`,onClick:()=>o(t),className:`array-remove-btn`,children:[(0,M.jsx)(O,{size:12}),` Remove`]})]}),r.map(n=>n.type===`image`?(0,M.jsx)(R,{label:n.label,value:e[n.key],onChange:e=>i(t,n.key,e)},n.key):(0,M.jsx)(z,{label:n.label,value:e[n.key],onChange:e=>i(t,n.key,e),multiline:n.multiline},n.key))]},e.id??t))]})}var V={hero:`home`,about:`aboutus`,certifications:`certifications`,services:`services`,whyUs:`whyus`,gallery:`featured-gallery`,products:`products`,insights:`insights`,footer:`contactus`};function H(e,t,n){if(!e||!n)return e;let r={...e};return t===`hero`?(r.hero=n.hero??r.hero,r.metrics=n.metrics??r.metrics):t===`about`?(r.about=n.about??r.about,r.partners=n.partners??r.partners):r[t]=n,r}var U=`/citpl_website/preview.html`,W=1440,G=900;function K({section:e,label:t,content:n,sectionData:r}){let i=(0,A.useRef)(null),a=(0,A.useRef)(null),o=(0,A.useRef)({}),s=(0,A.useRef)(null),c=V[e]||`home`,[l,u]=(0,A.useState)(.45),[d,f]=(0,A.useState)(!1),[p,m]=(0,A.useState)(!1),[_,v]=(0,A.useState)(!1);o.current={content:n,sectionData:r,section:e,anchor:c},(0,A.useEffect)(()=>{let e=window.setTimeout(()=>v(!0),50);return()=>window.clearTimeout(e)},[]),(0,A.useEffect)(()=>{let e=e=>{e.origin===window.location.origin&&e.data?.type===`PREVIEW_READY`&&m(!0)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,A.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{let t=e.clientWidth;u(t>0?t/W:.45)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let y=(0,A.useCallback)((e=!1)=>{let t=()=>{let e=a.current,{content:t,sectionData:n,section:r,anchor:i}=o.current;!e?.contentWindow||!t||!n||e.contentWindow.postMessage({type:`ADMIN_PREVIEW`,section:r,anchor:i,fullContent:H(t,r,n)},window.location.origin)};if(e){window.clearTimeout(s.current),t();return}window.clearTimeout(s.current),s.current=window.setTimeout(t,200)},[]);(0,A.useEffect)(()=>{d&&y(!0)},[d,e,c,d,y]),(0,A.useEffect)(()=>{if(d)return y(!1),()=>window.clearTimeout(s.current)},[n,r,d,y]);let b=()=>{f(!0),y(!0)},x=!_||!d||!p;return(0,M.jsxs)(`aside`,{className:`admin-preview-panel`,children:[(0,M.jsxs)(`div`,{className:`admin-preview-panel-header`,children:[(0,M.jsxs)(`div`,{children:[(0,M.jsxs)(`span`,{className:`admin-preview-eyebrow`,children:[(0,M.jsx)(g,{size:14}),`Live preview`]}),(0,M.jsx)(`h3`,{children:t})]}),(0,M.jsxs)(`a`,{href:`/citpl_website/#${c}`,target:`_blank`,rel:`noopener noreferrer`,className:`admin-preview-open`,children:[(0,M.jsx)(h,{size:13}),`Open`]})]}),(0,M.jsxs)(`div`,{className:`admin-preview-shell`,children:[(0,M.jsxs)(`div`,{className:`admin-preview-chrome`,children:[(0,M.jsx)(`span`,{className:`admin-preview-dot`}),(0,M.jsx)(`span`,{className:`admin-preview-dot`}),(0,M.jsx)(`span`,{className:`admin-preview-dot`}),(0,M.jsxs)(`span`,{className:`admin-preview-url`,children:[`/`,c]})]}),(0,M.jsxs)(`div`,{className:`admin-preview-viewport`,ref:i,style:{height:G*l},children:[x&&(0,M.jsxs)(`div`,{className:`admin-preview-loading`,children:[(0,M.jsx)(`div`,{className:`admin-spinner`}),(0,M.jsx)(`span`,{children:`Loading preview…`})]}),_&&(0,M.jsx)(`div`,{className:`admin-preview-stage`,style:{width:W*l,height:G*l,opacity:+!x},children:(0,M.jsx)(`iframe`,{ref:a,src:U,title:`${t} preview`,className:`admin-preview-iframe`,onLoad:b,style:{width:W,height:G,transform:`scale(${l})`}})})]})]}),(0,M.jsx)(`p`,{className:`admin-preview-note`,children:`Updates as you edit. Save to publish to the live site.`})]})}function q(e,t){if(!e||t===`dashboard`||t===`settings`)return null;if(t===`hero`)return{hero:structuredClone(e.hero??{}),metrics:structuredClone(e.metrics??[])};if(t===`about`)return{about:structuredClone(e.about??{}),partners:structuredClone(e.partners??{logos:[]})};let n=e[t];return n?structuredClone(n):null}var J=`/citpl_website/`,Y=[{label:`Overview`,items:[{id:`dashboard`,label:`Dashboard`,icon:y,desc:`Overview and quick access to all sections`}]},{label:`Page Content`,items:[{id:`hero`,label:`Hero & Metrics`,icon:a,desc:`Homepage headline, video, and statistics`},{id:`about`,label:`About & Partners`,icon:f,desc:`About section and partner logos`},{id:`certifications`,label:`Certifications`,icon:d,desc:`Certification badges and headings`},{id:`services`,label:`Services`,icon:b,desc:`Service cards and section copy`},{id:`whyUs`,label:`Why Us`,icon:D,desc:`Value propositions and images`},{id:`gallery`,label:`Gallery`,icon:v,desc:`Featured case studies and gallery items`},{id:`products`,label:`Products`,icon:C,desc:`Product suite cards and stats`},{id:`insights`,label:`Insights`,icon:_,desc:`Blog and insight carousel items`},{id:`footer`,label:`Footer & Links`,icon:x,desc:`CTA, social links, and footer navigation`}]},{label:`Account`,items:[{id:`settings`,label:`Settings`,icon:E,desc:`Password and account preferences`}]}],X=Y.flatMap(e=>e.items),Z=Object.fromEntries(X.map(e=>[e.id,e.desc]));function Q({message:e,type:t}){return e?(0,M.jsxs)(`div`,{className:`toast ${t}`,children:[t===`success`?(0,M.jsx)(m,{size:18}):(0,M.jsx)(p,{size:18}),e]}):null}function ee(){let e=(0,A.useRef)(null),[t,n]=(0,A.useState)(.5),r=1280;return(0,A.useEffect)(()=>{let t=e.current;if(!t)return;let i=()=>{n(t.clientWidth/r)};i();let a=new ResizeObserver(i);return a.observe(t),()=>a.disconnect()},[]),(0,M.jsxs)(`div`,{className:`login-preview`,children:[(0,M.jsxs)(`div`,{className:`login-preview-intro`,children:[(0,M.jsx)(`img`,{src:`${J}assets/cavin_logo.svg`,alt:`Cavin Infotech`}),(0,M.jsxs)(`div`,{children:[(0,M.jsxs)(`h1`,{children:[`Content `,(0,M.jsx)(`span`,{children:`Manager`})]}),(0,M.jsx)(`p`,{children:`Preview the live website before you sign in. Edits publish instantly after login.`})]}),(0,M.jsxs)(`a`,{href:J,target:`_blank`,rel:`noopener noreferrer`,className:`login-preview-link`,children:[(0,M.jsx)(h,{size:14}),`Open full site`]})]}),(0,M.jsxs)(`div`,{className:`login-preview-shell`,children:[(0,M.jsxs)(`div`,{className:`login-preview-chrome`,children:[(0,M.jsx)(`span`,{className:`login-preview-dot`}),(0,M.jsx)(`span`,{className:`login-preview-dot`}),(0,M.jsx)(`span`,{className:`login-preview-dot`}),(0,M.jsx)(`span`,{className:`login-preview-url`,children:`cavininfotech.com`})]}),(0,M.jsx)(`div`,{className:`login-preview-viewport`,ref:e,style:{height:800*t},children:(0,M.jsx)(`div`,{className:`login-preview-stage`,style:{width:r*t,height:800*t},children:(0,M.jsx)(`iframe`,{src:`${J}preview.html`,title:`Website preview`,className:`login-preview-iframe`,style:{width:r,height:800,transform:`scale(${t})`}})})})]})]})}function te({onLogin:e}){let[t,n]=(0,A.useState)(``),[r,i]=(0,A.useState)(``),[a,o]=(0,A.useState)(``),[s,c]=(0,A.useState)(!1);return(0,M.jsxs)(`div`,{className:`login-page`,children:[(0,M.jsx)(ee,{}),(0,M.jsx)(`div`,{className:`login-form-side`,children:(0,M.jsxs)(`form`,{className:`login-card`,onSubmit:async n=>{n.preventDefault(),c(!0),o(``);try{let{token:n}=await L.login(t,r);P(n),e()}catch(e){o(e.message)}finally{c(!1)}},children:[(0,M.jsx)(`h2`,{children:`Welcome back`}),(0,M.jsx)(`p`,{className:`login-subtitle`,children:`Sign in to your admin account`}),a&&(0,M.jsxs)(`div`,{className:`login-error`,children:[(0,M.jsx)(p,{size:16}),a]}),(0,M.jsx)(z,{label:`Username`,value:t,onChange:n}),(0,M.jsx)(z,{label:`Password`,value:r,onChange:i,type:`password`}),(0,M.jsx)(`button`,{type:`submit`,className:`btn-primary`,disabled:s,children:s?`Signing in...`:`Sign in`})]})})]})}function $({loading:e,error:t}){return(0,M.jsx)(`div`,{className:`admin-editor-placeholder`,children:e?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`admin-spinner`}),(0,M.jsx)(`p`,{children:`Loading section content...`})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(p,{size:22}),(0,M.jsx)(`p`,{children:t||`Unable to load this section.`})]})})}var ne=class extends A.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,M.jsxs)(`div`,{className:`admin-card admin-editor-placeholder`,children:[(0,M.jsx)(p,{size:22}),(0,M.jsx)(`p`,{children:`Something went wrong loading this section.`}),(0,M.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:this.state.error.message}),(0,M.jsx)(`button`,{type:`button`,className:`btn-secondary`,onClick:()=>this.setState({error:null}),children:`Try again`})]}):this.props.children}};function re({section:e,data:t,onChange:n}){if(!t)return(0,M.jsx)($,{loading:!1,error:`No content found for this section.`});switch(e){case`hero`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(R,{label:`Hero Video`,value:t.hero?.video,onChange:e=>n({...t,hero:{...t.hero,video:e}})}),(0,M.jsx)(z,{label:`Badge Text`,value:t.hero?.badge,onChange:e=>n({...t,hero:{...t.hero,badge:e}})}),(0,M.jsx)(z,{label:`Headline`,value:t.hero?.headline,onChange:e=>n({...t,hero:{...t.hero,headline:e}})}),(0,M.jsx)(z,{label:`Subheadline`,value:t.hero?.subheadline,onChange:e=>n({...t,hero:{...t.hero,subheadline:e}})}),(0,M.jsx)(B,{label:`Metrics`,items:t.metrics||[],onChange:e=>n({...t,metrics:e}),fields:[{key:`value`,label:`Value`},{key:`label`,label:`Label`}]})]});case`about`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`About Heading`,value:t.about?.heading,onChange:e=>n({about:{...t.about,heading:e},partners:t.partners})}),(0,M.jsx)(R,{label:`Badge Image`,value:t.about?.badgeImage,onChange:e=>n({about:{...t.about,badgeImage:e},partners:t.partners})}),(0,M.jsx)(z,{label:`Badge Alt Text`,value:t.about?.badgeAlt,onChange:e=>n({about:{...t.about,badgeAlt:e},partners:t.partners})}),(0,M.jsx)(R,{label:`Background Image`,value:t.about?.backgroundImage,onChange:e=>n({about:{...t.about,backgroundImage:e},partners:t.partners})}),(0,M.jsx)(z,{label:`Partners Heading`,value:t.partners?.heading,onChange:e=>n({about:t.about,partners:{...t.partners,heading:e}})}),(0,M.jsx)(z,{label:`Partners Subheading`,value:t.partners?.subheading,onChange:e=>n({about:t.about,partners:{...t.partners,subheading:e}})}),(0,M.jsx)(z,{label:`Partners Body`,value:t.partners?.body,onChange:e=>n({about:t.about,partners:{...t.partners,body:e}}),multiline:!0}),(0,M.jsx)(B,{label:`Partner Logos`,items:t.partners?.logos||[],onChange:e=>n({about:t.about,partners:{...t.partners,logos:e}}),fields:[{key:`name`,label:`Name`},{key:`image`,label:`Logo`,type:`image`}]})]});case`certifications`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Section Heading`,value:t.heading,onChange:e=>n({...t,heading:e})}),(0,M.jsx)(B,{label:`Certifications`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`image`,label:`Image`,type:`image`},{key:`alt`,label:`Alt Text`}]})]});case`services`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,M.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,M.jsx)(z,{label:`Intro`,value:t.intro,onChange:e=>n({...t,intro:e}),multiline:!0}),(0,M.jsx)(B,{label:`Service Cards`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`number`,label:`Number`},{key:`title`,label:`Title`},{key:`boldStatement`,label:`Bold Statement`},{key:`description`,label:`Description`,multiline:!0},{key:`cta`,label:`CTA Text`}]})]});case`whyUs`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,M.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,M.jsx)(B,{label:`Value Cards`,items:t.cards||[],onChange:e=>n({...t,cards:e}),fields:[{key:`title`,label:`Title`},{key:`description`,label:`Description`,multiline:!0}]}),(0,M.jsx)(B,{label:`Images`,items:t.images||[],onChange:e=>n({...t,images:e}),fields:[{key:`src`,label:`Image`,type:`image`},{key:`alt`,label:`Alt Text`}]})]});case`gallery`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,M.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,M.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,M.jsx)(B,{label:`Gallery Items`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`title`,label:`Title`},{key:`category`,label:`Category`},{key:`excerpt`,label:`Excerpt`,multiline:!0},{key:`image`,label:`Image`,type:`image`},{key:`readTime`,label:`Read Time`}]})]});case`products`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,M.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,M.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,M.jsx)(B,{label:`Products`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`name`,label:`Name`},{key:`description`,label:`Description`,multiline:!0},{key:`image`,label:`Dashboard Image`,type:`image`}]})]});case`insights`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,M.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,M.jsx)(B,{label:`Insight Cards`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`category`,label:`Category`},{key:`title`,label:`Title`},{key:`date`,label:`Date`},{key:`excerpt`,label:`Excerpt`,multiline:!0},{key:`image`,label:`Image`,type:`image`}]})]});case`footer`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(z,{label:`CTA Headline`,value:t.cta?.headline,onChange:e=>n({...t,cta:{...t.cta,headline:e}})}),(0,M.jsx)(z,{label:`CTA Body`,value:t.cta?.body,onChange:e=>n({...t,cta:{...t.cta,body:e}}),multiline:!0}),(0,M.jsx)(R,{label:`CTA Image`,value:t.cta?.image,onChange:e=>n({...t,cta:{...t.cta,image:e}})}),(0,M.jsx)(z,{label:`Primary Button`,value:t.cta?.primaryButton,onChange:e=>n({...t,cta:{...t.cta,primaryButton:e}})}),(0,M.jsx)(z,{label:`Secondary Button`,value:t.cta?.secondaryButton,onChange:e=>n({...t,cta:{...t.cta,secondaryButton:e}})}),(0,M.jsx)(B,{label:`Quick Links`,items:t.quickLinks||[],onChange:e=>n({...t,quickLinks:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]}),(0,M.jsx)(B,{label:`Product Links`,items:t.productLinks||[],onChange:e=>n({...t,productLinks:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]}),(0,M.jsx)(B,{label:`Social Links`,items:t.social||[],onChange:e=>n({...t,social:e}),fields:[{key:`platform`,label:`Platform`},{key:`url`,label:`URL`}]}),(0,M.jsx)(B,{label:`Legal Links`,items:t.legal||[],onChange:e=>n({...t,legal:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]})]});default:return null}}function ie(){let[e,t]=(0,A.useState)(``),[n,r]=(0,A.useState)(``),[i,a]=(0,A.useState)(``);return(0,M.jsxs)(`div`,{className:`admin-card settings-card`,children:[(0,M.jsx)(`h1`,{children:`Settings`}),(0,M.jsx)(`p`,{className:`subtitle`,children:`Update your admin password. Use at least 6 characters.`}),(0,M.jsxs)(`form`,{onSubmit:async i=>{i.preventDefault();try{await L.changePassword(e,n),a(`Password updated successfully`),t(``),r(``)}catch(e){a(e.message)}},children:[(0,M.jsx)(z,{label:`Current Password`,value:e,onChange:t,type:`password`}),(0,M.jsx)(z,{label:`New Password`,value:n,onChange:r,type:`password`}),i&&(0,M.jsx)(`p`,{className:i.includes(`success`)?`msg-success`:`msg-error`,children:i}),(0,M.jsx)(`button`,{type:`submit`,className:`btn-primary`,style:{marginTop:`0.5rem`},children:`Update Password`})]})]})}function ae(e){return e?new Date(e).toLocaleString(`en-IN`,{day:`numeric`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`}):`—`}function oe(){let[e,t]=(0,A.useState)(!1),[r,i]=(0,A.useState)(!0),[a,o]=(0,A.useState)(`dashboard`),[u,d]=(0,A.useState)(null),[f,p]=(0,A.useState)(!1),[m,g]=(0,A.useState)(``),[_,v]=(0,A.useState)(null),[y,b]=(0,A.useState)(!1),[x,C]=(0,A.useState)({message:``,type:``}),[w,E]=(0,A.useState)(!1),[D,O]=(0,A.useState)(null),k=(e,t)=>{C({message:e,type:t}),setTimeout(()=>C({message:``,type:``}),3500)},j=e=>{if(o(e),E(!1),e===`dashboard`||e===`settings`){v(null);return}u&&v(q(u,e))};(0,A.useEffect)(()=>{let e=()=>{window.innerWidth>900&&E(!1)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,A.useEffect)(()=>{if(!N()){i(!1);return}L.me().then(()=>{t(!0),i(!1)}).catch(()=>{F(),i(!1)})},[]),(0,A.useEffect)(()=>{if(!e)return;let t=document.createElement(`link`);t.rel=`prefetch`,t.href=`${J}preview.html`,document.head.appendChild(t),p(!0),g(``),L.getContent().then(e=>{let{_updatedAt:t,...n}=e;d(n),O(t)}).catch(e=>{console.warn(`Admin content API failed, using seed fallback:`,e.message),d(c),g(`Could not reach the API. Showing default content — start the server with npm run dev.`)}).finally(()=>p(!1))},[e]),(0,A.useEffect)(()=>{!u||a===`dashboard`||a===`settings`||v(q(u,a))},[u,a]);let P=async()=>{b(!0);try{a===`hero`?(await L.updateSection(`hero`,_.hero),await L.updateSection(`metrics`,_.metrics)):a===`about`?(await L.updateSection(`about`,_.about),await L.updateSection(`partners`,_.partners)):await L.updateSection(a,_);let{_updatedAt:e,...t}=await L.getContent();d(t),O(e),k(`Changes saved successfully`,`success`)}catch(e){k(e.message,`error`)}finally{b(!1)}};if(r)return(0,M.jsxs)(`div`,{className:`admin-loading`,children:[(0,M.jsx)(`div`,{className:`admin-spinner`}),(0,M.jsx)(`span`,{children:`Loading admin panel...`})]});if(!e)return(0,M.jsx)(te,{onLogin:()=>t(!0)});let I=X.find(e=>e.id===a),R=a!==`dashboard`&&a!==`settings`;return(0,M.jsxs)(`div`,{className:`admin-layout`,children:[(0,M.jsx)(`button`,{type:`button`,className:`admin-mobile-toggle`,"aria-label":`Toggle menu`,onClick:()=>E(e=>!e),children:w?(0,M.jsx)(l,{size:20}):(0,M.jsx)(s,{size:20})}),(0,M.jsx)(`div`,{className:`admin-sidebar-overlay ${w?`visible`:``}`,onClick:()=>E(!1)}),(0,M.jsxs)(`aside`,{className:`admin-sidebar ${w?`open`:``}`,children:[(0,M.jsxs)(`div`,{className:`admin-sidebar-brand`,children:[(0,M.jsx)(`img`,{src:`${J}assets/cavin_logo.svg`,alt:`Cavin Infotech`}),(0,M.jsx)(`h2`,{children:`Content Manager`}),(0,M.jsx)(`p`,{children:`Cavin Infotech Website`})]}),(0,M.jsx)(`nav`,{className:`admin-nav`,children:Y.map(e=>(0,M.jsxs)(`div`,{className:`admin-nav-group`,children:[(0,M.jsx)(`div`,{className:`admin-nav-group-label`,children:e.label}),e.items.map(({id:e,label:t,icon:n})=>(0,M.jsxs)(`button`,{type:`button`,className:a===e?`active`:``,onClick:()=>j(e),children:[(0,M.jsx)(n,{size:17}),t]},e))]},e.label))}),(0,M.jsx)(`div`,{className:`admin-sidebar-footer`,children:(0,M.jsxs)(`button`,{type:`button`,className:`logout-btn`,onClick:()=>{F(),t(!1)},children:[(0,M.jsx)(S,{size:15}),`Sign out`]})})]}),(0,M.jsxs)(`div`,{className:`admin-main-wrap`,children:[(0,M.jsxs)(`header`,{className:`admin-topbar`,children:[(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h1`,{className:`admin-topbar-title`,children:I?.label||`Admin`}),(0,M.jsx)(`p`,{className:`admin-topbar-sub`,children:Z[a]})]}),(0,M.jsxs)(`div`,{className:`admin-topbar-actions`,children:[(0,M.jsxs)(`a`,{href:J,target:`_blank`,rel:`noopener noreferrer`,className:`btn-ghost`,children:[(0,M.jsx)(h,{size:14}),`View site`]}),R&&(0,M.jsxs)(`button`,{type:`button`,className:`btn-primary`,onClick:P,disabled:y,children:[(0,M.jsx)(T,{size:15}),y?`Saving...`:`Save changes`]})]})]}),(0,M.jsx)(`main`,{className:`admin-main`,children:a===`dashboard`?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{className:`dashboard-welcome`,children:[(0,M.jsx)(`h2`,{children:`Welcome to your CMS`}),(0,M.jsx)(`p`,{children:`Edit any section below. All changes are saved to the database and appear on the live website immediately.`}),(0,M.jsx)(`div`,{className:`dashboard-meta`,children:(0,M.jsxs)(`span`,{className:`dashboard-meta-item`,children:[(0,M.jsx)(n,{size:13}),`Last updated: `,ae(D)]})})]}),(0,M.jsx)(`div`,{className:`dashboard-grid`,children:X.filter(e=>e.id!==`dashboard`).map(({id:e,label:t,icon:n,desc:r})=>(0,M.jsxs)(`button`,{type:`button`,className:`dashboard-tile`,onClick:()=>j(e),children:[(0,M.jsx)(`div`,{className:`dashboard-tile-icon`,children:(0,M.jsx)(n,{size:20})}),(0,M.jsx)(`h3`,{children:t}),(0,M.jsx)(`p`,{children:r})]},e))})]}):a===`settings`?(0,M.jsx)(ie,{}):(0,M.jsx)(ne,{children:(0,M.jsxs)(`div`,{className:`admin-editor-layout`,children:[(0,M.jsxs)(`div`,{className:`admin-editor-form admin-card`,children:[f||!_?(0,M.jsx)($,{loading:f,error:m}):(0,M.jsx)(re,{section:a,data:_,onChange:v},a),(0,M.jsxs)(`div`,{className:`save-bar`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn-secondary`,onClick:()=>j(`dashboard`),children:`Cancel`}),(0,M.jsxs)(`button`,{type:`button`,className:`btn-primary`,onClick:P,disabled:y||!_,children:[(0,M.jsx)(T,{size:15}),y?`Saving...`:`Save changes`]})]})]}),!f&&u&&_&&(0,M.jsx)(K,{section:a,label:I?.label||`Section`,content:u,sectionData:_})]})})})]}),(0,M.jsx)(Q,{...x})]})}(0,j.createRoot)(document.getElementById(`root`)).render((0,M.jsx)(A.StrictMode,{children:(0,M.jsx)(oe,{})})); \ No newline at end of file diff --git a/dist/assets/admin-CV3gMvyC.js b/dist/assets/admin-CV3gMvyC.js deleted file mode 100644 index fbfb464..0000000 --- a/dist/assets/admin-CV3gMvyC.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,c as t,i as n,l as r,n as i,o as a,p as o,r as s,s as c,t as l}from"./x-Dfk9cXvs.js";var u=e(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),d=e(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),f=e(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),p=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),m=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),h=e(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),g=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),_=e(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),v=e(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),y=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),b=e(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),x=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),S=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),C=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),w=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),T=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),E=e(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),D=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),O=e(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),k=o(r(),1),A=t(),j=c(),M=`https://demo.cavinkare.in`;function N(){return localStorage.getItem(`admin_token`)}function P(e){localStorage.setItem(`admin_token`,e)}function F(){localStorage.removeItem(`admin_token`)}async function I(e,t={}){let n={...t.headers};t.body instanceof FormData||(n[`Content-Type`]=`application/json`);let r=N();r&&(n.Authorization=`Bearer ${r}`);let i=await fetch(`${M}${e}`,{...t,headers:n}),a=await i.json().catch(()=>({}));if(!i.ok)throw Error(a.error||`Request failed`);return a}var L={login:(e,t)=>I(`/api/auth/login`,{method:`POST`,body:JSON.stringify({username:e,password:t})}),me:()=>I(`/api/auth/me`),getContent:()=>I(`/api/content`),updateSection:(e,t)=>I(`/api/content/${e}`,{method:`PUT`,body:JSON.stringify(t)}),changePassword:(e,t)=>I(`/api/auth/password`,{method:`PUT`,body:JSON.stringify({currentPassword:e,newPassword:t})}),upload:async e=>{let t=new FormData;return t.append(`file`,e),I(`/api/upload`,{method:`POST`,body:t})}};function R({value:e,onChange:t,label:n=`Image`}){let[r,i]=(0,k.useState)(!1);return(0,j.jsxs)(`div`,{className:`form-field`,children:[(0,j.jsx)(`label`,{className:`form-label`,children:n}),e&&(0,j.jsx)(`div`,{className:`form-preview`,children:e.match(/\.(mp4|webm)$/i)?(0,j.jsx)(`video`,{src:e,controls:!0}):(0,j.jsx)(`img`,{src:e,alt:``})}),(0,j.jsx)(`input`,{type:`text`,className:`form-input`,value:e||``,onChange:e=>t(e.target.value),placeholder:`Paste URL or upload a file below`}),(0,j.jsxs)(`label`,{className:`form-upload-btn`,children:[(0,j.jsx)(O,{size:14}),r?`Uploading...`:`Choose file`,(0,j.jsx)(`input`,{type:`file`,accept:`image/*,video/mp4`,onChange:async e=>{let n=e.target.files?.[0];if(n){i(!0);try{let{url:e}=await L.upload(n);t(e)}catch(e){alert(e.message)}finally{i(!1)}}},hidden:!0,disabled:r})]})]})}function z({label:e,value:t,onChange:n,multiline:r=!1,type:i=`text`}){return(0,j.jsxs)(`div`,{className:`form-field`,children:[(0,j.jsx)(`label`,{className:`form-label`,children:e}),r?(0,j.jsx)(`textarea`,{className:`form-textarea`,value:t||``,onChange:e=>n(e.target.value),rows:4}):(0,j.jsx)(`input`,{type:i,className:`form-input`,value:t||``,onChange:e=>n(e.target.value)})]})}function B({label:e,items:t,onChange:n,fields:r}){let i=(e,r,i)=>{n(t.map((t,n)=>n===e?{...t,[r]:i}:t))},a=()=>{let e=r.reduce((e,t)=>({...e,[t.key]:t.default??``}),{id:Date.now()});n([...t,e])},o=e=>n(t.filter((t,n)=>n!==e));return(0,j.jsxs)(`div`,{className:`array-section`,children:[(0,j.jsxs)(`div`,{className:`array-header`,children:[(0,j.jsx)(`h4`,{className:`array-title`,children:e}),(0,j.jsxs)(`button`,{type:`button`,onClick:a,className:`array-add-btn`,children:[(0,j.jsx)(C,{size:14}),` Add item`]})]}),t.length===0&&(0,j.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.85rem`,margin:`0 0 1rem`},children:`No items yet. Click "Add item" to create one.`}),t.map((e,t)=>(0,j.jsxs)(`div`,{className:`array-item`,children:[(0,j.jsxs)(`div`,{className:`array-item-header`,children:[(0,j.jsxs)(`span`,{className:`array-item-badge`,children:[`Item `,t+1]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>o(t),className:`array-remove-btn`,children:[(0,j.jsx)(D,{size:12}),` Remove`]})]}),r.map(n=>n.type===`image`?(0,j.jsx)(R,{label:n.label,value:e[n.key],onChange:e=>i(t,n.key,e)},n.key):(0,j.jsx)(z,{label:n.label,value:e[n.key],onChange:e=>i(t,n.key,e),multiline:n.multiline},n.key))]},e.id??t))]})}var V={hero:`home`,about:`aboutus`,certifications:`certifications`,services:`services`,whyUs:`whyus`,gallery:`featured-gallery`,products:`products`,insights:`insights`,footer:`contactus`};function H(e,t,n){if(!e||!n)return e;let r={...e};return t===`hero`?(r.hero=n.hero??r.hero,r.metrics=n.metrics??r.metrics):t===`about`?(r.about=n.about??r.about,r.partners=n.partners??r.partners):r[t]=n,r}var U=`/preview.html`,W=1440,G=900;function K({section:e,label:t,content:n,sectionData:r}){let i=(0,k.useRef)(null),a=(0,k.useRef)(null),o=(0,k.useRef)({}),s=(0,k.useRef)(null),c=V[e]||`home`,[l,u]=(0,k.useState)(.45),[d,f]=(0,k.useState)(!1),[p,g]=(0,k.useState)(!1),[_,v]=(0,k.useState)(!1);o.current={content:n,sectionData:r,section:e,anchor:c},(0,k.useEffect)(()=>{let e=window.setTimeout(()=>v(!0),50);return()=>window.clearTimeout(e)},[]),(0,k.useEffect)(()=>{let e=e=>{e.origin===window.location.origin&&e.data?.type===`PREVIEW_READY`&&g(!0)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,k.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{let t=e.clientWidth;u(t>0?t/W:.45)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let y=(0,k.useCallback)((e=!1)=>{let t=()=>{let e=a.current,{content:t,sectionData:n,section:r,anchor:i}=o.current;!e?.contentWindow||!t||!n||e.contentWindow.postMessage({type:`ADMIN_PREVIEW`,section:r,anchor:i,fullContent:H(t,r,n)},window.location.origin)};if(e){window.clearTimeout(s.current),t();return}window.clearTimeout(s.current),s.current=window.setTimeout(t,200)},[]);(0,k.useEffect)(()=>{d&&y(!0)},[d,e,c,d,y]),(0,k.useEffect)(()=>{if(d)return y(!1),()=>window.clearTimeout(s.current)},[n,r,d,y]);let b=()=>{f(!0),y(!0)},x=!_||!d||!p;return(0,j.jsxs)(`aside`,{className:`admin-preview-panel`,children:[(0,j.jsxs)(`div`,{className:`admin-preview-panel-header`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`span`,{className:`admin-preview-eyebrow`,children:[(0,j.jsx)(h,{size:14}),`Live preview`]}),(0,j.jsx)(`h3`,{children:t})]}),(0,j.jsxs)(`a`,{href:`/#${c}`,target:`_blank`,rel:`noopener noreferrer`,className:`admin-preview-open`,children:[(0,j.jsx)(m,{size:13}),`Open`]})]}),(0,j.jsxs)(`div`,{className:`admin-preview-shell`,children:[(0,j.jsxs)(`div`,{className:`admin-preview-chrome`,children:[(0,j.jsx)(`span`,{className:`admin-preview-dot`}),(0,j.jsx)(`span`,{className:`admin-preview-dot`}),(0,j.jsx)(`span`,{className:`admin-preview-dot`}),(0,j.jsxs)(`span`,{className:`admin-preview-url`,children:[`/`,c]})]}),(0,j.jsxs)(`div`,{className:`admin-preview-viewport`,ref:i,style:{height:G*l},children:[x&&(0,j.jsxs)(`div`,{className:`admin-preview-loading`,children:[(0,j.jsx)(`div`,{className:`admin-spinner`}),(0,j.jsx)(`span`,{children:`Loading preview…`})]}),_&&(0,j.jsx)(`div`,{className:`admin-preview-stage`,style:{width:W*l,height:G*l,opacity:+!x},children:(0,j.jsx)(`iframe`,{ref:a,src:U,title:`${t} preview`,className:`admin-preview-iframe`,onLoad:b,style:{width:W,height:G,transform:`scale(${l})`}})})]})]}),(0,j.jsx)(`p`,{className:`admin-preview-note`,children:`Updates as you edit. Save to publish to the live site.`})]})}function q(e,t){if(!e||t===`dashboard`||t===`settings`)return null;if(t===`hero`)return{hero:structuredClone(e.hero??{}),metrics:structuredClone(e.metrics??[])};if(t===`about`)return{about:structuredClone(e.about??{}),partners:structuredClone(e.partners??{logos:[]})};let n=e[t];return n?structuredClone(n):null}var J=`/citpl_website/`,Y=[{label:`Overview`,items:[{id:`dashboard`,label:`Dashboard`,icon:v,desc:`Overview and quick access to all sections`}]},{label:`Page Content`,items:[{id:`hero`,label:`Hero & Metrics`,icon:i,desc:`Homepage headline, video, and statistics`},{id:`about`,label:`About & Partners`,icon:d,desc:`About section and partner logos`},{id:`certifications`,label:`Certifications`,icon:u,desc:`Certification badges and headings`},{id:`services`,label:`Services`,icon:y,desc:`Service cards and section copy`},{id:`whyUs`,label:`Why Us`,icon:E,desc:`Value propositions and images`},{id:`gallery`,label:`Gallery`,icon:_,desc:`Featured case studies and gallery items`},{id:`products`,label:`Products`,icon:S,desc:`Product suite cards and stats`},{id:`insights`,label:`Insights`,icon:g,desc:`Blog and insight carousel items`},{id:`footer`,label:`Footer & Links`,icon:b,desc:`CTA, social links, and footer navigation`}]},{label:`Account`,items:[{id:`settings`,label:`Settings`,icon:T,desc:`Password and account preferences`}]}],X=Y.flatMap(e=>e.items),Z=Object.fromEntries(X.map(e=>[e.id,e.desc]));function Q({message:e,type:t}){return e?(0,j.jsxs)(`div`,{className:`toast ${t}`,children:[t===`success`?(0,j.jsx)(p,{size:18}):(0,j.jsx)(f,{size:18}),e]}):null}function ee(){let e=(0,k.useRef)(null),[t,n]=(0,k.useState)(.5),r=1280;return(0,k.useEffect)(()=>{let t=e.current;if(!t)return;let i=()=>{n(t.clientWidth/r)};i();let a=new ResizeObserver(i);return a.observe(t),()=>a.disconnect()},[]),(0,j.jsxs)(`div`,{className:`login-preview`,children:[(0,j.jsxs)(`div`,{className:`login-preview-intro`,children:[(0,j.jsx)(`img`,{src:`${J}assets/cavin_logo.svg`,alt:`Cavin Infotech`}),(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`h1`,{children:[`Content `,(0,j.jsx)(`span`,{children:`Manager`})]}),(0,j.jsx)(`p`,{children:`Preview the live website before you sign in. Edits publish instantly after login.`})]}),(0,j.jsxs)(`a`,{href:J,target:`_blank`,rel:`noopener noreferrer`,className:`login-preview-link`,children:[(0,j.jsx)(m,{size:14}),`Open full site`]})]}),(0,j.jsxs)(`div`,{className:`login-preview-shell`,children:[(0,j.jsxs)(`div`,{className:`login-preview-chrome`,children:[(0,j.jsx)(`span`,{className:`login-preview-dot`}),(0,j.jsx)(`span`,{className:`login-preview-dot`}),(0,j.jsx)(`span`,{className:`login-preview-dot`}),(0,j.jsx)(`span`,{className:`login-preview-url`,children:`cavininfotech.com`})]}),(0,j.jsx)(`div`,{className:`login-preview-viewport`,ref:e,style:{height:800*t},children:(0,j.jsx)(`div`,{className:`login-preview-stage`,style:{width:r*t,height:800*t},children:(0,j.jsx)(`iframe`,{src:J,title:`Website preview`,className:`login-preview-iframe`,style:{width:r,height:800,transform:`scale(${t})`}})})})]})]})}function te({onLogin:e}){let[t,n]=(0,k.useState)(``),[r,i]=(0,k.useState)(``),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1);return(0,j.jsxs)(`div`,{className:`login-page`,children:[(0,j.jsx)(ee,{}),(0,j.jsx)(`div`,{className:`login-form-side`,children:(0,j.jsxs)(`form`,{className:`login-card`,onSubmit:async n=>{n.preventDefault(),c(!0),o(``);try{let{token:n}=await L.login(t,r);P(n),e()}catch(e){o(e.message)}finally{c(!1)}},children:[(0,j.jsx)(`h2`,{children:`Welcome back`}),(0,j.jsx)(`p`,{className:`login-subtitle`,children:`Sign in to your admin account`}),a&&(0,j.jsxs)(`div`,{className:`login-error`,children:[(0,j.jsx)(f,{size:16}),a]}),(0,j.jsx)(z,{label:`Username`,value:t,onChange:n}),(0,j.jsx)(z,{label:`Password`,value:r,onChange:i,type:`password`}),(0,j.jsx)(`button`,{type:`submit`,className:`btn-primary`,disabled:s,children:s?`Signing in...`:`Sign in`})]})})]})}function $({loading:e,error:t}){return(0,j.jsx)(`div`,{className:`admin-editor-placeholder`,children:e?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`admin-spinner`}),(0,j.jsx)(`p`,{children:`Loading section content...`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(f,{size:22}),(0,j.jsx)(`p`,{children:t||`Unable to load this section.`})]})})}var ne=class extends k.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,j.jsxs)(`div`,{className:`admin-card admin-editor-placeholder`,children:[(0,j.jsx)(f,{size:22}),(0,j.jsx)(`p`,{children:`Something went wrong loading this section.`}),(0,j.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:this.state.error.message}),(0,j.jsx)(`button`,{type:`button`,className:`btn-secondary`,onClick:()=>this.setState({error:null}),children:`Try again`})]}):this.props.children}};function re({section:e,data:t,onChange:n}){if(!t)return(0,j.jsx)($,{loading:!1,error:`No content found for this section.`});switch(e){case`hero`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(R,{label:`Hero Video`,value:t.hero?.video,onChange:e=>n({...t,hero:{...t.hero,video:e}})}),(0,j.jsx)(z,{label:`Badge Text`,value:t.hero?.badge,onChange:e=>n({...t,hero:{...t.hero,badge:e}})}),(0,j.jsx)(z,{label:`Headline`,value:t.hero?.headline,onChange:e=>n({...t,hero:{...t.hero,headline:e}})}),(0,j.jsx)(z,{label:`Subheadline`,value:t.hero?.subheadline,onChange:e=>n({...t,hero:{...t.hero,subheadline:e}})}),(0,j.jsx)(B,{label:`Metrics`,items:t.metrics||[],onChange:e=>n({...t,metrics:e}),fields:[{key:`value`,label:`Value`},{key:`label`,label:`Label`}]})]});case`about`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`About Heading`,value:t.about?.heading,onChange:e=>n({about:{...t.about,heading:e},partners:t.partners})}),(0,j.jsx)(R,{label:`Badge Image`,value:t.about?.badgeImage,onChange:e=>n({about:{...t.about,badgeImage:e},partners:t.partners})}),(0,j.jsx)(z,{label:`Badge Alt Text`,value:t.about?.badgeAlt,onChange:e=>n({about:{...t.about,badgeAlt:e},partners:t.partners})}),(0,j.jsx)(R,{label:`Background Image`,value:t.about?.backgroundImage,onChange:e=>n({about:{...t.about,backgroundImage:e},partners:t.partners})}),(0,j.jsx)(z,{label:`Partners Heading`,value:t.partners?.heading,onChange:e=>n({about:t.about,partners:{...t.partners,heading:e}})}),(0,j.jsx)(z,{label:`Partners Subheading`,value:t.partners?.subheading,onChange:e=>n({about:t.about,partners:{...t.partners,subheading:e}})}),(0,j.jsx)(z,{label:`Partners Body`,value:t.partners?.body,onChange:e=>n({about:t.about,partners:{...t.partners,body:e}}),multiline:!0}),(0,j.jsx)(B,{label:`Partner Logos`,items:t.partners?.logos||[],onChange:e=>n({about:t.about,partners:{...t.partners,logos:e}}),fields:[{key:`name`,label:`Name`},{key:`image`,label:`Logo`,type:`image`}]})]});case`certifications`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Section Heading`,value:t.heading,onChange:e=>n({...t,heading:e})}),(0,j.jsx)(B,{label:`Certifications`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`image`,label:`Image`,type:`image`},{key:`alt`,label:`Alt Text`}]})]});case`services`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,j.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,j.jsx)(z,{label:`Intro`,value:t.intro,onChange:e=>n({...t,intro:e}),multiline:!0}),(0,j.jsx)(B,{label:`Service Cards`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`number`,label:`Number`},{key:`title`,label:`Title`},{key:`boldStatement`,label:`Bold Statement`},{key:`description`,label:`Description`,multiline:!0},{key:`cta`,label:`CTA Text`}]})]});case`whyUs`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,j.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,j.jsx)(B,{label:`Value Cards`,items:t.cards||[],onChange:e=>n({...t,cards:e}),fields:[{key:`title`,label:`Title`},{key:`description`,label:`Description`,multiline:!0}]}),(0,j.jsx)(B,{label:`Images`,items:t.images||[],onChange:e=>n({...t,images:e}),fields:[{key:`src`,label:`Image`,type:`image`},{key:`alt`,label:`Alt Text`}]})]});case`gallery`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,j.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,j.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,j.jsx)(B,{label:`Gallery Items`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`title`,label:`Title`},{key:`category`,label:`Category`},{key:`excerpt`,label:`Excerpt`,multiline:!0},{key:`image`,label:`Image`,type:`image`},{key:`readTime`,label:`Read Time`}]})]});case`products`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Eyebrow`,value:t.eyebrow,onChange:e=>n({...t,eyebrow:e})}),(0,j.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,j.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,j.jsx)(B,{label:`Products`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`name`,label:`Name`},{key:`description`,label:`Description`,multiline:!0},{key:`image`,label:`Dashboard Image`,type:`image`}]})]});case`insights`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`Title`,value:t.title,onChange:e=>n({...t,title:e})}),(0,j.jsx)(z,{label:`Subtitle`,value:t.subtitle,onChange:e=>n({...t,subtitle:e}),multiline:!0}),(0,j.jsx)(B,{label:`Insight Cards`,items:t.items||[],onChange:e=>n({...t,items:e}),fields:[{key:`category`,label:`Category`},{key:`title`,label:`Title`},{key:`date`,label:`Date`},{key:`excerpt`,label:`Excerpt`,multiline:!0},{key:`image`,label:`Image`,type:`image`}]})]});case`footer`:return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{label:`CTA Headline`,value:t.cta?.headline,onChange:e=>n({...t,cta:{...t.cta,headline:e}})}),(0,j.jsx)(z,{label:`CTA Body`,value:t.cta?.body,onChange:e=>n({...t,cta:{...t.cta,body:e}}),multiline:!0}),(0,j.jsx)(R,{label:`CTA Image`,value:t.cta?.image,onChange:e=>n({...t,cta:{...t.cta,image:e}})}),(0,j.jsx)(z,{label:`Primary Button`,value:t.cta?.primaryButton,onChange:e=>n({...t,cta:{...t.cta,primaryButton:e}})}),(0,j.jsx)(z,{label:`Secondary Button`,value:t.cta?.secondaryButton,onChange:e=>n({...t,cta:{...t.cta,secondaryButton:e}})}),(0,j.jsx)(B,{label:`Quick Links`,items:t.quickLinks||[],onChange:e=>n({...t,quickLinks:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]}),(0,j.jsx)(B,{label:`Product Links`,items:t.productLinks||[],onChange:e=>n({...t,productLinks:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]}),(0,j.jsx)(B,{label:`Social Links`,items:t.social||[],onChange:e=>n({...t,social:e}),fields:[{key:`platform`,label:`Platform`},{key:`url`,label:`URL`}]}),(0,j.jsx)(B,{label:`Legal Links`,items:t.legal||[],onChange:e=>n({...t,legal:e}),fields:[{key:`label`,label:`Label`},{key:`href`,label:`Link`}]})]});default:return null}}function ie(){let[e,t]=(0,k.useState)(``),[n,r]=(0,k.useState)(``),[i,a]=(0,k.useState)(``);return(0,j.jsxs)(`div`,{className:`admin-card settings-card`,children:[(0,j.jsx)(`h1`,{children:`Settings`}),(0,j.jsx)(`p`,{className:`subtitle`,children:`Update your admin password. Use at least 6 characters.`}),(0,j.jsxs)(`form`,{onSubmit:async i=>{i.preventDefault();try{await L.changePassword(e,n),a(`Password updated successfully`),t(``),r(``)}catch(e){a(e.message)}},children:[(0,j.jsx)(z,{label:`Current Password`,value:e,onChange:t,type:`password`}),(0,j.jsx)(z,{label:`New Password`,value:n,onChange:r,type:`password`}),i&&(0,j.jsx)(`p`,{className:i.includes(`success`)?`msg-success`:`msg-error`,children:i}),(0,j.jsx)(`button`,{type:`submit`,className:`btn-primary`,style:{marginTop:`0.5rem`},children:`Update Password`})]})]})}function ae(e){return e?new Date(e).toLocaleString(`en-IN`,{day:`numeric`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`}):`—`}function oe(){let[e,t]=(0,k.useState)(!1),[r,i]=(0,k.useState)(!0),[o,c]=(0,k.useState)(`dashboard`),[u,d]=(0,k.useState)(null),[f,p]=(0,k.useState)(!1),[h,g]=(0,k.useState)(``),[_,v]=(0,k.useState)(null),[y,b]=(0,k.useState)(!1),[S,C]=(0,k.useState)({message:``,type:``}),[T,E]=(0,k.useState)(!1),[D,O]=(0,k.useState)(null),A=(e,t)=>{C({message:e,type:t}),setTimeout(()=>C({message:``,type:``}),3500)},M=e=>{if(c(e),E(!1),e===`dashboard`||e===`settings`){v(null);return}u&&v(q(u,e))};(0,k.useEffect)(()=>{let e=()=>{window.innerWidth>900&&E(!1)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,k.useEffect)(()=>{if(!N()){i(!1);return}L.me().then(()=>{t(!0),i(!1)}).catch(()=>{F(),i(!1)})},[]),(0,k.useEffect)(()=>{if(!e)return;let t=document.createElement(`link`);t.rel=`prefetch`,t.href=`${J}preview.html`,document.head.appendChild(t),p(!0),g(``),L.getContent().then(e=>{let{_updatedAt:t,...n}=e;d(n),O(t)}).catch(e=>{console.warn(`Admin content API failed, using seed fallback:`,e.message),d(a),g(`Could not reach the API. Showing default content — start the server with npm run dev.`)}).finally(()=>p(!1))},[e]),(0,k.useEffect)(()=>{!u||o===`dashboard`||o===`settings`||v(q(u,o))},[u,o]);let P=async()=>{b(!0);try{o===`hero`?(await L.updateSection(`hero`,_.hero),await L.updateSection(`metrics`,_.metrics)):o===`about`?(await L.updateSection(`about`,_.about),await L.updateSection(`partners`,_.partners)):await L.updateSection(o,_);let{_updatedAt:e,...t}=await L.getContent();d(t),O(e),A(`Changes saved successfully`,`success`)}catch(e){A(e.message,`error`)}finally{b(!1)}};if(r)return(0,j.jsxs)(`div`,{className:`admin-loading`,children:[(0,j.jsx)(`div`,{className:`admin-spinner`}),(0,j.jsx)(`span`,{children:`Loading admin panel...`})]});if(!e)return(0,j.jsx)(te,{onLogin:()=>t(!0)});let I=X.find(e=>e.id===o),R=o!==`dashboard`&&o!==`settings`;return(0,j.jsxs)(`div`,{className:`admin-layout`,children:[(0,j.jsx)(`button`,{type:`button`,className:`admin-mobile-toggle`,"aria-label":`Toggle menu`,onClick:()=>E(e=>!e),children:T?(0,j.jsx)(l,{size:20}):(0,j.jsx)(s,{size:20})}),(0,j.jsx)(`div`,{className:`admin-sidebar-overlay ${T?`visible`:``}`,onClick:()=>E(!1)}),(0,j.jsxs)(`aside`,{className:`admin-sidebar ${T?`open`:``}`,children:[(0,j.jsxs)(`div`,{className:`admin-sidebar-brand`,children:[(0,j.jsx)(`img`,{src:`${J}assets/cavin_logo.svg`,alt:`Cavin Infotech`}),(0,j.jsx)(`h2`,{children:`Content Manager`}),(0,j.jsx)(`p`,{children:`Cavin Infotech Website`})]}),(0,j.jsx)(`nav`,{className:`admin-nav`,children:Y.map(e=>(0,j.jsxs)(`div`,{className:`admin-nav-group`,children:[(0,j.jsx)(`div`,{className:`admin-nav-group-label`,children:e.label}),e.items.map(({id:e,label:t,icon:n})=>(0,j.jsxs)(`button`,{type:`button`,className:o===e?`active`:``,onClick:()=>M(e),children:[(0,j.jsx)(n,{size:17}),t]},e))]},e.label))}),(0,j.jsx)(`div`,{className:`admin-sidebar-footer`,children:(0,j.jsxs)(`button`,{type:`button`,className:`logout-btn`,onClick:()=>{F(),t(!1)},children:[(0,j.jsx)(x,{size:15}),`Sign out`]})})]}),(0,j.jsxs)(`div`,{className:`admin-main-wrap`,children:[(0,j.jsxs)(`header`,{className:`admin-topbar`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h1`,{className:`admin-topbar-title`,children:I?.label||`Admin`}),(0,j.jsx)(`p`,{className:`admin-topbar-sub`,children:Z[o]})]}),(0,j.jsxs)(`div`,{className:`admin-topbar-actions`,children:[(0,j.jsxs)(`a`,{href:J,target:`_blank`,rel:`noopener noreferrer`,className:`btn-ghost`,children:[(0,j.jsx)(m,{size:14}),`View site`]}),R&&(0,j.jsxs)(`button`,{type:`button`,className:`btn-primary`,onClick:P,disabled:y,children:[(0,j.jsx)(w,{size:15}),y?`Saving...`:`Save changes`]})]})]}),(0,j.jsx)(`main`,{className:`admin-main`,children:o===`dashboard`?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`dashboard-welcome`,children:[(0,j.jsx)(`h2`,{children:`Welcome to your CMS`}),(0,j.jsx)(`p`,{children:`Edit any section below. All changes are saved to the database and appear on the live website immediately.`}),(0,j.jsx)(`div`,{className:`dashboard-meta`,children:(0,j.jsxs)(`span`,{className:`dashboard-meta-item`,children:[(0,j.jsx)(n,{size:13}),`Last updated: `,ae(D)]})})]}),(0,j.jsx)(`div`,{className:`dashboard-grid`,children:X.filter(e=>e.id!==`dashboard`).map(({id:e,label:t,icon:n,desc:r})=>(0,j.jsxs)(`button`,{type:`button`,className:`dashboard-tile`,onClick:()=>M(e),children:[(0,j.jsx)(`div`,{className:`dashboard-tile-icon`,children:(0,j.jsx)(n,{size:20})}),(0,j.jsx)(`h3`,{children:t}),(0,j.jsx)(`p`,{children:r})]},e))})]}):o===`settings`?(0,j.jsx)(ie,{}):(0,j.jsx)(ne,{children:(0,j.jsxs)(`div`,{className:`admin-editor-layout`,children:[(0,j.jsxs)(`div`,{className:`admin-editor-form admin-card`,children:[f||!_?(0,j.jsx)($,{loading:f,error:h}):(0,j.jsx)(re,{section:o,data:_,onChange:v},o),(0,j.jsxs)(`div`,{className:`save-bar`,children:[(0,j.jsx)(`button`,{type:`button`,className:`btn-secondary`,onClick:()=>M(`dashboard`),children:`Cancel`}),(0,j.jsxs)(`button`,{type:`button`,className:`btn-primary`,onClick:P,disabled:y||!_,children:[(0,j.jsx)(w,{size:15}),y?`Saving...`:`Save changes`]})]})]}),!f&&u&&_&&(0,j.jsx)(K,{section:o,label:I?.label||`Section`,content:u,sectionData:_})]})})})]}),(0,j.jsx)(Q,{...S})]})}(0,A.createRoot)(document.getElementById(`root`)).render((0,j.jsx)(k.StrictMode,{children:(0,j.jsx)(oe,{})})); \ No newline at end of file diff --git a/dist/assets/main-DHNPwmMh.js b/dist/assets/main-oTwpSzcd.js similarity index 51% rename from dist/assets/main-DHNPwmMh.js rename to dist/assets/main-oTwpSzcd.js index d46ddb6..36a0e09 100644 --- a/dist/assets/main-DHNPwmMh.js +++ b/dist/assets/main-oTwpSzcd.js @@ -1 +1 @@ -import{c as e,l as t,p as n,s as r}from"./x-Dfk9cXvs.js";import{r as i,t as a}from"./App-DyKpc_Hi.js";var o=n(t(),1),s=e(),c=r();(0,s.createRoot)(document.getElementById(`root`)).render((0,c.jsx)(o.StrictMode,{children:(0,c.jsx)(i,{children:(0,c.jsx)(a,{})})})); \ No newline at end of file +import{c as e,l as t,m as n,u as r}from"./x-DnG5sti3.js";import{r as i,t as a}from"./App-CuujNhcz.js";var o=n(r(),1),s=t(),c=e();(0,s.createRoot)(document.getElementById(`root`)).render((0,c.jsx)(o.StrictMode,{children:(0,c.jsx)(i,{children:(0,c.jsx)(a,{})})})); \ No newline at end of file diff --git a/dist/assets/preview-1GetNl6-.js b/dist/assets/preview-C0prGlYe.js similarity index 62% rename from dist/assets/preview-1GetNl6-.js rename to dist/assets/preview-C0prGlYe.js index 9cec645..bb69930 100644 --- a/dist/assets/preview-1GetNl6-.js +++ b/dist/assets/preview-C0prGlYe.js @@ -1 +1 @@ -import{c as e,l as t,p as n,s as r}from"./x-Dfk9cXvs.js";import{n as i,r as a,t as o}from"./App-DyKpc_Hi.js";var s=n(t(),1),c=e(),l=r();function u(){return(0,s.useEffect)(()=>(document.body.classList.add(`admin-preview-embed`),()=>document.body.classList.remove(`admin-preview-embed`)),[]),(0,l.jsx)(o,{previewMode:!0})}(0,c.createRoot)(document.getElementById(`root`)).render((0,l.jsx)(s.StrictMode,{children:(0,l.jsx)(i.Provider,{value:!0,children:(0,l.jsx)(a,{previewMode:!0,children:(0,l.jsx)(u,{})})})})); \ No newline at end of file +import{c as e,l as t,m as n,u as r}from"./x-DnG5sti3.js";import{n as i,r as a,t as o}from"./App-CuujNhcz.js";var s=n(r(),1),c=t(),l=e();function u(){return(0,s.useEffect)(()=>(document.body.classList.add(`admin-preview-embed`),()=>document.body.classList.remove(`admin-preview-embed`)),[]),(0,l.jsx)(o,{previewMode:!0})}(0,c.createRoot)(document.getElementById(`root`)).render((0,l.jsx)(s.StrictMode,{children:(0,l.jsx)(i.Provider,{value:!0,children:(0,l.jsx)(a,{previewMode:!0,children:(0,l.jsx)(u,{})})})})); \ No newline at end of file diff --git a/dist/assets/x-Dfk9cXvs.js b/dist/assets/x-DnG5sti3.js similarity index 98% rename from dist/assets/x-Dfk9cXvs.js rename to dist/assets/x-DnG5sti3.js index c4c9ee7..32a5c8b 100644 --- a/dist/assets/x-Dfk9cXvs.js +++ b/dist/assets/x-DnG5sti3.js @@ -6,4 +6,4 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r= `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),yn=!1;if(vn)try{var bn={};Object.defineProperty(bn,"passive",{get:function(){yn=!0}}),window.addEventListener(`test`,bn,bn),window.removeEventListener(`test`,bn,bn)}catch{yn=!1}var xn=null,Sn=null,Cn=null;function wn(){if(Cn)return Cn;var e,t=Sn,n=t.length,r,i=`value`in xn?xn.value:xn.textContent,a=i.length;for(e=0;e=nr),ar=` `,or=!1;function sr(e,t){switch(e){case`keyup`:return er.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function cr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var lr=!1;function ur(e,t){switch(e){case`compositionend`:return cr(t);case`keypress`:return t.which===32?(or=!0,ar):null;case`textInput`:return e=t.data,e===ar&&or?null:e;default:return null}}function dr(e,t){if(lr)return e===`compositionend`||!tr&&sr(e,t)?(e=wn(),Cn=Sn=xn=null,lr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Nr(n)}}function Fr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Rr=vn&&`documentMode`in document&&11>=document.documentMode,zr=null,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||zr==null||zr!==Gt(r)||(r=zr,`selectionStart`in r&&Lr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&Mr(Vr,r)||(Vr=r,r=Ed(Br,`onSelect`),0>=o,i-=o,Fi=1<<32-qe(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),j&&Li(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),j&&Li(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return j&&Li(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),j&&Li(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ha(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=Si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=xi(o.type,o.key,o.props,null,e.mode,c),Ha(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ti(o,e.mode,c),c.return=e,e=c}return s(e);case w:return o=Fa(o),b(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(se(o)){if(l=se(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Va(o),c);if(o.$$typeof===S)return b(e,r,ua(e,o),c);Ua(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=b(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=_i(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=mi(e),pi(e,null,n),t}return ui(e,r,t,n),mi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(q&p)===p:(r&p)===p){p!==0&&p===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:qa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,zs(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),pu(e)):Rs(e,t,r,pu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=As(e).queue;Ds(e,a,t,de,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},pu())}function Ms(){return la(Qf)}function Ns(){return R().memoizedState}function Ps(){return R().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Xa(n);var r=Za(t,e,n);r!==null&&(hu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=di(e,t,n,r),n!==null&&(hu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,pu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,jr(s,o))return ui(e,t,i,0),G===null&&li(),!1}catch{}if(n=di(e,t,i,r),n!==null)return hu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=di(e,n,r,2),t!==null&&hu(t,e,2)}function Bs(e){var t=e.alternate;return e===P||t!==null&&t===P}function Vs(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var Us={readContext:la,use:Ro,useCallback:L,useContext:L,useEffect:L,useImperativeHandle:L,useLayoutEffect:L,useInsertionEffect:L,useMemo:L,useReducer:L,useRef:L,useState:L,useDebugValue:L,useDeferredValue:L,useTransition:L,useSyncExternalStore:L,useId:L,useHostTransitionStatus:L,useFormState:L,useActionState:L,useOptimistic:L,useMemoCache:L,useCacheRefresh:L};Us.useEffectEvent=L;var Ws={readContext:la,use:Ro,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(So){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(So){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Ls.bind(null,P,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Fo(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ds.bind(null,P,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=P,a=Fo();if(j){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),G===null)throw Error(i(349));q&127||Go(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ms(qo.bind(null,r,o,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=G.identifierPrefix;if(j){var n=Ii,r=Fi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return B(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=_e.current,Yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Hi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ki(t,!0)}else e=Bd(e).createTextNode(r),e[gt]=t,t.stateNode=e}return B(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[gt]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),e=!1}else n=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_o(t),t):(_o(t),null);if(t.flags&128)throw Error(i(558))}return B(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[gt]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),a=!1}else a=Zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(_o(t),t):(_o(t),null)}return _o(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),B(t),null);case 4:return be(),e===null&&Sd(t.stateNode.containerInfo),B(t),null;case 10:return ra(t.type),B(t),null;case 19:if(D(N),r=t.memoizedState,r===null)return B(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Vc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=vo(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bi(n,e),n=n.sibling;return O(N,N.current&1|2),j&&Li(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>nu&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}else{if(!a)if(e=vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!j)return B(t),null}else 2*Fe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(B(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=N.current,O(N,a?n&1|2:n&1),j&&Li(t,r.treeForkCount),e);case 22:case 23:return _o(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(B(t),t.subtreeFlags&6&&(t.flags|=8192)):B(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&D(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(M),B(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(Bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(M),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(_o(t),t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_o(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(N),null;case 4:return be(),null;case 10:return ra(t.type),null;case 22:case 23:return _o(t),lo(),e!==null&&D(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(M),null;case 25:return null;default:return null}}function Wc(e,t){switch(Bi(t),t.tag){case 3:ra(M),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&_o(t);break;case 13:_o(t);break;case 19:D(N);break;case 10:ra(t.type);break;case 22:case 23:_o(t),lo(),e!==null&&D(Ta);break;case 24:ra(M)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Z(e,e.return,t)}}}function Jc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[_t]=t}catch(t){Z(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[gt]=e,t[_t]=n}catch(t){Z(e,e.return,t)}}var il=!1,V=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,H=null;function sl(e,t){if(e=e.containerInfo,Rd=sp,e=Ir(e),Lr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){switch(t=H,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(o,r,n),o[gt]=e,k(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Pr(s,h),v=Pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=lu,lu=null;var o=au,s=su;if(X=0,ou=au=null,su=0,W&6)throw Error(i(331));var c=W;if(W|=4,Il(o.current),Ol(o,o.current,s,n),W=c,id(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{E.p=a,T.T=r,Vu(e,t)}}function Wu(e,t,n){t=Di(n,t),t=rc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(ot(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Di(n,e),n=ic(2),r=Za(t,n,2),r!==null&&(ac(n,r,t,e),ot(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Fe()-eu?!(W&2)&&Su(e,0):Jl|=n,Xl===q&&(Xl=0)),rd(e)}function qu(e,t){t===0&&(t=it()),e=fi(e,t),e!==null&&(ot(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return je(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=q,a=tt(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Fe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}X!==0&&X!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),k(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),k(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),k(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Ot(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);k(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),k(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),k(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=_e.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),k(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,k(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),k(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,k(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),k(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,k(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),k(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,k(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),k(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),x=s(((e,t)=>{t.exports=b()})),ee={site:{title:`Cavin Infotech | One Trusted Technology Partner`,logo:`/assets/cavin_logo.svg`,copyright:`Copyrights reserved to CAVIN INFOTECH`},navigation:[{label:`Home`,href:`#home`,type:`hash`},{label:`About Us`,href:`#aboutus`,type:`hash`},{label:`Products`,href:`#products`,type:`hash`},{label:`Careers`,href:`#careers`,type:`modal`},{label:`Contact Us`,href:`#contactus`,type:`hash`}],hero:{video:`/assets/Citpl Hero Dubai(1).mp4`,badge:`Chennai & Dubai • Trusted by 100+ Clients`,headline:`Infinite Possibilities`,subheadline:`One Trusted Technology Partner`},metrics:[{value:`100+`,label:`Clients`},{value:`5+`,label:`Years of Global Operations`},{value:`4`,label:`Group Companies`},{value:`2`,label:`Global Offices`}],about:{heading:`Trusted Technology Partner`,badgeImage:`/assets/frost_sullivan.svg`,badgeAlt:`Frost & Sullivan Logo`,backgroundImage:`/assets/partner_bg.png`},partners:{heading:`Trusted By Leaders`,subheading:`from various industries`,body:`Professionals Trust Our Solutions And Complete Their Journeys.`,logos:[{name:`CavinKare`,image:`/assets/Frame 27.svg`},{name:`Valeo`,image:`/assets/Frame 28.svg`},{name:`Polyhose`,image:`/assets/Frame 30.svg`},{name:`ACA Global`,image:`/assets/Frame 31.svg`},{name:`Dawn Pictures`,image:`/assets/Frame 32.svg`},{name:`MRF`,image:`/assets/Frame 33.svg`},{name:`Chola MS`,image:`/assets/Frame 34.svg`},{name:`Hero`,image:`/assets/Frame 35.svg`},{name:`BorgWarner`,image:`/assets/Frame 36.svg`},{name:`KONE`,image:`/assets/kone.png`}]},certifications:{heading:`Certified to build what enterprises trust`,items:[{image:`/assets/cert_iso_27001.png`,alt:`ISO 27001:2022 Certification`},{image:`/assets/cert_iso_9001.png`,alt:`ISO 9001:2015 Certification`},{image:`/assets/cert_soc.png`,alt:`SOC Certification`},{image:`/assets/nasscom.png`,alt:`Nasscom Member Logo`},{image:`/assets/cert_gptw_2026.png`,alt:`Great Place to Work Certified 2026 INDIA`}]},services:{eyebrow:`TECHNOLOGY THAT MOVES YOUR BUSINESS FORWARD.`,title:`Our Services`,intro:`From market leaders to high-growth innovators, enterprises trust Cavin Infotech to deliver secure, scalable, and future-ready digital solutions that create measurable business value.`,items:[{id:`ai-data-services`,number:`01`,title:`AI & Data Services`,boldStatement:`Your Data, Unlocked.`,description:`Harness Generative AI, Agentic AI, and predictive analytics to automate complex workflows, predict market shifts, and unlock hidden revenue — powered by modern AI architectures.`,capabilities:[`Generative AI & LLM Solutions`,`Agentic AI & Autonomous Systems`,`Predictive Analytics & Forecasting`,`Conversational AI & Enterprise Assistants`],cta:`Explore AI Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(255, 120, 0, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(255, 120, 0, 0.12)`},{id:`sap-managed-services`,number:`02`,title:`SAP Managed Services`,boldStatement:`SAP That Works. So You Can Focus.`,description:`Certified SAP consultants delivering functional expertise, ABAP development, security, upgrades, and license optimization — keeping your enterprise running smooth and audit-ready.`,capabilities:[`SAP Functional Consulting`,`SAP ABAP Development`,`SAP Security & Compliance`,`SAP Upgrades & Optimization`],cta:`Explore SAP Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(0, 240, 255, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(0, 240, 255, 0.12)`},{id:`enterprise-development`,number:`03`,title:`Enterprise Development`,boldStatement:`Built to Scale With You.`,description:`Custom enterprise applications that modernize legacy workflows, connect business systems, and deliver reliable digital operations as your organization evolves.`,capabilities:[`Custom Enterprise Applications`,`Mobile & Web Platforms`,`Modernization of Legacy Systems`,`Workflow Automation`],cta:`Explore Enterprise Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12) 0%, rgba(255, 120, 0, 0.08) 50%, rgba(2, 7, 16, 0) 100%)`,borderColor:`rgba(59, 130, 246, 0.12)`},{id:`architecture-as-a-service`,number:`04`,title:`Architecture as a Service`,boldStatement:`Design the Foundation Before You Build.`,description:`We help businesses define scalable technology architecture, integration models, cloud strategy, and modernization roadmaps before execution begins.`,capabilities:[`Enterprise Architecture`,`Solution Architecture`,`Cloud Architecture`,`Integration Architecture`],cta:`Explore Architecture Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(29, 78, 216, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(29, 78, 216, 0.12)`},{id:`smart-factory-iot`,number:`05`,title:`Smart Factory / Industrial IoT`,boldStatement:`Make Operations Visible, Connected, and Intelligent.`,description:`Connect machines, sensors, production systems, and dashboards to enable real-time monitoring, predictive maintenance, and smarter factory decisions.`,capabilities:[`Industrial IoT Integration`,`Real-Time Machine Monitoring`,`Predictive Maintenance`,`Factory Dashboards`],cta:`Explore Smart Factory Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(255, 120, 0, 0.08) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(2, 7, 16, 0) 100%)`,borderColor:`rgba(255, 120, 0, 0.1)`},{id:`ar-vr-solutions-digifox`,number:`06`,title:`AR/VR Solutions — DigiFox`,boldStatement:`Immersive Experiences for Training, Learning, and Visualization.`,description:`Create virtual environments, simulations, AR product experiences, and immersive learning platforms that improve engagement, understanding, and retention.`,capabilities:[`VR Training Simulations`,`AR Product Visualization`,`Immersive Learning Experiences`,`3D Interaction Design`],cta:`Explore DigiFox Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(139, 92, 246, 0.12)`}]},whyUs:{eyebrow:`Why Cavin Infotech`,title:`Designed For High Scalability`,cards:[{title:`Innovation Driven`,description:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`},{title:`Industry Expertise`,description:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`},{title:`Secure & Reliable`,description:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`},{title:`Outcome Focused`,description:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`}],images:[{src:`/assets/whyus_arab_meeting.jpg`,alt:`Corporate collaboration`},{src:`/assets/whyus_vr_man.jpg`,alt:`VR technology`},{src:`/assets/whyus_hologram.jpg`,alt:`Hologram technology`}]},gallery:{eyebrow:`Featured Gallery`,title:`Real Transformations. Proven Business Outcomes.`,subtitle:`From transformation stories to team innovation, explore how we build future-ready experiences.`,items:[{id:1,title:`Relentless Brand Growth & Innovation`,category:`Case Study`,excerpt:`Discover how we engineered a scalable digital platform that boosted brand engagement by 150% and accelerated global market reach.`,image:`https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80`,readTime:`5 Min Read`},{id:2,title:`How We Transformed Billing at TTK`,category:`Transformation`,excerpt:`Transitioning legacy paper billing to an automated IoT-driven workflow, reducing checkout delays and improving customer satisfaction.`,image:`https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=800&q=80`,readTime:`8 Min Read`},{id:3,title:`How We Transformed Retail Operations`,category:`Retail`,excerpt:`Unifying online inventory with physical retail networks, enabling smart warehouse tracking and seamless order fulfillment.`,image:`https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=800&q=80`,readTime:`6 Min Read`},{id:4,title:`How We Transformed Enterprise Workflows`,category:`Workflow`,excerpt:`Re-engineering internal communication channels and operations with Gen AI assistants, saving thousands of operational hours.`,image:`https://images.unsplash.com/photo-1531538606174-0f90ff5dce83?auto=format&fit=crop&w=800&q=80`,readTime:`10 Min Read`},{id:5,title:`Digital Product Showcase`,category:`Showcase`,excerpt:`A curation of sleek web interfaces, user-centric mobile applications, and custom enterprise portals designed by our UI/UX experts.`,image:`https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?auto=format&fit=crop&w=800&q=80`,readTime:`7 Min Read`},{id:6,title:`Innovation Lab`,category:`Innovation`,excerpt:`Step inside our workshop where we prototype Agentic AI, smart hardware sensors, and computer vision systems for next-generation industries.`,image:`https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&q=80`,readTime:`12 Min Read`}]},products:{eyebrow:`Our Products Suite`,title:`Powering Digital Growth`,subtitle:`Powerful products built to simplify operations, improve visibility, and accelerate digital growth.`,items:[{name:`Prodmax`,description:`AI-powered Industrial IoT platform for smart manufacturing delivering real-time monitoring, advanced analytics, traceability, and operational intelligence.`,image:`/assets/prodmax_dashboard.png`,stats:[{value:`5%+`,label:`OEE Improvement`},{value:`15%`,label:`Reduction in Downtime`}]},{name:`EVIDO`,description:`Intelligent audit management platform that standardizes inspections, automates issue tracking, and provides complete operational visibility.`,image:`/assets/evido_dashboard.png`,stats:[{value:`60%`,label:`Faster Process Automation`},{value:`24/7`,label:`AI Driven Assistance`}]},{name:`Budgie - HRMS`,description:`Modern workforce management platform that simplifies employee operations, boosts engagement, and streamlines organizational processes.`,image:`/assets/budgie_dashboard.png`,stats:[{value:`40%`,label:`HR Operations Efficiency`},{value:`99.8%`,label:`Payroll Accuracy`}]}]},insights:{title:`Explore the Latest in Technology & Innovation`,subtitle:`Stay ahead with insights, stories, and updates on digital transformation, AI, automation, product design, and enterprise technology.`,items:[{category:`AI & Analytics`,title:`How AI is Reshaping Enterprise Decision Making`,date:`June 15, 2026`,image:`https://images.unsplash.com/photo-1620712943543-bcc4688e7485?auto=format&fit=crop&w=800&q=80`,excerpt:`Explore how deep learning models and agentic decision trees are replacing traditional business intelligence systems to drive proactive operations.`},{category:`Digital Strategy`,title:`Why Digital Transformation Needs More Than Technology`,date:`June 02, 2026`,image:`https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=800&q=80`,excerpt:`Technology is only half the battle. True organizational agility requires architectural alignment, structural changes, and cultural evolution.`},{category:`Product Design`,title:`Designing Enterprise Software Users Actually Love`,date:`May 18, 2026`,image:`https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?auto=format&fit=crop&w=800&q=80`,excerpt:`Applying consumer-grade user experience principles to complex B2B systems reduces training costs and accelerates daily workflows.`},{category:`Automation`,title:`The Future of Automation in Business Workflows`,date:`May 05, 2026`,image:`https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&q=80`,excerpt:`From robotic process automation (RPA) to generative AI pipelines, learn how workflow automation is changing modern business scaling.`},{category:`Cloud Architecture`,title:`Building Scalable Cloud-Native Infrastructure for Enterprises`,date:`April 22, 2026`,image:`https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&w=800&q=80`,excerpt:`Microservices, Kubernetes, and serverless patterns are redefining how large-scale enterprise systems handle performance at unpredictable loads.`},{category:`Cybersecurity`,title:`Zero Trust Security Models in the Age of Remote Work`,date:`April 08, 2026`,image:`https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?auto=format&fit=crop&w=800&q=80`,excerpt:`As perimeter-based security crumbles, zero trust frameworks enforce identity verification at every layer — from endpoint to data center.`},{category:`Data Engineering`,title:`Real-Time Data Pipelines That Power Smarter Decisions`,date:`March 25, 2026`,image:`https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80`,excerpt:`Event-driven architectures and streaming platforms like Apache Kafka enable organizations to act on data the moment it is generated.`}]},footer:{cta:{headline:`Ready to Accelerate Your Digital Transformation Journey?`,body:`Whether you're exploring AI solutions, smart manufacturing, enterprise software, immersive technologies, or full-scale digital transformation, our experts are ready to help you build scalable solutions that deliver real business outcomes.`,image:`/assets/Footer CTA Section.png`,primaryButton:`Schedule a Consultation`,secondaryButton:`Request a Product Demo`},quickLinks:[{label:`Home`,href:`#home`},{label:`About Us`,href:`#certifications`},{label:`Our Services`,href:`#services`}],productLinks:[{label:`PRODMAX`,href:`#products`},{label:`Budgie HRMS`,href:`#products`},{label:`EVIDO`,href:`#products`}],social:[{platform:`Facebook`,url:`#`},{platform:`Instagram`,url:`#`},{platform:`LinkedIn`,url:`#`},{platform:`Telegram`,url:`#`},{platform:`WhatsApp`,url:`#`},{platform:`X`,url:`#`},{platform:`YouTube`,url:`#`}],legal:[{label:`Privacy Policy`,href:`#`},{label:`Terms & Conditions`,href:`#`}]}},S=u(p(),1),C=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),te=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ne=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),re=e=>{let t=ne(e);return t.charAt(0).toUpperCase()+t.slice(1)},w={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ie=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ae=(0,S.createContext)({}),oe=()=>(0,S.useContext)(ae),se=(0,S.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=oe()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,S.createElement)(`svg`,{ref:c,...w,width:t??l??w.width,height:t??l??w.height,stroke:e??f,strokeWidth:m,className:C(`lucide`,p,i),...!a&&!ie(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,S.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),ce=(e,t)=>{let n=(0,S.forwardRef)(({className:n,...r},i)=>(0,S.createElement)(se,{ref:i,iconNode:t,className:C(`lucide-${te(re(e))}`,`lucide-${e}`,n),...r}));return n.displayName=re(e),n},le=ce(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ue=ce(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),T=ce(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),E=ce(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{ce as a,y as c,c as d,d as f,le as i,p as l,T as n,ee as o,u as p,ue as r,x as s,E as t,o as u}; \ No newline at end of file +`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||en(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&en(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:rn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=ln);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=cn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),k(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),k(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),k(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Ot(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);k(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),k(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Ot(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),k(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=_e.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),k(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,k(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),k(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,k(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),k(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,k(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),k(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,k(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),k(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),x=s(((e,t)=>{t.exports=b()})),ee={site:{title:`Cavin Infotech | One Trusted Technology Partner`,logo:`/assets/cavin_logo.svg`,copyright:`Copyrights reserved to CAVIN INFOTECH`},navigation:[{label:`Home`,href:`#home`,type:`hash`},{label:`About Us`,href:`#aboutus`,type:`hash`},{label:`Products`,href:`#products`,type:`hash`},{label:`Careers`,href:`#careers`,type:`modal`},{label:`Contact Us`,href:`#contactus`,type:`hash`}],hero:{video:`/assets/Citpl Hero Dubai(1).mp4`,badge:`Chennai & Dubai • Trusted by 100+ Clients`,headline:`Infinite Possibilities`,subheadline:`One Trusted Technology Partner`},metrics:[{value:`100+`,label:`Clients`},{value:`5+`,label:`Years of Global Operations`},{value:`4`,label:`Group Companies`},{value:`2`,label:`Global Offices`}],about:{heading:`Trusted Technology Partner`,badgeImage:`/assets/frost_sullivan.svg`,badgeAlt:`Frost & Sullivan Logo`,backgroundImage:`/assets/partner_bg.png`},partners:{heading:`Trusted By Leaders`,subheading:`from various industries`,body:`Professionals Trust Our Solutions And Complete Their Journeys.`,logos:[{name:`CavinKare`,image:`/assets/Frame 27.svg`},{name:`Valeo`,image:`/assets/Frame 28.svg`},{name:`Polyhose`,image:`/assets/Frame 30.svg`},{name:`ACA Global`,image:`/assets/Frame 31.svg`},{name:`Dawn Pictures`,image:`/assets/Frame 32.svg`},{name:`MRF`,image:`/assets/Frame 33.svg`},{name:`Chola MS`,image:`/assets/Frame 34.svg`},{name:`Hero`,image:`/assets/Frame 35.svg`},{name:`BorgWarner`,image:`/assets/Frame 36.svg`},{name:`KONE`,image:`/assets/kone.png`}]},certifications:{heading:`Certified to build what enterprises trust`,items:[{image:`/assets/cert_iso_27001.png`,alt:`ISO 27001:2022 Certification`},{image:`/assets/cert_iso_9001.png`,alt:`ISO 9001:2015 Certification`},{image:`/assets/cert_soc.png`,alt:`SOC Certification`},{image:`/assets/nasscom.png`,alt:`Nasscom Member Logo`},{image:`/assets/cert_gptw_2026.png`,alt:`Great Place to Work Certified 2026 INDIA`}]},services:{eyebrow:`TECHNOLOGY THAT MOVES YOUR BUSINESS FORWARD.`,title:`Our Services`,intro:`From market leaders to high-growth innovators, enterprises trust Cavin Infotech to deliver secure, scalable, and future-ready digital solutions that create measurable business value.`,items:[{id:`ai-data-services`,number:`01`,title:`AI & Data Services`,boldStatement:`Your Data, Unlocked.`,description:`Harness Generative AI, Agentic AI, and predictive analytics to automate complex workflows, predict market shifts, and unlock hidden revenue — powered by modern AI architectures.`,capabilities:[`Generative AI & LLM Solutions`,`Agentic AI & Autonomous Systems`,`Predictive Analytics & Forecasting`,`Conversational AI & Enterprise Assistants`],cta:`Explore AI Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(255, 120, 0, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(255, 120, 0, 0.12)`},{id:`sap-managed-services`,number:`02`,title:`SAP Managed Services`,boldStatement:`SAP That Works. So You Can Focus.`,description:`Certified SAP consultants delivering functional expertise, ABAP development, security, upgrades, and license optimization — keeping your enterprise running smooth and audit-ready.`,capabilities:[`SAP Functional Consulting`,`SAP ABAP Development`,`SAP Security & Compliance`,`SAP Upgrades & Optimization`],cta:`Explore SAP Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(0, 240, 255, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(0, 240, 255, 0.12)`},{id:`enterprise-development`,number:`03`,title:`Enterprise Development`,boldStatement:`Built to Scale With You.`,description:`Custom enterprise applications that modernize legacy workflows, connect business systems, and deliver reliable digital operations as your organization evolves.`,capabilities:[`Custom Enterprise Applications`,`Mobile & Web Platforms`,`Modernization of Legacy Systems`,`Workflow Automation`],cta:`Explore Enterprise Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12) 0%, rgba(255, 120, 0, 0.08) 50%, rgba(2, 7, 16, 0) 100%)`,borderColor:`rgba(59, 130, 246, 0.12)`},{id:`architecture-as-a-service`,number:`04`,title:`Architecture as a Service`,boldStatement:`Design the Foundation Before You Build.`,description:`We help businesses define scalable technology architecture, integration models, cloud strategy, and modernization roadmaps before execution begins.`,capabilities:[`Enterprise Architecture`,`Solution Architecture`,`Cloud Architecture`,`Integration Architecture`],cta:`Explore Architecture Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(29, 78, 216, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(29, 78, 216, 0.12)`},{id:`smart-factory-iot`,number:`05`,title:`Smart Factory / Industrial IoT`,boldStatement:`Make Operations Visible, Connected, and Intelligent.`,description:`Connect machines, sensors, production systems, and dashboards to enable real-time monitoring, predictive maintenance, and smarter factory decisions.`,capabilities:[`Industrial IoT Integration`,`Real-Time Machine Monitoring`,`Predictive Maintenance`,`Factory Dashboards`],cta:`Explore Smart Factory Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(255, 120, 0, 0.08) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(2, 7, 16, 0) 100%)`,borderColor:`rgba(255, 120, 0, 0.1)`},{id:`ar-vr-solutions-digifox`,number:`06`,title:`AR/VR Solutions — DigiFox`,boldStatement:`Immersive Experiences for Training, Learning, and Visualization.`,description:`Create virtual environments, simulations, AR product experiences, and immersive learning platforms that improve engagement, understanding, and retention.`,capabilities:[`VR Training Simulations`,`AR Product Visualization`,`Immersive Learning Experiences`,`3D Interaction Design`],cta:`Explore DigiFox Solutions`,glowColor:`radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.15) 0%, rgba(2, 7, 16, 0) 70%)`,borderColor:`rgba(139, 92, 246, 0.12)`}]},whyUs:{eyebrow:`Why Cavin Infotech`,title:`Designed For High Scalability`,cards:[{title:`Innovation Driven`,description:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`},{title:`Industry Expertise`,description:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`},{title:`Secure & Reliable`,description:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`},{title:`Outcome Focused`,description:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`}],images:[{src:`/assets/whyus_arab_meeting.jpg`,alt:`Corporate collaboration`},{src:`/assets/whyus_vr_man.jpg`,alt:`VR technology`},{src:`/assets/whyus_hologram.jpg`,alt:`Hologram technology`}]},gallery:{eyebrow:`Featured Gallery`,title:`Real Transformations. Proven Business Outcomes.`,subtitle:`From transformation stories to team innovation, explore how we build future-ready experiences.`,items:[{id:1,title:`Relentless Brand Growth & Innovation`,category:`Case Study`,excerpt:`Discover how we engineered a scalable digital platform that boosted brand engagement by 150% and accelerated global market reach.`,image:`https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80`,readTime:`5 Min Read`},{id:2,title:`How We Transformed Billing at TTK`,category:`Transformation`,excerpt:`Transitioning legacy paper billing to an automated IoT-driven workflow, reducing checkout delays and improving customer satisfaction.`,image:`https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=800&q=80`,readTime:`8 Min Read`},{id:3,title:`How We Transformed Retail Operations`,category:`Retail`,excerpt:`Unifying online inventory with physical retail networks, enabling smart warehouse tracking and seamless order fulfillment.`,image:`https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=800&q=80`,readTime:`6 Min Read`},{id:4,title:`How We Transformed Enterprise Workflows`,category:`Workflow`,excerpt:`Re-engineering internal communication channels and operations with Gen AI assistants, saving thousands of operational hours.`,image:`https://images.unsplash.com/photo-1531538606174-0f90ff5dce83?auto=format&fit=crop&w=800&q=80`,readTime:`10 Min Read`},{id:5,title:`Digital Product Showcase`,category:`Showcase`,excerpt:`A curation of sleek web interfaces, user-centric mobile applications, and custom enterprise portals designed by our UI/UX experts.`,image:`https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?auto=format&fit=crop&w=800&q=80`,readTime:`7 Min Read`},{id:6,title:`Innovation Lab`,category:`Innovation`,excerpt:`Step inside our workshop where we prototype Agentic AI, smart hardware sensors, and computer vision systems for next-generation industries.`,image:`https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&q=80`,readTime:`12 Min Read`}]},products:{eyebrow:`Our Products Suite`,title:`Powering Digital Growth`,subtitle:`Powerful products built to simplify operations, improve visibility, and accelerate digital growth.`,items:[{name:`Prodmax`,description:`AI-powered Industrial IoT platform for smart manufacturing delivering real-time monitoring, advanced analytics, traceability, and operational intelligence.`,image:`/assets/prodmax_dashboard.png`,stats:[{value:`5%+`,label:`OEE Improvement`},{value:`15%`,label:`Reduction in Downtime`}]},{name:`EVIDO`,description:`Intelligent audit management platform that standardizes inspections, automates issue tracking, and provides complete operational visibility.`,image:`/assets/evido_dashboard.png`,stats:[{value:`60%`,label:`Faster Process Automation`},{value:`24/7`,label:`AI Driven Assistance`}]},{name:`Budgie - HRMS`,description:`Modern workforce management platform that simplifies employee operations, boosts engagement, and streamlines organizational processes.`,image:`/assets/budgie_dashboard.png`,stats:[{value:`40%`,label:`HR Operations Efficiency`},{value:`99.8%`,label:`Payroll Accuracy`}]}]},insights:{title:`Explore the Latest in Technology & Innovation`,subtitle:`Stay ahead with insights, stories, and updates on digital transformation, AI, automation, product design, and enterprise technology.`,items:[{category:`AI & Analytics`,title:`How AI is Reshaping Enterprise Decision Making`,date:`June 15, 2026`,image:`https://images.unsplash.com/photo-1620712943543-bcc4688e7485?auto=format&fit=crop&w=800&q=80`,excerpt:`Explore how deep learning models and agentic decision trees are replacing traditional business intelligence systems to drive proactive operations.`},{category:`Digital Strategy`,title:`Why Digital Transformation Needs More Than Technology`,date:`June 02, 2026`,image:`https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=800&q=80`,excerpt:`Technology is only half the battle. True organizational agility requires architectural alignment, structural changes, and cultural evolution.`},{category:`Product Design`,title:`Designing Enterprise Software Users Actually Love`,date:`May 18, 2026`,image:`https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?auto=format&fit=crop&w=800&q=80`,excerpt:`Applying consumer-grade user experience principles to complex B2B systems reduces training costs and accelerates daily workflows.`},{category:`Automation`,title:`The Future of Automation in Business Workflows`,date:`May 05, 2026`,image:`https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&q=80`,excerpt:`From robotic process automation (RPA) to generative AI pipelines, learn how workflow automation is changing modern business scaling.`},{category:`Cloud Architecture`,title:`Building Scalable Cloud-Native Infrastructure for Enterprises`,date:`April 22, 2026`,image:`https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&w=800&q=80`,excerpt:`Microservices, Kubernetes, and serverless patterns are redefining how large-scale enterprise systems handle performance at unpredictable loads.`},{category:`Cybersecurity`,title:`Zero Trust Security Models in the Age of Remote Work`,date:`April 08, 2026`,image:`https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?auto=format&fit=crop&w=800&q=80`,excerpt:`As perimeter-based security crumbles, zero trust frameworks enforce identity verification at every layer — from endpoint to data center.`},{category:`Data Engineering`,title:`Real-Time Data Pipelines That Power Smarter Decisions`,date:`March 25, 2026`,image:`https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80`,excerpt:`Event-driven architectures and streaming platforms like Apache Kafka enable organizations to act on data the moment it is generated.`}]},footer:{cta:{headline:`Ready to Accelerate Your Digital Transformation Journey?`,body:`Whether you're exploring AI solutions, smart manufacturing, enterprise software, immersive technologies, or full-scale digital transformation, our experts are ready to help you build scalable solutions that deliver real business outcomes.`,image:`/assets/Footer CTA Section.png`,primaryButton:`Schedule a Consultation`,secondaryButton:`Request a Product Demo`},quickLinks:[{label:`Home`,href:`#home`},{label:`About Us`,href:`#certifications`},{label:`Our Services`,href:`#services`}],productLinks:[{label:`PRODMAX`,href:`#products`},{label:`Budgie HRMS`,href:`#products`},{label:`EVIDO`,href:`#products`}],social:[{platform:`Facebook`,url:`#`},{platform:`Instagram`,url:`#`},{platform:`LinkedIn`,url:`#`},{platform:`Telegram`,url:`#`},{platform:`WhatsApp`,url:`#`},{platform:`X`,url:`#`},{platform:`YouTube`,url:`#`}],legal:[{label:`Privacy Policy`,href:`#`},{label:`Terms & Conditions`,href:`#`}]}},S=`/citpl_website/`.replace(/\/$/,``),C=u(p(),1),te=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ne=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),re=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),w=e=>{let t=re(e);return t.charAt(0).toUpperCase()+t.slice(1)},ie={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ae=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},oe=(0,C.createContext)({}),se=()=>(0,C.useContext)(oe),ce=(0,C.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=se()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,C.createElement)(`svg`,{ref:c,...ie,width:t??l??ie.width,height:t??l??ie.height,stroke:e??f,strokeWidth:m,className:te(`lucide`,p,i),...!a&&!ae(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),le=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(ce,{ref:i,iconNode:t,className:te(`lucide-${ne(w(e))}`,`lucide-${e}`,n),...r}));return n.displayName=w(e),n},ue=le(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),T=le(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),E=le(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),de=le(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{le as a,x as c,o as d,c as f,ue as i,y as l,u as m,E as n,S as o,d as p,T as r,ee as s,de as t,p as u}; \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 40019ca..a605a9c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,9 +5,9 @@ Cavin Infotech | One Trusted Technology Partner - - - + + + diff --git a/dist/preview.html b/dist/preview.html index 7c41162..80aee29 100644 --- a/dist/preview.html +++ b/dist/preview.html @@ -4,9 +4,9 @@ CITPL Preview - - - + + + diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..0967df7 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,15 @@ +# Deployed under /citpl_website/ on Apache. +# Requires: mod_rewrite, mod_headers, and (for API) mod_proxy + mod_proxy_http + +RewriteEngine On + +# Proxy Node API + uploads (start server with: node server/index.js) +RewriteRule ^api/(.*)$ http://127.0.0.1:3001/api/$1 [P,L] +RewriteRule ^uploads/(.*)$ http://127.0.0.1:3001/uploads/$1 [P,L] + +# Allow admin login/section preview to iframe this page (same origin) + + Header always unset X-Frame-Options + Header always unset Content-Security-Policy + Header always set Content-Security-Policy "frame-ancestors 'self'" + diff --git a/src/admin/App.jsx b/src/admin/App.jsx index fb1b354..c3f00da 100644 --- a/src/admin/App.jsx +++ b/src/admin/App.jsx @@ -121,7 +121,7 @@ function LoginPreview() { style={{ width: previewWidth * scale, height: previewHeight * scale }} >