vendor: 4,697 bytes, line 1
1import{y as lt,bG as ut,P as he,b0 as Ze,ae as We,bk as At,K as Et,L as Pt,an as Tt,aE as Ot,o as U,v as Ie,w as Le,a as Fe,p as ee,j as C,c as oe,F as et,s as tt,R as Ae,D as ft,b as Me,Z as nt,k as Ee,U as Dt,a1 as ue,m as fe,r as se,V as ot,f as kt,a$ as Ct,n as Bt,E as Ft,A as Mt,at as qt,q as zt,ag as Vt,B as Nt,bI as jt,b1 as st}from"./BBEmszS-.js";function Rt(e){return Object.prototype.toString.call(e)==="[object Object]"}function rt(e){return Rt(e)||Array.isArray(e)}function _t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ve(e,n){const i=Object.keys(e),t=Object.keys(n);if(i.length!==t.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return a!==r?!1:i.every(o=>{const c=e[o],s=n[o];return typeof c=="function"?`${c}`==`${s}`:!rt(c)||!rt(s)?c===s:Ve(c,s)})}function it(e){return e.concat().sort((n,i)=>n.name>i.name?1:-1).map(n=>n.options)}function Gt(e,n){if(e.length!==n.length)return!1;const i=it(e),t=it(n);return i.every((a,r)=>{const o=t[r];return Ve(a,o)})}function Ne(e){return typeof e=="number"}function qe(e){return typeof e=="string"}function Te(e){return typeof e=="boolean"}function at(e){return Object.prototype.toString.call(e)==="[object Object]"}function M(e){return Math.abs(e)}function je(e){return Math.sign(e)}function ve(e,n){return M(e-n)}function Ht(e,n){if(e===0||n===0||M(e)<=M(n))return 0;const i=ve(M(e),M(n));return M(i/e)}function $t(e){return Math.round(e*100)/100}function ye(e){return be(e).map(Number)}function K(e){return e[we(e)]}function we(e){return Math.max(0,e.length-1)}function Re(e,n){return n===we(e)}function ct(e,n=0){return Array.from(Array(e),(i,t)=>n+t)}function be(e){return Object.keys(e)}function dt(e,n){return[e,n].reduce((i,t)=>(be(t).forEach(a=>{const r=i[a],o=t[a],c=at(r)&&at(o);i[a]=c?dt(r,o):o}),i),{})}function ze(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function Ut(e,n){const i={start:t,center:a,end:r};function t(){return 0}function a(s){return r(s)/2}function r(s){return n-s}function o(s,l){return qe(e)?i[e](s):e(n,s,l)}return{measure:o}}function Se(){let e=[];function n(a,r,o,c={passive:!0}){let s;if("addEventListener"in a)a.addEventListener(r,o,c),s=()=>a.removeEventListener(r,o,c);else{const l=a;l.addListener(o),s=()=>l.removeListener(o)}return e.push(s),t}function i(){e=e.filter(a=>a())}const t={add:n,clear:i};return t}function Kt(e,n,i,t){const a=Se(),r=1e3/60;let o=null,c=0,s=0;function l(){a.add(e,"visibilitychange",()=>{e.hidden&&f()})}function h(){b(),a.clear()}function d(m){if(!s)return;o||(o=m,i(),i());const u=m-o;for(o=m,c+=u;c>=r;)i(),c-=r;const y=c/r;t(y),s&&(s=n.requestAnimationFrame(d))}function p(){s||(s=n.requestAnimationFrame(d))}function b(){n.cancelAnimationFrame(s),o=null,c=0,s=0}function f(){o=null,c=0}return{init:l,destroy:h,start:p,stop:b,update:i,render:t}}function Qt(e,n){const i=n==="rtl",t=e==="y",a=t?"y":"x",r=t?"x":"y",o=!t&&i?-1:1,c=h(),s=d();function l(f){const{height:g,width:m}=f;return t?g:m}function h(){return t?"top":i?"right":"left"}function d(){return t?"bottom":i?"left":"right"}function p(f){return f*o}return{scroll:a,cross:r,startEdge:c,endEdge:s,measureSize:l,direction:p}}function re(e=0,n=0){const i=M(e-n);function t(l){return l<e}function a(l){return l>n}function r(l){return t(l)||a(l)}function o(l){return r(l)?t(l)?e:n:l}function c(l){return i?l-i*Math.ceil((l-n)/i):l}return{length:i,max:n,min:e,constrain:o,reachedAny:r,reachedMax:a,reachedMin:t,removeOffset:c}}function pt(e,n,i){const{constrain:t}=re(0,e),a=e+1;let r=o(n);function o(p){return i?M((a+p)%a):t(p)}function c(){return r}function s(p){return r=o(p),d}function l(p){return h().set(c()+p)}function h(){return pt(e,c(),i)}const d={get:c,set:s,add:l,clone:h};return d}function Jt(e,n,i,t,a,r,o,c,s,l,h,d,p,b,f,g,m,u,y){const{cross:v,direction:L}=e,O=["INPUT","SELECT","TEXTAREA"],A={passive:!1},w=Se(),x=Se(),T=re(50,225).constrain(b.measure(20)),B={mouse:300,touch:400},E={mouse:500,touch:600},V=f?43:25;let j=!1,N=0,G=0,I=!1,k=!1,P=!1,z=!1;function ie(S){if(!y)return;function D(_){(Te(y)||y(S,_))&&pe(_)}const q=n;w.add(q,"dragstart",_=>_.preventDefault(),A).add(q,"touchmove",()=>{},A).add(q,"touchend",()=>{}).add(q,"touchstart",D).add(q,"mousedown",D).add(q,"touchcancel",R).add(q,"contextmenu",R).add(q,"click",Y,!0)}function Q(){w.clear(),x.clear()}function ae(){const S=z?i:n;x.add(S,"touchmove",H,A).add(S,"touchend",R).add(S,"mousemove",H,A).add(S,"mouseup",R)}function ce(S){const D=S.nodeName||"";return O.includes(D)}function X(){return(f?E:B)[z?"mouse":"touch"]}function de(S,D){const q=d.add(je(S)*-1),_=h.byDistance(S,!f).distance;
vendor: 14,813 bytes, line 1
1return f||M(S)<T?_:m&&D?_*.5:h.byIndex(q.get(),0).distance}function pe(S){const D=ze(S,t);z=D,P=f&&D&&!S.buttons&&j,j=ve(a.get(),o.get())>=2,!(D&&S.button!==0)&&(ce(S.target)||(I=!0,r.pointerDown(S),l.useFriction(0).useDuration(0),a.set(o),ae(),N=r.readPoint(S),G=r.readPoint(S,v),p.emit("pointerDown")))}function H(S){if(!ze(S,t)&&S.touches.length>=2)return R(S);const q=r.readPoint(S),_=r.readPoint(S,v),J=ve(q,N),Z=ve(_,G);if(!k&&!z&&(!S.cancelable||(k=J>Z,!k)))return R(S);const te=r.pointerMove(S);J>g&&(P=!0),l.useFriction(.3).useDuration(.75),c.start(),a.add(L(te)),S.preventDefault()}function R(S){const q=h.byDistance(0,!1).index!==d.get(),_=r.pointerUp(S)*X(),J=de(L(_),q),Z=Ht(_,J),te=V-10*Z,W=u+Z/50;k=!1,I=!1,x.clear(),l.useDuration(te).useFriction(W),s.distance(J,!f),z=!1,p.emit("pointerUp")}function Y(S){P&&(S.stopPropagation(),S.preventDefault(),P=!1)}function $(){return I}return{init:ie,destroy:Q,pointerDown:$}}function Xt(e,n){let t,a;function r(d){return d.timeStamp}function o(d,p){const f=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(ze(d,n)?d:d.touches[0])[f]}function c(d){return t=d,a=d,o(d)}function s(d){const p=o(d)-o(a),b=r(d)-r(t)>170;return a=d,b&&(t=d),p}function l(d){if(!t||!a)return 0;const p=o(a)-o(t),b=r(d)-r(t),f=r(d)-r(a)>170,g=p/b;return b&&!f&&M(g)>.1?g:0}return{pointerDown:c,pointerMove:s,pointerUp:l,readPoint:o}}function Yt(){function e(i){const{offsetTop:t,offsetLeft:a,offsetWidth:r,offsetHeight:o}=i;return{top:t,right:a+r,bottom:t+o,left:a,width:r,height:o}}return{measure:e}}function Zt(e){function n(t){return e*(t/100)}return{measure:n}}function Wt(e,n,i,t,a,r,o){const c=[e].concat(t);let s,l,h=[],d=!1;function p(m){return a.measureSize(o.measure(m))}function b(m){if(!r)return;l=p(e),h=t.map(p);function u(y){for(const v of y){if(d)return;const L=v.target===e,O=t.indexOf(v.target),A=L?l:h[O],w=p(L?e:t[O]);if(M(w-A)>=.5){m.reInit(),n.emit("resize");break}}}s=new ResizeObserver(y=>{(Te(r)||r(m,y))&&u(y)}),i.requestAnimationFrame(()=>{c.forEach(y=>s.observe(y))})}function f(){d=!0,s&&s.disconnect()}return{init:b,destroy:f}}function en(e,n,i,t,a,r){let o=0,c=0,s=a,l=r,h=e.get(),d=0;function p(){const A=t.get()-e.get(),w=!s;let x=0;return w?(o=0,i.set(t),e.set(t),x=A):(i.set(e),o+=A/s,o*=l,h+=o,e.add(o),x=h-d),c=je(x),d=h,O}function b(){const A=t.get()-n.get();return M(A)<.001}function f(){return s}function g(){return c}function m(){return o}function u(){return v(a)}function y(){return L(r)}function v(A){return s=A,O}function L(A){return l=A,O}const O={direction:g,duration:f,velocity:m,seek:p,settled:b,useBaseFriction:y,useBaseDuration:u,useFriction:L,useDuration:v};return O}function tn(e,n,i,t,a){const r=a.measure(10),o=a.measure(50),c=re(.1,.99);let s=!1;function l(){return!(s||!e.reachedAny(i.get())||!e.reachedAny(n.get()))}function h(b){if(!l())return;const f=e.reachedMin(n.get())?"min":"max",g=M(e[f]-n.get()),m=i.get()-n.get(),u=c.constrain(g/o);i.subtract(m*u),!b&&M(m)<r&&(i.set(e.constrain(i.get())),t.useDuration(25).useBaseFriction())}function d(b){s=!b}return{shouldConstrain:l,constrain:h,toggleActive:d}}function nn(e,n,i,t,a){const r=re(-n+e,0),o=d(),c=h(),s=p();function l(f,g){return ve(f,g)<=1}function h(){const f=o[0],g=K(o),m=o.lastIndexOf(f),u=o.indexOf(g)+1;return re(m,u)}function d(){return i.map((f,g)=>{const{min:m,max:u}=r,y=r.constrain(f),v=!g,L=Re(i,g);return v?u:L||l(m,y)?m:l(u,y)?u:y}).map(f=>parseFloat(f.toFixed(3)))}function p(){if(n<=e+a)return[r.max];if(t==="keepSnaps")return o;const{min:f,max:g}=c;return o.slice(f,g)}return{snapsContained:s,scrollContainLimit:c}}function on(e,n,i){const t=n[0],a=i?t-e:K(n);return{limit:re(a,t)}}function sn(e,n,i,t){const r=n.min+.1,o=n.max+.1,{reachedMin:c,reachedMax:s}=re(r,o);function l(p){return p===1?s(i.get()):p===-1?c(i.get()):!1}function h(p){if(!l(p))return;const b=e*(p*-1);t.forEach(f=>f.add(b))}return{loop:h}}function rn(e){const{max:n,length:i}=e;function t(r){const o=r-n;return i?o/-i:0}return{get:t}}function an(e,n,i,t,a){const{startEdge:r,endEdge:o}=e,{groupSlides:c}=a,s=d().map(n.measure),l=p(),h=b();function d(){return c(t).map(g=>K(g)[o]-g[0][r]).map(M)}function p(){return t.map(g=>i[r]-g[r]).map(g=>-M(g))}function b(){return c(l).map(g=>g[0]).map((g,m)=>g+s[m])}return{snaps:l,snapsAligned:h}}function cn(e,n,i,t,a,r){const{groupSlides:o}=a,{min:c,max:s}=t,l=h();function h(){const p=o(r),b=!e||n==="keepSnaps";return i.length===1?[r]:b?p:p.slice(c,s).map((f,g,m)=>{const u=!g,y=Re(m,g);if(u){const v=K(m[0])+1;return ct(v)}if(y){const v=we(r)-K(m)[0]+1;return ct(v,K(m)[0])}return f})}return{slideRegistry:l}}function ln(e,n,i,t,a){const{reachedAny:r,removeOffset:o,constrain:c}=t;function s(f){return f.concat().sort((g,m)=>M(g)-M(m))[0]}function l(f){const g=e?o(f):c(f),m=n.map((y,v)=>({diff:h(y-g,0),index:v})).sort((y,v)=>M(y.diff)-M(v.diff)),{index:u}=m[0];return{index:u,distance:g}}function h(f,g){const m=[f,f+i,f-i];if(!e)return f;if(!g)return s(m);const u=m.filter(y=>je(y)===g);return u.length?s(u):K(m)-i}function d(f,g){const m=n[f]-a.get(),u=h(m,g);return{index:f,distance:u}}function p(f,g){const m=a.get()+f,{index:u,distance:y}=l(m),v=!e&&r(m);if(!g||v)return{index:u,distance:f};const L=n[u]-y,O=f+h(L,0);return{index:u,distance:O}}return{byDistance:p,byIndex:d,shortcut:h}}function un(e,n,i,t,a,r,o){function c(d){const p=d.distance,b=d.index!==n.get();r.add(p),p&&(t.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(i.set(n.get()),n.set(d.index),o.emit("select"))}function s(d,p){const b=a.byDistance(d,p);c(b)}function l(d,p){const b=n.clone().set(d),f=a.byIndex(b.get(),p);c(f)}return{distance:s,index:l}}function fn(e,n,i,t,a,r,o,c){const s={passive:!0,capture:!0};let l=0;function h(b){if(!c)return;function f(g){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const y=i.findIndex(v=>v.includes(g));Ne(y)&&(a.useDuration(0),t.index(y,0),o.emit("slideFocus"))}r.add(document,"keydown",d,!1),n.forEach((g,m)=>{r.add(g,"focus",u=>{(Te(c)||c(b,u))&&f(m)},s)})}function d(b){b.code==="Tab"&&(l=new Date().getTime())}return{init:h}}function ge(e){let n=e;function i(){return n}function t(s){n=o(s)}function a(s){n+=o(s)}function r(s){n-=o(s)}function o(s){return Ne(s)?s:s.get()}return{get:i,set:t,add:a,subtract:r}}function mt(e,n){const i=e.scroll==="x"?o:c,t=n.style;let a=null,r=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function c(p){return`translate3d(0px,${p}px,0px)`}function s(p){if(r)return;const b=$t(e.direction(p));b!==a&&(t.transform=i(b),a=b)}function l(p){r=!p}function h(){r||(t.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:h,to:s,toggleActive:l}}function dn(e,n,i,t,a,r,o,c,s){const h=ye(a),d=ye(a).reverse(),p=u().concat(y());function b(w,x){return w.reduce((T,B)=>T-a[B],x)}function f(w,x){return w.reduce((T,B)=>b(T,x)>0?T.concat([B]):T,[])}function g(w){return r.map((x,T)=>({start:x-t[T]+.5+w,end:x+n-.5+w}))}function m(w,x,T){const B=g(x);return w.map(E=>{const V=T?0:-i,j=T?i:0,N=T?"end":"start",G=B[E][N];return{index:E,loopPoint:G,slideLocation:ge(-1),translate:mt(e,s[E]),target:()=>c.get()>G?V:j}})}function u(){const w=o[0],x=f(d,w);return m(x,i,!1)}function y(){const w=n-o[0]-1,x=f(h,w);return m(x,-i,!0)}function v(){return p.every(({index:w})=>{const x=h.filter(T=>T!==w);return b(x,n)<=.1})}function L(){p.forEach(w=>{const{target:x,translate:T,slideLocation:B}=w,E=x();E!==B.get()&&(T.to(E),B.set(E))})}function O(){p.forEach(w=>w.translate.clear())}return{canLoop:v,clear:O,loop:L,loopPoints:p}}function pn(e,n,i){let t,a=!1;function r(s){if(!i)return;function l(h){for(const d of h)if(d.type==="childList"){s.reInit(),n.emit("slidesChanged");break}}t=new MutationObserver(h=>{a||(Te(i)||i(s,h))&&l(h)}),t.observe(e,{childList:!0})}function o(){t&&t.disconnect(),a=!0}return{init:r,destroy:o}}function mn(e,n,i,t){const a={};let r=null,o=null,c,s=!1;function l(){c=new IntersectionObserver(f=>{s||(f.forEach(g=>{const m=n.indexOf(g.target);a[m]=g}),r=null,o=null,i.emit("slidesInView"))},{root:e.parentElement,threshold:t}),n.forEach(f=>c.observe(f))}function h(){c&&c.disconnect(),s=!0}function d(f){return be(a).reduce((g,m)=>{const u=parseInt(m),{isIntersecting:y}=a[u];return(f&&y||!f&&!y)&&g.push(u),g},[])}function p(f=!0){if(f&&r)return r;if(!f&&o)return o;const g=d(f);return f&&(r=g),f||(o=g),g}return{init:l,destroy:h,get:p}}function gn(e,n,i,t,a,r){const{measureSize:o,startEdge:c,endEdge:s}=e,l=i[0]&&a,h=f(),d=g(),p=i.map(o),b=m();function f(){if(!l)return 0;const y=i[0];return M(n[c]-y[c])}function g(){if(!l)return 0;const y=r.getComputedStyle(K(t));return parseFloat(y.getPropertyValue(`margin-${s}`))}function m(){return i.map((y,v,L)=>{const O=!v,A=Re(L,v);return O?p[v]+h:A?p[v]+d:L[v+1][c]-y[c]}).map(M)}return{slideSizes:p,slideSizesWithGaps:b,startGap:h,endGap:d}}function vn(e,n,i,t,a,r,o,c,s){const{startEdge:l,endEdge:h,direction:d}=e,p=Ne(i);function b(u,y){return ye(u).filter(v=>v%y===0).map(v=>u.slice(v,v+y))}function f(u){return u.length?ye(u).reduce((y,v,L)=>{const O=K(y)||0,A=O===0,w=v===we(u),x=a[l]-r[O][l],T=a[l]-r[v][h],B=!t&&A?d(o):0,E=!t&&w?d(c):0,V=M(T-E-(x+B));return L&&V>n+s&&y.push(v),w&&y.push(u.length),y},[]).map((y,v,L)=>{const O=Math.max(L[v-1]||0);return u.slice(O,y)}):[]}function g(u){return p?b(u,i):f(u)}return{groupSlides:g}}function hn(e,n,i,t,a,r,o){const{align:c,axis:s,direction:l,startIndex:h,loop:d,duration:p,dragFree:b,dragThreshold:f,inViewThreshold:g,slidesToScroll:m,skipSnaps:u,containScroll:y,watchResize:v,watchSlides:L,watchDrag:O,watchFocus:A}=r,w=2,x=Yt(),T=x.measure(n),B=i.map(x.measure),E=Qt(s,l),V=E.measureSize(T),j=Zt(V),N=Ut(c,V),G=!d&&!!y,I=d||!!y,{slideSizes:k,slideSizesWithGaps:P,startGap:z,endGap:ie}=gn(E,T,B,i,I,a),Q=vn(E,V,m,d,T,B,z,ie,w),{snaps:ae,snapsAligned:ce}=an(E,N,T,B,Q),X=-K(ae)+K(P),{snapsContained:de,scrollContainLimit:pe}=nn(V,X,ce,y,w),H=G?de:ce,{limit:R}=on(X,H,d),Y=pt(we(H),h,d),$=Y.clone(),F=ye(i),S=({dragHandler:le,scrollBody:Ce,scrollBounds:Be,options:{loop:xe}})=>{xe||Be.constrain(le.pointerDown()),Ce.seek()},D=({scrollBody:le,translate:Ce,location:Be,offsetLocation:xe,previousLocation:ht,scrollLooper:yt,slideLooper:bt,dragHandler:St,animation:wt,eventHandler:Ue,scrollBounds:xt,options:{loop:Ke}},Qe)=>{const Je=le.settled(),It=!xt.shouldConstrain(),Xe=Ke?Je:Je&&It,Ye=Xe&&!St.pointerDown();Ye&&wt.stop();const Lt=Be.get()*Qe+ht.get()*(1-Qe);xe.set(Lt),Ke&&(yt.loop(le.direction()),bt.loop()),Ce.to(xe.get()),Ye&&Ue.emit("settle"),Xe||Ue.emit("scroll")},q=Kt(t,a,()=>S(ke),le=>D(ke,le)),_=.68,J=H[Y.get()],Z=ge(J),te=ge(J),W=ge(J),ne=ge(J),me=en(Z,W,te,ne,p,_),Oe=ln(d,H,X,R,ne),De=un(q,Y,$,me,Oe,ne,o),Ge=rn(R),He=Se(),gt=mn(n,i,o,g),{slideRegistry:$e}=cn(G,y,H,pe,Q,F),vt=fn(e,i,$e,De,me,He,o,A),ke={ownerDocument:t,ownerWindow:a,eventHandler:o,containerRect:T,slideRects:B,animation:q,axis:E,dragHandler:Jt(E,e,t,a,ne,Xt(E,a),Z,q,De,me,Oe,Y,o,j,b,f,u,_,O),eventStore:He,percentOfView:j,index:Y,indexPrevious:$,limit:R,location:Z,offsetLocation:W,previousLocation:te,options:r,resizeHandler:Wt(n,o,a,i,E,v,x),scrollBody:me,scrollBounds:tn(R,W,ne,me,j),scrollLooper:sn(X,R,W,[Z,W,te,ne]),scrollProgress:Ge,scrollSnapList:H.map(Ge.get),scrollSnaps:H,scrollTarget:Oe,scrollTo:De,slideLooper:dn(E,V,X,k,P,ae,H,W,i),slideFocus:vt,slidesHandler:pn(n,o,L),slidesInView:gt,slideIndexes:F,slideRegistry:$e,slidesToScroll:Q,target:ne,translate:mt(E,n)};return ke}function yn(){let e={},n;function i(l){n=l}function t(l){return e[l]||[]}function a(l){return t(l).forEach(h=>h(n,l)),s}function r(l,h){return e[l]=t(l).concat([h]),s}function o(l,h){return e[l]=t(l).filter(d=>d!==h),s}function c(){e={}}const s={init:i,emit:a,off:o,on:r,clear:c};return s}const bn={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 Sn(e){function n(r,o){return dt(r,o||{})}function i(r){const o=r.breakpoints||{},c=be(o).filter(s=>e.matchMedia(s).matches).map(s=>o[s]).reduce((s,l)=>n(s,l),{});return n(r,c)}function t(r){return r.map(o=>be(o.breakpoints||{})).reduce((o,c)=>o.concat(c),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:i,optionsMediaQueries:t}}function wn(e){let n=[];function i(r,o){return n=o.filter(({options:c})=>e.optionsAtMedia(c).active!==!1),n.forEach(c=>c.init(r,e)),o.reduce((c,s)=>Object.assign(c,{[s.name]:s}),{})}function t(){n=n.filter(r=>r.destroy())}return{init:i,destroy:t}}function Pe(e,n,i){const t=e.ownerDocument,a=t.defaultView,r=Sn(a),o=wn(r),c=Se(),s=yn(),{mergeOptions:l,optionsAtMedia:h,optionsMediaQueries:d}=r,{on:p,off:b,emit:f}=s,g=E;let m=!1,u,y=l(bn,Pe.globalOptions),v=l(y),L=[],O,A,w;function x(){const{container:F,slides:S}=v;A=(qe(F)?e.querySelector(F):F)||e.children[0];const q=qe(S)?A.querySelectorAll(S):S;w=[].slice.call(q||A.children)}function T(F){const S=hn(e,A,w,t,a,F,s);if(F.loop&&!S.slideLooper.canLoop()){const D=Object.assign({},F,{loop:!1});return T(D)}return S}function B(F,S){m||(y=l(y,F),v=h(y),L=S||L,x(),u=T(v),d([y,...L.map(({options:D})=>D)]).forEach(D=>c.add(D,"change",E)),v.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init($),u.eventHandler.init($),u.resizeHandler.init($),u.slidesHandler.init($),u.options.loop&&u.slideLooper.loop(),A.offsetParent&&w.length&&u.dragHandler.init($),O=o.init($,L)))}function E(F,S){const D=Q();V(),B(l({startIndex:D},F),S),s.emit("reInit")}function V(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),o.destroy(),c.clear()}function j(){m||(m=!0,c.clear(),V(),s.emit("destroy"),s.clear())}function N(F,S,D){!v.active||m||(u.scrollBody.useBaseFriction().useDuration(S===!0?0:v.duration),u.scrollTo.index(F,D||0))}function G(F){const S=u.index.add(1).get();N(S,F,-1)}function I(F){const S=u.index.add(-1).get();N(S,F,1)}function k(){return u.index.add(1).get()!==Q()}function P(){return u.index.add(-1).get()!==Q()}function z(){return u.scrollSnapList}function ie(){return u.scrollProgress.get(u.offsetLocation.get())}function Q(){return u.index.get()}function ae(){return u.indexPrevious.get()}function ce(){return u.slidesInView.get()}function X(){return u.slidesInView.get(!1)}function de(){return O}function pe(){return u}function H(){return e}function R(){return A}function Y(){return w}const $={canScrollNext:k,canScrollPrev:P,containerNode:R,internalEngine:pe,destroy:j,off:b,on:p,emit:f,plugins:de,previousScrollSnap:ae,reInit:g,rootNode:H,scrollNext:G,scrollPrev:I,scrollProgress:ie,scrollSnapList:z,scrollTo:N,selectedScrollSnap:Q,slideNo
1des:Y,slidesInView:ce,slidesNotInView:X};return B(n,i),setTimeout(()=>s.emit("init"),0),$}Pe.globalOptions=void 0;function _e(e={},n=[]){const i=Ze(e),t=Ze(n);let a=i?e.value:e,r=t?n.value:n;const o=We(),c=We();function s(){c.value&&c.value.reInit(a,r)}return lt(()=>{!_t()||!o.value||(Pe.globalOptions=_e.globalOptions,c.value=Pe(o.value,a,r))}),ut(()=>{c.value&&c.value.destroy()}),i&&he(e,l=>{Ve(a,l)||(a=l,s())}),t&&he(n,l=>{Gt(r,l)||(r=l,s())}),[o,c]}_e.globalOptions=void 0;const xn={slots:{root:"relative focus:outline-none",viewport:"overflow-hidden",container:"flex items-start",item:"min-w-0 shrink-0 basis-full",controls:"",arrows:"",prev:"absolute rounded-full",next:"absolute rounded-full",dots:"absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",dot:["cursor-pointer size-3 bg-accented rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-primary","transition"]},variants:{orientation:{vertical:{container:"flex-col -mt-4",item:"pt-4",prev:"top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",next:"bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"},horizontal:{container:"flex-row -ms-4",item:"ps-4",prev:"start-4 sm:-start-12 top-1/2 -translate-y-1/2",next:"end-4 sm:-end-12 top-1/2 -translate-y-1/2"}},active:{true:{dot:"data-[state=active]:bg-inverted"}}}},In=["aria-label"],Ln=["aria-label","aria-selected","data-state","onClick"],An={__name:"UCarousel",props:{as:{type:null,required:!1},prev:{type:Object,required:!1},prevIcon:{type:null,required:!1},next:{type:Object,required:!1},nextIcon:{type:null,required:!1},arrows:{type:Boolean,required:!1,default:!1},dots:{type:Boolean,required:!1,default:!1},orientation:{type:null,required:!1,default:"horizontal"},items:{type:Array,required:!1},autoplay:{type:[Boolean,Object],required:!1,default:!1},autoScroll:{type:[Boolean,Object],required:!1,default:!1},autoHeight:{type:[Boolean,Object],required:!1,default:!1},classNames:{type:[Boolean,Object],required:!1,default:!1},fade:{type:[Boolean,Object],required:!1,default:!1},wheelGestures:{type:[Boolean,Object],required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},align:{type:[String,Function],required:!1,default:"center"},containScroll:{type:[Boolean,String],required:!1,default:"trimSnaps"},slidesToScroll:{type:[String,Number],required:!1,default:1},dragFree:{type:Boolean,required:!1,default:!1},dragThreshold:{type:Number,required:!1,default:10},inViewThreshold:{type:null,required:!1,default:0},loop:{type:Boolean,required:!1,default:!1},skipSnaps:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1,default:25},startIndex:{type:Number,required:!1,default:0},watchDrag:{type:[Boolean,Function],required:!1,default:!0},watchResize:{type:[Boolean,Function],required:!1,default:!0},watchSlides:{type:[Boolean,Function],required:!1,default:!0},watchFocus:{type:[Boolean,Function],required:!1,default:!0},active:{type:Boolean,required:!1,default:!0},breakpoints:{type:Object,required:!1,default:()=>({})}},emits:["select"],setup(e,{expose:n,emit:i}){const t=e,a=i,{dir:r,t:o}=At(),c=Et(),s=Pt("carousel",t),l=Tt(Ot(t,"active","align","breakpoints","containScroll","dragFree","dragThreshold","duration","inViewThreshold","loop","skipSnaps","slidesToScroll","startIndex","watchDrag","watchResize","watchSlides","watchFocus")),h=fe(()=>t.prevIcon||(r.value==="rtl"?c.ui.icons.arrowRight:c.ui.icons.arrowLeft)),d=fe(()=>t.nextIcon||(r.value==="rtl"?c.ui.icons.arrowLeft:c.ui.icons.arrowRight)),p=fe(()=>typeof t.autoplay=="boolean"?!0:t.autoplay.stopOnInteraction??!0),b=fe(()=>typeof t.autoScroll=="boolean"?!0:t.autoScroll.stopOnInteraction??!0),f=fe(()=>ot({extend:ot(xn),...c.ui?.carousel||{}})({orientation:t.orientation})),g=fe(()=>({...t.fade?{align:"center",containScroll:!1}:{},...l.value,axis:t.orientation==="horizontal"?"x":"y",direction:r.value==="rtl"?"rtl":"ltr"})),m=se([]);async function u(){const I=[];if(t.autoplay){const k=await ue(()=>import("./Dtrtw0zj.js"),[],import.meta.url).then(P=>P.default);I.push(k(typeof t.autoplay=="boolean"?{}:t.autoplay))}if(t.autoScroll){const k=await ue(()=>import("./LVG_eY9u.js"),[],import.meta.url).then(P=>P.default);I.push(k(typeof t.autoScroll=="boolean"?{}:t.autoScroll))}if(t.autoHeight){const k=await ue(()=>import("./Ddyvc1_j.js"),[],import.meta.url).then(P=>P.default);I.push(k(typeof t.autoHeight=="boolean"?{}:t.autoHeight))}if(t.classNames){const k=await ue(()=>import("./mhJ-osCf.js"),[],import.meta.url).then(P=>P.default);I.push(k(typeof t.classNames=="boolean"?{}:t.classNames))}if(t.fade){const k=await ue(()=>import("./wrqBHFeW.js"),[],import.meta.url).then(P=>P.default);I.push(k(typeof t.fade=="boolean"?{}:t.fade))}if(t.wheelGestures){const{WheelGesturesPlugin:k}=await ue(async()=>{const{WheelGesturesPlugin:P}=await import("./Bxc3PCbM.js");return{WheelGesturesPlugin:P}},[],import.meta.url);I.push(k(typeof t.wheelGestures=="boolean"?{}:t.wheelGestures))}m.value=I}he(()=>[t.autoplay,t.autoScroll,t.autoHeight,t.classNames,t.fade,t.wheelGestures],async()=>{await u(),v.value?.reInit(g.value,m.value)},{immediate:!0});const[y,v]=_e(g,m);he(g,()=>{v.value?.reInit(g.value,m.value)},{flush:"post"});function L(){p.value&&v.value?.plugins().autoplay?.stop(),b.value&&v.value?.plugins().autoScroll?.stop()}function O(){v.value?.scrollPrev(),L()}function A(){v.value?.scrollNext(),L()}function w(I){v.value?.scrollTo(I)}function x(I){let k,P;if(t.orientation==="horizontal"?(k=r.value==="ltr"?"ArrowLeft":"ArrowRight",P=r.value==="ltr"?"ArrowRight":"ArrowLeft"):(k="ArrowUp",P="ArrowDown"),I.key===k){I.preventDefault(),O();return}I.key===P&&(I.preventDefault(),A())}const T=se(!1),B=se(!1),E=se(0),V=se([]);function j(I){V.value=I?.scrollSnapList()||[]}
1function N(I){T.value=I?.canScrollNext()||!1,B.value=I?.canScrollPrev()||!1,E.value=I?.selectedScrollSnap()||0,a("select",E.value)}function G(I){return typeof I=="object"&&I!==null}return lt(()=>{v.value&&(v.value.on("init",j),v.value.on("init",N),v.value.on("reInit",j),v.value.on("reInit",N),v.value.on("select",N))}),ut(()=>{v.value&&(v.value.off("init",j),v.value.off("init",N),v.value.off("reInit",j),v.value.off("reInit",N),v.value.off("select",N))}),n({emblaRef:y,emblaApi:v}),(I,k)=>(U(),Ie(C(Dt),{as:e.as,role:"region","aria-roledescription":"carousel","data-orientation":e.orientation,tabindex:"0","data-slot":"root",class:ee(f.value.root({class:[C(s)?.root,t.class]})),onKeydown:x},{default:Le(()=>[Fe("div",{ref_key:"emblaRef",ref:y,"data-slot":"viewport",class:ee(f.value.viewport({class:C(s)?.viewport}))},[Fe("div",{"data-slot":"container",class:ee(f.value.container({class:C(s)?.container}))},[(U(!0),oe(et,null,tt(e.items,(P,z)=>(U(),oe("div",Ae({key:z},{ref_for:!0},e.dots?{role:"tabpanel"}:{role:"group","aria-roledescription":"slide"},{"data-slot":"item",class:f.value.item({class:[C(s)?.item,G(P)&&P.ui?.item,G(P)&&P.class]})}),[ft(I.$slots,"default",{item:P,index:z})],16))),128))],2)],2),e.arrows||e.dots?(U(),oe("div",{key:0,"data-slot":"controls",class:ee(f.value.controls({class:C(s)?.controls}))},[e.arrows?(U(),oe("div",{key:0,"data-slot":"arrows",class:ee(f.value.arrows({class:C(s)?.arrows}))},[Me(nt,Ae({disabled:!B.value,icon:h.value,color:"neutral",variant:"outline","aria-label":C(o)("carousel.prev")},typeof e.prev=="object"?e.prev:void 0,{"data-slot":"prev",class:f.value.prev({class:C(s)?.prev}),onClick:O}),null,16,["disabled","icon","aria-label","class"]),Me(nt,Ae({disabled:!T.value,icon:d.value,color:"neutral",variant:"outline","aria-label":C(o)("carousel.next")},typeof e.next=="object"?e.next:void 0,{"data-slot":"next",class:f.value.next({class:C(s)?.next}),onClick:A}),null,16,["disabled","icon","aria-label","class"])],2)):Ee("",!0),e.dots?(U(),oe("div",{key:1,role:"tablist","aria-label":C(o)("carousel.dots"),"data-slot":"dots",class:ee(f.value.dots({class:C(s)?.dots}))},[(U(!0),oe(et,null,tt(V.value,(P,z)=>(U(),oe("button",{key:z,type:"button",role:"tab","aria-label":C(o)("carousel.goto",{slide:z+1}),"aria-selected":E.value===z,"data-slot":"dot",class:ee(f.value.dot({class:C(s)?.dot,active:E.value===z})),"data-state":E.value===z?"active":void 0,onClick:ie=>w(z)},null,10,Ln))),128))],10,In)):Ee("",!0)],2)):Ee("",!0)]),_:3},8,["as","data-orientation","class"]))}},En=["data-src","alt","loading","onClick"],Pn=kt({__name:"index.global",props:st({height:{},noLazy:{type:Boolean},thumbnails:{default:()=>{}},slidesPerView:{default:1},ui:{default:()=>({})}},{items:{required:!0},itemsModifiers:{}}),emits:st(["select"],["update:items"]),setup(e,{expose:n,emit:i}){const t=i,a=Ct(e,"items");let r=Bt();const o=se(null),c=Ft("thumbs"),s=se(0),l=d=>{e.slidesPerView===1&&(s.value=d,t("select",d),e.thumbnails&&c.value&&c.value.emblaApi.scrollTo(d))},h=d=>{s.value=d,o.value?.emblaApi.scrollTo(d),t("select",d)};return he(a,d=>{const p=[...d];for(;e.slidesPerView>a.value.length;)for(const b of p)a.value.push(b)},{immediate:!0}),n({emblaApi:o.value?.emblaApi,activeIndex:s}),(d,p)=>{const b=An,f=jt,g=Mt("lazy-load");return U(),Ie(f,null,{default:Le(()=>[Me(b,Ae({ref_key:"carousel",ref:o},C(r),{items:a.value,lazy:!e.noLazy,ui:e.ui,style:`--slides-per-view: calc(1/${e.slidesPerView} * 100%);`,onSelect:l}),{default:Le(({item:m,index:u})=>[ft(d.$slots,"default",{index:u,item:m,isActive:C(o)&&e.slidesPerView>1?C(o).emblaApi.slidesInView().includes(u):u===C(s)},()=>[(U(),Ie(qt("LazyGsCarouselSlide"),{item:m,index:u,isActive:C(o)&&e.slidesPerView>1?C(o).emblaApi.slidesInView().includes(u):u===C(s),lazy:!e.noLazy,key:"test-"+u},null,8,["item","index","isActive","lazy"]))])]),_:3},16,["items","lazy","ui","style"]),e.thumbnails?(U(),Ie(b,{key:0,ref_key:"thumbs",ref:c,class:"mt-4",items:typeof a.value[0]=="string"?a.value:a.value.map(m=>m.url),lazy:!e.noLazy,prev:{variant:"solid",color:"accent",leadingIcon:"i-mdi-chevron-left",...e.thumbnails.prev||{}},next:{variant:"solid",color:"accent",leadingIcon:"i-mdi-chevron-right",...e.thumbnails.next||{}},style:Vt(`--slides-per-view: calc(1/${e.thumbnails?.slidesPerView||1} * 100%);`),ui:{container:"ms-0 me-0",prev:"ms-15 mt-2",next:"me-15 mt-2",item:C(zt)("basis-(--slides-per-view) overflow-hidden",e.thumbnails.class)},arrows:""},{default:Le(({index:m,item:u})=>[Nt(Fe("img",{"data-src":u,class:ee(["object-cover opacity-50 hover:opacity-100 transition-opacity",{"opacity-100":C(s)===m}
1]),alt:`thumbnail-${m}`,loading:m===0?"eager":"lazy",onClick:y=>h(m)},null,10,En),[[g]])]),_:1},8,["items","lazy","prev","next","style","ui"])):Ee("",!0)]),_:3})}}}),On=Object.assign(Pn,{__name:"GsCarousel"});export{On as default};
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.