import{r as N,j as v,h as ne,n as _e,G as pt,S as ht,C as gt,t as xt}from"./index-DeP4AQz-.js";import{A as yt}from"./arrow-left-DJvkkZta.js";import{S as ye}from"./star-DBPGIdaI.js";import{Q as bt}from"./quote-CoucniiV.js";import{E as St}from"./external-link-DtBssfv6.js";function vt(e){return Object.prototype.toString.call(e)==="[object Object]"}function qe(e){return vt(e)||Array.isArray(e)}function wt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Te(e,t){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==s?!1:r.every(n=>{const l=e[n],i=t[n];return typeof l=="function"?`${l}`==`${i}`:!qe(l)||!qe(i)?l===i:Te(l,i)})}function Ke(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function Ct(e,t){if(e.length!==t.length)return!1;const r=Ke(e),o=Ke(t);return r.every((a,s)=>{const n=o[s];return Te(a,n)})}function Ae(e){return typeof e=="number"}function Ie(e){return typeof e=="string"}function Se(e){return typeof e=="boolean"}function $e(e){return Object.prototype.toString.call(e)==="[object Object]"}function D(e){return Math.abs(e)}function Pe(e){return Math.sign(e)}function de(e,t){return D(e-t)}function Nt(e,t){if(e===0||t===0||D(e)<=D(t))return 0;const r=de(D(e),D(t));return D(r/e)}function Et(e){return Math.round(e*100)/100}function me(e){return pe(e).map(Number)}function B(e){return e[ge(e)]}function ge(e){return Math.max(0,e.length-1)}function De(e,t){return t===ge(e)}function Ue(e,t=0){return Array.from(Array(e),(r,o)=>t+o)}function pe(e){return Object.keys(e)}function Je(e,t){return[e,t].reduce((r,o)=>(pe(o).forEach(a=>{const s=r[a],n=o[a],l=$e(s)&&$e(n);r[a]=l?Je(s,n):n}),r),{})}function Le(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function jt(e,t){const r={start:o,center:a,end:s};function o(){return 0}function a(i){return s(i)/2}function s(i){return t-i}function n(i,c){return Ie(e)?r[e](i):e(t,i,c)}return{measure:n}}function he(){let e=[];function t(a,s,n,l={passive:!0}){let i;if("addEventListener"in a)a.addEventListener(s,n,l),i=()=>a.removeEventListener(s,n,l);else{const c=a;c.addListener(n),i=()=>c.removeListener(n)}return e.push(i),o}function r(){e=e.filter(a=>a())}const o={add:t,clear:r};return o}function It(e,t,r,o){const a=he(),s=1e3/60;let n=null,l=0,i=0;function c(){a.add(e,"visibilitychange",()=>{e.hidden&&f()})}function h(){y(),a.clear()}function u(x){if(!i)return;n||(n=x,r(),r());const d=x-n;for(n=x,l+=d;l>=s;)r(),l-=s;const g=l/s;o(g),i&&(i=t.requestAnimationFrame(u))}function m(){i||(i=t.requestAnimationFrame(u))}function y(){t.cancelAnimationFrame(i),n=null,l=0,i=0}function f(){n=null,l=0}return{init:c,destroy:h,start:m,stop:y,update:r,render:o}}function Lt(e,t){const r=t==="rtl",o=e==="y",a=o?"y":"x",s=o?"x":"y",n=!o&&r?-1:1,l=h(),i=u();function c(f){const{height:p,width:x}=f;return o?p:x}function h(){return o?"top":r?"right":"left"}function u(){return o?"bottom":r?"left":"right"}function m(f){return f*n}return{scroll:a,cross:s,startEdge:l,endEdge:i,measureSize:c,direction:m}}function re(e=0,t=0){const r=D(e-t);function o(c){return c<e}function a(c){return c>t}function s(c){return o(c)||a(c)}function n(c){return s(c)?o(c)?e:t:c}function l(c){return r?c-r*Math.ceil((c-t)/r):c}return{length:r,max:t,min:e,constrain:n,reachedAny:s,reachedMax:a,reachedMin:o,removeOffset:l}}function Xe(e,t,r){const{constrain:o}=re(0,e),a=e+1;let s=n(t);function n(m){return r?D((a+m)%a):o(m)}function l(){return s}function i(m){return s=n(m),u}function c(m){return h().set(l()+m)}function h(){return Xe(e,l(),r)}const u={get:l,set:i,add:c,clone:h};return u}function Tt(e,t,r,o,a,s,n,l,i,c,h,u,m,y,f,p,x,d,g){const{cross:S,direction:E}=e,A=["INPUT","SELECT","TEXTAREA"],j={passive:!1},w=he(),C=he(),I=re(50,225).constrain(y.measure(20)),k={mouse:300,touch:400},L={mouse:500,touch:600},F=f?43:25;let V=!1,H=0,q=0,W=!1,Y=!1,U=!1,Q=!1;function ce(b){if(!g)return;function T(R){(Se(g)||g(b,R))&&le(R)}const O=t;w.add(O,"dragstart",R=>R.preventDefault(),j).add(O,"touchmove",()=>{},j).add(O,"touchend",()=>{}).add(O,"touchstart",T).add(O,"mousedown",T).add(O,"touchcancel",M).add(O,"contextmenu",M).add(O,"click",J,!0)}function K(){w.clear(),C.clear()}function oe(){const b=Q?r:t;C.add(b,"touchmove",z,j).add(b,"touchend",M).add(b,"mousemove",z,j).add(b,"mouseup",M)}function se(b){const T=b.nodeName||"";return A.includes(T)}function _(){return(f?L:k)[Q?"mouse":"touch"]}function ae(b,T){const O=u.add(Pe(b)*-1),R=h.byDistance(b,!f).distance;return f||D(b)<I?R:x&&T?R*.5:h.byIndex(O.get(),0).distance}function le(b){const T=Le(b,o);Q=T,U=f&&T&&!b.buttons&&V,V=de(a.get(),n.get())>=2,!(T&&b.button!==0)&&(se(b.target)||(W=!0,s.pointerDown(b),c.useFriction(0).useDuration(0),a.set(n),oe(),H=s.readPoint(b),q=s.readPoint(b,S),m.emit("pointerDown")))}function z(b){if(!Le(b,o)&&b.touches.length>=2)return M(b);const O=s.readPoint(b),R=s.readPoint(b,S),$=de(O,H),X=de(R,q);if(!Y&&!Q&&(!b.cancelable||(Y=$>X,!Y)))return M(b);const ee=s.pointerMove(b);$>p&&(U=!0),c.useFriction(.3).useDuration(.75),l.start(),a.add(E(ee)),b.preventDefault()}function M(b){const O=h.byDistance(0,!1).index!==u.get(),R=s.pointerUp(b)*_(),$=ae(E(R),O),X=Nt(R,$),ee=F-10*X,Z=d+X/50;Y=!1,W=!1,C.clear(),c.useDuration(ee).useFriction(Z),i.distance($,!f),Q=!1,m.emit("pointerUp")}function J(b){U&&(b.stopPropagation(),b.preventDefault(),U=!1)}function G(){return W}return{init:ce,destroy:K,pointerDown:G}}function At(e,t){let o,a;function s(u){return u.timeStamp}function n(u,m){const f=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Le(u,t)?u:u.touches[0])[f]}function l(u){return o=u,a=u,n(u)}function i(u){const m=n(u)-n(a),y=s(u)-s(o)>170;return a=u,y&&(o=u),m}function c(u){if(!o||!a)return 0;const m=n(a)-n(o),y=s(u)-s(o),f=s(u)-s(a)>170,p=m/y;return y&&!f&&D(p)>.1?p:0}return{pointerDown:l,pointerMove:i,pointerUp:c,readPoint:n}}function Pt(){function e(r){const{offsetTop:o,offsetLeft:a,offsetWidth:s,offsetHeight:n}=r;return{top:o,right:a+s,bottom:o+n,left:a,width:s,height:n}}return{measure:e}}function Dt(e){function t(o){return e*(o/100)}return{measure:t}}function kt(e,t,r,o,a,s,n){const l=[e].concat(o);let i,c,h=[],u=!1;function m(x){return a.measureSize(n.measure(x))}function y(x){if(!s)return;c=m(e),h=o.map(m);function d(g){for(const S of g){if(u)return;const E=S.target===e,A=o.indexOf(S.target),j=E?c:h[A],w=m(E?e:o[A]);if(D(w-j)>=.5){x.reInit(),t.emit("resize");break}}}i=new ResizeObserver(g=>{(Se(s)||s(x,g))&&d(g)}),r.requestAnimationFrame(()=>{l.forEach(g=>i.observe(g))})}function f(){u=!0,i&&i.disconnect()}return{init:y,destroy:f}}function Ot(e,t,r,o,a,s){let n=0,l=0,i=a,c=s,h=e.get(),u=0;function m(){const j=o.get()-e.get(),w=!i;let C=0;return w?(n=0,r.set(o),e.set(o),C=j):(r.set(e),n+=j/i,n*=c,h+=n,e.add(n),C=h-u),l=Pe(C),u=h,A}function y(){const j=o.get()-t.get();return D(j)<.001}function f(){return i}function p(){return l}function x(){return n}function d(){return S(a)}function g(){return E(s)}function S(j){return i=j,A}function E(j){return c=j,A}const A={direction:p,duration:f,velocity:x,seek:m,settled:y,useBaseFriction:g,useBaseDuration:d,useFriction:E,useDuration:S};return A}function Mt(e,t,r,o,a){const s=a.measure(10),n=a.measure(50),l=re(.1,.99);let i=!1;function c(){return!(i||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function h(y){if(!c())return;const f=e.reachedMin(t.get())?"min":"max",p=D(e[f]-t.get()),x=r.get()-t.get(),d=l.constrain(p/n);r.subtract(x*d),!y&&D(x)<s&&(r.set(e.constrain(r.get())),o.useDuration(25).useBaseFriction())}function u(y){i=!y}return{shouldConstrain:c,constrain:h,toggleActive:u}}function Rt(e,t,r,o,a){const s=re(-t+e,0),n=u(),l=h(),i=m();function c(f,p){return de(f,p)<=1}function h(){const f=n[0],p=B(n),x=n.lastIndexOf(f),d=n.indexOf(p)+1;return re(x,d)}function u(){return r.map((f,p)=>{const{min:x,max:d}=s,g=s.constrain(f),S=!p,E=De(r,p);return S?d:E||c(x,g)?x:c(d,g)?d:g}).map(f=>parseFloat(f.toFixed(3)))}function m(){if(t<=e+a)return[s.max];if(o==="keepSnaps")return n;const{min:f,max:p}=l;return n.slice(f,p)}return{snapsContained:i,scrollContainLimit:l}}function Ft(e,t,r){const o=t[0],a=r?o-e:B(t);return{limit:re(a,o)}}function zt(e,t,r,o){const s=t.min+.1,n=t.max+.1,{reachedMin:l,reachedMax:i}=re(s,n);function c(m){return m===1?i(r.get()):m===-1?l(r.get()):!1}function h(m){if(!c(m))return;const y=e*(m*-1);o.forEach(f=>f.add(y))}return{loop:h}}function Gt(e){const{max:t,length:r}=e;function o(s){const n=s-t;return r?n/-r:0}return{get:o}}function Bt(e,t,r,o,a){const{startEdge:s,endEdge:n}=e,{groupSlides:l}=a,i=u().map(t.measure),c=m(),h=y();function u(){return l(o).map(p=>B(p)[n]-p[0][s]).map(D)}function m(){return o.map(p=>r[s]-p[s]).map(p=>-D(p))}function y(){return l(c).map(p=>p[0]).map((p,x)=>p+i[x])}return{snaps:c,snapsAligned:h}}function Vt(e,t,r,o,a,s){const{groupSlides:n}=a,{min:l,max:i}=o,c=h();function h(){const m=n(s),y=!e||t==="keepSnaps";return r.length===1?[s]:y?m:m.slice(l,i).map((f,p,x)=>{const d=!p,g=De(x,p);if(d){const S=B(x[0])+1;return Ue(S)}if(g){const S=ge(s)-B(x)[0]+1;return Ue(S,B(x)[0])}return f})}return{slideRegistry:c}}function Ht(e,t,r,o,a){const{reachedAny:s,removeOffset:n,constrain:l}=o;function i(f){return f.concat().sort((p,x)=>D(p)-D(x))[0]}function c(f){const p=e?n(f):l(f),x=t.map((g,S)=>({diff:h(g-p,0),index:S})).sort((g,S)=>D(g.diff)-D(S.diff)),{index:d}=x[0];return{index:d,distance:p}}function h(f,p){const x=[f,f+r,f-r];if(!e)return f;if(!p)return i(x);const d=x.filter(g=>Pe(g)===p);return d.length?i(d):B(x)-r}function u(f,p){const x=t[f]-a.get(),d=h(x,p);return{index:f,distance:d}}function m(f,p){const x=a.get()+f,{index:d,distance:g}=c(x),S=!e&&s(x);if(!p||S)return{index:d,distance:f};const E=t[d]-g,A=f+h(E,0);return{index:d,distance:A}}return{byDistance:m,byIndex:u,shortcut:h}}function qt(e,t,r,o,a,s,n){function l(u){const m=u.distance,y=u.index!==t.get();s.add(m),m&&(o.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(r.set(t.get()),t.set(u.index),n.emit("select"))}function i(u,m){const y=a.byDistance(u,m);l(y)}function c(u,m){const y=t.clone().set(u),f=a.byIndex(y.get(),m);l(f)}return{distance:i,index:c}}function Kt(e,t,r,o,a,s,n,l){const i={passive:!0,capture:!0};let c=0;function h(y){if(!l)return;function f(p){if(new Date().getTime()-c>10)return;n.emit("slideFocusStart"),e.scrollLeft=0;const g=r.findIndex(S=>S.includes(p));Ae(g)&&(a.useDuration(0),o.index(g,0),n.emit("slideFocus"))}s.add(document,"keydown",u,!1),t.forEach((p,x)=>{s.add(p,"focus",d=>{(Se(l)||l(y,d))&&f(x)},i)})}function u(y){y.code==="Tab"&&(c=new Date().getTime())}return{init:h}}function fe(e){let t=e;function r(){return t}function o(i){t=n(i)}function a(i){t+=n(i)}function s(i){t-=n(i)}function n(i){return Ae(i)?i:i.get()}return{get:r,set:o,add:a,subtract:s}}function Ye(e,t){const r=e.scroll==="x"?n:l,o=t.style;let a=null,s=!1;function n(m){return`translate3d(${m}px,0px,0px)`}function l(m){return`translate3d(0px,${m}px,0px)`}function i(m){if(s)return;const y=Et(e.direction(m));y!==a&&(o.transform=r(y),a=y)}function c(m){s=!m}function h(){s||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:h,to:i,toggleActive:c}}function $t(e,t,r,o,a,s,n,l,i){const h=me(a),u=me(a).reverse(),m=d().concat(g());function y(w,C){return w.reduce((I,k)=>I-a[k],C)}function f(w,C){return w.reduce((I,k)=>y(I,C)>0?I.concat([k]):I,[])}function p(w){return s.map((C,I)=>({start:C-o[I]+.5+w,end:C+t-.5+w}))}function x(w,C,I){const k=p(C);return w.map(L=>{const F=I?0:-r,V=I?r:0,H=I?"end":"start",q=k[L][H];return{index:L,loopPoint:q,slideLocation:fe(-1),translate:Ye(e,i[L]),target:()=>l.get()>q?F:V}})}function d(){const w=n[0],C=f(u,w);return x(C,r,!1)}function g(){const w=t-n[0]-1,C=f(h,w);return x(C,-r,!0)}function S(){return m.every(({index:w})=>{const C=h.filter(I=>I!==w);return y(C,t)<=.1})}function E(){m.forEach(w=>{const{target:C,translate:I,slideLocation:k}=w,L=C();L!==k.get()&&(I.to(L),k.set(L))})}function A(){m.forEach(w=>w.translate.clear())}return{canLoop:S,clear:A,loop:E,loopPoints:m}}function Ut(e,t,r){let o,a=!1;function s(i){if(!r)return;function c(h){for(const u of h)if(u.type==="childList"){i.reInit(),t.emit("slidesChanged");break}}o=new MutationObserver(h=>{a||(Se(r)||r(i,h))&&c(h)}),o.observe(e,{childList:!0})}function n(){o&&o.disconnect(),a=!0}return{init:s,destroy:n}}function Qt(e,t,r,o){const a={};let s=null,n=null,l,i=!1;function c(){l=new IntersectionObserver(f=>{i||(f.forEach(p=>{const x=t.indexOf(p.target);a[x]=p}),s=null,n=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:o}),t.forEach(f=>l.observe(f))}function h(){l&&l.disconnect(),i=!0}function u(f){return pe(a).reduce((p,x)=>{const d=parseInt(x),{isIntersecting:g}=a[d];return(f&&g||!f&&!g)&&p.push(d),p},[])}function m(f=!0){if(f&&s)return s;if(!f&&n)return n;const p=u(f);return f&&(s=p),f||(n=p),p}return{init:c,destroy:h,get:m}}function _t(e,t,r,o,a,s){const{measureSize:n,startEdge:l,endEdge:i}=e,c=r[0]&&a,h=f(),u=p(),m=r.map(n),y=x();function f(){if(!c)return 0;const g=r[0];return D(t[l]-g[l])}function p(){if(!c)return 0;const g=s.getComputedStyle(B(o));return parseFloat(g.getPropertyValue(`margin-${i}`))}function x(){return r.map((g,S,E)=>{const A=!S,j=De(E,S);return A?m[S]+h:j?m[S]+u:E[S+1][l]-g[l]}).map(D)}return{slideSizes:m,slideSizesWithGaps:y,startGap:h,endGap:u}}function Jt(e,t,r,o,a,s,n,l,i){const{startEdge:c,endEdge:h,direction:u}=e,m=Ae(r);function y(d,g){return me(d).filter(S=>S%g===0).map(S=>d.slice(S,S+g))}function f(d){return d.length?me(d).reduce((g,S,E)=>{const A=B(g)||0,j=A===0,w=S===ge(d),C=a[c]-s[A][c],I=a[c]-s[S][h],k=!o&&j?u(n):0,L=!o&&w?u(l):0,F=D(I-L-(C+k));return E&&F>t+i&&g.push(S),w&&g.push(d.length),g},[]).map((g,S,E)=>{const A=Math.max(E[S-1]||0);return d.slice(A,g)}):[]}function p(d){return m?y(d,r):f(d)}return{groupSlides:p}}function Xt(e,t,r,o,a,s,n){const{align:l,axis:i,direction:c,startIndex:h,loop:u,duration:m,dragFree:y,dragThreshold:f,inViewThreshold:p,slidesToScroll:x,skipSnaps:d,containScroll:g,watchResize:S,watchSlides:E,watchDrag:A,watchFocus:j}=s,w=2,C=Pt(),I=C.measure(t),k=r.map(C.measure),L=Lt(i,c),F=L.measureSize(I),V=Dt(F),H=jt(l,F),q=!u&&!!g,W=u||!!g,{slideSizes:Y,slideSizesWithGaps:U,startGap:Q,endGap:ce}=_t(L,I,k,r,W,a),K=Jt(L,F,x,u,I,k,Q,ce,w),{snaps:oe,snapsAligned:se}=Bt(L,H,I,k,K),_=-B(oe)+B(U),{snapsContained:ae,scrollContainLimit:le}=Rt(F,_,se,g,w),z=q?ae:se,{limit:M}=Ft(_,z,u),J=Xe(ge(z),h,u),G=J.clone(),P=me(r),b=({dragHandler:ie,scrollBody:Ee,scrollBounds:je,options:{loop:xe}})=>{xe||je.constrain(ie.pointerDown()),Ee.seek()},T=({scrollBody:ie,translate:Ee,location:je,offsetLocation:xe,previousLocation:it,scrollLooper:ct,slideLooper:at,dragHandler:lt,animation:ut,eventHandler:Fe,scrollBounds:ft,options:{loop:ze}},Ge)=>{const Be=ie.settled(),dt=!ft.shouldConstrain(),Ve=ze?Be:Be&&dt,He=Ve&&!lt.pointerDown();He&&ut.stop();const mt=je.get()*Ge+it.get()*(1-Ge);xe.set(mt),ze&&(ct.loop(ie.direction()),at.loop()),Ee.to(xe.get()),He&&Fe.emit("settle"),Ve||Fe.emit("scroll")},O=It(o,a,()=>b(Ne),ie=>T(Ne,ie)),R=.68,$=z[J.get()],X=fe($),ee=fe($),Z=fe($),te=fe($),ue=Ot(X,Z,ee,te,m,R),we=Ht(u,z,_,M,te),Ce=qt(O,J,G,ue,we,te,n),Oe=Gt(M),Me=he(),ot=Qt(t,r,n,p),{slideRegistry:Re}=Vt(q,g,z,le,K,P),st=Kt(e,r,Re,Ce,ue,Me,n,j),Ne={ownerDocument:o,ownerWindow:a,eventHandler:n,containerRect:I,slideRects:k,animation:O,axis:L,dragHandler:Tt(L,e,o,a,te,At(L,a),X,O,Ce,ue,we,J,n,V,y,f,d,R,A),eventStore:Me,percentOfView:V,index:J,indexPrevious:G,limit:M,location:X,offsetLocation:Z,previousLocation:ee,options:s,resizeHandler:kt(t,n,a,r,L,S,C),scrollBody:ue,scrollBounds:Mt(M,Z,te,ue,V),scrollLooper:zt(_,M,Z,[X,Z,ee,te]),scrollProgress:Oe,scrollSnapList:z.map(Oe.get),scrollSnaps:z,scrollTarget:we,scrollTo:Ce,slideLooper:$t(L,F,_,Y,U,oe,z,Z,r),slideFocus:st,slidesHandler:Ut(t,n,E),slidesInView:ot,slideIndexes:P,slideRegistry:Re,slidesToScroll:K,target:te,translate:Ye(L,t)};return Ne}function Yt(){let e={},t;function r(c){t=c}function o(c){return e[c]||[]}function a(c){return o(c).forEach(h=>h(t,c)),i}function s(c,h){return e[c]=o(c).concat([h]),i}function n(c,h){return e[c]=o(c).filter(u=>u!==h),i}function l(){e={}}const i={init:r,emit:a,off:n,on:s,clear:l};return i}const Zt={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Wt(e){function t(s,n){return Je(s,n||{})}function r(s){const n=s.breakpoints||{},l=pe(n).filter(i=>e.matchMedia(i).matches).map(i=>n[i]).reduce((i,c)=>t(i,c),{});return t(s,l)}function o(s){return s.map(n=>pe(n.breakpoints||{})).reduce((n,l)=>n.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:o}}function en(e){let t=[];function r(s,n){return t=n.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(s,e)),n.reduce((l,i)=>Object.assign(l,{[i.name]:i}),{})}function o(){t=t.filter(s=>s.destroy())}return{init:r,destroy:o}}function be(e,t,r){const o=e.ownerDocument,a=o.defaultView,s=Wt(a),n=en(s),l=he(),i=Yt(),{mergeOptions:c,optionsAtMedia:h,optionsMediaQueries:u}=s,{on:m,off:y,emit:f}=i,p=L;let x=!1,d,g=c(Zt,be.globalOptions),S=c(g),E=[],A,j,w;function C(){const{container:P,slides:b}=S;j=(Ie(P)?e.querySelector(P):P)||e.children[0];const O=Ie(b)?j.querySelectorAll(b):b;w=[].slice.call(O||j.children)}function I(P){const b=Xt(e,j,w,o,a,P,i);if(P.loop&&!b.slideLooper.canLoop()){const T=Object.assign({},P,{loop:!1});return I(T)}return b}function k(P,b){x||(g=c(g,P),S=h(g),E=b||E,C(),d=I(S),u([g,...E.map(({options:T})=>T)]).forEach(T=>l.add(T,"change",L)),S.active&&(d.translate.to(d.location.get()),d.animation.init(),d.slidesInView.init(),d.slideFocus.init(G),d.eventHandler.init(G),d.resizeHandler.init(G),d.slidesHandler.init(G),d.options.loop&&d.slideLooper.loop(),j.offsetParent&&w.length&&d.dragHandler.init(G),A=n.init(G,E)))}function L(P,b){const T=K();F(),k(c({startIndex:T},P),b),i.emit("reInit")}function F(){d.dragHandler.destroy(),d.eventStore.clear(),d.translate.clear(),d.slideLooper.clear(),d.resizeHandler.destroy(),d.slidesHandler.destroy(),d.slidesInView.destroy(),d.animation.destroy(),n.destroy(),l.clear()}function V(){x||(x=!0,l.clear(),F(),i.emit("destroy"),i.clear())}function H(P,b,T){!S.active||x||(d.scrollBody.useBaseFriction().useDuration(b===!0?0:S.duration),d.scrollTo.index(P,T||0))}function q(P){const b=d.index.add(1).get();H(b,P,-1)}function W(P){const b=d.index.add(-1).get();H(b,P,1)}function Y(){return d.index.add(1).get()!==K()}function U(){return d.index.add(-1).get()!==K()}function Q(){return d.scrollSnapList}function ce(){return d.scrollProgress.get(d.offsetLocation.get())}function K(){return d.index.get()}function oe(){return d.indexPrevious.get()}function se(){return d.slidesInView.get()}function _(){return d.slidesInView.get(!1)}function ae(){return A}function le(){return d}function z(){return e}function M(){return j}function J(){return w}const G={canScrollNext:Y,canScrollPrev:U,containerNode:M,internalEngine:le,destroy:V,off:y,on:m,emit:f,plugins:ae,previousScrollSnap:oe,reInit:p,rootNode:z,scrollNext:q,scrollPrev:W,scrollProgress:ce,scrollSnapList:Q,scrollTo:H,selectedScrollSnap:K,slideNodes:J,slidesInView:se,slidesNotInView:_};return k(t,r),setTimeout(()=>i.emit("init"),0),G}be.globalOptions=void 0;function ke(e={},t=[]){const r=N.useRef(e),o=N.useRef(t),[a,s]=N.useState(),[n,l]=N.useState(),i=N.useCallback(()=>{a&&a.reInit(r.current,o.current)},[a]);return N.useEffect(()=>{Te(r.current,e)||(r.current=e,i())},[e,i]),N.useEffect(()=>{Ct(o.current,t)||(o.current=t,i())},[t,i]),N.useEffect(()=>{if(wt()&&n){be.globalOptions=ke.globalOptions;const c=be(n,r.current,o.current);return s(c),()=>c.destroy()}else s(void 0)},[n,s]),[l,a]}ke.globalOptions=void 0;const Ze=N.createContext(null);function ve(){const e=N.useContext(Ze);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const We=N.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:o,className:a,children:s,...n},l)=>{const[i,c]=ke({...t,axis:e==="horizontal"?"x":"y"},o),[h,u]=N.useState(!1),[m,y]=N.useState(!1),f=N.useCallback(g=>{g&&(u(g.canScrollPrev()),y(g.canScrollNext()))},[]),p=N.useCallback(()=>{c==null||c.scrollPrev()},[c]),x=N.useCallback(()=>{c==null||c.scrollNext()},[c]),d=N.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),p()):g.key==="ArrowRight"&&(g.preventDefault(),x())},[p,x]);return N.useEffect(()=>{!c||!r||r(c)},[c,r]),N.useEffect(()=>{if(c)return f(c),c.on("reInit",f),c.on("select",f),()=>{c==null||c.off("select",f)}},[c,f]),v.jsx(Ze.Provider,{value:{carouselRef:i,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:x,canScrollPrev:h,canScrollNext:m},children:v.jsx("div",{ref:l,onKeyDownCapture:d,className:ne("relative",a),role:"region","aria-roledescription":"carousel",...n,children:s})})});We.displayName="Carousel";const et=N.forwardRef(({className:e,...t},r)=>{const{carouselRef:o,orientation:a}=ve();return v.jsx("div",{ref:o,className:"overflow-hidden",children:v.jsx("div",{ref:r,className:ne("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});et.displayName="CarouselContent";const tt=N.forwardRef(({className:e,...t},r)=>{const{orientation:o}=ve();return v.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:ne("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});tt.displayName="CarouselItem";const nt=N.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},a)=>{const{orientation:s,scrollPrev:n,canScrollPrev:l}=ve();return v.jsxs(_e,{ref:a,variant:t,size:r,className:ne("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:n,...o,children:[v.jsx(yt,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Previous slide"})]})});nt.displayName="CarouselPrevious";const rt=N.forwardRef(({className:e,variant:t="outline",size:r="icon",...o},a)=>{const{orientation:s,scrollNext:n,canScrollNext:l}=ve();return v.jsxs(_e,{ref:a,variant:t,size:r,className:ne("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:n,...o,children:[v.jsx(pt,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Next slide"})]})});rt.displayName="CarouselNext";const Qe=[{name:"Steve Smith",location:"Centre, AL",text:"Customer service at Cody Coffey's Centre office is amazing, a lost art, a total delight. Give them 1000 out of 100. Friendly, knowledgeable. So grateful to have found them when moving to a new town."},{name:"Teresa Gardiner",location:"Centre, AL",text:"Lexi was very patient and helpful when I stopped by yesterday to ask multiple questions. She is truly an asset to your office!"},{name:"Ricky Salas",location:"Rome, GA",text:"I was with this agency for several years and had nothing but positive experiences with Cody and the other agents. When I had to move out of state, Kathy made it incredibly easy to end my Georgia policy and settle things up. I can't recommend them enough."},{name:"Marcus Thompson",location:"Birmingham, AL",text:"The team made switching insurance painless. Got better coverage and saved money. Should have done this years ago."},{name:"Patricia Coleman",location:"Cartersville, GA",text:"Finally, an insurance agency that answers the phone. Real people, real help, real fast."},{name:"Thomas K.",location:"Centre, AL",text:"Crystal and Kimberly set up our home and auto plan at a very respectable price. If I could give 10 stars I would."},{name:"Kerry G.",location:"Centre, AL",text:"Recently switched all my insurance with Cody. Customer service is impressive and rates are lower. Transition was painless."},{name:"Tracey D.",location:"Rome, GA",text:"Been with the Coffey Agency almost 10 years; they respond quickly and help get the best price for coverage."},{name:"Karen P.",location:"Rome, GA",text:"I've been a customer since 1989. Every issue, question or claim has always been cared for quickly, friendly and professionally."},{name:"Barbara R.",location:"Rome, GA",text:"The office staff were very friendly and helpful. Also the discounts were great!"}],cn=()=>{const[e,t]=N.useState(),[r,o]=N.useState(0),[a,s]=N.useState(!1),n=N.useRef(null),l=N.useRef(null);N.useEffect(()=>{e&&(o(e.selectedScrollSnap()),e.on("select",()=>{o(e.selectedScrollSnap())}))},[e]),N.useEffect(()=>{if(!(!e||a))return n.current&&clearInterval(n.current),n.current=setInterval(()=>{e.scrollNext()},5e3),()=>{n.current&&clearInterval(n.current)}},[e,a]),N.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=N.useCallback(()=>{s(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{s(!1)},1e4)},[]),c=N.useCallback(h=>{e==null||e.scrollTo(h),i()},[e,i]);return v.jsx("section",{className:"py-16 md:py-24 bg-muted/30","aria-labelledby":"testimonials-heading",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs("div",{className:"text-center mb-8",children:[v.jsx(ht,{centered:!0,className:"mb-4",children:v.jsx("span",{id:"testimonials-heading",children:"What Do Our Customers Say?"})}),v.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Don't just take our word for it — hear from the families and businesses we've helped protect."})]}),v.jsxs("div",{className:"flex items-center gap-2 justify-center mb-10",children:[v.jsxs("div",{className:"flex gap-0.5",children:[[...Array(4)].map((h,u)=>v.jsx(ye,{className:"h-5 w-5 text-yellow-400 fill-yellow-400"},u)),v.jsxs("div",{className:"relative",children:[v.jsx(ye,{className:"h-5 w-5 text-yellow-400"}),v.jsx("div",{className:"absolute inset-0 overflow-hidden",style:{width:"70%"},children:v.jsx(ye,{className:"h-5 w-5 text-yellow-400 fill-yellow-400"})})]})]}),v.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"4.7 · 200+ Reviews"})]}),v.jsxs("div",{className:"max-w-3xl mx-auto px-12 md:px-16",children:[v.jsxs(We,{setApi:t,opts:{loop:!0},className:"relative",children:[v.jsx(et,{children:Qe.map((h,u)=>v.jsx(tt,{children:v.jsx(gt,{className:"border-0 shadow-lg rounded-2xl bg-card",children:v.jsxs(xt,{className:"pt-10 pb-10 px-8 md:px-12 text-center",children:[v.jsx(bt,{className:"h-12 w-12 text-primary/15 mx-auto mb-6"}),v.jsxs("p",{className:"text-lg md:text-xl text-foreground leading-relaxed font-medium mb-8",children:['"',h.text,'"']}),v.jsx("div",{className:"flex gap-1 justify-center mb-4",children:[...Array(5)].map((m,y)=>v.jsx(ye,{className:"h-5 w-5 text-yellow-400 fill-yellow-400"},y))}),v.jsx("p",{className:"font-bold text-lg text-foreground",children:h.name}),v.jsx("p",{className:"text-muted-foreground",children:h.location})]})})},u))}),v.jsx(nt,{onClick:i,className:"absolute -left-10 md:-left-14 top-1/2 -translate-y-1/2 h-10 w-10 rounded-full bg-card border-2 border-primary/20 hover:bg-primary hover:text-primary-foreground hover:border-primary shadow-md transition-all"}),v.jsx(rt,{onClick:i,className:"absolute -right-10 md:-right-14 top-1/2 -translate-y-1/2 h-10 w-10 rounded-full bg-card border-2 border-primary/20 hover:bg-primary hover:text-primary-foreground hover:border-primary shadow-md transition-all"})]}),v.jsx("div",{className:"flex justify-center gap-2 mt-8",children:Qe.map((h,u)=>v.jsx("button",{onClick:()=>c(u),className:ne("relative rounded-full transition-all duration-300 p-5 -m-5 min-h-[48px] min-w-[48px] flex items-center justify-center",""),"aria-label":`Go to review ${u+1}`,children:v.jsx("span",{className:ne("rounded-full transition-all duration-300",r===u?"h-2 w-6 bg-primary":"h-2 w-2 bg-primary/30 hover:bg-primary/50")})},u))})]}),v.jsx("div",{className:"mt-10 text-center",children:v.jsxs("a",{href:"https://www.google.com/search?q=coffey+agencies+centre+al+reviews",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-primary hover:text-primary/80 font-medium transition-colors",children:["Read more reviews on Google",v.jsx(St,{className:"h-4 w-4"})]})})]})})};export{cn as Testimonials};