PageSourceSearch

https://www.mdb.cz/build/web/client/assets/carousel-DPnPTekD.js

js mdb.cz collected 2026-09-24 23:07:33 UTC 22,372 bytes, 1 lines download raw bytes

vendor: 16,894 bytes, line 1
1import{r as N,j as V}from"./chunk-6CSD65Y2-624cCeqX.js";import{u as yt,c as gt}from"./typography-BiKVgzxx.js";import{B as Qt,A as an}from"./button-CKtC3_HY.js";import{A as ln}from"./root-B94R9vmP.js";function fn(t){return Object.prototype.toString.call(t)==="[object Object]"}function qt(t){return fn(t)||Array.isArray(t)}function dn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Dt(t,n){const o=Object.keys(t),r=Object.keys(n);if(o.length!==r.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==s?!1:o.every(e=>{const a=t[e],i=n[e];return typeof a=="function"?`${a}`==`${i}`:!qt(a)||!qt(i)?a===i:Dt(a,i)})}function $t(t){return t.concat().sort((n,o)=>n.name>o.name?1:-1).map(n=>n.options)}function pn(t,n){if(t.length!==n.length)return!1;const o=$t(t),r=$t(n);return o.every((c,s)=>{const e=r[s];return Dt(c,e)})}function Mt(t){return typeof t=="number"}function At(t){return typeof t=="string"}function bt(t){return typeof t=="boolean"}function Kt(t){return Object.prototype.toString.call(t)==="[object Object]"}function M(t){return Math.abs(t)}function Ot(t){return Math.sign(t)}function ft(t,n){return M(t-n)}function mn(t,n){if(t===0||n===0||M(t)<=M(n))return 0;const o=ft(M(t),M(n));return M(o/t)}function gn(t){return Math.round(t*100)/100}function dt(t){return pt(t).map(Number)}function R(t){return t[ht(t)]}function ht(t){return Math.max(0,t.length-1)}function Pt(t,n){return n===ht(t)}function Ut(t,n=0){return Array.from(Array(t),(o,r)=>n+r)}function pt(t){return Object.keys(t)}function Jt(t,n){return[t,n].reduce((o,r)=>(pt(r).forEach(c=>{const s=o[c],e=r[c],a=Kt(s)&&Kt(e);o[c]=a?Jt(s,e):e}),o),{})}function wt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function hn(t,n){const o={start:r,center:c,end:s};function r(){return 0}function c(i){return s(i)/2}function s(i){return n-i}function e(i,u){return At(t)?o[t](i):t(n,i,u)}return{measure:e}}function mt(){let t=[];function n(c,s,e,a={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(s,e,a),i=()=>c.removeEventListener(s,e,a);else{const u=c;u.addListener(e),i=()=>u.removeListener(e)}return t.push(i),r}function o(){t=t.filter(c=>c())}const r={add:n,clear:o};return r}function Sn(t,n,o,r){const c=mt(),s=1e3/60;let e=null,a=0,i=0;function u(){c.add(t,"visibilitychange",()=>{t.hidden&&l()})}function S(){y(),c.clear()}function d(h){if(!i)return;e||(e=h,o(),o());const f=h-e;for(e=h,a+=f;a>=s;)o(),a-=s;const g=a/s;r(g),i&&(i=n.requestAnimationFrame(d))}function p(){i||(i=n.requestAnimationFrame(d))}function y(){n.cancelAnimationFrame(i),e=null,a=0,i=0}function l(){e=null,a=0}return{init:u,destroy:S,start:p,stop:y,update:o,render:r}}function xn(t,n){const o=n==="rtl",r=t==="y",c=r?"y":"x",s=r?"x":"y",e=!r&&o?-1:1,a=S(),i=d();function u(l){const{height:m,width:h}=l;return r?m:h}function S(){return r?"top":o?"right":"left"}function d(){return r?"bottom":o?"left":"right"}function p(l){return l*e}return{scroll:c,cross:s,startEdge:a,endEdge:i,measureSize:u,direction:p}}function et(t=0,n=0){const o=M(t-n);function r(u){return u<t}function c(u){return u>n}function s(u){return r(u)||c(u)}function e(u){return s(u)?r(u)?t:n:u}function a(u){return o?u-o*Math.ceil((u-n)/o):u}return{length:o,max:n,min:t,constrain:e,reachedAny:s,reachedMax:c,reachedMin:r,removeOffset:a}}function Xt(t,n,o){const{constrain:r}=et(0,t),c=t+1;let s=e(n);function e(p){return o?M((c+p)%c):r(p)}function a(){return s}function i(p){return s=e(p),d}function u(p){return S().set(a()+p)}function S(){return Xt(t,a(),o)}const d={get:a,set:i,add:u,clone:S};return d}function yn(t,n,o,r,c,s,e,a,i,u,S,d,p,y,l,m,h,f,g){const{cross:b,direction:L}=t,w=["INPUT","SELECT","TEXTAREA"],I={passive:!1},E=mt(),v=mt(),C=et(50,225).constrain(y.measure(20)),O={mouse:300,touch:400},T={mouse:500,touch:600},F=l?43:25;let G=!1,H=0,q=0,W=!1,_=!1,U=!1,Q=!1;function it(x){if(!g)return;function A(j){(bt(g)||g(x,j))&&ut(j)}const P=n;E.add(P,"dragstart",j=>j.preventDefault(),I).add(P,"touchmove",()=>{},I).add(P,"touchend",()=>{}).add(P,"touchstart",A).add(P,"mousedown",A).add(P,"touchcancel",k).add(P,"contextmenu",k).add(P,"click",X,!0)}function $(){E.clear(),v.clear()}function ot(){const x=Q?o:n;v.add(x,"touchmove",z,I).add(x,"touchend",k).add(x,"mousemove",z,I).add(x,"mouseup",k)}function rt(x){const A=x.nodeName||"";return w.includes(A)}function J(){return(l?T:O)[Q?"mouse":"touch"]}function ct(x,A){const P=d.add(Ot(x)*-1),j=S.byDistance(x,!l).distance;return l||M(x)<C?j:h&&A?j*.5:S.byIndex(P.get(),0).distance}function ut(x){const A=wt(x,r);Q=A,U=l&&A&&!x.buttons&&G,G=ft(c.get(),e.get())>=2,!(A&&x.button!==0)&&(rt(x.target)||(W=!0,s.pointerDown(x),u.useFriction(0).useDuration(0),c.set(e),ot(),H=s.readPoint(x),q=s.readPoint(x,b),p.emit("pointerDown")))}function z(x){if(!wt(x,r)&&x.touches.length>=2)return k(x);const P=s.readPoint(x),j=s.readPoint(x,b),K=ft(P,H),Y=ft(j,q);if(!_&&!Q&&(!x.cancelable||(_=K>Y,!_)))return k(x);const tt=s.pointerMove(x);K>m&&(U=!0),u.useFriction(.3).useDuration(.75),a.start(),c.add(L(tt)),x.preventDefault()}function k(x){const P=S.byDistance(0,!1).index!==d.get(),j=s.pointerUp(x)*J(),K=ct(L(j),P),Y=mn(j,K),tt=F-10*Y,Z=f+Y/50;_=!1,W=!1,v.clear(),u.useDuration(tt).useFriction(Z),i.distance(K,!l),Q=!1,p.emit("pointerUp")}function X(x){U&&(x.stopPropagation(),x.preventDefault(),U=!1)}function B(){return W}return{init:it,destroy:$,pointerDown:B}}function bn(t,n){let r,c;function s(d){return d.timeStamp}function e(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(wt(d,n)?d:d.touches[0])[l]}function a(d){return r=d,c=d,e(d)}function i(d){const p=e(d)-e(c),y=s(d)-s(r)>170;return c=d,y&&(r=d),p}function u(d){if(!r||!c)return 0;const p=e(c)-e(r),y=s(d)-s(r),l=s(d)-s(c)>170,m=p/y;return y&&!l&&M(m)>.1?m:0}return{pointerDown:a,pointerMove:i,pointerUp:u,readPoint:e}}function En(){function t(o){const{offsetTop:r,offsetLeft:c,offsetWidth:s,offsetHeight:e}=o;return{top:r,right:c+s,bottom:r+e,left:c,width:s,height:e}}return{measure:t}}function vn(t){function n(r){return t*(r/100)}return{measure:n}}function Ln(t,n,o,r,c,s,e){const a=[t].concat(r);let i,u,S=[],d=!1;function p(h){return c.measureSize(e.measure(h))}function y(h){if(!s)return;u=p(t),S=r.map(p);function f(g){for(const b of g){if(d)return;const L=b.target===t,w=r.indexOf(b.target),I=L?u:S[w],E=p(L?t:r[w]);if(M(E-I)>=.5){h.reInit(),n.emit("resize");break}}}i=new ResizeObserver(g=>{(bt(s)||s(h,g))&&f(g)}),o.requestAnimationFrame(()=>{a.forEach(g=>i.observe(g))})}function l(){d=!0,i&&i.disconnect()}return{init:y,destroy:l}}function In(t,n,o,r,c,s){let e=0,a=0,i=c,u=s,S=t.get(),d=0;function p(){const I=r.get()-t.get(),E=!i;let v=0;return E?(e=0,o.set(r),t.set(r),v=I):(o.set(t),e+=I/i,e*=u,S+=e,t.add(e),v=S-d),a=Ot(v),d=S,w}function y(){const I=r.get()-n.get();return M(I)<.001}function l(){return i}function m(){return a}function h(){return e}function f(){return b(c)}function g(){return L(s)}function b(I){return i=I,w}function L(I){return u=I,w}const w={direction:m,duration:l,velocity:h,seek:p,settled:y,useBaseFriction:g,useBaseDuration:f,useFriction:L,useDuration:b};return w}function Cn(t,n,o,r,c){const s=c.measure(10),e=c.measure(50),a=et(.1,.99);let i=!1;function u(){return!(i||!t.reachedAny(o.get())||!t.reachedAny(n.get()))}function S(y){if(!u())return;const l=t.reachedMin(n.get())?"min":"max",m=M(t[l]-n.get()),h=o.get()-n.get(),f=a.constrain(m/e);o.subtract(h*f),!y&&M(h)<s&&(o.set(t.constrain(o.get())),r.useDuration(25).useBaseFriction())}function d(y){i=!y}return{shouldConstrain:u,constrain:S,toggleActive:d}}function Tn(t,n,o,r,c){const s=et(-n+t,0),e=d(),a=S(),i=p();function u(l,m){return ft(l,m)<=1}function S(){const l=e[0],m=R(e),h=e.lastIndexOf(l),f=e.indexOf(m)+1;return et(h,f)}function d(){return o.map((l,m)=>{const{min:h,max:f}=s,g=s.constrain(l),b=!m,L=Pt(o,m);return b?f:L||u(h,g)?h:u(f,g)?f:g}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+c)return[s.max];if(r==="keepSnaps")return e;const{min:l,max:m}=a;return e.slice(l,m)}return{snapsContained:i,scrollContainLimit:a}}function An(t,n,o){const r=n[0],c=o?r-t:R(n);return{limit:et(c,r)}}function wn(t,n,o,r){const s=n.min+.1,e=n.max+.1,{reachedMin:a,reachedMax:i}=et(s,e);function u(p){return p===1?i(o.get()):p===-1?a(o.get()):!1}function S(p){if(!u(p))return;const y=t*(p*-1);r.forEach(l=>l.add(y))}return{loop:S}}function Dn(t){const{max:n,length:o}=t;function r(s){const e=s-n;return o?e/-o:0}return{get:r}}function Mn(t,n,o,r,c){const{startEdge:s,endEdge:e}=t,{groupSlides:a}=c,i=d().map(n.measure),u=p(),S=y();function d(){return a(r).map(m=>R(m)[e]-m[0][s]).map(M)}function p(){return r.map(m=>o[s]-m[s]).map(m=>-M(m))}function y(){return a(u).map(m=>m[0]).map((m,h)=>m+i[h])}return{snaps:u,snapsAligned:S}}function On(t,n,o,r,c,s){const{groupSlides:e}=c,{min:a,max:i}=r,u=S();function S(){const p=e(s),y=!t||n==="keepSnaps";return o.length===1?[s]:y?p:p.slice(a,i).map((l,m,h)=>{const f=!m,g=Pt(h,m);if(f){const b=R(h[0])+1;return Ut(b)}if(g){const b=ht(s)-R(h)[0]+1;return Ut(b,R(h)[0])}return l})}return{slideRegistry:u}}function Pn(t,n,o,r,c){const{reachedAny:s,removeOffset:e,constrain:a}=r;function i(l){return l.concat().sort((m,h)=>M(m)-M(h))[0]}function u(l){const m=t?e(l):a(l),h=n.map((g,b)=>({diff:S(g-m,0),index:b})).sort((g,b)=>M(g.diff)-M(b.diff)),{index:f}=h[0];return{index:f,distance:m}}function S(l,m){const h=[l,l+o,l-o];if(!t)return l;if(!m)return i(h);const f=h.filter(g=>Ot(g)===m);return f.length?i(f):R(h)-o}function d(l,m){const h=n[l]-c.get(),f=S(h,m);return{index:l,distance:f}}function p(l,m){const h=c.get()+l,{index:f,distance:g}=u(h),b=!t&&s(h);if(!m||b)return{index:f,distance:l};const L=n[f]-g,w=l+S(L,0);return{index:f,distance:w}}return{byDistance:p,byIndex:d,shortcut:S}}function Nn(t,n,o,r,c,s,e){function a(d){const p=d.distance,y=d.index!==n.get();s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),y&&(o.set(n.get()),n.set(d.index),e.emit("select"))}function i(d,p){const y=c.byDistance(d,p);a(y)}function u(d,p){const y=n.clone().set(d),l=c.byIndex(y.get(),p);a(l)}return{distance:i,index:u}}function kn(t,n,o,r,c,s,e,a){const i={passive:!0,capture:!0};let u=0;function S(y){if(!a)return;function l(m){if(new Date().getTime()-u>10)return;e.emit("slideFocusStart"),t.scrollLeft=0;const g=o.findIndex(b=>b.includes(m));Mt(g)&&(c.useDuration(0),r.index(g,0),e.emit("slideFocus"))}s.add(document,"keydown",d,!1),n.forEach((m,h)=>{s.add(m,"focus",f=>{(bt(a)||a(y,f))&&l(h)},i)})}function d(y){y.code==="Tab"&&(u=new Date().getTime())}return{init:S}}function lt(t){let n=t;function o(){return n}function r(i){n=e(i)}function c(i){n+=e(i)}function s(i){n-=e(i)}function e(i){return Mt(i)?i:i.get()}return{get:o,set:r,add:c,subtract:s}}function Yt(t,n){const o=t.scroll==="x"?e:a,r=n.style;let c=null,s=!1;function e(p){return`translate3d(${p}px,0px,0px)`}function a(p){return`translate3d(0px,${p}px,0px)`}function i(p){if(s)return;const y=gn(t.direction(p));y!==c&&(r.transform=o(y),c=y)}function u(p){s=!p}function S(){s||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:S,to:i,toggleActive:u}}function jn(t,n,o,r,c,s,e,a,i){const S=dt(c),d=dt(c).reverse(),p=f().concat(g());function y(E,v){return E.reduce((C,O)=>C-c[O],v)}function l(E,v){return E.reduce((C,O)=>y(C,v)>0?C.concat([O]):C,[])}function m(E){return s.map((v,C)=>({start:v-r[C]+.5+E,end:v+n-.5+E}))}function h(E,v,C){const O=m(v);return E.map(T=>{const F=C?0:-o,G=C?o:0,H=C?"end":"start",q=O[T][H];return{index:T,loopPoint:q,slideLocation:lt(-1),translate:Yt(t,i[T]),target:()=>a.get()>q?F:G}})}function f(){const E=e[0],v=l(d,E);return h(v,o,!1)}function g(){const E=n-e[0]-1,v=l(S,E);return h(v,-o,!0)}function b(){return p.every(({index:E})=>{const v=S.filter(C=>C!==E);return y(v,n)<=.1})}function L(){p.forEach(E=>{const{target:v,translate:C,slideLocation:O}=E,T=v();T!==O.get()&&(C.to(T),O.set(T))})}function w(){p.forEach(E=>E.translate.clear())}return{canLoop:b,clear:w,loop:L,loopPoints:p}}function Fn(t,n,o){let r,c=!1;function s(i){if(!o)return;function u(S){for(const d of S)if(d.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(S=>{c||(bt(o)||o(i,S))&&u(S)}),r.observe(t,{childList:!0})}function e(){r&&r.disconnect(),c=!0}return{init:s,destroy:e}}function zn(t,n,o,r){const c={};let s=null,e=null,a,i=!1;function u(){a=new IntersectionObserver(l=>{i||(l.forEach(m=>{const h=n.indexOf(m.target);c[h]=m}),s=null,e=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:r}),n.forEach(l=>a.observe(l))}function S(){a&&a.disconnect(),i=!0}function d(l){return pt(c).reduce((m,h)=>{const f=parseInt(h),{isIntersecting:g}=c[f];return(l&&g||!l&&!g)&&m.push(f),m},[])}function p(l=!0){if(l&&s)return s;if(!l&&e)return e;const m=d(l);return l&&(s=m),l||(e=m),m}return{init:u,destroy:S,get:p}}function Bn(t,n,o,r,c,s){const{measureSize:e,startEdge:a,endEdge:i}=t,u=o[0]&&c,S=l(),d=m(),p=o.map(e),y=h();function l(){if(!u)return 0;const g=o[0];return M(n[a]-g[a])}function m(){if(!u)return 0;const g=s.getComputedStyle(R(r));return parseFloat(g.getPropertyValue(`margin-${i}`))}function h(){return o.map((g,b,L)=>{const w=!b,I=Pt(L,b);return w?p[b]+S:I?p[b]+d:L[b+1][a]-g[a]}).map(M)}return{slideSizes:p,slideSizesWithGaps:y,startGap:S,endGap:d}}function Vn(t,n,o,r,c,s,e,a,i){const{startEdge:u,endEdge:S,direction:d}=t,p=Mt(o);function y(f,g){return dt(f).filter(b=>b%g===0).map(b=>f.slice(b,b+g))}function l(f){return f.length?dt(f).reduce((g,b,L)=>{const w=R(g)||0,I=w===0,E=b===ht(f),v=c[u]-s[w][u],C=c[u]-s[b][S],O=!r&&I?d(e):0,T=!r&&E?d(a):0,F=M(C-T-(v+O));return L&&F>n+i&&g.push(b),E&&g.push(f.length),g},[]).map((g,b,L)=>{const w=Math.max(L[b-1]||0);return f.slice(w,g)}):[]}function m(f){return p?y(f,o):l(f)}return{groupSlides:m}}function Rn(t,n,o,r,c,s,e){const{align:a,axis:i,direction:u,startIndex:S,loop:d,duration:p,dragFree:y,dragThreshold:l,inViewThreshold:m,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:b,watchSlides:L,watchDrag:w,watchFocus:I}=s,E=2,v=En(),C=v.measure(n),O=o.map(v.measure),T=xn(i,u),F=T.measureSize(C),G=vn(F),H=hn(a,F),q=!d&&!!g,W=d||!!g,{slideSizes:_,slideSizesWithGaps:U,startGap:Q,endGap:it}=Bn(T,C,O,o,W,c),$=Vn(T,F,h,d,C,O,Q,it,E),{snaps:ot,snapsAligned:rt}=Mn(T,H,C,O,$),J=-R(ot)+R(U),{snapsContained:ct,scrollContainLimit:ut}=Tn(F,J,rt,g,E),z=q?ct:rt,{limit:k}=An(J,z,d),X=Xt(ht(z),S,d),B=X.clone(),D=dt(o),x=({dragHandler:st,scrollBody:Ct,scrollBounds:Tt,options:{loop:St}})=>{St||Tt.constrain(st.pointerDown()),Ct.seek()},A=({scrollBody:st,translate:Ct,location:Tt,offsetLocation:St,previousLocation:tn,scrollLooper:nn,slideLooper:en,dragHandler:on,animation:rn,eventHandler:zt,scrollBounds:sn,options:{loop:Bt}},Vt)=>{const Rt=st.settled(),cn=!sn.shouldConstrain(),Gt=Bt?Rt:Rt&&cn,Ht=Gt&&!on.pointerDown();Ht&&rn.stop();const un=Tt.get()*Vt+tn.get()*(1-Vt);St.set(un),Bt&&(nn.loop(st.direction()),en.loop()),Ct.to(St.get()),Ht&&zt.emit("settle"),Gt||zt.emit("scroll")},P=Sn(r,c,()=>x(It),st=>A(It,st)),j=.68,K=z[X.get()],Y=lt(K),tt=lt(K),Z=lt(K),nt=lt(K),at=In(Y,Z,tt,nt,p,j),vt=Pn(d,z,J,k,nt),Lt=Nn(P,X,B,at,vt,nt,e),kt=Dn(k),jt=mt(),Zt=zn(n,o,e,m),{slideRegistry:Ft}=On(q,g,z,ut,$,D),Wt=kn(t,o,Ft,Lt,at,jt,e,I),It={ownerDocument:r,ownerWindow:c,eventHandler:e,containerRect:C,slideRects:O,animation:P,axis:T,dragHandler:yn(T,t,r,c,nt,bn(T,c),Y,P,Lt,at,vt,X,e,G,y,l,f,j,w),eventStore:jt,percentOfView:G,index:X,indexPrevious:B,limit:k,location:Y,offsetLocation:Z,previousLocation:tt,options:s,resizeHandler:Ln(n,e,c,o,T,b,v),scrollBody:at,scrollBounds:Cn(k,Z,nt,at,G),scrollLooper:wn(J,k,Z,[Y,Z,tt,nt]),scrollProgress:kt,scrollSnapList:z.map(kt.get),scrollSnaps:z,scrollTarget:vt,scrollTo:Lt,slideLooper:jn(T,F,J,_,U,ot,z,Z,o),slideFocus:Wt,slidesHandler:Fn(n,e,L),slidesInView:Zt,slideIndexes:D,slideRegistry:Ft,slidesToScroll:$,target:nt,translate:Yt(T,n)};return It}function Gn(){let t={},n;function o(u){n=u}function r(u){return t[u]||[]}function c(u){return r(u).forEach(S=>S(n,u)),i}function s(u,S){return t[u]=r(u).concat([S]),i}function e(u,S){return t[u]=r(u).filter(d=>d!==S),i}function a(){t={}}const i={init:o,emit:c,off:e,on:s,clear:a};return i}const Hn={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 qn(t){function n(s,e){return Jt(s,e||{})}function o(s){const e=s.breakpoints||{},a=pt(e).filter(i=>t.matchMedia(i).matches).map(i=>e[i]).reduce((i,u)=>n(i,u),{});return n(s,a)}function r(s){return s.map(e=>pt(e.breakpoints||{})).reduce((e,a)=>e.concat(a),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:o,optionsMediaQueries:r}}function $n(t){let n=[];
1function o(s,e){return n=e.filter(({options:a})=>t.optionsAtMedia(a).active!==!1),n.forEach(a=>a.init(s,t)),e.reduce((a,i)=>Object.assign(a,{[i.name]:i}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:o,destroy:r}}function xt(t,n,o){const r=t.ownerDocument,c=r.defaultView,s=qn(c),e=$n(s),a=mt(),i=Gn(),{mergeOptions:u,optionsAtMedia:S,optionsMediaQueries:d}=s,{on:p,off:y,emit:l}=i,m=T;let h=!1,f,g=u(Hn,xt.globalOptions),b=u(g),L=[],w,I,E;function v(){const{container:D,slides:x}=b;I=(At(D)?t.querySelector(D):D)||t.children[0];const P=At(x)?I.querySelectorAll(x):x;E=[].slice.call(P||I.children)}function C(D){const x=Rn(t,I,E,r,c,D,i);if(D.loop&&!x.slideLooper.canLoop()){const A=Object.assign({},D,{loop:!1});return C(A)}return x}function O(D,x){h||(g=u(g,D),b=S(g),L=x||L,v(),f=C(b),d([g,...L.map(({options:A})=>A)]).forEach(A=>a.add(A,"change",T)),b.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(B),f.eventHandler.init(B),f.resizeHandler.init(B),f.slidesHandler.init(B),f.options.loop&&f.slideLooper.loop(),I.offsetParent&&E.length&&f.dragHandler.init(B),w=e.init(B,L)))}function T(D,x){const A=$();F(),O(u({startIndex:A},D),x),i.emit("reInit")}function F(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),e.destroy(),a.clear()}function G(){h||(h=!0,a.clear(),F(),i.emit("destroy"),i.clear())}function H(D,x,A){!b.active||h||(f.scrollBody.useBaseFriction().useDuration(x===!0?0:b.duration),f.scrollTo.index(D,A||0))}function q(D){const x=f.index.add(1).get();H(x,D,-1)}function W(D){const x=f.index.add(-1).get();H(x,D,1)}function _(){return f.index.add(1).get()!==$()}function U(){return f.index.add(-1).get()!==$()}function Q(){return f.scrollSnapList}function it(){return f.scrollProgress.get(f.offsetLocation.get())}function $(){return f.index.get()}function ot(){return f.indexPrevious.get()}function rt(){return f.slidesInView.get()}function J(){return f.slidesInView.get(!1)}function ct(){return w}function ut(){return f}function z(){return t}function k(){return I}function X(){return E}const B={canScrollNext:_,canScrollPrev:U,containerNode:k,internalEngine:ut,destroy:G,off:y,on:p,emit:l,plugins:ct,previousScrollSnap:ot,reInit:m,rootNode:z,scrollNext:q,scrollPrev:W,scrollProgress:it,scrollSnapList:Q,scrollTo:H,selectedScrollSnap:$,slideNodes:X,slidesInView:rt,slidesNotInView:J};return O(n,o),setTimeout(()=>i.emit("init"),0),B}xt.globalOptions=void 0;function Nt(t={},n=[]){const o=N.useRef(t),r=N.useRef(n),[c,s]=N.useState(),[e,a]=N.useState(),i=N.useCallback(()=>{c&&c.reInit(o.current,r.current)},[c]);return N.useEffect(()=>{Dt(o.current,t)||(o.current=t,i())},[t,i]),N.useEffect(()=>{pn(r.current,n)||(r.current=n,i())},[n,i]),N.useEffect(()=>{if(dn()&&e){xt.globalOptions=Nt.globalOptions;const u=xt(e,o.current,r.current);return s(u),()=>u.destroy()}else s(void 0)},[e,s]),[a,c]}Nt.globalOptions=void 0;const _t=N.createContext(null);function Et(){const t=N.useContext(_t);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function Xn({orientation:t="horizontal",opts:n,setApi:o,plugins:r,className:c,children:s,...e}){const a=yt(),[i,u]=Nt({...n,axis:t==="horizontal"?"x":"y"},r),[S,d]=N.useState(!1),[p,y]=N.useState(!1),l=N.useCallback(g=>{g&&(d(g.canScrollPrev()),y(g.canScrollNext()))},[]),m=N.useCallback(()=>{u?.scrollPrev()},[u]),h=N.useCallback(()=>{u?.scrollNext()},[u]),f=N.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),m()):g.key==="ArrowRight"&&(g.preventDefault(),h())},[m,h]);return N.useEffect(()=>{!u||!o||o(u)},[u,o]),N.useEffect(()=>{if(u)return l(u),u.on("reInit",l),u.on("select",l),()=>{u?.off("select",l)}},[u,l]),V.jsx(_t.Provider,{value:{carouselRef:i,api:u,opts:n,orientation:t||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:h,canScrollPrev:S,canScrollNext:p},children:V.jsx("div",{onKeyDownCapture:f,className:gt("relative",c),role:"region","aria-roledescription":a.formatMessage({id:"carousel.aria.carousel"}),"data-slot":"carousel",...e,children:s})})}function Yn({className:t,...n}){const{carouselRef:o,orientation:r}=Et();return V.jsx("div",{ref:o,className:"overflow-hidden h-full","data-slot":"carousel-content",children:V.jsx("div",{className:gt("flex h-full",r==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...n})})}function _n({className:t,...n}){const{orientation:o}=Et(),r=yt();return V.jsx("div",{role:"group","aria-roledescription":r.formatMessage({id:"carousel.aria.slide"}),"data-slot":"carousel-item",className:gt("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...n})}function Zn({className:t,variant:n="default",size:o="default",...r}){const{scrollPrev:c,canScrollPrev:s}=Et(),e=yt();return V.jsxs(Qt,{"data-slot":"carousel-previous",variant:n,size:o,icon:!1,className:gt(t),disabled:!s,onClick:c,...r,children:[V.jsx(ln,{}),V.jsx("span",{className:"sr-only",children:e.formatMessage({id:"carousel.aria.previousSlide"})})]})}function Wn({className:t,variant:n="default",size:o="default",...r}){const{scrollNext:c,canScrollNext:s}=Et(),e=yt();return V.jsxs(Qt,{"data-slot":"carousel-next",variant:n,size:o,className:gt(t),icon:!1,disabled:!s,onClick:c,...r,children:[V.jsx(an,{}),V.jsx("span",{className:"sr-only",children:e.formatMessage({id:"carousel.aria.nextSlide"})})]})}export{Xn as C,Yn as a,_n as b,Zn as c,Wn as d};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.